|
Server : Apache/2.4.58 (Win64) OpenSSL/3.1.3 PHP/8.2.12 System : Windows NT SERVER-PC 10.0 build 26200 (Windows 11) AMD64 User : ServerPC ( 0) PHP Version : 8.2.12 Disable Function : NONE Directory : C:/Program Files/NVIDIA Corporation/NVIDIA app/www/ |
Upload File : |
(self.webpackChunknvapp=self.webpackChunknvapp||[]).push([[792],{14709:(St,z,s)=>{"use strict";s.d(z,{oO:()=>Q,LV:()=>te,aT:()=>q,XR:()=>it});var i=s(94485),n=s(85735),h=s(43848),C=s(35146),S=s(91384),M=s(65706),P=s(83915),x=s(75707),A=s(14714),g=function(Qe){return function m(Fe){return!!Fe&&"object"==typeof Fe}(Qe)&&!function l(Fe){var Qe=Object.prototype.toString.call(Fe);return"[object RegExp]"===Qe||"[object Date]"===Qe||function v(Fe){return Fe.$$typeof===u}(Fe)}(Qe)},u="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function T(Fe,Qe){return!1!==Qe.clone&&Qe.isMergeableObject(Fe)?U(function E(Fe){return Array.isArray(Fe)?[]:{}}(Fe),Fe,Qe):Fe}function R(Fe,Qe,ct){return Fe.concat(Qe).map(function(Ge){return T(Ge,ct)})}function U(Fe,Qe,ct){(ct=ct||{}).arrayMerge=ct.arrayMerge||R,ct.isMergeableObject=ct.isMergeableObject||g;var Ge=Array.isArray(Qe);return Ge===Array.isArray(Fe)?Ge?ct.arrayMerge(Fe,Qe,ct):function B(Fe,Qe,ct){var Ge={};return ct.isMergeableObject(Fe)&&Object.keys(Fe).forEach(function(nt){Ge[nt]=T(Fe[nt],ct)}),Object.keys(Qe).forEach(function(nt){Ge[nt]=ct.isMergeableObject(Qe[nt])&&Fe[nt]?U(Fe[nt],Qe[nt],ct):T(Qe[nt],ct)}),Ge}(Fe,Qe,ct):T(Qe,ct)}U.all=function(Qe,ct){if(!Array.isArray(Qe))throw new Error("first argument should be an array");return Qe.reduce(function(Ge,nt){return U(Ge,nt,ct)},{})};const ae=U;var G=s(92602),k=s(26875),X=s(58527);let q=(()=>{class Fe{static{this.\u0275fac=function(Ge){return new(Ge||Fe)}}static{this.\u0275prov=X.jDH({token:Fe,factory:Fe.\u0275fac})}}return Fe})(),Q=(()=>{class Fe{constructor(ct,Ge,nt,Je){this.httpBackend=ct,this.params=nt,this.injector=Je,this.configFetchedSubject=new n.m(1),this.getConfigFromHttp=()=>this.http.get(this.params.filePath).pipe((0,S.M)(ze=>(this.logger.info("Successfully read application config file",ze.build),ze),ze=>{this.logger.error(`Configuration file ${this.params.filePath} could not be read. Error: ${ze}`)})),this.getConfig=()=>{const ze=document.getElementsByTagName("gfn-app-config")[0],Ke=ze?.getAttribute("data-value");ze?.remove();const Ve=this.parseEncodedConfig(Ke);return Ve?(0,h.of)(Ve):this.getConfigFromHttp()},this.logger=Ge.getLogger("app.config"),this.http=new i.Qq(this.httpBackend),this.cefStaticSystemInfo$=(0,h.of)(null),G.zk.isBrowserLikePlatform()?(this.systemInfoService=this.injector.get(G.zW),this.browserStaticSystemInfo$=this.systemInfoService?this.systemInfoService.getSystemInfo([G.Lu.OSName,G.Lu.DeviceType,G.Lu.ProductVersion,G.Lu.BrowserName,G.Lu.SystemName,G.Lu.VendorName]).pipe((0,M.s)(1),(0,P.T)(ze=>({OSName:ze.OSName,DeviceType:ze.DeviceType,BrowserName:ze.BrowserName,ProductVersion:ze.ProductVersion,SystemName:ze.SystemName}))):(0,h.of)(null)):this.browserStaticSystemInfo$=(0,h.of)(null),G.zk.isCefPlatform()&&(this.systemInfoService=this.injector.get(G.zW),this.systemInfoService&&(this.cefStaticSystemInfo$=this.systemInfoService.getDeviceOSType().pipe((0,P.T)(ze=>({Platform:ze})))))}get configFetched$(){return this.configFetchedSubject.asObservable()}mergeRemoteOverridesFromGXT(ct){try{return Object.keys(this.rcParamNameToConfigKeyPathMapping)?.forEach(Ge=>{const nt=this.rcParamNameToConfigKeyPathMapping[Ge],Je=this.remoteOverridesFromGXT?.params?.find(ze=>ze.name===Ge);if(Je){let ze=Je.value;if((0,k.isObject)(ze)){const Ke=(0,k.get)(ct,nt,{});ze.useRCConfigWithoutMerge||(ze=ae(Ke,ze))}(0,k.set)(ct,nt,ze)}}),ct}catch(Ge){return this.logger.info("error in mergeRemoteOverridesFromGXT",Ge),ct}}get(){const ct=this.overrides||{},Ge=this.piplLocalizationConfigOverrides||{};let nt={};"dev"===this.config?.build?.type&&(nt=this.variant||{});const Je=ae(this.config,nt);let ze=Je;return this.remoteOverridesFromGXT&&(ze=this.mergeRemoteOverridesFromGXT(Je)),ae(ae(ze,Ge),ct)}setOverrides(ct){this.overrides=ct}setPiplLocalizationConfigOverrides(ct){this.piplLocalizationConfigOverrides=ct}setRemoteOverridesFromGXT(ct,Ge){this.rcParamNameToConfigKeyPathMapping=Ge,this.remoteOverridesFromGXT=ct}parseEncodedConfig(ct){if(ct&&""!==ct.trim())try{return JSON.parse(atob(ct))}catch{return null}return null}load(){return this.params.config?(this.logger.info("Initializing config with provided data"),this.config=this.params.config,(0,h.of)(this.config)):this.params.filePath?(this.logger.info(`Attempting to read application config file ${this.params.filePath}`),(0,C.yU)(this.getConfig(),this.browserStaticSystemInfo$,this.cefStaticSystemInfo$).pipe((0,S.M)(ct=>{this.config=ct[0]},ct=>{this.logger.error(`Some problem while executing getConfig function. Error: ${ct}`)}),(0,S.M)(([ct,Ge,nt])=>{const Je=ze=>{ze&&(this.config=ae(this.config,ze))};if(this.config&&Ge){const ze=Ge.DeviceType,Ke=Ge.OSName,Ve=Ge.ProductVersion,$e=Ge.BrowserName;this.logger.info(`DeviceType: ${ze}, DeviceOSType: ${Ke}, ProductVersion: ${Ve}, SystemName: ${Ge.SystemName}`),Je(this.get().browserConfig);const Pe=ze===G.Y0.Phone||ze===G.Y0.Tablet,J=ze===G.Y0.TV,vt=ze===G.Y0.Console&&Ke!==G.t_.SteamOS,ve=ze===G.Y0.HMD,ue=Ke===G.t_.Android,et=$e===G.dZ.FIREFOX,se=Ke===G.t_.MacOS&&$e===G.dZ.SAFARI;switch(Ke){case G.t_.IOS:Je(this.get().iOSConfig);break;case G.t_.IPadOS:Je(this.get().iPadOSConfig);break;case G.t_.Android:G.zk.isBrowserPlatform()?ze===G.Y0.Phone?Je(this.get().androidPhoneConfig):ze===G.Y0.Tablet&&Je(this.get().androidTabletConfig):Je(this.get().androidConfig);break;case G.t_.Shield:Je(this.get().androidConfig),Je(this.get().shieldConfig);break;case G.t_.Tizen:Je(this.get().tizenConfig);break;case G.t_.WebOS:Je(this.get().webOSConfig);break;case G.t_.SteamOS:Je(this.get().steamOSConfig)}Pe?Je(this.get().mobileConfig):J?G.zk.isBrowserPlatform()&&ue?Je(this.get().androidTvConfig):Je(this.get().tvConfig):vt?Je(this.get().consoleConfig):ve&&(G.zk.isBrowserPlatform()&&ue?Je(this.get().androidHmdConfig):Je(this.get().hmdConfig)),se&&Je(this.get().macSafariConfig),et&&Je(this.get().firefoxConfig),Ve&&(this.config=ae(this.config,{product:{version:Ve}}))}else this.config&&nt&&nt.Platform===G.t_.SteamOS&&Je(this.get().steamOSConfig)}),(0,x.ZZ)(ct=>this.loadVariant(ct[0])),(0,P.T)(()=>{const ct=this.get();return this.logger.info("appConfig loaded"),this.configFetchedSubject.next(ct),ct}))):(this.logger.error("No valid data source specified in the AppConfigParameters"),(0,h.of)(void 0))}loadVariant(ct){const Ge=ct?.build?.variant,nt=ct?.build?.type;if(!Ge||"dev"!==nt)return(0,h.of)(ct);const Je=this.params.filePath.replace(/\.[^/\\.]+$/,".")+Ge+"."+this.params.filePath.split(".").pop();return this.http.get(Je).pipe((0,S.M)(ze=>{this.logger.info(`Successfully read ${Ge} variant config`),this.variant=ze}),(0,A.W)(()=>(0,h.of)(ct)))}static{this.\u0275fac=function(Ge){return new(Ge||Fe)(X.KVO(i.JV),X.KVO(G.J6),X.KVO(q),X.KVO(X.zZn))}}static{this.\u0275prov=X.jDH({token:Fe,factory:Fe.\u0275fac,providedIn:"root"})}}return Fe})();const te={provide:X.hnV,useFactory:function ce(Fe){return()=>Fe.load().toPromise()},multi:!0,deps:[Q]};function Ee(Fe){return Fe.get()}function it(Fe){return{provide:Fe,useFactory:Ee,deps:[Q]}}},43187:(St,z,s)=>{"use strict";s.d(z,{T:()=>Kg});const Kg={Common:{Applicationcontrol:{DeleteCookies:{legacyCommand:"QUERY_DELETE_COOKIES",system:"CrimsonNative",module:"ApplicationControl",method:"DeleteCookies",persistent:!1},SetTaskbarProgress:{legacyCommand:"QUERY_WIN_TASKBAR_PROGRESS",system:"CrimsonNative",module:"ApplicationControl",method:"SetTaskbarProgress",persistent:!1},LoadStringTable:{legacyCommand:"QUERY_LOAD_STRING_TABLE",system:"CrimsonNative",module:"ApplicationControl",method:"LoadStringTable",persistent:!1},ReadConfig:{legacyCommand:"QUERY_READ_CONFIG",system:"CrimsonNative",module:"ApplicationControl",method:"ReadConfig",persistent:!1},WriteConfig:{legacyCommand:"QUERY_WRITE_CONFIG",system:"CrimsonNative",module:"ApplicationControl",method:"WriteConfig",persistent:!1},ReadGenericConfig:{legacyCommand:"QUERY_READ_GENERIC_CONFIG",system:"CrimsonNative",module:"ApplicationControl",method:"ReadGenericConfig",persistent:!1},WriteGenericConfig:{legacyCommand:"QUERY_WRITE_GENERIC_CONFIG",system:"CrimsonNative",module:"ApplicationControl",method:"WriteGenericConfig",persistent:!1},RemoveFromGenericConfig:{legacyCommand:"QUERY_REMOVE_FROM_GENERIC_CONFIG",system:"CrimsonNative",module:"ApplicationControl",method:"RemoveFromGenericConfig",persistent:!1},AllowSetForegroundWindow:{legacyCommand:"QUERY_WIN_ALLOW_SET_FOREGROUND",system:"CrimsonNative",module:"ApplicationControl",method:"AllowSetForegroundWindow",persistent:!1},CopyToClipboard:{legacyCommand:"QUERY_WIN_COPY_TO_CLIPBOARD",system:"CrimsonNative",module:"ApplicationControl",method:"CopyToClipboard",persistent:!1},Restart:{legacyCommand:"QUERY_RESTART_APP",system:"CrimsonNative",module:"ApplicationControl",method:"Restart",persistent:!1},IsCefGpuModeSupported:{legacyCommand:"QUERY_IS_CEF_GPU_MODE_SUPPORTED",system:"CrimsonNative",module:"ApplicationControl",method:"IsCefGpuModeSupported",persistent:!1},RequestLastInstallerStatus:{legacyCommand:"QUERY_LAST_INSTALLER_STATUS",system:"CrimsonNative",module:"ApplicationControl",method:"RequestLastInstallerStatus",persistent:!1},ModulesActiveNotification:{legacyCommand:"QUERY_IPC_MODULES_ACTIVE_NOTIFICATION",system:"CrimsonNative",module:"ApplicationControl",method:"ModulesActiveNotification",persistent:!0},SetCEFWindowTheme:{legacyCommand:"QUERY_SET_SYSTEM_THEME_TO_BROWSER_WINDOW",system:"CrimsonNative",module:"ApplicationControl",method:"SetCEFWindowTheme",persistent:!1}},Applicationinfo:{IsApplicationRunning:{legacyCommand:"QUERY_IS_APPLICATION_RUNNING",system:"CrimsonNative",module:"ApplicationInfo",method:"IsApplicationRunning",persistent:!1},IsApplicationInstalled:{legacyCommand:"QUERY_IS_APPLICATION_INSTALLED",system:"CrimsonNative",module:"ApplicationInfo",method:"IsApplicationInstalled",persistent:!1},GetIsUIRefreshed:{legacyCommand:"QUERY_IS_UI_REFRESHED",system:"CrimsonNative",module:"ApplicationInfo",method:"GetIsUIRefreshed",persistent:!1},RegisterAppLifetimeEventsCallback:{legacyCommand:"QUERY_REGISTER_APPLICATION_LIFETIME_EVENTS_CALLBACK",system:"CrimsonNative",module:"ApplicationInfo",method:"RegisterAppLifetimeEventsCallback",persistent:!0},ListenToLoadEvents:{legacyCommand:"QUERY_LISTEN_TO_LOAD_EVENTS",system:"CrimsonNative",module:"ApplicationInfo",method:"ListenToLoadEvents",persistent:!0},OpenFileDialog:{legacyCommand:"QUERY_WIN_DIR_INFO",system:"CrimsonNative",module:"ApplicationInfo",method:"OpenFileDialog",persistent:!1},OpenDirectoryBrowser:{legacyCommand:"QUERY_BROWSE_DIRECTORY",system:"CrimsonNative",module:"ApplicationInfo",method:"OpenDirectoryBrowser",persistent:!1},OpenSystemSetting:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ApplicationInfo",method:"OpenSystemSetting",persistent:!1},GetApplicationTimeInfo:{legacyCommand:"QUERY_TIME_INFO",system:"CrimsonNative",module:"ApplicationInfo",method:"GetApplicationTimeInfo",persistent:!1}},Backgroundagent:{IPC_COLLECT_LOGS:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"BackgroundAgent",method:"IPC_COLLECT_LOGS",persistent:!1},IPC_UPLOAD_EXCEPTION_INFO:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"BackgroundAgent",method:"IPC_UPLOAD_EXCEPTION_INFO",persistent:!1},OnPushMessage:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"BackgroundAgent",method:"OnPushMessage",persistent:!0},PopAllMessages:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"BackgroundAgent",method:"PopAllMessages",persistent:!1},IPC_CLIENT_HEARTBEAT:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"BackgroundAgent",method:"IPC_CLIENT_HEARTBEAT",persistent:!1},IPC_GFN_REMOTE_CONFIG_UPDATED_EVENT:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"BackgroundAgent",method:"IPC_GFN_REMOTE_CONFIG_UPDATED_EVENT",persistent:!1},IPC_CHECK_FOR_UPDATE:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"BackgroundAgent",method:"IPC_CHECK_FOR_UPDATE",persistent:!1},IPC_GET_SELF_UPDATE_STATUS:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"BackgroundAgent",method:"IPC_GET_SELF_UPDATE_STATUS",persistent:!1}},Backgroundprocess:{RestartProcesses:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"BackgroundProcess",method:"RestartProcesses",persistent:!1}},Bot:{ProcessIntent:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Chatbot",method:"ProcessIntent",persistent:!1}},Clientnotification:{ShowClientNotifications:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ClientNotification",method:"ShowClientNotifications",persistent:!1},ClearNotificationsQueue:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ClientNotification",method:"ClearNotificationsQueue",persistent:!1},DeleteNotification:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ClientNotification",method:"DeleteNotification",persistent:!1}},Companiontool:{Load:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"CompanionTool",method:"Load",persistent:!1},Save:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"CompanionTool",method:"Save",persistent:!1},Reset:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"CompanionTool",method:"Reset",persistent:!1},Run_Log_Collector:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"CompanionTool",method:"Run_Log_Collector",persistent:!1},Update_Internal_Override_Tool:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"CompanionTool",method:"Update_Internal_Override_Tool",persistent:!1},Get_Latest_Url:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"CompanionTool",method:"Get_Latest_Url",persistent:!1}},Connectionstate:{KeyboardAndMouseConnected:{legacyCommand:"QUERY_KEYBOARD_MOUSE_CONNECTED",system:"CrimsonNative",module:"ConnectionState",method:"KeyboardAndMouseConnected",persistent:!1}},Consent:{setCurrent:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Consent",method:"setCurrent",persistent:!1},setAccepted:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Consent",method:"setAccepted",persistent:!1},getAccepted:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Consent",method:"getAccepted",persistent:!1}},Desktopnotification:{ShowDesktopNotification:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DesktopNotification",method:"ShowDesktopNotification",persistent:!1},ClearDesktopNotification:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DesktopNotification",method:"ClearDesktopNotification",persistent:!1},IsValidDesktopNotification:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DesktopNotification",method:"IsValidDesktopNotification",persistent:!1},DesktopNotificationsAllowed:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DesktopNotification",method:"DesktopNotificationsAllowed",persistent:!1},DesktopNotificationActivated:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DesktopNotification",method:"DesktopNotificationActivated",persistent:!0},DesktopNotificationDismissed:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DesktopNotification",method:"DesktopNotificationDismissed",persistent:!0}},Diagnostics:{SendExceptionInfo:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Diagnostics",method:"SendExceptionInfo",persistent:!1},SendUserFeedbackInfo:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Diagnostics",method:"SendUserFeedbackInfo",persistent:!1}},Discord:{UpdatePresence:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Discord",method:"UpdatePresence",persistent:!1},ClearPresence:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Discord",method:"ClearPresence",persistent:!1}},Downloader:{GetFirstBootTimeAfterInstall:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Downloader",method:"GetFirstBootTimeAfterInstall",persistent:!1},GetMaxDaysBetweenReleases:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Downloader",method:"GetMaxDaysBetweenReleases",persistent:!1},CheckForUpdate:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Downloader",method:"CheckForUpdate",persistent:!1},GetLatestUpdateCheckTime:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Downloader",method:"GetLatestUpdateCheckTime",persistent:!1},GetTaskDownloadStatus:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Downloader",method:"GetTaskDownloadStatus",persistent:!1},GetDownloadStatus:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Downloader",method:"GetDownloadStatus",persistent:!1},StartDownload:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Downloader",method:"StartDownload",persistent:!1},StartDownloadAndPostProcess:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Downloader",method:"StartDownloadAndPostProcess",persistent:!1},ScheduleDownloadAndPostProcess:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Downloader",method:"ScheduleDownloadAndPostProcess",persistent:!1},PauseDownload:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Downloader",method:"PauseDownload",persistent:!1},ResumeDownload:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Downloader",method:"ResumeDownload",persistent:!1},ResumeDownloadAndPostProcess:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Downloader",method:"ResumeDownloadAndPostProcess",persistent:!1},StopDownload:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Downloader",method:"StopDownload",persistent:!1},GetPostProcessingStatus:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Downloader",method:"GetPostProcessingStatus",persistent:!1},StartPostProcessing:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Downloader",method:"StartPostProcessing",persistent:!1},TriggerAutoUpdate:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Downloader",method:"TriggerAutoUpdate",persistent:!1},RegisterCheckForUpdateProgress:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Downloader",method:"RegisterCheckForUpdateProgress",persistent:!0},RegisterDownloadProgress:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Downloader",method:"RegisterDownloadProgress",persistent:!0},RegisterPostProcessingProgress:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Downloader",method:"RegisterPostProcessingProgress",persistent:!0},RegisterAutoUpdateProgress:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Downloader",method:"RegisterAutoUpdateProgress",persistent:!0},CreateProfileFromSourceProfile:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Downloader",method:"CreateProfileFromSourceProfile",persistent:!1},GetUpdateChannel:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Downloader",method:"GetUpdateChannel",persistent:!1},SetUpdateChannel:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Downloader",method:"SetUpdateChannel",persistent:!1}},Gallery:{GalleryNotifications:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gallery",method:"GalleryNotifications",persistent:!0},MontageNotification:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gallery",method:"MontageNotification",persistent:!0},PathChangeNotification:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gallery",method:"PathChangeNotification",persistent:!0},TempFolderChangeNotification:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gallery",method:"TempFolderChangeNotification",persistent:!0},GalleryCapStateChangeNotification:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gallery",method:"GalleryCapStateChangeNotification",persistent:!0},GalleryUpdatedNotification:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gallery",method:"GalleryUpdatedNotification",persistent:!0},GetFolderListing:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gallery",method:"GetFolderListing",persistent:!1},GetAppStats:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gallery",method:"GetAppStats",persistent:!1},GetAppUGC:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gallery",method:"GetAppUGC",persistent:!1},RemoveGalleryItem:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gallery",method:"RemoveGalleryItem",persistent:!1},EnumerateDrives:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gallery",method:"EnumerateDrives",persistent:!1},GetFileMetadata:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gallery",method:"GetFileMetadata",persistent:!1},GetEventData:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gallery",method:"GetEventData",persistent:!1},GetThumbnail:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gallery",method:"GetThumbnail",persistent:!1},GetFolderCRC:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gallery",method:"GetFolderCRC",persistent:!1},GetImageFileDimensions:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gallery",method:"GetImageFileDimensions",persistent:!1},CopyFile:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gallery",method:"CopyFile",persistent:!1},MoveFile:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gallery",method:"MoveFile",persistent:!1},IsDirectoryWriteable:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gallery",method:"IsDirectoryWriteable",persistent:!1},GetSettings:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gallery",method:"GetSettings",persistent:!1},SetSettings:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gallery",method:"SetSettings",persistent:!1},GetDriveInfo:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gallery",method:"GetDriveInfo",persistent:!1},CancelPathUpdate:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gallery",method:"CancelPathUpdate",persistent:!1},GetRecentUGC:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gallery",method:"GetRecentUGC",persistent:!1},CheckDiskSpace:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gallery",method:"CheckDiskSpace",persistent:!1},EnqueuePendingHighlight:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gallery",method:"EnqueuePendingHighlight",persistent:!1},OpenHighlightsGroupSummary:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gallery",method:"OpenHighlightsGroupSummary",persistent:!1},GetHighlightsCount:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gallery",method:"GetHighlightsCount",persistent:!1},DeleteGroupHighlights:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gallery",method:"DeleteGroupHighlights",persistent:!1},WriteEncryptedBitmap:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gallery",method:"WriteEncryptedBitmap",persistent:!1},TranscodeMediaFile:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gallery",method:"TranscodeMediaFile",persistent:!1},CreateMontage:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gallery",method:"CreateMontage",persistent:!1},CreateMontageFromRecipe:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gallery",method:"CreateMontageFromRecipe",persistent:!1},CancelMontage:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gallery",method:"CancelMontage",persistent:!1},UpdateMontageProgress:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gallery",method:"UpdateMontageProgress",persistent:!1},Trim:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gallery",method:"Trim",persistent:!1},AddMeme:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gallery",method:"AddMeme",persistent:!1},EngraveMP4:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gallery",method:"EngraveMP4",persistent:!1},DeletePreview:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gallery",method:"DeletePreview",persistent:!1},PreviewPathInfo:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gallery",method:"PreviewPathInfo",persistent:!1},GetMontageCloudConfig:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gallery",method:"GetMontageCloudConfig",persistent:!1},MigrateHighlightsTracker:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gallery",method:"MigrateHighlightsTracker",persistent:!1}},Gameshare:{CreateSession:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"GameShare",method:"CreateSession",persistent:!1},DeleteSession:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"GameShare",method:"DeleteSession",persistent:!1},ModifySession:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"GameShare",method:"ModifySession",persistent:!1},ConfigureControllerMapping:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"GameShare",method:"ConfigureControllerMapping",persistent:!1},GetFullScreenProcessId:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"GameShare",method:"GetFullScreenProcessId",persistent:!1},CreateSessionNotification:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"GameShare",method:"CreateSessionNotification",persistent:!0},SessionStatusUpdateNotification:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"GameShare",method:"SessionStatusUpdateNotification",persistent:!0},AudioDeviceChangeNotification:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"GameShare",method:"AudioDeviceChangeNotification",persistent:!0}},Gamestream:{GetServerStatus:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gamestream",method:"GetServerStatus",persistent:!1},SetServerStatus:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gamestream",method:"SetServerStatus",persistent:!1},GetPairedDevices:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gamestream",method:"GetPairedDevices",persistent:!1},RemovePairedDevices:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gamestream",method:"RemovePairedDevices",persistent:!1},RegisterPairedDeviceNotification:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gamestream",method:"RegisterPairedDeviceNotification",persistent:!0},RegisterShieldDeviceNotification:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gamestream",method:"RegisterShieldDeviceNotification",persistent:!0},RespondToUpdateNotification:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gamestream",method:"RespondToUpdateNotification",persistent:!1},GetAppsList:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gamestream",method:"GetAppsList",persistent:!1},AddAppCollectorItem:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gamestream",method:"AddAppCollectorItem",persistent:!1},RemoveAppCollectorItem:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gamestream",method:"RemoveAppCollectorItem",persistent:!1},EditAppCollectorItem:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Gamestream",method:"EditAppCollectorItem",persistent:!1}},Httprequest:{HttpRequest:{legacyCommand:"QUERY_HTTP_REQUEST",system:"CrimsonNative",module:"HttpRequest",method:"HttpRequest",persistent:!1},CancelHttpRequest:{legacyCommand:"CANCEL_HTTP_REQUEST",system:"CrimsonNative",module:"HttpRequest",method:"CancelHttpRequest",persistent:!1}},Httpserver:{StartHttpServer:{legacyCommand:"QUERY_HTTPSERVER_START",system:"CrimsonNative",module:"Httpserver",method:"StartHttpServer",persistent:!0},StopHttpServer:{legacyCommand:"QUERY_HTTPSERVER_STOP",system:"CrimsonNative",module:"Httpserver",method:"StopHttpServer",persistent:!1},SendRedirectResponse:{legacyCommand:"QUERY_HTTPSERVER_REDIRECTRESPONSE",system:"CrimsonNative",module:"Httpserver",method:"SendRedirectResponse",persistent:!1}},Ipc:{Pop:{legacyCommand:"QUERY_IPC_POP_MESSAGE",system:"CrimsonNative",module:"Ipc",method:"Pop",persistent:!1},Push:{legacyCommand:"QUERY_IPC_PUSH_MESSAGE",system:"CrimsonNative",module:"Ipc",method:"Push",persistent:!1},LoginStatus:{legacyCommand:"QUERY_GFN_LOGIN_STATUS",system:"CrimsonNative",module:"Ipc",method:"LoginStatus",persistent:!1}},Jarvis:{MonitorLoginStatus:{legacyCommand:"JARVIS_MONITOR_LOGIN_STATUS",system:"CrimsonNative",module:"Jarvis",method:"MonitorLoginStatus",persistent:!0},Login:{legacyCommand:"JARVIS_LOGIN",system:"CrimsonNative",module:"Jarvis",method:"Login",persistent:!1},Logout:{legacyCommand:"JARVIS_LOGOUT",system:"CrimsonNative",module:"Jarvis",method:"Logout",persistent:!1},QueryToken:{legacyCommand:"QUERY_TOKEN",system:"CrimsonNative",module:"Jarvis",method:"QueryToken",persistent:!1}},Loginid:{AddAppInfoToPersistence:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LoginId",method:"AddAppInfoToPersistence",persistent:!1},DeleteAppInfoFromPersistence:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LoginId",method:"DeleteAppInfoFromPersistence",persistent:!1},GetAllAppInfoFromPersistence:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LoginId",method:"GetAllAppInfoFromPersistence",persistent:!1}},Nativeauth:{syncSessionData:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NativeAuth",method:"syncSessionData",persistent:!1},initiateLogIn:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NativeAuth",method:"initiateLogIn",persistent:!1},initiateLogOut:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NativeAuth",method:"initiateLogOut",persistent:!1},initiateLogInALS:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NativeAuth",method:"initiateLogInALS",persistent:!1}},Nvaccount:{GetEULAAccepted:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvAccount",method:"GetEULAAccepted",persistent:!1},SetEULAAccepted:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvAccount",method:"SetEULAAccepted",persistent:!1},OnLogin:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvAccount",method:"OnLogin",persistent:!1},OnLogout:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvAccount",method:"OnLogout",persistent:!1},GetUserAccount:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvAccount",method:"GetUserAccount",persistent:!1},GetIdToken:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvAccount",method:"GetIdToken",persistent:!1},RefreshConsent:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvAccount",method:"RefreshConsent",persistent:!1},GetUserId:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvAccount",method:"GetUserId",persistent:!1},UserIdChangedNotification:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvAccount",method:"UserIdChangedNotification",persistent:!0},UserConsentChangedNotification:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvAccount",method:"UserConsentChangedNotification",persistent:!0},GetPrivacySettings:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvAccount",method:"GetPrivacySettings",persistent:!1},SetPrivacySettings:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvAccount",method:"SetPrivacySettings",persistent:!1},GetPrivacySettingsConsentInformation:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvAccount",method:"GetPrivacySettingsConsentInformation",persistent:!1},PrivacySettingsConsentInformationChangedNotification:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvAccount",method:"PrivacySettingsConsentInformationChangedNotification",persistent:!0},PrivacySettingsChangedNotification:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvAccount",method:"PrivacySettingsChangedNotification",persistent:!0},GetUserAccountAndDeviceConsent:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvAccount",method:"GetUserAccountAndDeviceConsent",persistent:!1}},Nvcamera:{NvCameraResponseNotification:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCamera",method:"NvCameraResponseNotification",persistent:!0},NvCameraFilterResponseNotification:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCamera",method:"NvCameraFilterResponseNotification",persistent:!0},NvCameraUIControlNotificationData:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCamera",method:"NvCameraUIControlNotificationData",persistent:!0},NgxAIUpResNotifications:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCamera",method:"NgxAIUpResNotifications",persistent:!0},SetAnselEnable:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCamera",method:"SetAnselEnable",persistent:!1},GetFeatureSet:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCamera",method:"GetFeatureSet",persistent:!1},GetProcessInfo:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCamera",method:"GetProcessInfo",persistent:!1},GetNvCameraConfig:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCamera",method:"GetNvCameraConfig",persistent:!1},GetVersion:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCamera",method:"GetVersion",persistent:!1},AnselUIReady:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCamera",method:"AnselUIReady",persistent:!1},GetAnselCaptureTypes:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCamera",method:"GetAnselCaptureTypes",persistent:!1},GetAnselEnabledStatus:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCamera",method:"GetAnselEnabledStatus",persistent:!1},SetLanguage:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCamera",method:"SetLanguage",persistent:!1},SetNvCameraConfig:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCamera",method:"SetNvCameraConfig",persistent:!1},CaptureScreenshot:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCamera",method:"CaptureScreenshot",persistent:!1},GetCaptureResolutions:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCamera",method:"GetCaptureResolutions",persistent:!1},SetFilter:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCamera",method:"SetFilter",persistent:!1},GetCurrentFilterInfo:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCamera",method:"GetCurrentFilterInfo",persistent:!1},ResetFilter:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCamera",method:"ResetFilter",persistent:!1},InsertFilter:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCamera",method:"InsertFilter",persistent:!1},RemoveFilter:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCamera",method:"RemoveFilter",persistent:!1},MoveFilter:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCamera",method:"MoveFilter",persistent:!1},GetFilterStackInfo:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCamera",method:"GetFilterStackInfo",persistent:!1},ResetFilterStack:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCamera",method:"ResetFilterStack",persistent:!1},SetFilterAttribute:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCamera",method:"SetFilterAttribute",persistent:!1},SetFilterAndAttributes:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCamera",method:"SetFilterAndAttributes",persistent:!1},CancelCapture:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCamera",method:"CancelCapture",persistent:!1},SetCameraControlFovRoll:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCamera",method:"SetCameraControlFovRoll",persistent:!1},GetCameraControlFov:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCamera",method:"GetCameraControlFov",persistent:!1},GetCameraRangeFovRoll:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCamera",method:"GetCameraRangeFovRoll",persistent:!1},SetCameraGridOfThirds:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCamera",method:"SetCameraGridOfThirds",persistent:!1},SetAnselRedirection:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCamera",method:"SetAnselRedirection",persistent:!1},SendEnableRedirectionToSP:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCamera",method:"SendEnableRedirectionToSP",persistent:!0},MouseEventToNvcamera:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCamera",method:"MouseEventToNvcamera",persistent:!1},KeyboardEventToNvcamera:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCamera",method:"KeyboardEventToNvcamera",persistent:!1},GetFreestyleWhitelisted:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCamera",method:"GetFreestyleWhitelisted",persistent:!1},GetNvCameraOnBusStatus:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCamera",method:"GetNvCameraOnBusStatus",persistent:!1},StartNgxAIUpRes:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCamera",method:"StartNgxAIUpRes",persistent:!1},CancelNgxAIUpRes:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCamera",method:"CancelNgxAIUpRes",persistent:!1},AnselShotSavedNotification:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCamera",method:"AnselShotSavedNotification",persistent:!0},SetCMSInfo:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCamera",method:"SetCMSInfo",persistent:!1}},Nvdriverdiagnostics:{AddNocatFrameEvent:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvDriverDiagnostics",method:"AddNocatFrameEvent",persistent:!1}},Nvkvstorage:{Write:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvKVStorage",method:"Write",persistent:!1},Read:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvKVStorage",method:"Read",persistent:!1},Delete:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvKVStorage",method:"Delete",persistent:!1},Notification:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvKVStorage",method:"Notification",persistent:!0}},Nvlocalizedconfig:{LocalizationDataChangeNotification:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvLocalizedConfig",method:"LocalizationDataChangeNotification",persistent:!0},GetLocalizationData:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvLocalizedConfig",method:"GetLocalizationData",persistent:!1}},Overrides:{getConfig:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Overrides",method:"getConfig",persistent:!1},launch:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Overrides",method:"launch",persistent:!1},apply:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Overrides",method:"apply",persistent:!1},reset:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Overrides",method:"reset",persistent:!1},download:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Overrides",method:"download",persistent:!1}},Remotelog:{StartStreamingLog:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"RemoteLog",method:"StartStreamingLog",persistent:!1},SessionIdUpdated:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"RemoteLog",method:"SessionIdUpdated",persistent:!1},StopStreamingLog:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"RemoteLog",method:"StopStreamingLog",persistent:!1}},Sharedstorage:{Read:{legacyCommand:"QUERY_READ_SHARED_STORAGE",system:"CrimsonNative",module:"SharedStorage",method:"Read",persistent:!1},Write:{legacyCommand:"QUERY_WRITE_SHARED_STORAGE",system:"CrimsonNative",module:"SharedStorage",method:"Write",persistent:!1},Remove:{legacyCommand:"QUERY_REMOVE_FROM_SHARED_STORAGE",system:"CrimsonNative",module:"SharedStorage",method:"Remove",persistent:!1},Cache:{legacyCommand:"QUERY_CACHE_SHARED_STORAGE",system:"CrimsonNative",module:"SharedStorage",method:"Cache",persistent:!1},PostCacheUpdate:{legacyCommand:"QUERY_POST_CACHE_UPDATE_SHARED_STORAGE",system:"CrimsonNative",module:"SharedStorage",method:"PostCacheUpdate",persistent:!1}},Subscriptioninfo:{InitializeSubscriptionProductSku:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"SubscriptionInfo",method:"InitializeSubscriptionProductSku",persistent:!1}},Survey:{Launch:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Survey",method:"Launch",persistent:!1}},Systeminfo:{GetSystemInfo:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"SystemInfo",method:"GetSystemInfo",persistent:!1},GetClientHeadersInfo:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"SystemInfo",method:"GetClientHeadersInfo",persistent:!1},GetDeviceId:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"SystemInfo",method:"GetDeviceId",persistent:!1},GetBrowserInfo:{legacyCommand:"QUERY_BROWSER_INFO",system:"CrimsonNative",module:"SystemInfo",method:"GetBrowserInfo",persistent:!1},GetStreamingSupportInfo:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"SystemInfo",method:"GetStreamingSupportInfo",persistent:!1},GetNetworkTypeChangedInfo:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"SystemInfo",method:"GetNetworkTypeChangedInfo",persistent:!1},DNSLookup:{legacyCommand:"QUERY_DNS",system:"CrimsonNative",module:"SystemInfo",method:"DNSLookup",persistent:!1}},Telemetry:{SendGridServerAnalyticsEvent:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Telemetry",method:"SendGridServerAnalyticsEvent",persistent:!1}},Update:{ReadTicket:{legacyCommand:"QUERY_READ_UPDATE_TICKET",system:"CrimsonNative",module:"Update",method:"ReadTicket",persistent:!1}},Windowcontrol:{Maximize:{legacyCommand:"QUERY_WIN_MAXIMIZE",system:"CrimsonNative",module:"WindowControl",method:"Maximize",persistent:!1},Minimize:{legacyCommand:"QUERY_WIN_MINIMIZE",system:"CrimsonNative",module:"WindowControl",method:"Minimize",persistent:!1},Restore:{legacyCommand:"QUERY_WIN_RESTORE",system:"CrimsonNative",module:"WindowControl",method:"Restore",persistent:!1},RestoreFromFullScreen:{legacyCommand:"QUERY_WIN_RESTORE_FROM_FULLSCREEN",system:"CrimsonNative",module:"WindowControl",method:"RestoreFromFullScreen",persistent:!1},Resize:{legacyCommand:"QUERY_WIN_RECT",system:"CrimsonNative",module:"WindowControl",method:"Resize",persistent:!1},Close:{legacyCommand:"QUERY_WIN_CLOSE",system:"CrimsonNative",module:"WindowControl",method:"Close",persistent:!1},Focus:{legacyCommand:"QUERY_WIN_FOCUS",system:"CrimsonNative",module:"WindowControl",method:"Focus",persistent:!1},RequestUserAttention:{legacyCommand:"QUERY_REQUEST_USER_ATTENTION",system:"CrimsonNative",module:"WindowControl",method:"RequestUserAttention",persistent:!1},EnableCloseButton:{legacyCommand:"QUERY_WIN_ALLOW_CLOSE",system:"CrimsonNative",module:"WindowControl",method:"EnableCloseButton",persistent:!1},SynthesizeClickEvent:{legacyCommand:"QUERY_SYNTHESIZE_CLICK_EVENT",system:"CrimsonNative",module:"WindowControl",method:"SynthesizeClickEvent",persistent:!1}},Windowevents:{RegisterWindowEventsCallback:{legacyCommand:"QUERY_REGISTER_WINDOW_EVENTS_CALLBACK",system:"CrimsonNative",module:"WindowEvents",method:"RegisterWindowEventsCallback",persistent:!0}}},Gfe:{Driverinstall:{InstallAsync:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DriverInstall",method:"InstallAsync",persistent:!1},SetState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DriverInstall",method:"SetState",persistent:!1},GetState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DriverInstall",method:"GetState",persistent:!1},RegisterProgressNotification:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DriverInstall",method:"RegisterProgressNotification",persistent:!0},RegisterFormNotification:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DriverInstall",method:"RegisterFormNotification",persistent:!0}},Driverupdaterecommendation:{GetDriverUpdateRecommendation:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DriverUpdateRecommendation",method:"GetDriverUpdateRecommendation",persistent:!1},GetUserDriverTypePreference:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DriverUpdateRecommendation",method:"GetUserDriverTypePreference",persistent:!1},SetUserDriverTypePreference:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DriverUpdateRecommendation",method:"SetUserDriverTypePreference",persistent:!1},GetAutomaticDriverDownloadEnabled:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DriverUpdateRecommendation",method:"GetAutomaticDriverDownloadEnabled",persistent:!1},SetAutomaticDriverDownloadEnabled:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DriverUpdateRecommendation",method:"SetAutomaticDriverDownloadEnabled",persistent:!1},StartDriverUpdateCheck:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DriverUpdateRecommendation",method:"StartDriverUpdateCheck",persistent:!1},RegisterDriverUpdateCheckProgressNotifications:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DriverUpdateRecommendation",method:"RegisterDriverUpdateCheckProgressNotifications",persistent:!0},GetGRDEditorPreviewMode:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DriverUpdateRecommendation",method:"GetGRDEditorPreviewMode",persistent:!1},GetDriverUpdateNotificationEnabled:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DriverUpdateRecommendation",method:"GetDriverUpdateNotificationEnabled",persistent:!1},SetDriverUpdateNotificationEnabled:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DriverUpdateRecommendation",method:"SetDriverUpdateNotificationEnabled",persistent:!1}},Gfnsdk:{Initialize:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"GfnSdk",method:"Initialize",persistent:!1},StartStreaming:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"GfnSdk",method:"StartStreaming",persistent:!1}},Localgames:{GetApplications:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"GetApplications",persistent:!1},RegisterApplicationChangedNotifications:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"RegisterApplicationChangedNotifications",persistent:!0},RegisterApplicationRemovedNotifications:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"RegisterApplicationRemovedNotifications",persistent:!0},StartApplicationScan:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"StartApplicationScan",persistent:!1},RegisterApplicationScanProgressNotifications:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"RegisterApplicationScanProgressNotifications",persistent:!0},GetLastApplicationScanTime:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"GetLastApplicationScanTime",persistent:!1},LaunchApplication:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"LaunchApplication",persistent:!1},GetLauncherPID:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"GetLauncherPID",persistent:!1},GetApplicationSearchPaths:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"GetApplicationSearchPaths",persistent:!1},AddApplicationSearchPath:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"AddApplicationSearchPath",persistent:!1},RemoveApplicationSearchPath:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"RemoveApplicationSearchPath",persistent:!1},GetVOPSStatus:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"GetVOPSStatus",persistent:!1},GetVOPSSettingsInfo:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"GetVOPSSettingsInfo",persistent:!1},RegisterVOPSReadyNotifications:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"RegisterVOPSReadyNotifications",persistent:!0},GetBatteryBoostState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"GetBatteryBoostState",persistent:!1},SetBatteryBoostState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"SetBatteryBoostState",persistent:!1},GetBatteryBoostSupportState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"GetBatteryBoostSupportState",persistent:!1},GetWhisperModeState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"GetWhisperModeState",persistent:!1},SetWhisperModeState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"SetWhisperModeState",persistent:!1},RegisterWhisperModeStateNotifications:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"RegisterWhisperModeStateNotifications",persistent:!0},GetWhisperModeSupportState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"GetWhisperModeSupportState",persistent:!1},RegisterWhisperModeSupportStateNotifications:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"RegisterWhisperModeSupportStateNotifications",persistent:!0},GetSettingsTranslations:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"GetSettingsTranslations",persistent:!1},GetSettingsSpace:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"GetSettingsSpace",persistent:!1},SetTargetSettings:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"SetTargetSettings",persistent:!1},GetApplicationState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"GetApplicationState",persistent:!1},RegisterApplicationStateChangedNotifications:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"RegisterApplicationStateChangedNotifications",persistent:!0}}},Gfn:{Gfnsdkhost:{UpdateStreamerStatus:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"GfnSdkHost",method:"UpdateStreamerStatus",persistent:!1},OnMessageToSDKClient:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"GfnSdkHost",method:"OnMessageToSDKClient",persistent:!1},OnMessageFromSDKClient:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"GfnSdkHost",method:"OnMessageFromSDKClient",persistent:!0},SendCustomMessage:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"GfnSdkHost",method:"SendCustomMessage",persistent:!1},OnCustomMessageNotification:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"GfnSdkHost",method:"OnCustomMessageNotification",persistent:!0}},Networktest:{Start:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NetworkTest",method:"Start",persistent:!1},AuthTokenRequest:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NetworkTest",method:"AuthTokenRequest",persistent:!0},NetworkTestFinishedCallback:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NetworkTest",method:"NetworkTestFinishedCallback",persistent:!0},UpdateAuthToken:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NetworkTest",method:"UpdateAuthToken",persistent:!1},ConfigureNetworkTestSettings:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NetworkTest",method:"ConfigureNetworkTestSettings",persistent:!1},RegisterCallback:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NetworkTest",method:"RegisterCallback",persistent:!1}},Serverrouting:{PerformRouting:{legacyCommand:"QUERY_GFN_LATENCY_BASED_ROUTING",system:"CrimsonNative",module:"ServerRouting",method:"PerformRouting",persistent:!1}},Streamer:{Launch:{legacyCommand:"QUERY_STREAMER_LAUNCH",system:"CrimsonNative",module:"Streamer",method:"Launch",persistent:!1},AddDesktopShortcut:{legacyCommand:"QUERY_STREAMER_INSTALL",system:"CrimsonNative",module:"Streamer",method:"AddDesktopShortcut",persistent:!1}},Streaming:{Start:{legacyCommand:"QUERY_GFN_START",system:"CrimsonNative",module:"Streaming",method:"Start",persistent:!1},Prepare:{legacyCommand:"QUERY_GFN_PREPARE",system:"CrimsonNative",module:"Streaming",method:"Prepare",persistent:!1},SetAuthInfo:{legacyCommand:"QUERY_GFN_SET_AUTH_INFO",system:"CrimsonNative",module:"Streaming",method:"SetAuthInfo",persistent:!1},SetAuthToken:{legacyCommand:"QUERY_GFN_SET_AUTH_TOKEN",system:"CrimsonNative",module:"Streaming",method:"SetAuthToken",persistent:!1},SetPrefetchedSettings:{legacyCommand:"QUERY_GFN_SET_PREFETCHED_SETTINGS",system:"CrimsonNative",module:"Streaming",method:"SetPrefetchedSettings",persistent:!1},Stop:{legacyCommand:"QUERY_GFN_STOP",system:"CrimsonNative",module:"Streaming",method:"Stop",persistent:!1},Cleanup:{legacyCommand:"QUERY_GFN_CLEANUP",system:"CrimsonNative",module:"Streaming",method:"Cleanup",persistent:!1},GetActiveSessions:{legacyCommand:"QUERY_GFN_GET_ACTIVE_SESSIONS",system:"CrimsonNative",module:"Streaming",method:"GetActiveSessions",persistent:!1},GetSessionInfo:{legacyCommand:"QUERY_GFN_GET_SESSION_INFO",system:"CrimsonNative",module:"Streaming",method:"GetSessionInfo",persistent:!1},VsyncToggle:{legacyCommand:"QUERY_GFN_IS_VSYNC_TOGGLE_SUPPORTED",system:"CrimsonNative",module:"Streaming",method:"VsyncToggle",persistent:!1},Cancel:{legacyCommand:"QUERY_GFN_CANCEL",system:"CrimsonNative",module:"Streaming",method:"Cancel",persistent:!1},Resume:{legacyCommand:"QUERY_GFN_RESUME",system:"CrimsonNative",module:"Streaming",method:"Resume",persistent:!1},PauseStreaming:{legacyCommand:"QUERY_GFN_PAUSE_STREAMING",system:"CrimsonNative",module:"Streaming",method:"PauseStreaming",persistent:!1},UpdateRemoteConfig:{legacyCommand:"QUERY_GFN_UPDATE_REMOTE_CONFIG",system:"CrimsonNative",module:"Streaming",method:"UpdateRemoteConfig",persistent:!1},RegisterCallback:{legacyCommand:"QUERY_GFN_REGISTER_CALLBACK",system:"CrimsonNative",module:"Streaming",method:"RegisterCallback",persistent:!0},OpenOsr:{legacyCommand:"QUERY_WIN_OPEN_OSR",system:"CrimsonNative",module:"Streaming",method:"OpenOsr",persistent:!1},CloseOsr:{legacyCommand:"QUERY_WIN_CLOSE_OSR",system:"CrimsonNative",module:"Streaming",method:"CloseOsr",persistent:!1},OsrRegisterCustomKeyPress:{legacyCommand:"QUERY_OSR_REGISTER_KEYPRESS",system:"CrimsonNative",module:"Streaming",method:"OsrRegisterCustomKeyPress",persistent:!1},OsrUnregisterCustomKeyPress:{legacyCommand:"QUERY_OSR_UNREGISTER_KEYPRESS",system:"CrimsonNative",module:"Streaming",method:"OsrUnregisterCustomKeyPress",persistent:!1},OsrCheckKeyPressCombination:{legacyCommand:"QUERY_OSR_CHECK_KEYPRESS_COMBINATION",system:"CrimsonNative",module:"Streaming",method:"OsrCheckKeyPressCombination",persistent:!1},OsrRegisterKeyPressCallback:{legacyCommand:"QUERY_OSR_REGISTER_KEYPRESS_CALLBACK",system:"CrimsonNative",module:"Streaming",method:"OsrRegisterKeyPressCallback",persistent:!0},OsrSetOverlayResolution:{legacyCommand:"QUERY_OSR_SET_OVERLAY_RESOLUTION",system:"CrimsonNative",module:"Streaming",method:"OsrSetOverlayResolution",persistent:!1},GetStreamVolume:{legacyCommand:"QUERY_GFN_GET_STREAM_VOLUME",system:"CrimsonNative",module:"Streaming",method:"GetStreamVolume",persistent:!1},GetStreamStats:{legacyCommand:"QUERY_GFN_GET_STREAM_STATS",system:"CrimsonNative",module:"Streaming",method:"GetStreamStats",persistent:!1},SetStreamVolume:{legacyCommand:"QUERY_GFN_SET_STREAM_VOLUME",system:"CrimsonNative",module:"Streaming",method:"SetStreamVolume",persistent:!1},SetMagnificationFilter:{legacyCommand:"QUERY_GFN_SET_MAG_FILTER",system:"CrimsonNative",module:"Streaming",method:"SetMagnificationFilter",persistent:!1},GetMagnificationFilterSupport:{legacyCommand:"QUERY_GFN_GET_MAG_FILTER_SUPPORT",system:"CrimsonNative",module:"Streaming",method:"GetMagnificationFilterSupport",persistent:!1},GetMagnificationFilterSupportList:{legacyCommand:"QUERY_GFN_GET_MAG_FILTER_SUPPORT_LIST",system:"CrimsonNative",module:"Streaming",method:"GetMagnificationFilterSupportList",persistent:!1},SetMagnificationFilterSharpness:{legacyCommand:"QUERY_GFN_SET_MAG_FILTER_SHARPNESS",system:"CrimsonNative",module:"Streaming",method:"SetMagnificationFilterSharpness",persistent:!1},ToggleUserInput:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Streaming",method:"ToggleUserInput",persistent:!1},ToggleJoystickMouse:{legacyCommand:"QUERY_GFN_TOGGLE_JOYSTICK_MOUSE",system:"CrimsonNative",module:"Streaming",method:"ToggleJoystickMouse",persistent:!1},SetVirtualKeyboardState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Streaming",method:"SetVirtualKeyboardState",persistent:!1},SetVideoTransforms:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Streaming",method:"SetVideoTransforms",persistent:!1},ToggleStats:{legacyCommand:"QUERY_GFN_TOGGLE_INTERNAL_STATS",system:"CrimsonNative",module:"Streaming",method:"ToggleStats",persistent:!1},RegisterGamepadChangedCallback:{legacyCommand:"QUERY_GFN_REGISTER_GAMEPAD_CHANGE_CALLBACK",system:"CrimsonNative",module:"Streaming",method:"RegisterGamepadChangedCallback",persistent:!0},GetConnectedGamepads:{legacyCommand:"QUERY_GFN_GET_CONNECTED_GAMEPADS",system:"CrimsonNative",module:"Streaming",method:"GetConnectedGamepads",persistent:!1},RegisterGamepadEventCallback:{legacyCommand:"QUERY_GFN_REGISTER_GAMEPAD_EVENT_CALLBACK",system:"CrimsonNative",module:"Streaming",method:"RegisterGamepadEventCallback",persistent:!0},RegisterMicCallback:{legacyCommand:"QUERY_GFN_REGISTER_MIC_CALLBACK",system:"CrimsonNative",module:"Streaming",method:"RegisterMicCallback",persistent:!0},ShouldDefaultEnableMic:{legacyCommand:"QUERY_SHOULD_DEFAULT_ENABLE_MIC",system:"CrimsonNative",module:"Streaming",method:"ShouldDefaultEnableMic",persistent:!1},GetMicState:{legacyCommand:"QUERY_GFN_GET_MIC_STATE",system:"CrimsonNative",module:"Streaming",method:"GetMicState",persistent:!1},SetMicState:{legacyCommand:"QUERY_GFN_SET_MIC_STATE",system:"CrimsonNative",module:"Streaming",method:"SetMicState",persistent:!1},GetKeyboardLayout:{legacyCommand:"QUERY_GFN_GET_KEYBOARD_LAYOUT",system:"CrimsonNative",module:"Streaming",method:"GetKeyboardLayout",persistent:!1},SetKeyboardLayout:{legacyCommand:"QUERY_GFN_SET_KEYBOARD_LAYOUT",system:"CrimsonNative",module:"Streaming",method:"SetKeyboardLayout",persistent:!1},ConfigureStreamingSettings:{legacyCommand:"QUERY_GFN_UPDATE_STREAMING_SETTINGS",system:"CrimsonNative",module:"Streaming",method:"ConfigureStreamingSettings",persistent:!1},SendUnicode:{legacyCommand:"QUERY_GFN_SEND_UNICODE",system:"CrimsonNative",module:"Streaming",method:"SendUnicode",persistent:!1},OnKBLayoutChange:{legacyCommand:"QUERY_GFN_REGISTER_ON_KEYBOARD_LAYOUT_CHANGED",system:"CrimsonNative",module:"Streaming",method:"OnKBLayoutChange",persistent:!0},GetUnifiedAPIVersion:{legacyCommand:"QUERY_GFN_GET_UNIFIED_API_VERSION",system:"CrimsonNative",module:"Streaming",method:"GetUnifiedAPIVersion",persistent:!1},OnIMEWindowClosed:{legacyCommand:"QUERY_GFN_REGISTER_ON_IME_WINDOW_CLOSED",system:"CrimsonNative",module:"Streaming",method:"OnIMEWindowClosed",persistent:!0},OnIMEWindowOpened:{legacyCommand:"QUERY_GFN_REGISTER_ON_IME_WINDOW_OPENED",system:"CrimsonNative",module:"Streaming",method:"OnIMEWindowOpened",persistent:!0},GetDisplayMode:{legacyCommand:"QUERY_GFN_GET_DISPLAY_MODE",system:"CrimsonNative",module:"Streaming",method:"GetDisplayMode",persistent:!1},GetVSyncAutoDisableThresholdStreamingFPS:{legacyCommand:"QUERY_GFN_GET_VSYNC_AUTO_DISABLE_THRESHOLD_FPS",system:"CrimsonNative",module:"Streaming",method:"GetVSyncAutoDisableThresholdStreamingFPS",persistent:!1},GetVSyncAutoDisableThresholdDisplayHz:{legacyCommand:"QUERY_GFN_GET_VSYNC_AUTO_DISABLE_THRESHOLD_DISPLAY_HZ",system:"CrimsonNative",module:"Streaming",method:"GetVSyncAutoDisableThresholdDisplayHz",persistent:!1},SetVsyncEnabled:{legacyCommand:"QUERY_GFN_SET_VSYNC_ENABLED",system:"CrimsonNative",module:"Streaming",method:"SetVsyncEnabled",persistent:!1},SetAdaptiveFramePacingEnabled:{legacyCommand:"QUERY_GFN_SET_ADAPTIVE_FRAME_PACING_ENABLED",system:"CrimsonNative",module:"Streaming",method:"SetAdaptiveFramePacingEnabled",persistent:!1},SetDrcDfcState:{legacyCommand:"QUERY_GFN_SET_DRC_DFC_STATE",system:"CrimsonNative",module:"Streaming",method:"SetDrcDfcState",persistent:!1},SetStreamingMaxBitrate:{legacyCommand:"QUERY_GFN_SET_STREAMING_MAX_BITRATE",system:"CrimsonNative",module:"Streaming",method:"SetStreamingMaxBitrate",persistent:!1},UpdateEventInfoGuids:{legacyCommand:"QUERY_GFN_UPDATE_EVENT_INFO_GUIDS",system:"CrimsonNative",module:"Streaming",method:"UpdateEventInfoGuids",persistent:!1},RegisterGridServerAnalyticsCallback:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Streaming",method:"RegisterGridServerAnalyticsCallback",persistent:!0},GetAutoResolution:{legacyCommand:"QUERY_GFN_GET_AUTO_RESOLUTION",system:"CrimsonNative",module:"Streaming",method:"GetAutoResolution",persistent:!1},StartStreaming:{legacyCommand:"QUERY_GFN_START_STREAMING",system:"CrimsonNative",module:"Streaming",method:"StartStreaming",persistent:!1},UpdateEventDataElements:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Streaming",method:"UpdateEventDataElements",persistent:!1},SendClipboardUpdate:{legacyCommand:"QUERY_GFN_SEND_CLIPBOARD_UPDATE",system:"CrimsonNative",module:"Streaming",method:"SendClipboardUpdate",persistent:!1},AuthorizeAVDevices:{legacyCommand:"QUERY_GFN_AUTH_AV_DEVICES",system:"CrimsonNative",module:"Streaming",method:"AuthorizeAVDevices",persistent:!1},PlatformGetMaxBitRateForArray:{legacyCommand:"QUERY_GFN_PLATFORM_GET_MAXBITRATE_ARRAY",system:"CrimsonNative",module:"Streaming",method:"PlatformGetMaxBitRateForArray",persistent:!1},SendKeyEvent:{legacyCommand:"QUERY_GFN_SEND_KEY_EVENT_TO_STREAMER",system:"CrimsonNative",module:"Streaming",method:"SendKeyEvent",persistent:!1},ToggleISSOStats:{legacyCommand:"QUERY_TOGGLE_ISSO_STATS",system:"CrimsonNative",module:"Streaming",method:"ToggleISSOStats",persistent:!0},IsPlatformSupportsHDRStreaming:{legacyCommand:"QUERY_GFN_IS_PLATFORM_SUPPORTS_HDR_STREAMING",system:"CrimsonNative",module:"Streaming",method:"IsPlatformSupportsHDRStreaming",persistent:!1},RegisterHDRStreamingStatusNotification:{legacyCommand:"QUERY_GFN_REGISTER_HDR_STATUS",system:"CrimsonNative",module:"Streaming",method:"RegisterHDRStreamingStatusNotification",persistent:!0},StreamingCodecNotification:{legacyCommand:"QUERY_STREAMING_CODEC_NOTIFICATION",system:"CrimsonNative",module:"Streaming",method:"StreamingCodecNotification",persistent:!0},StreamingL4SStateNotification:{legacyCommand:"QUERY_STREAMING_L4S_STATE_NOTIFICATION",system:"CrimsonNative",module:"Streaming",method:"StreamingL4SStateNotification",persistent:!0},RecordingTranscodeSupport:{legacyCommand:"QUERY_RECORDING_TRANSCODE_SUPPORT",system:"CrimsonNative",module:"Streaming",method:"RecordingTranscodeSupport",persistent:!0},IsPlatformSupportFps:{legacyCommand:"QUERY_GFN_IS_PLATFORM_SUPPORT_FPS",system:"CrimsonNative",module:"Streaming",method:"IsPlatformSupportFps",persistent:!1},CalculateDataUsage:{legacyCommand:"QUERY_GFN_CALCULATE_DATA_USAGE",system:"CrimsonNative",module:"Streaming",method:"CalculateDataUsage",persistent:!1},UpdateAdState:{legacyCommand:"QUERY_GFN_UPDATE_AD_STATE",system:"CrimsonNative",module:"Streaming",method:"UpdateAdState",persistent:!1},GetPlatformCloudGsyncCapabilities:{legacyCommand:"QUERY_GFN_GET_PLATFORM_CLOUD_GSYNC_CAPABILITIES",system:"CrimsonNative",module:"Streaming",method:"GetPlatformCloudGsyncCapabilities",persistent:!1},GetDeviceCapabilities:{legacyCommand:"QUERY_GFN_GET_SERIALIZED_DEVICE_CAPABILITIES",system:"CrimsonNative",module:"Streaming",method:"GetDeviceCapabilities",persistent:!1},SetStreamingL4sState:{legacyCommand:"QUERY_GFN_SET_STREAMING_L4S_STATE",system:"CrimsonNative",module:"Streaming",method:"SetStreamingL4sState",persistent:!1},PrefetchDeviceCapabilities:{legacyCommand:"QUERY_GFN_PREFETCH_DEVICE_CAPABILITIES",system:"CrimsonNative",module:"Streaming",method:"PrefetchDeviceCapabilities",persistent:!1},SetClientSupportsVirtualGamepad:{legacyCommand:"QUERY_SET_CLIENT_SUPPORTS_VIRTUAL_GAMEPAD",system:"CrimsonNative",module:"Streaming",method:"SetClientSupportsVirtualGamepad",persistent:!0},GetGamepadBitmap:{legacyCommand:"QUERY_GET_GAMEPAD_BITMAP",system:"CrimsonNative",module:"Streaming",method:"GetGamepadBitmap",persistent:!0},SetSupportedHidTypes:{legacyCommand:"QUERY_SET_SUPPORTED_HID_TYPES",system:"CrimsonNative",module:"Streaming",method:"SetSupportedHidTypes",persistent:!0},SetMicRecordingEnabled:{legacyCommand:"QUERY_SET_MIC_RECORDING_ENABLED",system:"CrimsonNative",module:"Streaming",method:"SetMicRecordingEnabled",persistent:!1},UpdateVirtualGamepadInput:{legacyCommand:"QUERY_UPDATE_VIRTUAL_GAMEPAD_INPUT",system:"CrimsonNative",module:"Streaming",method:"UpdateVirtualGamepadInput",persistent:!1}}},Nvapp:{Appdiscovery:{AppActionNotification:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"AppDiscovery",method:"AppActionNotification",persistent:!0},InstallApp:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"AppDiscovery",method:"InstallApp",persistent:!1},UninstallApp:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"AppDiscovery",method:"UninstallApp",persistent:!1},GetAppStatus:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"AppDiscovery",method:"GetAppStatus",persistent:!1},GetAppsStatus:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"AppDiscovery",method:"GetAppsStatus",persistent:!1},LaunchApp:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"AppDiscovery",method:"LaunchApp",persistent:!1}},Driverinstall:{InstallAsync:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DriverInstall",method:"InstallAsync",persistent:!1},SetState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DriverInstall",method:"SetState",persistent:!1},GetState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DriverInstall",method:"GetState",persistent:!1},RegisterProgressNotification:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DriverInstall",method:"RegisterProgressNotification",persistent:!0},RegisterFormNotification:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DriverInstall",method:"RegisterFormNotification",persistent:!0}},Driverupdaterecommendation:{GetDriverUpdateRecommendation:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DriverUpdateRecommendation",method:"GetDriverUpdateRecommendation",persistent:!1},GetUserDriverTypePreference:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DriverUpdateRecommendation",method:"GetUserDriverTypePreference",persistent:!1},SetUserDriverTypePreference:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DriverUpdateRecommendation",method:"SetUserDriverTypePreference",persistent:!1},GetUpdateStrategyPreference:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DriverUpdateRecommendation",method:"GetUpdateStrategyPreference",persistent:!1},SetUpdateStrategyPreference:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DriverUpdateRecommendation",method:"SetUpdateStrategyPreference",persistent:!1},GetAutomaticDriverDownloadEnabled:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DriverUpdateRecommendation",method:"GetAutomaticDriverDownloadEnabled",persistent:!1},SetAutomaticDriverDownloadEnabled:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DriverUpdateRecommendation",method:"SetAutomaticDriverDownloadEnabled",persistent:!1},StartDriverUpdateCheck:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DriverUpdateRecommendation",method:"StartDriverUpdateCheck",persistent:!1},RegisterDriverUpdateCheckProgressNotifications:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DriverUpdateRecommendation",method:"RegisterDriverUpdateCheckProgressNotifications",persistent:!0},GetGRDEditorPreviewMode:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DriverUpdateRecommendation",method:"GetGRDEditorPreviewMode",persistent:!1},GetDriverUpdateNotificationEnabled:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DriverUpdateRecommendation",method:"GetDriverUpdateNotificationEnabled",persistent:!1},SetDriverUpdateNotificationEnabled:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DriverUpdateRecommendation",method:"SetDriverUpdateNotificationEnabled",persistent:!1},GetGPUInfo:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DriverUpdateRecommendation",method:"GetGPUInfo",persistent:!1},GetGenericInfo:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DriverUpdateRecommendation",method:"GetGenericInfo",persistent:!1},GetRewardsNotificationPreference:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DriverUpdateRecommendation",method:"GetRewardsNotificationPreference",persistent:!1},SetRewardsNotificationPreference:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DriverUpdateRecommendation",method:"SetRewardsNotificationPreference",persistent:!1},GetLanguagePreference:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DriverUpdateRecommendation",method:"GetLanguagePreference",persistent:!1},SetLanguagePreference:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DriverUpdateRecommendation",method:"SetLanguagePreference",persistent:!1}},Localgames:{GetApplications:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"GetApplications",persistent:!1},RegisterApplicationChangedNotifications:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"RegisterApplicationChangedNotifications",persistent:!0},RegisterApplicationRemovedNotifications:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"RegisterApplicationRemovedNotifications",persistent:!0},StartApplicationScan:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"StartApplicationScan",persistent:!1},RegisterApplicationScanProgressNotifications:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"RegisterApplicationScanProgressNotifications",persistent:!0},GetLastApplicationScanTime:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"GetLastApplicationScanTime",persistent:!1},LaunchApplication:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"LaunchApplication",persistent:!1},GetLauncherPID:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"GetLauncherPID",persistent:!1},GetApplicationSearchPaths:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"GetApplicationSearchPaths",persistent:!1},AddApplicationSearchPath:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"AddApplicationSearchPath",persistent:!1},RemoveApplicationSearchPath:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"RemoveApplicationSearchPath",persistent:!1},GetBatteryBoostState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"GetBatteryBoostState",persistent:!1},SetBatteryBoostState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"SetBatteryBoostState",persistent:!1},GetBatteryBoostSupportState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"GetBatteryBoostSupportState",persistent:!1},GetWhisperModeState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"GetWhisperModeState",persistent:!1},SetWhisperModeState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"SetWhisperModeState",persistent:!1},GetWhisperModeInfo:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"GetWhisperModeInfo",persistent:!1},RegisterWhisperModeStateNotifications:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"RegisterWhisperModeStateNotifications",persistent:!0},GetWhisperModeSupportState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"GetWhisperModeSupportState",persistent:!1},RegisterWhisperModeSupportStateNotifications:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"RegisterWhisperModeSupportStateNotifications",persistent:!0},GetSettingsTranslations:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"GetSettingsTranslations",persistent:!1},GetSettingsSpace:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"GetSettingsSpace",persistent:!1},SetTargetSettings:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"SetTargetSettings",persistent:!1},GetApplicationState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"GetApplicationState",persistent:!1},RegisterApplicationStateChangedNotifications:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"RegisterApplicationStateChangedNotifications",persistent:!0},GetSignedGPUID:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"GetSignedGPUID",persistent:!1},LaunchMSSettings:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"LaunchMSSettings",persistent:!1},SetOOTBStatus:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"SetOOTBStatus",persistent:!1},FindAndGetAppMetadata:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"FindAndGetAppMetadata",persistent:!1},AddManualApplication:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"AddManualApplication",persistent:!1},DeleteManualApplication:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"DeleteManualApplication",persistent:!1},GetAutoOptimizeEnabled:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"GetAutoOptimizeEnabled",persistent:!1},SetAutoOptimizeEnabled:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"SetAutoOptimizeEnabled",persistent:!1},TriggerNGXUpdater:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"LocalGames",method:"TriggerNGXUpdater",persistent:!1}},Nvcpldisplayplugin:{GetDirect3DfeatureLevel:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"GetDirect3DfeatureLevel",persistent:!1},GetGPUInformation:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"GetGPUInformation",persistent:!1},GetSuperResolutionInfo:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"GetSuperResolutionInfo",persistent:!1},GetSuperResolutionCurrentStatus:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"GetSuperResolutionCurrentStatus",persistent:!1},SetSuperResolutionValue:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"SetSuperResolutionValue",persistent:!1},GetSuperResolutionGpuUtilization:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"GetSuperResolutionGpuUtilization",persistent:!1},SetSuperResolutionGpuUtilization:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"SetSuperResolutionGpuUtilization",persistent:!1},GetSuperResolutionIndicatorStatus:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"GetSuperResolutionIndicatorStatus",persistent:!1},GetRTXVideoFlags:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"GetRTXVideoFlags",persistent:!1},SetRTXVSRFlags:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"SetRTXVSRFlags",persistent:!1},SetRTXHDRFlags:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"SetRTXHDRFlags",persistent:!1},SetSuperResolutionIndicatorStatus:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"SetSuperResolutionIndicatorStatus",persistent:!1},GetHDRIndicatorStatus:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"GetHDRIndicatorStatus",persistent:!1},SetHDRIndicatorStatus:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"SetHDRIndicatorStatus",persistent:!1},GetDisableVSROnGameLaunchStatus:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"GetDisableVSROnGameLaunchStatus",persistent:!1},SetDisableVSROnGameLaunchStatus:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"SetDisableVSROnGameLaunchStatus",persistent:!1},GetDisableHDROnGameLaunchStatus:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"GetDisableHDROnGameLaunchStatus",persistent:!1},SetDisableHDROnGameLaunchStatus:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"SetDisableHDROnGameLaunchStatus",persistent:!1},RestoreDefaultVideoSettings:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"RestoreDefaultVideoSettings",persistent:!1},GetHDRInfo:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"GetHDRInfo",persistent:!1},GetHDRCurrentStatus:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"GetHDRCurrentStatus",persistent:!1},SetHDRValue:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"SetHDRValue",persistent:!1},SetHDRInfo:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"SetHDRInfo",persistent:!1},RegisterDisplayChangeNotification:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"RegisterDisplayChangeNotification",persistent:!0},GetGpuCount:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"GetGpuCount",persistent:!1},LaunchApplication:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"LaunchApplication",persistent:!1},IsControlPanelClientInstalled:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"IsControlPanelClientInstalled",persistent:!1},GetDisplaysState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"GetDisplaysState",persistent:!1},SetDisplaysState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"SetDisplaysState",persistent:!1},GetDisplayResolutionList:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"GetDisplayResolutionList",persistent:!1},GetGpuAndDisplayInformation:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"GetGpuAndDisplayInformation",persistent:!1},GetGpuAndDisplaysPhysicalInformation:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"GetGpuAndDisplaysPhysicalInformation",persistent:!1},RestoreDisplaySettings:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"RestoreDisplaySettings",persistent:!1},SetResolution:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"SetResolution",persistent:!1},SetRotation:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"SetRotation",persistent:!1},RevertState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"RevertState",persistent:!1},CancelState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"CancelState",persistent:!1},CommitState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"CommitState",persistent:!1},IdentifyDisplays:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"IdentifyDisplays",persistent:!1},GetSystemCapabilities:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"GetSystemCapabilities",persistent:!1},GetGlobalGsyncState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"GetGlobalGsyncState",persistent:!1},SetGlobalGsyncState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"SetGlobalGsyncState",persistent:!1},GetGsyncIndicator:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"GetGsyncIndicator",persistent:!1},SetGsyncIndicator:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"SetGsyncIndicator",persistent:!1},RestoreGlobalGsyncState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"RestoreGlobalGsyncState",persistent:!1},GetDisplayGsyncState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"GetDisplayGsyncState",persistent:!1},SetDisplayGsyncState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"SetDisplayGsyncState",persistent:!1},GetIsColorSettingsOsControlled:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"GetIsColorSettingsOsControlled",persistent:!1},SetIsColorSettingsOsControlled:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"SetIsColorSettingsOsControlled",persistent:!1},GetColorEnhancementInfo:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"GetColorEnhancementInfo",persistent:!1},SetDynamicRange:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"SetDynamicRange",persistent:!1},SetOutputColorFormat:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"SetOutputColorFormat",persistent:!1},SetDesktopColorDepth:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"SetDesktopColorDepth",persistent:!1},SetOutputColorDepth:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"SetOutputColorDepth",persistent:!1},GetDesktopColorCombinationInfo:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"GetDesktopColorCombinationInfo",persistent:!1},GetDigitalVibranceInfo:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"GetDigitalVibranceInfo",persistent:!1},SetDigitalVibrance:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"SetDigitalVibrance",persistent:!1},GetHueInfo:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"GetHueInfo",persistent:!1},SetHue:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"SetHue",persistent:!1},SetColorCombinationInfo:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"SetColorCombinationInfo",persistent:!1},SetColorAccuracyMode:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"SetColorAccuracyMode",persistent:!1},RestoreColorAccuracyMode:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"RestoreColorAccuracyMode",persistent:!1},GetColorAccuracyMode:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"GetColorAccuracyMode",persistent:!1},GetScalingSettings:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"GetScalingSettings",persistent:!1},SetScalingSettings:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"SetScalingSettings",persistent:!1},SetScalingOverride:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"SetScalingOverride",persistent:!1},FetchCustomTiming:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"FetchCustomTiming",persistent:!1},PerformActionOnCustomResolutionLocalCache:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"PerformActionOnCustomResolutionLocalCache",persistent:!1},GetContentTypeInfo:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"GetContentTypeInfo",persistent:!1},SetContentType:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"SetContentType",persistent:!1},GetIsUpscalingFactorsEnabled:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"GetIsUpscalingFactorsEnabled",persistent:!1},GetDisplayLuid:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"GetDisplayLuid",persistent:!1},RestoreDisplayScaling:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"RestoreDisplayScaling",persistent:!1},RestoreDisplayColorSettings:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"RestoreDisplayColorSettings",persistent:!1},GetIsInfoFrameEnabled:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"GetIsInfoFrameEnabled",persistent:!1},GetScalingPreviewInfo:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"GetScalingPreviewInfo",persistent:!1},GetSurroundOrMosaicConfig:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"GetSurroundOrMosaicConfig",persistent:!1},SetSurroundOrMosaicConfig:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"SetSurroundOrMosaicConfig",persistent:!1},GetDDSState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"GetDDSState",persistent:!1},SetDDSState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"SetDDSState",persistent:!1},DDSBlockingAppPresent:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"DDSBlockingAppPresent",persistent:!1},ACPowerConnected:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"ACPowerConnected",persistent:!1},SetUIState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"SetUIState",persistent:!1},GetUIState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"GetUIState",persistent:!1},DisableAllMosaicGroups:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"DisableAllMosaicGroups",persistent:!1},GetDDSBlockingApps:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"GetDDSBlockingApps",persistent:!1},GetMosaicDisplaySettings:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"GetMosaicDisplaySettings",persistent:!1},ExtendAllDisplays:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"ExtendAllDisplays",persistent:!1},GetSpanIdentifiers:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplDisplayPlugin",method:"GetSpanIdentifiers",persistent:!1}},Nvcplplugin:{GetProfileSettingsInfo:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplPlugin",method:"GetProfileSettingsInfo",persistent:!1},GetProfileInfo:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplPlugin",method:"GetProfileInfo",persistent:!1},GetProfileSettingValue:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplPlugin",method:"GetProfileSettingValue",persistent:!1},GetProfileSettingDefaultValue:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplPlugin",method:"GetProfileSettingDefaultValue",persistent:!1},GetProfileNameFromExe:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplPlugin",method:"GetProfileNameFromExe",persistent:!1},SetProfileSettingValue:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplPlugin",method:"SetProfileSettingValue",persistent:!1},ApplyProfileSettings:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplPlugin",method:"ApplyProfileSettings",persistent:!1},GetProfileJsonStringSettingPossibleValues:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplPlugin",method:"GetProfileJsonStringSettingPossibleValues",persistent:!1},GetProfileStringSettingPossibleValues:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplPlugin",method:"GetProfileStringSettingPossibleValues",persistent:!1},GetProfileScalarSettingPossibleValues:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplPlugin",method:"GetProfileScalarSettingPossibleValues",persistent:!1},RestoreDefaultForProfile:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplPlugin",method:"RestoreDefaultForProfile",persistent:!1},RestoreDefaultForAllProfiles:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplPlugin",method:"RestoreDefaultForAllProfiles",persistent:!1},GetProgramProfileNames:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplPlugin",method:"GetProgramProfileNames",persistent:!1},GetProfilesAndApplicationsInfo:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplPlugin",method:"GetProfilesAndApplicationsInfo",persistent:!1},GetGlobalProfileNames:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplPlugin",method:"GetGlobalProfileNames",persistent:!1},CreateNewProfile:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplPlugin",method:"CreateNewProfile",persistent:!1},DeleteProfile:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplPlugin",method:"DeleteProfile",persistent:!1},GetDynamicBoost:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvCplPlugin",method:"GetDynamicBoost",persistent:!1}},Nvigoutil:{ToggleIGO:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvIGOUtil",method:"ToggleIGO",persistent:!1},GetShadowPlaySupported:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvIGOUtil",method:"GetShadowPlaySupported",persistent:!1},GetShadowPlayStatus:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvIGOUtil",method:"GetShadowPlayStatus",persistent:!1},GetFilterPhotoModeState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvIGOUtil",method:"GetFilterPhotoModeState",persistent:!1},SetFilterPhotoMode:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvIGOUtil",method:"SetFilterPhotoMode",persistent:!1},SetGAssistInstall:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvIGOUtil",method:"SetGAssistInstall",persistent:!1},OpenIGO:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvIGOUtil",method:"OpenIGO",persistent:!1},GetHotkeyShortcut:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvIGOUtil",method:"GetHotkeyShortcut",persistent:!1}},Nvoc:{GetFeatureSupportState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvOc",method:"GetFeatureSupportState",persistent:!1},GetManualOCLimits:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvOc",method:"GetManualOCLimits",persistent:!1},GetLastOcScanResults:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvOc",method:"GetLastOcScanResults",persistent:!1},GetLastIncompleteOcScannerResults:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvOc",method:"GetLastIncompleteOcScannerResults",persistent:!1},GetFanSettings:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvOc",method:"GetFanSettings",persistent:!1},OcScanStatusUpdatesNotifications:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvOc",method:"OcScanStatusUpdatesNotifications",persistent:!0},GetOCConfig:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvOc",method:"GetOCConfig",persistent:!1},GetGpuInfo:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvOc",method:"GetGpuInfo",persistent:!1},GetOCAdminConsent:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvOc",method:"GetOCAdminConsent",persistent:!1},SetOCAdminConsent:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvOc",method:"SetOCAdminConsent",persistent:!1},powerStatusNotification:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvOc",method:"powerStatusNotification",persistent:!0},GetVFPoints:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvOc",method:"GetVFPoints",persistent:!1},EnableCurrentVFPointNotification:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvOc",method:"EnableCurrentVFPointNotification",persistent:!1},CurrentVFPointNotification:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvOc",method:"CurrentVFPointNotification",persistent:!0},GetPerfProfiles:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvOc",method:"GetPerfProfiles",persistent:!1}},Overclockingnvc:{SetManualOCLimits:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"OverClockingNvc",method:"SetManualOCLimits",persistent:!1},StartOcManualScan:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"OverClockingNvc",method:"StartOcManualScan",persistent:!1},StopOcManualScan:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"OverClockingNvc",method:"StopOcManualScan",persistent:!1},EnableBackgroundOcScan:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"OverClockingNvc",method:"EnableBackgroundOcScan",persistent:!1},EnableAutotuneOc:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"OverClockingNvc",method:"EnableAutotuneOc",persistent:!1},RestoreOcDefault:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"OverClockingNvc",method:"RestoreOcDefault",persistent:!1},SetFanSettings:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"OverClockingNvc",method:"SetFanSettings",persistent:!1},SetPerfProfile:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"OverClockingNvc",method:"SetPerfProfile",persistent:!1}},Rise:{RiseSupported:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Rise",method:"RiseSupported",persistent:!1},RiseRequestCompletion:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Rise",method:"RiseRequestCompletion",persistent:!1},RiseRegister:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Rise",method:"RiseRegister",persistent:!1},RiseGameNotification:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Rise",method:"RiseGameNotification",persistent:!1},RiseUpdatesNotifications:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Rise",method:"RiseUpdatesNotifications",persistent:!0},SaveCSV:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Rise",method:"SaveCSV",persistent:!1},VqVoiceQuerySupported:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Rise",method:"VqVoiceQuerySupported",persistent:!1},VqResisterVoiceQuery:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Rise",method:"VqResisterVoiceQuery",persistent:!1},VqVoiceQueryResultNotfication:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Rise",method:"VqVoiceQueryResultNotfication",persistent:!0},VqMicDeviceChangedNotification:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Rise",method:"VqMicDeviceChangedNotification",persistent:!0},VqSetVoiceQuery:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Rise",method:"VqSetVoiceQuery",persistent:!1},VqSetVoicePlayback:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Rise",method:"VqSetVoicePlayback",persistent:!1},VqEnumMicDevices:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Rise",method:"VqEnumMicDevices",persistent:!1},VqEnumLanguages:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Rise",method:"VqEnumLanguages",persistent:!1},VqEnumVoiceCharacters:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Rise",method:"VqEnumVoiceCharacters",persistent:!1},GameAssistSupported:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Rise",method:"GameAssistSupported",persistent:!1},GameAssistCreateSession:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Rise",method:"GameAssistCreateSession",persistent:!1},GameAssistQueryResponseNotfication:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Rise",method:"GameAssistQueryResponseNotfication",persistent:!0},GameAssistSubmitQuery:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Rise",method:"GameAssistSubmitQuery",persistent:!1}}},Qxp:{Driverrollback:{Rollback:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DriverRollback",method:"Rollback",persistent:!1},RollbackInfo:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"DriverRollback",method:"RollbackInfo",persistent:!1}}},Share:{Forager:{CopyConfigTemplate:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Forager",method:"CopyConfigTemplate",persistent:!1},ExtractFrames:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Forager",method:"ExtractFrames",persistent:!1},GetAppInfo:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Forager",method:"GetAppInfo",persistent:!1},LaunchWithNativeApp:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Forager",method:"LaunchWithNativeApp",persistent:!1},ReadWorkspace:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Forager",method:"ReadWorkspace",persistent:!1},ReadFile:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Forager",method:"ReadFile",persistent:!1},SaveWorkspace:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Forager",method:"SaveWorkspace",persistent:!1},TrimVideo:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Forager",method:"TrimVideo",persistent:!1},WriteFile:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"Forager",method:"WriteFile",persistent:!1}},Gear:{GetPreviewOutputInformation:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"GEAR",method:"GetPreviewOutputInformation",persistent:!1},Start:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"GEAR",method:"Start",persistent:!1},StartPreview:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"GEAR",method:"StartPreview",persistent:!1},GetStatus:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"GEAR",method:"GetStatus",persistent:!1},Stop:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"GEAR",method:"Stop",persistent:!1}},Graphicssetting:{GetAIDVCSupport:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"GraphicsSetting",method:"GetAIDVCSupport",persistent:!1},GetAIDVCState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"GraphicsSetting",method:"GetAIDVCState",persistent:!1},SetAIDVCState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"GraphicsSetting",method:"SetAIDVCState",persistent:!1},GetRealtimeAIDVCState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"GraphicsSetting",method:"GetRealtimeAIDVCState",persistent:!1},ToggleNIS2:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"GraphicsSetting",method:"ToggleNIS2",persistent:!1},GetNIS2State:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"GraphicsSetting",method:"GetNIS2State",persistent:!1},SetNIS2Sharpen:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"GraphicsSetting",method:"SetNIS2Sharpen",persistent:!1},GetAIHDRSupport_V2:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"GraphicsSetting",method:"GetAIHDRSupport_V2",persistent:!1},GetAIHDRDisplayInfoForProcess:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"GraphicsSetting",method:"GetAIHDRDisplayInfoForProcess",persistent:!1},GetAIHDRRealTimeState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"GraphicsSetting",method:"GetAIHDRRealTimeState",persistent:!1},GetAIHDRState_V2:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"GraphicsSetting",method:"GetAIHDRState_V2",persistent:!1},SetAIHDRState_V2:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"GraphicsSetting",method:"SetAIHDRState_V2",persistent:!1},GetGPUInfo:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"GraphicsSetting",method:"GetGPUInfo",persistent:!1},GetGenericInfo:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"GraphicsSetting",method:"GetGenericInfo",persistent:!1},GetUserPreferredLanguage:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"GraphicsSetting",method:"GetUserPreferredLanguage",persistent:!1},RegisterUserPreferredLanguageChangeNotification:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"GraphicsSetting",method:"RegisterUserPreferredLanguageChangeNotification",persistent:!1},UserPreferredLanguageChangeNotification:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"GraphicsSetting",method:"UserPreferredLanguageChangeNotification",persistent:!0},DlssOnGameLaunched:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"GraphicsSetting",method:"DlssOnGameLaunched",persistent:!1},GetNGXOverrideSRState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"GraphicsSetting",method:"GetNGXOverrideSRState",persistent:!1},GetNGXOverrideRRState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"GraphicsSetting",method:"GetNGXOverrideRRState",persistent:!1},GetNGXOverrideFGState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"GraphicsSetting",method:"GetNGXOverrideFGState",persistent:!1},SetNGXOverrideFGState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"GraphicsSetting",method:"SetNGXOverrideFGState",persistent:!1},GetFGXState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"GraphicsSetting",method:"GetFGXState",persistent:!1},GetFGXDynamicState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"GraphicsSetting",method:"GetFGXDynamicState",persistent:!1},GetProfileSettingsForNvApp:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"GraphicsSetting",method:"GetProfileSettingsForNvApp",persistent:!1}},Nvperfmon:{EnablePerfStatsNotification:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvPerfMon",method:"EnablePerfStatsNotification",persistent:!1},RegisterPerfStatsNotifications:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvPerfMon",method:"RegisterPerfStatsNotifications",persistent:!0},SetProcessId:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvPerfMon",method:"SetProcessId",persistent:!1},SetMetricSampleSize:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvPerfMon",method:"SetMetricSampleSize",persistent:!1},ResetAverageMetrics:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvPerfMon",method:"ResetAverageMetrics",persistent:!1},GetDefaultLoggingPath:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvPerfMon",method:"GetDefaultLoggingPath",persistent:!1},LoggingToggle:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvPerfMon",method:"LoggingToggle",persistent:!1},AlignLatencyMonitoringRectangle:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvPerfMon",method:"AlignLatencyMonitoringRectangle",persistent:!1},GetRLAMonitorSupport:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvPerfMon",method:"GetRLAMonitorSupport",persistent:!1},ShowFlashIndicator:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvPerfMon",method:"ShowFlashIndicator",persistent:!1},SetFlashIndicatorSize:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvPerfMon",method:"SetFlashIndicatorSize",persistent:!1},GetGpuInfo:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvPerfMon",method:"GetGpuInfo",persistent:!1},powerStatusNotification:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvPerfMon",method:"powerStatusNotification",persistent:!0},CheckRLASupportedDriver:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvPerfMon",method:"CheckRLASupportedDriver",persistent:!1},GetNGXOverrideState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"NvPerfMon",method:"GetNGXOverrideState",persistent:!1}},Osc:{OpenWindow:{legacyCommand:"QUERY_WIN_OPEN_OSC",system:"CrimsonNative",module:"osc",method:"OpenWindow",persistent:!1},CloseWindow:{legacyCommand:"QUERY_WIN_CLOSE_OSC",system:"CrimsonNative",module:"osc",method:"CloseWindow",persistent:!1},IsDisplayInDesktopMode:{legacyCommand:"QUERY_OSC_DISPLAY_IS_DESKTOP_MODE",system:"CrimsonNative",module:"osc",method:"IsDisplayInDesktopMode",persistent:!1},FullscreenState:{legacyCommand:"QUERY_FULLSCREEN_STATE",system:"CrimsonNative",module:"osc",method:"FullscreenState",persistent:!1},SetPainting:{legacyCommand:"QUERY_OSC_SET_PAINTING",system:"CrimsonNative",module:"osc",method:"SetPainting",persistent:!1},SetCursorInfo:{legacyCommand:"QUERY_OSC_SET_CURSOR_INFO",system:"CrimsonNative",module:"osc",method:"SetCursorInfo",persistent:!1},DropUrl:{legacyCommand:"QUERY_OSC_DROP_URL",system:"CrimsonNative",module:"osc",method:"DropUrl",persistent:!1},GenerateKeyboardMessage:{legacyCommand:"QUERY_WIN_KB_MESSAGE",system:"CrimsonNative",module:"osc",method:"GenerateKeyboardMessage",persistent:!1},RegisterCloseCommand:{legacyCommand:"QUERY_OSC_REGISTER_CLOSE_EVENT",system:"CrimsonNative",module:"osc",method:"RegisterCloseCommand",persistent:!0},SetDisplayRects:{legacyCommand:"QUERY_OSC_SET_DISPLAY_RECTS",system:"CrimsonNative",module:"osc",method:"SetDisplayRects",persistent:!1},RegisterResizeEvent:{legacyCommand:"QUERY_OSC_REGISTER_RESIZE_EVENT",system:"CrimsonNative",module:"osc",method:"RegisterResizeEvent",persistent:!0}},Sdk:{},Shareserver:{SetCaptureSupported:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"SetCaptureSupported",persistent:!1},RegisterHotkeyNotifications:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"RegisterHotkeyNotifications",persistent:!0},RegisterGeneralNotifications:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"RegisterGeneralNotifications",persistent:!0},SetTelemtryInfoToShadowPlay:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"SetTelemtryInfoToShadowPlay",persistent:!1},RegisterCaptureStateChangeNotifications:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"RegisterCaptureStateChangeNotifications",persistent:!0},RegisterWindowStateChangeNotifications:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"RegisterWindowStateChangeNotifications",persistent:!0},RegisterBroadcastSessionNotifications:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"RegisterBroadcastSessionNotifications",persistent:!0},CaptureSavedNotification:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"CaptureSavedNotification",persistent:!0},HighlightSavedNotification:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"HighlightSavedNotification",persistent:!0},HighlightCaptureFailureNotification:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"HighlightCaptureFailureNotification",persistent:!0},RegisterSDKNotifications:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"RegisterSDKNotifications",persistent:!0},RegisterAppNotifications:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"RegisterAppNotifications",persistent:!0},GetInitData:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetInitData",persistent:!1},GetMainView:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetMainView",persistent:!1},OpenOsc:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"OpenOsc",persistent:!1},Launch:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"Launch",persistent:!1},SetOverlayReady:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"SetOverlayReady",persistent:!1},GetShadowPlaySupported:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetShadowPlaySupported",persistent:!1},GetShadowPlayStatus:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetShadowPlayStatus",persistent:!1},Get4KSupport:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"Get4KSupport",persistent:!1},GetSupportedBitrates:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetSupportedBitrates",persistent:!1},GetSupportedBitratesFramerates:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetSupportedBitratesFramerates",persistent:!1},GetSupportedResolutions:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetSupportedResolutions",persistent:!1},GetSupportedResolutionsCodecs:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetSupportedResolutionsCodecs",persistent:!1},GetSupportedFramerates:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetSupportedFramerates",persistent:!1},GetQualityDefaultData:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetQualityDefaultData",persistent:!1},GetCaptureState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetCaptureState",persistent:!1},GetCaptureProcessInfo:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetCaptureProcessInfo",persistent:!1},GetCaptureControlPIDMode:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetCaptureControlPIDMode",persistent:!1},GetScreenshotSupport:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetScreenshotSupport",persistent:!1},CaptureScreenshot:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"CaptureScreenshot",persistent:!1},CaptureCustomScreenshot:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"CaptureCustomScreenshot",persistent:!1},CustomScreenshotNotifications:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"CustomScreenshotNotifications",persistent:!0},GetFreestylePreviewBasePath:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetFreestylePreviewBasePath",persistent:!1},StartDiskCapture:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"StartDiskCapture",persistent:!1},StopAndSaveDiskCapture:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"StopAndSaveDiskCapture",persistent:!1},StartBufferedCapture:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"StartBufferedCapture",persistent:!1},StopBufferedCapture:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"StopBufferedCapture",persistent:!1},SaveBufferedCaptureClip:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"SaveBufferedCaptureClip",persistent:!1},EDGEEvent:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"EDGEEvent",persistent:!1},GetInstantReplayEnableStatus:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetInstantReplayEnableStatus",persistent:!1},GetInstantReplayRunningStatus:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetInstantReplayRunningStatus",persistent:!1},GetInstantReplaySettings:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetInstantReplaySettings",persistent:!1},SetInstantReplaySettings:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"SetInstantReplaySettings",persistent:!1},EnableInstantReplay:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"EnableInstantReplay",persistent:!1},SaveInstantReplay:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"SaveInstantReplay",persistent:!1},GetLastInstantReplayLength:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetLastInstantReplayLength",persistent:!1},GetInstantReplayCustomizeData:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetInstantReplayCustomizeData",persistent:!1},GetRecordEnableStatus:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetRecordEnableStatus",persistent:!1},GetRecordRunningStatus:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetRecordRunningStatus",persistent:!1},EnableRecord:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"EnableRecord",persistent:!1},GetRecordSettings:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetRecordSettings",persistent:!1},SetRecordSettings:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"SetRecordSettings",persistent:!1},GetRecordCustomizeData:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetRecordCustomizeData",persistent:!1},EnableBroadcast:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"EnableBroadcast",persistent:!1},PauseBroadcast:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"PauseBroadcast",persistent:!1},GetBroadcastEnableStatus:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetBroadcastEnableStatus",persistent:!1},GetBroadcastRunningStatus:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetBroadcastRunningStatus",persistent:!1},GetBroadcastSupported:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetBroadcastSupported",persistent:!1},GetBroadcastSettings:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetBroadcastSettings",persistent:!1},SetBroadcastSettings:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"SetBroadcastSettings",persistent:!1},SetBroadcastSession:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"SetBroadcastSession",persistent:!1},GetBroadcastPreferredProviderSetting:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetBroadcastPreferredProviderSetting",persistent:!1},SetBroadcastPreferredProviderSetting:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"SetBroadcastPreferredProviderSetting",persistent:!1},GetBroadcastLastProvider:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetBroadcastLastProvider",persistent:!1},SetBroadcastLastProvider:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"SetBroadcastLastProvider",persistent:!1},GetBroadcastTitle:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetBroadcastTitle",persistent:!1},GetBroadcast2K:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetBroadcast2K",persistent:!1},GetBroadcastFacebookLiveSupport:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetBroadcastFacebookLiveSupport",persistent:!1},GetBroadcastIngestServer:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetBroadcastIngestServer",persistent:!1},SetBroadcastIngestServer:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"SetBroadcastIngestServer",persistent:!1},SetBroadcastViewerCountImage:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"SetBroadcastViewerCountImage",persistent:!1},SetBroadcastViewerMax:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"SetBroadcastViewerMax",persistent:!1},GetRecordBroadcastConcurrencySupport:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetRecordBroadcastConcurrencySupport",persistent:!1},GetRecordGamestreamConcurrencySupport:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetRecordGamestreamConcurrencySupport",persistent:!1},GetDesktopCaptureEnabled:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetDesktopCaptureEnabled",persistent:!1},SetDesktopCaptureEnabled:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"SetDesktopCaptureEnabled",persistent:!1},GetDesktopCaptureSupported:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetDesktopCaptureSupported",persistent:!1},GetDesktopCaptureSupportReason:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetDesktopCaptureSupportReason",persistent:!1},GetHevcSupportedState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetHevcSupportedState",persistent:!1},GetAudioMode:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetAudioMode",persistent:!1},SetAudioMode:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"SetAudioMode",persistent:!1},GetAudioSettings:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetAudioSettings",persistent:!1},SetAudioSettings:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"SetAudioSettings",persistent:!1},GetMicCount:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetMicCount",persistent:!1},GetMicMode:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetMicMode",persistent:!1},SetMicMode:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"SetMicMode",persistent:!1},GetMicSettings:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetMicSettings",persistent:!1},SetMicSettings:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"SetMicSettings",persistent:!1},MicPTTMode:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"MicPTTMode",persistent:!1},EnableWebcam:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"EnableWebcam",persistent:!1},ToggleWebcam:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"ToggleWebcam",persistent:!1},GetWebcamEnable:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetWebcamEnable",persistent:!1},GetWebcamShown:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetWebcamShown",persistent:!1},GetWebcamPresent:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetWebcamPresent",persistent:!1},GetWebcamPreviewState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetWebcamPreviewState",persistent:!1},EnableWebcamPreview:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"EnableWebcamPreview",persistent:!1},GetHighlightsActive:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetHighlightsActive",persistent:!1},GetHighlightsEnable:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetHighlightsEnable",persistent:!1},SetHighlightsEnable:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"SetHighlightsEnable",persistent:!1},GetSDKInstanceActive:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetSDKInstanceActive",persistent:!1},GetSDKPermissions:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetSDKPermissions",persistent:!1},SetSDKPermissions:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"SetSDKPermissions",persistent:!1},NotifyAppOverlayState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"NotifyAppOverlayState",persistent:!1},GetHighlightsConfig:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetHighlightsConfig",persistent:!1},SetHighlightsConfig:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"SetHighlightsConfig",persistent:!1},GetApplicationConfigs:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetApplicationConfigs",persistent:!1},GetHotkeyShortcut:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetHotkeyShortcut",persistent:!1},SetHotkeyShortcut:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"SetHotkeyShortcut",persistent:!1},ResetHotkeysToDefault:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"ResetHotkeysToDefault",persistent:!1},GetHotkeyMonitoring:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetHotkeyMonitoring",persistent:!1},Init:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"Init",persistent:!1},SetHotkeyMonitoring:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"SetHotkeyMonitoring",persistent:!1},SetHotkeyDynamicEnable:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"SetHotkeyDynamicEnable",persistent:!1},GetIndicatorSupported:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetIndicatorSupported",persistent:!1},GetIndicatorOverlaySettings:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetIndicatorOverlaySettings",persistent:!1},SetIndicatorOverlaySettings:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"SetIndicatorOverlaySettings",persistent:!1},GetCustomOverlayDefaultPath:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetCustomOverlayDefaultPath",persistent:!1},GetCustomOverlaySupport:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetCustomOverlaySupport",persistent:!1},GetCustomOverlayPath:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetCustomOverlayPath",persistent:!1},SetCustomOverlayPath:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"SetCustomOverlayPath",persistent:!1},GetCustomOverlayEnable:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetCustomOverlayEnable",persistent:!1},SetCustomOverlayEnable:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"SetCustomOverlayEnable",persistent:!1},GetCustomOverlayDisplay:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetCustomOverlayDisplay",persistent:!1},SelectCustomOverlay:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"SelectCustomOverlay",persistent:!1},EnableCustomOverlay:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"EnableCustomOverlay",persistent:!1},GetNvCameraToggleState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetNvCameraToggleState",persistent:!1},SetNvCameraToggleState:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"SetNvCameraToggleState",persistent:!1},ToggleAutoHighlight:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"ToggleAutoHighlight",persistent:!1},DisableRecordSpecialCase:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"DisableRecordSpecialCase",persistent:!1},GetIf4KRecordingFallbackAvailable:{legacyCommand:"QUERY_IS_4K_RECORDING_FALLBACK_AVAILABLE",system:"CrimsonNative",module:"ShareServer",method:"GetIf4KRecordingFallbackAvailable",persistent:!1},GetExportedGFESettingsData:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GetExportedGFESettingsData",persistent:!1},SyncShadowPlaySettings:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"SyncShadowPlaySettings",persistent:!1},HandleHighlightsGfeConfig:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"HandleHighlightsGfeConfig",persistent:!1},GAssistToggle:{legacyCommand:"QUERY_IPC_EXTENSION_MESSAGE",system:"CrimsonNative",module:"ShareServer",method:"GAssistToggle",persistent:!1}}}}},20924:(St,z,s)=>{"use strict";var i;s.d(z,{Ts:()=>n.T,Or:()=>Pe}),function(J){function vt(ue,et,se,Ce){return{legacyCommand:ue,system:void 0,module:et,method:se,persistent:Ce}}J.BridgeCommand=vt,J.GenericCommand=function ve(ue,et,se,Ce){return vt(ue,et,se,Ce)}}(i||(i={}));var h,C,S,M,P,n=s(43187);!function(J){let vt;var ve;(ve=vt=J.Format||(J.Format={})).text="text",ve.base64="base64"}(h||(h={})),function(J){let vt;var ue;let ve;(ue=vt=J.MediaType||(J.MediaType={})).auto_detect="auto_detect",ue.nvfbc="nvfbc",ue.video="video",ue.image="image",ue.kpi_test="kpi_test",ue.manual="manual",ue.filmstrip="filmstrip",function(ue){ue.readToTarget="readToTarget",ue.sleepToTarget="sleepToTarget",ue.readOnlyTarget="readOnlyTarget"}(ve=J.FrameMode||(J.FrameMode={}))}(C||(C={})),function(J){let vt;var le;let ve,ue,et,se,Ce,be,rt,me;(le=vt=J.DriverTypeEnum||(J.DriverTypeEnum={}))[le.GameReadyDriver=0]="GameReadyDriver",le[le.CreatorReadyDriver=1]="CreatorReadyDriver",function(le){le[le.Unknown=0]="Unknown",le[le.GpuUnsupported=1]="GpuUnsupported",le[le.DriverUnsupported=2]="DriverUnsupported",le[le.HardwareSchedulingUnavailable=3]="HardwareSchedulingUnavailable",le[le.GraphicsApiUnsupported=4]="GraphicsApiUnsupported",le[le.DenyListed=5]="DenyListed",le[le.x86Unsupported=6]="x86Unsupported",le[le.SRModelDenyListed=7]="SRModelDenyListed",le[le.RRModelDenyListed=8]="RRModelDenyListed",le[le.FGMultiFrameCountUnsupported=9]="FGMultiFrameCountUnsupported"}(ve=J.ConstraintType||(J.ConstraintType={})),function(le){le[le.MINIMUM_DRIVER_VERSION_NOT_MET=20]="MINIMUM_DRIVER_VERSION_NOT_MET"}(ue=J.AidvcUnSupportedErrors||(J.AidvcUnSupportedErrors={})),function(le){le[le.GAME_HDR_ENABLED=0]="GAME_HDR_ENABLED"}(et=J.AidvcRealTimeErrors||(J.AidvcRealTimeErrors={})),function(le){le[le.GPU_INCOMPATIBLE=0]="GPU_INCOMPATIBLE",le[le.CLIENT_VIRTUALIZATION_ENABLED=1]="CLIENT_VIRTUALIZATION_ENABLED",le[le.OS_INCOMPATIBLE=2]="OS_INCOMPATIBLE",le[le.MULTI_MON_DETECTED=3]="MULTI_MON_DETECTED",le[le.HDR_DISABLED=4]="HDR_DISABLED",le[le.SOC_FEATURE_ENABLED=5]="SOC_FEATURE_ENABLED",le[le.SLI_ENABLED=6]="SLI_ENABLED",le[le.SURROUND_ENABLED=7]="SURROUND_ENABLED",le[le.MSHYBRID_ENABLED=8]="MSHYBRID_ENABLED",le[le.MSHYBRID_ENABLED_DDS_IGPU=9]="MSHYBRID_ENABLED_DDS_IGPU",le[le.DISPLAY_INCOMPATIBLE=10]="DISPLAY_INCOMPATIBLE",le[le.NO_DISPLAY_CONNECTED=11]="NO_DISPLAY_CONNECTED",le[le.USE_ALTERNATE_DISPLAY=12]="USE_ALTERNATE_DISPLAY",le[le.MINIMUM_DRIVER_VERSION_NOT_MET=20]="MINIMUM_DRIVER_VERSION_NOT_MET",le[le.GAME_DENYLISTED=21]="GAME_DENYLISTED"}(se=J.AihdrUnSupportedErrors||(J.AihdrUnSupportedErrors={})),function(le){le[le.DRS_REGKEY_NOT_SET=0]="DRS_REGKEY_NOT_SET",le[le.UNSUPPORTED_PRESENTATION_MODE=1]="UNSUPPORTED_PRESENTATION_MODE",le[le.GAME_HDR_ENABLED=2]="GAME_HDR_ENABLED",le[le.OS_HDR_DISABLED=3]="OS_HDR_DISABLED",le[le.SOC_FEATURES_ENABLED=4]="SOC_FEATURES_ENABLED",le[le.MISTMATCHED_DISPLAY=5]="MISTMATCHED_DISPLAY",le[le.API_NOT_SUPPORTED=6]="API_NOT_SUPPORTED"}(Ce=J.AihdrRealTimeErrors||(J.AihdrRealTimeErrors={})),function(le){le[le.Default=3]="Default",le[le.Performance=0]="Performance",le[le.Balanced=1]="Balanced",le[le.Quality=2]="Quality",le[le.UltraPerformance=5]="UltraPerformance",le[le.Dlaa=4]="Dlaa",le[le.Custom=6]="Custom"}(be=J.DlssPerformanceModeOverrideEnum||(J.DlssPerformanceModeOverrideEnum={})),function(le){le[le.Default=0]="Default",le[le.PresetA=1]="PresetA",le[le.PresetB=2]="PresetB",le[le.PresetC=3]="PresetC",le[le.PresetD=4]="PresetD",le[le.PresetE=5]="PresetE",le[le.PresetF=6]="PresetF",le[le.PresetJ=10]="PresetJ",le[le.Latest=16777215]="Latest"}(rt=J.DlssModelOverrideEnum||(J.DlssModelOverrideEnum={})),function(le){le[le.DLSSSR=65542]="DLSSSR",le[le.DLSSRR=65543]="DLSSRR",le[le.DLSSFG=65544]="DLSSFG",le[le.DLSSSM=65545]="DLSSSM"}(me=J.DlssFeatures||(J.DlssFeatures={}))}(S||(S={})),function(J){let vt;var ve;(ve=vt=J.PowerStatus||(J.PowerStatus={}))[ve.AC=0]="AC",ve[ve.DC=1]="DC",ve[ve.UPS_LIKE=2]="UPS_LIKE",ve[ve.Unknown=3]="Unknown"}(M||(M={})),function(J){let vt;var lt;let ve,ue,et,se,Ce,be,rt,me,le,Xe,Se,fe,Ne,ye,Ot,sn,dn,yn,At,Vt,Qt,Jt,Zt,nn,Xt;(lt=vt=J.SdkPermissions||(J.SdkPermissions={})).granted="granted",lt.mustAsk="mustAsk",lt.denied="denied",function(lt){lt.H264_HEVC="H264/HEVC",lt.AV1="AV1",lt.H265="H265"}(ve=J.Codec||(J.Codec={})),function(lt){lt.custom="custom",lt.customA="customA",lt.customB="customB",lt.customC="customC"}(ue=J.CustomOverlayTypeEnum||(J.CustomOverlayTypeEnum={})),function(lt){lt.small="small",lt.medium="medium",lt.large="large"}(et=J.OverlaySizeEnum||(J.OverlaySizeEnum={})),function(lt){lt.leftTop="leftTop",lt.leftCenter="leftCenter",lt.leftBottom="leftBottom",lt.rightTop="rightTop",lt.rightCenter="rightCenter",lt.rightBottom="rightBottom",lt.centerTop="centerTop",lt.centerCenter="centerCenter",lt.centerBottom="centerBottom",lt.floatingRandom="floatingRandom",lt.floatingBorder="floatingBorder",lt.none="none"}(se=J.OverlayPositionEnum||(J.OverlayPositionEnum={})),function(lt){lt.record="record",lt.gamecast="gamecast",lt.fps="fps",lt.viewer="viewer",lt.rig="rig",lt.webcam="webcam",lt.comments="comments"}(Ce=J.IndicatorEnum||(J.IndicatorEnum={})),function(lt){lt.In_game="In-game",lt.Resolution_4320p_8K="4320p 8K",lt.Resolution_2160p_4K="2160p 4K",lt.Resolution_1440p_HD="1440p HD",lt.Resolution_1080p_HD="1080p HD",lt.Resolution_720p_HD="720p HD",lt.Resolution_480p="480p",lt.Resolution_360p="360p",lt.Resolution_240p="240p",lt.Exact="Exact"}(be=J.Resolution||(J.Resolution={})),function(lt){lt.on="on",lt.off="off",lt.alwayson="alwayson",lt.ptt="ptt"}(rt=J.MicModeEnum||(J.MicModeEnum={})),function(lt){lt.manual="manual",lt.dvr="dvr",lt.gameCast="gameCast",lt.highlight="highlight",lt.gearRecord="gearRecord",lt.gearHighlight="gearHighlight",lt.lastMode="lastMode",lt.screenshot="screenshot"}(me=J.CaptureModeEnum||(J.CaptureModeEnum={})),function(lt){lt.highlights="highlights",lt.highlightsRecordVideo="highlightsRecordVideo",lt.highlightsRecordScreenshot="highlightsRecordScreenshot"}(le=J.SdkScopeType||(J.SdkScopeType={})),function(lt){lt.plugged_in="plugged_in",lt.plugged_out="plugged_out",lt.enabled="enabled",lt.disabled="disabled"}(Xe=J.DeviceStateTypeEnum||(J.DeviceStateTypeEnum={})),function(lt){lt.mic="mic",lt.webcam="webcam"}(Se=J.DeviceTypeEnum||(J.DeviceTypeEnum={})),function(lt){lt.unknown="unknown",lt.started="started",lt.stopped="stopped",lt.paused="paused",lt.resumed="resumed"}(fe=J.CloudSessionStateType||(J.CloudSessionStateType={})),function(lt){lt.OpenIGO="OpenIGO",lt.OpenFreestyle="OpenFreestyle",lt.OpenAnsel="OpenAnsel",lt.PTT="PTT",lt.FPS="FPS",lt.Screenshot="Screenshot",lt.DVRSave="DVRSave",lt.RecordToggle="RecordToggle",lt.BroadcastToggle="BroadcastToggle",lt.BroadcastPauseToggle="BroadcastPauseToggle",lt.CameraToggle="CameraToggle",lt.OverlayToggle="OverlayToggle",lt.CustomOverlayA="CustomOverlayA",lt.CustomOverlayB="CustomOverlayB",lt.CustomOverlayC="CustomOverlayC",lt.CommentsToggle="CommentsToggle",lt.MicToggle="MicToggle",lt.DVRToggle="DVRToggle",lt.FreestyleToggle="FreestyleToggle",lt.FreestylePresentCycle="FreestylePresentCycle",lt.FreeStyleToggleStyle1="FreeStyleToggleStyle1",lt.FreeStyleToggleStyle2="FreeStyleToggleStyle2",lt.FreeStyleToggleStyle3="FreeStyleToggleStyle3",lt.NativeKeyboardInputDialog="NativeKeyboardInputDialog",lt.ConnectGfnBroadcastToggle="ConnectGfnBroadcastToggle",lt.StatisticsToggle="StatisticsToggle",lt.QuitGame="QuitGame",lt.PMOCOverlay="PMOCOverlay",lt.PMOCOverlayVisibility="PMOCOverlayVisibility",lt.PMOCOverlayCycle="PMOCOverlayCycle",lt.PMOCResetAverageMetrics="PMOCResetAverageMetrics",lt.PMOCLoggingToggle="PMOCLoggingToggle",lt.InStreamPaste="InStreamPaste",lt.ChatUIToggle="ChatUIToggle",lt.ChatPTT="ChatPTT"}(Ne=J.HotkeyEnum||(J.HotkeyEnum={})),function(lt){lt[lt.SPFeatureState_Unknown=0]="SPFeatureState_Unknown",lt[lt.SPFeatureState_Start=1]="SPFeatureState_Start",lt[lt.SPFeatureState_Stop=2]="SPFeatureState_Stop"}(ye=J.GAssistFeatureState||(J.GAssistFeatureState={})),function(lt){lt.screenshot="screenshot",lt.video="video"}(Ot=J.Type||(J.Type={})),function(lt){lt.UltraGood="UltraGood",lt.VeryGood="VeryGood",lt.Good="Good",lt.Average="Average",lt.Custom="Custom",lt.GamecastYTLUltraGood="GamecastYTLUltraGood",lt.GamecastYTLVeryGood="GamecastYTLVeryGood",lt.GamecastYTLGood="GamecastYTLGood",lt.GamecastYTLAverage="GamecastYTLAverage",lt.GamecastUltraGood="GamecastUltraGood",lt.GamecastVeryGood="GamecastVeryGood",lt.GamecastGood="GamecastGood",lt.GamecastAverage="GamecastAverage",lt.GamecastFBLVeryGood="GamecastFBLVeryGood",lt.GamecastFBLGood="GamecastFBLGood",lt.GamecastFBLAverage="GamecastFBLAverage"}(sn=J.Quality||(J.Quality={})),function(lt){lt.instantReplay="instantReplay",lt.manualRecord="manualRecord",lt.highlights="highlights",lt.gear="gear"}(dn=J.SessionIds||(J.SessionIds={})),function(lt){lt.Always_Ask="Always Ask",lt.Twitch="Twitch",lt.YouTube_Live="YouTube Live",lt.Facebook_Live="Facebook Live",lt.Do_Not_Broadcast="Do Not Broadcast"}(yn=J.Provider||(J.Provider={})),function(lt){lt[lt.GXP_Success_Ok=0]="GXP_Success_Ok",lt[lt.GXP_Success_NoError=1]="GXP_Success_NoError",lt[lt.GXP_Error_NotImplemented=-2147467263]="GXP_Error_NotImplemented",lt[lt.GXP_Error_NoInterface=-2147467262]="GXP_Error_NoInterface",lt[lt.GXP_Error_InvalidPointer=-2147467261]="GXP_Error_InvalidPointer",lt[lt.GXP_Error_Abort=-2147467260]="GXP_Error_Abort",lt[lt.GXP_Error_Fail=-2147467259]="GXP_Error_Fail",lt[lt.GXP_Error_Unexpected=-2147468113]="GXP_Error_Unexpected",lt[lt.GXP_Error_FileNotFound=-2147024894]="GXP_Error_FileNotFound",lt[lt.GXP_Error_PathNotFound=-2147024893]="GXP_Error_PathNotFound",lt[lt.GXP_Error_InvalidHandle=-2147024890]="GXP_Error_InvalidHandle",lt[lt.GXP_Error_InvalidData=-2147024883]="GXP_Error_InvalidData",lt[lt.GXP_Error_OutOfMemory=-2147024882]="GXP_Error_OutOfMemory",lt[lt.GXP_Error_InvalidArg=-2147024809]="GXP_Error_InvalidArg",lt[lt.GXP_Error_TimeOut=-2147023436]="GXP_Error_TimeOut",lt[lt.GXP_Error_FileTooLarge=-2147024673]="GXP_Error_FileTooLarge",lt[lt.GXP_Error_MaxStartAttempts=-2146959359]="GXP_Error_MaxStartAttempts",lt[lt.ShadowPlay_OSC_ERR_GENERIC=-1]="ShadowPlay_OSC_ERR_GENERIC",lt[lt.ShadowPlay_OSC_ERR_INVALID_VER=-2]="ShadowPlay_OSC_ERR_INVALID_VER",lt[lt.ShadowPlay_OSC_ERR_CLIENT_UNINITIALIZED=-3]="ShadowPlay_OSC_ERR_CLIENT_UNINITIALIZED",lt[lt.ShadowPlay_OSC_ERR_SERVER_NOT_CONNECTED=-4]="ShadowPlay_OSC_ERR_SERVER_NOT_CONNECTED",lt[lt.ShadowPlay_OSC_ERR_SERVER_TIME_OUT=-5]="ShadowPlay_OSC_ERR_SERVER_TIME_OUT",lt[lt.ShadowPlay_OSC_ERR_SERVER_CANNOT_CONNECT=-6]="ShadowPlay_OSC_ERR_SERVER_CANNOT_CONNECT",lt[lt.ShadowPlay_OSC_ERR_STREAM_NOT_FOUND=-7]="ShadowPlay_OSC_ERR_STREAM_NOT_FOUND",lt[lt.ShadowPlay_OSC_ERR_INVALID_FORMAT=-8]="ShadowPlay_OSC_ERR_INVALID_FORMAT",lt[lt.ShadowPlay_OSC_ERR_INVALID_PARAMETERS=-9]="ShadowPlay_OSC_ERR_INVALID_PARAMETERS",lt[lt.ShadowPlay_OSC_ERR_DX=-10]="ShadowPlay_OSC_ERR_DX",lt[lt.ShadowPlay_OSC_ERR_MMF=-11]="ShadowPlay_OSC_ERR_MMF",lt[lt.ShadowPlay_OSC_ERR_INSUFFICIENT_BUFFER=-12]="ShadowPlay_OSC_ERR_INSUFFICIENT_BUFFER",lt[lt.ShadowPlay_OSC_ERR_NO_IMPLEMENTATION=-13]="ShadowPlay_OSC_ERR_NO_IMPLEMENTATION",lt[lt.ShadowPlay_OSC_ERR_STREAM_LOCKED=-14]="ShadowPlay_OSC_ERR_STREAM_LOCKED",lt[lt.ShadowPlay_OSC_ERR_ALREADY_REGISTERED=-15]="ShadowPlay_OSC_ERR_ALREADY_REGISTERED",lt[lt.ShadowPlay_OSC_ERR_ALREADY_CREATED=-16]="ShadowPlay_OSC_ERR_ALREADY_CREATED",lt[lt.ShadowPlay_OSC_ERR_PROTOBUF=-17]="ShadowPlay_OSC_ERR_PROTOBUF",lt[lt.ShadowPlay_OSC_ERR_NOTAVAILABLE=-18]="ShadowPlay_OSC_ERR_NOTAVAILABLE",lt[lt.ShadowPlay_OSC_ERR_OUT_OF_MEMORY=-19]="ShadowPlay_OSC_ERR_OUT_OF_MEMORY",lt[lt.ShadowPlay_OSC_ERR_ABANDONED=-20]="ShadowPlay_OSC_ERR_ABANDONED",lt[lt.ShadowPlay_OSC_ERR_INVALID_CALL=-21]="ShadowPlay_OSC_ERR_INVALID_CALL",lt[lt.ShadowPlay_OSC_ERR_NO_VALID_GAME_RUNNING=-22]="ShadowPlay_OSC_ERR_NO_VALID_GAME_RUNNING",lt[lt.ShadowPlay_E_SERVER_NOT_RUNNING=-2147220959]="ShadowPlay_E_SERVER_NOT_RUNNING",lt[lt.ShadowPlay_E_UNKNOWN_PROP_NAME=-2147220958]="ShadowPlay_E_UNKNOWN_PROP_NAME",lt[lt.ShadowPlay_E_INVALID_PROP_FORMAT=-2147220957]="ShadowPlay_E_INVALID_PROP_FORMAT",lt[lt.ShadowPlay_E_INVALID_PROP_VALUE=-2147220956]="ShadowPlay_E_INVALID_PROP_VALUE",lt[lt.ShadowPlay_E_UNKNOWN_CMD_NAME=-2147220955]="ShadowPlay_E_UNKNOWN_CMD_NAME",lt[lt.ShadowPlay_E_INVALID_CMD_FORMAT=-2147220954]="ShadowPlay_E_INVALID_CMD_FORMAT",lt[lt.ShadowPlay_E_INVALID_CMD_VERSION=-2147220953]="ShadowPlay_E_INVALID_CMD_VERSION",lt[lt.ShadowPlay_E_NOT_READY=-2147220952]="ShadowPlay_E_NOT_READY",lt[lt.ShadowPlay_E_SERVER_IN_EXCLUSIVE_MODE=-2147220951]="ShadowPlay_E_SERVER_IN_EXCLUSIVE_MODE",lt[lt.ShadowPlay_E_SERVER_IN_GAMECAST_MODE=-2147220950]="ShadowPlay_E_SERVER_IN_GAMECAST_MODE",lt[lt.ShadowPlay_E_CANNOT_CLAIM_H264_LICENSE=-2147220949]="ShadowPlay_E_CANNOT_CLAIM_H264_LICENSE",lt[lt.ShadowPlay_E_FAIL_SYSTEM_REQUIREMENTS_OS=-2147220948]="ShadowPlay_E_FAIL_SYSTEM_REQUIREMENTS_OS",lt[lt.ShadowPlay_E_FAIL_SYSTEM_REQUIREMENTS_RAM=-2147220947]="ShadowPlay_E_FAIL_SYSTEM_REQUIREMENTS_RAM",lt[lt.ShadowPlay_E_FAIL_SYSTEM_REQUIREMENTS_GPU=-2147220946]="ShadowPlay_E_FAIL_SYSTEM_REQUIREMENTS_GPU",lt[lt.ShadowPlay_E_FAIL_ENABLE_SHADOWPLAY=-2147220945]="ShadowPlay_E_FAIL_ENABLE_SHADOWPLAY",lt[lt.ShadowPlayE_FAIL_ENABLE_NVFBC=-2147220944]="ShadowPlayE_FAIL_ENABLE_NVFBC",lt[lt.ShadowPlay_E_FAIL_SYSTEM_REQUIREMENTS_DRIVER=-2147220943]="ShadowPlay_E_FAIL_SYSTEM_REQUIREMENTS_DRIVER",lt[lt.ShadowPlay_E_FAIL_ENABLE_NVFBC_TIMEOUT=-2147220942]="ShadowPlay_E_FAIL_ENABLE_NVFBC_TIMEOUT",lt[lt.ShadowPlay_E_FAIL_ENABLE_OSC=-2147220941]="ShadowPlay_E_FAIL_ENABLE_OSC",lt[lt.ShadowPlay_E_FAIL_ENABLE_HELPER=-2147220940]="ShadowPlay_E_FAIL_ENABLE_HELPER",lt[lt.ShadowPlay_E_FAIL_NO_GALLERY_SPACE=-2147220926]="ShadowPlay_E_FAIL_NO_GALLERY_SPACE",lt[lt.ShadowPlay_E_FAIL_NO_DISC_SPACE=-2147220938]="ShadowPlay_E_FAIL_NO_DISC_SPACE",lt[lt.ShadowPlay_E_FAIL_CAPTURE_DISABLED=-2147220937]="ShadowPlay_E_FAIL_CAPTURE_DISABLED",lt[lt.ShadowPlay_E_BOUNDS=-2147483637]="ShadowPlay_E_BOUNDS",lt[lt.ShadowPlay_E_NOT_VALID_STATE=-2147019873]="ShadowPlay_E_NOT_VALID_STATE",lt[lt.ShadowPlay_E_UNEXPECTED=-2147418113]="ShadowPlay_E_UNEXPECTED",lt[lt.GXP_Error_HotkeyInUse=-2146897916]="GXP_Error_HotkeyInUse"}(At=J.InternalErrorCodeEnum||(J.InternalErrorCodeEnum={})),function(lt){lt.available="available",lt.started="started",lt.auto_pause="auto_pause",lt.user_pause="user_pause",lt.user_pause_auto_pause="user_pause_auto_pause",lt.last="last",lt.error="error",lt.saved="saved",lt.restarted_notifier="restarted_notifier",lt.resumed_notifier="resumed_notifier",lt.notifier_none="notifier_none",lt.invalid="invalid",lt.enabled="enabled",lt.disabled="disabled"}(Vt=J.RecordingState||(J.RecordingState={})),function(lt){lt.capture="capture",lt.in_focus="in-focus",lt.last_proc="last-proc"}(Qt=J.AppType||(J.AppType={})),function(lt){lt[lt._30=30]="_30",lt[lt._60=60]="_60"}(Jt=J.Framerate||(J.Framerate={})),function(lt){lt.off="off",lt.game="game",lt.mic="mic",lt.both="both"}(Zt=J.Mode||(J.Mode={})),function(lt){lt.main="main",lt.permission="permission",lt.highlightsSummary="highlightsSummary"}(nn=J.State||(J.State={})),function(lt){lt.none="none",lt.single="single",lt.multiple="multiple"}(Xt=J.SupportType||(J.SupportType={}))}(P||(P={}));var A,x=function(J){return J.Forager=h,J.Gear=C,J.Graphicssetting=S,J.Nvperfmon=M,J.Shareserver=P,J}(x||{});!function(J){let vt;var ve;(ve=vt=J.RollbackOptionsEnum||(J.RollbackOptionsEnum={}))[ve.Unknown=0]="Unknown",ve[ve.NoUI=1]="NoUI",ve[ve.RollbackUI=2]="RollbackUI"}(A||(A={}));var m,l,r,u,v,E,T,R,B,U,g=function(J){return J.Driverrollback=A,J}(g||{});!function(J){let vt;var se;let ve,ue,et;(se=vt=J.ActionStatusEnum||(J.ActionStatusEnum={}))[se.ActionStarted=0]="ActionStarted",se[se.ActionRunning=1]="ActionRunning",se[se.ActionSuccess=2]="ActionSuccess",se[se.ActionFailure=3]="ActionFailure",se[se.ActionUnknown=4]="ActionUnknown",function(se){se[se.Success=0]="Success",se[se.Failure=1]="Failure",se[se.Unknown=2]="Unknown"}(ve=J.ExeLaunchStatusEnum||(J.ExeLaunchStatusEnum={})),function(se){se[se.NotInstalled=0]="NotInstalled",se[se.Installed=1]="Installed",se[se.Installing=2]="Installing",se[se.Uninstalling=3]="Uninstalling",se[se.PartiallyInstalled=4]="PartiallyInstalled"}(ue=J.Status||(J.Status={})),function(se){se[se.Install=0]="Install",se[se.Uninstall=1]="Uninstall"}(et=J.Action||(J.Action={}))}(m||(m={})),function(J){let vt;var se;let ve,ue,et;(se=vt=J.ErrorCodeEnum||(J.ErrorCodeEnum={}))[se.NoError=0]="NoError",se[se.UserCancelled=-522190847]="UserCancelled",se[se.GeneralError=-505409537]="GeneralError",se[se.InvalidObject=-505413631]="InvalidObject",se[se.InsufficientArguments=-505413630]="InsufficientArguments",se[se.InvalidParameters=-505413629]="InvalidParameters",se[se.PropertyMissing=-505413628]="PropertyMissing",se[se.InvalidFormat=-505413627]="InvalidFormat",se[se.EmptyValue=-505413626]="EmptyValue",se[se.FileNotFound=-505413622]="FileNotFound",se[se.PathNotFound=-505413621]="PathNotFound",se[se.ProcessingPreviousCall=505413620]="ProcessingPreviousCall",se[se.InstallerAlreadyRunning=-505413619]="InstallerAlreadyRunning",se[se.MessagingChannel=-505413618]="MessagingChannel",se[se.ExtractedNotFound=-505413610]="ExtractedNotFound",se[se.InstallerExeNotFound=-505413608]="InstallerExeNotFound",se[se.GfeExperienceKeyNotFound=-505413607]="GfeExperienceKeyNotFound",se[se.GfeExperiencePathEmpty=-505413606]="GfeExperiencePathEmpty",se[se.SignatureInvalid=-505413605]="SignatureInvalid",se[se.UacCancelled=-505413600]="UacCancelled",se[se.MsgArrivedEventCreate=-505413599]="MsgArrivedEventCreate",se[se.MsgArrivedEventSignal=-505413598]="MsgArrivedEventSignal",se[se.ResumePathNotFound=-505413597]="ResumePathNotFound",se[se.ResumePathEmpty=-505413596]="ResumePathEmpty",se[se.ResumePathInvalid=-505413595]="ResumePathInvalid",se[se.MsgChannelInit=-505413584]="MsgChannelInit",se[se.MsgShowFormSet=-505413583]="MsgShowFormSet",se[se.MsgProgressUpdateSet=-505413582]="MsgProgressUpdateSet",se[se.MsgListen=-505413581]="MsgListen",function(se){se[se.NotSet=0]="NotSet",se[se.ShowForm=1]="ShowForm",se[se.ProgressUpdate=2]="ProgressUpdate"}(ve=J.MethodEnum||(J.MethodEnum={})),function(se){se[se.NotSet=0]="NotSet",se[se.InstallInitial=1]="InstallInitial",se[se.InstallChecking=2]="InstallChecking",se[se.InstallCheckWarnings=3]="InstallCheckWarnings",se[se.InstallCheckFailed=4]="InstallCheckFailed",se[se.InstallCheckWait=5]="InstallCheckWait",se[se.Eula=6]="Eula",se[se.InstallSelect=7]="InstallSelect",se[se.InstallSelectCustom=8]="InstallSelectCustom",se[se.InstallSelectInstallPath=9]="InstallSelectInstallPath",se[se.PreInstallCheck=10]="PreInstallCheck",se[se.PreInstallCheckRetry=11]="PreInstallCheckRetry",se[se.PreInstallCheckWait=12]="PreInstallCheckWait",se[se.PreRebootInstall=13]="PreRebootInstall",se[se.PackageDownloadProgress=14]="PackageDownloadProgress",se[se.ProcessDownloadedPackage=15]="ProcessDownloadedPackage",se[se.PackageDownloadFailed=16]="PackageDownloadFailed",se[se.InstallProgress=17]="InstallProgress",se[se.InstallRemoveProgress=18]="InstallRemoveProgress",se[se.InstallFinished=19]="InstallFinished",se[se.InstallFinishedNoSummary=20]="InstallFinishedNoSummary",se[se.InstallFinishedLaunch=21]="InstallFinishedLaunch",se[se.InstallFinishedNoSummaryLaunch=22]="InstallFinishedNoSummaryLaunch",se[se.InstallFinishedOptions=23]="InstallFinishedOptions",se[se.InstallFinishedNoSummaryOptions=24]="InstallFinishedNoSummaryOptions",se[se.InstallReboot=25]="InstallReboot",se[se.InstallRebootOptions=26]="InstallRebootOptions",se[se.InstallRebootNoSummary=27]="InstallRebootNoSummary",se[se.InstallRebootNoSummaryOptions=28]="InstallRebootNoSummaryOptions",se[se.InstallRemoveReboot=29]="InstallRemoveReboot",se[se.InstallFailed=30]="InstallFailed",se[se.WaitingOnUac=31]="WaitingOnUac"}(ue=J.FormEnum||(J.FormEnum={})),function(se){se[se.Next=0]="Next",se[se.Close=1]="Close"}(et=J.NextActionEnum||(J.NextActionEnum={}))}(l||(l={})),function(J){let vt;var et;let ve,ue;(et=vt=J.DriverTypeEnum||(J.DriverTypeEnum={}))[et.GameReadyDriver=0]="GameReadyDriver",et[et.CreatorReadyDriver=1]="CreatorReadyDriver",function(et){et[et.WsRecommendedDriver=2]="WsRecommendedDriver",et[et.WsLeadingEdgeDriver=3]="WsLeadingEdgeDriver",et[et.WsConservativeDriver=4]="WsConservativeDriver"}(ve=J.UpdateStrategyEnum||(J.UpdateStrategyEnum={})),function(et){et.started="started",et.finished="finished",et.failed="failed",et.cancelled="cancelled"}(ue=J.DriverUpdateCheckProgress||(J.DriverUpdateCheckProgress={}))}(r||(r={})),function(J){let vt;var rt;let ve,ue,et,se,Ce,be;(rt=vt=J.ApplicationScanType||(J.ApplicationScanType={})).fast="fast",rt.traditional="traditional",function(rt){rt.STRING="STRING",rt.INT="INT",rt.FLOAT="FLOAT",rt.ENUM="ENUM",rt.BOOL="BOOL",rt.DRIVER_ENUM="DRIVER_ENUM"}(ve=J.Type||(J.Type={})),function(rt){rt.AC="AC",rt.DC="DC"}(ue=J.ApplicationPowerMode||(J.ApplicationPowerMode={})),function(rt){rt.DISABLED="DISABLED",rt.UNOPTIMIZED="UNOPTIMIZED",rt.CUSTOMIZED="CUSTOMIZED",rt.OPTIMIZED="OPTIMIZED"}(et=J.OptimizationState||(J.OptimizationState={})),function(rt){rt.started="started",rt.finished="finished",rt.failed="failed",rt.progress="progress"}(se=J.Status||(J.Status={})),function(rt){rt[rt.Invalid=-1]="Invalid",rt[rt.Notifications=0]="Notifications",rt[rt.Display=1]="Display"}(Ce=J.PageId||(J.PageId={})),function(rt){rt[rt.STARTED=1]="STARTED",rt[rt.FINISHED=2]="FINISHED"}(be=J.OotbStatus||(J.OotbStatus={}))}(u||(u={})),function(J){let vt;var V;let ve,ue,et,se,Ce,be,rt,me,le,Xe,Se,fe,Ne,ye,Ot,sn,dn,yn,At,Vt,Qt,Jt,Zt,nn,Xt,lt,Ue,wt,gt,Ht,bn,Ut,Bt,Le;(V=vt=J.RamType||(J.RamType={}))[V.UNKNOWN=0]="UNKNOWN",V[V.SDRAM=1]="SDRAM",V[V.DDR1=2]="DDR1",V[V.DDR2=3]="DDR2",V[V.GDDR2=4]="GDDR2",V[V.GDDR3=5]="GDDR3",V[V.GDDR4=6]="GDDR4",V[V.DDR3=7]="DDR3",V[V.GDDR5=8]="GDDR5",V[V.GDDR5X=9]="GDDR5X",V[V.HBM1=10]="HBM1",V[V.HBM2=11]="HBM2",V[V.SDDR4=12]="SDDR4",V[V.GDDR6=14]="GDDR6",V[V.GDDR6X=15]="GDDR6X",V[V.GDDR7=16]="GDDR7",function(V){V[V.UNKNOWN=0]="UNKNOWN",V[V.AGP=1]="AGP",V[V.PCI=2]="PCI",V[V.FPCI=3]="FPCI",V[V.PCI_EXPRESS=4]="PCI_EXPRESS",V[V.PCI_EXPRESS_GEN2=5]="PCI_EXPRESS_GEN2",V[V.PCI_EXPRESS_GEN3=6]="PCI_EXPRESS_GEN3",V[V.PCI_EXPRESS_GEN4=7]="PCI_EXPRESS_GEN4",V[V.PCI_EXPRESS_GEN5=8]="PCI_EXPRESS_GEN5",V[V.PCI_EXPRESS_GEN6=9]="PCI_EXPRESS_GEN6",V[V.AXI=10]="AXI"}(ve=J.BusType||(J.BusType={})),function(V){V[V.No=0]="No",V[V.On=1]="On",V[V.Yes=2]="Yes"}(ue=J.MaxQType||(J.MaxQType={})),function(V){V[V.Response_Ok=0]="Response_Ok",V[V.Response_MultiHead=1]="Response_MultiHead",V[V.Response_MultiHeadInactive=2]="Response_MultiHeadInactive",V[V.Response_IGpuUnavailable=3]="Response_IGpuUnavailable",V[V.Response_IGpuInternalHeadUnavailable=4]="Response_IGpuInternalHeadUnavailable",V[V.Response_IGpuInternalHeadRecovered=5]="Response_IGpuInternalHeadRecovered",V[V.Response_ConnectedDisplay=6]="Response_ConnectedDisplay"}(et=J.KmdResponse||(J.KmdResponse={})),function(V){V[V.PSR_Unknown=0]="PSR_Unknown",V[V.Sideband=1]="Sideband",V[V.PSR_Supported=2]="PSR_Supported",V[V.PSR_Failed=3]="PSR_Failed"}(se=J.SrType||(J.SrType={})),function(V){V[V.State_Invalid=0]="State_Invalid",V[V.State_IGPU=1]="State_IGPU",V[V.State_DGPU=2]="State_DGPU"}(Ce=J.MuxState||(J.MuxState={})),function(V){V[V.MOSAIC_NONE=0]="MOSAIC_NONE",V[V.SLIMOSAIC=1]="SLIMOSAIC",V[V.SURROUND=2]="SURROUND",V[V.BASE_MOSAIC=3]="BASE_MOSAIC",V[V.NEXTGENSURROUND=4]="NEXTGENSURROUND"}(be=J.MosaicType||(J.MosaicType={})),function(V){V[V.Rotation0=0]="Rotation0",V[V.Rotation90=1]="Rotation90",V[V.Rotation180=2]="Rotation180",V[V.Rotation270=3]="Rotation270"}(rt=J.RotationType||(J.RotationType={})),function(V){V[V.SuperResValue_Off=0]="SuperResValue_Off",V[V.SuperResValue_1=1]="SuperResValue_1",V[V.SuperResValue_2=2]="SuperResValue_2",V[V.SuperResValue_3=3]="SuperResValue_3",V[V.SuperResValue_4=4]="SuperResValue_4",V[V.SuperResValue_Auto=5]="SuperResValue_Auto"}(me=J.SuperResolutionValue||(J.SuperResolutionValue={})),function(V){V[V.SuperResStatus_Off=0]="SuperResStatus_Off",V[V.SuperResStatus_1=1]="SuperResStatus_1",V[V.SuperResStatus_2=2]="SuperResStatus_2",V[V.SuperResStatus_3=3]="SuperResStatus_3",V[V.SuperResStatus_4=4]="SuperResStatus_4"}(le=J.SuperResolutionStatus||(J.SuperResolutionStatus={})),function(V){V[V.SuperResGpuUtil_Low=0]="SuperResGpuUtil_Low",V[V.SuperResGpuUtil_Medium=1]="SuperResGpuUtil_Medium",V[V.SuperResGpuUtil_High=2]="SuperResGpuUtil_High"}(Xe=J.SuperResolutionGpuUtilization||(J.SuperResolutionGpuUtilization={})),function(V){V[V.SuperResIndicator_Off=0]="SuperResIndicator_Off",V[V.SuperResIndicator_On=1]="SuperResIndicator_On"}(Se=J.SuperResolutionIndicator||(J.SuperResolutionIndicator={})),function(V){V[V.DisableVSROnGameLaunch_Off=0]="DisableVSROnGameLaunch_Off",V[V.DisableVSROnGameLaunch_On=1]="DisableVSROnGameLaunch_On"}(fe=J.DisableVsrOnGameLaunch||(J.DisableVsrOnGameLaunch={})),function(V){V[V.HDRIndicator_Off=0]="HDRIndicator_Off",V[V.HDRIndicator_On=1]="HDRIndicator_On"}(Ne=J.HdrIndicator||(J.HdrIndicator={})),function(V){V[V.DisableHDROnGameLaunch_Off=0]="DisableHDROnGameLaunch_Off",V[V.DisableHDROnGameLaunch_On=1]="DisableHDROnGameLaunch_On"}(ye=J.DisableHdrOnGameLaunch||(J.DisableHdrOnGameLaunch={})),function(V){V[V.SUCCESS=0]="SUCCESS",V[V.NO_HDR_DISPLAY_CONNECTED=1]="NO_HDR_DISPLAY_CONNECTED",V[V.ENABLE_HDR_FROM_WINDOWS=2]="ENABLE_HDR_FROM_WINDOWS",V[V.SURROUND_ENABLED=3]="SURROUND_ENABLED"}(Ot=J.HdrErrorCodeInfo||(J.HdrErrorCodeInfo={})),function(V){V[V.RGB=0]="RGB",V[V.YCBCR422=1]="YCBCR422",V[V.YCBCR444=2]="YCBCR444",V[V.YCBCR420=3]="YCBCR420",V[V.UNKNOWN=4]="UNKNOWN"}(sn=J.OutPutColorFormat||(J.OutPutColorFormat={})),function(V){V[V.GsyncUltimate=0]="GsyncUltimate",V[V.GSyncCapable=1]="GSyncCapable",V[V.GSyncCompatible=2]="GSyncCompatible",V[V.VRR=3]="VRR",V[V.NotSupported=4]="NotSupported"}(dn=J.GSyncCapabilities||(J.GSyncCapabilities={})),function(V){V[V.Off=0]="Off",V[V.FullscreenOnly=1]="FullscreenOnly",V[V.FullscreenAndWindowed=2]="FullscreenAndWindowed",V[V.NotAvailable=3]="NotAvailable"}(yn=J.GlobalGsyncState||(J.GlobalGsyncState={})),function(V){V[V.None=0]="None",V[V.NonHD=1]="NonHD",V[V.SD576i=2]="SD576i",V[V.SD480i=3]="SD480i",V[V.ED480p=4]="ED480p",V[V.ED576p=5]="ED576p",V[V.HD720p=6]="HD720p",V[V.HD1080i=7]="HD1080i",V[V.HD1080p=8]="HD1080p",V[V.HD720p50=9]="HD720p50",V[V.HD1080p24=10]="HD1080p24",V[V.HD1080i50=11]="HD1080i50",V[V.HD1080p50=12]="HD1080p50",V[V.UHD4Kp30=13]="UHD4Kp30",V[V.UHD4Kp25=14]="UHD4Kp25",V[V.UHD4Kp24=15]="UHD4Kp24",V[V.UHD4Kp24Smpte=16]="UHD4Kp24Smpte",V[V.UHD4Kp303840=17]="UHD4Kp303840",V[V.UHD4Kp253840=18]="UHD4Kp253840",V[V.UHD4Kp243840=19]="UHD4Kp243840",V[V.UHD4Kp503840=20]="UHD4Kp503840",V[V.UHD4Kp603840=21]="UHD4Kp603840",V[V.UHD4Kp304096=22]="UHD4Kp304096",V[V.UHD4Kp254096=23]="UHD4Kp254096",V[V.UHD4Kp244096=24]="UHD4Kp244096",V[V.UHD4Kp504096=25]="UHD4Kp504096",V[V.UHD4Kp604096=26]="UHD4Kp604096",V[V.UHD8Kp247680=27]="UHD8Kp247680",V[V.UHD8Kp257680=28]="UHD8Kp257680",V[V.UHD8Kp307680=29]="UHD8Kp307680",V[V.UHD8Kp487680=30]="UHD8Kp487680",V[V.UHD8Kp507680=31]="UHD8Kp507680",V[V.UHD8Kp607680=32]="UHD8Kp607680",V[V.UHD8Kp1007680=33]="UHD8Kp1007680",V[V.UHD8Kp1207680=34]="UHD8Kp1207680",V[V.Invalid=35]="Invalid"}(At=J.TvFormat||(J.TvFormat={})),function(V){V[V.CT_VGA=0]="CT_VGA",V[V.CT_DVI=1]="CT_DVI",V[V.CT_COMPOSITE=2]="CT_COMPOSITE",V[V.CT_SVIDEO=3]="CT_SVIDEO",V[V.CT_COMPONENT=4]="CT_COMPONENT",V[V.CT_HDMI=5]="CT_HDMI",V[V.CT_DISPLAYPORT=6]="CT_DISPLAYPORT",V[V.CT_USBC=7]="CT_USBC",V[V.CT_LVDS=8]="CT_LVDS",V[V.CT_AUTO=9]="CT_AUTO",V[V.CT_UNKNOWN=10]="CT_UNKNOWN"}(Vt=J.ConnectorType||(J.ConnectorType={})),function(V){V[V.bit_8=0]="bit_8",V[V.bit_10=1]="bit_10",V[V.bit_16=2]="bit_16",V[V.bit_16_HDR=3]="bit_16_HDR",V[V.bit_16_WCG=4]="bit_16_WCG",V[V.bit_Default=-1]="bit_Default"}(Qt=J.DesktopColorDepth||(J.DesktopColorDepth={})),function(V){V[V.None=0]="None",V[V.Crt=1]="Crt",V[V.Internal=2]="Internal",V[V.Tv=3]="Tv",V[V.Dvi=4]="Dvi"}(Jt=J.DeviceType||(J.DeviceType={})),function(V){V[V.None=0]="None",V[V.CloneDisplay=1]="CloneDisplay",V[V.SurroundDisplay=2]="SurroundDisplay",V[V.MosaicDisplay=3]="MosaicDisplay"}(Zt=J.LogicalDisplayType||(J.LogicalDisplayType={})),function(V){V[V.Invalid=-1]="Invalid",V[V.VESA=0]="VESA",V[V.CEA=1]="CEA",V[V.AUTO=2]="AUTO"}(nn=J.DynamicRange||(J.DynamicRange={})),function(V){V[V.Invalid=-1]="Invalid",V[V.BPC_6=0]="BPC_6",V[V.BPC_8=1]="BPC_8",V[V.BPC_10=2]="BPC_10",V[V.BPC_12=3]="BPC_12",V[V.BPC_16=4]="BPC_16"}(Xt=J.OutputColorDepth||(J.OutputColorDepth={})),function(V){V[V.Invalid=0]="Invalid",V[V.Auto=1]="Auto",V[V.Reference=2]="Reference",V[V.Accurate=3]="Accurate",V[V.Enhanced=4]="Enhanced"}(lt=J.ColorAccuracyMode||(J.ColorAccuracyMode={})),function(V){V[V.Auto=0]="Auto",V[V.GTF=1]="GTF",V[V.DMT=2]="DMT",V[V.CVT=3]="CVT",V[V.CVTRB=4]="CVTRB",V[V.Manual=5]="Manual",V[V.OverrideEIA861=6]="OverrideEIA861"}(Ue=J.TimingFormula||(J.TimingFormula={})),function(V){V[V.Monitor=0]="Monitor",V[V.Adapter=1]="Adapter",V[V.Centered=2]="Centered",V[V.FixedAspect=3]="FixedAspect"}(wt=J.ScalingType||(J.ScalingType={})),function(V){V[V.None=0]="None",V[V.FullScreen=1]="FullScreen",V[V.FixedAspect=2]="FixedAspect",V[V.NoScale=3]="NoScale",V[V.IntegerScaling=4]="IntegerScaling"}(gt=J.ScalingMethod||(J.ScalingMethod={})),function(V){V[V.None=0]="None",V[V.Gpu=1]="Gpu",V[V.Display=2]="Display"}(Ht=J.ScalingMode||(J.ScalingMode={})),function(V){V[V.ClearCache=0]="ClearCache",V[V.RefreshCache=1]="RefreshCache",V[V.AddResolution=2]="AddResolution",V[V.FlushToStorage=3]="FlushToStorage"}(bn=J.CustomResolutionLocalCacheActions||(J.CustomResolutionLocalCacheActions={})),function(V){V[V.Auto=0]="Auto",V[V.Video=1]="Video",V[V.Desktop=2]="Desktop",V[V.Photo=3]="Photo",V[V.Movie=4]="Movie",V[V.Game=5]="Game"}(Ut=J.ContentType||(J.ContentType={})),function(V){V[V.DDSTrayIcon=0]="DDSTrayIcon",V[V.DDSDesktopNotification=1]="DDSDesktopNotification"}(Bt=J.UiElemType||(J.UiElemType={})),function(V){V[V.DISABLE=0]="DISABLE",V[V.ENABLE=1]="ENABLE"}(Le=J.UiElemState||(J.UiElemState={}))}(v||(v={})),function(J){let vt;var bt;let ve,ue,et,se,Ce,be,rt,me,le,Xe,Se,fe,Ne,ye,Ot,sn,dn,yn,At,Vt,Qt,Jt,Zt,nn,Xt,lt,Ue,wt,gt,Ht,bn,Ut,Bt,Le,V,de,ge,Ft,Wt,Kt,cn,En,kn,Ai,Gi;(bt=vt=J.ProfileSettingType||(J.ProfileSettingType={}))[bt.type_invalid=-1]="type_invalid",bt[bt.type_integer=0]="type_integer",bt[bt.type_string=1]="type_string",bt[bt.type_boolean=2]="type_boolean",bt[bt.type_json_string=3]="type_json_string",function(bt){bt[bt.UNKNOWN=0]="UNKNOWN",bt[bt.SUPPORTED=1]="SUPPORTED",bt[bt.UNSUPPORTED=2]="UNSUPPORTED"}(ve=J.HwSupportType||(J.HwSupportType={})),function(bt){bt[bt.Unknown=0]="Unknown",bt[bt.GpuUnsupported=1]="GpuUnsupported",bt[bt.DriverUnsupported=2]="DriverUnsupported",bt[bt.HardwareSchedulingUnavailable=3]="HardwareSchedulingUnavailable",bt[bt.GraphicsApiUnsupported=4]="GraphicsApiUnsupported",bt[bt.DenyListed=5]="DenyListed",bt[bt.x86Unsupported=6]="x86Unsupported",bt[bt.SRModelDenyListed=7]="SRModelDenyListed",bt[bt.RRModelDenyListed=8]="RRModelDenyListed",bt[bt.FGMultiFrameCountUnsupported=9]="FGMultiFrameCountUnsupported"}(ue=J.ConstraintType||(J.ConstraintType={})),function(bt){bt[bt.ScanDetectSupported=0]="ScanDetectSupported",bt[bt.NGXDetectSupported=1]="NGXDetectSupported",bt[bt.ScanDetectUnknown=2]="ScanDetectUnknown",bt[bt.NGXDetectUnknown=3]="NGXDetectUnknown"}(et=J.DlssSupportState||(J.DlssSupportState={})),function(bt){bt[bt.Unknown=-1]="Unknown",bt[bt.OpenGL=1]="OpenGL",bt[bt.DX9=2]="DX9",bt[bt.DX10=3]="DX10",bt[bt.DX10_1=8]="DX10_1",bt[bt.DX11=10]="DX11",bt[bt.OpenCL=64]="OpenCL",bt[bt.DX12=128]="DX12",bt[bt.Vulkan=256]="Vulkan"}(se=J.GraphicsApi||(J.GraphicsApi={})),function(bt){bt[bt.NVCPLAPI_VALUE_TRILINEAR_OPT_ON=0]="NVCPLAPI_VALUE_TRILINEAR_OPT_ON",bt[bt.NVCPLAPI_VALUE_TRILINEAR_OPT_OFF=1]="NVCPLAPI_VALUE_TRILINEAR_OPT_OFF"}(Ce=J.TextureFilteringTrilinearValue||(J.TextureFilteringTrilinearValue={})),function(bt){bt[bt.NVCPLAPI_VALUE_VERTICAL_SYNC_APPCONTROLLED=0]="NVCPLAPI_VALUE_VERTICAL_SYNC_APPCONTROLLED",bt[bt.NVCPLAPI_VALUE_VERTICAL_SYNC_FORCEOFF=1]="NVCPLAPI_VALUE_VERTICAL_SYNC_FORCEOFF",bt[bt.NVCPLAPI_VALUE_VERTICAL_SYNC_FORCEON=2]="NVCPLAPI_VALUE_VERTICAL_SYNC_FORCEON",bt[bt.NVCPLAPI_VALUE_VERTICAL_SYNC_FORCEON_INTERVAL2=3]="NVCPLAPI_VALUE_VERTICAL_SYNC_FORCEON_INTERVAL2",bt[bt.NVCPLAPI_VALUE_VERTICAL_SYNC_AUTO=4]="NVCPLAPI_VALUE_VERTICAL_SYNC_AUTO",bt[bt.NVCPLAPI_VALUE_VERTICAL_SYNC_AUTO_INTERVAL2=5]="NVCPLAPI_VALUE_VERTICAL_SYNC_AUTO_INTERVAL2",bt[bt.NVCPLAPI_VALUE_VERTICAL_SYNC_SMOOTH=6]="NVCPLAPI_VALUE_VERTICAL_SYNC_SMOOTH",bt[bt.NVCPLAPI_VALUE_VERTICAL_SYNC_VRR_ENABLE=8]="NVCPLAPI_VALUE_VERTICAL_SYNC_VRR_ENABLE",bt[bt.NVCPLAPI_VALUE_VERTICAL_SYNC_VRR_NONE=9]="NVCPLAPI_VALUE_VERTICAL_SYNC_VRR_NONE",bt[bt.NVCPLAPI_VALUE_VERTICAL_SYNC_VIRTUAL=10]="NVCPLAPI_VALUE_VERTICAL_SYNC_VIRTUAL"}(be=J.VerticalSyncValue||(J.VerticalSyncValue={})),function(bt){bt[bt.NVCPLAPI_VALUE_OGL_THREADING_OPTIMIZATION_AUTO=0]="NVCPLAPI_VALUE_OGL_THREADING_OPTIMIZATION_AUTO",bt[bt.NVCPLAPI_VALUE_OGL_THREADING_OPTIMIZATION_ON=1]="NVCPLAPI_VALUE_OGL_THREADING_OPTIMIZATION_ON",bt[bt.NVCPLAPI_VALUE_OGL_THREADING_OPTIMIZATION_OFF=2]="NVCPLAPI_VALUE_OGL_THREADING_OPTIMIZATION_OFF"}(rt=J.ThreadedOptimizationValue||(J.ThreadedOptimizationValue={})),function(bt){bt[bt.NVCPLAPI_VALUE_OGL_OVERLAYSUPPORT_OFF=0]="NVCPLAPI_VALUE_OGL_OVERLAYSUPPORT_OFF",bt[bt.NVCPLAPI_VALUE_OGL_OVERLAYSUPPORT_ON=1]="NVCPLAPI_VALUE_OGL_OVERLAYSUPPORT_ON"}(me=J.EnableOverlayValue||(J.EnableOverlayValue={})),function(bt){bt[bt.NVCPLAPI_VALUE_OGL_OVERLAY_PIXEL_NONE=0]="NVCPLAPI_VALUE_OGL_OVERLAY_PIXEL_NONE",bt[bt.NVCPLAPI_VALUE_OGL_OVERLAY_PIXEL_CI=1]="NVCPLAPI_VALUE_OGL_OVERLAY_PIXEL_CI",bt[bt.NVCPLAPI_VALUE_OGL_OVERLAY_PIXEL_RGBA=2]="NVCPLAPI_VALUE_OGL_OVERLAY_PIXEL_RGBA",bt[bt.NVCPLAPI_VALUE_OGL_OVERLAY_PIXEL_CI_AND_RGBA=3]="NVCPLAPI_VALUE_OGL_OVERLAY_PIXEL_CI_AND_RGBA"}(le=J.ExportedpixeltypesValue||(J.ExportedpixeltypesValue={})),function(bt){bt[bt.NVAPPAPI_VALUE_SHADER_CACHE_SIZE_DISABLED=0]="NVAPPAPI_VALUE_SHADER_CACHE_SIZE_DISABLED",bt[bt.NVAPPAPI_VALUE_SHADER_CACHE_SIZE_128=1]="NVAPPAPI_VALUE_SHADER_CACHE_SIZE_128",bt[bt.NVAPPAPI_VALUE_SHADER_CACHE_SIZE_256=2]="NVAPPAPI_VALUE_SHADER_CACHE_SIZE_256",bt[bt.NVAPPAPI_VALUE_SHADER_CACHE_SIZE_512=3]="NVAPPAPI_VALUE_SHADER_CACHE_SIZE_512",bt[bt.NVAPPAPI_VALUE_SHADER_CACHE_SIZE_1GB=4]="NVAPPAPI_VALUE_SHADER_CACHE_SIZE_1GB",bt[bt.NVAPPAPI_VALUE_SHADER_CACHE_SIZE_5GB=5]="NVAPPAPI_VALUE_SHADER_CACHE_SIZE_5GB",bt[bt.NVAPPAPI_VALUE_SHADER_CACHE_SIZE_10GB=6]="NVAPPAPI_VALUE_SHADER_CACHE_SIZE_10GB",bt[bt.NVAPPAPI_VALUE_SHADER_CACHE_SIZE_100GB=7]="NVAPPAPI_VALUE_SHADER_CACHE_SIZE_100GB",bt[bt.NVAPPAPI_VALUE_SHADER_CACHE_SIZE_Unlimited=8]="NVAPPAPI_VALUE_SHADER_CACHE_SIZE_Unlimited",bt[bt.NVAPPAPI_VALUE_SHADER_CACHE_SIZE_DEFAULT=9]="NVAPPAPI_VALUE_SHADER_CACHE_SIZE_DEFAULT"}(Xe=J.ShaderCacheValue||(J.ShaderCacheValue={})),function(bt){bt[bt.NVCPLAPI_VALUE_MAX_VIRTUAL_REALITY_PRE_RENDERED_FRAMES_NONE=0]="NVCPLAPI_VALUE_MAX_VIRTUAL_REALITY_PRE_RENDERED_FRAMES_NONE",bt[bt.NVCPLAPI_VALUE_MAX_VIRTUAL_REALITY_PRE_RENDERED_FRAMES_ONE=1]="NVCPLAPI_VALUE_MAX_VIRTUAL_REALITY_PRE_RENDERED_FRAMES_ONE",bt[bt.NVCPLAPI_VALUE_MAX_VIRTUAL_REALITY_PRE_RENDERED_FRAMES_TWO=2]="NVCPLAPI_VALUE_MAX_VIRTUAL_REALITY_PRE_RENDERED_FRAMES_TWO",bt[bt.NVCPLAPI_VALUE_MAX_VIRTUAL_REALITY_PRE_RENDERED_FRAMES_THREE=3]="NVCPLAPI_VALUE_MAX_VIRTUAL_REALITY_PRE_RENDERED_FRAMES_THREE",bt[bt.NVCPLAPI_VALUE_MAX_VIRTUAL_REALITY_PRE_RENDERED_FRAMES_FOUR=4]="NVCPLAPI_VALUE_MAX_VIRTUAL_REALITY_PRE_RENDERED_FRAMES_FOUR"}(Se=J.VirtualRealityPreRenderedFramesValue||(J.VirtualRealityPreRenderedFramesValue={})),function(bt){bt[bt.NVCPLAPI_VALUE_PREFERRED_REFRATE_APP_CONTROL=0]="NVCPLAPI_VALUE_PREFERRED_REFRATE_APP_CONTROL",bt[bt.NVCPLAPI_VALUE_PREFERRED_REFRATE_OVERRIDE=1]="NVCPLAPI_VALUE_PREFERRED_REFRATE_OVERRIDE"}(fe=J.PreferredRefreshRateValue||(J.PreferredRefreshRateValue={})),function(bt){bt[bt.NVCPLAPI_VALUE_POWER_MANAGEMENT_MODE_ADAPTIVE=0]="NVCPLAPI_VALUE_POWER_MANAGEMENT_MODE_ADAPTIVE",bt[bt.NVCPLAPI_VALUE_POWER_MANAGEMENT_MODE_MAX=1]="NVCPLAPI_VALUE_POWER_MANAGEMENT_MODE_MAX",bt[bt.NVCPLAPI_VALUE_POWER_MANAGEMENT_MODE_DRIVER_CONTROLLED=2]="NVCPLAPI_VALUE_POWER_MANAGEMENT_MODE_DRIVER_CONTROLLED",bt[bt.NVCPLAPI_VALUE_POWER_MANAGEMENT_MODE_PREFER_CONSISTENT_PERFORMANCE=3]="NVCPLAPI_VALUE_POWER_MANAGEMENT_MODE_PREFER_CONSISTENT_PERFORMANCE",bt[bt.NVCPLAPI_VALUE_POWER_MANAGEMENT_MODE_OPTIMAL_POWER=5]="NVCPLAPI_VALUE_POWER_MANAGEMENT_MODE_OPTIMAL_POWER"}(Ne=J.PowerManagementModeValue||(J.PowerManagementModeValue={})),function(bt){bt[bt.NVCPLAPI_VALUE_OGL_VULKAN_PRESENT_METHOD_PREFER_DISABLED=0]="NVCPLAPI_VALUE_OGL_VULKAN_PRESENT_METHOD_PREFER_DISABLED",bt[bt.NVCPLAPI_VALUE_OGL_VULKAN_PRESENT_METHOD_PREFER_ENABLED=1]="NVCPLAPI_VALUE_OGL_VULKAN_PRESENT_METHOD_PREFER_ENABLED",bt[bt.NVCPLAPI_VALUE_OGL_VULKAN_PRESENT_METHOD_AUTO=2]="NVCPLAPI_VALUE_OGL_VULKAN_PRESENT_METHOD_AUTO"}(ye=J.OpenGlVulkanPresentMethodValue||(J.OpenGlVulkanPresentMethodValue={})),function(bt){bt[bt.NVCPLAPI_VALUE_OGL_GDI_COMPATIBILITY_PREFER_DISABLED=0]="NVCPLAPI_VALUE_OGL_GDI_COMPATIBILITY_PREFER_DISABLED",bt[bt.NVCPLAPI_VALUE_OGL_GDI_COMPATIBILITY_PREFER_ENABLED=1]="NVCPLAPI_VALUE_OGL_GDI_COMPATIBILITY_PREFER_ENABLED",bt[bt.NVCPLAPI_VALUE_OGL_GDI_COMPATIBILITY_AUTO=2]="NVCPLAPI_VALUE_OGL_GDI_COMPATIBILITY_AUTO"}(Ot=J.OpenGlGdiCompatibilityValue||(J.OpenGlGdiCompatibilityValue={})),function(bt){bt[bt.NVCPLAPI_VALUE_ANISOTROPIC_APP_CONTROLLED=1048576]="NVCPLAPI_VALUE_ANISOTROPIC_APP_CONTROLLED",bt[bt.NVCPLAPI_VALUE_ANISOTROPIC_OFF=1]="NVCPLAPI_VALUE_ANISOTROPIC_OFF",bt[bt.NVCPLAPI_VALUE_ANISOTROPIC_2X=2]="NVCPLAPI_VALUE_ANISOTROPIC_2X",bt[bt.NVCPLAPI_VALUE_ANISOTROPIC_4X=4]="NVCPLAPI_VALUE_ANISOTROPIC_4X",bt[bt.NVCPLAPI_VALUE_ANISOTROPIC_8X=8]="NVCPLAPI_VALUE_ANISOTROPIC_8X",bt[bt.NVCPLAPI_VALUE_ANISOTROPIC_16X=16]="NVCPLAPI_VALUE_ANISOTROPIC_16X"}(sn=J.AnisotropicFilteringValue||(J.AnisotropicFilteringValue={})),function(bt){bt[bt.NVCPLAPI_VALUE_TEXTURE_FILTERING_LOD_NO_ALLOW=0]="NVCPLAPI_VALUE_TEXTURE_FILTERING_LOD_NO_ALLOW",bt[bt.NVCPLAPI_VALUE_TEXTURE_FILTERING_LOD_NO_CLAMP=1]="NVCPLAPI_VALUE_TEXTURE_FILTERING_LOD_NO_CLAMP"}(dn=J.TextureFilteringNegativeMethodValue||(J.TextureFilteringNegativeMethodValue={})),function(bt){bt[bt.NVCPLAPI_VALUE_D3D_PERFORMANCE_HIQUAL=0]="NVCPLAPI_VALUE_D3D_PERFORMANCE_HIQUAL",bt[bt.NVCPLAPI_VALUE_D3D_PERFORMANCE_QUAL=1]="NVCPLAPI_VALUE_D3D_PERFORMANCE_QUAL",bt[bt.NVCPLAPI_VALUE_D3D_PERFORMANCE_PERF=2]="NVCPLAPI_VALUE_D3D_PERFORMANCE_PERF",bt[bt.NVCPLAPI_VALUE_D3D_PERFORMANCE_HIPERF=3]="NVCPLAPI_VALUE_D3D_PERFORMANCE_HIPERF"}(yn=J.TextureFilteringQualityValue||(J.TextureFilteringQualityValue={})),function(bt){bt[bt.NVCPLAPI_VALUE_IMAGE_SHARPENING_TOGGLE_DISABLED=0]="NVCPLAPI_VALUE_IMAGE_SHARPENING_TOGGLE_DISABLED",bt[bt.NVCPLAPI_VALUE_IMAGE_SHARPENING_TOGGLE_ENABLED=1]="NVCPLAPI_VALUE_IMAGE_SHARPENING_TOGGLE_ENABLED"}(At=J.ImageSharpeningToggleValue||(J.ImageSharpeningToggleValue={})),function(bt){bt[bt.NVCPLAPI_VALUE_SHARPENING_ALLOW_DISABLED=0]="NVCPLAPI_VALUE_SHARPENING_ALLOW_DISABLED",bt[bt.NVCPLAPI_VALUE_SHARPENING_ALLOW_ENABLED=1]="NVCPLAPI_VALUE_SHARPENING_ALLOW_ENABLED"}(Vt=J.ImageSharpeningAllowValue||(J.ImageSharpeningAllowValue={})),function(bt){bt[bt.NVCPLAPI_VALUE_WHISPER_MODE_FPS_OFF=0]="NVCPLAPI_VALUE_WHISPER_MODE_FPS_OFF",bt[bt.NVCPLAPI_VALUE_WHISPER_MODE_FPS_ON=1]="NVCPLAPI_VALUE_WHISPER_MODE_FPS_ON"}(Qt=J.WhisperModeProgramValue||(J.WhisperModeProgramValue={})),function(bt){bt[bt.NVCPLAPI_VALUE_SILK_SMOOTHNESS_VALUE_LOW=0]="NVCPLAPI_VALUE_SILK_SMOOTHNESS_VALUE_LOW",bt[bt.NVCPLAPI_VALUE_SILK_SMOOTHNESS_VALUE_MEDIUM=1]="NVCPLAPI_VALUE_SILK_SMOOTHNESS_VALUE_MEDIUM",bt[bt.NVCPLAPI_VALUE_SILK_SMOOTHNESS_VALUE_HIGH=2]="NVCPLAPI_VALUE_SILK_SMOOTHNESS_VALUE_HIGH",bt[bt.NVCPLAPI_VALUE_SILK_SMOOTHNESS_VALUE_ULTRA=3]="NVCPLAPI_VALUE_SILK_SMOOTHNESS_VALUE_ULTRA",bt[bt.NVCPLAPI_VALUE_SILK_SMOOTHNESS_VALUE_OFF=4]="NVCPLAPI_VALUE_SILK_SMOOTHNESS_VALUE_OFF"}(Jt=J.SilkSmoothnessValue||(J.SilkSmoothnessValue={})),function(bt){bt[bt.NVCPLAPI_VALUE_LATENCY_MODE_BEST_PERFORMANCE=0]="NVCPLAPI_VALUE_LATENCY_MODE_BEST_PERFORMANCE",bt[bt.NVCPLAPI_VALUE_LATENCY_MODE_LOW_LATENCY=1]="NVCPLAPI_VALUE_LATENCY_MODE_LOW_LATENCY",bt[bt.NVCPLAPI_VALUE_LATENCY_MODE_LOWEST_LATENCY=2]="NVCPLAPI_VALUE_LATENCY_MODE_LOWEST_LATENCY"}(Zt=J.LowLatencyModeValue||(J.LowLatencyModeValue={})),function(bt){bt[bt.NVCPLAPI_VALUE_VR_AUTOVRS_OFF=0]="NVCPLAPI_VALUE_VR_AUTOVRS_OFF",bt[bt.NVCPLAPI_VALUE_VR_AUTOVRS_FORCED=1]="NVCPLAPI_VALUE_VR_AUTOVRS_FORCED",bt[bt.NVCPLAPI_VALUE_VR_AUTOVRS_ADAPTIVE=2]="NVCPLAPI_VALUE_VR_AUTOVRS_ADAPTIVE"}(nn=J.VirtualRealityVrssValue||(J.VirtualRealityVrssValue={})),function(bt){bt[bt.NVCPLAPI_VALUE_AUTOFL_DB_OFF=0]="NVCPLAPI_VALUE_AUTOFL_DB_OFF",bt[bt.NVCPLAPI_VALUE_AUTOFL_DB_ON=1]="NVCPLAPI_VALUE_AUTOFL_DB_ON"}(Xt=J.MaxqDynamicBoostValue||(J.MaxqDynamicBoostValue={})),function(bt){bt[bt.NVCPLAPI_VALUE_AUTO_DISPLAYMUX_INDICATOR_OFF=0]="NVCPLAPI_VALUE_AUTO_DISPLAYMUX_INDICATOR_OFF",bt[bt.NVCPLAPI_VALUE_AUTO_DISPLAYMUX_INDICATOR_ON=1]="NVCPLAPI_VALUE_AUTO_DISPLAYMUX_INDICATOR_ON"}(lt=J.AutoDisplaySwitchingValue||(J.AutoDisplaySwitchingValue={})),function(bt){bt[bt.NVCPLAPI_VALUE_WHISPER_MODE_ALLOW_DISABLED=0]="NVCPLAPI_VALUE_WHISPER_MODE_ALLOW_DISABLED",bt[bt.NVCPLAPI_VALUE_WHISPER_MODE_ALLOW_ENABLED=1]="NVCPLAPI_VALUE_WHISPER_MODE_ALLOW_ENABLED"}(Ue=J.WhisperModeGlobalValue||(J.WhisperModeGlobalValue={})),function(bt){bt[bt.NVCPLAPI_VALUE_MT_GSYNC_ON=0]="NVCPLAPI_VALUE_MT_GSYNC_ON",bt[bt.NVCPLAPI_VALUE_MT_GSYNC_FORCE_OFF=1]="NVCPLAPI_VALUE_MT_GSYNC_FORCE_OFF",bt[bt.NVCPLAPI_VALUE_MT_VRR_OFF=2]="NVCPLAPI_VALUE_MT_VRR_OFF",bt[bt.NVCPLAPI_VALUE_MT_ULMB_ON=3]="NVCPLAPI_VALUE_MT_ULMB_ON",bt[bt.NVCPLAPI_VALUE_MT_FIXED_REFRESH=4]="NVCPLAPI_VALUE_MT_FIXED_REFRESH"}(wt=J.MonitorTechnologyValue||(J.MonitorTechnologyValue={})),function(bt){bt[bt.NVCPLAPI_VALUE_POWER_MANAGEMENT_PANEL_OFF=0]="NVCPLAPI_VALUE_POWER_MANAGEMENT_PANEL_OFF",bt[bt.NVCPLAPI_VALUE_POWER_MANAGEMENT_PANEL_SELF_REFRESH_MODE=1]="NVCPLAPI_VALUE_POWER_MANAGEMENT_PANEL_SELF_REFRESH_MODE"}(gt=J.PowerManagementPanelValue||(J.PowerManagementPanelValue={})),function(bt){bt[bt.NVCPLAPI_VALUE_ENABLE_STEREO_OFF=0]="NVCPLAPI_VALUE_ENABLE_STEREO_OFF",bt[bt.NVCPLAPI_VALUE_ENABLE_STEREO_ON=1]="NVCPLAPI_VALUE_ENABLE_STEREO_ON"}(Ht=J.StereoEnableValue||(J.StereoEnableValue={})),function(bt){bt[bt.NVAPPAPI_VALUE_STEREO_DISPLAY_MODE_DIN=1]="NVAPPAPI_VALUE_STEREO_DISPLAY_MODE_DIN",bt[bt.NVAPPAPI_VALUE_STEREO_DISPLAY_MODE_DIN_NV_IR=2]="NVAPPAPI_VALUE_STEREO_DISPLAY_MODE_DIN_NV_IR",bt[bt.NVAPPAPI_VALUE_STEREO_DISPLAY_MODE_DP_INBAND=3]="NVAPPAPI_VALUE_STEREO_DISPLAY_MODE_DP_INBAND",bt[bt.NVAPPAPI_VALUE_STEREO_DISPLAY_GENERIC=4]="NVAPPAPI_VALUE_STEREO_DISPLAY_GENERIC",bt[bt.NVAPPAPI_VALUE_STEREO_DISPLAY_GENERIC_NV_IR=5]="NVAPPAPI_VALUE_STEREO_DISPLAY_GENERIC_NV_IR",bt[bt.NVAPPAPI_VALUE_STEREO_DISPLAY_DDC_GLASSES=6]="NVAPPAPI_VALUE_STEREO_DISPLAY_DDC_GLASSES",bt[bt.NVAPPAPI_VALUE_STEREO_DISPLAY_NV_CLONE=7]="NVAPPAPI_VALUE_STEREO_DISPLAY_NV_CLONE",bt[bt.NVAPPAPI_VALUE_STEREO_DISPLAY_NV_CLONE_DLP=8]="NVAPPAPI_VALUE_STEREO_DISPLAY_NV_CLONE_DLP",bt[bt.NVAPPAPI_VALUE_STEREO_DISPLAY_BLUELINE=9]="NVAPPAPI_VALUE_STEREO_DISPLAY_BLUELINE",bt[bt.NVAPPAPI_VALUE_STEREO_DISPLAY_VERTICAL_INTERLACE=10]="NVAPPAPI_VALUE_STEREO_DISPLAY_VERTICAL_INTERLACE",bt[bt.NVAPPAPI_VALUE_STEREO_DISPLAY_COLOR_INTERLEAVE=11]="NVAPPAPI_VALUE_STEREO_DISPLAY_COLOR_INTERLEAVE",bt[bt.NVAPPAPI_VALUE_STEREO_DISPLAY_HORIZONTAL_INTERLACE=12]="NVAPPAPI_VALUE_STEREO_DISPLAY_HORIZONTAL_INTERLACE",bt[bt.NVAPPAPI_VALUE_STEREO_DISPLAY_SUBFIELD=13]="NVAPPAPI_VALUE_STEREO_DISPLAY_SUBFIELD",bt[bt.NVAPPAPI_VALUE_STEREO_DISPLAY_SIDEFIELD=14]="NVAPPAPI_VALUE_STEREO_DISPLAY_SIDEFIELD",bt[bt.NVAPPAPI_VALUE_STEREO_DISPLAY_SEEFRONT=15]="NVAPPAPI_VALUE_STEREO_DISPLAY_SEEFRONT",bt[bt.NVAPPAPI_VALUE_STEREO_DISPLAY_3D_DLP=16]="NVAPPAPI_VALUE_STEREO_DISPLAY_3D_DLP",bt[bt.NVAPPAPI_VALUE_STEREO_DISPLAY_3D_DLP_NV_IR=17]="NVAPPAPI_VALUE_STEREO_DISPLAY_3D_DLP_NV_IR",bt[bt.NVAPPAPI_VALUE_STEREO_DISPLAY_3D_DLP_INV=18]="NVAPPAPI_VALUE_STEREO_DISPLAY_3D_DLP_INV",bt[bt.NVAPPAPI_VALUE_STEREO_DISPLAY_3D_DLP_INV_NV_IR=19]="NVAPPAPI_VALUE_STEREO_DISPLAY_3D_DLP_INV_NV_IR",bt[bt.NVAPPAPI_VALUE_STEREO_DISPLAY_TRIDELITY_SL_SV=20]="NVAPPAPI_VALUE_STEREO_DISPLAY_TRIDELITY_SL_SV",bt[bt.NVAPPAPI_VALUE_STEREO_DISPLAY_TRIDELITY_MV=21]="NVAPPAPI_VALUE_STEREO_DISPLAY_TRIDELITY_MV",bt[bt.NVAPPAPI_VALUE_STEREO_DISPLAY_PLANAR_MIRROR=22]="NVAPPAPI_VALUE_STEREO_DISPLAY_PLANAR_MIRROR"}(bn=J.StereoDisplayModeValue||(J.StereoDisplayModeValue={})),function(bt){bt[bt.NVCPLAPI_VALUE_ENABLE_OGL_STEREO_SWAP_EYES_OFF=0]="NVCPLAPI_VALUE_ENABLE_OGL_STEREO_SWAP_EYES_OFF",bt[bt.NVCPLAPI_VALUE_ENABLE_OGL_STEREO_SWAP_EYES_ON=1]="NVCPLAPI_VALUE_ENABLE_OGL_STEREO_SWAP_EYES_ON"}(Ut=J.StereoSwapEyeValue||(J.StereoSwapEyeValue={})),function(bt){bt[bt.NVCPLAPI_VALUE_STEREO_SWAP_APPLICATION_CONTROL=0]="NVCPLAPI_VALUE_STEREO_SWAP_APPLICATION_CONTROL",bt[bt.NVCPLAPI_VALUE_STEREO_SWAP_PER_EYE=1]="NVCPLAPI_VALUE_STEREO_SWAP_PER_EYE",bt[bt.NVCPLAPI_VALUE_STEREO_SWAP_PER_EYE_PAIR=2]="NVCPLAPI_VALUE_STEREO_SWAP_PER_EYE_PAIR"}(Bt=J.StereoSwapModeValue||(J.StereoSwapModeValue={})),function(bt){bt[bt.NVCPLAPI_VALUE_AA_APPCONTROL_MODE_OFF=0]="NVCPLAPI_VALUE_AA_APPCONTROL_MODE_OFF",bt[bt.NVCPLAPI_VALUE_AA_APPCONTROL_MODE_ON=1]="NVCPLAPI_VALUE_AA_APPCONTROL_MODE_ON",bt[bt.NVCPLAPI_VALUE_AA_APPCONTROL_MODE_ENHANCE=2]="NVCPLAPI_VALUE_AA_APPCONTROL_MODE_ENHANCE",bt[bt.NVCPLAPI_VALUE_AA_APPCONTROL_MODE_FORCE_OFF=3]="NVCPLAPI_VALUE_AA_APPCONTROL_MODE_FORCE_OFF"}(Le=J.AntialiasingModeValue||(J.AntialiasingModeValue={})),function(bt){bt[bt.NVCPLAPI_VALUE_SLI_MGPU_AUTORENDER=0]="NVCPLAPI_VALUE_SLI_MGPU_AUTORENDER",bt[bt.NVCPLAPI_VALUE_SLI_MGPU_FORCE_SINGLE=4]="NVCPLAPI_VALUE_SLI_MGPU_FORCE_SINGLE",bt[bt.NVCPLAPI_VALUE_SLI_MGPU_FORCE_2_AFR=3]="NVCPLAPI_VALUE_SLI_MGPU_FORCE_2_AFR",bt[bt.NVCPLAPI_VALUE_SLI_MGPU_FORCE_2_AFR2=61443]="NVCPLAPI_VALUE_SLI_MGPU_FORCE_2_AFR2"}(V=J.SliMultiGpuRenderingModeValue||(J.SliMultiGpuRenderingModeValue={})),function(bt){bt[bt.NVCPLAPI_VALUE_OGL_DEEP_COLOR_3D_DISABLE=0]="NVCPLAPI_VALUE_OGL_DEEP_COLOR_3D_DISABLE",bt[bt.NVCPLAPI_VALUE_OGL_DEEP_COLOR_3D_ENABLE=1]="NVCPLAPI_VALUE_OGL_DEEP_COLOR_3D_ENABLE"}(de=J.DeepColorFor3DApplicationsValue||(J.DeepColorFor3DApplicationsValue={})),function(bt){bt[bt.NVCPLAPI_VALUE_ANTI_ALIASING_METHOD_NONE=0]="NVCPLAPI_VALUE_ANTI_ALIASING_METHOD_NONE",bt[bt.NVCPLAPI_VALUE_ANTI_ALIASING_METHOD_APP_CONTROLLED=1048576]="NVCPLAPI_VALUE_ANTI_ALIASING_METHOD_APP_CONTROLLED",bt[bt.NVCPLAPI_VALUE_ANTI_ALIASING_METHOD_MULTISAMPLE_2X_DIAGONAL=14]="NVCPLAPI_VALUE_ANTI_ALIASING_METHOD_MULTISAMPLE_2X_DIAGONAL",bt[bt.NVCPLAPI_VALUE_ANTI_ALIASING_METHOD_MULTISAMPLE_4X=16]="NVCPLAPI_VALUE_ANTI_ALIASING_METHOD_MULTISAMPLE_4X",bt[bt.NVCPLAPI_VALUE_ANTI_ALIASING_METHOD_MIXEDSAMPLE_8SX=24]="NVCPLAPI_VALUE_ANTI_ALIASING_METHOD_MIXEDSAMPLE_8SX",bt[bt.NVCPLAPI_VALUE_ANTI_ALIASING_METHOD_MULTISAMPLE_8X=25]="NVCPLAPI_VALUE_ANTI_ALIASING_METHOD_MULTISAMPLE_8X",bt[bt.NVCPLAPI_VALUE_ANTI_ALIASING_METHOD_MIXEDSAMPLE_16X=26]="NVCPLAPI_VALUE_ANTI_ALIASING_METHOD_MIXEDSAMPLE_16X",bt[bt.NVCPLAPI_VALUE_ANTI_ALIASING_METHOD_MIXEDSAMPLE_32X=41]="NVCPLAPI_VALUE_ANTI_ALIASING_METHOD_MIXEDSAMPLE_32X",bt[bt.NVCPLAPI_VALUE_ANTI_ALIASING_METHOD_MIXEDSAMPLE_64X=42]="NVCPLAPI_VALUE_ANTI_ALIASING_METHOD_MIXEDSAMPLE_64X",bt[bt.NVCPLAPI_VALUE_ANTI_ALIASING_METHOD_MIXEDSAMPLE_128X=43]="NVCPLAPI_VALUE_ANTI_ALIASING_METHOD_MIXEDSAMPLE_128X"}(ge=J.AntialiasingSettingValue||(J.AntialiasingSettingValue={})),function(bt){bt[bt.NVCPLAPI_VALUE_TRANSPARENCY_ANTI_ALIASING_OFF=0]="NVCPLAPI_VALUE_TRANSPARENCY_ANTI_ALIASING_OFF",bt[bt.NVCPLAPI_VALUE_TRANSPARENCY_ANTI_ALIASING_MULTI_SAMPLING=3]="NVCPLAPI_VALUE_TRANSPARENCY_ANTI_ALIASING_MULTI_SAMPLING",bt[bt.NVCPLAPI_VALUE_TRANSPARENCY_ANTI_ALIASING_SUPER_SAMPLING=5]="NVCPLAPI_VALUE_TRANSPARENCY_ANTI_ALIASING_SUPER_SAMPLING",bt[bt.NVCPLAPI_VALUE_TRANSPARENCY_ANTI_ALIASING_1X=1]="NVCPLAPI_VALUE_TRANSPARENCY_ANTI_ALIASING_1X",bt[bt.NVCPLAPI_VALUE_TRANSPARENCY_ANTI_ALIASING_2X=2]="NVCPLAPI_VALUE_TRANSPARENCY_ANTI_ALIASING_2X",bt[bt.NVCPLAPI_VALUE_TRANSPARENCY_ANTI_ALIASING_4X=4]="NVCPLAPI_VALUE_TRANSPARENCY_ANTI_ALIASING_4X",bt[bt.NVCPLAPI_VALUE_TRANSPARENCY_ANTI_ALIASING_8X=8]="NVCPLAPI_VALUE_TRANSPARENCY_ANTI_ALIASING_8X"}(Ft=J.AntialiasingTransparencyValue||(J.AntialiasingTransparencyValue={})),function(bt){bt[bt.V1=1]="V1",bt[bt.V2=2]="V2"}(Wt=J.BatteryBoostVersionEnum||(J.BatteryBoostVersionEnum={})),function(bt){bt[bt.V1=1]="V1",bt[bt.V2=2]="V2"}(Kt=J.WhisperModeVersionEnum||(J.WhisperModeVersionEnum={})),function(bt){bt[bt.QUIETER=1]="QUIETER",bt[bt.QUIET=2]="QUIET",bt[bt.BALANCED=3]="BALANCED"}(cn=J.FanVolume||(J.FanVolume={})),function(bt){bt[bt.Default=3]="Default",bt[bt.Performance=0]="Performance",bt[bt.Balanced=1]="Balanced",bt[bt.Quality=2]="Quality",bt[bt.UltraPerformance=5]="UltraPerformance",bt[bt.Dlaa=4]="Dlaa",bt[bt.Custom=6]="Custom"}(En=J.PerformanceModeOverrideEnum||(J.PerformanceModeOverrideEnum={})),function(bt){bt[bt.Default=0]="Default",bt[bt.PresetA=1]="PresetA",bt[bt.PresetB=2]="PresetB",bt[bt.PresetC=3]="PresetC",bt[bt.PresetD=4]="PresetD",bt[bt.PresetE=5]="PresetE",bt[bt.PresetF=6]="PresetF",bt[bt.PresetJ=10]="PresetJ",bt[bt.PresetK=11]="PresetK",bt[bt.PresetL=12]="PresetL",bt[bt.PresetM=13]="PresetM",bt[bt.PresetN=14]="PresetN",bt[bt.PresetO=15]="PresetO",bt[bt.Latest=16777215]="Latest"}(kn=J.ModelOverrideEnum||(J.ModelOverrideEnum={})),function(bt){bt[bt.REMOVE=0]="REMOVE",bt[bt.OFF=1]="OFF",bt[bt.VALUE_3X=2]="VALUE_3X",bt[bt.VALUE_4X=3]="VALUE_4X"}(Ai=J.MultiFrameEnum||(J.MultiFrameEnum={})),function(bt){bt[bt.Default=0]="Default",bt[bt.Latest=1]="Latest",bt[bt.Custom=2]="Custom"}(Gi=J.DlssModelPresetProfileTypeEnum||(J.DlssModelPresetProfileTypeEnum={}))}(E||(E={})),function(J){let vt;var ue;let ve;(ue=vt=J.HotkeyEnum||(J.HotkeyEnum={})).OpenIGO="OpenIGO",ue.OpenPerformanceOverlay="OpenPerformanceOverlay",ue.OpenChatUI="OpenChatUI",function(ue){ue.unknown="unknown",ue.enabled="enabled",ue.disabled="disabled"}(ve=J.ShadowPlayStatus||(J.ShadowPlayStatus={}))}(T||(T={})),function(J){let vt;var se;let ve,ue,et;(se=vt=J.Type||(J.Type={}))[se.Unknown=0]="Unknown",se[se.GpuClock=1]="GpuClock",se[se.MemoryClock=2]="MemoryClock",se[se.Voltage=3]="Voltage",se[se.Power=4]="Power",se[se.Temperature=5]="Temperature",se[se.Fan=6]="Fan",function(se){se[se.None=0]="None",se[se.ManualOc=1]="ManualOc",se[se.AutomaticOc=2]="AutomaticOc"}(ve=J.PersitenceType||(J.PersitenceType={})),function(se){se[se.Default=0]="Default",se[se.Custom=1]="Custom",se[se.Silent=2]="Silent",se[se.MaxPerf=3]="MaxPerf"}(ue=J.ProfileType||(J.ProfileType={})),function(se){se[se.AC=0]="AC",se[se.DC=1]="DC",se[se.UPS_LIKE=2]="UPS_LIKE",se[se.Unknown=3]="Unknown"}(et=J.PowerStatus||(J.PowerStatus={}))}(R||(R={})),function(J){let vt;var ue;let ve;(ue=vt=J.Type||(J.Type={}))[ue.Unknown=0]="Unknown",ue[ue.GpuClock=1]="GpuClock",ue[ue.MemoryClock=2]="MemoryClock",ue[ue.Voltage=3]="Voltage",ue[ue.Power=4]="Power",ue[ue.Temperature=5]="Temperature",ue[ue.Fan=6]="Fan",function(ue){ue[ue.Default=0]="Default",ue[ue.Custom=1]="Custom",ue[ue.Silent=2]="Silent",ue[ue.MaxPerf=3]="MaxPerf"}(ve=J.Profile||(J.Profile={}))}(B||(B={})),function(J){let vt;var Ce;let ve,ue,et,se;(Ce=vt=J.ContentType||(J.ContentType={}))[Ce.NV_RISE_CONTENT_TYPE_INVALID=0]="NV_RISE_CONTENT_TYPE_INVALID",Ce[Ce.NV_RISE_CONTENT_TYPE_TEXT=1]="NV_RISE_CONTENT_TYPE_TEXT",Ce[Ce.NV_RISE_CONTENT_TYPE_GRAPH=2]="NV_RISE_CONTENT_TYPE_GRAPH",Ce[Ce.NV_RISE_CONTENT_TYPE_CUSTOM_BEHAVIOR=3]="NV_RISE_CONTENT_TYPE_CUSTOM_BEHAVIOR",Ce[Ce.NV_RISE_CONTENT_TYPE_CUSTOM_BEHAVIOR_RESULT=4]="NV_RISE_CONTENT_TYPE_CUSTOM_BEHAVIOR_RESULT",Ce[Ce.NV_RISE_CONTENT_TYPE_INSTALLING=5]="NV_RISE_CONTENT_TYPE_INSTALLING",Ce[Ce.NV_RISE_CONTENT_TYPE_PROGRESS_UPDATE=6]="NV_RISE_CONTENT_TYPE_PROGRESS_UPDATE",Ce[Ce.NV_RISE_CONTENT_TYPE_READY=7]="NV_RISE_CONTENT_TYPE_READY",Ce[Ce.NV_RISE_CONTENT_TYPE_DOWNLOAD_REQUEST=8]="NV_RISE_CONTENT_TYPE_DOWNLOAD_REQUEST",function(Ce){Ce[Ce.NV_RISE_CONTENT_TYPE_INVALID=0]="NV_RISE_CONTENT_TYPE_INVALID",Ce[Ce.NV_RISE_CONTENT_TYPE_TEXT=1]="NV_RISE_CONTENT_TYPE_TEXT",Ce[Ce.NV_RISE_CONTENT_TYPE_GRAPH=2]="NV_RISE_CONTENT_TYPE_GRAPH",Ce[Ce.NV_RISE_CONTENT_TYPE_CUSTOM_BEHAVIOR=3]="NV_RISE_CONTENT_TYPE_CUSTOM_BEHAVIOR",Ce[Ce.NV_RISE_CONTENT_TYPE_CUSTOM_BEHAVIOR_RESULT=4]="NV_RISE_CONTENT_TYPE_CUSTOM_BEHAVIOR_RESULT",Ce[Ce.NV_RISE_CONTENT_TYPE_INSTALLING=5]="NV_RISE_CONTENT_TYPE_INSTALLING",Ce[Ce.NV_RISE_CONTENT_TYPE_PROGRESS_UPDATE=6]="NV_RISE_CONTENT_TYPE_PROGRESS_UPDATE",Ce[Ce.NV_RISE_CONTENT_TYPE_READY=7]="NV_RISE_CONTENT_TYPE_READY",Ce[Ce.NV_RISE_CONTENT_TYPE_DOWNLOAD_REQUEST=8]="NV_RISE_CONTENT_TYPE_DOWNLOAD_REQUEST"}(ve=J.ContentType1||(J.ContentType1={})),function(Ce){Ce[Ce.NvVqApi_VoiceQueryResponse_ASRText=0]="NvVqApi_VoiceQueryResponse_ASRText"}(ue=J.ResponseType||(J.ResponseType={})),function(Ce){Ce[Ce.NvVqApi_VoiceQueryMode_Start=0]="NvVqApi_VoiceQueryMode_Start",Ce[Ce.NvVqApi_VoiceQueryMode_Stop=1]="NvVqApi_VoiceQueryMode_Stop",Ce[Ce.NvVqApi_VoiceQueryMode_StartAutoStop=2]="NvVqApi_VoiceQueryMode_StartAutoStop",Ce[Ce.NvVqApi_VoiceQueryMode_StartWakeWord=3]="NvVqApi_VoiceQueryMode_StartWakeWord",Ce[Ce.NvVqApi_VoiceQueryMode_StopWakeWord=4]="NvVqApi_VoiceQueryMode_StopWakeWord"}(et=J.VqMode||(J.VqMode={})),function(Ce){Ce[Ce.NvGameAssistApi_QueryResponse_ResponseChunk=0]="NvGameAssistApi_QueryResponse_ResponseChunk",Ce[Ce.NvGameAssistApi_QueryResponse_CitationChunk=1]="NvGameAssistApi_QueryResponse_CitationChunk",Ce[Ce.NvGameAssistApi_QueryResponse_Sentinel=2]="NvGameAssistApi_QueryResponse_Sentinel",Ce[Ce.NvGameAssistApi_QueryResponse_GameAssistReady=3]="NvGameAssistApi_QueryResponse_GameAssistReady",Ce[Ce.NvGameAssistApi_QueryResponse_Fail=4]="NvGameAssistApi_QueryResponse_Fail",Ce[Ce.NvGameAssistApi_QueryResponse_UnsupportedQuery=5]="NvGameAssistApi_QueryResponse_UnsupportedQuery",Ce[Ce.NvGameAssistApi_QueryResponse_AlertNotification=6]="NvGameAssistApi_QueryResponse_AlertNotification",Ce[Ce.NvGameAssistApi_QueryResponse_ClearOngoingStream=7]="NvGameAssistApi_QueryResponse_ClearOngoingStream",Ce[Ce.NvGameAssistApi_QueryResponse_SpecialMessage=8]="NvGameAssistApi_QueryResponse_SpecialMessage"}(se=J.ResponseType1||(J.ResponseType1={}))}(U||(U={}));var ae,G,Y=function(J){return J.Appdiscovery=m,J.Driverinstall=l,J.Driverupdaterecommendation=r,J.Localgames=u,J.Nvcpldisplayplugin=v,J.Nvcplplugin=E,J.Nvigoutil=T,J.Nvoc=R,J.Overclockingnvc=B,J.Rise=U,J}(Y||{});!function(J){let vt;var ve;(ve=vt=J.StreamerStatus||(J.StreamerStatus={})).Init="Init",ve.NetworkTest="NetworkTest",ve.Loading="Loading",ve.Streaming="Streaming",ve.Done="Done",ve.Error="Error",ve.GotInputFocus="GotInputFocus",ve.LostInputFocus="LostInputFocus",ve.UpdateCheck="UpdateCheck",ve.PreStreaming="PreStreaming",ve.Authentication="Authentication",ve.Authorization="Authorization",ve.PlatformSelection="PlatformSelection",ve.AccountLinking="AccountLinking",ve.PostSessionConnection="PostSessionConnection",ve.PostStreaming="PostStreaming",ve.ResumableError="ResumableError",ve.TerminalError="TerminalError",ve.PermissionsBarrier="PermissionsBarrier"}(ae||(ae={})),function(J){let vt;var be;let ve,ue,et,se,Ce;(be=vt=J.HdrStreamingMode||(J.HdrStreamingMode={})).OFF="OFF",be.HDR="HDR",be.HDR10_PLUS_GAMING="HDR10_PLUS_GAMING",function(be){be.Launch="Launch",be.Resume="Resume"}(ve=J.SessionType||(J.SessionType={})),function(be){be.H264="H264",be.H265="H265",be.AV1="AV1",be.None="None"}(ue=J.Codec||(J.Codec={})),function(be){be[be.UNKNOWN=0]="UNKNOWN",be[be.INACTIVE=1]="INACTIVE",be[be.ACTIVE=2]="ACTIVE"}(et=J.L4SState||(J.L4SState={})),function(be){be[be.UNKNOWN=0]="UNKNOWN",be[be.START=1]="START",be[be.PAUSE=2]="PAUSE",be[be.RESUME=3]="RESUME",be[be.FINISH=4]="FINISH",be[be.CANCEL=5]="CANCEL",be[be.MAX=6]="MAX"}(se=J.AdAction||(J.AdAction={})),function(be){be.Low="Low",be.Medium="Medium",be.High="High",be.Off="Off"}(Ce=J.Sharpness||(J.Sharpness={}))}(G||(G={}));var X,q,Q,k=function(J){return J.Gfnsdkhost=ae,J.Streaming=G,J}(k||{});!function(J){let vt;var se;let ve,ue,et;(se=vt=J.ErrorCodeEnum||(J.ErrorCodeEnum={}))[se.NoError=0]="NoError",se[se.GeneralError=-505409537]="GeneralError",se[se.InvalidObject=-505413631]="InvalidObject",se[se.InsufficientArguments=-505413630]="InsufficientArguments",se[se.InvalidParameters=-505413629]="InvalidParameters",se[se.PropertyMissing=-505413628]="PropertyMissing",se[se.InvalidFormat=-505413627]="InvalidFormat",se[se.EmptyValue=-505413626]="EmptyValue",se[se.FileNotFound=-505413622]="FileNotFound",se[se.PathNotFound=-505413621]="PathNotFound",se[se.ProcessingPreviousCall=505413620]="ProcessingPreviousCall",se[se.InstallerAlreadyRunning=-505413619]="InstallerAlreadyRunning",se[se.MessagingChannel=-505413618]="MessagingChannel",se[se.ExtractedNotFound=-505413610]="ExtractedNotFound",se[se.InstallerExeNotFound=-505413608]="InstallerExeNotFound",se[se.GfeExperienceKeyNotFound=-505413607]="GfeExperienceKeyNotFound",se[se.GfeExperiencePathEmpty=-505413606]="GfeExperiencePathEmpty",se[se.SignatureInvalid=-505413605]="SignatureInvalid",se[se.UacCancelled=-505413600]="UacCancelled",se[se.MsgArrivedEventCreate=-505413599]="MsgArrivedEventCreate",se[se.MsgArrivedEventSignal=-505413598]="MsgArrivedEventSignal",se[se.ResumePathNotFound=-505413597]="ResumePathNotFound",se[se.ResumePathEmpty=-505413596]="ResumePathEmpty",se[se.ResumePathInvalid=-505413595]="ResumePathInvalid",se[se.MsgChannelInit=-505413584]="MsgChannelInit",se[se.MsgShowFormSet=-505413583]="MsgShowFormSet",se[se.MsgProgressUpdateSet=-505413582]="MsgProgressUpdateSet",se[se.MsgListen=-505413581]="MsgListen",function(se){se[se.NotSet=0]="NotSet",se[se.ShowForm=1]="ShowForm",se[se.ProgressUpdate=2]="ProgressUpdate"}(ve=J.MethodEnum||(J.MethodEnum={})),function(se){se[se.NotSet=0]="NotSet",se[se.InstallInitial=1]="InstallInitial",se[se.InstallChecking=2]="InstallChecking",se[se.InstallCheckWarnings=3]="InstallCheckWarnings",se[se.InstallCheckFailed=4]="InstallCheckFailed",se[se.InstallCheckWait=5]="InstallCheckWait",se[se.Eula=6]="Eula",se[se.InstallSelect=7]="InstallSelect",se[se.InstallSelectCustom=8]="InstallSelectCustom",se[se.InstallSelectInstallPath=9]="InstallSelectInstallPath",se[se.PreInstallCheck=10]="PreInstallCheck",se[se.PreInstallCheckRetry=11]="PreInstallCheckRetry",se[se.PreInstallCheckWait=12]="PreInstallCheckWait",se[se.PreRebootInstall=13]="PreRebootInstall",se[se.PackageDownloadProgress=14]="PackageDownloadProgress",se[se.ProcessDownloadedPackage=15]="ProcessDownloadedPackage",se[se.PackageDownloadFailed=16]="PackageDownloadFailed",se[se.InstallProgress=17]="InstallProgress",se[se.InstallRemoveProgress=18]="InstallRemoveProgress",se[se.InstallFinished=19]="InstallFinished",se[se.InstallFinishedNoSummary=20]="InstallFinishedNoSummary",se[se.InstallFinishedLaunch=21]="InstallFinishedLaunch",se[se.InstallFinishedNoSummaryLaunch=22]="InstallFinishedNoSummaryLaunch",se[se.InstallFinishedOptions=23]="InstallFinishedOptions",se[se.InstallFinishedNoSummaryOptions=24]="InstallFinishedNoSummaryOptions",se[se.InstallReboot=25]="InstallReboot",se[se.InstallRebootOptions=26]="InstallRebootOptions",se[se.InstallRebootNoSummary=27]="InstallRebootNoSummary",se[se.InstallRebootNoSummaryOptions=28]="InstallRebootNoSummaryOptions",se[se.InstallRemoveReboot=29]="InstallRemoveReboot",se[se.InstallFailed=30]="InstallFailed",se[se.WaitingOnUac=31]="WaitingOnUac"}(ue=J.FormEnum||(J.FormEnum={})),function(se){se[se.Next=0]="Next",se[se.Close=1]="Close"}(et=J.NextActionEnum||(J.NextActionEnum={}))}(X||(X={})),function(J){let vt;var ue;let ve;(ue=vt=J.DriverTypeEnum||(J.DriverTypeEnum={}))[ue.GameReadyDriver=0]="GameReadyDriver",ue[ue.CreatorReadyDriver=1]="CreatorReadyDriver",function(ue){ue.started="started",ue.finished="finished",ue.failed="failed",ue.cancelled="cancelled"}(ve=J.DriverUpdateCheckProgress||(J.DriverUpdateCheckProgress={}))}(q||(q={})),function(J){let vt;var be;let ve,ue,et,se,Ce;(be=vt=J.ApplicationScanType||(J.ApplicationScanType={})).fast="fast",be.traditional="traditional",function(be){be.Unknown="Unknown",be.NotAvailable="NotAvailable",be.NotReady="NotReady",be.Ready="Ready"}(ve=J.VopsStatus||(J.VopsStatus={})),function(be){be.STRING="STRING",be.INT="INT",be.FLOAT="FLOAT",be.ENUM="ENUM",be.BOOL="BOOL",be.DRIVER_ENUM="DRIVER_ENUM"}(ue=J.Type||(J.Type={})),function(be){be.AC="AC",be.DC="DC"}(et=J.ApplicationPowerMode||(J.ApplicationPowerMode={})),function(be){be.DISABLED="DISABLED",be.UNOPTIMIZED="UNOPTIMIZED",be.CUSTOMIZED="CUSTOMIZED",be.OPTIMIZED="OPTIMIZED"}(se=J.OptimizationState||(J.OptimizationState={})),function(be){be.started="started",be.finished="finished",be.failed="failed",be.progress="progress"}(Ce=J.Status||(J.Status={}))}(Q||(Q={}));var te,Ee,it,Fe,Qe,ct,Ge,nt,Je,ze,Ke,Ve,$e,ce=function(J){return J.Driverinstall=X,J.Driverupdaterecommendation=q,J.Localgames=Q,J}(ce||{});!function(J){let vt;var et;let ve,ue;(et=vt=J.State||(J.State={})).percentage="percentage",et.indeterminate="indeterminate",et.pause="pause",et.complete="complete",function(et){et.active="active",et.inactive="inactive",et.failed="failed"}(ve=J.State1||(J.State1={})),function(et){et.light="light",et.dark="dark"}(ue=J.SystemTheme||(J.SystemTheme={}))}(te||(te={})),function(J){let vt;var Ce;let ve,ue,et,se;(Ce=vt=J.ApplicationLifetimeEventType||(J.ApplicationLifetimeEventType={})).ApplicationExit="APPLICATION_EXIT",Ce.SystemLogout="SYSTEM_LOGOUT",Ce.SystemSuspend="SYSTEM_SUSPEND",function(Ce){Ce.UserClosedWindow="USER_CLOSED_WINDOW",Ce.UserQuitWithShortcut="USER_QUIT_WITH_SHORTCUT",Ce.UserLoggedOut="USER_LOGGED_OUT",Ce.SelfUpdate="SELF_UPDATE",Ce.Relaunch="RELAUNCH",Ce.BrowserExit="BROWSER_EXIT",Ce.ForceShutdown="FORCE_SHUTDOWN"}(ve=J.ShutdownReason||(J.ShutdownReason={})),function(Ce){Ce.Bluetooth="BLUETOOTH"}(ue=J.SystemSetting||(J.SystemSetting={})),function(Ce){Ce.Launch="launch"}(et=J.ApplicationTimeType||(J.ApplicationTimeType={})),function(Ce){Ce.LaunchSiteTime="LAUNCH_SITE_TIME",Ce.LaunchCefSiteTime="LAUNCH_CEF_SITE_TIME"}(se=J.ApplicationStartTimeType||(J.ApplicationStartTimeType={}))}(Ee||(Ee={})),function(J){let vt;var ue;let ve;(ue=vt=J.ConversationIntent||(J.ConversationIntent={})).Support="Support",ue.Recommendation="Recommendation",function(ue){ue.Installer="Installer",ue.Game="Game",ue.Share="Share",ue.GameStream="GameStream"}(ve=J.Component||(J.Component={}))}(it||(it={})),function(J){let vt;var ve;(ve=vt=J.InternalErrorCodeEnum||(J.InternalErrorCodeEnum={}))[ve.Success=0]="Success",ve[ve.Error=1]="Error",ve[ve.Error_PermissionNotGiven=2]="Error_PermissionNotGiven",ve[ve.Error_NotFullScreen=3]="Error_NotFullScreen"}(Fe||(Fe={})),function(J){let vt;var ve;(ve=vt=J.DiscordAsset||(J.DiscordAsset={}))[ve.Large=0]="Large"}(Qe||(Qe={})),function(J){let vt;var Se;let ve,ue,et,se,Ce,be,rt,me,le,Xe;(Se=vt=J.UpdateFrameworkResult||(J.UpdateFrameworkResult={}))[Se.NotImplemented=-1]="NotImplemented",Se[Se.Success=0]="Success",Se[Se.Error=1]="Error",Se[Se.UpdateFrameworkUninitialised=2]="UpdateFrameworkUninitialised",Se[Se.UpdateCheckMgrUninitialised=3]="UpdateCheckMgrUninitialised",Se[Se.NoUpdateCheckCandidate=4]="NoUpdateCheckCandidate",Se[Se.InvalidComponentType=5]="InvalidComponentType",Se[Se.UpdateCheckInfoException=6]="UpdateCheckInfoException",Se[Se.UpdateCheckComponentInapplicable=7]="UpdateCheckComponentInapplicable",Se[Se.InvalidArgument=8]="InvalidArgument",Se[Se.InvalidOperation=9]="InvalidOperation",Se[Se.FileDoesNotExist=10]="FileDoesNotExist",Se[Se.NotFound=11]="NotFound",Se[Se.BadJson=12]="BadJson",Se[Se.KeyDoesNotExist=13]="KeyDoesNotExist",Se[Se.InternalException=14]="InternalException",Se[Se.ProfileCatalogUninitialised=15]="ProfileCatalogUninitialised",Se[Se.AlreadyDownloaded=16]="AlreadyDownloaded",Se[Se.CannotDeleteFile=17]="CannotDeleteFile",Se[Se.DownloaderBusyTryLater=18]="DownloaderBusyTryLater",Se[Se.CurlInitFailed=19]="CurlInitFailed",Se[Se.PostProcessingPolicyDontRun=20]="PostProcessingPolicyDontRun",Se[Se.DownloadPolicyDontRun=21]="DownloadPolicyDontRun",Se[Se.UpdateCheckPeriodNotElapsed=22]="UpdateCheckPeriodNotElapsed",Se[Se.PluginLoadError=23]="PluginLoadError",Se[Se.PluginFnAddrError=24]="PluginFnAddrError",Se[Se.PluginError=25]="PluginError",function(Se){Se[Se.Official=0]="Official",Se[Se.Beta=1]="Beta",Se[Se.Unknown=-1]="Unknown"}(ve=J.UpdateChannel||(J.UpdateChannel={})),function(Se){Se[Se.Full=0]="Full",Se[Se.Diff=1]="Diff",Se[Se.Unknown=-1]="Unknown"}(ue=J.UpdateType||(J.UpdateType={})),function(Se){Se[Se.Auto=0]="Auto",Se[Se.Manual=1]="Manual",Se[Se.Unknown=-1]="Unknown"}(et=J.InvokeType||(J.InvokeType={})),function(Se){Se[Se.Undefined=-1]="Undefined",Se[Se.DownloadTriggered=0]="DownloadTriggered",Se[Se.Downloading=1]="Downloading",Se[Se.VerifyingChecksum=2]="VerifyingChecksum",Se[Se.VerifyingSignature=3]="VerifyingSignature",Se[Se.Paused=4]="Paused",Se[Se.Cancelled=5]="Cancelled",Se[Se.NetworkErrorRetrying=6]="NetworkErrorRetrying",Se[Se.NetworkErrorRetryPaused=7]="NetworkErrorRetryPaused",Se[Se.Finished=8]="Finished",Se[Se.ChecksumVerificationFailed=9]="ChecksumVerificationFailed",Se[Se.SignatureVerificationFailed=10]="SignatureVerificationFailed",Se[Se.DiskWriteFail=11]="DiskWriteFail",Se[Se.Error=12]="Error",Se[Se.NotAllowedNow=13]="NotAllowedNow",Se[Se.Prohibited=14]="Prohibited"}(se=J.DownloadStatus||(J.DownloadStatus={})),function(Se){Se[Se.Undefined=-1]="Undefined",Se[Se.Ready=0]="Ready",Se[Se.Executing=1]="Executing",Se[Se.Completed=2]="Completed",Se[Se.CouldNotRun=3]="CouldNotRun",Se[Se.FailedRetryPending=4]="FailedRetryPending",Se[Se.Failed=5]="Failed"}(Ce=J.ActionStatus||(J.ActionStatus={})),function(Se){Se[Se.Undefined=-1]="Undefined",Se[Se.ExecutingActions=0]="ExecutingActions",Se[Se.Completed=1]="Completed",Se[Se.Failed=2]="Failed"}(be=J.PostProcessingStatus||(J.PostProcessingStatus={})),function(Se){Se[Se.Started=0]="Started",Se[Se.Retrying=1]="Retrying",Se[Se.RetryStopped=2]="RetryStopped",Se[Se.Finished=3]="Finished",Se[Se.Failed=4]="Failed"}(rt=J.ProgressStatus||(J.ProgressStatus={})),function(Se){Se[Se.Unknown=-1]="Unknown",Se[Se.UpdateInProgress=0]="UpdateInProgress",Se[Se.UpdateUnavailable=1]="UpdateUnavailable",Se[Se.UpdateSuccessful=2]="UpdateSuccessful",Se[Se.UpdateFailed=3]="UpdateFailed"}(me=J.UpdateState||(J.UpdateState={})),function(Se){Se[Se.Uninitialised=-1]="Uninitialised",Se[Se.CheckingForUpdate=0]="CheckingForUpdate",Se[Se.UpdateCheckEnd=1]="UpdateCheckEnd",Se[Se.Downloading=2]="Downloading",Se[Se.DownloadEnd=3]="DownloadEnd",Se[Se.PostProcessing=4]="PostProcessing",Se[Se.PostProcessingEnd=5]="PostProcessingEnd"}(le=J.UpdateExecutionPhase||(J.UpdateExecutionPhase={})),function(Se){Se[Se.Success=0]="Success",Se[Se.Failure=1]="Failure",Se[Se.FailureNoSourceProfile=2]="FailureNoSourceProfile"}(Xe=J.CreateProfileStatusEnum||(J.CreateProfileStatusEnum={}))}(ct||(ct={})),function(J){let vt;var fe;let ve,ue,et,se,Ce,be,rt,me,le,Xe,Se;(fe=vt=J.FileType||(J.FileType={})).video="video",fe.image="image",fe.other="other",function(fe){fe.Highlight="Highlight",fe.AnimatedGif="AnimatedGif",fe.Normal="Normal",fe.SuperResolution="SuperResolution",fe.SuperResolution_Oversized="SuperResolution_Oversized",fe.SubType_360Mono="360Mono",fe.Stereo="Stereo",fe.SubType_360Stereo="360Stereo",fe.Exr="Exr",fe.Normal_Ansel="Normal_Ansel",fe.Montage="Montage",fe.InstantReplay="InstantReplay",fe.Manual="Manual",fe.Unknown="Unknown"}(ve=J.SubType||(J.SubType={})),function(fe){fe.Single="Single",fe.Separate="Separate",fe.Unknown="Unknown"}(ue=J.AudioType||(J.AudioType={})),function(fe){fe.low="low",fe.medium="medium",fe.high="high"}(et=J.Quality||(J.Quality={})),function(fe){fe.GFE_Share="GFE_Share",fe.GFE_Ansel="GFE_Ansel",fe.GFE_SDK="GFE_SDK",fe.StandAlone_Ansel="StandAlone_Ansel",fe.Undefined="Undefined"}(se=J.Source||(J.Source={})),function(fe){fe.screenshot="screenshot",fe.video="video"}(Ce=J.Type||(J.Type={})),function(fe){fe.video="video",fe.image="image",fe.audio="audio"}(be=J.InputFileType||(J.InputFileType={})),function(fe){fe.none="none",fe.titleBasic="titleBasic"}(rt=J.SeqType||(J.SeqType={})),function(fe){fe.none="none",fe.brandSliderInOnly="brandSliderInOnly",fe.brandSlideInOut="brandSlideInOut"}(me=J.BrandType||(J.BrandType={})),function(fe){fe.atStart="atStart",fe.atEnd="atEnd"}(le=J.Position||(J.Position={})),function(fe){fe.TrackerUpdateNotActive="TrackerUpdateNotActive",fe.TrackerUpdateInProgress="TrackerUpdateInProgress",fe.TrackerUpdateComplete="TrackerUpdateComplete",fe.CancelUpdateComplete="CancelUpdateComplete",fe.CancelUpdate="CancelUpdate"}(Xe=J.GalleryPathUpdateStatus||(J.GalleryPathUpdateStatus={})),function(fe){fe.none="none",fe.hidden="hidden",fe.empty="empty",fe.hiddenOrEmpty="hiddenOrEmpty",fe.hiddenAndEmpty="hiddenAndEmpty"}(Se=J.ExcludeDirectoryType||(J.ExcludeDirectoryType={}))}(Ge||(Ge={})),function(J){let vt;var et;let ve,ue;(et=vt=J.RequestCache||(J.RequestCache={})).default="default",et.force_cache="force-cache",et.no_cache="no-cache",et.no_store="no-store",et.only_if_cached="only-if-cached",et.reload="reload",function(et){et.GET="GET",et.HEAD="HEAD",et.POST="POST",et.PUT="PUT",et.DELETE="DELETE"}(ve=J.HttpRequestType||(J.HttpRequestType={})),function(et){et.follow="follow",et.error="error",et.manual="manual"}(ue=J.RequestRedirect||(J.RequestRedirect={}))}(nt||(nt={})),function(J){let vt;var ve;(ve=vt=J.IpcTargets||(J.IpcTargets={})).GfnMall="mallclient",ve.GfnStreamer="streamer",ve.GfnUpdater="selfupdater"}(Je||(Je={})),function(J){let vt;var ve;(ve=vt=J.PrivacySettings||(J.PrivacySettings={})).None="None",ve.RequiredOnly="RequiredOnly",ve.RequiredFunctional="RequiredFunctional",ve.RequiredFunctionalTechnical="RequiredFunctionalTechnical"}(ze||(ze={})),function(J){let vt;var le;let ve,ue,et,se,Ce,be,rt,me;(le=vt=J.CaptureTypes||(J.CaptureTypes={})).regular="regular",le.stereoRegular="stereoRegular",le.highRes="highRes",le.sphericalPanorama="sphericalPanorama",le.stereoSphericalPanorama="stereoSphericalPanorama",function(le){le.ok="ok",le.failed="failed",le.started="started",le.failedToStart="failedToStart",le.noSpace="noSpace",le.permissionDenied="permissionDenied",le.invalidRequest="invalidRequest",le.failedToProcess="failedToProcess",le.processDeclined="processDeclined",le.alreadyEnabled="alreadyEnabled",le.alreadyDisabled="alreadyDisabled",le.outOfRange="outOfRange",le.alreadySet="alreadySet",le.incompatibleVersion="incompatibleVersion",le.disabled="disabled",le.okAnsel="okAnsel",le.okModsOnly="okModsOnly",le.failedToFinishCapture="failedToFinishCapture",le.failedToSaveShotFailedCreateDiretory="failedToSaveShotFailedCreateDiretory",le.failedToSaveShotNoSpaceLeft="failedToSaveShotNoSpaceLeft",le.processingCompleted="processingCompleted",le.shotSaved="shotSaved",le.processingFile="processingFile",le.failedToSaveShot="failedToSaveShot"}(ve=J.AnselStatusEnum||(J.AnselStatusEnum={})),function(le){le.sdk="sdk",le.mods="mods",le.styleTransfer="styleTransfer",le.allowOffline="allowOffline"}(ue=J.FeaturesSupported||(J.FeaturesSupported={})),function(le){le.windowedSDK="windowedSDK",le.fullscreenSDK="fullscreenSDK",le.windowedNoSDK="windowedNoSDK",le.fullscreenNoSDK="fullscreenNoSDK"}(et=J.Mode||(J.Mode={})),function(le){le.mouse="mouse",le.keyboard="keyboard",le.gamepad="gamepad"}(se=J.Hid||(J.Hid={})),function(le){le.notAvailable="notAvailable",le.available="available",le.notEnabled="notEnabled",le.enabled="enabled"}(Ce=J.AnselState||(J.AnselState={})),function(le){le.roll="roll",le.fov="fov"}(be=J.Response||(J.Response={})),function(le){le.float="float",le.int="int",le.uint="uint",le.bool="bool"}(rt=J.DataType||(J.DataType={})),function(le){le.success="success"}(me=J.NgxAiUpResStatus||(J.NgxAiUpResStatus={}))}(Ke||(Ke={})),function(J){let vt;var ve;(ve=vt=J.OperationType||(J.OperationType={})).Read="Read",ve.Write="Write",ve.Remove="Remove",ve.Cache="Cache"}(Ve||(Ve={})),function(J){let vt;var ue;let ve;(ue=vt=J.ApiStatusEnum||(J.ApiStatusEnum={})).Success="Success",ue.Failure="Failure",function(ue){ue.Desktop="Desktop",ue.Mobile="Mobile",ue.Game="Game"}(ve=J.UiModeEnum||(J.UiModeEnum={}))}($e||($e={}));var dt=function(J){return J.Applicationcontrol=te,J.Applicationinfo=Ee,J.Bot=it,J.Clientnotification=Fe,J.Discord=Qe,J.Downloader=ct,J.Gallery=Ge,J.Httprequest=nt,J.Ipc=Je,J.Nvaccount=ze,J.Nvcamera=Ke,J.Sharedstorage=Ve,J.Systeminfo=$e,J}(dt||{}),Pe=function(J){return J.Common=dt,J.Gfe=ce,J.Gfn=k,J.Nvapp=Y,J.Qxp=g,J.Share=x,J}(Pe||{})},64100:(St,z,s)=>{"use strict";s.d(z,{j:()=>x});var i=s(59859),n=s(91384),h=s(14714),C=s(83915),S=s(20924),M=s(58527),P=s(92602);let x=(()=>{class A{constructor(m,l){this.bridgeService=m,this.loggingService=l,this.logger=this.loggingService.getLogger("libraries/ConfigStoreService")}writeAppInfoToPersistence(m){return this.bridgeService.executeCommand(S.Ts.Common.Loginid.AddAppInfoToPersistence,{appInfo:m},!1,!1).pipe((0,n.M)(r=>this.logger.info("AppInfo Write Success")),(0,h.W)(r=>(this.logger.error(r),(0,i.$)(r))))}readAppInfoFromPersistence(){return this.bridgeService.executeCommand(S.Ts.Common.Loginid.GetAllAppInfoFromPersistence,{},!1,!1).pipe((0,C.T)(m=>m?.AppsInfo),(0,n.M)(m=>this.logger.info("AppInfo Read Success")),(0,h.W)(m=>(this.logger.error(m),(0,i.$)(m))))}writeConfigFile(m,l){this.logger.info(`Writing in config file for ${m} ${JSON.stringify(l)}`);const r=Object.keys(l).map(v=>({key:v,value:l[v]}));return this.bridgeService.executeCommand(S.Ts.Common.Applicationcontrol.WriteGenericConfig,{configname:m,path:r}).pipe((0,n.M)(v=>this.logger.info("Write Success")),(0,h.W)(v=>(this.logger.error(v),(0,i.$)(v))))}readConfigFile(m,l){return this.logger.info(`Reading config file for ${m} ${JSON.stringify(l)}`),this.bridgeService.executeCommand(S.Ts.Common.Applicationcontrol.ReadGenericConfig,{configname:m,path:l}).pipe((0,n.M)(u=>this.logger.info("Read Success")),(0,h.W)(u=>(this.logger.error(u),(0,i.$)(u))))}removeFromConfig(m,l){return this.logger.info(`Removing config ${JSON.stringify(l)} from file for ${m}`),this.bridgeService.executeCommand(S.Ts.Common.Applicationcontrol.RemoveFromGenericConfig,{configname:m,path:l}).pipe((0,n.M)(u=>this.logger.info("Config removed")),(0,h.W)(u=>(this.logger.error(u),(0,i.$)(u))))}static{this.\u0275fac=function(l){return new(l||A)(M.KVO(P.NZ),M.KVO(P.J6))}}static{this.\u0275prov=M.jDH({token:A,factory:A.\u0275fac,providedIn:"root"})}}return A})()},62351:(St,z,s)=>{"use strict";s.d(z,{E:()=>h});var i=s(58527);let h=(()=>{class C{static{this.\u0275fac=function(P){return new(P||C)}}static{this.\u0275prov=i.jDH({token:C,factory:C.\u0275fac})}}return C})()},54943:(St,z,s)=>{"use strict";s.d(z,{l:()=>P});var i=s(43848),n=s(59859),h=s(58527),C=s(62351);function S(x){return[x.system,x.module,x.method,x.legacyCommand].join(".")}let P=(()=>{class x{constructor(g){this.bridgeConfig=g,this.responses={},this.persistentResponses={},this.errors={},this.configMocks={},this.callData={};for(const m of Object.values(g.mocks))this.configMocks[S(m.command)]=m.return}createResponse(g,m){const l=S(g);delete this.errors[l],this.responses[l]=m}createResponseSequence(g,m){const l=S(g);delete this.errors[l],this.responses[l]=m}createPersistentResponse(g,m){if(!g.persistent)throw new Error("Can only create a persistent response for persistent commands");{const l=S(g);delete this.errors[l],this.persistentResponses[l]=m}}createErrorResponse(g,m){const l=S(g);delete this.responses[l],this.errors[l]=m}executeCommand(g,m){const l=S(g);this.cacheCallData(l,m);let r=(0,i.of)(void 0);return l in this.errors?r=(0,n.$)(this.errors[l]):l in this.responses?r=Array.isArray(this.responses[l])?(0,i.of)(this.responses[l].shift()):(0,i.of)(this.responses[l]):l in this.configMocks?r=(0,i.of)(this.configMocks[l]):l in this.persistentResponses&&(r=this.persistentResponses[l]),r}hasOverrideMock(g){const m=S(g);return m in this.responses||m in this.persistentResponses}hasErrorMock(g){return S(g)in this.errors}hasConfigMock(g){return S(g)in this.configMocks}hasMock(g){const m=this.hasOverrideMock(g)||this.hasConfigMock(g)||this.hasErrorMock(g);return this.bridgeConfig.isUnitTestConfig&&!m&&console.error("No mock provided for: "+S(g)),m}cacheCallData(g,m){this.bridgeConfig.cacheMockedCallData&&(g in this.callData||(this.callData[g]={count:0,params:[]}),this.callData[g].count++,this.callData[g].params.push(m))}resetCallData(){this.callData={}}getCallData(g){const m=S(g);return m in this.callData?this.callData[m]:{count:0,params:[]}}static{this.\u0275fac=function(m){return new(m||x)(h.KVO(C.E))}}static{this.\u0275prov=h.jDH({token:x,factory:x.\u0275fac,providedIn:"root"})}}return x})()},31650:(St,z,s)=>{"use strict";s.d(z,{N:()=>C});var i=s(58527),n=s(3678),h=s(54943);let C=(()=>{class S{constructor(P,x){this.logger=P,this.bridgeMockService=x}makeFullBridgeCommand(P,x,A){return{command:P.legacyCommand,system:P.system,module:P.module,method:P.method,payload:x,...A?x:null}}unpackReturnPayload(P){try{const x=JSON.parse(P);return"object"==typeof x&&"reference_uniqueid"in x&&"method"in x&&"payload"in x?x.payload:x}catch{return P}}handleSuccess(P,x,A){switch(A){case"true":P.next(!0);break;case"false":P.next(!1);break;default:P.next(this.unpackReturnPayload(A))}x||P.complete()}handleFailure(P,x,A,g,m,l=!0){const u={code:A,message:g,isCancelled:204===A,request:l?x:{...x,payload:null}};this.logger.info(`Bridge Query returned error code ${A}: ${g}. Command: ${JSON.stringify(m?x:x.command)}`),P.error(u)}executeCommand(P,x,A=!0,g=!0){return this.bridgeMockService.hasMock(P)?this.bridgeMockService.executeCommand(P,x):this.executeCommandInternal(P,x,A,g)}static{this.\u0275fac=function(x){return new(x||S)(i.KVO(n.Vy),i.KVO(h.l))}}static{this.\u0275prov=i.jDH({token:S,factory:S.\u0275fac})}}return S})()},10607:(St,z,s)=>{"use strict";s.d(z,{Ec:()=>Fe.E,NZ:()=>i.N,a5:()=>it});var i=s(31650),n=s(58527),h=s(43848),C=s(17053),S=s(8619),M=s(65706),P=s(3678),x=s(21172),A=s(54943);let g=(()=>{class Qe extends i.N{static{this.EXTENSION_MESSAGE="QUERY_IPC_EXTENSION_MESSAGE"}constructor(Ge,nt,Je,ze){super(Ge.getLogger("crimson/cef"),ze),this.pluginsNotificationService=nt,this.ngZone=Je,this.pluginsNotificationService.init(this.executeCommand.bind(this))}static isCefPlatform(){return"cefQuery"in window}executeCommandInternal(Ge,nt,Je,ze){const Ke=this.makeFullBridgeCommand(Ge,nt,Ge.legacyCommand!==Qe.EXTENSION_MESSAGE),Ve=JSON.stringify(Ke),$e=window.cefQuery,dt=this.pluginsNotificationService.isMandatoryPlugin(Ge.module)?this.pluginsNotificationService.isPluginLoaded$(Ge.module):(0,h.of)(!0);return new C.c(Pe=>{if($e)dt.pipe((0,S.p)(J=>J),(0,M.s)(1)).subscribe(J=>{$e({request:Ve,persistent:Ge.persistent,onSuccess:vt=>{n.SKi.isInAngularZone()?this.handleSuccess(Pe,Ge.persistent,vt):this.ngZone.run(()=>{this.handleSuccess(Pe,Ge.persistent,vt)})},onFailure:(vt,ve)=>{n.SKi.isInAngularZone()?this.handleFailure(Pe,Ke,vt,ve,Je,ze):this.ngZone.run(()=>{this.handleFailure(Pe,Ke,vt,ve,Je,ze)})}})});else{const J=Ve;this.logger.error(J),this.handleFailure(Pe,Ke,500,J,Je,ze)}})}static{this.\u0275fac=function(nt){return new(nt||Qe)(n.KVO(P.J6),n.KVO(x.P),n.KVO(n.SKi),n.KVO(A.l))}}static{this.\u0275prov=n.jDH({token:Qe,factory:Qe.\u0275fac})}}return Qe})();var m=s(14714),l=s(75707);let r=(()=>{class Qe{constructor(Ge){this._plugins=Ge}get plugins(){return this._plugins}getPlugin(Ge){return this._plugins.find(nt=>nt instanceof Ge)}static{this.\u0275fac=function(nt){return new(nt||Qe)(n.KVO(Array))}}static{this.\u0275prov=n.jDH({token:Qe,factory:Qe.\u0275fac,providedIn:"root"})}}return Qe})(),u=(()=>{class Qe extends i.N{static{this.EXTENSION_MESSAGE="QUERY_IPC_EXTENSION_MESSAGE"}constructor(Ge,nt,Je,ze){super(Ge,ze),this.primaryManager=nt,this.fallbackManager=Je,this.handlerMap=new Map,this.buildHandlerMap()}buildHandlerMap(){this.fallbackManager?.plugins?.forEach(Ge=>{const nt=Ge.handlers;this.handlerMap.set(nt.module,nt.commands)});for(const Ge of this.primaryManager.plugins){const nt=Ge.handlers;this.handlerMap.set(nt.module,nt.commands)}}getHandlerForMethod(Ge,nt){const Je=this.handlerMap.get(Ge);return Je?Je[nt]:null}executeCommandUsingPlugin(Ge,nt,Je,ze){const Ke=this.makeFullBridgeCommand(Ge,nt,Ge.legacyCommand!==Qe.EXTENSION_MESSAGE),Ve=this.getHandlerForMethod(Ke.module,Ke.method);return Ve?new C.c($e=>{Ve(Ke).pipe((0,m.W)(dt=>(this.logger.info("failed to execute",Ge.legacyCommand,dt),new C.c(Pe=>{this.handleFailure(Pe,Ke,dt.code,dt.error,Je,ze)}))),(0,l.ZZ)(dt=>new C.c(Pe=>{this.handleSuccess(Pe,Ke.persistent,dt.data)}))).subscribe(dt=>$e.next(dt),dt=>$e.error(dt),()=>$e.complete())}):(this.logger.info("plugin does not have handler for",Ke.module,Ke.method),(0,h.of)(null))}static{this.\u0275fac=function(nt){return new(nt||Qe)(n.KVO(P.Vy),n.KVO(r),n.KVO(r),n.KVO(A.l))}}static{this.\u0275prov=n.jDH({token:Qe,factory:Qe.\u0275fac})}}return Qe})();var v=s(71152),E=s(59859),T=s(83915);class R{createSuccessResponse(ct){return{success:!0,code:200,data:ct}}createErrorResponse(ct,Ge){return{success:!1,code:ct,error:Ge}}makeError(ct,Ge){return(0,E.$)(this.createErrorResponse(ct,Ge))}makeResult(ct){return(0,h.of)(this.createSuccessResponse(ct))}makePersistentResult(ct){return ct.pipe((0,T.T)(Ge=>this.createSuccessResponse(Ge)))}}class B extends R{static{this._browserInstanceId=(0,v.bz)(!0)}static get browserInstanceId(){return this._browserInstanceId}}const U=new n.nKC("BrowserPlugins");let Y=(()=>{class Qe extends r{constructor(Ge){super(Ge||[])}static{this.\u0275fac=function(nt){return new(nt||Qe)(n.KVO(U,8))}}static{this.\u0275prov=n.jDH({token:Qe,factory:Qe.\u0275fac,providedIn:"root"})}}return Qe})(),ae=(()=>{class Qe extends u{constructor(Ge,nt,Je){super(Ge.getLogger("crimson/browser"),nt,void 0,Je)}executeCommandInternal(Ge,nt,Je,ze){const Ke=this.makeFullBridgeCommand(Ge,nt,Ge.legacyCommand!==u.EXTENSION_MESSAGE);return this.handlerMap.has(Ke.module)?this.executeCommandUsingPlugin(Ge,nt,Je,ze):(this.logger.info("Command not found",JSON.stringify(Je?Ke:Ke.command)),(0,h.of)(null))}static{this.\u0275fac=function(nt){return new(nt||Qe)(n.KVO(P.J6),n.KVO(Y),n.KVO(A.l))}}static{this.\u0275prov=n.jDH({token:Qe,factory:Qe.\u0275fac})}}return Qe})(),G=(()=>{class Qe extends i.N{constructor(Ge,nt,Je){super(Ge.getLogger("crimson/yggdrasil"),Je),this.ngZone=nt}executeCommandInternal(Ge,nt){return new C.c(Je=>{Je.next(null),Je.complete()})}static{this.\u0275fac=function(nt){return new(nt||Qe)(n.KVO(P.J6),n.KVO(n.SKi),n.KVO(A.l))}}static{this.\u0275prov=n.jDH({token:Qe,factory:Qe.\u0275fac})}}return Qe})();var k=s(26502);const X=new n.nKC("AndroidPlugins");let q=(()=>{class Qe extends r{constructor(Ge){super(Ge||[])}static{this.\u0275fac=function(nt){return new(nt||Qe)(n.KVO(X,8))}}static{this.\u0275prov=n.jDH({token:Qe,factory:Qe.\u0275fac,providedIn:"root"})}}return Qe})();class Q extends R{static{this._androidInstanceId=(0,v.bz)(!0)}static get androidInstanceId(){return this._androidInstanceId}}class ce{static{this.IdGenerator=class{static{this.count=0}static next(){return++this.count}}}static{this.handlerMap={}}constructor(ct,Ge){this.ngZone=Ge,Android.dispatch=this.dispatch.bind(this),Android.unregisterHandler=this.unregisterHandler.bind(this)}dispatch(ct){if(!ce.handlerMap[ct.handlerId])throw new Error(`Cannot find handler Id=${ct.handlerId}.`);const Ge=ce.handlerMap[ct.handlerId];this.parseResponse(Ge.observer,ct.args),Ge.persistent||delete ce.handlerMap[ct.handlerId]}parseResponse(ct,Ge){const nt=JSON.parse(Ge),ze=nt.errorCode,Ke=nt.errorMessage;if(nt.successful){const $e={response:nt.response};n.SKi.isInAngularZone()?ct.next($e):this.ngZone.run(()=>{ct.next($e)})}else{const $e={errorCode:ze,errorMessage:Ke};n.SKi.isInAngularZone()?ct.error($e):this.ngZone.run(()=>{ct.error($e)})}}unregisterHandler(ct){if(!ce.handlerMap[ct.handlerId])throw new Error(`Cannot find handler Id=${ct.handlerId}.`);ce.handlerMap[ct.handlerId].observer.complete(),delete ce.handlerMap[ct.handlerId]}doesCommandExist(ct,Ge){return Android.hasCommand&&Android.hasCommand(ct,Ge)}executeCommandNative(ct,Ge,nt){const ze={request:JSON.stringify(ct),persistent:Ge,handlerId:ce.IdGenerator.next()},Ke=JSON.stringify(ze),Ve=new C.c($e=>{ce.handlerMap[ze.handlerId]={observer:$e,persistent:Ge}});return Android.executeCommand(Ke),Ve}static{this.\u0275fac=function(Ge){return new(Ge||ce)(n.KVO(P.J6),n.KVO(n.SKi))}}static{this.\u0275prov=n.jDH({token:ce,factory:ce.\u0275fac,providedIn:"root"})}}let te=(()=>{class Qe extends u{static{this.REQUIRES_NATIVE_IMPL=["Streaming"]}static requiresNativeImplementation(Ge){return Qe.REQUIRES_NATIVE_IMPL.includes(Ge)}constructor(Ge,nt,Je,ze,Ke){super(Ge.getLogger("crimson/android"),nt,Je,Ke),this.androidHelperService=ze}executeCommandInternal(Ge,nt,Je,ze){const Ke=this.makeFullBridgeCommand(Ge,nt,Ge.legacyCommand!==Qe.EXTENSION_MESSAGE),Ve=JSON.stringify(Ke);return k.zk.isAndroidPlatform()?this.androidHelperService.doesCommandExist(Ge.module,Ge.method)?new C.c(dt=>{this.androidHelperService.executeCommandNative(Ke,Ge.persistent,Je).subscribe(J=>{this.handleSuccess(dt,Ge.persistent,J.response)},J=>{this.handleFailure(dt,Ke,J.errorCode,J.errorMessage,Je,ze)},()=>{this.logger.info("callback complete")})}):!Qe.requiresNativeImplementation(Ke.module)&&this.handlerMap.has(Ke.module)?this.executeCommandUsingPlugin(Ge,nt,Je,ze):(this.logger.info("Command not found",JSON.stringify(Je?Ke:Ke.command)),(0,h.of)(null)):new C.c($e=>{const dt=Ve;this.logger.error(dt),this.handleFailure($e,Ke,500,dt,Je,ze)})}static{this.\u0275fac=function(nt){return new(nt||Qe)(n.KVO(P.J6),n.KVO(q),n.KVO(Y),n.KVO(ce),n.KVO(A.l))}}static{this.\u0275prov=n.jDH({token:Qe,factory:Qe.\u0275fac})}}return Qe})();const it={provide:i.N,useFactory:function Ee(Qe,ct,Ge,nt,Je){if(k.zk.isCefPlatform())return new g(Qe,Je,ct,Ge);if(k.zk.isAndroidPlatform()){const ze=nt.get(Y),Ke=nt.get(q),Ve=nt.get(ce);return new te(Qe,Ke,ze,Ve,Ge)}if(k.zk.isBrowserPlatform()){const ze=nt.get(Y);return new ae(Qe,ze,Ge)}return new G(Qe,ct,Ge)},deps:[P.J6,n.SKi,A.l,n.zZn,x.P]};var Fe=s(62351)},84580:(St,z,s)=>{"use strict";s.d(z,{r:()=>h});var i=s(85735),n=s(58527);let h=(()=>{class C{constructor(){this.leanModeTransitionSub=new i.m(1)}get leanModeTransitionState(){return this.leanModeTransitionSub.asObservable()}enableLeanMode(){this.leanModeTransitionSub.next(!0)}disableLeanMode(){this.leanModeTransitionSub.next(!1)}static{this.\u0275fac=function(P){return new(P||C)}}static{this.\u0275prov=n.jDH({token:C,factory:C.\u0275fac,providedIn:"root"})}}return C})()},88058:(St,z,s)=>{"use strict";s.d(z,{_:()=>q});var i=s(61142),n=s(10607),h=s(3678),C=s(60045),S=s(54943),M=s(22743),g=(s(61090),s(81799),s(33328),s(58527));s(28139);let q=(()=>{class Q{static configure(te){return{ngModule:Q,providers:[i.vh,{provide:h.Rx,useValue:te.logger},{provide:n.Ec,useValue:te.bridge},{provide:C.r,useValue:te.window},{provide:M.v,useValue:te.locale},S.l,n.a5]}}static{this.\u0275fac=function(Ee){return new(Ee||Q)}}static{this.\u0275mod=g.$C({type:Q})}static{this.\u0275inj=g.G2t({})}}return Q})()},22743:(St,z,s)=>{"use strict";s.d(z,{v:()=>n});var i=s(58527);let n=(()=>{class h{static{this.\u0275fac=function(M){return new(M||h)}}static{this.\u0275prov=i.jDH({token:h,factory:h.\u0275fac})}}return h})()},57643:(St,z,s)=>{"use strict";s.d(z,{q:()=>i});var i=function(n){return n[n.None=-1]="None",n[n.Error=1]="Error",n[n.Warning=2]="Warning",n[n.Info=3]="Info",n[n.Trace=4]="Trace",n[n.Verbose=5]="Verbose",n[n.Event=6]="Event",n}(i||{})},3678:(St,z,s)=>{"use strict";s.d(z,{J6:()=>x,Rx:()=>M,Vy:()=>P});var i=s(71152),n=s(57643),h=s(58527),C=s(61142),S=s(72477);let M=(()=>{class A{static{this.\u0275fac=function(l){return new(l||A)}}static{this.\u0275prov=h.jDH({token:A,factory:A.\u0275fac})}}return A})();class P{constructor(g,m,l,r,u,v){this.name=g,this.loggingLevel=m,this.datePipe=l,this.remoteLoggingService=r,this.remoteLoggingEnabled=u,this.consoleLoggingEnabled=v,this.remoteLogging=u,this.consoleLogging=v}error(...g){this.logEntry(n.q.Error,g,console.error.bind(console))}warn(...g){this.logEntry(n.q.Warning,g,console.warn.bind(console))}info(...g){this.logEntry(n.q.Info,g,console.log.bind(console))}verbose(...g){this.logEntry(n.q.Verbose,g,console.log.bind(console))}event(...g){this.logEntry(n.q.Event,g,console.log.bind(console))}trace(...g){this.logEntry(n.q.Trace,g,console.log.bind(console))}updateLogger(g,m){this.remoteLogging=g,this.consoleLogging=m}logEntry(g,m,l){if(this.loggingLevel<g)return;let r="";r=g===n.q.Trace?(0,i.pQ)(this.name,n.q[g].toUpperCase(),this.datePipe,m):(0,i.tO)(this.name,n.q[g].toUpperCase(),this.datePipe,m),this.consoleLogging&&l(r),this.remoteLogging&&this.remoteLoggingService.collectLogString(r)}}let x=(()=>{class A{constructor(m,l,r){this.config=m,this.datePipe=l,this.remoteLoggingService=r,this.loggingLevelOverrides={},this.loggers={},this.remoteLoggingEnabled=!1,this.consoleLoggingEnabled=!0,this.loggingLevelOverrides=s(81248)}updateLoggers(){Object.values(this.loggers).forEach(m=>{m.updateLogger(this.remoteLoggingEnabled,this.consoleLoggingEnabled)})}getLoggingLevel(m){return n.q[this.loggingLevelOverrides[m]]||this.config.defaultLoggingLevel}initialize(m,l){m&&this.remoteLoggingService.initialize(),(this.remoteLoggingEnabled!==m||this.consoleLoggingEnabled!==l)&&(this.remoteLoggingEnabled=m,this.consoleLoggingEnabled=l,this.consoleLoggingEnabled||console.clear(),this.updateLoggers())}getLogger(m){const l=this.getLoggingLevel(m);return this.config.appNamePrefix&&(m=this.config.appNamePrefix+"/"+m),this.loggers[m]||(this.loggers[m]=new P(m,l,this.datePipe,this.remoteLoggingService,this.remoteLoggingEnabled,this.consoleLoggingEnabled)),this.loggers[m]}static{this.\u0275fac=function(l){return new(l||A)(h.KVO(M),h.KVO(C.vh),h.KVO(S.V))}}static{this.\u0275prov=h.jDH({token:A,factory:A.\u0275fac,providedIn:"root"})}}return A})()},30308:(St,z,s)=>{"use strict";s.d(z,{C:()=>h});var i=s(58527),n=s(71152);let h=(()=>{class C{constructor(M){this.networkStatusCheckService=M}get onlineStatusChanged(){return this.networkStatusCheckService.onlineStatusChanged()}get isOnline(){return this.networkStatusCheckService.isOnline()}static{this.\u0275fac=function(P){return new(P||C)(i.KVO(n.A5))}}static{this.\u0275prov=i.jDH({token:C,factory:C.\u0275fac,providedIn:"root"})}}return C})()},61090:(St,z,s)=>{"use strict";s.d(z,{c:()=>C});var i=s(71152),n=s(58527),h=s(96542);let C=(()=>{class S{constructor(P){this.translate=P}translateText(P,x){return this.translate.instant(P,x)}transform(P){try{const x=Math.round(P);if(!P||!x||P<0)return this.translateText("main.byte",{value:0});const A=1;if(1===P||1===x)return this.translateText("main.byte",{value:P});if(isNaN(parseFloat(P.toString(10)))||!isFinite(P))return"-";const g=["main.bytes","main.kb","main.mb","main.gb","main.tb"];let m=Math.floor(Math.log(P)/Math.log(1024));return m>=g.length&&(m=g.length-1),this.translateText(g[m],{value:(P/Math.pow(1024,Math.floor(m))).toFixed(A)})}catch(x){throw(0,i.RL)(S,x.message)}}static{this.\u0275fac=function(x){return new(x||S)(n.rXU(h.c$,16))}}static{this.\u0275pipe=n.EJ8({name:"convertBytesToKBMBGB",type:S,pure:!0,standalone:!0})}}return S})()},81799:(St,z,s)=>{"use strict";s.d(z,{M2:()=>x,k1:()=>C,z3:()=>M});var i=s(71152),n=s(58527),h=s(96542);let C=(()=>{class A{constructor(m){this.translate=m}translateText(m,l){return this.translate.instant(m,l)}transform(m,l){if(!m)return"";try{const r=parseInt(m,10),u=Math.floor(r/3600),v=Math.floor((r-3600*u)/60),E=r-3600*u-60*v;let T="";if(u){const R=this.translateText(1===u?"main.hr":l&&u>=2?"main.aboutHrs":"main.hrs",{value:u});T=l&&u>=2?R:R+" "}return!v||l&&u>=2||(T=T+this.translateText(1===v?"main.min":"main.mins",{value:v})+" "),!E||l&&u||(T+=this.translateText(1===E?"main.sec":"main.secs",{value:E})),T}catch(r){throw(0,i.RL)(A,r.message)}}static{this.\u0275fac=function(l){return new(l||A)(n.rXU(h.c$,16))}}static{this.\u0275pipe=n.EJ8({name:"convertSecondsToTime",type:A,pure:!0,standalone:!0})}}return A})(),M=(()=>{class A{transform(m,l=""){return function S(A,g=""){const m=parseFloat(A);let l=parseInt(A,10),r=Math.floor(l/3600);l%=3600;let u=Math.floor(l/60);l%=60,r<10&&(r=`0${r}`),u<10&&(u=`0${u}`),l<10&&(l=`0${l}`);let v="";return g.includes("fractional")&&(v=Math.round(m%1*1e3),v<10?v=`00${v}`:v<100&&(v=`0${v}`),v=`.${v}`),`${r}:${u}:${l}${v}`}(m,l)}static{this.\u0275fac=function(l){return new(l||A)}}static{this.\u0275pipe=n.EJ8({name:"time",type:A,pure:!0,standalone:!0})}}return A})(),x=(()=>{class A{transform(m){return function P(A){const g=A.toString().split(":");let m=0,l=0,r=0;return g.length>2?(m=parseFloat(g[0]),l=parseFloat(g[1]),r=parseFloat(g[2])):g.length>1?(l=parseFloat(g[0]),r=parseFloat(g[1])):r=parseFloat(g[0]),3600*m+60*l+r}(m)}static{this.\u0275fac=function(l){return new(l||A)}}static{this.\u0275pipe=n.EJ8({name:"seconds",type:A,pure:!0,standalone:!0})}}return A})()},33328:(St,z,s)=>{"use strict";s.d(z,{O:()=>C});var i=s(71152),n=s(58527),h=s(74150);let C=(()=>{class S{constructor(P){this.sanitizer=P}transform(P,x){try{return"url"===x?this.sanitizer.bypassSecurityTrustResourceUrl(P):this.sanitizer.bypassSecurityTrustHtml(P)}catch(A){throw(0,i.RL)(S,A.message)}}static{this.\u0275fac=function(x){return new(x||S)(n.rXU(h.up,16))}}static{this.\u0275pipe=n.EJ8({name:"trustAsHtml",type:S,pure:!0,standalone:!0})}}return S})()},26502:(St,z,s)=>{"use strict";s.d(z,{zk:()=>C});var i=s(71152);s(56123);class C{constructor(){}static isBrowserPlatform(){return!("cefQuery"in window)&&!C.isAndroidPlatform()}static isCefPlatform(){return"cefQuery"in window}static isAndroidPlatform(){return typeof window.Android<"u"&&"function"==typeof window.Android.isAndroid&&window.Android.isAndroid()}static isBrowserLikePlatform(){return C.isBrowserPlatform()||C.isAndroidPlatform()}static isNativeLikePlatform(){return C.isCefPlatform()||C.isAndroidPlatform()}static isPWAModeOnLGTV(){return/(NetCast|Web0S|Linux\/SmartTV).+PWA/.test(navigator.userAgent)}static isPWAModeOnSamsungTV(){return(0,i.mI)()&&!navigator.userAgent.includes("SamsungBrowser")}static isArmPlatform(){return window.navigator.userAgent.toLowerCase().includes(" arm")}static isTouchPlatform(){return!!window.Touch&&navigator.maxTouchPoints>0}}},70115:(St,z,s)=>{"use strict";s.d(z,{Y0:()=>n,dZ:()=>C,rK:()=>S,t_:()=>h});var n=function(M){return M.Desktop="Desktop",M.Laptop="Laptop",M.TV="TV",M.Phone="Phone",M.Tablet="Tablet",M.Server="Server",M.Console="Console",M.HMD="HMD",M.Undefined="undefined",M}(n||{}),h=function(M){return M.Windows="Windows",M.MacOS="MacOS",M.Shield="Shield",M.Android="Android",M.IOS="iOS",M.IPadOS="iPadOS",M.ChromeOS="ChromeOS",M.Linux="Linux",M.Tizen="Tizen",M.WebOS="WebOS",M.TvOS="tvOS",M.XBox="Xbox",M.SteamOS="SteamOS",M.VisionOS="visionOS",M.Undefined="undefined",M}(h||{}),C=function(M){return M.CHROME="Chrome",M.SAFARI="Safari",M.YANDEX="Yandex",M.EDGE="Edge",M.EDGE_LEGACY="Edge_legacy",M.FIREFOX="Firefox",M.SAMSUNG="Samsung",M.CHROMIUM="Chromium",M.OPERA="Opera",M.BRAVE="Brave",M.SILK="Silk",M.Undefined="undefined",M}(C||{});const S="undefined"},62502:(St,z,s)=>{"use strict";s.d(z,{Fj:()=>A,gL:()=>M,gr:()=>C,rK:()=>P,u4:()=>x,wx:()=>S});var i=s(70115),n=s(53931);const C={clientId:"{CLIENTID}",clientVer:"{CLIENTVER}",feedbackId:"{FEEDBACKID}",feedbackName:"{FEEDBACKNAME}",feedbackProtocol:"4.4",feedbackSchemaVer:"{FEEDBACKSCHEMAVER}",feedbackSysVer:"",deviceId:n.Qe,userId:n.Qe,externalUserId:n.Qe,idpId:n.Qe,sessionId:n.Qe,sentTs:"",clientTs:"",deviceOS:i.t_.Undefined,deviceOSVersion:n.Qe,deviceMake:n.Qe,deviceModel:n.Qe,deviceType:i.Y0.Undefined,clientType:n.sK.Undefined,clientVariant:n.zg.Undefined,browserType:n.Qe,integrationId:n.Qe,productName:n.Qe,productVersion:n.Qe},S={functional:n.Rg.None,technical:n.Rg.None,behavioral:n.Rg.None},M={bufferSize:5120,chunkCreationTimeout:3e5,chunksQueueSize:20,chunkResendRetryLimit:2},P="undefined";var x=function(g){return g[g.FeedbackRequestAccepted=200]="FeedbackRequestAccepted",g[g.FeedbackSizeOverLimits=413]="FeedbackSizeOverLimits",g[g.InvalidFeedback=460]="InvalidFeedback",g[g.FeedbackIdInUse=461]="FeedbackIdInUse",g[g.FeedbackIdExpired=462]="FeedbackIdExpired",g[g.AttachmentsRejected=466]="AttachmentsRejected",g[g.UnknownClientId=467]="UnknownClientId",g[g.ServerError=500]="ServerError",g}(x||{}),A=function(g){return g[g.AllFramesReceived=200]="AllFramesReceived",g[g.PartialFramesReceived=206]="PartialFramesReceived",g[g.InvalidFeedbackId=462]="InvalidFeedbackId",g[g.NonSequentialChunk=463]="NonSequentialChunk",g[g.FrameChecksumOrSizeMismatch=464]="FrameChecksumOrSizeMismatch",g[g.ServerError=500]="ServerError",g}(A||{})},53931:(St,z,s)=>{"use strict";s.d(z,{Qe:()=>i,Rg:()=>C,sK:()=>n,zg:()=>h});const i="undefined";var n=function(S){return S.Native="Native",S.Browser="Browser",S.GFNSDK="GFNSDK",S.Undefined="undefined",S}(n||{}),h=function(S){return S.iBeta="iBeta",S.Release="Release",S.Undefined="undefined",S}(h||{}),C=function(S){return S.Full="Full",S.None="None",S.Temp="Temp",S}(C||{})},77061:(St,z,s)=>{"use strict";s.d(z,{V:()=>l});var i=s(80583),n=s(26875),C=s(71152),S=s(33089),M=s(62502),P=s(58527),x=s(61142),A=s(30308),g=s(84580);const m="RemoteLogsSaveKey";let l=(()=>{class r{constructor(v,E,T,R){this.datePipe=v,this.networkStatusService=E,this.injector=T,this.browserLeanModeService=R,this.logsBuffer="",this.chunksQueue=[],this.maxBufferSizeInBytes=M.gL.bufferSize,this.chunkCreationTimeout=M.gL.chunkCreationTimeout,this.logsChunkUpdated$=new i.B7,this.chunksQueueSize=M.gL.chunksQueueSize,this.chunkResendRetryLimit=M.gL.chunkResendRetryLimit,this.logBufferingAllowed=!0,this.leanModeLogger=!1,this.isGfcHeadRequestSent=!1,this.timerSub$=new i.B7,this.isTimerTriggered=!1,this.refreshFeedbackSessionSubject=new i.B7,this.timeBasedLogClearanceCounter=0,this.feedbackSessionClosed=!1,this.newLine="\n",this.chunkSendInProgress=!1}initialize(){this.chunkResendRetryMap=new Map,this.addLogger("LogQueueService",["initialize"]),this.networkStatusService.onlineStatusChanged.subscribe(this.onNetworkStatusChanged.bind(this)),this.browserLeanModeService.leanModeTransitionState.subscribe(v=>{this.leanModeLogger=v,v&&this.stopTimeBasedLogCollection()})}addLogger(v,E){const T=(0,C.tO)(v,"INFO",this.datePipe,E);this.appendLogEntry(T)}setHeadRequestStatus(v){this.isGfcHeadRequestSent=v}checkFeasibilityAndSendChunk(v,E=!1,T){!this.isUserConsentAvailable||!this.isGfcHeadRequestSent||E||this.chunkSendInProgress||(0,n.isEmpty)(v)?this.isUserConsentAvailable&&E&&this.logsChunkUpdated$.next({logString:this.sendChunkToServer(v),isLastChunk:E,params:T}):this.logsChunkUpdated$.next({logString:this.sendChunkToServer(v),isLastChunk:!1})}startTimeBasedLogDispatch(){if(this.addLogger("LogQueueService",["Interval of 10 mins elapsed: current buffer length: ",this.logsBuffer.length]),this.addLogger("LogQueueService",["Chunk send in progress: ",this.chunkSendInProgress]),!1===this.chunkSendInProgress){this.refreshFeedbackSessionSubject.next(++this.timeBasedLogClearanceCounter),this.addLogger("LogQueueService",["Clearing chunk on timeout... "]);const v=this.extractAndSaveChunk();this.checkFeasibilityAndSendChunk(v)}}stopTimeBasedLogCollection(v=""){this.isTimerTriggered=!1,this.timerSub$.next({startTimer:!1,timeout:0}),this.addLogger("LogQueueService",["Stopping log collection timer. "+v])}isBufferSizeWithinLimits(v,E){return!(v.concat(E,this.newLine).length>this.maxBufferSizeInBytes)}sendChunkToServer(v){return this.chunkSendInProgress=!0,v||""}addChunksToQueue(v){this.chunksQueue.length===this.chunksQueueSize&&this.chunksQueue.splice(0,this.chunksQueue.length),this.chunksQueue.push(v),this.chunkResendRetryMap.set(this.chunksQueue[this.chunksQueue.length-1],0)}extractAndSaveChunk(){const v=this.logsBuffer.slice(0);return this.addChunksToQueue(v),this.logsBuffer="",this.popChunkFromQueue()}pushLogToBuffer(v){this.logsBuffer=this.logsBuffer.concat(v,this.newLine)}startTimer(){this.leanModeLogger||(this.timerSub$.next({startTimer:!0,timeout:this.chunkCreationTimeout}),this.isTimerTriggered=!0)}popChunkFromQueue(){const v=this.chunkResendRetryMap.get(this.chunksQueue[0]);return this.isUserConsentAvailable&&this.isGfcHeadRequestSent&&v<=this.chunkResendRetryLimit?(this.chunkResendRetryMap.set(this.chunksQueue[0],v+1),this.chunksQueue.slice(0,1).toString()):(this.isUserConsentAvailable&&this.isGfcHeadRequestSent&&v>this.chunkResendRetryLimit&&this.removeChunkFromSavedQueue(),"")}saveLogsToSessionStorage(){this.addChunksToQueue(this.logsBuffer);const v=JSON.stringify(this.chunksQueue);sessionStorage.setItem(m,v)}readConsoleLogsFromSessionStorage(){const v=JSON.parse(sessionStorage.getItem(m));sessionStorage.removeItem(m),this.appendPreviousLogs(v)}appendPreviousLogs(v){this.chunkResendRetryMap&&this.chunkResendRetryMap.clear(),v=v.concat(this.chunksQueue),this.chunksQueue=v.length>this.chunksQueueSize?v.slice(-this.chunksQueueSize):v;for(let E=0;E<this.chunksQueue.length;E++)this.chunkResendRetryMap.set(this.chunksQueue[E],0)}removeChunkFromSavedQueue(){this.chunkResendRetryMap.delete(this.chunksQueue[0]),this.chunksQueue.splice(0,1)}onNetworkStatusChanged(v){v?this.addLogger("LogQueueService",["LogCollector lib is online right now"]):(this.addLogger("LogQueueService",["LogCollector lib is offline right now"]),this.stopTimeBasedLogCollection())}updateFeedbackSessionStatus(v){this.feedbackSessionClosed=v}getRefreshFeedbackSubjectObservable(){return this.refreshFeedbackSessionSubject.asObservable()}onLogsChunkUpdated(){return this.logsChunkUpdated$.asObservable()}clearQueueAndBuffer(v){const E=this.chunkSendInProgress;this.chunkSendInProgress=!0,this.gfcService=(0,n.isUndefined)(this.gfcService)?this.injector.get(S.NO):this.gfcService;let T="";this.chunksQueue.forEach(R=>{T=T.concat(R,this.newLine)}),T=T.concat(this.logsBuffer,this.newLine),this.logBufferingAllowed&&this.isUserConsentAvailable&&(v?(T=T.concat("sendBeacon api is going to be called."),this.gfcService.sendLastFeedbackChunkEvent(T,this.eventData)):(T=T.concat("eob request will be sent for the last chunk."),this.checkFeasibilityAndSendChunk(T,!0,{isBrowserClosing:v,prevChunkInProgress:E}))),this.logsBuffer="",this.chunksQueue=[],this.chunkSendInProgress=!1,this.eventData=null}appendLogEntry(v){if(this.logBufferingAllowed)if(this.isBufferSizeWithinLimits(this.logsBuffer,v))this.pushLogToBuffer(v);else if(this.feedbackSessionClosed)this.feedbackSessionClosed=!1,this.timeBasedLogClearanceCounter=0,this.refreshFeedbackSessionSubject.next(this.timeBasedLogClearanceCounter),this.pushLogToBuffer(v);else{this.timeBasedLogClearanceCounter=0,this.isTimerTriggered&&this.stopTimeBasedLogCollection("due to buffer limit.");const E=this.extractAndSaveChunk();this.pushLogToBuffer(v),this.checkFeasibilityAndSendChunk(E)}}onSendChunkSuccess(){this.chunkSendInProgress=!1,this.removeChunkFromSavedQueue(),0!==this.chunksQueue.length?this.checkFeasibilityAndSendChunk(this.popChunkFromQueue()):this.startTimer()}onSendChunkFailure(v){switch(this.chunkSendInProgress=!1,v.status){case M.Fj.NonSequentialChunk:case M.Fj.FrameChecksumOrSizeMismatch:case M.Fj.ServerError:this.checkFeasibilityAndSendChunk(this.popChunkFromQueue());break;default:console.log("Error encountered in sending chunks: ",v),v.status!==M.Fj.InvalidFeedbackId&&this.checkFeasibilityAndSendChunk(this.popChunkFromQueue())}}stopChunkCollection(v=!1){this.logBufferingAllowed=v,this.stopTimeBasedLogCollection("Going to stop chunk collection. logBufferingAllowed: "+this.logBufferingAllowed+"."),this.clearQueueAndBuffer(!1)}setBufferConfig(v){this.chunkCreationTimeout=v.msBetweenChunkCreation,this.maxBufferSizeInBytes=v.maxBufferSizeInBytes,this.chunksQueueSize=v.chunksQueueSize,this.chunkResendRetryLimit=v.chunkResendRetryLimit}updateUserConsent(v){this.isUserConsentAvailable=v}updateEventData(v){this.eventData={...v}}timerSubscriptionChanged(){return this.timerSub$.asObservable()}updateTimer(v){"Timeout"===v?this.startTimeBasedLogDispatch():"Cleared"===v&&this.addLogger("LogQueueService",["Log collection timer has been stopped"])}ngOnDestroy(){this.logsBuffer=""}static{this.\u0275fac=function(E){return new(E||r)(P.KVO(x.vh),P.KVO(A.C),P.KVO(P.zZn),P.KVO(g.r))}}static{this.\u0275prov=P.jDH({token:r,factory:r.\u0275fac,providedIn:"root"})}}return r})()},72477:(St,z,s)=>{"use strict";s.d(z,{V:()=>R});var i=s(26875),h=s(85735),C=s(43848),S=s(83915),M=s(75707),P=s(14714),x=s(43615),A=s(33089),g=s(71152),m=s(62502),l=s(53931),r=s(58527),u=s(77061),v=s(30308);let R=(()=>{class B{constructor(Y,ae,G){this.injector=Y,this.logQueueService=ae,this.networkStatusService=G,this.defaultConsent=m.wx,this.currentUserConsent=m.wx,this.isUserConsentAvailable=!1,this.currentUserId=m.rK,this.externalUserId=m.rK,this.idpId=m.rK,this.commonFeedbackData=m.gr,this.isGfcHeadRequestSent=!1,this.isOnline=!1,this.chunkFailureCount=0,this.attachmentUploadedPermitted=!0,this.streamSubSessionIds=[],this.feedbackIdSubject=new h.m(1)}initialize(){this.logQueueService.initialize(),this.logQueueService.addLogger("RemoteLoggingService",["initialize"]),this.networkStatusService.onlineStatusChanged.subscribe(this.onNetworkStatusChanged.bind(this)),this.handleBrowserTabClosure(),this.getLatestLogsChunk(),this.trackIdleFeedbackSessions()}set defaultConsentLevel(Y){this.defaultConsent=Y}saveLogsToSessionStorage(){this.logQueueService.saveLogsToSessionStorage()}restoreSavedLogs(){return this.logQueueService.readConsoleLogsFromSessionStorage()}stopFeedbackUpload(){if(this.isChunkUploadPermitted()){this.logQueueService.addLogger("RemoteLoggingService",["Close current feedback session."]),this.logQueueService.stopChunkCollection(!0),this.logQueueService.setHeadRequestStatus(this.isGfcHeadRequestSent=!1),this.logQueueService.updateFeedbackSessionStatus(!0),this.streamSubSessionIds.splice(0,this.streamSubSessionIds.length);const Y={parameters:{streamSessionId:m.rK,streamSubSessionIds:this.streamSubSessionIds.filter(ae=>""!==ae||null!==ae)}};this.eventData=this.eventData??{},this.eventData.parameters={...this.eventData?.parameters,...Y.parameters},this.commonFeedbackData={...this.commonFeedbackData,...this.eventData},this.logQueueService.updateEventData(this.eventData)}}trackIdleFeedbackSessions(){this.logQueueService.getRefreshFeedbackSubjectObservable().pipe((0,S.T)(Y=>{3===Y?(this.logQueueService.addLogger("RemoteLoggingService",["Stopping feedback upload since max idle timeout duration is reached"]),this.stopFeedbackUpload()):0===Y&&(this.logQueueService.addLogger("RemoteLoggingService",["Initiating a new feedback session.."]),this.sendNewGfcHeadRequest())})).subscribe()}onNetworkStatusChanged(Y){this.isOnline=Y}addGdprConsentFields(){this.commonFeedbackData=(0,i.extend)({gdprFuncOptIn:this.currentUserConsent.functional??this.defaultConsent.functional,gdprTechOptIn:this.currentUserConsent.technical,gdprBehOptIn:this.currentUserConsent.behavioral,deviceGdprFuncOptIn:this.defaultConsent.functional,deviceGdprTechOptIn:this.defaultConsent.technical,deviceGdprBehOptIn:this.defaultConsent.behavioral},this.commonFeedbackData)}isChunkUploadPermitted(){return!!this.attachmentUploadedPermitted&&this.chunkFailureCount<=2}getLatestLogsChunk(){this.logChunkReceivedSubscription=this.logQueueService.onLogsChunkUpdated().pipe((0,M.ZZ)(Y=>(this.logQueueService.addLogger("RemoteLoggingService",["New batch! Attempting to send a batch of size: ",Y.logString.length]),this.isChunkUploadPermitted()?this.isOnline&&this.isUserConsentAvailable?this.sendLogsChunk(Y.logString,Y.isLastChunk,Y.params):(this.logQueueService.chunkSendInProgress=!1,this.logQueueService.addLogger("RemoteLoggingService",["Unable to send batch of logs due to lack of user consent and/or user is offline. isUserConsentAvailable: ",this.isUserConsentAvailable,", isOnline: ",this.isOnline]),(0,C.of)(!1)):(this.logQueueService.addLogger("RemoteLoggingService",["Stopping log collection as max failure count is reached."]),this.logQueueService.stopChunkCollection(),(0,C.of)(!1))))).subscribe(Y=>{Y||this.logQueueService.addLogger("RemoteLoggingService",["Chunk send failure."])})}terminateChunkReceivedSubscription(){this.logChunkReceivedSubscription&&(this.logChunkReceivedSubscription.unsubscribe(),this.logChunkReceivedSubscription=null)}sendNewGfcHeadRequest(){this.terminateChunkReceivedSubscription(),this.logQueueService.setHeadRequestStatus(this.isGfcHeadRequestSent=!1),this.commonFeedbackData.feedbackId=(0,g.bz)(),this.feedbackIdSubject.next(this.commonFeedbackData.feedbackId),this.commonFeedbackData.clientTs=(new Date).toISOString(),this.logQueueService.addLogger("RemoteLoggingService",["New GFC feedback session created: ",this.commonFeedbackData.feedbackId]),console.log("New GFC feedback session created: ",this.commonFeedbackData.feedbackId),this.sendGfcHeadRequest(this.commonFeedbackData)}handleHeadRequestErrors(Y){switch(Y.status){case m.u4.FeedbackIdInUse:case m.u4.FeedbackIdExpired:this.logQueueService.setHeadRequestStatus(this.isGfcHeadRequestSent=!1),this.sendNewGfcHeadRequest();break;case m.u4.AttachmentsRejected:this.attachmentUploadedPermitted=!1,this.logQueueService.stopChunkCollection()}}sendGfcHeadRequest(Y){this.gfcService=(0,i.isUndefined)(this.gfcService)?this.injector.get(A.NO):this.gfcService,this.isOnline&&this.isUserConsentAvailable&&(Y.sentTs=(new Date).toISOString(),this.gfcService.sendFeedbackEvent(Y).subscribe(ae=>{this.logQueueService.setHeadRequestStatus(this.isGfcHeadRequestSent=!0),(0,i.isNil)(this.logChunkReceivedSubscription)&&this.getLatestLogsChunk()},ae=>{this.logQueueService.addLogger("RemoteLoggingService",["Send HEAD request error: ",ae]),this.handleHeadRequestErrors(ae)}))}handleExternalUrlLoad(){this.logQueueService.clearQueueAndBuffer(!0)}handleBrowserTabClosure(){window.addEventListener("pagehide",Y=>{this.logQueueService.addLogger("RemoteLoggingService",["Window pagehide triggered."]),this.isGfcHeadRequestSent&&this.logQueueService.clearQueueAndBuffer(!0)})}handleSpecialAttachmentErrors(Y){if(this.isChunkUploadPermitted()&&Y.status===m.Fj.InvalidFeedbackId)this.sendNewGfcHeadRequest();else if(this.isChunkUploadPermitted()&&Y.status===m.Fj.NonSequentialChunk){const ae=Y?.rawResponse?.headers?.get("x-data-offset");this.gfcService.updateOffsetOnSuccessfulAttachmentRequest(ae)}else this.isChunkUploadPermitted()||(this.logQueueService.addLogger("RemoteLoggingService",["Attachment error, stopping log collection as max failure count is reached."]),this.logQueueService.stopChunkCollection())}sendLogsChunk(Y,ae,G){return this.gfcService.sendFeedbackChunkEvent(Y,this.eventData,ae,G).pipe((0,M.ZZ)(k=>(this.gfcService.updateOffsetOnSuccessfulAttachmentRequest(),this.logQueueService.onSendChunkSuccess(),(0,C.of)(!0))),(0,P.W)(k=>(this.logQueueService.addLogger("RemoteLoggingService",["Failure in sending a chunk: ",k]),k?.status?(this.chunkFailureCount++,this.handleSpecialAttachmentErrors(k),this.logQueueService.onSendChunkFailure(k)):this.logQueueService.addLogger("RemoteLoggingService",["Non GFC error occurred: ",k,k?.message]),(0,C.of)(!1))),(0,x.j)(()=>{ae&&G?.isBrowserClosing&&this.terminateChunkReceivedSubscription()}))}prepareGfcFeedbackEventParams(Y){this.eventData={parameters:Y},this.logQueueService.updateEventData(this.eventData)}prepareFeedbackCommonEventData(Y){this.commonFeedbackData=(0,i.merge)(this.commonFeedbackData,Y),this.feedbackIdSubject.next(this.commonFeedbackData.feedbackId),this.commonFeedbackData.userId===m.rK&&this.logQueueService.updateUserConsent(this.isUserConsentAvailable=!1)}setUserConsent(Y){this.currentUserConsent=Y.userConsent,(0,i.isEmpty)(Y.externalUserId)?(this.externalUserId=Y.userId,this.currentUserId=A.Qe,this.idpId=A.Qe):(this.currentUserId=Y.userId,this.externalUserId=Y.externalUserId,this.idpId=Y.idpId),this.currentUserConsent.technical===l.Rg.Full?(this.logQueueService.updateUserConsent(this.isUserConsentAvailable=!0),this.addGdprConsentFields(),this.commonFeedbackData.userId=this.currentUserId,this.commonFeedbackData.externalUserId=this.externalUserId,this.commonFeedbackData.idpId=this.idpId,this.commonFeedbackData.clientTs=(new Date).toISOString(),this.commonFeedbackData=(0,i.extend)(this.commonFeedbackData,this.eventData)):this.logQueueService.updateUserConsent(this.isUserConsentAvailable=!1),this.isGfcHeadRequestSent||this.sendGfcHeadRequest(this.commonFeedbackData)}collectLogString(Y){this.logQueueService.appendLogEntry(Y)}setBufferConfiguration(Y){this.logQueueService.setBufferConfig(Y)}updateEventDataParamIds(Y){Y.streamSessionId?(this.streamSubSessionIds.includes(Y.streamSubSessionId)||this.streamSubSessionIds.push(Y.streamSubSessionId),0!==this.streamSubSessionIds.filter(ae=>""===ae).length&&this.streamSubSessionIds.splice(0,1),this.eventData=(0,i.merge)(this.eventData,{parameters:{streamSessionId:Y.streamSessionId,streamSubSessionIds:this.streamSubSessionIds}})):Y.surveySessionId&&(this.eventData=(0,i.merge)(this.eventData,{parameters:{surveySessionId:Y.surveySessionId}})),this.logQueueService.updateEventData(this.eventData)}get feedbackId$(){return this.feedbackIdSubject.asObservable()}ngOnDestroy(){this.terminateChunkReceivedSubscription()}static{this.\u0275fac=function(ae){return new(ae||B)(r.KVO(r.zZn),r.KVO(u.V),r.KVO(v.C))}}static{this.\u0275prov=r.jDH({token:B,factory:B.\u0275fac,providedIn:"root"})}}return B})()},57118:(St,z,s)=>{"use strict";s.d(z,{Eb:()=>C,cq:()=>S});var C=function(M){return M.LoginHint="login_hint",M.IdpId="idp_id",M}(C||{}),S=function(M){return M.NVAPP="nvapp",M.GFN="gfn",M.GFN_WEB="gfn-web",M}(S||{})},37768:(St,z,s)=>{"use strict";s.d(z,{I:()=>v});var i=s(57118),n=s(43848),h=s(83915),C=s(75707),S=s(14714),M=s(43615),P=s(91384),x=s(8619),A=s(65706),g=s(14354),m=s(76449),l=s(58527),r=s(64100),u=s(3678);let v=(()=>{class E{constructor(R,B,U,Y){this.configStore=R,this.loggingService=B,this.router=U,this.distributedTracingUtilService=Y,this.cachedSsoLoginInfo=null,this.browserSsoLoginHint=null,this.currentloginSilentLoginInfoUpdateStatus=!1,this.logger=this.loggingService.getLogger("silentlogin/loginhint-service")}isEmptySilentLoginInfo(R){return!(R&&R.idp_id&&R.login_hint&&R.applicationName&&""!==R.idp_id.trim()&&""!==R.login_hint.trim()&&""!==R.applicationName.trim())}returnNullIfEmpty(R){return R.pipe((0,h.T)(B=>this.isEmptySilentLoginInfo(B)?null:B))}updateSsoLoginInfoEntry(R,B,U,Y){const ae={idp_id:B,login_hint:U,applicationName:Y};return R&&!this.isEmptySilentLoginInfo(ae)?(this.currentloginSilentLoginInfoUpdateStatus=!0,this.updateSsoLoginInfoEntryInternal(ae)):this.cleanUpSsoLoginInfo(Y)}updateSsoLoginInfoEntryInternal(R){const B=this._startSpanAndSetDefaults(m.pB.UpdateLoginHint);return this.getSsoLoginInfo().pipe((0,C.ZZ)(U=>U&&U.applicationName===R?.applicationName&&U.idp_id===R?.idp_id&&U.login_hint===R?.login_hint?(this.logger.info("No changes detected in SSO login info."),(0,n.of)(!1)):this.setSsoLoginInfo(R)),(0,S.W)(U=>(this.logger.error("Error updating SsoLoginInfoEntry",U),this._traceError(B,U,m.Af.UpdateSsoLoginInfoEntryError),(0,n.of)(!1))),(0,M.j)(()=>{this.distributedTracingUtilService.closeSpan(B)}))}mapAppInfoToSsoLoginInfoEntry(R){return{idp_id:R?.idpId,login_hint:R?.loginHint,applicationName:R?.applicationName}}getSsoLoginInfo(){const R=this._startSpanAndSetDefaults(m.pB.LoginHintGetSsoInfo),B=this.extractAndClearLoginHintQueryParams();return B&&!this.isEmptySilentLoginInfo(B)?(this.browserSsoLoginHint=B,this.distributedTracingUtilService.closeSpan(R),(0,n.of)(this.browserSsoLoginHint)):this.cachedSsoLoginInfo&&!this.isEmptySilentLoginInfo(this.cachedSsoLoginInfo)?(this.distributedTracingUtilService.closeSpan(R),(0,n.of)(this.cachedSsoLoginInfo)):this.configStore.readAppInfoFromPersistence().pipe((0,h.T)((U=[])=>{const Y=U.find(ae=>{const G=this.mapAppInfoToSsoLoginInfoEntry(ae);return!this.isEmptySilentLoginInfo(G)});return Y?this.mapAppInfoToSsoLoginInfoEntry(Y):null}),this.returnNullIfEmpty.bind(this),(0,P.M)(U=>this.cachedSsoLoginInfo=U),(0,S.W)(U=>(this.logger.error("Error occurred while reading the loginids file -",U),this._traceError(R,U,m.Af.GetSsoLoginInfoError),(0,n.of)(null))),(0,M.j)(()=>{this.distributedTracingUtilService.closeSpan(R)}))}extractAndClearLoginHintQueryParams(){const R=new URL(window.location.href),B=R.searchParams;let U=null;if(B.has(i.Eb.LoginHint)&&B.has(i.Eb.IdpId)){const Y=B.get(i.Eb.LoginHint),ae=B.get(i.Eb.IdpId);Y&&""!==Y.trim()&&ae&&""!==ae.trim()?U={login_hint:decodeURIComponent(Y),idp_id:decodeURIComponent(ae),applicationName:i.cq.GFN_WEB}:this.logger.error("Invalid login hint or idpId from query param. Both values must be provided and not empty."),this.router.events.pipe((0,x.p)(G=>G instanceof g.wF),(0,A.s)(1)).subscribe(G=>{this.logger.info(`Cleaning up login hint from: ${G.url}`),B.delete(i.Eb.LoginHint),B.delete(i.Eb.IdpId),window.history.replaceState({},"",R)})}return U}setSsoLoginInfo(R){return this.configStore.writeAppInfoToPersistence({applicationName:R.applicationName,idpId:R?.idp_id,loginHint:R?.login_hint}).pipe((0,P.M)(B=>{B&&(this.cachedSsoLoginInfo=R)}),(0,S.W)(B=>(this.logger.error("Error occurred in writeConfigFile:",B),(0,n.of)(!1))))}cleanUpSsoLoginInfo(R){if(!this.isEmptySilentLoginInfo(this.cachedSsoLoginInfo)){const B=this.cachedSsoLoginInfo?.applicationName;if(this.cachedSsoLoginInfo=null,R===B&&this.currentloginSilentLoginInfoUpdateStatus)return this.currentloginSilentLoginInfoUpdateStatus=!1,this.setSsoLoginInfo({applicationName:R,idp_id:"",login_hint:""})}return this.browserSsoLoginHint=null,(0,n.of)(!0)}_traceError(R,B,U){this.distributedTracingUtilService.setSpanAttribute(R,m.NS.Error,!0),this.distributedTracingUtilService.setSpanAttribute(R,m.NS.ErrorType,U),this.distributedTracingUtilService.setSpanAttribute(R,m.NS.ErrorDetails,B?.message||B?.toString()||`Unknown error in ${U}`)}_startSpanAndSetDefaults(R){const B=this.distributedTracingUtilService.startSpan(R);return this.distributedTracingUtilService.setSpanAttribute(B,m.NS.Error,!1),B}static{this.\u0275fac=function(B){return new(B||E)(l.KVO(r.j),l.KVO(u.J6),l.KVO(g.Ix),l.KVO(m.Z1))}}static{this.\u0275prov=l.jDH({token:E,factory:E.\u0275fac,providedIn:"root"})}}return E})()},60045:(St,z,s)=>{"use strict";s.d(z,{S:()=>n,r:()=>h});var i=s(58527),n=function(C){return C.Gfe="gfeclient",C.Gfn="gfnclient",C.Igo="shareclient",C.Forager="foragerclient",C.Nvcpl="controlPanelclient",C.Oogg="ooggclient",C.Vdkplaytest="vdkplaytest",C.Nvapp="nvapp",C.Gdn="gdnclient",C}(n||{});let h=(()=>{class C{static{this.\u0275fac=function(P){return new(P||C)}}static{this.\u0275prov=i.jDH({token:C,factory:C.\u0275fac})}}return C})()},92602:(St,z,s)=>{"use strict";s.d(z,{gB:()=>M0,m1:()=>jd,Sg:()=>Ne.S,cq:()=>co.cq,NZ:()=>i.NZ,rQ:()=>vo.r,dZ:()=>ze.dZ,cr:()=>Jn.c,Y0:()=>ze.Y0,T6:()=>_a,Rg:()=>Zo.Rg,_N:()=>An._,Je:()=>ce,I_:()=>GA,Nq:()=>Yp,sc:()=>bs,tO:()=>Li,at:()=>qi,t_:()=>ze.t_,Jm:()=>mr,FK:()=>zi,MY:()=>q,SQ:()=>Xs,Ff:()=>Ae,Pl:()=>jo,rB:()=>Ks,wt:()=>Xe,iH:()=>vt,Vy:()=>G.Vy,q_:()=>Ko.q,J6:()=>G.J6,IU:()=>$s.I,dU:()=>vs,D4:()=>Qs,CF:()=>Se.C,Sd:()=>A,zk:()=>C.zk,Q_:()=>Vn,iX:()=>js,pZ:()=>Eo,Lu:()=>g,zW:()=>dt,zH:()=>La,yr:()=>yo,Qe:()=>Zo.Qe,s7:()=>ye,To:()=>me,BU:()=>et,BY:()=>ue});var i=s(10607),n=s(96542),h=s(85735),C=s(26502);class S{static{this.retrySubject=new h.m(5)}static{this.retryAttempts=5}static{this.intervalBetweenRetries=50}static sendTelemetry(H){S.retrySubject.subscribe({next:W=>{H.info(W.isSuccess?"success event ":"failure event ",Date.now(),W)}})}static retry(H,W,oe=S.retryAttempts,pt=S.intervalBetweenRetries){let wn;return new Promise((hi,Ji)=>{H().then(function($r){return C.zk.isBrowserPlatform()&&(wn={isSuccess:!0,attemptCount:S.retryAttempts+1-oe,error:null,fileName:W},S.retrySubject.next(wn)),hi($r)}).catch($r=>{if(C.zk.isBrowserPlatform()){if(wn={isSuccess:!1,attemptCount:S.retryAttempts+1-oe,error:$r,fileName:W},S.retrySubject.next(wn),1===oe)return void Ji($r);setTimeout(()=>{S.retry(H,W,oe-1,S.intervalBetweenRetries*(S.retryAttempts+1-oe)).then(hi,Ji)},pt)}else Ji($r)})})}}var M=s(43848),P=s(59859),x=s(26875);const A={Ethernet:"Ethernet",WiFi2_4:"WiFi 2.4",WiFi5_0:"WiFi 5.0",WiFi6_0:"WiFi 6.0",WiFiUnknown:"WiFi Unknown",Mobile:"Mobile",Mobile_2G:"Mobile 2G",Mobile_3G:"Mobile 3G",Mobile_4G:"Mobile 4G",Mobile_5G:"Mobile 5G",Wimax:"Wimax",Bluetooth:"Bluetooth",Other:"Other",Unknown:"Unknown"};var g=function(ee){return ee.DeviceId="DeviceId",ee.ProductVersion="ProductVersion",ee.ProductName="ProductName",ee.Region="Region",ee.CPUName="CPUName",ee.Disk="Disk",ee.PhysicalDisk="PhysicalDisk",ee.Display="Display",ee.GPU="GPU",ee.HID="HID",ee.Network="Network",ee.OSName="OSName",ee.OSVersion="OSVersion",ee.BrowserName="BrowserName",ee.BrowserVersion="BrowserVersion",ee.OSBuildNumber="OSBuildNumber",ee.PhysicalMemoryCapacity="PhysicalMemoryCapacity",ee.Platform="Platform",ee.ProcessorArchitecture="ProcessorArchitecture",ee.SystemName="SystemName",ee.UserDefaultUILanguage="UserDefaultUILanguage",ee.VendorName="VendorName",ee.SubApiName="SubApiName",ee.ErrorMessage="ErrorMessage",ee.ApiStatus="ApiStatus",ee.ApiName="ApiName",ee.PluginName="PluginName",ee.DxVersion="DxVersion",ee.DeviceType="DeviceType",ee.ConfidenceInBrowser="ConfidenceInBrowser",ee.IsBrowserForged="IsBrowserForged",ee.Location="Location",ee.Make="Make",ee.Model="Model",ee.CurrentUiMode="CurrentUiMode",ee.DisplayDataInfo="DisplayDataInfo",ee.UserSpecifiedDeviceName="UserSpecifiedDeviceName",ee}(g||{});const m=[g.CPUName,g.OSName,g.OSVersion,g.BrowserName,g.BrowserVersion,g.OSBuildNumber,g.PhysicalMemoryCapacity,g.Platform,g.ProcessorArchitecture,g.SystemName,g.VendorName,g.DeviceType,g.ConfidenceInBrowser,g.IsBrowserForged,g.DeviceId,g.ProductVersion,g.ProductName,g.Make,g.Model,g.UserDefaultUILanguage,g.DxVersion,g.UserSpecifiedDeviceName],l=m.filter(ee=>ee!==g.DxVersion);Object.values(g);var u=s(83915),v=s(72147),E=s(14714),T=s(75707),R=s(91384),B=s(86447),U=s(65726),Y=s(10174),ae=s(53461),G=s(3678);class k{constructor(H,W,oe,pt="assets/i18n/",wn=".json"){this.http=H,this.prefix=pt,this.suffix=wn,this.config={},this.logger=W.getLogger("FallbackTranslationLoader"),this.config.localeFileHashes=oe}getTranslation(H){let W;return W=this.config.localeFileHashes&&this.config.localeFileHashes[H]?`${this.prefix}${H}.${this.config.localeFileHashes[H]}${this.suffix}`:`${this.prefix}${H}${this.suffix}`,this.http.get(W)}}var X=s(94485);const q="en_GB",ce="en_US",te=["ar"],Ee=new Map([["ar",["ar_SA","ar_EG"]],["bg",["bg_BG"]],["ca",["ca_ES"]],["cs",["cs_CZ"]],["da",["da_DK"]],["de",["de_DE","de_AT","de_CH"]],["el",["el_GR"]],["en",["en_GB"]],["en_MX",["en_US"]],["en_US",["en_GB"]],["es",["es_MX","es_US","es_ES"]],["es_ES",["es_MX","es_US"]],["fa",["fa_IR"]],["fi",["fi_FI"]],["fr",["fr_FR"]],["hr",["hr_HR"]],["hu",["hu_HU"]],["in",["in_ID"]],["id",["id_ID"]],["it",["it_IT"]],["iw",["iw_IL"]],["he",["he_IL"]],["ja",["ja_JP"]],["ka",["ka_GE"]],["ko",["ko_KR"]],["lt",["lt_LT"]],["lv",["lv_LV"]],["ms",["ms_MY"]],["nb",["nb_NO"]],["no",["nb_NO"]],["nl",["nl_NL"]],["pl",["pl_PL"]],["pt",["pt_BR","pt_PT"]],["pt_PT",["pt_BR"]],["ro",["ro_RO"]],["ru",["ru_RU"]],["sk",["sk_SK"]],["sl",["sl_SI"]],["sr",["sr_RS"]],["sv",["sv_SE"]],["th",["th_TH"]],["tl",["tl_PH"]],["tr",["tr_TR"]],["uk",["uk_UA"]],["vi",["vi_VN"]],["zh",["zh_CN"]],["zh_HK",["zh_TW","zh_CN"]],["zh_MO",["zh_TW","zh_CN"]],["zh_MY",["zh_CN"]],["zh_SG",["zh_CN"]],["zh_TW",["zh_HK","zh_CN"]],["zh_CHT",["zh_TW"]],["zh_CHS",["zh_CN"]],["zh-Latn_CN",["zh_CN"]]]);var it=s(25172),Fe=s(58527),Qe=s(31315),ct=s(65706),Ge=s(20924),nt=s(71152),Je=function(ee){return ee.Windows="Windows",ee.Mac="Mac",ee.Linux="Linux",ee}(Je||{}),ze=s(70115),Ke=s(31650);let dt=(()=>{class ee{static{this.BrowserNameNative="Chrome"}constructor(W,oe,pt){this.bridgeService=oe,this.previousSystemInfo={},this.systemInfoGuid=(0,nt.bz)(),this.systemInfoGuidSubject=new h.m(1),this.streams=new Map,this.logger=W.getLogger("crimson/SystemInfoService"),this.clientHeaderInfoStream=pt.createStream(()=>this.fetchClientHeadersInfo(),!0,!0,!0,3e4),Object.values(g).forEach(wn=>{m.includes(wn)?this.streams.set(wn,pt.createStream(()=>this.fetchSpecificSystemInfo(wn))):this.streams.set(wn,pt.createStream(()=>this.fetchSpecificSystemInfo(wn),!0,!0,!0,3e4))}),this.getSystemInfo(l).subscribe()}checkStreamingSupport(){return this.bridgeService.executeCommand(Ge.Ts.Common.Systeminfo.GetStreamingSupportInfo).pipe((0,u.T)(W=>W.IsStreamingSupported))}fetchDeviceId(){return this.bridgeService.executeCommand(Ge.Ts.Common.Systeminfo.GetDeviceId).pipe((0,u.T)(W=>({DeviceId:W.DeviceID})))}getSystemInfoGuid(){return this.systemInfoGuidSubject.asObservable()}updateSystemInfoGuid(W){(0,x.isEqual)(W,this.previousSystemInfo)||(this.systemInfoGuid=(0,nt.bz)(),this.previousSystemInfo=W),this.systemInfoGuidSubject.next(this.systemInfoGuid)}fetchClientHeadersInfo(){return C.zk.isAndroidPlatform()?this.bridgeService.executeCommand(Ge.Ts.Common.Systeminfo.GetSystemInfo):this.bridgeService.executeCommand(Ge.Ts.Common.Systeminfo.GetClientHeadersInfo)}fetchSystemInfo(W){const oe=new Set(W),pt=[];if(oe.delete(g.DeviceId)){const wn=this.fetchDeviceId();pt.push(wn)}if(C.zk.isCefPlatform()&&(oe.delete(g.BrowserName)||oe.delete(g.BrowserVersion))){const wn=this.fetchBrowserInfo();pt.push(wn)}if(oe.size){const wn=this.bridgeService.executeCommand(Ge.Ts.Common.Systeminfo.GetSystemInfo,{keys:[...oe]}).pipe((0,u.T)(hi=>(delete hi._return_code,delete hi._return_status,delete hi._return_internal,hi)));pt.push(wn)}return(0,Qe.zV)([...pt]).pipe((0,u.T)(wn=>{let hi={};return wn.forEach(Ji=>{hi={...hi,...Ji}}),hi}),(0,R.M)(wn=>{const hi={...this.previousSystemInfo,...wn};this.updateSystemInfoGuid(hi)}))}fetchBrowserInfo(){return this.bridgeService.executeCommand(Ge.Ts.Common.Systeminfo.GetBrowserInfo).pipe((0,u.T)(W=>({BrowserName:W?.BrowserNameNative||ze.rK,BrowserVersion:W?.BrowserVersionNative||ze.rK})))}fetchSpecificSystemInfo(W){return this.fetchSystemInfo([W])}getSystemInfo(W,oe=!1){if(oe)return this.fetchSystemInfo(W);const pt=[],wn={};return W.forEach(hi=>{const Ji=this.streams.get(hi)?.getData();Ji&&Ji[hi]?wn[hi]=Ji[hi]:pt.push(hi)}),0===pt.length?(0,M.of)(wn):this.fetchSystemInfo(pt).pipe((0,u.T)(hi=>({...wn,...hi})),(0,R.M)(hi=>{Object.keys(hi).forEach(Ji=>{this.streams.has(Ji)?this.streams.get(Ji).setData(hi,!0):this.logger.error("No systemInfo stream for key ",Ji)})}))}getClientHeadersInfo(W=!1){return W?this.clientHeaderInfoStream.refresh().pipe((0,ct.s)(1)):this.clientHeaderInfoStream.get$().pipe((0,ct.s)(1))}getDeviceOSType(){return this.getSystemInfo([g.OSName,g.Platform]).pipe((0,u.T)(W=>C.zk.isBrowserLikePlatform()?W.OSName:W.Platform===Je.Mac?ze.t_.MacOS:W.Platform===Je.Windows?ze.t_.Windows:W.Platform===Je.Linux?W.OSName===ze.t_.SteamOS?ze.t_.SteamOS:ze.t_.Linux:ze.t_.Undefined))}onNetworkChanged(){const W=this.getSystemInfo([g.Network]);return C.zk.isBrowserPlatform()?(0,Qe.zV)([W,this.bridgeService.executeCommand(Ge.Ts.Common.Systeminfo.GetNetworkTypeChangedInfo)]).pipe((0,u.T)(([pt,wn])=>({...pt.Network,NetworkType:wn.networkType}))).pipe((0,ae.F)(nt.ab)):W.pipe((0,u.T)(oe=>oe.Network))}static{this.\u0275fac=function(oe){return new(oe||ee)(Fe.KVO(G.J6),Fe.KVO(Ke.N),Fe.KVO(nt.mZ))}}static{this.\u0275prov=Fe.jDH({token:ee,factory:ee.\u0275fac,providedIn:"root"})}}return ee})();var Pe=s(22743),J=s(21172);let vt=(()=>{class ee{get collator(){return!this._collator&&window.Intl?.Collator&&(this._collator=new Intl.Collator(this.getShortLocale(),{sensitivity:"base",numeric:!0})),this._collator}get displayNames(){return!this._displayNames&&window.Intl?.DisplayNames&&(this._displayNames=new Intl.DisplayNames([this.getLocale().replace("_","-")],{type:"language",languageDisplay:"standard",fallback:"none"})),this._displayNames}constructor(W,oe,pt,wn,hi,Ji){this.translate=oe,this.systemInfoService=pt,this.config=hi,this.pluginsNotificationService=Ji,this.rtlLocaleSupported=!1,this.rtlLayoutEnabled=!1,this.layoutDirectionUpdated$=new h.m(1),this.retrySubject=new h.m(5),this.isSuccessEventSent=!1,this.isDirectionalityInitialized=!1,this._collator=null,this._displayNames=null,this.logger=W.getLogger("LocaleService"),this.localeChangedSubscription=wn.createStream(this.updateLocale.bind(this)),this.translate.setDefaultLang(ce)}updateLocale(){const W=this.systemInfoService.getSystemInfo([g.UserDefaultUILanguage]).pipe((0,u.T)(oe=>{let pt=oe.UserDefaultUILanguage;return((0,x.isEmpty)(pt)||this.isRTLLocale(pt)&&!this.isRTLLocaleSupported)&&(this.logger.error(`Missing default UI language. Falling back to ${q} for default language.`),pt=q),pt}));return this.pluginsNotificationService.isPluginLoaded$(it.YQ).pipe((0,v.n)(oe=>oe?W:(0,M.of)(q)),(0,E.W)(()=>(this.logger.error(`Failed to get system info. Falling back to ${this.defaultLocale} for default language.`),(0,M.of)(q))),(0,T.ZZ)(oe=>{let pt=oe;return(0,x.isNil)(this.config.supportedLang.find(wn=>wn===pt))&&(pt=this.getMappedLocale(pt)),this.defaultLocale=pt,this.updateCurrentLocale()}),(0,R.M)(oe=>{this.logger.info("Locale set to "+oe),this._collator=null,this._displayNames=null}))}getLocaleDownloadRetryTelemetryData(){return this.retrySubject}retryOnFailure(W,oe){let pt=1;return W.pipe((0,B.l)(wn=>wn.pipe((0,v.n)(hi=>C.zk.isBrowserPlatform()?(this.isSuccessEventSent=!1,this.retrySubject.next({isSuccess:!1,attemptCount:pt,error:null,fileName:oe+".json"}),pt>=S.retryAttempts?(this.isSuccessEventSent=!0,this.logger.info("Locale JSON dowload retries expired."),(0,P.$)(hi)):(this.logger.info("Locale JSON dowload failed, trying again ",pt),pt+=1,(0,M.of)(hi))):(this.logger.error("Not a Browser Client, so retry skipped",hi),(0,P.$)(hi))),(0,U.c)(pt*S.intervalBetweenRetries))),(0,R.M)(()=>{!this.isSuccessEventSent&&C.zk.isBrowserPlatform()&&(this.retrySubject.next({isSuccess:!0,attemptCount:pt,error:null,fileName:oe+".json"}),this.isSuccessEventSent=!0)}))}updateCurrentLocale(){const W=(0,x.isNil)(this.currentLocale)?this.defaultLocale:this.currentLocale;return this.retryOnFailure(this.translate.use(W),W).pipe((0,Y.u)(W),(0,E.W)(oe=>(this.logger.error("Locale Json download failed with error ",oe),this.useMappedLocale(W))))}getMappedLocale(W){let oe;return!(0,x.isEmpty)(W)&&W.startsWith("zh_Hant")&&(oe="zh_TW"),!(0,x.isEmpty)(W)&&Ee.get(W)&&(oe=Ee.get(W)?.find(wn=>this.config.supportedLang.includes(wn))),!oe&&W!==q&&!(0,x.isEmpty)(W)&&W.length>=2&&(oe=Ee.get(W.substr(0,2))?.find(wn=>this.config.supportedLang.includes(wn))),oe=oe||q,this.logger.info(`Mapped locale for ${W} is: ${oe}`),oe}useMappedLocale(W){const oe=this.getMappedLocale(W);return this.isSuccessEventSent=!1,this.retryOnFailure(this.translate.use(oe),oe).pipe((0,Y.u)(oe),(0,E.W)(()=>oe!==q?(this.logger.error(`Could not find translations for ${W}, falling back to ${q}`),this.useMappedLocale(q)):(0,P.$)(`Could not load fallback locale ${q}. Translations cannot be loaded.`)))}updateUIDirectionality(){this.isRTLLayoutEnabled=this.isRTLLocale(this.getLocale());const W=document?.getElementsByTagName("html")[0];W.dir=this.isRTLLayoutEnabled?"rtl":"ltr";const oe=document?.getElementsByTagName("body")[0];oe.dir=this.isRTLLayoutEnabled?"rtl":"ltr",oe.classList.add(this.isRTLLayoutEnabled?"isRtl":"isLtr"),this.isDirectionalityInitialized=!0}isDirectionalityChanged(){return!this.isRTLLayoutEnabled===this.isRTLLocale(this.getLocale())}useDefaultLocale(){return this.currentLocale=void 0,this.localeChangedSubscription.refresh()}setLocale(W){return(0,x.isNil)(this.config.supportedLang.find(oe=>oe===W))&&(W=this.getMappedLocale(W)),W===this.currentLocale?(0,M.of)(this.currentLocale):(this.currentLocale=W,this.localeChangedSubscription.refresh())}getLocale(){return this.currentLocale?this.currentLocale:this.defaultLocale}getShortLocale(){return this.getLocale()?this.getLocale().substr(0,2):"en"}get localeChanged(){return this.localeChangedSubscription.get$().pipe((0,ae.F)(),(0,R.M)(()=>{(!this.isDirectionalityInitialized||this.isDirectionalityChanged())&&this.updateUIDirectionality()}))}get isRTLLocaleSupported(){return this.rtlLocaleSupported}set isRTLLocaleSupported(W){this.rtlLocaleSupported=W}get isRTLLayoutEnabled(){return this.rtlLayoutEnabled}set isRTLLayoutEnabled(W){this.rtlLayoutEnabled=W,this.layoutDirectionUpdated$.next(!0)}isRTLLocale(W){return te.includes(W.substr(0,2))}static{this.\u0275fac=function(oe){return new(oe||ee)(Fe.KVO(G.J6),Fe.KVO(n.c$),Fe.KVO(dt),Fe.KVO(nt.mZ),Fe.KVO(Pe.v),Fe.KVO(J.P))}}static{this.\u0275prov=Fe.jDH({token:ee,factory:ee.\u0275fac,providedIn:"root"})}}return ee})();function ue(ee){return n.h.forRoot({loader:{provide:n.Wr,useFactory:(H,W)=>function ve(ee,H,W){return new k(ee,H,W)}(H,W,ee),deps:[X.Qq,G.J6]}})}function et(){return n.h.forChild()}var Ce=s(70521),be=s(72477);const rt="[Worker]:";let me=(()=>{class ee{constructor(W,oe,pt){this.serviceWorkerService=W,this.loggingService=oe,this.remoteLoggingService=pt,this.logger=oe.getLogger(rt)}initialize(W,oe){this.serviceWorkerService.swLoggingUpdate$.pipe().subscribe(wn=>{this.remoteLoggingService.collectLogString(wn.content)});const pt=this.loggingService.getLoggingLevel(rt);this.loggerSettings={remoteLoggingEnabled:W,consoleLoggingEnabled:oe,loggingLevel:pt,remoteLogFunction:null},this.serviceWorkerService.postMessageSw({type:Ce.oY.SetLoggerSettings,content:JSON.stringify(this.loggerSettings)})}getLoggerSettings(){return this.loggerSettings}static{this.\u0275fac=function(oe){return new(oe||ee)(Fe.KVO(Ce.lS),Fe.KVO(G.J6),Fe.KVO(be.V))}}static{this.\u0275prov=Fe.jDH({token:ee,factory:ee.\u0275fac,providedIn:"root"})}}return ee})();var le=function(ee){return ee.INFO="INFO",ee.WARN="WARN",ee.DEBUG="DEBUG",ee.ERROR="ERROR",ee}(le||{});let Xe=(()=>{class ee{constructor(W){this.loggingService=W}logBasedOnLevel(W){switch(W.logLevel){case le.INFO:case le.DEBUG:this.logger.info(W.logStr,W.timeStamp);break;case le.ERROR:this.logger.error(W.logStr,W.timeStamp);break;case le.WARN:this.logger.warn(W.logStr,W.timeStamp)}}sendLog(W){this.logger=this.loggingService.getLogger(W.logModule?W.logModule+"/"+W.logTag:W.logTag),this.logBasedOnLevel(W)}static{this.\u0275fac=function(oe){return new(oe||ee)(Fe.KVO(G.J6))}}static{this.\u0275prov=Fe.jDH({token:ee,factory:ee.\u0275fac,providedIn:"root"})}}return ee})();var Se=s(30308),fe=s(36877),Ne=s(60045);let ye=(()=>{class ee{constructor(W,oe){this.logger=W.getLogger("crimson/windowService"),this.windowRef=window||{},this.windowRef.name=oe.name}get window(){return this.windowRef}getFocusEvent(){return(0,fe.R)(window,"focus")}getPageShowEvent(){return(0,fe.R)(window,"pageshow")}getBeforeUnloadEvent(){return(0,fe.R)(window,"beforeunload")}getKeydownEvent(){return(0,fe.R)(window,"keydown")}getKeyupEvent(){return(0,fe.R)(window,"keyup")}static{this.\u0275fac=function(oe){return new(oe||ee)(Fe.KVO(G.J6),Fe.KVO(Ne.r))}}static{this.\u0275prov=Fe.jDH({token:ee,factory:ee.\u0275fac,providedIn:"root"})}}return ee})(),Ot=(()=>{class ee{get globalStores(){return this.globalStoreDefMap}get userStores(){return this.userStoreDefMap}get appDbName(){return this.dbName}constructor(W){this.dbName=W.name,this.globalStoreDefMap=new Map,this.userStoreDefMap=new Map}defineStore(W,oe){const pt=W.storeName;if(oe.has(pt))throw new Error(`Error: store name already exists: ${pt}`);let wn;return W.name=this.dbName,W.hasOwnProperty("storeDefault")&&(wn=W.storeDefault,delete W.storeDefault),oe.set(pt,{config:W,upgrades:new Map,storeDefault:wn}),this}defineUpgrade(W,oe,pt,wn){const hi=wn.get(W);return hi.upgrades.set(oe,pt),hi.upgradeTargetVersion=oe,this}defineGlobalStore(W){return this.defineStore.call(this,W,this.globalStoreDefMap)}defineUserStore(W){return this.defineStore.call(this,W,this.userStoreDefMap)}upgradeGlobalStore(W,oe,pt){return this.defineUpgrade.call(this,W,oe,pt,this.globalStoreDefMap)}upgradeUserStore(W,oe,pt){return this.defineUpgrade.call(this,W,oe,pt,this.userStoreDefMap)}static{this.\u0275fac=function(oe){return new(oe||ee)(Fe.KVO(Ne.r))}}static{this.\u0275prov=Fe.jDH({token:ee,factory:ee.\u0275fac,providedIn:"root"})}}return ee})();var sn=s(80583),dn=s(63997),yn=s(19392),At=s(70650);function Vt(ee,H){this.v=ee,this.k=H}function Qt(ee){return new Vt(ee,0)}function Jt(ee){var H,W;function oe(wn,hi){try{var Ji=ee[wn](hi),$r=Ji.value,Ts=$r instanceof Vt;Promise.resolve(Ts?$r.v:$r).then(function(Cs){if(Ts){var Na="return"===wn?"return":"next";if(!$r.k||Cs.done)return oe(Na,Cs);Cs=ee[Na](Cs).value}pt(Ji.done?"return":"normal",Cs)},function(Cs){oe("throw",Cs)})}catch(Cs){pt("throw",Cs)}}function pt(wn,hi){switch(wn){case"return":H.resolve({value:hi,done:!0});break;case"throw":H.reject(hi);break;default:H.resolve({value:hi,done:!1})}(H=H.next)?oe(H.key,H.arg):W=null}this._invoke=function(wn,hi){return new Promise(function(Ji,$r){var Ts={key:wn,arg:hi,resolve:Ji,reject:$r,next:null};W?W=W.next=Ts:(H=W=Ts,oe(wn,hi))})},"function"!=typeof ee.return&&(this.return=void 0)}Jt.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},Jt.prototype.next=function(ee){return this._invoke("next",ee)},Jt.prototype.throw=function(ee){return this._invoke("throw",ee)},Jt.prototype.return=function(ee){return this._invoke("return",ee)};const nn=(ee,H)=>H.some(W=>ee instanceof W);let Xt,lt;const gt=new WeakMap,Ht=new WeakMap,bn=new WeakMap;let Le={get(ee,H,W){if(ee instanceof IDBTransaction){if("done"===H)return gt.get(ee);if("store"===H)return W.objectStoreNames[1]?void 0:W.objectStore(W.objectStoreNames[0])}return Ft(ee[H])},set:(ee,H,W)=>(ee[H]=W,!0),has:(ee,H)=>ee instanceof IDBTransaction&&("done"===H||"store"===H)||H in ee};function V(ee){Le=ee(Le)}function ge(ee){return"function"==typeof ee?function de(ee){return function wt(){return lt||(lt=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}().includes(ee)?function(...H){return ee.apply(Wt(this),H),Ft(this.request)}:function(...H){return Ft(ee.apply(Wt(this),H))}}(ee):(ee instanceof IDBTransaction&&function Bt(ee){if(gt.has(ee))return;const H=new Promise((W,oe)=>{const pt=()=>{ee.removeEventListener("complete",wn),ee.removeEventListener("error",hi),ee.removeEventListener("abort",hi)},wn=()=>{W(),pt()},hi=()=>{oe(ee.error||new DOMException("AbortError","AbortError")),pt()};ee.addEventListener("complete",wn),ee.addEventListener("error",hi),ee.addEventListener("abort",hi)});gt.set(ee,H)}(ee),nn(ee,function Ue(){return Xt||(Xt=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}())?new Proxy(ee,Le):ee)}function Ft(ee){if(ee instanceof IDBRequest)return function Ut(ee){const H=new Promise((W,oe)=>{const pt=()=>{ee.removeEventListener("success",wn),ee.removeEventListener("error",hi)},wn=()=>{W(Ft(ee.result)),pt()},hi=()=>{oe(ee.error),pt()};ee.addEventListener("success",wn),ee.addEventListener("error",hi)});return bn.set(H,ee),H}(ee);if(Ht.has(ee))return Ht.get(ee);const H=ge(ee);return H!==ee&&(Ht.set(ee,H),bn.set(H,ee)),H}const Wt=ee=>bn.get(ee),En=["get","getKey","getAll","getAllKeys","count"],kn=["put","add","delete","clear"],Ai=new Map;function Gi(ee,H){if(!(ee instanceof IDBDatabase)||H in ee||"string"!=typeof H)return;if(Ai.get(H))return Ai.get(H);const W=H.replace(/FromIndex$/,""),oe=H!==W,pt=kn.includes(W);if(!(W in(oe?IDBIndex:IDBObjectStore).prototype)||!pt&&!En.includes(W))return;const wn=function(){var hi=(0,At.A)(function*(Ji,...$r){const Ts=this.transaction(Ji,pt?"readwrite":"readonly");let Cs=Ts.store;return oe&&(Cs=Cs.index($r.shift())),(yield Promise.all([Cs[W](...$r),pt&&Ts.done]))[0]});return function($r){return hi.apply(this,arguments)}}();return Ai.set(H,wn),wn}V(ee=>({...ee,get:(H,W,oe)=>Gi(H,W)||ee.get(H,W,oe),has:(H,W)=>!!Gi(H,W)||ee.has(H,W)}));const bt=["continue","continuePrimaryKey","advance"],Zi={},Rn=new WeakMap,Gn=new WeakMap,Kn={get(ee,H){if(!bt.includes(H))return ee[H];let W=Zi[H];return W||(W=Zi[H]=function(...oe){Rn.set(this,Gn.get(this)[H](...oe))}),W}};function Ni(){return ir.apply(this,arguments)}function ir(){return ir=function Zt(ee){return function(){return new Jt(ee.apply(this,arguments))}}(function*(...ee){let H=this;if(H instanceof IDBCursor||(H=yield Qt(H.openCursor(...ee))),!H)return;const W=new Proxy(H,Kn);for(Gn.set(W,H),bn.set(W,Wt(H));H;)yield W,H=yield Qt(Rn.get(W)||H.continue()),Rn.delete(W)}),ir.apply(this,arguments)}function Ir(ee,H){return H===Symbol.asyncIterator&&nn(ee,[IDBIndex,IDBObjectStore,IDBCursor])||"iterate"===H&&nn(ee,[IDBIndex,IDBObjectStore])}V(ee=>({...ee,get:(H,W,oe)=>Ir(H,W)?Ni:ee.get(H,W,oe),has:(H,W)=>Ir(H,W)||ee.has(H,W)}));var hr=s(12532),Ms=s(79539),Pr=s(43615);class lo{constructor(H,W,oe){this.completesExternally=H,this.callbacks=W,this.staticWorkerFn=oe,this.requestQueue$=new sn.B7,this.startRequestQueue()}startRequestQueue(){this.requestQueue$.pipe((0,Ms.H)(H=>H.workerFn.pipe((0,T.ZZ)(W=>{if(H.response$.observers.length){if(this.completesExternally)return this.onRequestComplete$=new h.m(1),H.response$.next(W),H.response$.complete(),this.callbacks.next&&this.callbacks.next(W),this.onRequestComplete$;H.response$.next(W),H.response$.complete(),this.callbacks.next&&this.callbacks.next(W)}return(0,M.of)(!0)}),(0,E.W)(W=>(H.response$.error(W),H.response$.complete(),this.callbacks.error&&this.callbacks.error(W),(0,M.of)(W))),(0,Pr.j)(()=>{this.callbacks.complete&&this.callbacks.complete()})))).subscribe()}queue(...H){let W;return W=(0,dn.v)(this.staticWorkerFn?()=>this.staticWorkerFn(...H):H.length>1?()=>H[0](H.slice(1)):()=>H[0]()),(0,dn.v)(()=>{const oe={workerFn:W,response$:new sn.B7};return this.requestQueue$.next(oe),oe.response$.asObservable()})}notifyRequestCompletion(){this.completesExternally&&(this.onRequestComplete$.next(!0),this.onRequestComplete$.complete())}}var js=function(ee){return ee[ee.High=0]="High",ee[ee.Normal=1]="Normal",ee[ee.Low=2]="Low",ee}(js||{});class Vn{constructor(H,W){this.completesExternally=H,this.callbacks=W,this.requestQueue=[],this.requestStream$=new sn.B7,this.isProcessing=!1,this.startRequestQueue()}startRequestQueue(){this.requestStream$.pipe((0,Ms.H)(H=>H.isCancelled?(H.response$.complete(),hr.w.pipe((0,Pr.j)(this.onRequestComplete.bind(this)))):H.workerFn.pipe((0,T.ZZ)(W=>{if(H.response$.observers.length){if(this.completesExternally)return this.onRequestComplete$=new h.m(1),H.response$.next(W),H.response$.complete(),this.callbacks.next&&this.callbacks.next(W),this.onRequestComplete$;H.response$.next(W),H.response$.complete(),this.callbacks.next&&this.callbacks.next(W)}return(0,M.of)(!0)}),(0,E.W)(W=>(H.response$.error(W),H.response$.complete(),this.callbacks.error&&this.callbacks.error(W),(0,M.of)(W))),(0,Pr.j)(this.onRequestComplete.bind(this))))).subscribe()}onRequestComplete(){this.callbacks.complete&&this.callbacks.complete(),this.isProcessing=!1,this.processQueue()}processQueue(){!this.isProcessing&&this.requestQueue.length&&(this.isProcessing=!0,this.requestStream$.next(this.requestQueue.shift()))}queue(H,W,...oe){const pt=(0,dn.v)(oe.length>1?()=>oe[0](oe.slice(1)):()=>oe[0]());return(0,dn.v)(()=>{const wn={priority:H,workerFn:pt,args:[...oe],isCancelled:!1,response$:new sn.B7,insertionIndex:this.requestQueue.length};if(!W){const hi=this.getRequest(oe);if(hi)return H!==hi.priority&&(hi.priority=H),hi.response$.asObservable()}return this.requestQueue.push(wn),this.requestQueue=(0,x.orderBy)(this.requestQueue,["priority","insertionIndex"],["asc","asc"]),this.processQueue(),wn.response$.asObservable()})}getRequest(...H){return this.requestQueue.find(W=>!W.isCancelled&&(0,x.isEqual)([...H],W.args))}isQueued(H){return!!this.getRequestByQueryParam(H)}getRequestByQueryParam(H){return this.requestQueue.find(W=>!W.isCancelled&&W.args.includes(H))}cancel(H){const W=this.getRequestByQueryParam(H);return!!W&&(W.isCancelled=!0,!0)}}var Ei=s(93181),ai=s(25577),Li=function(ee){return ee.Loading="Loading",ee.Dirty="Dirty",ee.Saved="Saved",ee.NotFound="NotFound",ee}(Li||{}),Lr=function(ee){return ee.UpgradeStart="UpgradeStart",ee.UpgradeEnd="UpgradeEnd",ee}(Lr||{}),Mn=function(ee){return ee.Upgrade="Upgrade",ee}(Mn||{}),Zn=function(ee){return ee.Measure="measure",ee.Resource="resource",ee.Element="element",ee}(Zn||{});class yi{constructor(H,W,oe){if(this.config=H,this.onDbItemChange=W,this.requestQueue=oe,this.versionKey="_version",this.connected=!1,this.name=this.config.storeName,this.dbName=this.config.dbName,this.userId=this.config.userId,this.config.storeDefinition){const pt=this.config.storeDefinition;this.upgrade$=this.upgradeStore(this.config.storeName,pt.storeDefault,pt.upgrades,pt.upgradeTargetVersion||0)}else this.upgrade$=(0,M.of)(this);this.upgrade$.subscribe(()=>{this.connected=!0})}logError(...H){console.error("DbDataStore",this.name,JSON.stringify(H))}logInfo(...H){console.info("DbDataStore",this.name,JSON.stringify(H))}upgradeStore(H,W,oe,pt){let wn;return this.getItem(this.versionKey).pipe((0,T.ZZ)(hi=>(performance.mark(Lr.UpgradeStart),wn=hi||0,0===wn&&W?(wn=W.version,this.processDirectUpgrade(H,W,wn)):this.processSequentialUpgrades(H,wn,oe,pt))),(0,u.T)(()=>{performance.mark(Lr.UpgradeEnd);const hi=this.getDbUpgradeDuration();return this.logInfo(`Time spent in async db upgrade: ${hi}, store: ${H}, new version: ${wn}`),this}))}getDbUpgradeDuration(){try{return performance.measure(Mn.Upgrade,Lr.UpgradeStart,Lr.UpgradeEnd),performance.getEntriesByType(Zn.Measure).find(H=>H.name===Mn.Upgrade).duration}catch(H){return this.logError("Error while calling measure on performance",H),-1}}processDirectUpgrade(H,W,oe){const pt=[];for(const wn of Object.keys(W.db))pt.push(this.setItem(wn,W.db[wn]));return(0,Ei.p)(pt).pipe((0,T.ZZ)(()=>(this.logInfo(`Store ${H} successfully set to default version: ${oe}`),this.setItem(this.versionKey,W.version))),(0,ct.s)(1),(0,u.T)(()=>this),(0,E.W)(wn=>(this.logError(`Store ${H} failed to upgrade version from 0 to ${oe} due to error: ${wn}`),(0,P.$)(wn))))}processSequentialUpgrades(H,W,oe,pt){if(W>pt)return(0,P.$)(`Store ${H} db downgrade not supported. Version: ${W}, Target: ${pt}`);if(W===pt)return this.logInfo(`Upgrade not required for Store: ${H}, Version: ${W}`),(0,M.of)(this);let wn;return(0,yn.H)(oe.keys()).pipe((0,Ms.H)(hi=>{if(wn=+hi,wn>W){this.logInfo(`Store: ${H}, attempting upgrade from version: ${W} to ${wn}`);const Ji=oe.get(wn);return(0,yn.H)(Ji(this)).pipe((0,T.ZZ)(()=>(this.logInfo(`Store ${H} successfully upgraded to version: ${wn}`),this.setItem(this.versionKey,W=wn))))}return(0,M.of)(this)}),(0,ai.H)(),(0,u.T)(()=>this),(0,E.W)(hi=>(this.logError(`Store ${H} failed to upgrade db from version: ${W} to ${wn} due to error ${hi}`),(0,P.$)(hi))))}getItem(H){return H?this.requestQueue.queue(this.name).pipe((0,T.ZZ)(W=>{const pt=W.transaction(this.name,"readonly").objectStore(this.name);return(0,yn.H)(pt.get(H))}),(0,E.W)(W=>(this.logError("error fetching item",W),(0,P.$)(W))),(0,Pr.j)(()=>{this.requestQueue.notifyRequestCompletion()})):(0,P.$)("invalid key")}getItemByCursor(H){return this.logInfo("get item using cursor for key ",H),H?this.requestQueue.queue(this.name).pipe((0,T.ZZ)(W=>{this.logInfo("request queue item ",this.name);const pt=W.transaction(this.name,"readonly").objectStore(this.name);return new Promise((wn,hi)=>{pt.openCursor(H).then(function($r){return $r?Promise.resolve($r.value):Promise.resolve()}).then(Ji=>{wn(Ji)}).catch(()=>{hi("Error reading key from store")})})}),(0,E.W)(W=>(this.logError("error fetching item",W),(0,P.$)(W))),(0,Pr.j)(()=>{this.requestQueue.notifyRequestCompletion()})):(0,P.$)("invalid key")}setItem(H,W){return this.config.storeDefinition?(W instanceof Object&&(W.ts=Date.now()),this.setItemInDb(H,W).pipe((0,u.T)(oe=>(this.onDbItemChange.next({storeName:this.name,userId:this.userId,key:H}),W)))):this.setItemInDb(H,W)}setItemInDb(H,W){return this.requestQueue.queue(this.name).pipe((0,T.ZZ)(oe=>{const pt=oe.transaction(this.name,"readwrite"),hi=pt.objectStore(this.name).put(W,H);return this.finishReadWriteTxObservable(hi,pt.done)}),(0,E.W)(oe=>(this.logError("error setting item",oe),(0,P.$)(oe))),(0,Pr.j)(()=>{this.requestQueue.notifyRequestCompletion()}))}removeItem(H){return this.requestQueue.queue(this.name).pipe((0,T.ZZ)(W=>{const oe=W.transaction(this.name,"readwrite"),wn=oe.objectStore(this.name).delete(H);return this.finishReadWriteTxObservable(wn,oe.done)}),(0,E.W)(W=>(this.logError("error removing item",W),(0,P.$)(W))),(0,Pr.j)(()=>{this.requestQueue.notifyRequestCompletion()}))}getAllItems(){return this.requestQueue.queue(this.name).pipe((0,T.ZZ)(H=>{const oe=H.transaction(this.name,"readonly").objectStore(this.name);return(0,Ei.p)([(0,yn.H)(oe.getAllKeys()),(0,yn.H)(oe.getAll())])}),(0,u.T)(([H,W])=>{const oe={};for(let pt=0;pt<H.length;pt++)(0,x.set)(oe,H[pt].split("/"),W[pt]);return oe}),(0,E.W)(H=>(this.logError("error fetching item",H),(0,P.$)(H))),(0,Pr.j)(()=>{this.requestQueue.notifyRequestCompletion()}))}getAllItemsByCursor(){return this.requestQueue.queue(this.name).pipe((0,T.ZZ)(H=>{const oe=H.transaction(this.name,"readonly").objectStore(this.name),pt={};return new Promise((wn,hi)=>{oe.openCursor().then(function Ji($r){return $r?((0,x.set)(pt,$r.key.split("/"),$r.value),$r.continue().then(Ji)):Promise.resolve()}).then(()=>{wn(pt)}).catch(()=>{hi("Error reading all keys from store")})})}),(0,E.W)(H=>(this.logError("error fetching item",H),(0,P.$)(H))),(0,Pr.j)(()=>{this.requestQueue.notifyRequestCompletion()}))}clear(){return this.requestQueue.queue(this.name).pipe((0,T.ZZ)(H=>{const W=H.transaction(this.name,"readwrite"),pt=W.objectStore(this.name).clear();return this.finishReadWriteTxObservable(pt,W.done)}),(0,E.W)(H=>(this.logError("error clearing store",H),(0,P.$)(H))),(0,Pr.j)(()=>{this.requestQueue.notifyRequestCompletion()}))}length(){return this.keys().pipe((0,u.T)(H=>H.length))}keys(){return this.requestQueue.queue(this.name).pipe((0,T.ZZ)(H=>H.transaction(this.name,"readonly").objectStore(this.name).getAllKeys()),(0,E.W)(H=>(this.logError("error fetching keys",H),(0,P.$)(H))),(0,Pr.j)(()=>{this.requestQueue.notifyRequestCompletion()}))}finishReadWriteTxObservable(H,W){return(0,Ei.p)([(0,yn.H)(this.preventTransactionCloseOnError(H)),(0,yn.H)(W)])}preventTransactionCloseOnError(H){const W=Wt(H);return W.addEventListener("error",oe=>{this.logError("Request failed, error=",W.error),oe.preventDefault(),oe.stopPropagation()}),H}}class tr{get onDbItemChange(){return this.dbItemChange$}constructor(H,W,oe){this.dbName=H,this.globalStoreDefMap=W,this.userStoreDefMap=oe,this.dbObjectStoresInitialized=new h.m(1),this.dataStores=new Map,this.dbItemChange$=new sn.B7,this.globalStoreDefMap||(this.globalStoreDefMap=new Map),this.userStoreDefMap||(this.userStoreDefMap=new Map),this.requestQueue=new lo(!0,{next:void 0,error:this.closeDbConnection.bind(this),complete:this.closeDbConnection.bind(this)},this.refreshDbInstance.bind(this))}logError(...H){console.error("DbHandler",this.dbName,JSON.stringify(H))}logInfo(...H){console.info("DbHandler",this.dbName,JSON.stringify(H))}refreshDbInstance(H){return(0,dn.v)(()=>this.dbObjectStores&&!this.dbObjectStores.contains(H)?(0,M.of)(!0):(0,M.of)(!1)).pipe((0,T.ZZ)(W=>W?(this.logInfo("retrieving db version from disk"),this.openDbInstance(H).pipe((0,T.ZZ)(oe=>{this.dbInstance=oe,this.dbObjectStores=this.dbInstance.objectStoreNames,this.dbObjectStoresInitialized.next(!0);const pt=this.dbInstance.version;return this.logInfo("current db version",pt),this.closeDbConnection(),this.openDbInstance(H,pt+1)}))):this.openDbInstance(H).pipe((0,T.ZZ)(oe=>{if(this.dbInstance=oe,this.dbObjectStores=this.dbInstance.objectStoreNames,this.dbObjectStoresInitialized.next(!0),!this.dbObjectStores.contains(H)){const pt=this.dbInstance.version;return this.logInfo(`store ${H} not found in current db version ${pt}, upgrading`),this.closeDbConnection(),this.openDbInstance(H,pt+1)}return(0,M.of)(this.dbInstance)}))),(0,E.W)(W=>(this.logError("error",W),(0,P.$)(W))))}openDbInstance(H,W){return(0,yn.H)(function Kt(ee,H,{blocked:W,upgrade:oe,blocking:pt,terminated:wn}={}){const hi=indexedDB.open(ee,H),Ji=Ft(hi);return oe&&hi.addEventListener("upgradeneeded",$r=>{oe(Ft(hi.result),$r.oldVersion,$r.newVersion,Ft(hi.transaction),$r)}),W&&hi.addEventListener("blocked",$r=>W($r.oldVersion,$r.newVersion,$r)),Ji.then($r=>{wn&&$r.addEventListener("close",()=>wn()),pt&&$r.addEventListener("versionchange",Ts=>pt(Ts.oldVersion,Ts.newVersion,Ts))}).catch(()=>{}),Ji}(this.dbName,W,{upgrade:oe=>{this.logInfo("upgrading db for",H),this.dbInstance=oe,this.dbObjectStores=this.dbInstance.objectStoreNames,this.dbObjectStoresInitialized.next(!0),this.dbObjectStores.contains(H)||this.dbInstance.createObjectStore(H)}}))}closeDbConnection(){this.dbInstance?(this.dbInstance.close(),this.dbInstance=null):this.logError("attempted to close db connection when local instance unavailable")}getDataStore(H){if(!this.dataStores.has(H.storeDbName)){this.logInfo(`Create datastore instance: ${H.storeDbName}`);const W=Object.assign({},H,{dbName:this.dbName});this.dataStores.set(H.storeDbName,new yi(W,this.dbItemChange$,this.requestQueue))}return this.dataStores.get(H.storeDbName)}getGlobalStore(H){return this.getDataStore({storeName:H,storeDbName:H,storeDefinition:this.globalStoreDefMap.get(H)})}getUserStore(H,W){return this.getDataStore({storeName:W,storeDbName:`${H}_${W}`,userId:H,storeDefinition:this.userStoreDefMap.get(W)})}getStore(H){return this.getDataStore({storeName:H,storeDbName:H})}checkIfStoreExists(H){return this.dbObjectStoresInitialized.asObservable().pipe((0,u.T)(()=>this.dbObjectStores.contains(H)))}getAllStoreNames(){return Array.from(this.dataStores.keys())}}let qi=(()=>{class ee{constructor(W,oe){this.logger=oe.getLogger("crimson/DBService"),this.globalStoreDefMap=W.globalStores,this.userStoreDefMap=W.userStores,this.dbName=W.appDbName,this.dbhandlerInstance=new tr(this.dbName,this.globalStoreDefMap,this.userStoreDefMap)}get dbHandler(){return this.dbhandlerInstance}getGlobalStore(W){return this.dbhandlerInstance.getGlobalStore(W)}getUserStore(W,oe){return this.dbhandlerInstance.getUserStore(W,oe)}getStore(W){return this.dbhandlerInstance.getStore(W)}checkKeysOfExisitngDbStore(W){return this.dbhandlerInstance.checkIfStoreExists(W).pipe((0,ct.s)(1),(0,T.ZZ)(oe=>oe?this.getGlobalStore(W).length():(0,M.of)(0)))}deleteOldKeys(W){return this.checkKeysOfExisitngDbStore(W).pipe((0,T.ZZ)(oe=>oe?this.getGlobalStore(W).clear():(0,M.of)(null)),(0,u.T)(oe=>oe?(this.logger.info("Keys in db store deleted"),!0):(this.logger.info("No keys in the dB store, skip deletion"),!1)))}static{this.\u0275fac=function(oe){return new(oe||ee)(Fe.KVO(Ot),Fe.KVO(G.J6))}}static{this.\u0275prov=Fe.jDH({token:ee,factory:ee.\u0275fac,providedIn:"root"})}}return ee})();var Br=s(99443);class Sr{constructor(H,W,oe,pt){this.dbHandler=H,this.storeName=W,this.key=oe,this.userId=pt,this.status_=Li.Loading,this.syncObservers=new Set,this.wait$=new Br.h}get status(){return this.status_}updateStatus(H){const W=this.status_;this.status_=H,this.isFirstSyncComplete(W)&&(this.wait$.next(this.status),this.wait$.complete())}isFirstSyncComplete(H){return!this.wait$.closed&&H===Li.Loading&&this.status_!==Li.Loading}persist_(){this.updateStatus(Li.Dirty);const H=this.getStore(this.userId,this.storeName),W=(({status:oe,status_:pt,persist_:wn,sync_:hi,observe_:Ji,unobserve_:$r,wait_:Ts,dbHandler:Cs,updateStatus:Na,isFirstSyncComplete:Cl,getStore:Yc,syncObservers:_d,wait$:ea,..._l})=>_l)(this);return H.setItem(this.key,W).pipe((0,R.M)(()=>this.updateStatus(Li.Saved)),(0,E.W)(()=>(this.logError(`Error persisting the key ${this.key} to db`),(0,M.of)(W))))}getStore(H,W){return H?this.dbHandler.getUserStore(H,W):this.dbHandler.getGlobalStore(W)}sync_(){return this.getStore(this.userId,this.storeName).getItem(this.key).pipe((0,u.T)(W=>{if(!((W=W||{})instanceof Object))throw new Error("Tried to cache plain old data. Only Object types supported");for(const oe of Object.keys(W))this[oe]=W[oe];return this.updateStatus(Li.Saved),this.syncObservers.forEach(oe=>{oe()}),W}))}wait_(){return this.wait$.closed&&(this.wait$=new Br.h,this.status_!==Li.Loading&&(this.wait$.next(this.status),this.wait$.complete())),this.wait$.asObservable()}observe_(H){this.syncObservers.add(H),this.status_!==Li.Loading&&H()}unobserve_(H){this.syncObservers.delete(H)}logError(...H){console.error("DbHandler",this.storeName,JSON.stringify(H))}}let ds=(()=>{class ee{get globalCacheDefinitions(){return this.globalLoadMap}get userCacheDefinitions(){return this.userLoadMap}get globalCache(){return this.globalCacheMap}get userCache(){return this.userCacheMap}constructor(W){this.dbService=W,this.globalLoadMap=new Map,this.userLoadMap=new Map,this.globalCacheMap=new Map,this.userCacheMap=new Map}loadGlobalKey(W,oe){this.globalLoadMap.has(W)||this.globalLoadMap.set(W,new Set),this.globalLoadMap.get(W).add(oe),this.globalCacheMap.has(W)||this.globalCacheMap.set(W,new Map),this.globalCacheMap.get(W).set(oe,new Sr(this.dbService.dbHandler,W,oe))}loadUserKey(W,oe){this.userLoadMap.has(W)||this.userLoadMap.set(W,new Set),this.userLoadMap.get(W).add(oe)}static{this.\u0275fac=function(oe){return new(oe||ee)(Fe.KVO(qi))}}static{this.\u0275prov=Fe.jDH({token:ee,factory:ee.\u0275fac,providedIn:"root"})}}return ee})(),bs=(()=>{class ee{constructor(W,oe,pt){this.loggingService=W,this.dbService=pt,this.logger=this.loggingService.getLogger("crimson/dbCacheService"),this.globalCacheDefinitions=oe.globalCacheDefinitions,this.userCacheDefinitions=oe.userCacheDefinitions,this.globalCache=oe.globalCache,this.userCacheMap=oe.userCache,this.dbService.dbHandler.onDbItemChange.subscribe(wn=>{let hi;wn.userId?this.userCacheMap.has(wn.userId)&&this.userCacheMap.get(wn.userId).has(wn.storeName)&&(hi=this.userCacheMap.get(wn.userId).get(wn.storeName).get(wn.key)):this.globalCache.has(wn.storeName)&&(hi=this.globalCache.get(wn.storeName).get(wn.key)),hi&&hi.sync_().subscribe()})}syncGlobal(W){const oe=this.globalCacheDefinitions.get(W),pt=[];return oe.forEach(wn=>{const hi=this.globalCache.get(W);pt.push(hi.get(wn).sync_())}),(0,Ei.p)(pt).pipe((0,R.M)(()=>{this.logger.info(`Cached DB store ${W} into memory`)}))}syncUser(W,oe){const pt=this.userCacheDefinitions.get(W);this.userCacheMap.has(oe)||this.initUserCache(oe);const wn=[];return pt.forEach(hi=>{const Ji=this.userCacheMap.get(oe).get(W);wn.push(Ji.get(hi).sync_())}),(0,Ei.p)(wn).pipe((0,R.M)(()=>{this.logger.info(`Cached user DB store ${W} into memory for user ${oe}`)}))}initUserCache(W){this.userCacheMap.set(W,new Map),this.userCacheDefinitions.forEach((oe,pt)=>{oe.forEach(wn=>{this.userCacheMap.get(W).has(pt)||this.userCacheMap.get(W).set(pt,new Map),this.userCacheMap.get(W).get(pt).set(wn,new Sr(this.dbService.dbHandler,pt,wn,W))})})}getCachedGlobalItem(W,oe){if(this.globalCache.has(W))return this.globalCache.get(W).get(oe)}getOrCreateCachedGlobalItem(W,oe){return(!this.globalCache.has(W)||!this.globalCache.get(W).has(oe))&&(this.globalCacheDefinitions.has(W)||this.globalCacheDefinitions.set(W,new Set),this.globalCacheDefinitions.get(W).add(oe),this.globalCache.has(W)||this.globalCache.set(W,new Map),this.globalCache.get(W).set(oe,new Sr(this.dbService.dbHandler,W,oe))),this.globalCache.get(W).get(oe)}getCachedUserItem(W,oe,pt){return this.userCacheMap.has(W)||this.initUserCache(W),this.userCacheMap.get(W).get(oe).get(pt)}static{this.\u0275fac=function(oe){return new(oe||ee)(Fe.KVO(G.J6),Fe.KVO(ds),Fe.KVO(qi))}}static{this.\u0275prov=Fe.jDH({token:ee,factory:ee.\u0275fac,providedIn:"root"})}}return ee})();var Wi,An=s(88058),Jn=s(61090);s(81799),s(33328),function(ee){let H;var W;(W=H=ee.HandlerEventType||(ee.HandlerEventType={})).SimpleWindowEvent="SIMPLE_WINDOW_EVENT",W.StructuredWindowEvent="STRUCTURED_WINDOW_EVENT",W.IpcEvent="IPC_EVENT"}(Wi||(Wi={}));var mr=function(ee){return ee.Types=Wi,ee}(mr||{}),qr=s(27731);class ms{constructor(H,W){this.bridgeService=H,this.keyToMessageType=new Map,this.eventHandlerLogger=W,this.eventStreams=new nt.V$(oe=>{if(!this.keyToMessageType.has(oe))return this.eventHandlerLogger.error("No message type for key",oe),qr.t;const pt=this.keyToMessageType.get(oe);return this.handlerMap[pt].internalSubjects.set(oe,new sn.B7),this.handlerMap[pt].internalSubjects.get(oe).asObservable()},!1,!1)}registerNewHandler(H,W,oe,pt,wn){this.handlerMap||(this.handlerMap={}),this.handlerMap[H]={pred:W,keyFunc:oe,valFunc:pt,transformedFunc:wn,internalSubjects:new Map}}get$(H,W=this.defaultHandlerType){return this.keyToMessageType.has(H)||this.keyToMessageType.set(H,W),this.eventStreams.get$(H)}processMessage(H){for(const W of Object.keys(this.handlerMap))if(this.handlerMap[W].pred(H)){const pt=this.handlerMap[W].transformedFunc(H),wn=this.handlerMap[W].keyFunc(pt),hi=this.handlerMap[W].valFunc(pt);this.handlerMap[W].internalSubjects.has(wn)?this.handlerMap[W].internalSubjects.get(wn).next(hi):this.eventHandlerLogger.info("No subscribers for event with key ",wn)}}}var Qs=function(ee){return ee.ApplicationHide="APPLICATION_HIDE",ee.ApplicationShow="APPLICATION_SHOW",ee.WindowMinimize="MINIMIZE",ee.WindowMaximize="MAXIMIZE",ee.WindowRestore="RESTORE",ee.IpcNewMessage="IPC_NEW_MESSAGE",ee.SelfUpdate="SELF_UPDATE",ee.RouteChange="URL_ROUTE_CHANGE",ee.StoredCommandLine="STORED_COMMAND_LINE",ee.ProcessEvent="PROCESS_EVENT",ee.UpdateInitiated="UPDATE_INITIATED",ee.SharedStorageUpdate="SHARED_STORAGE_UPDATE",ee.ForegroundEvent="FOREGROUND_EVENT",ee.DisplayModeChange="DISPLAYMODECHANGE",ee}(Qs||{});class ks{constructor(H){const{type:W,...oe}=H;this.type=W,this.params=oe}}class Ar extends ks{constructor(H){super(H),this.newRoute=H["new-route"],this.currentRoute=H["current-route"]}}class Ur{static create(H){return H.type===Qs.RouteChange?new Ar(H):new ks(H)}}let vs=(()=>{class ee extends ms{constructor(W,oe){const pt=oe.getLogger("nativeEventService");super(W,pt),this.logger=pt,this.defaultHandlerType=mr.Types.HandlerEventType.SimpleWindowEvent,this.registerNewHandler(mr.Types.HandlerEventType.StructuredWindowEvent,wn=>wn.startsWith("json:"),wn=>JSON.parse(wn).type,wn=>wn,wn=>wn.substring(5)),this.registerNewHandler(mr.Types.HandlerEventType.SimpleWindowEvent,wn=>!wn.startsWith("json:"),wn=>wn,wn=>wn,wn=>wn),this.bridgeService.executeCommand(Ge.Ts.Common.Windowevents.RegisterWindowEventsCallback,{}).subscribe(wn=>{this.processMessage(wn)})}getNativeEvent$(W){return this.get$(W,mr.Types.HandlerEventType.StructuredWindowEvent).pipe((0,u.T)(oe=>Ur.create(JSON.parse(oe))))}static{this.\u0275fac=function(oe){return new(oe||ee)(Fe.KVO(i.NZ),Fe.KVO(G.J6))}}static{this.\u0275prov=Fe.jDH({token:ee,factory:ee.\u0275fac,providedIn:"root"})}}return ee})();s(77061);var Zo=s(53931),vo=s(84580);s(76706);s(2833);const Ks={0:"None",8:"Backsp",9:"Tab",16:"Shift",17:"Ctrl",18:"Alt",12:"Clear",13:"Enter",19:"Pause",20:"Caps",27:"Esc",32:"Space",33:"PgUp",34:"PgDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",41:"Select",42:"Print",43:"Exec",44:"PrtScn",45:"Insert",46:"Delete",47:"Help",91:"Win",92:"Win",93:"Apps",95:"Sleep",96:"Num0",97:"Num1",98:"Num2",99:"Num3",100:"Num4",101:"Num5",102:"Num6",103:"Num7",104:"Num8",105:"Num9",106:"Num*",107:"Num+",108:"Separ",109:"Num-",110:"Num.",111:"Num/",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",124:"F13",125:"F14",126:"F15",127:"F16",128:"F17",129:"F18",130:"F19",131:"F20",132:"F21",133:"F22",134:"F23",135:"F24",144:"NumLck",145:"ScrLck",160:"Shift",161:"Shift",162:"Ctrl",163:"Ctrl",164:"Alt",165:"Alt",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",65335:"Cmd"};s(17669);var na=s(5798);const Ro={statusCode:na.jm.UnknownError};class ja{constructor(H,W,oe){this.params=H,this.networkStatusService=W,this.bridgeService=oe,this.getFailureCode=pt=>this.checkRequestCancelled(pt).pipe((0,T.ZZ)(wn=>wn.statusCode!==na.jm.UnknownError?(0,M.of)(wn):this.checkNetworkStatus()),(0,T.ZZ)(wn=>wn.statusCode!==na.jm.UnknownError?(0,M.of)(wn):this.checkDNSLookup(pt.requestUrl)),(0,E.W)(wn=>(0,M.of)(Ro))),this.dnsLookupValidity=this.params?.dnsCacheValidity??na.fu,this.dnsLookupMap=new Map,this.requestCancelledMap=new Map}checkNetworkStatus(){return(0,M.of)(this.networkStatusService.isOnline?Ro:{statusCode:na.jm.NetworkStatusOffline})}getCachedDNSEntry(H){const W=this.dnsLookupMap.get(H);if(W&&Date.now()-W.lastUpdatedTs<=this.dnsLookupValidity)return W}checkDNSLookup(H){const W=new URL(H).hostname,oe=this.getCachedDNSEntry(W);return oe?(0,M.of)(oe.lookupSuccessful?Ro:{statusCode:na.jm.DNSLookupFailed,isUserOnline:!0,cachedDNSEntry:oe}):this.bridgeService.executeCommand(Ge.Ts.Common.Systeminfo.DNSLookup,{name:W}).pipe((0,u.T)(pt=>{if(!pt)return Ro;const wn={lookupSuccessful:!0,lastUpdatedTs:Date.now(),destinationIp:pt?.hostname||""};return this.dnsLookupMap.set(W,wn),{statusCode:na.jm.UnknownError,cachedDNSEntry:wn}}),(0,E.W)(pt=>{const wn={lookupSuccessful:!1,lastUpdatedTs:Date.now(),destinationIp:""};return this.dnsLookupMap.set(W,wn),(0,M.of)({statusCode:na.jm.DNSLookupFailed,isUserOnline:!0,cachedDNSEntry:wn})}))}checkRequestCancelled(H){const W={statusCode:na.jm.RequestCancelled};return H.uniqueRequestId&&this.requestCancelledMap.has(H.uniqueRequestId)?(0,M.of)(W):H.isCancelled?(H.uniqueRequestId&&this.requestCancelledMap.set(H.uniqueRequestId,!0),(0,M.of)(W)):(0,M.of)(Ro)}}let Eo=(()=>{class ee{constructor(W,oe){this.networkStatusService=W,this.bridgeService=oe}createAnalyzer(W){return new ja(W,this.networkStatusService,this.bridgeService)}static{this.\u0275fac=function(oe){return new(oe||ee)(Fe.KVO(Se.C),Fe.KVO(i.NZ))}}static{this.\u0275prov=Fe.jDH({token:ee,factory:ee.\u0275fac,providedIn:"root"})}}return ee})();var Ho=s(16229),no=s(8619),Fs=s(55833),Co=s(34593);function so(ee){return ee instanceof HTMLInputElement||ee instanceof HTMLTextAreaElement}function _o(ee,H){return ee.visible===H.visible&&ee.height===H.height}let La=(()=>{class ee{get visualViewport(){return this.window.visualViewport}get document(){return this.window.document}get keyboardState$(){return this._keyboardState$.pipe((0,no.p)(W=>void 0!==W.height))}get keyboardVisible$(){return this._keyboardState$.pipe((0,u.T)(W=>W.visible))}constructor(W,oe,pt,wn){this.systemInfoService=pt,this.ngZone=wn,this.hiddenTextId="hiddentext",this.logger=W.getLogger("SystemVirtualKeyboardService"),this.window=oe.window,this._keyboardState$=this.createKeyboardState().pipe((0,ae.F)(_o),(0,Fs.t)({bufferSize:1,refCount:!0}))}createKeyboardState(){return this.systemInfoService.getDeviceOSType().pipe((0,ct.s)(1),(0,v.n)(W=>{switch(W){case ze.t_.WebOS:return this.createWebOSKeyboardState();case ze.t_.Tizen:return this.createTizenKeyboardState();case ze.t_.Windows:case ze.t_.Android:return this.createWindowsOrAndroidKeyboardState();case ze.t_.IOS:case ze.t_.IPadOS:return this.createIOSKeyboardState();default:return this.logger.warn("Attempting to monitor virtual keyboard state on unsupported platform"),hr.w}}))}createWebOSKeyboardState(){return C.zk.isPWAModeOnLGTV()?this.ngZone.runOutsideAngular(()=>(0,fe.R)(this.document,"keyboardStateChange").pipe((0,u.T)(W=>({visible:W.detail.visibility})),(0,Co.Z)({visible:!1}))):(this.logger.warn("Virtual keyboard detection is only possible in PWA mode"),qr.t)}createTizenKeyboardState(){return this.ngZone.runOutsideAngular(()=>{const W=(0,Ho.h)((0,fe.R)(this.window,"focusin").pipe((0,u.T)(pt=>so(pt.target))),(0,fe.R)(this.window,"focusout").pipe((0,Y.u)(!1))),oe=(0,fe.R)(this.window,"keydown").pipe((0,no.p)(pt=>(pt.keyCode===nt.O4.Done||"Cancel"===pt.key)&&so(pt.target)),(0,R.M)(pt=>pt.target.blur()),(0,v.n)(pt=>qr.t));return(0,Ho.h)(W,oe).pipe((0,u.T)(pt=>({visible:pt})),(0,Co.Z)({visible:so(this.document.activeElement)}))})}createWindowsOrAndroidKeyboardState(){return this.visualViewport?this.ngZone.runOutsideAngular(()=>(0,fe.R)(this.visualViewport,"resize").pipe((0,u.T)(()=>Math.floor(this.window.innerHeight-this.visualViewport.height)),(0,ae.F)()).pipe((0,u.T)(oe=>{const wn=so(this.document.activeElement)?oe:0;return{visible:wn>0,height:wn}}),(0,R.M)(oe=>{oe?.height<=0&&this.document.activeElement?.id===this.hiddenTextId&&this.document.activeElement.blur()}),(0,Co.Z)({visible:!1,height:0}))):(this.logger.warn("visualViewport is required for virtual keyboard detection"),qr.t)}createIOSKeyboardState(){return this.visualViewport?this.ngZone.runOutsideAngular(()=>(0,Ho.h)((0,fe.R)(this.visualViewport,"resize"),(0,fe.R)(this.window,"orientationchange")).pipe((0,no.p)(()=>this.visualViewport.height!==this.window.innerWidth),(0,u.T)(()=>this.window.innerHeight-this.visualViewport.height),(0,ae.F)()).pipe((0,u.T)(oe=>{const wn=so(this.document.activeElement)?oe:0;return{visible:wn>0,height:wn}}),(0,Co.Z)({visible:!1,height:0}))):(this.logger.warn("visualViewport is required for virtual keyboard detection"),qr.t)}static{this.\u0275fac=function(oe){return new(oe||ee)(Fe.KVO(G.J6),Fe.KVO(ye),Fe.KVO(dt),Fe.KVO(Fe.SKi))}}static{this.\u0275prov=Fe.jDH({token:ee,factory:ee.\u0275fac,providedIn:"root"})}}return ee})();var Ko=s(57643),co=s(57118),$s=s(37768),Sn=s(62931),ba=s(65770),$o=function(ee){return ee.Laptop="Laptop",ee.Notebook="Notebook",ee.SubNotebook="Sub Notebook",ee.Portable="Portable",ee.Convertible="Convertible",ee.Detachable="Detachable",ee}($o||{});const aa=[$o.Laptop,$o.Convertible,$o.Detachable,$o.Notebook,$o.Portable,$o.SubNotebook];let Xs=(()=>{class ee{constructor(W,oe,pt,wn){this.loggingService=W,this.bridgeService=oe,this.windowService=pt,this.eventStreamFactory=wn,this.logger=this.loggingService.getLogger("HardwareInformationService"),this.gpuInfoStream=this.eventStreamFactory.createStream(()=>this.fetchGPUInfo()),this.genericInfoStream=this.eventStreamFactory.createStream(()=>this.fetchGenericInfo()),this.setupHardwareInfoRefreshOnAppWindowFocus()}getGenericInfo(W){return W?this.genericInfoStream.refresh():this.genericInfoStream.get$()}getGpuInfo(W){return W?this.gpuInfoStream.refresh():this.gpuInfoStream.get$()}getSLIInformation(W=!0){return this.getGpuInfo(W).pipe((0,u.T)(oe=>oe.SLI))}getOptimusStatus(W=!0){return this.getGpuInfo(W).pipe((0,u.T)(oe=>oe.IsOptimus))}getIsLaptopSystem(){return this.getGenericInfo(!1).pipe((0,u.T)(W=>aa.includes(W?.MoboType)),(0,E.W)(W=>(0,M.of)(!1)))}fetchHardwareInfo(){return(0,Qe.zV)([this.fetchGenericInfo(),this.fetchGPUInfo()]).pipe((0,ct.s)(1),(0,R.M)(([W,oe])=>{const pt=this.genericInfoStream.getData(),wn=this.gpuInfoStream.getData();(0,x.isEqual)(pt,W)||this.genericInfoStream.setData(W,!0),(0,x.isEqual)(wn,oe)||this.gpuInfoStream.setData(oe,!0)}))}getQuadroSystemFlag(){return this.getGpuInfo(!1).pipe((0,u.T)(W=>1==+W?.GPU?.filter(wn=>wn.IsPrimary)?.[0]?.IsQuadro))}getBlackwellGpuInSystemSync(){const W=this.gpuInfoStream.getData();return W?.GPU&&0!==W.GPU.length&&W.GPU.find(pt=>this.isBlackwellArchitecture(pt.GPUArchitecture))||null}isBlackwellArchitecture(W){return!!W&&parseInt(W,10)>=416}setupHardwareInfoRefreshOnAppWindowFocus(W){this.onFocusInfoRefreshSub?.unsubscribe(),this.onFocusInfoRefreshSub=this.windowService.getFocusEvent().pipe((0,Sn.B)(W??500),(0,v.n)(oe=>(this.logger.info("hardware info refreshed on focus"),this.fetchHardwareInfo())),(0,E.W)(oe=>(this.logger.error("failed to reload sys info",oe),(0,M.of)(!0)))).subscribe()}fetchGenericInfo(){return this.genericInfoObs$||(this.genericInfoObs$=this.bridgeService.executeCommand(Ge.Ts.Nvapp.Driverupdaterecommendation.GetGenericInfo).pipe((0,ba.u)(),(0,R.M)(W=>{this.logger.info("Generic info fetched success:",W)}),(0,E.W)(W=>(this.logger.error("there is problem fetching generic info",W),(0,P.$)(W))),(0,Pr.j)(()=>{this.genericInfoObs$=null}))),this.genericInfoObs$}fetchGPUInfo(){return this.gpuInfoObs$||(this.gpuInfoObs$=this.bridgeService.executeCommand(Ge.Ts.Nvapp.Driverupdaterecommendation.GetGPUInfo).pipe((0,ba.u)(),(0,R.M)(W=>{this.logger.info("Gpu info fetched success:",W)}),(0,E.W)(W=>(this.logger.error("there is problem fetching gpu info",W),(0,P.$)(W))),(0,Pr.j)(()=>{this.gpuInfoObs$=null}))),this.gpuInfoObs$}static{this.\u0275fac=function(oe){return new(oe||ee)(Fe.KVO(G.J6),Fe.KVO(i.NZ),Fe.KVO(ye),Fe.KVO(nt.mZ))}}static{this.\u0275prov=Fe.jDH({token:ee,factory:ee.\u0275fac,providedIn:"root"})}}return ee})();var _a=function(ee){return ee.NvApp="NVAPP_UI",ee.OSC="NVAPP_OSC_UI",ee.GFN="GFN_UI",ee}(_a||{});let zi=(()=>{class ee{constructor(W,oe){this.bridgeService=oe,this.logger=W.getLogger("crimson/ExceptionInfoService")}sendExceptionInfo(W,oe,pt,wn,hi,Ji){const Cs={exceptionInfo:{name:pt??"",message:wn??"",code:Ji??0,stackTrace:hi??"",clientInfo:{componentName:W,componentVersion:oe}}};return this.logger.info("Calling Diagnostics Plugin SendExceptionInfo API With Params:",Cs),this.bridgeService.executeCommand(Ge.Ts.Common.Diagnostics.SendExceptionInfo,Cs)}SendUserFeedbackInfo(W,oe,pt){const wn={surveyId:W??"",uiPage:oe??"",uiLanguage:pt??""};return this.logger.info("Calling Diagnostics Plugin SendUserFeedbackInfo API With Params:",wn),this.bridgeService.executeCommand(Ge.Ts.Common.Diagnostics.SendUserFeedbackInfo,wn)}static{this.\u0275fac=function(oe){return new(oe||ee)(Fe.KVO(G.J6),Fe.KVO(Ke.N))}}static{this.\u0275prov=Fe.jDH({token:ee,factory:ee.\u0275fac,providedIn:"root"})}}return ee})();var Ae=function(ee){return ee.png="png",ee.png8="png8",ee.png24="png24",ee.png32="png32",ee.png48="png48",ee.png64="png64",ee.jpe="jpe",ee.jpeg="jpeg",ee.jpg="jpg",ee.ico="ico",ee.icon="icon",ee.webp="webp",ee}(Ae||{});let jo=(()=>{class ee{constructor(W){this.defaultImageProperties={f:Ae.webp},this.logger=W.getLogger("ImageFormatService")}formatImageServiceUrl(W,oe={}){const pt={...this.defaultImageProperties,...oe},wn=Object.keys(pt);for(const hi of wn){const Ji=pt[hi]||(0,x.isBoolean)(pt[hi])?""+pt[hi]:void 0;Ji&&Ji.length>0&&!(0,x.isNil)(W)&&(W+=";"+hi+"="+pt[hi])}return W}static{this.\u0275fac=function(oe){return new(oe||ee)(Fe.KVO(G.J6))}}static{this.\u0275prov=Fe.jDH({token:ee,factory:ee.\u0275fac,providedIn:"root"})}}return ee})();const fl={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Wa=(ee,H,W)=>{let oe;const pt=fl[ee];return oe="string"==typeof pt?pt:1===H?pt.one:pt.other.replace("{{count}}",H.toString()),W?.addSuffix?W.comparison&&W.comparison>0?"in "+oe:oe+" ago":oe};function Xi(ee){return(H={})=>{const W=H.width?String(H.width):ee.defaultWidth;return ee.formats[W]||ee.formats[ee.defaultWidth]}}const al={date:Xi({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:Xi({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:Xi({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},ga={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},on=(ee,H,W,oe)=>ga[ee];function Dt(ee){return(H,W)=>{let pt;if("formatting"===(W?.context?String(W.context):"standalone")&&ee.formattingValues){const hi=ee.defaultFormattingWidth||ee.defaultWidth,Ji=W?.width?String(W.width):hi;pt=ee.formattingValues[Ji]||ee.formattingValues[hi]}else{const hi=ee.defaultWidth,Ji=W?.width?String(W.width):ee.defaultWidth;pt=ee.values[Ji]||ee.values[hi]}return pt[ee.argumentCallback?ee.argumentCallback(H):H]}}const Bi={ordinalNumber:(ee,H)=>{const W=Number(ee),oe=W%100;if(oe>20||oe<10)switch(oe%10){case 1:return W+"st";case 2:return W+"nd";case 3:return W+"rd"}return W+"th"},era:Dt({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:Dt({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:ee=>ee-1}),month:Dt({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:Dt({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:Dt({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};function Di(ee){return(H,W={})=>{const oe=W.width,wn=H.match(oe&&ee.matchPatterns[oe]||ee.matchPatterns[ee.defaultMatchWidth]);if(!wn)return null;const hi=wn[0],Ji=oe&&ee.parsePatterns[oe]||ee.parsePatterns[ee.defaultParseWidth],$r=Array.isArray(Ji)?function vl(ee,H){for(let W=0;W<ee.length;W++)if(H(ee[W]))return W}(Ji,Na=>Na.test(hi)):function Ea(ee,H){for(const W in ee)if(Object.prototype.hasOwnProperty.call(ee,W)&&H(ee[W]))return W}(Ji,Na=>Na.test(hi));let Ts;return Ts=ee.valueCallback?ee.valueCallback($r):$r,Ts=W.valueCallback?W.valueCallback(Ts):Ts,{value:Ts,rest:H.slice(hi.length)}}}function hs(ee){return(H,W={})=>{const oe=H.match(ee.matchPattern);if(!oe)return null;const pt=oe[0],wn=H.match(ee.parsePattern);if(!wn)return null;let hi=ee.valueCallback?ee.valueCallback(wn[0]):wn[0];return hi=W.valueCallback?W.valueCallback(hi):hi,{value:hi,rest:H.slice(pt.length)}}}const Nr={ordinalNumber:hs({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:ee=>parseInt(ee,10)}),era:Di({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:Di({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:ee=>ee+1}),month:Di({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:Di({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:Di({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},Or={code:"en-US",formatDistance:Wa,formatLong:al,formatRelative:on,localize:Bi,match:Nr,options:{weekStartsOn:0,firstWeekContainsDate:1}};let Zs={};function wr(){return Zs}Math.pow(10,8);const za=6048e5,li=6e4,Ii=36e5,ns=43200;function lr(ee){const H=Object.prototype.toString.call(ee);return ee instanceof Date||"object"==typeof ee&&"[object Date]"===H?new ee.constructor(+ee):"number"==typeof ee||"[object Number]"===H||"string"==typeof ee||"[object String]"===H?new Date(ee):new Date(NaN)}function xa(ee){const H=lr(ee);return H.setHours(0,0,0,0),H}function Vi(ee){const H=lr(ee),W=new Date(Date.UTC(H.getFullYear(),H.getMonth(),H.getDate(),H.getHours(),H.getMinutes(),H.getSeconds(),H.getMilliseconds()));return W.setUTCFullYear(H.getFullYear()),+ee-+W}function rs(ee,H){return ee instanceof Date?new ee.constructor(H):new Date(H)}function Mr(ee,H){const W=wr(),oe=H?.weekStartsOn??H?.locale?.options?.weekStartsOn??W.weekStartsOn??W.locale?.options?.weekStartsOn??0,pt=lr(ee),wn=pt.getDay(),hi=(wn<oe?7:0)+wn-oe;return pt.setDate(pt.getDate()-hi),pt.setHours(0,0,0,0),pt}function _(ee){return Mr(ee,{weekStartsOn:1})}function I(ee){const H=lr(ee),W=H.getFullYear(),oe=rs(ee,0);oe.setFullYear(W+1,0,4),oe.setHours(0,0,0,0);const pt=_(oe),wn=rs(ee,0);wn.setFullYear(W,0,4),wn.setHours(0,0,0,0);const hi=_(wn);return H.getTime()>=pt.getTime()?W+1:H.getTime()>=hi.getTime()?W:W-1}function xe(ee){const H=lr(ee),W=+_(H)-+function pe(ee){const H=I(ee),W=rs(ee,0);return W.setFullYear(H,0,4),W.setHours(0,0,0,0),_(W)}(H);return Math.round(W/za)+1}function ht(ee,H){const W=lr(ee),oe=W.getFullYear(),pt=wr(),wn=H?.firstWeekContainsDate??H?.locale?.options?.firstWeekContainsDate??pt.firstWeekContainsDate??pt.locale?.options?.firstWeekContainsDate??1,hi=rs(ee,0);hi.setFullYear(oe+1,0,wn),hi.setHours(0,0,0,0);const Ji=Mr(hi,H),$r=rs(ee,0);$r.setFullYear(oe,0,wn),$r.setHours(0,0,0,0);const Ts=Mr($r,H);return W.getTime()>=Ji.getTime()?oe+1:W.getTime()>=Ts.getTime()?oe:oe-1}function st(ee,H){const W=lr(ee),oe=+Mr(W,H)-+function Gt(ee,H){const W=wr(),oe=H?.firstWeekContainsDate??H?.locale?.options?.firstWeekContainsDate??W.firstWeekContainsDate??W.locale?.options?.firstWeekContainsDate??1,pt=ht(ee,H),wn=rs(ee,0);return wn.setFullYear(pt,0,oe),wn.setHours(0,0,0,0),Mr(wn,H)}(W,H);return Math.round(oe/za)+1}function Tt(ee,H){return(ee<0?"-":"")+Math.abs(ee).toString().padStart(H,"0")}const Ye={y(ee,H){const W=ee.getFullYear(),oe=W>0?W:1-W;return Tt("yy"===H?oe%100:oe,H.length)},M(ee,H){const W=ee.getMonth();return"M"===H?String(W+1):Tt(W+1,2)},d:(ee,H)=>Tt(ee.getDate(),H.length),a(ee,H){const W=ee.getHours()/12>=1?"pm":"am";switch(H){case"a":case"aa":return W.toUpperCase();case"aaa":return W;case"aaaaa":return W[0];default:return"am"===W?"a.m.":"p.m."}},h:(ee,H)=>Tt(ee.getHours()%12||12,H.length),H:(ee,H)=>Tt(ee.getHours(),H.length),m:(ee,H)=>Tt(ee.getMinutes(),H.length),s:(ee,H)=>Tt(ee.getSeconds(),H.length),S(ee,H){const W=H.length,oe=ee.getMilliseconds();return Tt(Math.trunc(oe*Math.pow(10,W-3)),H.length)}},It={G:function(ee,H,W){const oe=ee.getFullYear()>0?1:0;switch(H){case"G":case"GG":case"GGG":return W.era(oe,{width:"abbreviated"});case"GGGGG":return W.era(oe,{width:"narrow"});default:return W.era(oe,{width:"wide"})}},y:function(ee,H,W){if("yo"===H){const oe=ee.getFullYear();return W.ordinalNumber(oe>0?oe:1-oe,{unit:"year"})}return Ye.y(ee,H)},Y:function(ee,H,W,oe){const pt=ht(ee,oe),wn=pt>0?pt:1-pt;return"YY"===H?Tt(wn%100,2):"Yo"===H?W.ordinalNumber(wn,{unit:"year"}):Tt(wn,H.length)},R:function(ee,H){return Tt(I(ee),H.length)},u:function(ee,H){return Tt(ee.getFullYear(),H.length)},Q:function(ee,H,W){const oe=Math.ceil((ee.getMonth()+1)/3);switch(H){case"Q":return String(oe);case"QQ":return Tt(oe,2);case"Qo":return W.ordinalNumber(oe,{unit:"quarter"});case"QQQ":return W.quarter(oe,{width:"abbreviated",context:"formatting"});case"QQQQQ":return W.quarter(oe,{width:"narrow",context:"formatting"});default:return W.quarter(oe,{width:"wide",context:"formatting"})}},q:function(ee,H,W){const oe=Math.ceil((ee.getMonth()+1)/3);switch(H){case"q":return String(oe);case"qq":return Tt(oe,2);case"qo":return W.ordinalNumber(oe,{unit:"quarter"});case"qqq":return W.quarter(oe,{width:"abbreviated",context:"standalone"});case"qqqqq":return W.quarter(oe,{width:"narrow",context:"standalone"});default:return W.quarter(oe,{width:"wide",context:"standalone"})}},M:function(ee,H,W){const oe=ee.getMonth();switch(H){case"M":case"MM":return Ye.M(ee,H);case"Mo":return W.ordinalNumber(oe+1,{unit:"month"});case"MMM":return W.month(oe,{width:"abbreviated",context:"formatting"});case"MMMMM":return W.month(oe,{width:"narrow",context:"formatting"});default:return W.month(oe,{width:"wide",context:"formatting"})}},L:function(ee,H,W){const oe=ee.getMonth();switch(H){case"L":return String(oe+1);case"LL":return Tt(oe+1,2);case"Lo":return W.ordinalNumber(oe+1,{unit:"month"});case"LLL":return W.month(oe,{width:"abbreviated",context:"standalone"});case"LLLLL":return W.month(oe,{width:"narrow",context:"standalone"});default:return W.month(oe,{width:"wide",context:"standalone"})}},w:function(ee,H,W,oe){const pt=st(ee,oe);return"wo"===H?W.ordinalNumber(pt,{unit:"week"}):Tt(pt,H.length)},I:function(ee,H,W){const oe=xe(ee);return"Io"===H?W.ordinalNumber(oe,{unit:"week"}):Tt(oe,H.length)},d:function(ee,H,W){return"do"===H?W.ordinalNumber(ee.getDate(),{unit:"date"}):Ye.d(ee,H)},D:function(ee,H,W){const oe=function io(ee){const H=lr(ee);return function br(ee,H){const W=xa(ee),oe=xa(H),pt=+W-Vi(W),wn=+oe-Vi(oe);return Math.round((pt-wn)/864e5)}(H,function Ta(ee){const H=lr(ee),W=rs(ee,0);return W.setFullYear(H.getFullYear(),0,1),W.setHours(0,0,0,0),W}(H))+1}(ee);return"Do"===H?W.ordinalNumber(oe,{unit:"dayOfYear"}):Tt(oe,H.length)},E:function(ee,H,W){const oe=ee.getDay();switch(H){case"E":case"EE":case"EEE":return W.day(oe,{width:"abbreviated",context:"formatting"});case"EEEEE":return W.day(oe,{width:"narrow",context:"formatting"});case"EEEEEE":return W.day(oe,{width:"short",context:"formatting"});default:return W.day(oe,{width:"wide",context:"formatting"})}},e:function(ee,H,W,oe){const pt=ee.getDay(),wn=(pt-oe.weekStartsOn+8)%7||7;switch(H){case"e":return String(wn);case"ee":return Tt(wn,2);case"eo":return W.ordinalNumber(wn,{unit:"day"});case"eee":return W.day(pt,{width:"abbreviated",context:"formatting"});case"eeeee":return W.day(pt,{width:"narrow",context:"formatting"});case"eeeeee":return W.day(pt,{width:"short",context:"formatting"});default:return W.day(pt,{width:"wide",context:"formatting"})}},c:function(ee,H,W,oe){const pt=ee.getDay(),wn=(pt-oe.weekStartsOn+8)%7||7;switch(H){case"c":return String(wn);case"cc":return Tt(wn,H.length);case"co":return W.ordinalNumber(wn,{unit:"day"});case"ccc":return W.day(pt,{width:"abbreviated",context:"standalone"});case"ccccc":return W.day(pt,{width:"narrow",context:"standalone"});case"cccccc":return W.day(pt,{width:"short",context:"standalone"});default:return W.day(pt,{width:"wide",context:"standalone"})}},i:function(ee,H,W){const oe=ee.getDay(),pt=0===oe?7:oe;switch(H){case"i":return String(pt);case"ii":return Tt(pt,H.length);case"io":return W.ordinalNumber(pt,{unit:"day"});case"iii":return W.day(oe,{width:"abbreviated",context:"formatting"});case"iiiii":return W.day(oe,{width:"narrow",context:"formatting"});case"iiiiii":return W.day(oe,{width:"short",context:"formatting"});default:return W.day(oe,{width:"wide",context:"formatting"})}},a:function(ee,H,W){const pt=ee.getHours()/12>=1?"pm":"am";switch(H){case"a":case"aa":return W.dayPeriod(pt,{width:"abbreviated",context:"formatting"});case"aaa":return W.dayPeriod(pt,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return W.dayPeriod(pt,{width:"narrow",context:"formatting"});default:return W.dayPeriod(pt,{width:"wide",context:"formatting"})}},b:function(ee,H,W){const oe=ee.getHours();let pt;switch(pt=12===oe?"noon":0===oe?"midnight":oe/12>=1?"pm":"am",H){case"b":case"bb":return W.dayPeriod(pt,{width:"abbreviated",context:"formatting"});case"bbb":return W.dayPeriod(pt,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return W.dayPeriod(pt,{width:"narrow",context:"formatting"});default:return W.dayPeriod(pt,{width:"wide",context:"formatting"})}},B:function(ee,H,W){const oe=ee.getHours();let pt;switch(pt=oe>=17?"evening":oe>=12?"afternoon":oe>=4?"morning":"night",H){case"B":case"BB":case"BBB":return W.dayPeriod(pt,{width:"abbreviated",context:"formatting"});case"BBBBB":return W.dayPeriod(pt,{width:"narrow",context:"formatting"});default:return W.dayPeriod(pt,{width:"wide",context:"formatting"})}},h:function(ee,H,W){if("ho"===H){let oe=ee.getHours()%12;return 0===oe&&(oe=12),W.ordinalNumber(oe,{unit:"hour"})}return Ye.h(ee,H)},H:function(ee,H,W){return"Ho"===H?W.ordinalNumber(ee.getHours(),{unit:"hour"}):Ye.H(ee,H)},K:function(ee,H,W){const oe=ee.getHours()%12;return"Ko"===H?W.ordinalNumber(oe,{unit:"hour"}):Tt(oe,H.length)},k:function(ee,H,W){let oe=ee.getHours();return 0===oe&&(oe=24),"ko"===H?W.ordinalNumber(oe,{unit:"hour"}):Tt(oe,H.length)},m:function(ee,H,W){return"mo"===H?W.ordinalNumber(ee.getMinutes(),{unit:"minute"}):Ye.m(ee,H)},s:function(ee,H,W){return"so"===H?W.ordinalNumber(ee.getSeconds(),{unit:"second"}):Ye.s(ee,H)},S:function(ee,H){return Ye.S(ee,H)},X:function(ee,H,W){const oe=ee.getTimezoneOffset();if(0===oe)return"Z";switch(H){case"X":return xn(oe);case"XXXX":case"XX":return In(oe);default:return In(oe,":")}},x:function(ee,H,W){const oe=ee.getTimezoneOffset();switch(H){case"x":return xn(oe);case"xxxx":case"xx":return In(oe);default:return In(oe,":")}},O:function(ee,H,W){const oe=ee.getTimezoneOffset();switch(H){case"O":case"OO":case"OOO":return"GMT"+un(oe,":");default:return"GMT"+In(oe,":")}},z:function(ee,H,W){const oe=ee.getTimezoneOffset();switch(H){case"z":case"zz":case"zzz":return"GMT"+un(oe,":");default:return"GMT"+In(oe,":")}},t:function(ee,H,W){return Tt(Math.trunc(ee.getTime()/1e3),H.length)},T:function(ee,H,W){return Tt(ee.getTime(),H.length)}};function un(ee,H=""){const W=ee>0?"-":"+",oe=Math.abs(ee),pt=Math.trunc(oe/60),wn=oe%60;return 0===wn?W+String(pt):W+String(pt)+H+Tt(wn,2)}function xn(ee,H){return ee%60==0?(ee>0?"-":"+")+Tt(Math.abs(ee)/60,2):In(ee,H)}function In(ee,H=""){const W=ee>0?"-":"+",oe=Math.abs(ee);return W+Tt(Math.trunc(oe/60),2)+H+Tt(oe%60,2)}const Nn=(ee,H)=>{switch(ee){case"P":return H.date({width:"short"});case"PP":return H.date({width:"medium"});case"PPP":return H.date({width:"long"});default:return H.date({width:"full"})}},ri=(ee,H)=>{switch(ee){case"p":return H.time({width:"short"});case"pp":return H.time({width:"medium"});case"ppp":return H.time({width:"long"});default:return H.time({width:"full"})}},ne={p:ri,P:(ee,H)=>{const W=ee.match(/(P+)(p+)?/)||[],oe=W[1],pt=W[2];if(!pt)return Nn(ee,H);let wn;switch(oe){case"P":wn=H.dateTime({width:"short"});break;case"PP":wn=H.dateTime({width:"medium"});break;case"PPP":wn=H.dateTime({width:"long"});break;default:wn=H.dateTime({width:"full"})}return wn.replace("{{date}}",Nn(oe,H)).replace("{{time}}",ri(pt,H))}},Ie=/^D+$/,_t=/^Y+$/,Nt=["D","DD","YY","YYYY"];function en(ee){return Ie.test(ee)}function vn(ee){return _t.test(ee)}function fn(ee,H,W){const oe=function Cn(ee,H,W){const oe="Y"===ee[0]?"years":"days of the month";return`Use \`${ee.toLowerCase()}\` instead of \`${ee}\` (in \`${H}\`) for formatting ${oe} to the input \`${W}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}(ee,H,W);if(console.warn(oe),Nt.includes(ee))throw new RangeError(oe)}function gi(ee){if(!function Tn(ee){return ee instanceof Date||"object"==typeof ee&&"[object Date]"===Object.prototype.toString.call(ee)}(ee)&&"number"!=typeof ee)return!1;const H=lr(ee);return!isNaN(Number(H))}const ki=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,rr=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Ki=/^'([^]*?)'?$/,pr=/''/g,Ti=/[a-zA-Z]/;function Gr(ee){const H=ee.match(Ki);return H?H[1].replace(pr,"'"):ee}class Qr{subPriority=0;validate(H,W){return!0}}class Rs extends Qr{constructor(H,W,oe,pt,wn){super(),this.value=H,this.validateValue=W,this.setValue=oe,this.priority=pt,wn&&(this.subPriority=wn)}validate(H,W){return this.validateValue(H,this.value,W)}set(H,W,oe){return this.setValue(H,W,this.value,oe)}}class Hr extends Qr{priority=10;subPriority=-1;set(H,W){return W.timestampIsSet?H:rs(H,function cr(ee,H){const W=H instanceof Date?rs(H,0):new H(0);return W.setFullYear(ee.getFullYear(),ee.getMonth(),ee.getDate()),W.setHours(ee.getHours(),ee.getMinutes(),ee.getSeconds(),ee.getMilliseconds()),W}(H,Date))}}class as{run(H,W,oe,pt){const wn=this.parse(H,W,oe,pt);return wn?{setter:new Rs(wn.value,this.validate,this.set,this.priority,this.subPriority),rest:wn.rest}:null}validate(H,W,oe){return!0}}const _i_month=/^(1[0-2]|0?\d)/,_i_date=/^(3[0-1]|[0-2]?\d)/,_i_dayOfYear=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,_i_week=/^(5[0-3]|[0-4]?\d)/,_i_hour23h=/^(2[0-3]|[0-1]?\d)/,_i_hour24h=/^(2[0-4]|[0-1]?\d)/,_i_hour11h=/^(1[0-1]|0?\d)/,_i_hour12h=/^(1[0-2]|0?\d)/,_i_minute=/^[0-5]?\d/,_i_second=/^[0-5]?\d/,_i_singleDigit=/^\d/,_i_twoDigits=/^\d{1,2}/,_i_threeDigits=/^\d{1,3}/,_i_fourDigits=/^\d{1,4}/,_i_anyDigitsSigned=/^-?\d+/,_i_singleDigitSigned=/^-?\d/,_i_twoDigitsSigned=/^-?\d{1,2}/,_i_threeDigitsSigned=/^-?\d{1,3}/,_i_fourDigitsSigned=/^-?\d{1,4}/,Er_basicOptionalMinutes=/^([+-])(\d{2})(\d{2})?|Z/,Er_basic=/^([+-])(\d{2})(\d{2})|Z/,Er_basicOptionalSeconds=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,Er_extended=/^([+-])(\d{2}):(\d{2})|Z/,Er_extendedOptionalSeconds=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function Ui(ee,H){return ee&&{value:H(ee.value),rest:ee.rest}}function Te(ee,H){const W=H.match(ee);return W?{value:parseInt(W[0],10),rest:H.slice(W[0].length)}:null}function ft(ee,H){const W=H.match(ee);if(!W)return null;if("Z"===W[0])return{value:0,rest:H.slice(1)};const oe="+"===W[1]?1:-1,pt=W[2]?parseInt(W[2],10):0,wn=W[3]?parseInt(W[3],10):0,hi=W[5]?parseInt(W[5],10):0;return{value:oe*(pt*Ii+wn*li+1e3*hi),rest:H.slice(W[0].length)}}function Be(ee){return Te(_i_anyDigitsSigned,ee)}function at(ee,H){switch(ee){case 1:return Te(_i_singleDigit,H);case 2:return Te(_i_twoDigits,H);case 3:return Te(_i_threeDigits,H);case 4:return Te(_i_fourDigits,H);default:return Te(new RegExp("^\\d{1,"+ee+"}"),H)}}function jt(ee,H){switch(ee){case 1:return Te(_i_singleDigitSigned,H);case 2:return Te(_i_twoDigitsSigned,H);case 3:return Te(_i_threeDigitsSigned,H);case 4:return Te(_i_fourDigitsSigned,H);default:return Te(new RegExp("^-?\\d{1,"+ee+"}"),H)}}function pn(ee){switch(ee){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function Xn(ee,H){const W=H>0,oe=W?H:1-H;let pt;if(oe<=50)pt=ee||100;else{const wn=oe+50;pt=ee+100*Math.trunc(wn/100)-(ee>=wn%100?100:0)}return W?pt:1-pt}function mi(ee){return ee%400==0||ee%4==0&&ee%100!=0}const Xo=[31,28,31,30,31,30,31,31,30,31,30,31],Ps=[31,29,31,30,31,30,31,31,30,31,30,31];function ma(ee,H){const W=lr(ee);return isNaN(H)?rs(ee,NaN):(H&&W.setDate(W.getDate()+H),W)}function Qc(ee,H,W){const oe=wr(),pt=W?.weekStartsOn??W?.locale?.options?.weekStartsOn??oe.weekStartsOn??oe.locale?.options?.weekStartsOn??0,wn=lr(ee),hi=wn.getDay(),Ts=7-pt;return ma(wn,H<0||H>6?H-(hi+Ts)%7:((H%7+7)%7+Ts)%7-(hi+Ts)%7)}const Ct={G:new class Wo extends as{priority=140;parse(H,W,oe){switch(W){case"G":case"GG":case"GGG":return oe.era(H,{width:"abbreviated"})||oe.era(H,{width:"narrow"});case"GGGGG":return oe.era(H,{width:"narrow"});default:return oe.era(H,{width:"wide"})||oe.era(H,{width:"abbreviated"})||oe.era(H,{width:"narrow"})}}set(H,W,oe){return W.era=oe,H.setFullYear(oe,0,1),H.setHours(0,0,0,0),H}incompatibleTokens=["R","u","t","T"]},y:new class Ci extends as{priority=130;incompatibleTokens=["Y","R","u","w","I","i","e","c","t","T"];parse(H,W,oe){const pt=wn=>({year:wn,isTwoDigitYear:"yy"===W});switch(W){case"y":return Ui(at(4,H),pt);case"yo":return Ui(oe.ordinalNumber(H,{unit:"year"}),pt);default:return Ui(at(W.length,H),pt)}}validate(H,W){return W.isTwoDigitYear||W.year>0}set(H,W,oe){const pt=H.getFullYear();if(oe.isTwoDigitYear){const hi=Xn(oe.year,pt);return H.setFullYear(hi,0,1),H.setHours(0,0,0,0),H}return H.setFullYear("era"in W&&1!==W.era?1-oe.year:oe.year,0,1),H.setHours(0,0,0,0),H}},Y:new class _r extends as{priority=130;parse(H,W,oe){const pt=wn=>({year:wn,isTwoDigitYear:"YY"===W});switch(W){case"Y":return Ui(at(4,H),pt);case"Yo":return Ui(oe.ordinalNumber(H,{unit:"year"}),pt);default:return Ui(at(W.length,H),pt)}}validate(H,W){return W.isTwoDigitYear||W.year>0}set(H,W,oe,pt){const wn=ht(H,pt);if(oe.isTwoDigitYear){const Ji=Xn(oe.year,wn);return H.setFullYear(Ji,0,pt.firstWeekContainsDate),H.setHours(0,0,0,0),Mr(H,pt)}return H.setFullYear("era"in W&&1!==W.era?1-oe.year:oe.year,0,pt.firstWeekContainsDate),H.setHours(0,0,0,0),Mr(H,pt)}incompatibleTokens=["y","R","u","Q","q","M","L","I","d","D","i","t","T"]},R:new class ut extends as{priority=130;parse(H,W){return jt("R"===W?4:W.length,H)}set(H,W,oe){const pt=rs(H,0);return pt.setFullYear(oe,0,4),pt.setHours(0,0,0,0),_(pt)}incompatibleTokens=["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]},u:new class Pt extends as{priority=130;parse(H,W){return jt("u"===W?4:W.length,H)}set(H,W,oe){return H.setFullYear(oe,0,1),H.setHours(0,0,0,0),H}incompatibleTokens=["G","y","Y","R","w","I","i","e","c","t","T"]},Q:new class Re extends as{priority=120;parse(H,W,oe){switch(W){case"Q":case"QQ":return at(W.length,H);case"Qo":return oe.ordinalNumber(H,{unit:"quarter"});case"QQQ":return oe.quarter(H,{width:"abbreviated",context:"formatting"})||oe.quarter(H,{width:"narrow",context:"formatting"});case"QQQQQ":return oe.quarter(H,{width:"narrow",context:"formatting"});default:return oe.quarter(H,{width:"wide",context:"formatting"})||oe.quarter(H,{width:"abbreviated",context:"formatting"})||oe.quarter(H,{width:"narrow",context:"formatting"})}}validate(H,W){return W>=1&&W<=4}set(H,W,oe){return H.setMonth(3*(oe-1),1),H.setHours(0,0,0,0),H}incompatibleTokens=["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]},q:new class rn extends as{priority=120;parse(H,W,oe){switch(W){case"q":case"qq":return at(W.length,H);case"qo":return oe.ordinalNumber(H,{unit:"quarter"});case"qqq":return oe.quarter(H,{width:"abbreviated",context:"standalone"})||oe.quarter(H,{width:"narrow",context:"standalone"});case"qqqqq":return oe.quarter(H,{width:"narrow",context:"standalone"});default:return oe.quarter(H,{width:"wide",context:"standalone"})||oe.quarter(H,{width:"abbreviated",context:"standalone"})||oe.quarter(H,{width:"narrow",context:"standalone"})}}validate(H,W){return W>=1&&W<=4}set(H,W,oe){return H.setMonth(3*(oe-1),1),H.setHours(0,0,0,0),H}incompatibleTokens=["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]},M:new class an extends as{incompatibleTokens=["Y","R","q","Q","L","w","I","D","i","e","c","t","T"];priority=110;parse(H,W,oe){const pt=wn=>wn-1;switch(W){case"M":return Ui(Te(_i_month,H),pt);case"MM":return Ui(at(2,H),pt);case"Mo":return Ui(oe.ordinalNumber(H,{unit:"month"}),pt);case"MMM":return oe.month(H,{width:"abbreviated",context:"formatting"})||oe.month(H,{width:"narrow",context:"formatting"});case"MMMMM":return oe.month(H,{width:"narrow",context:"formatting"});default:return oe.month(H,{width:"wide",context:"formatting"})||oe.month(H,{width:"abbreviated",context:"formatting"})||oe.month(H,{width:"narrow",context:"formatting"})}}validate(H,W){return W>=0&&W<=11}set(H,W,oe){return H.setMonth(oe,1),H.setHours(0,0,0,0),H}},L:new class Hn extends as{priority=110;parse(H,W,oe){const pt=wn=>wn-1;switch(W){case"L":return Ui(Te(_i_month,H),pt);case"LL":return Ui(at(2,H),pt);case"Lo":return Ui(oe.ordinalNumber(H,{unit:"month"}),pt);case"LLL":return oe.month(H,{width:"abbreviated",context:"standalone"})||oe.month(H,{width:"narrow",context:"standalone"});case"LLLLL":return oe.month(H,{width:"narrow",context:"standalone"});default:return oe.month(H,{width:"wide",context:"standalone"})||oe.month(H,{width:"abbreviated",context:"standalone"})||oe.month(H,{width:"narrow",context:"standalone"})}}validate(H,W){return W>=0&&W<=11}set(H,W,oe){return H.setMonth(oe,1),H.setHours(0,0,0,0),H}incompatibleTokens=["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]},w:new class ts extends as{priority=100;parse(H,W,oe){switch(W){case"w":return Te(_i_week,H);case"wo":return oe.ordinalNumber(H,{unit:"week"});default:return at(W.length,H)}}validate(H,W){return W>=1&&W<=53}set(H,W,oe,pt){return Mr(function xi(ee,H,W){const oe=lr(ee),pt=st(oe,W)-H;return oe.setDate(oe.getDate()-7*pt),oe}(H,oe,pt),pt)}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","i","t","T"]},I:new class os extends as{priority=100;parse(H,W,oe){switch(W){case"I":return Te(_i_week,H);case"Io":return oe.ordinalNumber(H,{unit:"week"});default:return at(W.length,H)}}validate(H,W){return W>=1&&W<=53}set(H,W,oe){return _(function gr(ee,H){const W=lr(ee),oe=xe(W)-H;return W.setDate(W.getDate()-7*oe),W}(H,oe))}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]},d:new class sl extends as{priority=90;subPriority=1;parse(H,W,oe){switch(W){case"d":return Te(_i_date,H);case"do":return oe.ordinalNumber(H,{unit:"date"});default:return at(W.length,H)}}validate(H,W){const pt=mi(H.getFullYear()),wn=H.getMonth();return pt?W>=1&&W<=Ps[wn]:W>=1&&W<=Xo[wn]}set(H,W,oe){return H.setDate(oe),H.setHours(0,0,0,0),H}incompatibleTokens=["Y","R","q","Q","w","I","D","i","e","c","t","T"]},D:new class Aa extends as{priority=90;subpriority=1;parse(H,W,oe){switch(W){case"D":case"DD":return Te(_i_dayOfYear,H);case"Do":return oe.ordinalNumber(H,{unit:"date"});default:return at(W.length,H)}}validate(H,W){return mi(H.getFullYear())?W>=1&&W<=366:W>=1&&W<=365}set(H,W,oe){return H.setMonth(0,oe),H.setHours(0,0,0,0),H}incompatibleTokens=["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]},E:new class Ic extends as{priority=90;parse(H,W,oe){switch(W){case"E":case"EE":case"EEE":return oe.day(H,{width:"abbreviated",context:"formatting"})||oe.day(H,{width:"short",context:"formatting"})||oe.day(H,{width:"narrow",context:"formatting"});case"EEEEE":return oe.day(H,{width:"narrow",context:"formatting"});case"EEEEEE":return oe.day(H,{width:"short",context:"formatting"})||oe.day(H,{width:"narrow",context:"formatting"});default:return oe.day(H,{width:"wide",context:"formatting"})||oe.day(H,{width:"abbreviated",context:"formatting"})||oe.day(H,{width:"short",context:"formatting"})||oe.day(H,{width:"narrow",context:"formatting"})}}validate(H,W){return W>=0&&W<=6}set(H,W,oe,pt){return(H=Qc(H,oe,pt)).setHours(0,0,0,0),H}incompatibleTokens=["D","i","e","c","t","T"]},e:new class dl extends as{priority=90;parse(H,W,oe,pt){const wn=hi=>{const Ji=7*Math.floor((hi-1)/7);return(hi+pt.weekStartsOn+6)%7+Ji};switch(W){case"e":case"ee":return Ui(at(W.length,H),wn);case"eo":return Ui(oe.ordinalNumber(H,{unit:"day"}),wn);case"eee":return oe.day(H,{width:"abbreviated",context:"formatting"})||oe.day(H,{width:"short",context:"formatting"})||oe.day(H,{width:"narrow",context:"formatting"});case"eeeee":return oe.day(H,{width:"narrow",context:"formatting"});case"eeeeee":return oe.day(H,{width:"short",context:"formatting"})||oe.day(H,{width:"narrow",context:"formatting"});default:return oe.day(H,{width:"wide",context:"formatting"})||oe.day(H,{width:"abbreviated",context:"formatting"})||oe.day(H,{width:"short",context:"formatting"})||oe.day(H,{width:"narrow",context:"formatting"})}}validate(H,W){return W>=0&&W<=6}set(H,W,oe,pt){return(H=Qc(H,oe,pt)).setHours(0,0,0,0),H}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]},c:new class kl extends as{priority=90;parse(H,W,oe,pt){const wn=hi=>{const Ji=7*Math.floor((hi-1)/7);return(hi+pt.weekStartsOn+6)%7+Ji};switch(W){case"c":case"cc":return Ui(at(W.length,H),wn);case"co":return Ui(oe.ordinalNumber(H,{unit:"day"}),wn);case"ccc":return oe.day(H,{width:"abbreviated",context:"standalone"})||oe.day(H,{width:"short",context:"standalone"})||oe.day(H,{width:"narrow",context:"standalone"});case"ccccc":return oe.day(H,{width:"narrow",context:"standalone"});case"cccccc":return oe.day(H,{width:"short",context:"standalone"})||oe.day(H,{width:"narrow",context:"standalone"});default:return oe.day(H,{width:"wide",context:"standalone"})||oe.day(H,{width:"abbreviated",context:"standalone"})||oe.day(H,{width:"short",context:"standalone"})||oe.day(H,{width:"narrow",context:"standalone"})}}validate(H,W){return W>=0&&W<=6}set(H,W,oe,pt){return(H=Qc(H,oe,pt)).setHours(0,0,0,0),H}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]},i:new class Ys extends as{priority=90;parse(H,W,oe){const pt=wn=>0===wn?7:wn;switch(W){case"i":case"ii":return at(W.length,H);case"io":return oe.ordinalNumber(H,{unit:"day"});case"iii":return Ui(oe.day(H,{width:"abbreviated",context:"formatting"})||oe.day(H,{width:"short",context:"formatting"})||oe.day(H,{width:"narrow",context:"formatting"}),pt);case"iiiii":return Ui(oe.day(H,{width:"narrow",context:"formatting"}),pt);case"iiiiii":return Ui(oe.day(H,{width:"short",context:"formatting"})||oe.day(H,{width:"narrow",context:"formatting"}),pt);default:return Ui(oe.day(H,{width:"wide",context:"formatting"})||oe.day(H,{width:"abbreviated",context:"formatting"})||oe.day(H,{width:"short",context:"formatting"})||oe.day(H,{width:"narrow",context:"formatting"}),pt)}}validate(H,W){return W>=1&&W<=7}set(H,W,oe){return(H=function wc(ee,H){const W=lr(ee),oe=function zl(ee){let W=lr(ee).getDay();return 0===W&&(W=7),W}(W);return ma(W,H-oe)}(H,oe)).setHours(0,0,0,0),H}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]},a:new class ec extends as{priority=80;parse(H,W,oe){switch(W){case"a":case"aa":case"aaa":return oe.dayPeriod(H,{width:"abbreviated",context:"formatting"})||oe.dayPeriod(H,{width:"narrow",context:"formatting"});case"aaaaa":return oe.dayPeriod(H,{width:"narrow",context:"formatting"});default:return oe.dayPeriod(H,{width:"wide",context:"formatting"})||oe.dayPeriod(H,{width:"abbreviated",context:"formatting"})||oe.dayPeriod(H,{width:"narrow",context:"formatting"})}}set(H,W,oe){return H.setHours(pn(oe),0,0,0),H}incompatibleTokens=["b","B","H","k","t","T"]},b:new class Rc extends as{priority=80;parse(H,W,oe){switch(W){case"b":case"bb":case"bbb":return oe.dayPeriod(H,{width:"abbreviated",context:"formatting"})||oe.dayPeriod(H,{width:"narrow",context:"formatting"});case"bbbbb":return oe.dayPeriod(H,{width:"narrow",context:"formatting"});default:return oe.dayPeriod(H,{width:"wide",context:"formatting"})||oe.dayPeriod(H,{width:"abbreviated",context:"formatting"})||oe.dayPeriod(H,{width:"narrow",context:"formatting"})}}set(H,W,oe){return H.setHours(pn(oe),0,0,0),H}incompatibleTokens=["a","B","H","k","t","T"]},B:new class Zr extends as{priority=80;parse(H,W,oe){switch(W){case"B":case"BB":case"BBB":return oe.dayPeriod(H,{width:"abbreviated",context:"formatting"})||oe.dayPeriod(H,{width:"narrow",context:"formatting"});case"BBBBB":return oe.dayPeriod(H,{width:"narrow",context:"formatting"});default:return oe.dayPeriod(H,{width:"wide",context:"formatting"})||oe.dayPeriod(H,{width:"abbreviated",context:"formatting"})||oe.dayPeriod(H,{width:"narrow",context:"formatting"})}}set(H,W,oe){return H.setHours(pn(oe),0,0,0),H}incompatibleTokens=["a","b","t","T"]},h:new class od extends as{priority=70;parse(H,W,oe){switch(W){case"h":return Te(_i_hour12h,H);case"ho":return oe.ordinalNumber(H,{unit:"hour"});default:return at(W.length,H)}}validate(H,W){return W>=1&&W<=12}set(H,W,oe){const pt=H.getHours()>=12;return H.setHours(pt&&oe<12?oe+12:pt||12!==oe?oe:0,0,0,0),H}incompatibleTokens=["H","K","k","t","T"]},H:new class y extends as{priority=70;parse(H,W,oe){switch(W){case"H":return Te(_i_hour23h,H);case"Ho":return oe.ordinalNumber(H,{unit:"hour"});default:return at(W.length,H)}}validate(H,W){return W>=0&&W<=23}set(H,W,oe){return H.setHours(oe,0,0,0),H}incompatibleTokens=["a","b","h","K","k","t","T"]},K:new class c extends as{priority=70;parse(H,W,oe){switch(W){case"K":return Te(_i_hour11h,H);case"Ko":return oe.ordinalNumber(H,{unit:"hour"});default:return at(W.length,H)}}validate(H,W){return W>=0&&W<=11}set(H,W,oe){return H.getHours()>=12&&oe<12?H.setHours(oe+12,0,0,0):H.setHours(oe,0,0,0),H}incompatibleTokens=["h","H","k","t","T"]},k:new class p extends as{priority=70;parse(H,W,oe){switch(W){case"k":return Te(_i_hour24h,H);case"ko":return oe.ordinalNumber(H,{unit:"hour"});default:return at(W.length,H)}}validate(H,W){return W>=1&&W<=24}set(H,W,oe){return H.setHours(oe<=24?oe%24:oe,0,0,0),H}incompatibleTokens=["a","b","h","H","K","t","T"]},m:new class O extends as{priority=60;parse(H,W,oe){switch(W){case"m":return Te(_i_minute,H);case"mo":return oe.ordinalNumber(H,{unit:"minute"});default:return at(W.length,H)}}validate(H,W){return W>=0&&W<=59}set(H,W,oe){return H.setMinutes(oe,0,0),H}incompatibleTokens=["t","T"]},s:new class F extends as{priority=50;parse(H,W,oe){switch(W){case"s":return Te(_i_second,H);case"so":return oe.ordinalNumber(H,{unit:"second"});default:return at(W.length,H)}}validate(H,W){return W>=0&&W<=59}set(H,W,oe){return H.setSeconds(oe,0),H}incompatibleTokens=["t","T"]},S:new class Z extends as{priority=30;parse(H,W){return Ui(at(W.length,H),pt=>Math.trunc(pt*Math.pow(10,3-W.length)))}set(H,W,oe){return H.setMilliseconds(oe),H}incompatibleTokens=["t","T"]},X:new class re extends as{priority=10;parse(H,W){switch(W){case"X":return ft(Er_basicOptionalMinutes,H);case"XX":return ft(Er_basic,H);case"XXXX":return ft(Er_basicOptionalSeconds,H);case"XXXXX":return ft(Er_extendedOptionalSeconds,H);default:return ft(Er_extended,H)}}set(H,W,oe){return W.timestampIsSet?H:rs(H,H.getTime()-Vi(H)-oe)}incompatibleTokens=["t","T","x"]},x:new class Oe extends as{priority=10;parse(H,W){switch(W){case"x":return ft(Er_basicOptionalMinutes,H);case"xx":return ft(Er_basic,H);case"xxxx":return ft(Er_basicOptionalSeconds,H);case"xxxxx":return ft(Er_extendedOptionalSeconds,H);default:return ft(Er_extended,H)}}set(H,W,oe){return W.timestampIsSet?H:rs(H,H.getTime()-Vi(H)-oe)}incompatibleTokens=["t","T","X"]},t:new class je extends as{priority=40;parse(H){return Be(H)}set(H,W,oe){return[rs(H,1e3*oe),{timestampIsSet:!0}]}incompatibleTokens="*"},T:new class ot extends as{priority=20;parse(H){return Be(H)}set(H,W,oe){return[rs(H,oe),{timestampIsSet:!0}]}incompatibleTokens="*"}},Rt=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Et=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,qt=/^'([^]*?)'?$/,gn=/''/g,tn=/\S/,Pn=/[a-zA-Z]/;function ei(ee){return ee.match(qt)[1].replace(gn,"'")}function bi(ee,H){const W=lr(ee),oe=lr(H),pt=W.getTime()-oe.getTime();return pt<0?-1:pt>0?1:pt}function cs(ee){const H=lr(ee);return H.setHours(23,59,59,999),H}function Vo(ee,H){const W=lr(ee),oe=lr(H),pt=bi(W,oe),wn=Math.abs(function er(ee,H){const W=lr(ee),oe=lr(H);return 12*(W.getFullYear()-oe.getFullYear())+(W.getMonth()-oe.getMonth())}(W,oe));let hi;if(wn<1)hi=0;else{1===W.getMonth()&&W.getDate()>27&&W.setDate(30),W.setMonth(W.getMonth()-pt*wn);let Ji=bi(W,oe)===-pt;(function dr(ee){const H=lr(ee);return+cs(H)==+function Fr(ee){const H=lr(ee),W=H.getMonth();return H.setFullYear(H.getFullYear(),W+1,0),H.setHours(23,59,59,999),H}(H)})(lr(ee))&&1===wn&&1===bi(ee,oe)&&(Ji=!1),hi=pt*(wn-Number(Ji))}return 0===hi?0:hi}function Ss(ee){return H=>{const oe=(ee?Math[ee]:Math.trunc)(H);return 0===oe?0:oe}}function Js(ee,H){return+lr(ee)-+lr(H)}function va(ee,H,W){const oe=Js(ee,H)/1e3;return Ss(W?.roundingMethod)(oe)}function Gs(ee,H){return function Ul(ee,H,W){const oe=wr(),pt=W?.locale??oe.locale??Or,hi=bi(ee,H);if(isNaN(hi))throw new RangeError("Invalid time value");const Ji=Object.assign({},W,{addSuffix:W?.addSuffix,comparison:hi});let $r,Ts;hi>0?($r=lr(H),Ts=lr(ee)):($r=lr(ee),Ts=lr(H));const Cs=va(Ts,$r),Na=(Vi(Ts)-Vi($r))/1e3,Cl=Math.round((Cs-Na)/60);let Yc;if(Cl<2)return W?.includeSeconds?Cs<5?pt.formatDistance("lessThanXSeconds",5,Ji):Cs<10?pt.formatDistance("lessThanXSeconds",10,Ji):Cs<20?pt.formatDistance("lessThanXSeconds",20,Ji):Cs<40?pt.formatDistance("halfAMinute",0,Ji):pt.formatDistance(Cs<60?"lessThanXMinutes":"xMinutes",1,Ji):0===Cl?pt.formatDistance("lessThanXMinutes",1,Ji):pt.formatDistance("xMinutes",Cl,Ji);if(Cl<45)return pt.formatDistance("xMinutes",Cl,Ji);if(Cl<90)return pt.formatDistance("aboutXHours",1,Ji);if(Cl<1440){const _d=Math.round(Cl/60);return pt.formatDistance("aboutXHours",_d,Ji)}if(Cl<2520)return pt.formatDistance("xDays",1,Ji);if(Cl<ns){const _d=Math.round(Cl/1440);return pt.formatDistance("xDays",_d,Ji)}if(Cl<2*ns)return Yc=Math.round(Cl/ns),pt.formatDistance("aboutXMonths",Yc,Ji);if(Yc=Vo(Ts,$r),Yc<12){const _d=Math.round(Cl/ns);return pt.formatDistance("xMonths",_d,Ji)}{const _d=Yc%12,ea=Math.trunc(Yc/12);return _d<3?pt.formatDistance("aboutXYears",ea,Ji):_d<9?pt.formatDistance("overXYears",ea,Ji):pt.formatDistance("almostXYears",ea+1,Ji)}}(ee,function si(ee){return rs(ee,Date.now())}(ee),H)}const Za={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Ja=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,bl=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,gl=/^([+-])(\d{2})(?::?(\d{2}))?$/;function Bl(ee){return ee?parseInt(ee):1}function tc(ee){return ee&&parseFloat(ee.replace(",","."))||0}const Zc=[31,null,31,30,31,30,31,31,30,31,30,31];function Lc(ee){return ee%400==0||ee%4==0&&ee%100!=0}function Bc(ee,H){return rs(ee,+lr(ee)+H)}function hl(ee,H){return Bc(ee,H*Ii)}function qa(ee,H){return Bc(ee,H*li)}function Jc(ee,H){return Bc(ee,1e3*H)}function Ia(ee,H){return ma(ee,7*H)}function xd(ee,H){const W=lr(ee);if(isNaN(H))return rs(ee,NaN);if(!H)return W;const oe=W.getDate(),pt=rs(ee,W.getTime());return pt.setMonth(W.getMonth()+H+1,0),oe>=pt.getDate()?pt:(W.setFullYear(pt.getFullYear(),pt.getMonth(),oe),W)}function yd(ee,H){return xd(ee,12*H)}function Rl(ee,H,W){return+Mr(ee,W)==+Mr(H,W)}function pc(ee,H){const W=lr(ee),oe=lr(H);return W.getFullYear()===oe.getFullYear()&&W.getMonth()===oe.getMonth()}function Jd(ee,H){const W=lr(ee),oe=lr(H);return W.getFullYear()===oe.getFullYear()}function xs(ee,H){const W=lr(ee),oe=lr(H);return W.getTime()>oe.getTime()}function Vc(ee,H){return+lr(ee)<+lr(H)}var yo=function(ee){return ee.HOURS="hours",ee.MINUTES="minutes",ee.SECONDS="seconds",ee.MILLISECONDS="milliseconds",ee.DAYS="days",ee.WEEKS="weeks",ee.MONTHS="months",ee.YEARS="years",ee}(yo||{}),mc=function(ee){return ee.DAY="day",ee.WEEK="week",ee.MONTH="month",ee.YEAR="year",ee}(mc||{});const qc=3600,hu={lessThanXSeconds:{one:"\u043f\u043e-\u043c\u0430\u043b\u043a\u043e \u043e\u0442 \u0441\u0435\u043a\u0443\u043d\u0434\u0430",other:"\u043f\u043e-\u043c\u0430\u043b\u043a\u043e \u043e\u0442 {{count}} \u0441\u0435\u043a\u0443\u043d\u0434\u0438"},xSeconds:{one:"1 \u0441\u0435\u043a\u0443\u043d\u0434\u0430",other:"{{count}} \u0441\u0435\u043a\u0443\u043d\u0434\u0438"},halfAMinute:"\u043f\u043e\u043b\u043e\u0432\u0438\u043d \u043c\u0438\u043d\u0443\u0442\u0430",lessThanXMinutes:{one:"\u043f\u043e-\u043c\u0430\u043b\u043a\u043e \u043e\u0442 \u043c\u0438\u043d\u0443\u0442\u0430",other:"\u043f\u043e-\u043c\u0430\u043b\u043a\u043e \u043e\u0442 {{count}} \u043c\u0438\u043d\u0443\u0442\u0438"},xMinutes:{one:"1 \u043c\u0438\u043d\u0443\u0442\u0430",other:"{{count}} \u043c\u0438\u043d\u0443\u0442\u0438"},aboutXHours:{one:"\u043e\u043a\u043e\u043b\u043e \u0447\u0430\u0441",other:"\u043e\u043a\u043e\u043b\u043e {{count}} \u0447\u0430\u0441\u0430"},xHours:{one:"1 \u0447\u0430\u0441",other:"{{count}} \u0447\u0430\u0441\u0430"},xDays:{one:"1 \u0434\u0435\u043d",other:"{{count}} \u0434\u043d\u0438"},aboutXWeeks:{one:"\u043e\u043a\u043e\u043b\u043e \u0441\u0435\u0434\u043c\u0438\u0446\u0430",other:"\u043e\u043a\u043e\u043b\u043e {{count}} \u0441\u0435\u0434\u043c\u0438\u0446\u0438"},xWeeks:{one:"1 \u0441\u0435\u0434\u043c\u0438\u0446\u0430",other:"{{count}} \u0441\u0435\u0434\u043c\u0438\u0446\u0438"},aboutXMonths:{one:"\u043e\u043a\u043e\u043b\u043e \u043c\u0435\u0441\u0435\u0446",other:"\u043e\u043a\u043e\u043b\u043e {{count}} \u043c\u0435\u0441\u0435\u0446\u0430"},xMonths:{one:"1 \u043c\u0435\u0441\u0435\u0446",other:"{{count}} \u043c\u0435\u0441\u0435\u0446\u0430"},aboutXYears:{one:"\u043e\u043a\u043e\u043b\u043e \u0433\u043e\u0434\u0438\u043d\u0430",other:"\u043e\u043a\u043e\u043b\u043e {{count}} \u0433\u043e\u0434\u0438\u043d\u0438"},xYears:{one:"1 \u0433\u043e\u0434\u0438\u043d\u0430",other:"{{count}} \u0433\u043e\u0434\u0438\u043d\u0438"},overXYears:{one:"\u043d\u0430\u0434 \u0433\u043e\u0434\u0438\u043d\u0430",other:"\u043d\u0430\u0434 {{count}} \u0433\u043e\u0434\u0438\u043d\u0438"},almostXYears:{one:"\u043f\u043e\u0447\u0442\u0438 \u0433\u043e\u0434\u0438\u043d\u0430",other:"\u043f\u043e\u0447\u0442\u0438 {{count}} \u0433\u043e\u0434\u0438\u043d\u0438"}},ud={date:Xi({formats:{full:"EEEE, dd MMMM yyyy",long:"dd MMMM yyyy",medium:"dd MMM yyyy",short:"dd/MM/yyyy"},defaultWidth:"full"}),time:Xi({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"H:mm"},defaultWidth:"full"}),dateTime:Xi({formats:{any:"{{date}} {{time}}"},defaultWidth:"any"})},Fd=["\u043d\u0435\u0434\u0435\u043b\u044f","\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a","\u0432\u0442\u043e\u0440\u043d\u0438\u043a","\u0441\u0440\u044f\u0434\u0430","\u0447\u0435\u0442\u0432\u044a\u0440\u0442\u044a\u043a","\u043f\u0435\u0442\u044a\u043a","\u0441\u044a\u0431\u043e\u0442\u0430"];function Al(ee){const H=Fd[ee];return 2===ee?"'\u0432\u044a\u0432 "+H+" \u0432' p":"'\u0432 "+H+" \u0432' p"}const pu={lastWeek:(ee,H,W)=>{const oe=lr(ee),pt=oe.getDay();return Rl(oe,H,W)?Al(pt):function Ec(ee){const H=Fd[ee];switch(ee){case 0:case 3:case 6:return"'\u043c\u0438\u043d\u0430\u043b\u0430\u0442\u0430 "+H+" \u0432' p";case 1:case 2:case 4:case 5:return"'\u043c\u0438\u043d\u0430\u043b\u0438\u044f "+H+" \u0432' p"}}(pt)},yesterday:"'\u0432\u0447\u0435\u0440\u0430 \u0432' p",today:"'\u0434\u043d\u0435\u0441 \u0432' p",tomorrow:"'\u0443\u0442\u0440\u0435 \u0432' p",nextWeek:(ee,H,W)=>{const oe=lr(ee),pt=oe.getDay();return Rl(oe,H,W)?Al(pt):function tu(ee){const H=Fd[ee];switch(ee){case 0:case 3:case 6:return"'\u0441\u043b\u0435\u0434\u0432\u0430\u0449\u0430\u0442\u0430 "+H+" \u0432' p";case 1:case 2:case 4:case 5:return"'\u0441\u043b\u0435\u0434\u0432\u0430\u0449\u0438\u044f "+H+" \u0432' p"}}(pt)},other:"P"};function hd(ee,H,W,oe,pt){const wn=function Qu(ee){return"quarter"===ee}(H)?pt:function Kh(ee){return"year"===ee||"week"===ee||"minute"===ee||"second"===ee}(H)?oe:W;return ee+"-"+wn}const Zu={code:"bg",formatDistance:(ee,H,W)=>{let oe;const pt=hu[ee];return oe="string"==typeof pt?pt:1===H?pt.one:pt.other.replace("{{count}}",String(H)),W?.addSuffix?W.comparison&&W.comparison>0?"\u0441\u043b\u0435\u0434 "+oe:"\u043f\u0440\u0435\u0434\u0438 "+oe:oe},formatLong:ud,formatRelative:(ee,H,W,oe)=>{const pt=pu[ee];return"function"==typeof pt?pt(H,W,oe):pt},localize:{ordinalNumber:(ee,H)=>{const W=Number(ee),oe=H?.unit;if(0===W)return hd(0,oe,"\u0435\u0432","\u0435\u0432\u0430","\u0435\u0432\u043e");if(W%1e3==0)return hd(W,oe,"\u0435\u043d","\u043d\u0430","\u043d\u043e");if(W%100==0)return hd(W,oe,"\u0442\u0435\u043d","\u0442\u043d\u0430","\u0442\u043d\u043e");const pt=W%100;if(pt>20||pt<10)switch(pt%10){case 1:return hd(W,oe,"\u0432\u0438","\u0432\u0430","\u0432\u043e");case 2:return hd(W,oe,"\u0440\u0438","\u0440\u0430","\u0440\u043e");case 7:case 8:return hd(W,oe,"\u043c\u0438","\u043c\u0430","\u043c\u043e")}return hd(W,oe,"\u0442\u0438","\u0442\u0430","\u0442\u043e")},era:Dt({values:{narrow:["\u043f\u0440.\u043d.\u0435.","\u043d.\u0435."],abbreviated:["\u043f\u0440\u0435\u0434\u0438 \u043d. \u0435.","\u043d. \u0435."],wide:["\u043f\u0440\u0435\u0434\u0438 \u043d\u043e\u0432\u0430\u0442\u0430 \u0435\u0440\u0430","\u043d\u043e\u0432\u0430\u0442\u0430 \u0435\u0440\u0430"]},defaultWidth:"wide"}),quarter:Dt({values:{narrow:["1","2","3","4"],abbreviated:["1-\u0432\u043e \u0442\u0440\u0438\u043c\u0435\u0441.","2-\u0440\u043e \u0442\u0440\u0438\u043c\u0435\u0441.","3-\u0442\u043e \u0442\u0440\u0438\u043c\u0435\u0441.","4-\u0442\u043e \u0442\u0440\u0438\u043c\u0435\u0441."],wide:["1-\u0432\u043e \u0442\u0440\u0438\u043c\u0435\u0441\u0435\u0447\u0438\u0435","2-\u0440\u043e \u0442\u0440\u0438\u043c\u0435\u0441\u0435\u0447\u0438\u0435","3-\u0442\u043e \u0442\u0440\u0438\u043c\u0435\u0441\u0435\u0447\u0438\u0435","4-\u0442\u043e \u0442\u0440\u0438\u043c\u0435\u0441\u0435\u0447\u0438\u0435"]},defaultWidth:"wide",argumentCallback:ee=>ee-1}),month:Dt({values:{abbreviated:["\u044f\u043d\u0443","\u0444\u0435\u0432","\u043c\u0430\u0440","\u0430\u043f\u0440","\u043c\u0430\u0439","\u044e\u043d\u0438","\u044e\u043b\u0438","\u0430\u0432\u0433","\u0441\u0435\u043f","\u043e\u043a\u0442","\u043d\u043e\u0435","\u0434\u0435\u043a"],wide:["\u044f\u043d\u0443\u0430\u0440\u0438","\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438","\u043c\u0430\u0440\u0442","\u0430\u043f\u0440\u0438\u043b","\u043c\u0430\u0439","\u044e\u043d\u0438","\u044e\u043b\u0438","\u0430\u0432\u0433\u0443\u0441\u0442","\u0441\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438","\u043e\u043a\u0442\u043e\u043c\u0432\u0440\u0438","\u043d\u043e\u0435\u043c\u0432\u0440\u0438","\u0434\u0435\u043a\u0435\u043c\u0432\u0440\u0438"]},defaultWidth:"wide"}),day:Dt({values:{narrow:["\u041d","\u041f","\u0412","\u0421","\u0427","\u041f","\u0421"],short:["\u043d\u0434","\u043f\u043d","\u0432\u0442","\u0441\u0440","\u0447\u0442","\u043f\u0442","\u0441\u0431"],abbreviated:["\u043d\u0435\u0434","\u043f\u043e\u043d","\u0432\u0442\u043e","\u0441\u0440\u044f","\u0447\u0435\u0442","\u043f\u0435\u0442","\u0441\u044a\u0431"],wide:["\u043d\u0435\u0434\u0435\u043b\u044f","\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a","\u0432\u0442\u043e\u0440\u043d\u0438\u043a","\u0441\u0440\u044f\u0434\u0430","\u0447\u0435\u0442\u0432\u044a\u0440\u0442\u044a\u043a","\u043f\u0435\u0442\u044a\u043a","\u0441\u044a\u0431\u043e\u0442\u0430"]},defaultWidth:"wide"}),dayPeriod:Dt({values:{wide:{am:"\u043f\u0440\u0435\u0434\u0438 \u043e\u0431\u044f\u0434",pm:"\u0441\u043b\u0435\u0434 \u043e\u0431\u044f\u0434",midnight:"\u0432 \u043f\u043e\u043b\u0443\u043d\u043e\u0449",noon:"\u043d\u0430 \u043e\u0431\u044f\u0434",morning:"\u0441\u0443\u0442\u0440\u0438\u043d\u0442\u0430",afternoon:"\u0441\u043b\u0435\u0434\u043e\u0431\u0435\u0434",evening:"\u0432\u0435\u0447\u0435\u0440\u0442\u0430",night:"\u043f\u0440\u0435\u0437 \u043d\u043e\u0449\u0442\u0430"}},defaultWidth:"wide"})},match:{ordinalNumber:hs({matchPattern:/^(\d+)(-?[\u0432\u0440\u043c\u0442][\u0430\u0438]|-?\u0442?(\u0435\u043d|\u043d\u0430)|-?(\u0435\u0432|\u0435\u0432\u0430))?/i,parsePattern:/\d+/i,valueCallback:ee=>parseInt(ee,10)}),era:Di({matchPatterns:{narrow:/^((\u043f\u0440)?\u043d\.?\s?\u0435\.?)/i,abbreviated:/^((\u043f\u0440)?\u043d\.?\s?\u0435\.?)/i,wide:/^(\u043f\u0440\u0435\u0434\u0438 \u043d\u043e\u0432\u0430\u0442\u0430 \u0435\u0440\u0430|\u043d\u043e\u0432\u0430\u0442\u0430 \u0435\u0440\u0430|\u043d\u043e\u0432\u0430 \u0435\u0440\u0430)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^\u043f/i,/^\u043d/i]},defaultParseWidth:"any"}),quarter:Di({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234](-?[\u0432\u0440\u0442]?o?)? \u0442\u0440\u0438\u043c\u0435\u0441.?/i,wide:/^[1234](-?[\u0432\u0440\u0442]?\u043e?)? \u0442\u0440\u0438\u043c\u0435\u0441\u0435\u0447\u0438\u0435/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:ee=>ee+1}),month:Di({matchPatterns:{abbreviated:/^(\u044f\u043d\u0443|\u0444\u0435\u0432|\u043c\u0430\u0440|\u0430\u043f\u0440|\u043c\u0430\u0439|\u044e\u043d\u0438|\u044e\u043b\u0438|\u0430\u0432\u0433|\u0441\u0435\u043f|\u043e\u043a\u0442|\u043d\u043e\u0435|\u0434\u0435\u043a)/i,wide:/^(\u044f\u043d\u0443\u0430\u0440\u0438|\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438|\u043c\u0430\u0440\u0442|\u0430\u043f\u0440\u0438\u043b|\u043c\u0430\u0439|\u044e\u043d\u0438|\u044e\u043b\u0438|\u0430\u0432\u0433\u0443\u0441\u0442|\u0441\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438|\u043e\u043a\u0442\u043e\u043c\u0432\u0440\u0438|\u043d\u043e\u0435\u043c\u0432\u0440\u0438|\u0434\u0435\u043a\u0435\u043c\u0432\u0440\u0438)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^\u044f/i,/^\u0444/i,/^\u043c\u0430\u0440/i,/^\u0430\u043f/i,/^\u043c\u0430\u0439/i,/^\u044e\u043d/i,/^\u044e\u043b/i,/^\u0430\u0432/i,/^\u0441\u0435/i,/^\u043e\u043a\u0442/i,/^\u043d\u043e/i,/^\u0434\u0435/i]},defaultParseWidth:"any"}),day:Di({matchPatterns:{narrow:/^[\u043d\u043f\u0432\u0441\u0447]/i,short:/^(\u043d\u0434|\u043f\u043d|\u0432\u0442|\u0441\u0440|\u0447\u0442|\u043f\u0442|\u0441\u0431)/i,abbreviated:/^(\u043d\u0435\u0434|\u043f\u043e\u043d|\u0432\u0442\u043e|\u0441\u0440\u044f|\u0447\u0435\u0442|\u043f\u0435\u0442|\u0441\u044a\u0431)/i,wide:/^(\u043d\u0435\u0434\u0435\u043b\u044f|\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a|\u0432\u0442\u043e\u0440\u043d\u0438\u043a|\u0441\u0440\u044f\u0434\u0430|\u0447\u0435\u0442\u0432\u044a\u0440\u0442\u044a\u043a|\u043f\u0435\u0442\u044a\u043a|\u0441\u044a\u0431\u043e\u0442\u0430)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^\u043d/i,/^\u043f/i,/^\u0432/i,/^\u0441/i,/^\u0447/i,/^\u043f/i,/^\u0441/i],any:[/^\u043d[\u0435\u0434]/i,/^\u043f[\u043e\u043d]/i,/^\u0432\u0442/i,/^\u0441\u0440/i,/^\u0447[\u0435\u0442]/i,/^\u043f[\u0435\u0442]/i,/^\u0441[\u044a\u0431]/i]},defaultParseWidth:"any"}),dayPeriod:Di({matchPatterns:{any:/^(\u043f\u0440\u0435\u0434\u0438 \u043e|\u0441\u043b\u0435\u0434 \u043e|\u0432 \u043f\u043e|\u043d\u0430 \u043e|\u043f\u0440\u0435\u0437|\u0432\u0435\u0447|\u0441\u0443\u0442|\u0441\u043b\u0435\u0434\u043e)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^\u043f\u0440\u0435\u0434\u0438 \u043e/i,pm:/^\u0441\u043b\u0435\u0434 \u043e/i,midnight:/^\u0432 \u043f\u043e\u043b/i,noon:/^\u043d\u0430 \u043e\u0431/i,morning:/^\u0441\u0443\u0442/i,afternoon:/^\u0441\u043b\u0435\u0434\u043e/i,evening:/^\u0432\u0435\u0447/i,night:/^\u043f\u0440\u0435\u0437 \u043d/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:1}},gh={lessThanXSeconds:{one:{regular:"m\xe9n\u011b ne\u017e 1 sekunda",past:"p\u0159ed m\xe9n\u011b ne\u017e 1 sekundou",future:"za m\xe9n\u011b ne\u017e 1 sekundu"},few:{regular:"m\xe9n\u011b ne\u017e {{count}} sekundy",past:"p\u0159ed m\xe9n\u011b ne\u017e {{count}} sekundami",future:"za m\xe9n\u011b ne\u017e {{count}} sekundy"},many:{regular:"m\xe9n\u011b ne\u017e {{count}} sekund",past:"p\u0159ed m\xe9n\u011b ne\u017e {{count}} sekundami",future:"za m\xe9n\u011b ne\u017e {{count}} sekund"}},xSeconds:{one:{regular:"1 sekunda",past:"p\u0159ed 1 sekundou",future:"za 1 sekundu"},few:{regular:"{{count}} sekundy",past:"p\u0159ed {{count}} sekundami",future:"za {{count}} sekundy"},many:{regular:"{{count}} sekund",past:"p\u0159ed {{count}} sekundami",future:"za {{count}} sekund"}},halfAMinute:{type:"other",other:{regular:"p\u016fl minuty",past:"p\u0159ed p\u016fl minutou",future:"za p\u016fl minuty"}},lessThanXMinutes:{one:{regular:"m\xe9n\u011b ne\u017e 1 minuta",past:"p\u0159ed m\xe9n\u011b ne\u017e 1 minutou",future:"za m\xe9n\u011b ne\u017e 1 minutu"},few:{regular:"m\xe9n\u011b ne\u017e {{count}} minuty",past:"p\u0159ed m\xe9n\u011b ne\u017e {{count}} minutami",future:"za m\xe9n\u011b ne\u017e {{count}} minuty"},many:{regular:"m\xe9n\u011b ne\u017e {{count}} minut",past:"p\u0159ed m\xe9n\u011b ne\u017e {{count}} minutami",future:"za m\xe9n\u011b ne\u017e {{count}} minut"}},xMinutes:{one:{regular:"1 minuta",past:"p\u0159ed 1 minutou",future:"za 1 minutu"},few:{regular:"{{count}} minuty",past:"p\u0159ed {{count}} minutami",future:"za {{count}} minuty"},many:{regular:"{{count}} minut",past:"p\u0159ed {{count}} minutami",future:"za {{count}} minut"}},aboutXHours:{one:{regular:"p\u0159ibli\u017en\u011b 1 hodina",past:"p\u0159ibli\u017en\u011b p\u0159ed 1 hodinou",future:"p\u0159ibli\u017en\u011b za 1 hodinu"},few:{regular:"p\u0159ibli\u017en\u011b {{count}} hodiny",past:"p\u0159ibli\u017en\u011b p\u0159ed {{count}} hodinami",future:"p\u0159ibli\u017en\u011b za {{count}} hodiny"},many:{regular:"p\u0159ibli\u017en\u011b {{count}} hodin",past:"p\u0159ibli\u017en\u011b p\u0159ed {{count}} hodinami",future:"p\u0159ibli\u017en\u011b za {{count}} hodin"}},xHours:{one:{regular:"1 hodina",past:"p\u0159ed 1 hodinou",future:"za 1 hodinu"},few:{regular:"{{count}} hodiny",past:"p\u0159ed {{count}} hodinami",future:"za {{count}} hodiny"},many:{regular:"{{count}} hodin",past:"p\u0159ed {{count}} hodinami",future:"za {{count}} hodin"}},xDays:{one:{regular:"1 den",past:"p\u0159ed 1 dnem",future:"za 1 den"},few:{regular:"{{count}} dny",past:"p\u0159ed {{count}} dny",future:"za {{count}} dny"},many:{regular:"{{count}} dn\xed",past:"p\u0159ed {{count}} dny",future:"za {{count}} dn\xed"}},aboutXWeeks:{one:{regular:"p\u0159ibli\u017en\u011b 1 t\xfdden",past:"p\u0159ibli\u017en\u011b p\u0159ed 1 t\xfddnem",future:"p\u0159ibli\u017en\u011b za 1 t\xfdden"},few:{regular:"p\u0159ibli\u017en\u011b {{count}} t\xfddny",past:"p\u0159ibli\u017en\u011b p\u0159ed {{count}} t\xfddny",future:"p\u0159ibli\u017en\u011b za {{count}} t\xfddny"},many:{regular:"p\u0159ibli\u017en\u011b {{count}} t\xfddn\u016f",past:"p\u0159ibli\u017en\u011b p\u0159ed {{count}} t\xfddny",future:"p\u0159ibli\u017en\u011b za {{count}} t\xfddn\u016f"}},xWeeks:{one:{regular:"1 t\xfdden",past:"p\u0159ed 1 t\xfddnem",future:"za 1 t\xfdden"},few:{regular:"{{count}} t\xfddny",past:"p\u0159ed {{count}} t\xfddny",future:"za {{count}} t\xfddny"},many:{regular:"{{count}} t\xfddn\u016f",past:"p\u0159ed {{count}} t\xfddny",future:"za {{count}} t\xfddn\u016f"}},aboutXMonths:{one:{regular:"p\u0159ibli\u017en\u011b 1 m\u011bs\xedc",past:"p\u0159ibli\u017en\u011b p\u0159ed 1 m\u011bs\xedcem",future:"p\u0159ibli\u017en\u011b za 1 m\u011bs\xedc"},few:{regular:"p\u0159ibli\u017en\u011b {{count}} m\u011bs\xedce",past:"p\u0159ibli\u017en\u011b p\u0159ed {{count}} m\u011bs\xedci",future:"p\u0159ibli\u017en\u011b za {{count}} m\u011bs\xedce"},many:{regular:"p\u0159ibli\u017en\u011b {{count}} m\u011bs\xedc\u016f",past:"p\u0159ibli\u017en\u011b p\u0159ed {{count}} m\u011bs\xedci",future:"p\u0159ibli\u017en\u011b za {{count}} m\u011bs\xedc\u016f"}},xMonths:{one:{regular:"1 m\u011bs\xedc",past:"p\u0159ed 1 m\u011bs\xedcem",future:"za 1 m\u011bs\xedc"},few:{regular:"{{count}} m\u011bs\xedce",past:"p\u0159ed {{count}} m\u011bs\xedci",future:"za {{count}} m\u011bs\xedce"},many:{regular:"{{count}} m\u011bs\xedc\u016f",past:"p\u0159ed {{count}} m\u011bs\xedci",future:"za {{count}} m\u011bs\xedc\u016f"}},aboutXYears:{one:{regular:"p\u0159ibli\u017en\u011b 1 rok",past:"p\u0159ibli\u017en\u011b p\u0159ed 1 rokem",future:"p\u0159ibli\u017en\u011b za 1 rok"},few:{regular:"p\u0159ibli\u017en\u011b {{count}} roky",past:"p\u0159ibli\u017en\u011b p\u0159ed {{count}} roky",future:"p\u0159ibli\u017en\u011b za {{count}} roky"},many:{regular:"p\u0159ibli\u017en\u011b {{count}} rok\u016f",past:"p\u0159ibli\u017en\u011b p\u0159ed {{count}} roky",future:"p\u0159ibli\u017en\u011b za {{count}} rok\u016f"}},xYears:{one:{regular:"1 rok",past:"p\u0159ed 1 rokem",future:"za 1 rok"},few:{regular:"{{count}} roky",past:"p\u0159ed {{count}} roky",future:"za {{count}} roky"},many:{regular:"{{count}} rok\u016f",past:"p\u0159ed {{count}} roky",future:"za {{count}} rok\u016f"}},overXYears:{one:{regular:"v\xedce ne\u017e 1 rok",past:"p\u0159ed v\xedce ne\u017e 1 rokem",future:"za v\xedce ne\u017e 1 rok"},few:{regular:"v\xedce ne\u017e {{count}} roky",past:"p\u0159ed v\xedce ne\u017e {{count}} roky",future:"za v\xedce ne\u017e {{count}} roky"},many:{regular:"v\xedce ne\u017e {{count}} rok\u016f",past:"p\u0159ed v\xedce ne\u017e {{count}} roky",future:"za v\xedce ne\u017e {{count}} rok\u016f"}},almostXYears:{one:{regular:"skoro 1 rok",past:"skoro p\u0159ed 1 rokem",future:"skoro za 1 rok"},few:{regular:"skoro {{count}} roky",past:"skoro p\u0159ed {{count}} roky",future:"skoro za {{count}} roky"},many:{regular:"skoro {{count}} rok\u016f",past:"skoro p\u0159ed {{count}} roky",future:"skoro za {{count}} rok\u016f"}}},If={date:Xi({formats:{full:"EEEE, d. MMMM yyyy",long:"d. MMMM yyyy",medium:"d. M. yyyy",short:"dd.MM.yyyy"},defaultWidth:"full"}),time:Xi({formats:{full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},defaultWidth:"full"}),dateTime:Xi({formats:{full:"{{date}} 'v' {{time}}",long:"{{date}} 'v' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Yh=["ned\u011bli","pond\u011bl\xed","\xfater\xfd","st\u0159edu","\u010dtvrtek","p\xe1tek","sobotu"],Qh={lastWeek:"'posledn\xed' eeee 've' p",yesterday:"'v\u010dera v' p",today:"'dnes v' p",tomorrow:"'z\xedtra v' p",nextWeek:ee=>{const H=ee.getDay();return"'v "+Yh[H]+" o' p"},other:"P"},Yn={code:"cs",formatDistance:(ee,H,W)=>{let oe;const pt=gh[ee];oe="other"===pt.type?pt.other:1===H?pt.one:H>1&&H<5?pt.few:pt.many;const wn=!0===W?.addSuffix,hi=W?.comparison;let Ji;return Ji=wn&&-1===hi?oe.past:wn&&1===hi?oe.future:oe.regular,Ji.replace("{{count}}",String(H))},formatLong:If,formatRelative:(ee,H)=>{const W=Qh[ee];return"function"==typeof W?W(H):W},localize:{ordinalNumber:(ee,H)=>Number(ee)+".",era:Dt({values:{narrow:["p\u0159. n. l.","n. l."],abbreviated:["p\u0159. n. l.","n. l."],wide:["p\u0159ed na\u0161\xedm letopo\u010dtem","na\u0161eho letopo\u010dtu"]},defaultWidth:"wide"}),quarter:Dt({values:{narrow:["1","2","3","4"],abbreviated:["1. \u010dtvrtlet\xed","2. \u010dtvrtlet\xed","3. \u010dtvrtlet\xed","4. \u010dtvrtlet\xed"],wide:["1. \u010dtvrtlet\xed","2. \u010dtvrtlet\xed","3. \u010dtvrtlet\xed","4. \u010dtvrtlet\xed"]},defaultWidth:"wide",argumentCallback:ee=>ee-1}),month:Dt({values:{narrow:["L","\xda","B","D","K","\u010c","\u010c","S","Z","\u0158","L","P"],abbreviated:["led","\xfano","b\u0159e","dub","kv\u011b","\u010dvn","\u010dvc","srp","z\xe1\u0159","\u0159\xedj","lis","pro"],wide:["leden","\xfanor","b\u0159ezen","duben","kv\u011bten","\u010derven","\u010dervenec","srpen","z\xe1\u0159\xed","\u0159\xedjen","listopad","prosinec"]},defaultWidth:"wide",formattingValues:{narrow:["L","\xda","B","D","K","\u010c","\u010c","S","Z","\u0158","L","P"],abbreviated:["led","\xfano","b\u0159e","dub","kv\u011b","\u010dvn","\u010dvc","srp","z\xe1\u0159","\u0159\xedj","lis","pro"],wide:["ledna","\xfanora","b\u0159ezna","dubna","kv\u011btna","\u010dervna","\u010dervence","srpna","z\xe1\u0159\xed","\u0159\xedjna","listopadu","prosince"]},defaultFormattingWidth:"wide"}),day:Dt({values:{narrow:["ne","po","\xfat","st","\u010dt","p\xe1","so"],short:["ne","po","\xfat","st","\u010dt","p\xe1","so"],abbreviated:["ned","pon","\xfate","st\u0159","\u010dtv","p\xe1t","sob"],wide:["ned\u011ble","pond\u011bl\xed","\xfater\xfd","st\u0159eda","\u010dtvrtek","p\xe1tek","sobota"]},defaultWidth:"wide"}),dayPeriod:Dt({values:{narrow:{am:"dop.",pm:"odp.",midnight:"p\u016flnoc",noon:"poledne",morning:"r\xe1no",afternoon:"odpoledne",evening:"ve\u010der",night:"noc"},abbreviated:{am:"dop.",pm:"odp.",midnight:"p\u016flnoc",noon:"poledne",morning:"r\xe1no",afternoon:"odpoledne",evening:"ve\u010der",night:"noc"},wide:{am:"dopoledne",pm:"odpoledne",midnight:"p\u016flnoc",noon:"poledne",morning:"r\xe1no",afternoon:"odpoledne",evening:"ve\u010der",night:"noc"}},defaultWidth:"wide",formattingValues:{narrow:{am:"dop.",pm:"odp.",midnight:"p\u016flnoc",noon:"poledne",morning:"r\xe1no",afternoon:"odpoledne",evening:"ve\u010der",night:"noc"},abbreviated:{am:"dop.",pm:"odp.",midnight:"p\u016flnoc",noon:"poledne",morning:"r\xe1no",afternoon:"odpoledne",evening:"ve\u010der",night:"noc"},wide:{am:"dopoledne",pm:"odpoledne",midnight:"p\u016flnoc",noon:"poledne",morning:"r\xe1no",afternoon:"odpoledne",evening:"ve\u010der",night:"noc"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:hs({matchPattern:/^(\d+)\.?/i,parsePattern:/\d+/i,valueCallback:ee=>parseInt(ee,10)}),era:Di({matchPatterns:{narrow:/^(p[\u0159r](\.|ed) Kr\.|p[\u0159r](\.|ed) n\. l\.|po Kr\.|n\. l\.)/i,abbreviated:/^(p[\u0159r](\.|ed) Kr\.|p[\u0159r](\.|ed) n\. l\.|po Kr\.|n\. l\.)/i,wide:/^(p[\u0159r](\.|ed) Kristem|p[\u0159r](\.|ed) na[\u0161s][\xedi]m letopo[\u010dc]tem|po Kristu|na[\u0161s]eho letopo[\u010dc]tu)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^p[\u0159r]/i,/^(po|n)/i]},defaultParseWidth:"any"}),quarter:Di({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234]\. [\u010dc]tvrtlet[\xedi]/i,wide:/^[1234]\. [\u010dc]tvrtlet[\xedi]/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:ee=>ee+1}),month:Di({matchPatterns:{narrow:/^[l\xfaubdk\u010dcsz\u0159rlp]/i,abbreviated:/^(led|[\xfau]no|b[\u0159r]e|dub|kv[\u011be]|[\u010dc]vn|[\u010dc]vc|srp|z[\xe1a][\u0159r]|[\u0159r][\xedi]j|lis|pro)/i,wide:/^(leden|ledna|[\xfau]nora?|b[\u0159r]ezen|b[\u0159r]ezna|duben|dubna|kv[\u011be]ten|kv[\u011be]tna|[\u010dc]erven(ec|ce)?|[\u010dc]ervna|srpen|srpna|z[\xe1a][\u0159r][\xedi]|[\u0159r][\xedi]jen|[\u0159r][\xedi]jna|listopad(a|u)?|prosinec|prosince)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^l/i,/^[\xfau]/i,/^b/i,/^d/i,/^k/i,/^[\u010dc]/i,/^[\u010dc]/i,/^s/i,/^z/i,/^[\u0159r]/i,/^l/i,/^p/i],any:[/^led/i,/^[\xfau]n/i,/^b[\u0159r]e/i,/^dub/i,/^kv[\u011be]/i,/^[\u010dc]vn|[\u010dc]erven(?!\w)|[\u010dc]ervna/i,/^[\u010dc]vc|[\u010dc]erven(ec|ce)/i,/^srp/i,/^z[\xe1a][\u0159r]/i,/^[\u0159r][\xedi]j/i,/^lis/i,/^pro/i]},defaultParseWidth:"any"}),day:Di({matchPatterns:{narrow:/^[npu\xfas\u010dps]/i,short:/^(ne|po|[\xfau]t|st|[\u010dc]t|p[\xe1a]|so)/i,abbreviated:/^(ned|pon|[\xfau]te|st[r\u0159]|[\u010dc]tv|p[\xe1a]t|sob)/i,wide:/^(ned[\u011be]le|pond[\u011be]l[\xedi]|[\xfau]ter[\xfdy]|st[\u0159r]eda|[\u010dc]tvrtek|p[\xe1a]tek|sobota)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^n/i,/^p/i,/^[\xfau]/i,/^s/i,/^[\u010dc]/i,/^p/i,/^s/i],any:[/^ne/i,/^po/i,/^[\xfau]t/i,/^st/i,/^[\u010dc]t/i,/^p[\xe1a]/i,/^so/i]},defaultParseWidth:"any"}),dayPeriod:Di({matchPatterns:{any:/^dopoledne|dop\.?|odpoledne|odp\.?|p[\u016fu]lnoc|poledne|r[\xe1a]no|odpoledne|ve[\u010dc]er|(v )?noci?/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^dop/i,pm:/^odp/i,midnight:/^p[\u016fu]lnoc/i,noon:/^poledne/i,morning:/r[\xe1a]no/i,afternoon:/odpoledne/i,evening:/ve[\u010dc]er/i,night:/noc/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:4}},Ri={lessThanXSeconds:{one:"mindre end \xe9t sekund",other:"mindre end {{count}} sekunder"},xSeconds:{one:"1 sekund",other:"{{count}} sekunder"},halfAMinute:"\xe9t halvt minut",lessThanXMinutes:{one:"mindre end \xe9t minut",other:"mindre end {{count}} minutter"},xMinutes:{one:"1 minut",other:"{{count}} minutter"},aboutXHours:{one:"cirka 1 time",other:"cirka {{count}} timer"},xHours:{one:"1 time",other:"{{count}} timer"},xDays:{one:"1 dag",other:"{{count}} dage"},aboutXWeeks:{one:"cirka 1 uge",other:"cirka {{count}} uger"},xWeeks:{one:"1 uge",other:"{{count}} uger"},aboutXMonths:{one:"cirka 1 m\xe5ned",other:"cirka {{count}} m\xe5neder"},xMonths:{one:"1 m\xe5ned",other:"{{count}} m\xe5neder"},aboutXYears:{one:"cirka 1 \xe5r",other:"cirka {{count}} \xe5r"},xYears:{one:"1 \xe5r",other:"{{count}} \xe5r"},overXYears:{one:"over 1 \xe5r",other:"over {{count}} \xe5r"},almostXYears:{one:"n\xe6sten 1 \xe5r",other:"n\xe6sten {{count}} \xe5r"}},ls={date:Xi({formats:{full:"EEEE 'den' d. MMMM y",long:"d. MMMM y",medium:"d. MMM y",short:"dd/MM/y"},defaultWidth:"full"}),time:Xi({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:Xi({formats:{full:"{{date}} 'kl'. {{time}}",long:"{{date}} 'kl'. {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},Yo={lastWeek:"'sidste' eeee 'kl.' p",yesterday:"'i g\xe5r kl.' p",today:"'i dag kl.' p",tomorrow:"'i morgen kl.' p",nextWeek:"'p\xe5' eeee 'kl.' p",other:"P"},gd={code:"da",formatDistance:(ee,H,W)=>{let oe;const pt=Ri[ee];return oe="string"==typeof pt?pt:1===H?pt.one:pt.other.replace("{{count}}",String(H)),W?.addSuffix?W.comparison&&W.comparison>0?"om "+oe:oe+" siden":oe},formatLong:ls,formatRelative:(ee,H,W,oe)=>Yo[ee],localize:{ordinalNumber:(ee,H)=>Number(ee)+".",era:Dt({values:{narrow:["fvt","vt"],abbreviated:["f.v.t.","v.t."],wide:["f\xf8r vesterlandsk tidsregning","vesterlandsk tidsregning"]},defaultWidth:"wide"}),quarter:Dt({values:{narrow:["1","2","3","4"],abbreviated:["1. kvt.","2. kvt.","3. kvt.","4. kvt."],wide:["1. kvartal","2. kvartal","3. kvartal","4. kvartal"]},defaultWidth:"wide",argumentCallback:ee=>ee-1}),month:Dt({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["jan.","feb.","mar.","apr.","maj","jun.","jul.","aug.","sep.","okt.","nov.","dec."],wide:["januar","februar","marts","april","maj","juni","juli","august","september","oktober","november","december"]},defaultWidth:"wide"}),day:Dt({values:{narrow:["S","M","T","O","T","F","L"],short:["s\xf8","ma","ti","on","to","fr","l\xf8"],abbreviated:["s\xf8n.","man.","tir.","ons.","tor.","fre.","l\xf8r."],wide:["s\xf8ndag","mandag","tirsdag","onsdag","torsdag","fredag","l\xf8rdag"]},defaultWidth:"wide"}),dayPeriod:Dt({values:{narrow:{am:"a",pm:"p",midnight:"midnat",noon:"middag",morning:"morgen",afternoon:"eftermiddag",evening:"aften",night:"nat"},abbreviated:{am:"AM",pm:"PM",midnight:"midnat",noon:"middag",morning:"morgen",afternoon:"eftermiddag",evening:"aften",night:"nat"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnat",noon:"middag",morning:"morgen",afternoon:"eftermiddag",evening:"aften",night:"nat"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"midnat",noon:"middag",morning:"om morgenen",afternoon:"om eftermiddagen",evening:"om aftenen",night:"om natten"},abbreviated:{am:"AM",pm:"PM",midnight:"midnat",noon:"middag",morning:"om morgenen",afternoon:"om eftermiddagen",evening:"om aftenen",night:"om natten"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnat",noon:"middag",morning:"om morgenen",afternoon:"om eftermiddagen",evening:"om aftenen",night:"om natten"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:hs({matchPattern:/^(\d+)(\.)?/i,parsePattern:/\d+/i,valueCallback:ee=>parseInt(ee,10)}),era:Di({matchPatterns:{narrow:/^(fKr|fvt|eKr|vt)/i,abbreviated:/^(f\.Kr\.?|f\.v\.t\.?|e\.Kr\.?|v\.t\.)/i,wide:/^(f.Kr.|f\xf8r vesterlandsk tidsregning|e.Kr.|vesterlandsk tidsregning)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^f/i,/^(v|e)/i]},defaultParseWidth:"any"}),quarter:Di({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234]. kvt\./i,wide:/^[1234]\.? kvartal/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:ee=>ee+1}),month:Di({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan.|feb.|mar.|apr.|maj|jun.|jul.|aug.|sep.|okt.|nov.|dec.)/i,wide:/^(januar|februar|marts|april|maj|juni|juli|august|september|oktober|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^maj/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:Di({matchPatterns:{narrow:/^[smtofl]/i,short:/^(s\xf8n.|man.|tir.|ons.|tor.|fre.|l\xf8r.)/i,abbreviated:/^(s\xf8n|man|tir|ons|tor|fre|l\xf8r)/i,wide:/^(s\xf8ndag|mandag|tirsdag|onsdag|torsdag|fredag|l\xf8rdag)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^o/i,/^t/i,/^f/i,/^l/i],any:[/^s/i,/^m/i,/^ti/i,/^o/i,/^to/i,/^f/i,/^l/i]},defaultParseWidth:"any"}),dayPeriod:Di({matchPatterns:{narrow:/^(a|p|midnat|middag|(om) (morgenen|eftermiddagen|aftenen|natten))/i,any:/^([ap]\.?\s?m\.?|midnat|middag|(om) (morgenen|eftermiddagen|aftenen|natten))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/midnat/i,noon:/middag/i,morning:/morgen/i,afternoon:/eftermiddag/i,evening:/aften/i,night:/nat/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:4}},Mu={lessThanXSeconds:{standalone:{one:"weniger als 1 Sekunde",other:"weniger als {{count}} Sekunden"},withPreposition:{one:"weniger als 1 Sekunde",other:"weniger als {{count}} Sekunden"}},xSeconds:{standalone:{one:"1 Sekunde",other:"{{count}} Sekunden"},withPreposition:{one:"1 Sekunde",other:"{{count}} Sekunden"}},halfAMinute:{standalone:"eine halbe Minute",withPreposition:"einer halben Minute"},lessThanXMinutes:{standalone:{one:"weniger als 1 Minute",other:"weniger als {{count}} Minuten"},withPreposition:{one:"weniger als 1 Minute",other:"weniger als {{count}} Minuten"}},xMinutes:{standalone:{one:"1 Minute",other:"{{count}} Minuten"},withPreposition:{one:"1 Minute",other:"{{count}} Minuten"}},aboutXHours:{standalone:{one:"etwa 1 Stunde",other:"etwa {{count}} Stunden"},withPreposition:{one:"etwa 1 Stunde",other:"etwa {{count}} Stunden"}},xHours:{standalone:{one:"1 Stunde",other:"{{count}} Stunden"},withPreposition:{one:"1 Stunde",other:"{{count}} Stunden"}},xDays:{standalone:{one:"1 Tag",other:"{{count}} Tage"},withPreposition:{one:"1 Tag",other:"{{count}} Tagen"}},aboutXWeeks:{standalone:{one:"etwa 1 Woche",other:"etwa {{count}} Wochen"},withPreposition:{one:"etwa 1 Woche",other:"etwa {{count}} Wochen"}},xWeeks:{standalone:{one:"1 Woche",other:"{{count}} Wochen"},withPreposition:{one:"1 Woche",other:"{{count}} Wochen"}},aboutXMonths:{standalone:{one:"etwa 1 Monat",other:"etwa {{count}} Monate"},withPreposition:{one:"etwa 1 Monat",other:"etwa {{count}} Monaten"}},xMonths:{standalone:{one:"1 Monat",other:"{{count}} Monate"},withPreposition:{one:"1 Monat",other:"{{count}} Monaten"}},aboutXYears:{standalone:{one:"etwa 1 Jahr",other:"etwa {{count}} Jahre"},withPreposition:{one:"etwa 1 Jahr",other:"etwa {{count}} Jahren"}},xYears:{standalone:{one:"1 Jahr",other:"{{count}} Jahre"},withPreposition:{one:"1 Jahr",other:"{{count}} Jahren"}},overXYears:{standalone:{one:"mehr als 1 Jahr",other:"mehr als {{count}} Jahre"},withPreposition:{one:"mehr als 1 Jahr",other:"mehr als {{count}} Jahren"}},almostXYears:{standalone:{one:"fast 1 Jahr",other:"fast {{count}} Jahre"},withPreposition:{one:"fast 1 Jahr",other:"fast {{count}} Jahren"}}},Zl={date:Xi({formats:{full:"EEEE, do MMMM y",long:"do MMMM y",medium:"do MMM y",short:"dd.MM.y"},defaultWidth:"full"}),time:Xi({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:Xi({formats:{full:"{{date}} 'um' {{time}}",long:"{{date}} 'um' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},Du={lastWeek:"'letzten' eeee 'um' p",yesterday:"'gestern um' p",today:"'heute um' p",tomorrow:"'morgen um' p",nextWeek:"eeee 'um' p",other:"P"},Sh={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","M\xe4r","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],wide:["Januar","Februar","M\xe4rz","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]},kf={narrow:Sh.narrow,abbreviated:["Jan.","Feb.","M\xe4rz","Apr.","Mai","Juni","Juli","Aug.","Sep.","Okt.","Nov.","Dez."],wide:Sh.wide},ng={code:"de",formatDistance:(ee,H,W)=>{let oe;const pt=W?.addSuffix?Mu[ee].withPreposition:Mu[ee].standalone;return oe="string"==typeof pt?pt:1===H?pt.one:pt.other.replace("{{count}}",String(H)),W?.addSuffix?W.comparison&&W.comparison>0?"in "+oe:"vor "+oe:oe},formatLong:Zl,formatRelative:(ee,H,W,oe)=>Du[ee],localize:{ordinalNumber:ee=>Number(ee)+".",era:Dt({values:{narrow:["v.Chr.","n.Chr."],abbreviated:["v.Chr.","n.Chr."],wide:["vor Christus","nach Christus"]},defaultWidth:"wide"}),quarter:Dt({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1. Quartal","2. Quartal","3. Quartal","4. Quartal"]},defaultWidth:"wide",argumentCallback:ee=>ee-1}),month:Dt({values:Sh,formattingValues:kf,defaultWidth:"wide"}),day:Dt({values:{narrow:["S","M","D","M","D","F","S"],short:["So","Mo","Di","Mi","Do","Fr","Sa"],abbreviated:["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."],wide:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"]},defaultWidth:"wide"}),dayPeriod:Dt({values:{narrow:{am:"vm.",pm:"nm.",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachm.",evening:"Abend",night:"Nacht"},abbreviated:{am:"vorm.",pm:"nachm.",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachmittag",evening:"Abend",night:"Nacht"},wide:{am:"vormittags",pm:"nachmittags",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachmittag",evening:"Abend",night:"Nacht"}},defaultWidth:"wide",formattingValues:{narrow:{am:"vm.",pm:"nm.",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachm.",evening:"abends",night:"nachts"},abbreviated:{am:"vorm.",pm:"nachm.",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachmittags",evening:"abends",night:"nachts"},wide:{am:"vormittags",pm:"nachmittags",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachmittags",evening:"abends",night:"nachts"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:hs({matchPattern:/^(\d+)(\.)?/i,parsePattern:/\d+/i,valueCallback:ee=>parseInt(ee)}),era:Di({matchPatterns:{narrow:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,abbreviated:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,wide:/^(vor Christus|vor unserer Zeitrechnung|nach Christus|unserer Zeitrechnung)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^v/i,/^n/i]},defaultParseWidth:"any"}),quarter:Di({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](\.)? Quartal/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:ee=>ee+1}),month:Di({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(j[a\xe4]n|feb|m\xe4r[z]?|apr|mai|jun[i]?|jul[i]?|aug|sep|okt|nov|dez)\.?/i,wide:/^(januar|februar|m\xe4rz|april|mai|juni|juli|august|september|oktober|november|dezember)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^j[a\xe4]/i,/^f/i,/^m\xe4r/i,/^ap/i,/^mai/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:Di({matchPatterns:{narrow:/^[smdmf]/i,short:/^(so|mo|di|mi|do|fr|sa)/i,abbreviated:/^(son?|mon?|die?|mit?|don?|fre?|sam?)\.?/i,wide:/^(sonntag|montag|dienstag|mittwoch|donnerstag|freitag|samstag)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^so/i,/^mo/i,/^di/i,/^mi/i,/^do/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:Di({matchPatterns:{narrow:/^(vm\.?|nm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i,abbreviated:/^(vorm\.?|nachm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i,wide:/^(vormittags|nachmittags|Mitternacht|Mittag|morgens|nachmittags|abends|nachts)/i},defaultMatchWidth:"wide",parsePatterns:{any:{am:/^v/i,pm:/^n/i,midnight:/^Mitte/i,noon:/^Mitta/i,morning:/morgens/i,afternoon:/nachmittags/i,evening:/abends/i,night:/nachts/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:4}},Om={lessThanXSeconds:{one:"\u03bb\u03b9\u03b3\u03cc\u03c4\u03b5\u03c1\u03bf \u03b1\u03c0\u03cc \u03ad\u03bd\u03b1 \u03b4\u03b5\u03c5\u03c4\u03b5\u03c1\u03cc\u03bb\u03b5\u03c0\u03c4\u03bf",other:"\u03bb\u03b9\u03b3\u03cc\u03c4\u03b5\u03c1\u03bf \u03b1\u03c0\u03cc {{count}} \u03b4\u03b5\u03c5\u03c4\u03b5\u03c1\u03cc\u03bb\u03b5\u03c0\u03c4\u03b1"},xSeconds:{one:"1 \u03b4\u03b5\u03c5\u03c4\u03b5\u03c1\u03cc\u03bb\u03b5\u03c0\u03c4\u03bf",other:"{{count}} \u03b4\u03b5\u03c5\u03c4\u03b5\u03c1\u03cc\u03bb\u03b5\u03c0\u03c4\u03b1"},halfAMinute:"\u03bc\u03b9\u03c3\u03cc \u03bb\u03b5\u03c0\u03c4\u03cc",lessThanXMinutes:{one:"\u03bb\u03b9\u03b3\u03cc\u03c4\u03b5\u03c1\u03bf \u03b1\u03c0\u03cc \u03ad\u03bd\u03b1 \u03bb\u03b5\u03c0\u03c4\u03cc",other:"\u03bb\u03b9\u03b3\u03cc\u03c4\u03b5\u03c1\u03bf \u03b1\u03c0\u03cc {{count}} \u03bb\u03b5\u03c0\u03c4\u03ac"},xMinutes:{one:"1 \u03bb\u03b5\u03c0\u03c4\u03cc",other:"{{count}} \u03bb\u03b5\u03c0\u03c4\u03ac"},aboutXHours:{one:"\u03c0\u03b5\u03c1\u03af\u03c0\u03bf\u03c5 1 \u03ce\u03c1\u03b1",other:"\u03c0\u03b5\u03c1\u03af\u03c0\u03bf\u03c5 {{count}} \u03ce\u03c1\u03b5\u03c2"},xHours:{one:"1 \u03ce\u03c1\u03b1",other:"{{count}} \u03ce\u03c1\u03b5\u03c2"},xDays:{one:"1 \u03b7\u03bc\u03ad\u03c1\u03b1",other:"{{count}} \u03b7\u03bc\u03ad\u03c1\u03b5\u03c2"},aboutXWeeks:{one:"\u03c0\u03b5\u03c1\u03af\u03c0\u03bf\u03c5 1 \u03b5\u03b2\u03b4\u03bf\u03bc\u03ac\u03b4\u03b1",other:"\u03c0\u03b5\u03c1\u03af\u03c0\u03bf\u03c5 {{count}} \u03b5\u03b2\u03b4\u03bf\u03bc\u03ac\u03b4\u03b5\u03c2"},xWeeks:{one:"1 \u03b5\u03b2\u03b4\u03bf\u03bc\u03ac\u03b4\u03b1",other:"{{count}} \u03b5\u03b2\u03b4\u03bf\u03bc\u03ac\u03b4\u03b5\u03c2"},aboutXMonths:{one:"\u03c0\u03b5\u03c1\u03af\u03c0\u03bf\u03c5 1 \u03bc\u03ae\u03bd\u03b1\u03c2",other:"\u03c0\u03b5\u03c1\u03af\u03c0\u03bf\u03c5 {{count}} \u03bc\u03ae\u03bd\u03b5\u03c2"},xMonths:{one:"1 \u03bc\u03ae\u03bd\u03b1\u03c2",other:"{{count}} \u03bc\u03ae\u03bd\u03b5\u03c2"},aboutXYears:{one:"\u03c0\u03b5\u03c1\u03af\u03c0\u03bf\u03c5 1 \u03c7\u03c1\u03cc\u03bd\u03bf",other:"\u03c0\u03b5\u03c1\u03af\u03c0\u03bf\u03c5 {{count}} \u03c7\u03c1\u03cc\u03bd\u03b9\u03b1"},xYears:{one:"1 \u03c7\u03c1\u03cc\u03bd\u03bf",other:"{{count}} \u03c7\u03c1\u03cc\u03bd\u03b9\u03b1"},overXYears:{one:"\u03c0\u03ac\u03bd\u03c9 \u03b1\u03c0\u03cc 1 \u03c7\u03c1\u03cc\u03bd\u03bf",other:"\u03c0\u03ac\u03bd\u03c9 \u03b1\u03c0\u03cc {{count}} \u03c7\u03c1\u03cc\u03bd\u03b9\u03b1"},almostXYears:{one:"\u03c0\u03b5\u03c1\u03af\u03c0\u03bf\u03c5 1 \u03c7\u03c1\u03cc\u03bd\u03bf",other:"\u03c0\u03b5\u03c1\u03af\u03c0\u03bf\u03c5 {{count}} \u03c7\u03c1\u03cc\u03bd\u03b9\u03b1"}},Mh={date:Xi({formats:{full:"EEEE, d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"d/M/yy"},defaultWidth:"full"}),time:Xi({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:Xi({formats:{full:"{{date}} - {{time}}",long:"{{date}} - {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Dh={lastWeek:ee=>6===ee.getDay()?"'\u03c4\u03bf \u03c0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03bf' eeee '\u03c3\u03c4\u03b9\u03c2' p":"'\u03c4\u03b7\u03bd \u03c0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03b7' eeee '\u03c3\u03c4\u03b9\u03c2' p",yesterday:"'\u03c7\u03b8\u03b5\u03c2 \u03c3\u03c4\u03b9\u03c2' p",today:"'\u03c3\u03ae\u03bc\u03b5\u03c1\u03b1 \u03c3\u03c4\u03b9\u03c2' p",tomorrow:"'\u03b1\u03cd\u03c1\u03b9\u03bf \u03c3\u03c4\u03b9\u03c2' p",nextWeek:"eeee '\u03c3\u03c4\u03b9\u03c2' p",other:"P"},Dm={code:"el",formatDistance:(ee,H,W)=>{let oe;const pt=Om[ee];return oe="string"==typeof pt?pt:1===H?pt.one:pt.other.replace("{{count}}",String(H)),W?.addSuffix?W.comparison&&W.comparison>0?"\u03c3\u03b5 "+oe:oe+" \u03c0\u03c1\u03b9\u03bd":oe},formatLong:Mh,formatRelative:(ee,H)=>{const W=Dh[ee];return"function"==typeof W?W(H):W},localize:{ordinalNumber:(ee,H)=>{const W=Number(ee),oe=H?.unit;let pt;return pt="year"===oe||"month"===oe?"\u03bf\u03c2":"week"===oe||"dayOfYear"===oe||"day"===oe||"hour"===oe||"date"===oe?"\u03b7":"\u03bf",W+pt},era:Dt({values:{narrow:["\u03c0\u03a7","\u03bc\u03a7"],abbreviated:["\u03c0.\u03a7.","\u03bc.\u03a7."],wide:["\u03c0\u03c1\u03bf \u03a7\u03c1\u03b9\u03c3\u03c4\u03bf\u03cd","\u03bc\u03b5\u03c4\u03ac \u03a7\u03c1\u03b9\u03c3\u03c4\u03cc\u03bd"]},defaultWidth:"wide"}),quarter:Dt({values:{narrow:["1","2","3","4"],abbreviated:["\u03a41","\u03a42","\u03a43","\u03a44"],wide:["1\u03bf \u03c4\u03c1\u03af\u03bc\u03b7\u03bd\u03bf","2\u03bf \u03c4\u03c1\u03af\u03bc\u03b7\u03bd\u03bf","3\u03bf \u03c4\u03c1\u03af\u03bc\u03b7\u03bd\u03bf","4\u03bf \u03c4\u03c1\u03af\u03bc\u03b7\u03bd\u03bf"]},defaultWidth:"wide",argumentCallback:ee=>ee-1}),month:Dt({values:{narrow:["\u0399","\u03a6","\u039c","\u0391","\u039c","\u0399","\u0399","\u0391","\u03a3","\u039f","\u039d","\u0394"],abbreviated:["\u0399\u03b1\u03bd","\u03a6\u03b5\u03b2","\u039c\u03ac\u03c1","\u0391\u03c0\u03c1","\u039c\u03ac\u03b9","\u0399\u03bf\u03cd\u03bd","\u0399\u03bf\u03cd\u03bb","\u0391\u03cd\u03b3","\u03a3\u03b5\u03c0","\u039f\u03ba\u03c4","\u039d\u03bf\u03ad","\u0394\u03b5\u03ba"],wide:["\u0399\u03b1\u03bd\u03bf\u03c5\u03ac\u03c1\u03b9\u03bf\u03c2","\u03a6\u03b5\u03b2\u03c1\u03bf\u03c5\u03ac\u03c1\u03b9\u03bf\u03c2","\u039c\u03ac\u03c1\u03c4\u03b9\u03bf\u03c2","\u0391\u03c0\u03c1\u03af\u03bb\u03b9\u03bf\u03c2","\u039c\u03ac\u03b9\u03bf\u03c2","\u0399\u03bf\u03cd\u03bd\u03b9\u03bf\u03c2","\u0399\u03bf\u03cd\u03bb\u03b9\u03bf\u03c2","\u0391\u03cd\u03b3\u03bf\u03c5\u03c3\u03c4\u03bf\u03c2","\u03a3\u03b5\u03c0\u03c4\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2","\u039f\u03ba\u03c4\u03ce\u03b2\u03c1\u03b9\u03bf\u03c2","\u039d\u03bf\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2","\u0394\u03b5\u03ba\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2"]},defaultWidth:"wide",formattingValues:{narrow:["\u0399","\u03a6","\u039c","\u0391","\u039c","\u0399","\u0399","\u0391","\u03a3","\u039f","\u039d","\u0394"],abbreviated:["\u0399\u03b1\u03bd","\u03a6\u03b5\u03b2","\u039c\u03b1\u03c1","\u0391\u03c0\u03c1","\u039c\u03b1\u0390","\u0399\u03bf\u03c5\u03bd","\u0399\u03bf\u03c5\u03bb","\u0391\u03c5\u03b3","\u03a3\u03b5\u03c0","\u039f\u03ba\u03c4","\u039d\u03bf\u03b5","\u0394\u03b5\u03ba"],wide:["\u0399\u03b1\u03bd\u03bf\u03c5\u03b1\u03c1\u03af\u03bf\u03c5","\u03a6\u03b5\u03b2\u03c1\u03bf\u03c5\u03b1\u03c1\u03af\u03bf\u03c5","\u039c\u03b1\u03c1\u03c4\u03af\u03bf\u03c5","\u0391\u03c0\u03c1\u03b9\u03bb\u03af\u03bf\u03c5","\u039c\u03b1\u0390\u03bf\u03c5","\u0399\u03bf\u03c5\u03bd\u03af\u03bf\u03c5","\u0399\u03bf\u03c5\u03bb\u03af\u03bf\u03c5","\u0391\u03c5\u03b3\u03bf\u03cd\u03c3\u03c4\u03bf\u03c5","\u03a3\u03b5\u03c0\u03c4\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5","\u039f\u03ba\u03c4\u03c9\u03b2\u03c1\u03af\u03bf\u03c5","\u039d\u03bf\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5","\u0394\u03b5\u03ba\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5"]},defaultFormattingWidth:"wide"}),day:Dt({values:{narrow:["\u039a","\u0394","T","\u03a4","\u03a0","\u03a0","\u03a3"],short:["\u039a\u03c5","\u0394\u03b5","\u03a4\u03c1","\u03a4\u03b5","\u03a0\u03ad","\u03a0\u03b1","\u03a3\u03ac"],abbreviated:["\u039a\u03c5\u03c1","\u0394\u03b5\u03c5","\u03a4\u03c1\u03af","\u03a4\u03b5\u03c4","\u03a0\u03ad\u03bc","\u03a0\u03b1\u03c1","\u03a3\u03ac\u03b2"],wide:["\u039a\u03c5\u03c1\u03b9\u03b1\u03ba\u03ae","\u0394\u03b5\u03c5\u03c4\u03ad\u03c1\u03b1","\u03a4\u03c1\u03af\u03c4\u03b7","\u03a4\u03b5\u03c4\u03ac\u03c1\u03c4\u03b7","\u03a0\u03ad\u03bc\u03c0\u03c4\u03b7","\u03a0\u03b1\u03c1\u03b1\u03c3\u03ba\u03b5\u03c5\u03ae","\u03a3\u03ac\u03b2\u03b2\u03b1\u03c4\u03bf"]},defaultWidth:"wide"}),dayPeriod:Dt({values:{narrow:{am:"\u03c0\u03bc",pm:"\u03bc\u03bc",midnight:"\u03bc\u03b5\u03c3\u03ac\u03bd\u03c5\u03c7\u03c4\u03b1",noon:"\u03bc\u03b5\u03c3\u03b7\u03bc\u03ad\u03c1\u03b9",morning:"\u03c0\u03c1\u03c9\u03af",afternoon:"\u03b1\u03c0\u03cc\u03b3\u03b5\u03c5\u03bc\u03b1",evening:"\u03b2\u03c1\u03ac\u03b4\u03c5",night:"\u03bd\u03cd\u03c7\u03c4\u03b1"},abbreviated:{am:"\u03c0.\u03bc.",pm:"\u03bc.\u03bc.",midnight:"\u03bc\u03b5\u03c3\u03ac\u03bd\u03c5\u03c7\u03c4\u03b1",noon:"\u03bc\u03b5\u03c3\u03b7\u03bc\u03ad\u03c1\u03b9",morning:"\u03c0\u03c1\u03c9\u03af",afternoon:"\u03b1\u03c0\u03cc\u03b3\u03b5\u03c5\u03bc\u03b1",evening:"\u03b2\u03c1\u03ac\u03b4\u03c5",night:"\u03bd\u03cd\u03c7\u03c4\u03b1"},wide:{am:"\u03c0.\u03bc.",pm:"\u03bc.\u03bc.",midnight:"\u03bc\u03b5\u03c3\u03ac\u03bd\u03c5\u03c7\u03c4\u03b1",noon:"\u03bc\u03b5\u03c3\u03b7\u03bc\u03ad\u03c1\u03b9",morning:"\u03c0\u03c1\u03c9\u03af",afternoon:"\u03b1\u03c0\u03cc\u03b3\u03b5\u03c5\u03bc\u03b1",evening:"\u03b2\u03c1\u03ac\u03b4\u03c5",night:"\u03bd\u03cd\u03c7\u03c4\u03b1"}},defaultWidth:"wide"})},match:{ordinalNumber:hs({matchPattern:/^(\d+)(\u03bf\u03c2|\u03b7|\u03bf)?/i,parsePattern:/\d+/i,valueCallback:ee=>parseInt(ee,10)}),era:Di({matchPatterns:{narrow:/^(\u03c0\u03a7|\u03bc\u03a7)/i,abbreviated:/^(\u03c0\.?\s?\u03c7\.?|\u03c0\.?\s?\u03ba\.?\s?\u03c7\.?|\u03bc\.?\s?\u03c7\.?|\u03ba\.?\s?\u03c7\.?)/i,wide:/^(\u03c0\u03c1\u03bf \u03a7\u03c1\u03b9\u03c3\u03c4\u03bf(\u03cd|\u03c5)|\u03c0\u03c1\u03b9\u03bd \u03b1\u03c0(\u03cc|\u03bf) \u03c4\u03b7\u03bd \u039a\u03bf\u03b9\u03bd(\u03ae|\u03b7) \u03a7\u03c1\u03bf\u03bd\u03bf\u03bb\u03bf\u03b3(\u03af|\u03b9)\u03b1|\u03bc\u03b5\u03c4(\u03ac|\u03b1) \u03a7\u03c1\u03b9\u03c3\u03c4(\u03cc|\u03bf)\u03bd|\u039a\u03bf\u03b9\u03bd(\u03ae|\u03b7) \u03a7\u03c1\u03bf\u03bd\u03bf\u03bb\u03bf\u03b3(\u03af|\u03b9)\u03b1)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^\u03c0/i,/^(\u03bc|\u03ba)/i]},defaultParseWidth:"any"}),quarter:Di({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^\u03c4[1234]/i,wide:/^[1234]\u03bf? \u03c4\u03c1(\u03af|\u03b9)\u03bc\u03b7\u03bd\u03bf/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:ee=>ee+1}),month:Di({matchPatterns:{narrow:/^[\u03b9\u03c6\u03bc\u03b1\u03bc\u03b9\u03b9\u03b1\u03c3\u03bf\u03bd\u03b4]/i,abbreviated:/^(\u03b9\u03b1\u03bd|\u03c6\u03b5\u03b2|\u03bc[\u03ac\u03b1]\u03c1|\u03b1\u03c0\u03c1|\u03bc[\u03ac\u03b1][\u03b9\u0390]|\u03b9\u03bf[\u03cd\u03c5]\u03bd|\u03b9\u03bf[\u03cd\u03c5]\u03bb|\u03b1[\u03cd\u03c5]\u03b3|\u03c3\u03b5\u03c0|\u03bf\u03ba\u03c4|\u03bd\u03bf[\u03ad\u03b5]|\u03b4\u03b5\u03ba)/i,wide:/^(\u03bc[\u03ac\u03b1][\u03b9\u0390]|\u03b1[\u03cd\u03c5]\u03b3\u03bf[\u03c5\u03cd]\u03c3\u03c4)(\u03bf\u03c2|\u03bf\u03c5)|(\u03b9\u03b1\u03bd\u03bf\u03c5[\u03ac\u03b1]\u03c1|\u03c6\u03b5\u03b2\u03c1\u03bf\u03c5[\u03ac\u03b1]\u03c1|\u03bc[\u03ac\u03b1]\u03c1\u03c4|\u03b1\u03c0\u03c1[\u03af\u03b9]\u03bb|\u03b9\u03bf[\u03cd\u03c5]\u03bd|\u03b9\u03bf[\u03cd\u03c5]\u03bb|\u03c3\u03b5\u03c0\u03c4[\u03ad\u03b5]\u03bc\u03b2\u03c1|\u03bf\u03ba\u03c4[\u03ce\u03c9]\u03b2\u03c1|\u03bd\u03bf[\u03ad\u03b5]\u03bc\u03b2\u03c1|\u03b4\u03b5\u03ba[\u03ad\u03b5]\u03bc\u03b2\u03c1)(\u03b9\u03bf\u03c2|\u03af\u03bf\u03c5)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^\u03b9/i,/^\u03c6/i,/^\u03bc/i,/^\u03b1/i,/^\u03bc/i,/^\u03b9/i,/^\u03b9/i,/^\u03b1/i,/^\u03c3/i,/^\u03bf/i,/^\u03bd/i,/^\u03b4/i],any:[/^\u03b9\u03b1/i,/^\u03c6/i,/^\u03bc[\u03ac\u03b1]\u03c1/i,/^\u03b1\u03c0/i,/^\u03bc[\u03ac\u03b1][\u03b9\u0390]/i,/^\u03b9\u03bf[\u03cd\u03c5]\u03bd/i,/^\u03b9\u03bf[\u03cd\u03c5]\u03bb/i,/^\u03b1[\u03cd\u03c5]/i,/^\u03c3/i,/^\u03bf/i,/^\u03bd/i,/^\u03b4/i]},defaultParseWidth:"any"}),day:Di({matchPatterns:{narrow:/^[\u03ba\u03b4\u03c4\u03c0\u03c3]/i,short:/^(\u03ba\u03c5|\u03b4\u03b5|\u03c4\u03c1|\u03c4\u03b5|\u03c0[\u03b5\u03ad]|\u03c0[\u03b1\u03ac]|\u03c3[\u03b1\u03ac])/i,abbreviated:/^(\u03ba\u03c5\u03c1|\u03b4\u03b5\u03c5|\u03c4\u03c1\u03b9|\u03c4\u03b5\u03c4|\u03c0\u03b5\u03bc|\u03c0\u03b1\u03c1|\u03c3\u03b1\u03b2)/i,wide:/^(\u03ba\u03c5\u03c1\u03b9\u03b1\u03ba(\u03ae|\u03b7)|\u03b4\u03b5\u03c5\u03c4(\u03ad|\u03b5)\u03c1\u03b1|\u03c4\u03c1(\u03af|\u03b9)\u03c4\u03b7|\u03c4\u03b5\u03c4(\u03ac|\u03b1)\u03c1\u03c4\u03b7|\u03c0(\u03ad|\u03b5)\u03bc\u03c0\u03c4\u03b7|\u03c0\u03b1\u03c1\u03b1\u03c3\u03ba\u03b5\u03c5(\u03ae|\u03b7)|\u03c3(\u03ac|\u03b1)\u03b2\u03b2\u03b1\u03c4\u03bf)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^\u03ba/i,/^\u03b4/i,/^\u03c4/i,/^\u03c4/i,/^\u03c0/i,/^\u03c0/i,/^\u03c3/i],any:[/^\u03ba/i,/^\u03b4/i,/^\u03c4\u03c1/i,/^\u03c4\u03b5/i,/^\u03c0[\u03b5\u03ad]/i,/^\u03c0[\u03b1\u03ac]/i,/^\u03c3/i]},defaultParseWidth:"any"}),dayPeriod:Di({matchPatterns:{narrow:/^(\u03c0\u03bc|\u03bc\u03bc|\u03bc\u03b5\u03c3(\u03ac|\u03b1)\u03bd\u03c5\u03c7\u03c4\u03b1|\u03bc\u03b5\u03c3\u03b7\u03bc(\u03ad|\u03b5)\u03c1\u03b9|\u03c0\u03c1\u03c9(\u03af|\u03b9)|\u03b1\u03c0(\u03cc|\u03bf)\u03b3\u03b5\u03c5\u03bc\u03b1|\u03b2\u03c1(\u03ac|\u03b1)\u03b4\u03c5|\u03bd(\u03cd|\u03c5)\u03c7\u03c4\u03b1)/i,any:/^([\u03c0\u03bc]\.?\s?\u03bc\.?|\u03bc\u03b5\u03c3(\u03ac|\u03b1)\u03bd\u03c5\u03c7\u03c4\u03b1|\u03bc\u03b5\u03c3\u03b7\u03bc(\u03ad|\u03b5)\u03c1\u03b9|\u03c0\u03c1\u03c9(\u03af|\u03b9)|\u03b1\u03c0(\u03cc|\u03bf)\u03b3\u03b5\u03c5\u03bc\u03b1|\u03b2\u03c1(\u03ac|\u03b1)\u03b4\u03c5|\u03bd(\u03cd|\u03c5)\u03c7\u03c4\u03b1)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^\u03c0\u03bc|\u03c0\.\s?\u03bc\./i,pm:/^\u03bc\u03bc|\u03bc\.\s?\u03bc\./i,midnight:/^\u03bc\u03b5\u03c3\u03ac\u03bd/i,noon:/^\u03bc\u03b5\u03c3\u03b7\u03bc(\u03ad|\u03b5)/i,morning:/\u03c0\u03c1\u03c9(\u03af|\u03b9)/i,afternoon:/\u03b1\u03c0(\u03cc|\u03bf)\u03b3\u03b5\u03c5\u03bc\u03b1/i,evening:/\u03b2\u03c1(\u03ac|\u03b1)\u03b4\u03c5/i,night:/\u03bd(\u03cd|\u03c5)\u03c7\u03c4\u03b1/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:4}},Iu={code:"en-GB",formatDistance:Wa,formatLong:{date:Xi({formats:{full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"dd/MM/yyyy"},defaultWidth:"full"}),time:Xi({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:Xi({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},formatRelative:on,localize:Bi,match:Nr,options:{weekStartsOn:1,firstWeekContainsDate:4}},Im={lessThanXSeconds:{one:"menos de un segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"medio minuto",lessThanXMinutes:{one:"menos de un minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"alrededor de 1 hora",other:"alrededor de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 d\xeda",other:"{{count}} d\xedas"},aboutXWeeks:{one:"alrededor de 1 semana",other:"alrededor de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"alrededor de 1 mes",other:"alrededor de {{count}} meses"},xMonths:{one:"1 mes",other:"{{count}} meses"},aboutXYears:{one:"alrededor de 1 a\xf1o",other:"alrededor de {{count}} a\xf1os"},xYears:{one:"1 a\xf1o",other:"{{count}} a\xf1os"},overXYears:{one:"m\xe1s de 1 a\xf1o",other:"m\xe1s de {{count}} a\xf1os"},almostXYears:{one:"casi 1 a\xf1o",other:"casi {{count}} a\xf1os"}},wm={date:Xi({formats:{full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/y"},defaultWidth:"full"}),time:Xi({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:Xi({formats:{full:"{{date}} 'a las' {{time}}",long:"{{date}} 'a las' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Rm={lastWeek:"'el' eeee 'pasado a la' p",yesterday:"'ayer a la' p",today:"'hoy a la' p",tomorrow:"'ma\xf1ana a la' p",nextWeek:"eeee 'a la' p",other:"P"},Nm={lastWeek:"'el' eeee 'pasado a las' p",yesterday:"'ayer a las' p",today:"'hoy a las' p",tomorrow:"'ma\xf1ana a las' p",nextWeek:"eeee 'a las' p",other:"P"},Oc={code:"es",formatDistance:(ee,H,W)=>{let oe;const pt=Im[ee];return oe="string"==typeof pt?pt:1===H?pt.one:pt.other.replace("{{count}}",H.toString()),W?.addSuffix?W.comparison&&W.comparison>0?"en "+oe:"hace "+oe:oe},formatLong:wm,formatRelative:(ee,H,W,oe)=>1!==H.getHours()?Nm[ee]:Rm[ee],localize:{ordinalNumber:(ee,H)=>Number(ee)+"\xba",era:Dt({values:{narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","despu\xe9s de cristo"]},defaultWidth:"wide"}),quarter:Dt({values:{narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1\xba trimestre","2\xba trimestre","3\xba trimestre","4\xba trimestre"]},defaultWidth:"wide",argumentCallback:ee=>Number(ee)-1}),month:Dt({values:{narrow:["e","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic"],wide:["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"]},defaultWidth:"wide"}),day:Dt({values:{narrow:["d","l","m","m","j","v","s"],short:["do","lu","ma","mi","ju","vi","s\xe1"],abbreviated:["dom","lun","mar","mi\xe9","jue","vie","s\xe1b"],wide:["domingo","lunes","martes","mi\xe9rcoles","jueves","viernes","s\xe1bado"]},defaultWidth:"wide"}),dayPeriod:Dt({values:{narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"ma\xf1ana",afternoon:"tarde",evening:"tarde",night:"noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"ma\xf1ana",afternoon:"tarde",evening:"tarde",night:"noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"ma\xf1ana",afternoon:"tarde",evening:"tarde",night:"noche"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"de la ma\xf1ana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"de la ma\xf1ana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"de la ma\xf1ana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:hs({matchPattern:/^(\d+)(\xba)?/i,parsePattern:/\d+/i,valueCallback:function(ee){return parseInt(ee,10)}}),era:Di({matchPatterns:{narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i,wide:/^(antes de cristo|antes de la era com[u\xfa]n|despu[e\xe9]s de cristo|era com[u\xfa]n)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^ac/i,/^dc/i],wide:[/^(antes de cristo|antes de la era com[u\xfa]n)/i,/^(despu[e\xe9]s de cristo|era com[u\xfa]n)/i]},defaultParseWidth:"any"}),quarter:Di({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](\xba)? trimestre/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:ee=>ee+1}),month:Di({matchPatterns:{narrow:/^[efmajsond]/i,abbreviated:/^(ene|feb|mar|abr|may|jun|jul|ago|sep|oct|nov|dic)/i,wide:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^e/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^en/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i]},defaultParseWidth:"any"}),day:Di({matchPatterns:{narrow:/^[dlmjvs]/i,short:/^(do|lu|ma|mi|ju|vi|s[\xe1a])/i,abbreviated:/^(dom|lun|mar|mi[\xe9e]|jue|vie|s[\xe1a]b)/i,wide:/^(domingo|lunes|martes|mi[\xe9e]rcoles|jueves|viernes|s[\xe1a]bado)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^do/i,/^lu/i,/^ma/i,/^mi/i,/^ju/i,/^vi/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:Di({matchPatterns:{narrow:/^(a|p|mn|md|(de la|a las) (ma\xf1ana|tarde|noche))/i,any:/^([ap]\.?\s?m\.?|medianoche|mediodia|(de la|a las) (ma\xf1ana|tarde|noche))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mn/i,noon:/^md/i,morning:/ma\xf1ana/i,afternoon:/tarde/i,evening:/tarde/i,night:/noche/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:1}};function Ih(ee){return ee.replace(/sekuntia?/,"sekunnin")}function Yf(ee){return ee.replace(/minuuttia?/,"minuutin")}function df(ee){return ee.replace(/tuntia?/,"tunnin")}function ru(ee){return ee.replace(/(viikko|viikkoa)/,"viikon")}function uf(ee){return ee.replace(/(kuukausi|kuukautta)/,"kuukauden")}function nd(ee){return ee.replace(/(vuosi|vuotta)/,"vuoden")}const To={lessThanXSeconds:{one:"alle sekunti",other:"alle {{count}} sekuntia",futureTense:Ih},xSeconds:{one:"sekunti",other:"{{count}} sekuntia",futureTense:Ih},halfAMinute:{one:"puoli minuuttia",other:"puoli minuuttia",futureTense:ee=>"puolen minuutin"},lessThanXMinutes:{one:"alle minuutti",other:"alle {{count}} minuuttia",futureTense:Yf},xMinutes:{one:"minuutti",other:"{{count}} minuuttia",futureTense:Yf},aboutXHours:{one:"noin tunti",other:"noin {{count}} tuntia",futureTense:df},xHours:{one:"tunti",other:"{{count}} tuntia",futureTense:df},xDays:{one:"p\xe4iv\xe4",other:"{{count}} p\xe4iv\xe4\xe4",futureTense:function Fm(ee){return ee.replace(/p\xe4iv\xe4\xe4?/,"p\xe4iv\xe4n")}},aboutXWeeks:{one:"noin viikko",other:"noin {{count}} viikkoa",futureTense:ru},xWeeks:{one:"viikko",other:"{{count}} viikkoa",futureTense:ru},aboutXMonths:{one:"noin kuukausi",other:"noin {{count}} kuukautta",futureTense:uf},xMonths:{one:"kuukausi",other:"{{count}} kuukautta",futureTense:uf},aboutXYears:{one:"noin vuosi",other:"noin {{count}} vuotta",futureTense:nd},xYears:{one:"vuosi",other:"{{count}} vuotta",futureTense:nd},overXYears:{one:"yli vuosi",other:"yli {{count}} vuotta",futureTense:nd},almostXYears:{one:"l\xe4hes vuosi",other:"l\xe4hes {{count}} vuotta",futureTense:nd}},Ra={date:Xi({formats:{full:"eeee d. MMMM y",long:"d. MMMM y",medium:"d. MMM y",short:"d.M.y"},defaultWidth:"full"}),time:Xi({formats:{full:"HH.mm.ss zzzz",long:"HH.mm.ss z",medium:"HH.mm.ss",short:"HH.mm"},defaultWidth:"full"}),dateTime:Xi({formats:{full:"{{date}} 'klo' {{time}}",long:"{{date}} 'klo' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},_g={lastWeek:"'viime' eeee 'klo' p",yesterday:"'eilen klo' p",today:"'t\xe4n\xe4\xe4n klo' p",tomorrow:"'huomenna klo' p",nextWeek:"'ensi' eeee 'klo' p",other:"P"},Zf={narrow:["T","H","M","H","T","K","H","E","S","L","M","J"],abbreviated:["tammi","helmi","maalis","huhti","touko","kes\xe4","hein\xe4","elo","syys","loka","marras","joulu"],wide:["tammikuu","helmikuu","maaliskuu","huhtikuu","toukokuu","kes\xe4kuu","hein\xe4kuu","elokuu","syyskuu","lokakuu","marraskuu","joulukuu"]},Vm={narrow:Zf.narrow,abbreviated:Zf.abbreviated,wide:["tammikuuta","helmikuuta","maaliskuuta","huhtikuuta","toukokuuta","kes\xe4kuuta","hein\xe4kuuta","elokuuta","syyskuuta","lokakuuta","marraskuuta","joulukuuta"]},ff={narrow:["S","M","T","K","T","P","L"],short:["su","ma","ti","ke","to","pe","la"],abbreviated:["sunn.","maan.","tiis.","kesk.","torst.","perj.","la"],wide:["sunnuntai","maanantai","tiistai","keskiviikko","torstai","perjantai","lauantai"]},yg={narrow:ff.narrow,short:ff.short,abbreviated:ff.abbreviated,wide:["sunnuntaina","maanantaina","tiistaina","keskiviikkona","torstaina","perjantaina","lauantaina"]},pf={code:"fi",formatDistance:(ee,H,W)=>{const oe=To[ee],pt=1===H?oe.one:oe.other.replace("{{count}}",String(H));return W?.addSuffix?W.comparison&&W.comparison>0?oe.futureTense(pt)+" kuluttua":pt+" sitten":pt},formatLong:Ra,formatRelative:(ee,H,W,oe)=>_g[ee],localize:{ordinalNumber:(ee,H)=>Number(ee)+".",era:Dt({values:{narrow:["eaa.","jaa."],abbreviated:["eaa.","jaa."],wide:["ennen ajanlaskun alkua","j\xe4lkeen ajanlaskun alun"]},defaultWidth:"wide"}),quarter:Dt({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1. kvartaali","2. kvartaali","3. kvartaali","4. kvartaali"]},defaultWidth:"wide",argumentCallback:ee=>ee-1}),month:Dt({values:Zf,defaultWidth:"wide",formattingValues:Vm,defaultFormattingWidth:"wide"}),day:Dt({values:ff,defaultWidth:"wide",formattingValues:yg,defaultFormattingWidth:"wide"}),dayPeriod:Dt({values:{narrow:{am:"ap",pm:"ip",midnight:"keskiy\xf6",noon:"keskip\xe4iv\xe4",morning:"ap",afternoon:"ip",evening:"illalla",night:"y\xf6ll\xe4"},abbreviated:{am:"ap",pm:"ip",midnight:"keskiy\xf6",noon:"keskip\xe4iv\xe4",morning:"ap",afternoon:"ip",evening:"illalla",night:"y\xf6ll\xe4"},wide:{am:"ap",pm:"ip",midnight:"keskiy\xf6ll\xe4",noon:"keskip\xe4iv\xe4ll\xe4",morning:"aamup\xe4iv\xe4ll\xe4",afternoon:"iltap\xe4iv\xe4ll\xe4",evening:"illalla",night:"y\xf6ll\xe4"}},defaultWidth:"wide"})},match:{ordinalNumber:hs({matchPattern:/^(\d+)(\.)/i,parsePattern:/\d+/i,valueCallback:ee=>parseInt(ee,10)}),era:Di({matchPatterns:{narrow:/^(e|j)/i,abbreviated:/^(eaa.|jaa.)/i,wide:/^(ennen ajanlaskun alkua|j\xe4lkeen ajanlaskun alun)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^e/i,/^j/i]},defaultParseWidth:"any"}),quarter:Di({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234]\.? kvartaali/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:ee=>ee+1}),month:Di({matchPatterns:{narrow:/^[thmkeslj]/i,abbreviated:/^(tammi|helmi|maalis|huhti|touko|kes\xe4|hein\xe4|elo|syys|loka|marras|joulu)/i,wide:/^(tammikuu|helmikuu|maaliskuu|huhtikuu|toukokuu|kes\xe4kuu|hein\xe4kuu|elokuu|syyskuu|lokakuu|marraskuu|joulukuu)(ta)?/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^t/i,/^h/i,/^m/i,/^h/i,/^t/i,/^k/i,/^h/i,/^e/i,/^s/i,/^l/i,/^m/i,/^j/i],any:[/^ta/i,/^hel/i,/^maa/i,/^hu/i,/^to/i,/^k/i,/^hei/i,/^e/i,/^s/i,/^l/i,/^mar/i,/^j/i]},defaultParseWidth:"any"}),day:Di({matchPatterns:{narrow:/^[smtkpl]/i,short:/^(su|ma|ti|ke|to|pe|la)/i,abbreviated:/^(sunn.|maan.|tiis.|kesk.|torst.|perj.|la)/i,wide:/^(sunnuntai|maanantai|tiistai|keskiviikko|torstai|perjantai|lauantai)(na)?/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^k/i,/^t/i,/^p/i,/^l/i],any:[/^s/i,/^m/i,/^ti/i,/^k/i,/^to/i,/^p/i,/^l/i]},defaultParseWidth:"any"}),dayPeriod:Di({matchPatterns:{narrow:/^(ap|ip|keskiy\xf6|keskip\xe4iv\xe4|aamup\xe4iv\xe4ll\xe4|iltap\xe4iv\xe4ll\xe4|illalla|y\xf6ll\xe4)/i,any:/^(ap|ip|keskiy\xf6ll\xe4|keskip\xe4iv\xe4ll\xe4|aamup\xe4iv\xe4ll\xe4|iltap\xe4iv\xe4ll\xe4|illalla|y\xf6ll\xe4)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^ap/i,pm:/^ip/i,midnight:/^keskiy\xf6/i,noon:/^keskip\xe4iv\xe4/i,morning:/aamup\xe4iv\xe4ll\xe4/i,afternoon:/iltap\xe4iv\xe4ll\xe4/i,evening:/illalla/i,night:/y\xf6ll\xe4/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:4}},tp={lessThanXSeconds:{one:"moins d\u2019une seconde",other:"moins de {{count}} secondes"},xSeconds:{one:"1 seconde",other:"{{count}} secondes"},halfAMinute:"30 secondes",lessThanXMinutes:{one:"moins d\u2019une minute",other:"moins de {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"environ 1 heure",other:"environ {{count}} heures"},xHours:{one:"1 heure",other:"{{count}} heures"},xDays:{one:"1 jour",other:"{{count}} jours"},aboutXWeeks:{one:"environ 1 semaine",other:"environ {{count}} semaines"},xWeeks:{one:"1 semaine",other:"{{count}} semaines"},aboutXMonths:{one:"environ 1 mois",other:"environ {{count}} mois"},xMonths:{one:"1 mois",other:"{{count}} mois"},aboutXYears:{one:"environ 1 an",other:"environ {{count}} ans"},xYears:{one:"1 an",other:"{{count}} ans"},overXYears:{one:"plus d\u2019un an",other:"plus de {{count}} ans"},almostXYears:{one:"presqu\u2019un an",other:"presque {{count}} ans"}},ip={date:Xi({formats:{full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd/MM/y"},defaultWidth:"full"}),time:Xi({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:Xi({formats:{full:"{{date}} '\xe0' {{time}}",long:"{{date}} '\xe0' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},ah={lastWeek:"eeee 'dernier \xe0' p",yesterday:"'hier \xe0' p",today:"'aujourd\u2019hui \xe0' p",tomorrow:"'demain \xe0' p'",nextWeek:"eeee 'prochain \xe0' p",other:"P"},Ag=["MMM","MMMM"],Jm={code:"fr",formatDistance:(ee,H,W)=>{let oe;const pt=tp[ee];return oe="string"==typeof pt?pt:1===H?pt.one:pt.other.replace("{{count}}",String(H)),W?.addSuffix?W.comparison&&W.comparison>0?"dans "+oe:"il y a "+oe:oe},formatLong:ip,formatRelative:(ee,H,W,oe)=>ah[ee],localize:{preprocessor:(ee,H)=>1!==ee.getDate()&&H.some(oe=>oe.isToken&&Ag.includes(oe.value))?H.map(oe=>oe.isToken&&"do"===oe.value?{isToken:!0,value:"d"}:oe):H,ordinalNumber:(ee,H)=>{const W=Number(ee),oe=H?.unit;if(0===W)return"0";let wn;return wn=1===W?oe&&["year","week","hour","minute","second"].includes(oe)?"\xe8re":"er":"\xe8me",W+wn},era:Dt({values:{narrow:["av. J.-C","ap. J.-C"],abbreviated:["av. J.-C","ap. J.-C"],wide:["avant J\xe9sus-Christ","apr\xe8s J\xe9sus-Christ"]},defaultWidth:"wide"}),quarter:Dt({values:{narrow:["T1","T2","T3","T4"],abbreviated:["1er trim.","2\xe8me trim.","3\xe8me trim.","4\xe8me trim."],wide:["1er trimestre","2\xe8me trimestre","3\xe8me trimestre","4\xe8me trimestre"]},defaultWidth:"wide",argumentCallback:ee=>ee-1}),month:Dt({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["janv.","f\xe9vr.","mars","avr.","mai","juin","juil.","ao\xfbt","sept.","oct.","nov.","d\xe9c."],wide:["janvier","f\xe9vrier","mars","avril","mai","juin","juillet","ao\xfbt","septembre","octobre","novembre","d\xe9cembre"]},defaultWidth:"wide"}),day:Dt({values:{narrow:["D","L","M","M","J","V","S"],short:["di","lu","ma","me","je","ve","sa"],abbreviated:["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],wide:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},defaultWidth:"wide"}),dayPeriod:Dt({values:{narrow:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"mat.",afternoon:"ap.m.",evening:"soir",night:"mat."},abbreviated:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"matin",afternoon:"apr\xe8s-midi",evening:"soir",night:"matin"},wide:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"du matin",afternoon:"de l\u2019apr\xe8s-midi",evening:"du soir",night:"du matin"}},defaultWidth:"wide"})},match:{ordinalNumber:hs({matchPattern:/^(\d+)(i\xe8me|\xe8re|\xe8me|er|e)?/i,parsePattern:/\d+/i,valueCallback:ee=>parseInt(ee)}),era:Di({matchPatterns:{narrow:/^(av\.J\.C|ap\.J\.C|ap\.J\.-C)/i,abbreviated:/^(av\.J\.-C|av\.J-C|apr\.J\.-C|apr\.J-C|ap\.J-C)/i,wide:/^(avant J\xe9sus-Christ|apr\xe8s J\xe9sus-Christ)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^av/i,/^ap/i]},defaultParseWidth:"any"}),quarter:Di({matchPatterns:{narrow:/^T?[1234]/i,abbreviated:/^[1234](er|\xe8me|e)? trim\.?/i,wide:/^[1234](er|\xe8me|e)? trimestre/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:ee=>ee+1}),month:Di({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(janv|f\xe9vr|mars|avr|mai|juin|juill|juil|ao\xfbt|sept|oct|nov|d\xe9c)\.?/i,wide:/^(janvier|f\xe9vrier|mars|avril|mai|juin|juillet|ao\xfbt|septembre|octobre|novembre|d\xe9cembre)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^av/i,/^ma/i,/^juin/i,/^juil/i,/^ao/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:Di({matchPatterns:{narrow:/^[lmjvsd]/i,short:/^(di|lu|ma|me|je|ve|sa)/i,abbreviated:/^(dim|lun|mar|mer|jeu|ven|sam)\.?/i,wide:/^(dimanche|lundi|mardi|mercredi|jeudi|vendredi|samedi)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^di/i,/^lu/i,/^ma/i,/^me/i,/^je/i,/^ve/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:Di({matchPatterns:{narrow:/^(a|p|minuit|midi|mat\.?|ap\.?m\.?|soir|nuit)/i,any:/^([ap]\.?\s?m\.?|du matin|de l'apr\xe8s[-\s]midi|du soir|de la nuit)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^min/i,noon:/^mid/i,morning:/mat/i,afternoon:/ap/i,evening:/soir/i,night:/nuit/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:4}},qm={lessThanXSeconds:{one:{standalone:"manje od 1 sekunde",withPrepositionAgo:"manje od 1 sekunde",withPrepositionIn:"manje od 1 sekundu"},dual:"manje od {{count}} sekunde",other:"manje od {{count}} sekundi"},xSeconds:{one:{standalone:"1 sekunda",withPrepositionAgo:"1 sekunde",withPrepositionIn:"1 sekundu"},dual:"{{count}} sekunde",other:"{{count}} sekundi"},halfAMinute:"pola minute",lessThanXMinutes:{one:{standalone:"manje od 1 minute",withPrepositionAgo:"manje od 1 minute",withPrepositionIn:"manje od 1 minutu"},dual:"manje od {{count}} minute",other:"manje od {{count}} minuta"},xMinutes:{one:{standalone:"1 minuta",withPrepositionAgo:"1 minute",withPrepositionIn:"1 minutu"},dual:"{{count}} minute",other:"{{count}} minuta"},aboutXHours:{one:{standalone:"oko 1 sat",withPrepositionAgo:"oko 1 sat",withPrepositionIn:"oko 1 sat"},dual:"oko {{count}} sata",other:"oko {{count}} sati"},xHours:{one:{standalone:"1 sat",withPrepositionAgo:"1 sat",withPrepositionIn:"1 sat"},dual:"{{count}} sata",other:"{{count}} sati"},xDays:{one:{standalone:"1 dan",withPrepositionAgo:"1 dan",withPrepositionIn:"1 dan"},dual:"{{count}} dana",other:"{{count}} dana"},aboutXWeeks:{one:{standalone:"oko 1 tjedan",withPrepositionAgo:"oko 1 tjedan",withPrepositionIn:"oko 1 tjedan"},dual:"oko {{count}} tjedna",other:"oko {{count}} tjedana"},xWeeks:{one:{standalone:"1 tjedan",withPrepositionAgo:"1 tjedan",withPrepositionIn:"1 tjedan"},dual:"{{count}} tjedna",other:"{{count}} tjedana"},aboutXMonths:{one:{standalone:"oko 1 mjesec",withPrepositionAgo:"oko 1 mjesec",withPrepositionIn:"oko 1 mjesec"},dual:"oko {{count}} mjeseca",other:"oko {{count}} mjeseci"},xMonths:{one:{standalone:"1 mjesec",withPrepositionAgo:"1 mjesec",withPrepositionIn:"1 mjesec"},dual:"{{count}} mjeseca",other:"{{count}} mjeseci"},aboutXYears:{one:{standalone:"oko 1 godinu",withPrepositionAgo:"oko 1 godinu",withPrepositionIn:"oko 1 godinu"},dual:"oko {{count}} godine",other:"oko {{count}} godina"},xYears:{one:{standalone:"1 godina",withPrepositionAgo:"1 godine",withPrepositionIn:"1 godinu"},dual:"{{count}} godine",other:"{{count}} godina"},overXYears:{one:{standalone:"preko 1 godinu",withPrepositionAgo:"preko 1 godinu",withPrepositionIn:"preko 1 godinu"},dual:"preko {{count}} godine",other:"preko {{count}} godina"},almostXYears:{one:{standalone:"gotovo 1 godinu",withPrepositionAgo:"gotovo 1 godinu",withPrepositionIn:"gotovo 1 godinu"},dual:"gotovo {{count}} godine",other:"gotovo {{count}} godina"}},ev={date:Xi({formats:{full:"EEEE, d. MMMM y.",long:"d. MMMM y.",medium:"d. MMM y.",short:"dd. MM. y."},defaultWidth:"full"}),time:Xi({formats:{full:"HH:mm:ss (zzzz)",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:Xi({formats:{full:"{{date}} 'u' {{time}}",long:"{{date}} 'u' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},tv={lastWeek:ee=>{switch(ee.getDay()){case 0:return"'pro\u0161lu nedjelju u' p";case 3:return"'pro\u0161lu srijedu u' p";case 6:return"'pro\u0161lu subotu u' p";default:return"'pro\u0161li' EEEE 'u' p"}},yesterday:"'ju\u010der u' p",today:"'danas u' p",tomorrow:"'sutra u' p",nextWeek:ee=>{switch(ee.getDay()){case 0:return"'idu\u0107u nedjelju u' p";case 3:return"'idu\u0107u srijedu u' p";case 6:return"'idu\u0107u subotu u' p";default:return"'pro\u0161li' EEEE 'u' p"}},other:"P"},Ng={code:"hr",formatDistance:(ee,H,W)=>{let oe;const pt=qm[ee];return oe="string"==typeof pt?pt:1===H?W?.addSuffix?W.comparison&&W.comparison>0?pt.one.withPrepositionIn:pt.one.withPrepositionAgo:pt.one.standalone:H%10>1&&H%10<5&&"1"!==String(H).substr(-2,1)?pt.dual.replace("{{count}}",String(H)):pt.other.replace("{{count}}",String(H)),W?.addSuffix?W.comparison&&W.comparison>0?"za "+oe:"prije "+oe:oe},formatLong:ev,formatRelative:(ee,H,W,oe)=>{const pt=tv[ee];return"function"==typeof pt?pt(H):pt},localize:{ordinalNumber:(ee,H)=>Number(ee)+".",era:Dt({values:{narrow:["pr.n.e.","AD"],abbreviated:["pr. Kr.","po. Kr."],wide:["Prije Krista","Poslije Krista"]},defaultWidth:"wide"}),quarter:Dt({values:{narrow:["1.","2.","3.","4."],abbreviated:["1. kv.","2. kv.","3. kv.","4. kv."],wide:["1. kvartal","2. kvartal","3. kvartal","4. kvartal"]},defaultWidth:"wide",argumentCallback:ee=>ee-1}),month:Dt({values:{narrow:["1.","2.","3.","4.","5.","6.","7.","8.","9.","10.","11.","12."],abbreviated:["sij","velj","o\u017eu","tra","svi","lip","srp","kol","ruj","lis","stu","pro"],wide:["sije\u010danj","velja\u010da","o\u017eujak","travanj","svibanj","lipanj","srpanj","kolovoz","rujan","listopad","studeni","prosinac"]},defaultWidth:"wide",formattingValues:{narrow:["1.","2.","3.","4.","5.","6.","7.","8.","9.","10.","11.","12."],abbreviated:["sij","velj","o\u017eu","tra","svi","lip","srp","kol","ruj","lis","stu","pro"],wide:["sije\u010dnja","velja\u010de","o\u017eujka","travnja","svibnja","lipnja","srpnja","kolovoza","rujna","listopada","studenog","prosinca"]},defaultFormattingWidth:"wide"}),day:Dt({values:{narrow:["N","P","U","S","\u010c","P","S"],short:["ned","pon","uto","sri","\u010det","pet","sub"],abbreviated:["ned","pon","uto","sri","\u010det","pet","sub"],wide:["nedjelja","ponedjeljak","utorak","srijeda","\u010detvrtak","petak","subota"]},defaultWidth:"wide"}),dayPeriod:Dt({values:{narrow:{am:"AM",pm:"PM",midnight:"pono\u0107",noon:"podne",morning:"ujutro",afternoon:"popodne",evening:"nave\u010der",night:"no\u0107u"},abbreviated:{am:"AM",pm:"PM",midnight:"pono\u0107",noon:"podne",morning:"ujutro",afternoon:"popodne",evening:"nave\u010der",night:"no\u0107u"},wide:{am:"AM",pm:"PM",midnight:"pono\u0107",noon:"podne",morning:"ujutro",afternoon:"poslije podne",evening:"nave\u010der",night:"no\u0107u"}},defaultWidth:"wide",formattingValues:{narrow:{am:"AM",pm:"PM",midnight:"pono\u0107",noon:"podne",morning:"ujutro",afternoon:"popodne",evening:"nave\u010der",night:"no\u0107u"},abbreviated:{am:"AM",pm:"PM",midnight:"pono\u0107",noon:"podne",morning:"ujutro",afternoon:"popodne",evening:"nave\u010der",night:"no\u0107u"},wide:{am:"AM",pm:"PM",midnight:"pono\u0107",noon:"podne",morning:"ujutro",afternoon:"poslije podne",evening:"nave\u010der",night:"no\u0107u"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:hs({matchPattern:/^(\d+)\./i,parsePattern:/\d+/i,valueCallback:ee=>parseInt(ee,10)}),era:Di({matchPatterns:{narrow:/^(pr\.n\.e\.|AD)/i,abbreviated:/^(pr\.\s?Kr\.|po\.\s?Kr\.)/i,wide:/^(Prije Krista|prije nove ere|Poslije Krista|nova era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^pr/i,/^(po|nova)/i]},defaultParseWidth:"any"}),quarter:Di({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234]\.\s?kv\.?/i,wide:/^[1234]\. kvartal/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:ee=>ee+1}),month:Di({matchPatterns:{narrow:/^(10|11|12|[123456789])\./i,abbreviated:/^(sij|velj|(o\u017eu|ozu)|tra|svi|lip|srp|kol|ruj|lis|stu|pro)/i,wide:/^((sije\u010danj|sije\u010dnja|sijecanj|sijecnja)|(velja\u010da|velja\u010de|veljaca|veljace)|(o\u017eujak|o\u017eujka|ozujak|ozujka)|(travanj|travnja)|(svibanj|svibnja)|(lipanj|lipnja)|(srpanj|srpnja)|(kolovoz|kolovoza)|(rujan|rujna)|(listopad|listopada)|(studeni|studenog)|(prosinac|prosinca))/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/1/i,/2/i,/3/i,/4/i,/5/i,/6/i,/7/i,/8/i,/9/i,/10/i,/11/i,/12/i],abbreviated:[/^sij/i,/^velj/i,/^(o\u017eu|ozu)/i,/^tra/i,/^svi/i,/^lip/i,/^srp/i,/^kol/i,/^ruj/i,/^lis/i,/^stu/i,/^pro/i],wide:[/^sij/i,/^velj/i,/^(o\u017eu|ozu)/i,/^tra/i,/^svi/i,/^lip/i,/^srp/i,/^kol/i,/^ruj/i,/^lis/i,/^stu/i,/^pro/i]},defaultParseWidth:"wide"}),day:Di({matchPatterns:{narrow:/^[npus\u010dc]/i,short:/^(ned|pon|uto|sri|(\u010det|cet)|pet|sub)/i,abbreviated:/^(ned|pon|uto|sri|(\u010det|cet)|pet|sub)/i,wide:/^(nedjelja|ponedjeljak|utorak|srijeda|(\u010detvrtak|cetvrtak)|petak|subota)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:Di({matchPatterns:{any:/^(am|pm|ponoc|pono\u0107|(po)?podne|navecer|nave\u010der|no\u0107u|poslije podne|ujutro)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^pono/i,noon:/^pod/i,morning:/jutro/i,afternoon:/(poslije\s|po)+podne/i,evening:/(navece|nave\u010de)/i,night:/(nocu|no\u0107u)/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:1}},rv={about:"k\xf6r\xfclbel\xfcl",over:"t\xf6bb mint",almost:"majdnem",lessthan:"kevesebb mint"},hp={xseconds:" m\xe1sodperc",halfaminute:"f\xe9l perc",xminutes:" perc",xhours:" \xf3ra",xdays:" nap",xweeks:" h\xe9t",xmonths:" h\xf3nap",xyears:" \xe9v"},Lg={xseconds:{"-1":" m\xe1sodperccel ezel\u0151tt",1:" m\xe1sodperc m\xfalva",0:" m\xe1sodperce"},halfaminute:{"-1":"f\xe9l perccel ezel\u0151tt",1:"f\xe9l perc m\xfalva",0:"f\xe9l perce"},xminutes:{"-1":" perccel ezel\u0151tt",1:" perc m\xfalva",0:" perce"},xhours:{"-1":" \xf3r\xe1val ezel\u0151tt",1:" \xf3ra m\xfalva",0:" \xf3r\xe1ja"},xdays:{"-1":" nappal ezel\u0151tt",1:" nap m\xfalva",0:" napja"},xweeks:{"-1":" h\xe9ttel ezel\u0151tt",1:" h\xe9t m\xfalva",0:" hete"},xmonths:{"-1":" h\xf3nappal ezel\u0151tt",1:" h\xf3nap m\xfalva",0:" h\xf3napja"},xyears:{"-1":" \xe9vvel ezel\u0151tt",1:" \xe9v m\xfalva",0:" \xe9ve"}},ch={date:Xi({formats:{full:"y. MMMM d., EEEE",long:"y. MMMM d.",medium:"y. MMM d.",short:"y. MM. dd."},defaultWidth:"full"}),time:Xi({formats:{full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},defaultWidth:"full"}),dateTime:Xi({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},fp=["vas\xe1rnap","h\xe9tf\u0151n","kedden","szerd\xe1n","cs\xfct\xf6rt\xf6k\xf6n","p\xe9nteken","szombaton"];function pp(ee){return H=>{const W=fp[H.getDay()];return`${ee?"":"'m\xfalt' "}'${W}' p'-kor'`}}const sv={lastWeek:pp(!1),yesterday:"'tegnap' p'-kor'",today:"'ma' p'-kor'",tomorrow:"'holnap' p'-kor'",nextWeek:pp(!0),other:"P"},Mc={code:"hu",formatDistance:(ee,H,W)=>{const oe=ee.match(/about|over|almost|lessthan/i),pt=oe?ee.replace(oe[0],""):ee,wn=!0===W?.addSuffix,hi=pt.toLowerCase(),$r=wn?Lg[hi][W?.comparison||0]:hp[hi];let Ts="halfaminute"===hi?$r:H+$r;if(oe){const Cs=oe[0].toLowerCase();Ts=rv[Cs]+" "+Ts}return Ts},formatLong:ch,formatRelative:(ee,H)=>{const W=sv[ee];return"function"==typeof W?W(H):W},localize:{ordinalNumber:(ee,H)=>Number(ee)+".",era:Dt({values:{narrow:["ie.","isz."],abbreviated:["i. e.","i. sz."],wide:["Krisztus el\u0151tt","id\u0151sz\xe1m\xedt\xe1sunk szerint"]},defaultWidth:"wide"}),quarter:Dt({values:{narrow:["1.","2.","3.","4."],abbreviated:["1. n.\xe9v","2. n.\xe9v","3. n.\xe9v","4. n.\xe9v"],wide:["1. negyed\xe9v","2. negyed\xe9v","3. negyed\xe9v","4. negyed\xe9v"]},defaultWidth:"wide",argumentCallback:ee=>ee-1,formattingValues:{narrow:["I.","II.","III.","IV."],abbreviated:["I. n.\xe9v","II. n.\xe9v","III. n.\xe9v","IV. n.\xe9v"],wide:["I. negyed\xe9v","II. negyed\xe9v","III. negyed\xe9v","IV. negyed\xe9v"]},defaultFormattingWidth:"wide"}),month:Dt({values:{narrow:["J","F","M","\xc1","M","J","J","A","Sz","O","N","D"],abbreviated:["jan.","febr.","m\xe1rc.","\xe1pr.","m\xe1j.","j\xfan.","j\xfal.","aug.","szept.","okt.","nov.","dec."],wide:["janu\xe1r","febru\xe1r","m\xe1rcius","\xe1prilis","m\xe1jus","j\xfanius","j\xfalius","augusztus","szeptember","okt\xf3ber","november","december"]},defaultWidth:"wide"}),day:Dt({values:{narrow:["V","H","K","Sz","Cs","P","Sz"],short:["V","H","K","Sze","Cs","P","Szo"],abbreviated:["V","H","K","Sze","Cs","P","Szo"],wide:["vas\xe1rnap","h\xe9tf\u0151","kedd","szerda","cs\xfct\xf6rt\xf6k","p\xe9ntek","szombat"]},defaultWidth:"wide"}),dayPeriod:Dt({values:{narrow:{am:"de.",pm:"du.",midnight:"\xe9jf\xe9l",noon:"d\xe9l",morning:"reggel",afternoon:"du.",evening:"este",night:"\xe9jjel"},abbreviated:{am:"de.",pm:"du.",midnight:"\xe9jf\xe9l",noon:"d\xe9l",morning:"reggel",afternoon:"du.",evening:"este",night:"\xe9jjel"},wide:{am:"de.",pm:"du.",midnight:"\xe9jf\xe9l",noon:"d\xe9l",morning:"reggel",afternoon:"d\xe9lut\xe1n",evening:"este",night:"\xe9jjel"}},defaultWidth:"wide"})},match:{ordinalNumber:hs({matchPattern:/^(\d+)\.?/i,parsePattern:/\d+/i,valueCallback:ee=>parseInt(ee,10)}),era:Di({matchPatterns:{narrow:/^(ie\.|isz\.)/i,abbreviated:/^(i\.\s?e\.?|b?\s?c\s?e|i\.\s?sz\.?)/i,wide:/^(Krisztus el\u0151tt|id\u0151sz\xe1m\xedt\xe1sunk el\u0151tt|id\u0151sz\xe1m\xedt\xe1sunk szerint|i\. sz\.)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/ie/i,/isz/i],abbreviated:[/^(i\.?\s?e\.?|b\s?ce)/i,/^(i\.?\s?sz\.?|c\s?e)/i],any:[/el\u0151tt/i,/(szerint|i. sz.)/i]},defaultParseWidth:"any"}),quarter:Di({matchPatterns:{narrow:/^[1234]\.?/i,abbreviated:/^[1234]?\.?\s?n\.\xe9v/i,wide:/^([1234]|I|II|III|IV)?\.?\s?negyed\xe9v/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1|I$/i,/2|II$/i,/3|III/i,/4|IV/i]},defaultParseWidth:"any",valueCallback:ee=>ee+1}),month:Di({matchPatterns:{narrow:/^[jfma\xe1sond]|sz/i,abbreviated:/^(jan\.?|febr\.?|m\xe1rc\.?|\xe1pr\.?|m\xe1j\.?|j\xfan\.?|j\xfal\.?|aug\.?|szept\.?|okt\.?|nov\.?|dec\.?)/i,wide:/^(janu\xe1r|febru\xe1r|m\xe1rcius|\xe1prilis|m\xe1jus|j\xfanius|j\xfalius|augusztus|szeptember|okt\xf3ber|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a|\xe1/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s|sz/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^m\xe1r/i,/^\xe1p/i,/^m\xe1j/i,/^j\xfan/i,/^j\xfal/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:Di({matchPatterns:{narrow:/^([vhkpc]|sz|cs|sz)/i,short:/^([vhkp]|sze|cs|szo)/i,abbreviated:/^([vhkp]|sze|cs|szo)/i,wide:/^(vas\xe1rnap|h\xe9tf\u0151|kedd|szerda|cs\xfct\xf6rt\xf6k|p\xe9ntek|szombat)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^v/i,/^h/i,/^k/i,/^sz/i,/^c/i,/^p/i,/^sz/i],any:[/^v/i,/^h/i,/^k/i,/^sze/i,/^c/i,/^p/i,/^szo/i]},defaultParseWidth:"any"}),dayPeriod:Di({matchPatterns:{any:/^((de|du)\.?|\xe9jf\xe9l|d\xe9lut\xe1n|d\xe9l|reggel|este|\xe9jjel)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^de\.?/i,pm:/^du\.?/i,midnight:/^\xe9jf/i,noon:/^d\xe9/i,morning:/reg/i,afternoon:/^d\xe9lu\.?/i,evening:/es/i,night:/\xe9jj/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:4}},L={lessThanXSeconds:{one:"meno di un secondo",other:"meno di {{count}} secondi"},xSeconds:{one:"un secondo",other:"{{count}} secondi"},halfAMinute:"alcuni secondi",lessThanXMinutes:{one:"meno di un minuto",other:"meno di {{count}} minuti"},xMinutes:{one:"un minuto",other:"{{count}} minuti"},aboutXHours:{one:"circa un'ora",other:"circa {{count}} ore"},xHours:{one:"un'ora",other:"{{count}} ore"},xDays:{one:"un giorno",other:"{{count}} giorni"},aboutXWeeks:{one:"circa una settimana",other:"circa {{count}} settimane"},xWeeks:{one:"una settimana",other:"{{count}} settimane"},aboutXMonths:{one:"circa un mese",other:"circa {{count}} mesi"},xMonths:{one:"un mese",other:"{{count}} mesi"},aboutXYears:{one:"circa un anno",other:"circa {{count}} anni"},xYears:{one:"un anno",other:"{{count}} anni"},overXYears:{one:"pi\xf9 di un anno",other:"pi\xf9 di {{count}} anni"},almostXYears:{one:"quasi un anno",other:"quasi {{count}} anni"}},Fn={date:Xi({formats:{full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd/MM/y"},defaultWidth:"full"}),time:Xi({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:Xi({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},ni=["domenica","luned\xec","marted\xec","mercoled\xec","gioved\xec","venerd\xec","sabato"];function Mi(ee){return"'"+ni[ee]+" alle' p"}const sr={lastWeek:(ee,H,W)=>{const oe=ee.getDay();return Rl(ee,H,W)?Mi(oe):function ci(ee){return 0===ee?"'domenica scorsa alle' p":"'"+ni[ee]+" scorso alle' p"}(oe)},yesterday:"'ieri alle' p",today:"'oggi alle' p",tomorrow:"'domani alle' p",nextWeek:(ee,H,W)=>{const oe=ee.getDay();return Rl(ee,H,W)?Mi(oe):function or(ee){return 0===ee?"'domenica prossima alle' p":"'"+ni[ee]+" prossimo alle' p"}(oe)},other:"P"},mv={code:"it",formatDistance:(ee,H,W)=>{let oe;const pt=L[ee];return oe="string"==typeof pt?pt:1===H?pt.one:pt.other.replace("{{count}}",H.toString()),W?.addSuffix?W.comparison&&W.comparison>0?"tra "+oe:oe+" fa":oe},formatLong:Fn,formatRelative:(ee,H,W,oe)=>{const pt=sr[ee];return"function"==typeof pt?pt(H,W,oe):pt},localize:{ordinalNumber:(ee,H)=>{const W=Number(ee);return String(W)},era:Dt({values:{narrow:["aC","dC"],abbreviated:["a.C.","d.C."],wide:["avanti Cristo","dopo Cristo"]},defaultWidth:"wide"}),quarter:Dt({values:{narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1\xba trimestre","2\xba trimestre","3\xba trimestre","4\xba trimestre"]},defaultWidth:"wide",argumentCallback:ee=>ee-1}),month:Dt({values:{narrow:["G","F","M","A","M","G","L","A","S","O","N","D"],abbreviated:["gen","feb","mar","apr","mag","giu","lug","ago","set","ott","nov","dic"],wide:["gennaio","febbraio","marzo","aprile","maggio","giugno","luglio","agosto","settembre","ottobre","novembre","dicembre"]},defaultWidth:"wide"}),day:Dt({values:{narrow:["D","L","M","M","G","V","S"],short:["dom","lun","mar","mer","gio","ven","sab"],abbreviated:["dom","lun","mar","mer","gio","ven","sab"],wide:["domenica","luned\xec","marted\xec","mercoled\xec","gioved\xec","venerd\xec","sabato"]},defaultWidth:"wide"}),dayPeriod:Dt({values:{narrow:{am:"m.",pm:"p.",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"},abbreviated:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"},wide:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"}},defaultWidth:"wide",formattingValues:{narrow:{am:"m.",pm:"p.",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"},abbreviated:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"},wide:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:hs({matchPattern:/^(\d+)(\xba)?/i,parsePattern:/\d+/i,valueCallback:ee=>parseInt(ee,10)}),era:Di({matchPatterns:{narrow:/^(aC|dC)/i,abbreviated:/^(a\.?\s?C\.?|a\.?\s?e\.?\s?v\.?|d\.?\s?C\.?|e\.?\s?v\.?)/i,wide:/^(avanti Cristo|avanti Era Volgare|dopo Cristo|Era Volgare)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^a/i,/^(d|e)/i]},defaultParseWidth:"any"}),quarter:Di({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^t[1234]/i,wide:/^[1234](\xba)? trimestre/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:ee=>ee+1}),month:Di({matchPatterns:{narrow:/^[gfmalsond]/i,abbreviated:/^(gen|feb|mar|apr|mag|giu|lug|ago|set|ott|nov|dic)/i,wide:/^(gennaio|febbraio|marzo|aprile|maggio|giugno|luglio|agosto|settembre|ottobre|novembre|dicembre)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^g/i,/^f/i,/^m/i,/^a/i,/^m/i,/^g/i,/^l/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ge/i,/^f/i,/^mar/i,/^ap/i,/^mag/i,/^gi/i,/^l/i,/^ag/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:Di({matchPatterns:{narrow:/^[dlmgvs]/i,short:/^(do|lu|ma|me|gi|ve|sa)/i,abbreviated:/^(dom|lun|mar|mer|gio|ven|sab)/i,wide:/^(domenica|luned[i|\xec]|marted[i|\xec]|mercoled[i|\xec]|gioved[i|\xec]|venerd[i|\xec]|sabato)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^g/i,/^v/i,/^s/i],any:[/^d/i,/^l/i,/^ma/i,/^me/i,/^g/i,/^v/i,/^s/i]},defaultParseWidth:"any"}),dayPeriod:Di({matchPatterns:{narrow:/^(a|m\.|p|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i,any:/^([ap]\.?\s?m\.?|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mezza/i,noon:/^mezzo/i,morning:/mattina/i,afternoon:/pomeriggio/i,evening:/sera/i,night:/notte/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:4}},yp={lessThanXSeconds:{one:"1\u79d2\u672a\u6e80",other:"{{count}}\u79d2\u672a\u6e80",oneWithSuffix:"\u7d041\u79d2",otherWithSuffix:"\u7d04{{count}}\u79d2"},xSeconds:{one:"1\u79d2",other:"{{count}}\u79d2"},halfAMinute:"30\u79d2",lessThanXMinutes:{one:"1\u5206\u672a\u6e80",other:"{{count}}\u5206\u672a\u6e80",oneWithSuffix:"\u7d041\u5206",otherWithSuffix:"\u7d04{{count}}\u5206"},xMinutes:{one:"1\u5206",other:"{{count}}\u5206"},aboutXHours:{one:"\u7d041\u6642\u9593",other:"\u7d04{{count}}\u6642\u9593"},xHours:{one:"1\u6642\u9593",other:"{{count}}\u6642\u9593"},xDays:{one:"1\u65e5",other:"{{count}}\u65e5"},aboutXWeeks:{one:"\u7d041\u9031\u9593",other:"\u7d04{{count}}\u9031\u9593"},xWeeks:{one:"1\u9031\u9593",other:"{{count}}\u9031\u9593"},aboutXMonths:{one:"\u7d041\u304b\u6708",other:"\u7d04{{count}}\u304b\u6708"},xMonths:{one:"1\u304b\u6708",other:"{{count}}\u304b\u6708"},aboutXYears:{one:"\u7d041\u5e74",other:"\u7d04{{count}}\u5e74"},xYears:{one:"1\u5e74",other:"{{count}}\u5e74"},overXYears:{one:"1\u5e74\u4ee5\u4e0a",other:"{{count}}\u5e74\u4ee5\u4e0a"},almostXYears:{one:"1\u5e74\u8fd1\u304f",other:"{{count}}\u5e74\u8fd1\u304f"}},bp={date:Xi({formats:{full:"y\u5e74M\u6708d\u65e5EEEE",long:"y\u5e74M\u6708d\u65e5",medium:"y/MM/dd",short:"y/MM/dd"},defaultWidth:"full"}),time:Xi({formats:{full:"H\u6642mm\u5206ss\u79d2 zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},defaultWidth:"full"}),dateTime:Xi({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},v_={lastWeek:"\u5148\u9031\u306eeeee\u306ep",yesterday:"\u6628\u65e5\u306ep",today:"\u4eca\u65e5\u306ep",tomorrow:"\u660e\u65e5\u306ep",nextWeek:"\u7fcc\u9031\u306eeeee\u306ep",other:"P"},Wb={code:"ja",formatDistance:(ee,H,W)=>{let oe;W=W||{};const pt=yp[ee];return oe="string"==typeof pt?pt:1===H?W.addSuffix&&pt.oneWithSuffix?pt.oneWithSuffix:pt.one:W.addSuffix&&pt.otherWithSuffix?pt.otherWithSuffix.replace("{{count}}",String(H)):pt.other.replace("{{count}}",String(H)),W.addSuffix?W.comparison&&W.comparison>0?oe+"\u5f8c":oe+"\u524d":oe},formatLong:bp,formatRelative:(ee,H,W,oe)=>v_[ee],localize:{ordinalNumber:(ee,H)=>{const W=Number(ee);switch(String(H?.unit)){case"year":return`${W}\u5e74`;case"quarter":return`\u7b2c${W}\u56db\u534a\u671f`;case"month":return`${W}\u6708`;case"week":return`\u7b2c${W}\u9031`;case"date":return`${W}\u65e5`;case"hour":return`${W}\u6642`;case"minute":return`${W}\u5206`;case"second":return`${W}\u79d2`;default:return`${W}`}},era:Dt({values:{narrow:["BC","AC"],abbreviated:["\u7d00\u5143\u524d","\u897f\u66a6"],wide:["\u7d00\u5143\u524d","\u897f\u66a6"]},defaultWidth:"wide"}),quarter:Dt({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["\u7b2c1\u56db\u534a\u671f","\u7b2c2\u56db\u534a\u671f","\u7b2c3\u56db\u534a\u671f","\u7b2c4\u56db\u534a\u671f"]},defaultWidth:"wide",argumentCallback:ee=>Number(ee)-1}),month:Dt({values:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],abbreviated:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],wide:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"]},defaultWidth:"wide"}),day:Dt({values:{narrow:["\u65e5","\u6708","\u706b","\u6c34","\u6728","\u91d1","\u571f"],short:["\u65e5","\u6708","\u706b","\u6c34","\u6728","\u91d1","\u571f"],abbreviated:["\u65e5","\u6708","\u706b","\u6c34","\u6728","\u91d1","\u571f"],wide:["\u65e5\u66dc\u65e5","\u6708\u66dc\u65e5","\u706b\u66dc\u65e5","\u6c34\u66dc\u65e5","\u6728\u66dc\u65e5","\u91d1\u66dc\u65e5","\u571f\u66dc\u65e5"]},defaultWidth:"wide"}),dayPeriod:Dt({values:{narrow:{am:"\u5348\u524d",pm:"\u5348\u5f8c",midnight:"\u6df1\u591c",noon:"\u6b63\u5348",morning:"\u671d",afternoon:"\u5348\u5f8c",evening:"\u591c",night:"\u6df1\u591c"},abbreviated:{am:"\u5348\u524d",pm:"\u5348\u5f8c",midnight:"\u6df1\u591c",noon:"\u6b63\u5348",morning:"\u671d",afternoon:"\u5348\u5f8c",evening:"\u591c",night:"\u6df1\u591c"},wide:{am:"\u5348\u524d",pm:"\u5348\u5f8c",midnight:"\u6df1\u591c",noon:"\u6b63\u5348",morning:"\u671d",afternoon:"\u5348\u5f8c",evening:"\u591c",night:"\u6df1\u591c"}},defaultWidth:"wide",formattingValues:{narrow:{am:"\u5348\u524d",pm:"\u5348\u5f8c",midnight:"\u6df1\u591c",noon:"\u6b63\u5348",morning:"\u671d",afternoon:"\u5348\u5f8c",evening:"\u591c",night:"\u6df1\u591c"},abbreviated:{am:"\u5348\u524d",pm:"\u5348\u5f8c",midnight:"\u6df1\u591c",noon:"\u6b63\u5348",morning:"\u671d",afternoon:"\u5348\u5f8c",evening:"\u591c",night:"\u6df1\u591c"},wide:{am:"\u5348\u524d",pm:"\u5348\u5f8c",midnight:"\u6df1\u591c",noon:"\u6b63\u5348",morning:"\u671d",afternoon:"\u5348\u5f8c",evening:"\u591c",night:"\u6df1\u591c"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:hs({matchPattern:/^\u7b2c?\d+(\u5e74|\u56db\u534a\u671f|\u6708|\u9031|\u65e5|\u6642|\u5206|\u79d2)?/i,parsePattern:/\d+/i,valueCallback:function(ee){return parseInt(ee,10)}}),era:Di({matchPatterns:{narrow:/^(B\.?C\.?|A\.?D\.?)/i,abbreviated:/^(\u7d00\u5143[\u524d\u5f8c]|\u897f\u66a6)/i,wide:/^(\u7d00\u5143[\u524d\u5f8c]|\u897f\u66a6)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^B/i,/^A/i],any:[/^(\u7d00\u5143\u524d)/i,/^(\u897f\u66a6|\u7d00\u5143\u5f8c)/i]},defaultParseWidth:"any"}),quarter:Di({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^Q[1234]/i,wide:/^\u7b2c[1234\u4e00\u4e8c\u4e09\u56db\uff11\uff12\uff13\uff14]\u56db\u534a\u671f/i},defaultMatchWidth:"wide",parsePatterns:{any:[/(1|\u4e00|\uff11)/i,/(2|\u4e8c|\uff12)/i,/(3|\u4e09|\uff13)/i,/(4|\u56db|\uff14)/i]},defaultParseWidth:"any",valueCallback:ee=>ee+1}),month:Di({matchPatterns:{narrow:/^([123456789]|1[012])/,abbreviated:/^([123456789]|1[012])\u6708/i,wide:/^([123456789]|1[012])\u6708/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^1\D/,/^2/,/^3/,/^4/,/^5/,/^6/,/^7/,/^8/,/^9/,/^10/,/^11/,/^12/]},defaultParseWidth:"any"}),day:Di({matchPatterns:{narrow:/^[\u65e5\u6708\u706b\u6c34\u6728\u91d1\u571f]/,short:/^[\u65e5\u6708\u706b\u6c34\u6728\u91d1\u571f]/,abbreviated:/^[\u65e5\u6708\u706b\u6c34\u6728\u91d1\u571f]/,wide:/^[\u65e5\u6708\u706b\u6c34\u6728\u91d1\u571f]\u66dc\u65e5/},defaultMatchWidth:"wide",parsePatterns:{any:[/^\u65e5/,/^\u6708/,/^\u706b/,/^\u6c34/,/^\u6728/,/^\u91d1/,/^\u571f/]},defaultParseWidth:"any"}),dayPeriod:Di({matchPatterns:{any:/^(AM|PM|\u5348\u524d|\u5348\u5f8c|\u6b63\u5348|\u6df1\u591c|\u771f\u591c\u4e2d|\u591c|\u671d)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^(A|\u5348\u524d)/i,pm:/^(P|\u5348\u5f8c)/i,midnight:/^\u6df1\u591c|\u771f\u591c\u4e2d/i,noon:/^\u6b63\u5348/i,morning:/^\u671d/i,afternoon:/^\u5348\u5f8c/i,evening:/^\u591c/i,night:/^\u6df1\u591c/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}},C_={lessThanXSeconds:{one:"1\ucd08 \ubbf8\ub9cc",other:"{{count}}\ucd08 \ubbf8\ub9cc"},xSeconds:{one:"1\ucd08",other:"{{count}}\ucd08"},halfAMinute:"30\ucd08",lessThanXMinutes:{one:"1\ubd84 \ubbf8\ub9cc",other:"{{count}}\ubd84 \ubbf8\ub9cc"},xMinutes:{one:"1\ubd84",other:"{{count}}\ubd84"},aboutXHours:{one:"\uc57d 1\uc2dc\uac04",other:"\uc57d {{count}}\uc2dc\uac04"},xHours:{one:"1\uc2dc\uac04",other:"{{count}}\uc2dc\uac04"},xDays:{one:"1\uc77c",other:"{{count}}\uc77c"},aboutXWeeks:{one:"\uc57d 1\uc8fc",other:"\uc57d {{count}}\uc8fc"},xWeeks:{one:"1\uc8fc",other:"{{count}}\uc8fc"},aboutXMonths:{one:"\uc57d 1\uac1c\uc6d4",other:"\uc57d {{count}}\uac1c\uc6d4"},xMonths:{one:"1\uac1c\uc6d4",other:"{{count}}\uac1c\uc6d4"},aboutXYears:{one:"\uc57d 1\ub144",other:"\uc57d {{count}}\ub144"},xYears:{one:"1\ub144",other:"{{count}}\ub144"},overXYears:{one:"1\ub144 \uc774\uc0c1",other:"{{count}}\ub144 \uc774\uc0c1"},almostXYears:{one:"\uac70\uc758 1\ub144",other:"\uac70\uc758 {{count}}\ub144"}},$b={date:Xi({formats:{full:"y\ub144 M\uc6d4 d\uc77c EEEE",long:"y\ub144 M\uc6d4 d\uc77c",medium:"y.MM.dd",short:"y.MM.dd"},defaultWidth:"full"}),time:Xi({formats:{full:"a H\uc2dc mm\ubd84 ss\ucd08 zzzz",long:"a H:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:Xi({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},SO={lastWeek:"'\uc9c0\ub09c' eeee p",yesterday:"'\uc5b4\uc81c' p",today:"'\uc624\ub298' p",tomorrow:"'\ub0b4\uc77c' p",nextWeek:"'\ub2e4\uc74c' eeee p",other:"P"},rE={code:"ko",formatDistance:(ee,H,W)=>{let oe;const pt=C_[ee];return oe="string"==typeof pt?pt:1===H?pt.one:pt.other.replace("{{count}}",H.toString()),W?.addSuffix?W.comparison&&W.comparison>0?oe+" \ud6c4":oe+" \uc804":oe},formatLong:$b,formatRelative:(ee,H,W,oe)=>SO[ee],localize:{ordinalNumber:(ee,H)=>{const W=Number(ee);switch(String(H?.unit)){case"minute":case"second":return String(W);case"date":return W+"\uc77c";default:return W+"\ubc88\uc9f8"}},era:Dt({values:{narrow:["BC","AD"],abbreviated:["BC","AD"],wide:["\uae30\uc6d0\uc804","\uc11c\uae30"]},defaultWidth:"wide"}),quarter:Dt({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1\ubd84\uae30","2\ubd84\uae30","3\ubd84\uae30","4\ubd84\uae30"]},defaultWidth:"wide",argumentCallback:ee=>ee-1}),month:Dt({values:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],abbreviated:["1\uc6d4","2\uc6d4","3\uc6d4","4\uc6d4","5\uc6d4","6\uc6d4","7\uc6d4","8\uc6d4","9\uc6d4","10\uc6d4","11\uc6d4","12\uc6d4"],wide:["1\uc6d4","2\uc6d4","3\uc6d4","4\uc6d4","5\uc6d4","6\uc6d4","7\uc6d4","8\uc6d4","9\uc6d4","10\uc6d4","11\uc6d4","12\uc6d4"]},defaultWidth:"wide"}),day:Dt({values:{narrow:["\uc77c","\uc6d4","\ud654","\uc218","\ubaa9","\uae08","\ud1a0"],short:["\uc77c","\uc6d4","\ud654","\uc218","\ubaa9","\uae08","\ud1a0"],abbreviated:["\uc77c","\uc6d4","\ud654","\uc218","\ubaa9","\uae08","\ud1a0"],wide:["\uc77c\uc694\uc77c","\uc6d4\uc694\uc77c","\ud654\uc694\uc77c","\uc218\uc694\uc77c","\ubaa9\uc694\uc77c","\uae08\uc694\uc77c","\ud1a0\uc694\uc77c"]},defaultWidth:"wide"}),dayPeriod:Dt({values:{narrow:{am:"\uc624\uc804",pm:"\uc624\ud6c4",midnight:"\uc790\uc815",noon:"\uc815\uc624",morning:"\uc544\uce68",afternoon:"\uc624\ud6c4",evening:"\uc800\ub141",night:"\ubc24"},abbreviated:{am:"\uc624\uc804",pm:"\uc624\ud6c4",midnight:"\uc790\uc815",noon:"\uc815\uc624",morning:"\uc544\uce68",afternoon:"\uc624\ud6c4",evening:"\uc800\ub141",night:"\ubc24"},wide:{am:"\uc624\uc804",pm:"\uc624\ud6c4",midnight:"\uc790\uc815",noon:"\uc815\uc624",morning:"\uc544\uce68",afternoon:"\uc624\ud6c4",evening:"\uc800\ub141",night:"\ubc24"}},defaultWidth:"wide",formattingValues:{narrow:{am:"\uc624\uc804",pm:"\uc624\ud6c4",midnight:"\uc790\uc815",noon:"\uc815\uc624",morning:"\uc544\uce68",afternoon:"\uc624\ud6c4",evening:"\uc800\ub141",night:"\ubc24"},abbreviated:{am:"\uc624\uc804",pm:"\uc624\ud6c4",midnight:"\uc790\uc815",noon:"\uc815\uc624",morning:"\uc544\uce68",afternoon:"\uc624\ud6c4",evening:"\uc800\ub141",night:"\ubc24"},wide:{am:"\uc624\uc804",pm:"\uc624\ud6c4",midnight:"\uc790\uc815",noon:"\uc815\uc624",morning:"\uc544\uce68",afternoon:"\uc624\ud6c4",evening:"\uc800\ub141",night:"\ubc24"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:hs({matchPattern:/^(\d+)(\uc77c|\ubc88\uc9f8)?/i,parsePattern:/\d+/i,valueCallback:ee=>parseInt(ee,10)}),era:Di({matchPatterns:{narrow:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(\uae30\uc6d0\uc804|\uc11c\uae30)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^(bc|\uae30\uc6d0\uc804)/i,/^(ad|\uc11c\uae30)/i]},defaultParseWidth:"any"}),quarter:Di({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234]\uc0ac?\ubd84\uae30/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:ee=>ee+1}),month:Di({matchPatterns:{narrow:/^(1[012]|[123456789])/,abbreviated:/^(1[012]|[123456789])\uc6d4/i,wide:/^(1[012]|[123456789])\uc6d4/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^1\uc6d4?$/,/^2/,/^3/,/^4/,/^5/,/^6/,/^7/,/^8/,/^9/,/^10/,/^11/,/^12/]},defaultParseWidth:"any"}),day:Di({matchPatterns:{narrow:/^[\uc77c\uc6d4\ud654\uc218\ubaa9\uae08\ud1a0]/,short:/^[\uc77c\uc6d4\ud654\uc218\ubaa9\uae08\ud1a0]/,abbreviated:/^[\uc77c\uc6d4\ud654\uc218\ubaa9\uae08\ud1a0]/,wide:/^[\uc77c\uc6d4\ud654\uc218\ubaa9\uae08\ud1a0]\uc694\uc77c/},defaultMatchWidth:"wide",parsePatterns:{any:[/^\uc77c/,/^\uc6d4/,/^\ud654/,/^\uc218/,/^\ubaa9/,/^\uae08/,/^\ud1a0/]},defaultParseWidth:"any"}),dayPeriod:Di({matchPatterns:{any:/^(am|pm|\uc624\uc804|\uc624\ud6c4|\uc790\uc815|\uc815\uc624|\uc544\uce68|\uc800\ub141|\ubc24)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^(am|\uc624\uc804)/i,pm:/^(pm|\uc624\ud6c4)/i,midnight:/^\uc790\uc815/i,noon:/^\uc815\uc624/i,morning:/^\uc544\uce68/i,afternoon:/^\uc624\ud6c4/i,evening:/^\uc800\ub141/i,night:/^\ubc24/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}},O_={lessThanXSeconds:{one:"mindre enn ett sekund",other:"mindre enn {{count}} sekunder"},xSeconds:{one:"ett sekund",other:"{{count}} sekunder"},halfAMinute:"et halvt minutt",lessThanXMinutes:{one:"mindre enn ett minutt",other:"mindre enn {{count}} minutter"},xMinutes:{one:"ett minutt",other:"{{count}} minutter"},aboutXHours:{one:"omtrent en time",other:"omtrent {{count}} timer"},xHours:{one:"en time",other:"{{count}} timer"},xDays:{one:"en dag",other:"{{count}} dager"},aboutXWeeks:{one:"omtrent en uke",other:"omtrent {{count}} uker"},xWeeks:{one:"en uke",other:"{{count}} uker"},aboutXMonths:{one:"omtrent en m\xe5ned",other:"omtrent {{count}} m\xe5neder"},xMonths:{one:"en m\xe5ned",other:"{{count}} m\xe5neder"},aboutXYears:{one:"omtrent ett \xe5r",other:"omtrent {{count}} \xe5r"},xYears:{one:"ett \xe5r",other:"{{count}} \xe5r"},overXYears:{one:"over ett \xe5r",other:"over {{count}} \xe5r"},almostXYears:{one:"nesten ett \xe5r",other:"nesten {{count}} \xe5r"}},CO={date:Xi({formats:{full:"EEEE d. MMMM y",long:"d. MMMM y",medium:"d. MMM y",short:"dd.MM.y"},defaultWidth:"full"}),time:Xi({formats:{full:"'kl'. HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:Xi({formats:{full:"{{date}} 'kl.' {{time}}",long:"{{date}} 'kl.' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},oE={lastWeek:"'forrige' eeee 'kl.' p",yesterday:"'i g\xe5r kl.' p",today:"'i dag kl.' p",tomorrow:"'i morgen kl.' p",nextWeek:"EEEE 'kl.' p",other:"P"},yE={code:"nb",formatDistance:(ee,H,W)=>{let oe;const pt=O_[ee];return oe="string"==typeof pt?pt:1===H?pt.one:pt.other.replace("{{count}}",String(H)),W?.addSuffix?W.comparison&&W.comparison>0?"om "+oe:oe+" siden":oe},formatLong:CO,formatRelative:(ee,H,W,oe)=>oE[ee],localize:{ordinalNumber:(ee,H)=>Number(ee)+".",era:Dt({values:{narrow:["f.Kr.","e.Kr."],abbreviated:["f.Kr.","e.Kr."],wide:["f\xf8r Kristus","etter Kristus"]},defaultWidth:"wide"}),quarter:Dt({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1. kvartal","2. kvartal","3. kvartal","4. kvartal"]},defaultWidth:"wide",argumentCallback:ee=>ee-1}),month:Dt({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["jan.","feb.","mars","apr.","mai","juni","juli","aug.","sep.","okt.","nov.","des."],wide:["januar","februar","mars","april","mai","juni","juli","august","september","oktober","november","desember"]},defaultWidth:"wide"}),day:Dt({values:{narrow:["S","M","T","O","T","F","L"],short:["s\xf8","ma","ti","on","to","fr","l\xf8"],abbreviated:["s\xf8n","man","tir","ons","tor","fre","l\xf8r"],wide:["s\xf8ndag","mandag","tirsdag","onsdag","torsdag","fredag","l\xf8rdag"]},defaultWidth:"wide"}),dayPeriod:Dt({values:{narrow:{am:"a",pm:"p",midnight:"midnatt",noon:"middag",morning:"p\xe5 morg.",afternoon:"p\xe5 etterm.",evening:"p\xe5 kvelden",night:"p\xe5 natten"},abbreviated:{am:"a.m.",pm:"p.m.",midnight:"midnatt",noon:"middag",morning:"p\xe5 morg.",afternoon:"p\xe5 etterm.",evening:"p\xe5 kvelden",night:"p\xe5 natten"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnatt",noon:"middag",morning:"p\xe5 morgenen",afternoon:"p\xe5 ettermiddagen",evening:"p\xe5 kvelden",night:"p\xe5 natten"}},defaultWidth:"wide"})},match:{ordinalNumber:hs({matchPattern:/^(\d+)\.?/i,parsePattern:/\d+/i,valueCallback:ee=>parseInt(ee,10)}),era:Di({matchPatterns:{narrow:/^(f\.? ?Kr\.?|fvt\.?|e\.? ?Kr\.?|evt\.?)/i,abbreviated:/^(f\.? ?Kr\.?|fvt\.?|e\.? ?Kr\.?|evt\.?)/i,wide:/^(f\xf8r Kristus|f\xf8r v\xe5r tid|etter Kristus|v\xe5r tid)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^f/i,/^e/i]},defaultParseWidth:"any"}),quarter:Di({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](\.)? kvartal/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:ee=>ee+1}),month:Di({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mars?|apr|mai|juni?|juli?|aug|sep|okt|nov|des)\.?/i,wide:/^(januar|februar|mars|april|mai|juni|juli|august|september|oktober|november|desember)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^mai/i,/^jun/i,/^jul/i,/^aug/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:Di({matchPatterns:{narrow:/^[smtofl]/i,short:/^(s\xf8|ma|ti|on|to|fr|l\xf8)/i,abbreviated:/^(s\xf8n|man|tir|ons|tor|fre|l\xf8r)/i,wide:/^(s\xf8ndag|mandag|tirsdag|onsdag|torsdag|fredag|l\xf8rdag)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^s/i,/^m/i,/^ti/i,/^o/i,/^to/i,/^f/i,/^l/i]},defaultParseWidth:"any"}),dayPeriod:Di({matchPatterns:{narrow:/^(midnatt|middag|(p\xe5) (morgenen|ettermiddagen|kvelden|natten)|[ap])/i,any:/^([ap]\.?\s?m\.?|midnatt|middag|(p\xe5) (morgenen|ettermiddagen|kvelden|natten))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a(\.?\s?m\.?)?$/i,pm:/^p(\.?\s?m\.?)?$/i,midnight:/^midn/i,noon:/^midd/i,morning:/morgen/i,afternoon:/ettermiddag/i,evening:/kveld/i,night:/natt/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:4}},OO={lessThanXSeconds:{one:"minder dan een seconde",other:"minder dan {{count}} seconden"},xSeconds:{one:"1 seconde",other:"{{count}} seconden"},halfAMinute:"een halve minuut",lessThanXMinutes:{one:"minder dan een minuut",other:"minder dan {{count}} minuten"},xMinutes:{one:"een minuut",other:"{{count}} minuten"},aboutXHours:{one:"ongeveer 1 uur",other:"ongeveer {{count}} uur"},xHours:{one:"1 uur",other:"{{count}} uur"},xDays:{one:"1 dag",other:"{{count}} dagen"},aboutXWeeks:{one:"ongeveer 1 week",other:"ongeveer {{count}} weken"},xWeeks:{one:"1 week",other:"{{count}} weken"},aboutXMonths:{one:"ongeveer 1 maand",other:"ongeveer {{count}} maanden"},xMonths:{one:"1 maand",other:"{{count}} maanden"},aboutXYears:{one:"ongeveer 1 jaar",other:"ongeveer {{count}} jaar"},xYears:{one:"1 jaar",other:"{{count}} jaar"},overXYears:{one:"meer dan 1 jaar",other:"meer dan {{count}} jaar"},almostXYears:{one:"bijna 1 jaar",other:"bijna {{count}} jaar"}},PO={date:Xi({formats:{full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd-MM-y"},defaultWidth:"full"}),time:Xi({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:Xi({formats:{full:"{{date}} 'om' {{time}}",long:"{{date}} 'om' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},ql={lastWeek:"'afgelopen' eeee 'om' p",yesterday:"'gisteren om' p",today:"'vandaag om' p",tomorrow:"'morgen om' p",nextWeek:"eeee 'om' p",other:"P"},uy={code:"nl",formatDistance:(ee,H,W)=>{let oe;const pt=OO[ee];return oe="string"==typeof pt?pt:1===H?pt.one:pt.other.replace("{{count}}",String(H)),W?.addSuffix?W.comparison&&W.comparison>0?"over "+oe:oe+" geleden":oe},formatLong:PO,formatRelative:(ee,H,W,oe)=>ql[ee],localize:{ordinalNumber:(ee,H)=>Number(ee)+"e",era:Dt({values:{narrow:["v.C.","n.C."],abbreviated:["v.Chr.","n.Chr."],wide:["voor Christus","na Christus"]},defaultWidth:"wide"}),quarter:Dt({values:{narrow:["1","2","3","4"],abbreviated:["K1","K2","K3","K4"],wide:["1e kwartaal","2e kwartaal","3e kwartaal","4e kwartaal"]},defaultWidth:"wide",argumentCallback:ee=>ee-1}),month:Dt({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["jan.","feb.","mrt.","apr.","mei","jun.","jul.","aug.","sep.","okt.","nov.","dec."],wide:["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"]},defaultWidth:"wide"}),day:Dt({values:{narrow:["Z","M","D","W","D","V","Z"],short:["zo","ma","di","wo","do","vr","za"],abbreviated:["zon","maa","din","woe","don","vri","zat"],wide:["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"]},defaultWidth:"wide"}),dayPeriod:Dt({values:{narrow:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middaguur",morning:"'s ochtends",afternoon:"'s middags",evening:"'s avonds",night:"'s nachts"},abbreviated:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middaguur",morning:"'s ochtends",afternoon:"'s middags",evening:"'s avonds",night:"'s nachts"},wide:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middaguur",morning:"'s ochtends",afternoon:"'s middags",evening:"'s avonds",night:"'s nachts"}},defaultWidth:"wide"})},match:{ordinalNumber:hs({matchPattern:/^(\d+)e?/i,parsePattern:/\d+/i,valueCallback:ee=>parseInt(ee,10)}),era:Di({matchPatterns:{narrow:/^([vn]\.? ?C\.?)/,abbreviated:/^([vn]\. ?Chr\.?)/,wide:/^((voor|na) Christus)/},defaultMatchWidth:"wide",parsePatterns:{any:[/^v/,/^n/]},defaultParseWidth:"any"}),quarter:Di({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^K[1234]/i,wide:/^[1234]e kwartaal/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:ee=>ee+1}),month:Di({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan.|feb.|mrt.|apr.|mei|jun.|jul.|aug.|sep.|okt.|nov.|dec.)/i,wide:/^(januari|februari|maart|april|mei|juni|juli|augustus|september|oktober|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^jan/i,/^feb/i,/^m(r|a)/i,/^apr/i,/^mei/i,/^jun/i,/^jul/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i]},defaultParseWidth:"any"}),day:Di({matchPatterns:{narrow:/^[zmdwv]/i,short:/^(zo|ma|di|wo|do|vr|za)/i,abbreviated:/^(zon|maa|din|woe|don|vri|zat)/i,wide:/^(zondag|maandag|dinsdag|woensdag|donderdag|vrijdag|zaterdag)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^z/i,/^m/i,/^d/i,/^w/i,/^d/i,/^v/i,/^z/i],any:[/^zo/i,/^ma/i,/^di/i,/^wo/i,/^do/i,/^vr/i,/^za/i]},defaultParseWidth:"any"}),dayPeriod:Di({matchPatterns:{any:/^(am|pm|middernacht|het middaguur|'s (ochtends|middags|avonds|nachts))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^am/i,pm:/^pm/i,midnight:/^middernacht/i,noon:/^het middaguur/i,morning:/ochtend/i,afternoon:/middag/i,evening:/avond/i,night:/nacht/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:4}},DE={lessThanXSeconds:{one:{regular:"mniej ni\u017c sekunda",past:"mniej ni\u017c sekund\u0119",future:"mniej ni\u017c sekund\u0119"},twoFour:"mniej ni\u017c {{count}} sekundy",other:"mniej ni\u017c {{count}} sekund"},xSeconds:{one:{regular:"sekunda",past:"sekund\u0119",future:"sekund\u0119"},twoFour:"{{count}} sekundy",other:"{{count}} sekund"},halfAMinute:{one:"p\xf3\u0142 minuty",twoFour:"p\xf3\u0142 minuty",other:"p\xf3\u0142 minuty"},lessThanXMinutes:{one:{regular:"mniej ni\u017c minuta",past:"mniej ni\u017c minut\u0119",future:"mniej ni\u017c minut\u0119"},twoFour:"mniej ni\u017c {{count}} minuty",other:"mniej ni\u017c {{count}} minut"},xMinutes:{one:{regular:"minuta",past:"minut\u0119",future:"minut\u0119"},twoFour:"{{count}} minuty",other:"{{count}} minut"},aboutXHours:{one:{regular:"oko\u0142o godziny",past:"oko\u0142o godziny",future:"oko\u0142o godzin\u0119"},twoFour:"oko\u0142o {{count}} godziny",other:"oko\u0142o {{count}} godzin"},xHours:{one:{regular:"godzina",past:"godzin\u0119",future:"godzin\u0119"},twoFour:"{{count}} godziny",other:"{{count}} godzin"},xDays:{one:{regular:"dzie\u0144",past:"dzie\u0144",future:"1 dzie\u0144"},twoFour:"{{count}} dni",other:"{{count}} dni"},aboutXWeeks:{one:"oko\u0142o tygodnia",twoFour:"oko\u0142o {{count}} tygodni",other:"oko\u0142o {{count}} tygodni"},xWeeks:{one:"tydzie\u0144",twoFour:"{{count}} tygodnie",other:"{{count}} tygodni"},aboutXMonths:{one:"oko\u0142o miesi\u0105c",twoFour:"oko\u0142o {{count}} miesi\u0105ce",other:"oko\u0142o {{count}} miesi\u0119cy"},xMonths:{one:"miesi\u0105c",twoFour:"{{count}} miesi\u0105ce",other:"{{count}} miesi\u0119cy"},aboutXYears:{one:"oko\u0142o rok",twoFour:"oko\u0142o {{count}} lata",other:"oko\u0142o {{count}} lat"},xYears:{one:"rok",twoFour:"{{count}} lata",other:"{{count}} lat"},overXYears:{one:"ponad rok",twoFour:"ponad {{count}} lata",other:"ponad {{count}} lat"},almostXYears:{one:"prawie rok",twoFour:"prawie {{count}} lata",other:"prawie {{count}} lat"}};function nm(ee,H,W){const oe=function xE(ee,H){if(1===H)return ee.one;const W=H%100;if(W<=20&&W>10)return ee.other;const oe=W%10;return oe>=2&&oe<=4?ee.twoFour:ee.other}(ee,H);return("string"==typeof oe?oe:oe[W]).replace("{{count}}",String(H))}const Ov={date:Xi({formats:{full:"EEEE, do MMMM y",long:"do MMMM y",medium:"do MMM y",short:"dd.MM.y"},defaultWidth:"full"}),time:Xi({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:Xi({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},fy={masculine:"ostatni",feminine:"ostatnia"},py={masculine:"ten",feminine:"ta"},TE={masculine:"nast\u0119pny",feminine:"nast\u0119pna"},Pv={0:"feminine",1:"masculine",2:"masculine",3:"feminine",4:"masculine",5:"masculine",6:"feminine"};function Cp(ee,H,W,oe){let pt;if(Rl(H,W,oe))pt=py;else if("lastWeek"===ee)pt=fy;else{if("nextWeek"!==ee)throw new Error(`Cannot determine adjectives for token ${ee}`);pt=TE}const wn=H.getDay();return`'${pt[Pv[wn]]}' eeee 'o' p`}const IE={lastWeek:Cp,yesterday:"'wczoraj o' p",today:"'dzisiaj o' p",tomorrow:"'jutro o' p",nextWeek:Cp,other:"P"},by={code:"pl",formatDistance:(ee,H,W)=>{const oe=DE[ee];return W?.addSuffix?W.comparison&&W.comparison>0?"za "+nm(oe,H,"future"):nm(oe,H,"past")+" temu":nm(oe,H,"regular")},formatLong:Ov,formatRelative:(ee,H,W,oe)=>{const pt=IE[ee];return"function"==typeof pt?pt(ee,H,W,oe):pt},localize:{ordinalNumber:(ee,H)=>String(ee),era:Dt({values:{narrow:["p.n.e.","n.e."],abbreviated:["p.n.e.","n.e."],wide:["przed nasz\u0105 er\u0105","naszej ery"]},defaultWidth:"wide"}),quarter:Dt({values:{narrow:["1","2","3","4"],abbreviated:["I kw.","II kw.","III kw.","IV kw."],wide:["I kwarta\u0142","II kwarta\u0142","III kwarta\u0142","IV kwarta\u0142"]},defaultWidth:"wide",argumentCallback:ee=>ee-1}),month:Dt({values:{narrow:["S","L","M","K","M","C","L","S","W","P","L","G"],abbreviated:["sty","lut","mar","kwi","maj","cze","lip","sie","wrz","pa\u017a","lis","gru"],wide:["stycze\u0144","luty","marzec","kwiecie\u0144","maj","czerwiec","lipiec","sierpie\u0144","wrzesie\u0144","pa\u017adziernik","listopad","grudzie\u0144"]},defaultWidth:"wide",formattingValues:{narrow:["s","l","m","k","m","c","l","s","w","p","l","g"],abbreviated:["sty","lut","mar","kwi","maj","cze","lip","sie","wrz","pa\u017a","lis","gru"],wide:["stycznia","lutego","marca","kwietnia","maja","czerwca","lipca","sierpnia","wrze\u015bnia","pa\u017adziernika","listopada","grudnia"]},defaultFormattingWidth:"wide"}),day:Dt({values:{narrow:["N","P","W","\u015a","C","P","S"],short:["nie","pon","wto","\u015bro","czw","pi\u0105","sob"],abbreviated:["niedz.","pon.","wt.","\u015br.","czw.","pt.","sob."],wide:["niedziela","poniedzia\u0142ek","wtorek","\u015broda","czwartek","pi\u0105tek","sobota"]},defaultWidth:"wide",formattingValues:{narrow:["n","p","w","\u015b","c","p","s"],short:["nie","pon","wto","\u015bro","czw","pi\u0105","sob"],abbreviated:["niedz.","pon.","wt.","\u015br.","czw.","pt.","sob."],wide:["niedziela","poniedzia\u0142ek","wtorek","\u015broda","czwartek","pi\u0105tek","sobota"]},defaultFormattingWidth:"wide"}),dayPeriod:Dt({values:{narrow:{am:"a",pm:"p",midnight:"p\xf3\u0142n.",noon:"po\u0142",morning:"rano",afternoon:"popo\u0142.",evening:"wiecz.",night:"noc"},abbreviated:{am:"AM",pm:"PM",midnight:"p\xf3\u0142noc",noon:"po\u0142udnie",morning:"rano",afternoon:"popo\u0142udnie",evening:"wiecz\xf3r",night:"noc"},wide:{am:"AM",pm:"PM",midnight:"p\xf3\u0142noc",noon:"po\u0142udnie",morning:"rano",afternoon:"popo\u0142udnie",evening:"wiecz\xf3r",night:"noc"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"o p\xf3\u0142n.",noon:"w po\u0142.",morning:"rano",afternoon:"po po\u0142.",evening:"wiecz.",night:"w nocy"},abbreviated:{am:"AM",pm:"PM",midnight:"o p\xf3\u0142nocy",noon:"w po\u0142udnie",morning:"rano",afternoon:"po po\u0142udniu",evening:"wieczorem",night:"w nocy"},wide:{am:"AM",pm:"PM",midnight:"o p\xf3\u0142nocy",noon:"w po\u0142udnie",morning:"rano",afternoon:"po po\u0142udniu",evening:"wieczorem",night:"w nocy"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:hs({matchPattern:/^(\d+)?/i,parsePattern:/\d+/i,valueCallback:ee=>parseInt(ee,10)}),era:Di({matchPatterns:{narrow:/^(p\.?\s*n\.?\s*e\.?\s*|n\.?\s*e\.?\s*)/i,abbreviated:/^(p\.?\s*n\.?\s*e\.?\s*|n\.?\s*e\.?\s*)/i,wide:/^(przed\s*nasz(\u0105|a)\s*er(\u0105|a)|naszej\s*ery)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^p/i,/^n/i]},defaultParseWidth:"any"}),quarter:Di({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^(I|II|III|IV)\s*kw\.?/i,wide:/^(I|II|III|IV)\s*kwarta(\u0142|l)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/1/i,/2/i,/3/i,/4/i],any:[/^I kw/i,/^II kw/i,/^III kw/i,/^IV kw/i]},defaultParseWidth:"any",valueCallback:ee=>ee+1}),month:Di({matchPatterns:{narrow:/^[slmkcwpg]/i,abbreviated:/^(sty|lut|mar|kwi|maj|cze|lip|sie|wrz|pa(\u017a|z)|lis|gru)/i,wide:/^(stycznia|stycze(\u0144|n)|lutego|luty|marca|marzec|kwietnia|kwiecie(\u0144|n)|maja|maj|czerwca|czerwiec|lipca|lipiec|sierpnia|sierpie(\u0144|n)|wrze(\u015b|s)nia|wrzesie(\u0144|n)|pa(\u017a|z)dziernika|pa(\u017a|z)dziernik|listopada|listopad|grudnia|grudzie(\u0144|n))/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^l/i,/^m/i,/^k/i,/^m/i,/^c/i,/^l/i,/^s/i,/^w/i,/^p/i,/^l/i,/^g/i],any:[/^st/i,/^lu/i,/^mar/i,/^k/i,/^maj/i,/^c/i,/^lip/i,/^si/i,/^w/i,/^p/i,/^lis/i,/^g/i]},defaultParseWidth:"any"}),day:Di({matchPatterns:{narrow:/^[npw\u015bcs]/i,short:/^(nie|pon|wto|(\u015b|s)ro|czw|pi(\u0105|a)|sob)/i,abbreviated:/^(niedz|pon|wt|(\u015b|s)r|czw|pt|sob)\.?/i,wide:/^(niedziela|poniedzia(\u0142|l)ek|wtorek|(\u015b|s)roda|czwartek|pi(\u0105|a)tek|sobota)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^n/i,/^p/i,/^w/i,/^\u015b/i,/^c/i,/^p/i,/^s/i],abbreviated:[/^n/i,/^po/i,/^w/i,/^(\u015b|s)r/i,/^c/i,/^pt/i,/^so/i],any:[/^n/i,/^po/i,/^w/i,/^(\u015b|s)r/i,/^c/i,/^pi/i,/^so/i]},defaultParseWidth:"any"}),dayPeriod:Di({matchPatterns:{narrow:/^(^a$|^p$|p\xf3(\u0142|l)n\.?|o\s*p\xf3(\u0142|l)n\.?|po(\u0142|l)\.?|w\s*po(\u0142|l)\.?|po\s*po(\u0142|l)\.?|rano|wiecz\.?|noc|w\s*nocy)/i,any:/^(am|pm|p\xf3(\u0142|l)noc|o\s*p\xf3(\u0142|l)nocy|po(\u0142|l)udnie|w\s*po(\u0142|l)udnie|popo(\u0142|l)udnie|po\s*po(\u0142|l)udniu|rano|wiecz\xf3r|wieczorem|noc|w\s*nocy)/i},defaultMatchWidth:"any",parsePatterns:{narrow:{am:/^a$/i,pm:/^p$/i,midnight:/p\xf3(\u0142|l)n/i,noon:/po(\u0142|l)/i,morning:/rano/i,afternoon:/po\s*po(\u0142|l)/i,evening:/wiecz/i,night:/noc/i},any:{am:/^am/i,pm:/^pm/i,midnight:/p\xf3(\u0142|l)n/i,noon:/po(\u0142|l)/i,morning:/rano/i,afternoon:/po\s*po(\u0142|l)/i,evening:/wiecz/i,night:/noc/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:4}},L_={lessThanXSeconds:{one:"menos de um segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"meio minuto",lessThanXMinutes:{one:"menos de um minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"cerca de 1 hora",other:"cerca de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 dia",other:"{{count}} dias"},aboutXWeeks:{one:"cerca de 1 semana",other:"cerca de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"cerca de 1 m\xeas",other:"cerca de {{count}} meses"},xMonths:{one:"1 m\xeas",other:"{{count}} meses"},aboutXYears:{one:"cerca de 1 ano",other:"cerca de {{count}} anos"},xYears:{one:"1 ano",other:"{{count}} anos"},overXYears:{one:"mais de 1 ano",other:"mais de {{count}} anos"},almostXYears:{one:"quase 1 ano",other:"quase {{count}} anos"}},Cy={date:Xi({formats:{full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/yyyy"},defaultWidth:"full"}),time:Xi({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:Xi({formats:{full:"{{date}} '\xe0s' {{time}}",long:"{{date}} '\xe0s' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},k_={lastWeek:ee=>{const H=ee.getDay();return"'"+(0===H||6===H?"\xfaltimo":"\xfaltima")+"' eeee '\xe0s' p"},yesterday:"'ontem \xe0s' p",today:"'hoje \xe0s' p",tomorrow:"'amanh\xe3 \xe0s' p",nextWeek:"eeee '\xe0s' p",other:"P"},wO={code:"pt-BR",formatDistance:(ee,H,W)=>{let oe;const pt=L_[ee];return oe="string"==typeof pt?pt:1===H?pt.one:pt.other.replace("{{count}}",String(H)),W?.addSuffix?W.comparison&&W.comparison>0?"em "+oe:"h\xe1 "+oe:oe},formatLong:Cy,formatRelative:(ee,H,W,oe)=>{const pt=k_[ee];return"function"==typeof pt?pt(H):pt},localize:{ordinalNumber:(ee,H)=>{const W=Number(ee);return"week"===H?.unit?W+"\xaa":W+"\xba"},era:Dt({values:{narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","depois de cristo"]},defaultWidth:"wide"}),quarter:Dt({values:{narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1\xba trimestre","2\xba trimestre","3\xba trimestre","4\xba trimestre"]},defaultWidth:"wide",argumentCallback:ee=>ee-1}),month:Dt({values:{narrow:["j","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["jan","fev","mar","abr","mai","jun","jul","ago","set","out","nov","dez"],wide:["janeiro","fevereiro","mar\xe7o","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"]},defaultWidth:"wide"}),day:Dt({values:{narrow:["D","S","T","Q","Q","S","S"],short:["dom","seg","ter","qua","qui","sex","sab"],abbreviated:["domingo","segunda","ter\xe7a","quarta","quinta","sexta","s\xe1bado"],wide:["domingo","segunda-feira","ter\xe7a-feira","quarta-feira","quinta-feira","sexta-feira","s\xe1bado"]},defaultWidth:"wide"}),dayPeriod:Dt({values:{narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"manh\xe3",afternoon:"tarde",evening:"tarde",night:"noite"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manh\xe3",afternoon:"tarde",evening:"tarde",night:"noite"},wide:{am:"a.m.",pm:"p.m.",midnight:"meia-noite",noon:"meio-dia",morning:"manh\xe3",afternoon:"tarde",evening:"tarde",night:"noite"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"da manh\xe3",afternoon:"da tarde",evening:"da tarde",night:"da noite"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manh\xe3",afternoon:"da tarde",evening:"da tarde",night:"da noite"},wide:{am:"a.m.",pm:"p.m.",midnight:"meia-noite",noon:"meio-dia",morning:"da manh\xe3",afternoon:"da tarde",evening:"da tarde",night:"da noite"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:hs({matchPattern:/^(\d+)[\xba\xaao]?/i,parsePattern:/\d+/i,valueCallback:ee=>parseInt(ee,10)}),era:Di({matchPatterns:{narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|d\.?\s?c\.?)/i,wide:/^(antes de cristo|depois de cristo)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^ac/i,/^dc/i],wide:[/^antes de cristo/i,/^depois de cristo/i]},defaultParseWidth:"any"}),quarter:Di({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](\xba)? trimestre/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:ee=>ee+1}),month:Di({matchPatterns:{narrow:/^[jfmajsond]/i,abbreviated:/^(jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)/i,wide:/^(janeiro|fevereiro|mar\xe7o|abril|maio|junho|julho|agosto|setembro|outubro|novembro|dezembro)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^fev/i,/^mar/i,/^abr/i,/^mai/i,/^jun/i,/^jul/i,/^ago/i,/^set/i,/^out/i,/^nov/i,/^dez/i]},defaultParseWidth:"any"}),day:Di({matchPatterns:{narrow:/^(dom|[23456]\xaa?|s[a\xe1]b)/i,short:/^(dom|[23456]\xaa?|s[a\xe1]b)/i,abbreviated:/^(dom|seg|ter|qua|qui|sex|s[a\xe1]b)/i,wide:/^(domingo|(segunda|ter[c\xe7]a|quarta|quinta|sexta)([- ]feira)?|s[a\xe1]bado)/i},defaultMatchWidth:"wide",parsePatterns:{short:[/^d/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^s[a\xe1]/i],narrow:[/^d/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^s[a\xe1]/i],any:[/^d/i,/^seg/i,/^t/i,/^qua/i,/^qui/i,/^sex/i,/^s[a\xe1]b/i]},defaultParseWidth:"any"}),dayPeriod:Di({matchPatterns:{narrow:/^(a|p|mn|md|(da) (manh\xe3|tarde|noite))/i,any:/^([ap]\.?\s?m\.?|meia[-\s]noite|meio[-\s]dia|(da) (manh\xe3|tarde|noite))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mn|^meia[-\s]noite/i,noon:/^md|^meio[-\s]dia/i,morning:/manh\xe3/i,afternoon:/tarde/i,evening:/tarde/i,night:/noite/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}},RO={lessThanXSeconds:{one:"menos de um segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"meio minuto",lessThanXMinutes:{one:"menos de um minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"aproximadamente 1 hora",other:"aproximadamente {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 dia",other:"{{count}} dias"},aboutXWeeks:{one:"aproximadamente 1 semana",other:"aproximadamente {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"aproximadamente 1 m\xeas",other:"aproximadamente {{count}} meses"},xMonths:{one:"1 m\xeas",other:"{{count}} meses"},aboutXYears:{one:"aproximadamente 1 ano",other:"aproximadamente {{count}} anos"},xYears:{one:"1 ano",other:"{{count}} anos"},overXYears:{one:"mais de 1 ano",other:"mais de {{count}} anos"},almostXYears:{one:"quase 1 ano",other:"quase {{count}} anos"}},Fy={date:Xi({formats:{full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d 'de' MMM 'de' y",short:"dd/MM/y"},defaultWidth:"full"}),time:Xi({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:Xi({formats:{full:"{{date}} '\xe0s' {{time}}",long:"{{date}} '\xe0s' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Uy={lastWeek:ee=>{const H=ee.getDay();return"'"+(0===H||6===H?"\xfaltimo":"\xfaltima")+"' eeee '\xe0s' p"},yesterday:"'ontem \xe0s' p",today:"'hoje \xe0s' p",tomorrow:"'amanh\xe3 \xe0s' p",nextWeek:"eeee '\xe0s' p",other:"P"},s1={code:"pt",formatDistance:(ee,H,W)=>{let oe;const pt=RO[ee];return oe="string"==typeof pt?pt:1===H?pt.one:pt.other.replace("{{count}}",String(H)),W?.addSuffix?W.comparison&&W.comparison>0?"daqui a "+oe:"h\xe1 "+oe:oe},formatLong:Fy,formatRelative:(ee,H,W,oe)=>{const pt=Uy[ee];return"function"==typeof pt?pt(H):pt},localize:{ordinalNumber:(ee,H)=>Number(ee)+"\xba",era:Dt({values:{narrow:["aC","dC"],abbreviated:["a.C.","d.C."],wide:["antes de Cristo","depois de Cristo"]},defaultWidth:"wide"}),quarter:Dt({values:{narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1\xba trimestre","2\xba trimestre","3\xba trimestre","4\xba trimestre"]},defaultWidth:"wide",argumentCallback:ee=>ee-1}),month:Dt({values:{narrow:["j","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["jan","fev","mar","abr","mai","jun","jul","ago","set","out","nov","dez"],wide:["janeiro","fevereiro","mar\xe7o","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"]},defaultWidth:"wide"}),day:Dt({values:{narrow:["d","s","t","q","q","s","s"],short:["dom","seg","ter","qua","qui","sex","s\xe1b"],abbreviated:["dom","seg","ter","qua","qui","sex","s\xe1b"],wide:["domingo","segunda-feira","ter\xe7a-feira","quarta-feira","quinta-feira","sexta-feira","s\xe1bado"]},defaultWidth:"wide"}),dayPeriod:Dt({values:{narrow:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manh\xe3",afternoon:"tarde",evening:"noite",night:"madrugada"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manh\xe3",afternoon:"tarde",evening:"noite",night:"madrugada"},wide:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manh\xe3",afternoon:"tarde",evening:"noite",night:"madrugada"}},defaultWidth:"wide",formattingValues:{narrow:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manh\xe3",afternoon:"da tarde",evening:"da noite",night:"da madrugada"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manh\xe3",afternoon:"da tarde",evening:"da noite",night:"da madrugada"},wide:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manh\xe3",afternoon:"da tarde",evening:"da noite",night:"da madrugada"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:hs({matchPattern:/^(\d+)(\xba|\xaa)?/i,parsePattern:/\d+/i,valueCallback:ee=>parseInt(ee,10)}),era:Di({matchPatterns:{narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i,wide:/^(antes de cristo|antes da era comum|depois de cristo|era comum)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^ac/i,/^dc/i],wide:[/^(antes de cristo|antes da era comum)/i,/^(depois de cristo|era comum)/i]},defaultParseWidth:"any"}),quarter:Di({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](\xba|\xaa)? trimestre/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:ee=>ee+1}),month:Di({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)/i,wide:/^(janeiro|fevereiro|mar\xe7o|abril|maio|junho|julho|agosto|setembro|outubro|novembro|dezembro)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ab/i,/^mai/i,/^jun/i,/^jul/i,/^ag/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:Di({matchPatterns:{narrow:/^[dstq]/i,short:/^(dom|seg|ter|qua|qui|sex|s[\xe1a]b)/i,abbreviated:/^(dom|seg|ter|qua|qui|sex|s[\xe1a]b)/i,wide:/^(domingo|segunda-?\s?feira|ter\xe7a-?\s?feira|quarta-?\s?feira|quinta-?\s?feira|sexta-?\s?feira|s[\xe1a]bado)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^d/i,/^s/i,/^t/i,/^q/i,/^q/i,/^s/i,/^s/i],any:[/^d/i,/^seg/i,/^t/i,/^qua/i,/^qui/i,/^sex/i,/^s[\xe1a]/i]},defaultParseWidth:"any"}),dayPeriod:Di({matchPatterns:{narrow:/^(a|p|meia-?\s?noite|meio-?\s?dia|(da) (manh[\xe3a]|tarde|noite|madrugada))/i,any:/^([ap]\.?\s?m\.?|meia-?\s?noite|meio-?\s?dia|(da) (manh[\xe3a]|tarde|noite|madrugada))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^meia/i,noon:/^meio/i,morning:/manh[\xe3a]/i,afternoon:/tarde/i,evening:/noite/i,night:/madrugada/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:4}},XO={lessThanXSeconds:{one:"mai pu\u021bin de o secund\u0103",other:"mai pu\u021bin de {{count}} secunde"},xSeconds:{one:"1 secund\u0103",other:"{{count}} secunde"},halfAMinute:"jum\u0103tate de minut",lessThanXMinutes:{one:"mai pu\u021bin de un minut",other:"mai pu\u021bin de {{count}} minute"},xMinutes:{one:"1 minut",other:"{{count}} minute"},aboutXHours:{one:"circa 1 or\u0103",other:"circa {{count}} ore"},xHours:{one:"1 or\u0103",other:"{{count}} ore"},xDays:{one:"1 zi",other:"{{count}} zile"},aboutXWeeks:{one:"circa o s\u0103pt\u0103m\xe2n\u0103",other:"circa {{count}} s\u0103pt\u0103m\xe2ni"},xWeeks:{one:"1 s\u0103pt\u0103m\xe2n\u0103",other:"{{count}} s\u0103pt\u0103m\xe2ni"},aboutXMonths:{one:"circa 1 lun\u0103",other:"circa {{count}} luni"},xMonths:{one:"1 lun\u0103",other:"{{count}} luni"},aboutXYears:{one:"circa 1 an",other:"circa {{count}} ani"},xYears:{one:"1 an",other:"{{count}} ani"},overXYears:{one:"peste 1 an",other:"peste {{count}} ani"},almostXYears:{one:"aproape 1 an",other:"aproape {{count}} ani"}},B_={date:Xi({formats:{full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"dd.MM.yyyy"},defaultWidth:"full"}),time:Xi({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:Xi({formats:{full:"{{date}} 'la' {{time}}",long:"{{date}} 'la' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},l1={lastWeek:"eeee 'trecut\u0103 la' p",yesterday:"'ieri la' p",today:"'ast\u0103zi la' p",tomorrow:"'m\xe2ine la' p",nextWeek:"eeee 'viitoare la' p",other:"P"},Xy={code:"ro",formatDistance:(ee,H,W)=>{let oe;const pt=XO[ee];return oe="string"==typeof pt?pt:1===H?pt.one:pt.other.replace("{{count}}",String(H)),W?.addSuffix?W.comparison&&W.comparison>0?"\xeen "+oe:oe+" \xeen urm\u0103":oe},formatLong:B_,formatRelative:(ee,H,W,oe)=>l1[ee],localize:{ordinalNumber:(ee,H)=>String(ee),era:Dt({values:{narrow:["\xce","D"],abbreviated:["\xce.d.C.","D.C."],wide:["\xcenainte de Cristos","Dup\u0103 Cristos"]},defaultWidth:"wide"}),quarter:Dt({values:{narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["primul trimestru","al doilea trimestru","al treilea trimestru","al patrulea trimestru"]},defaultWidth:"wide",argumentCallback:ee=>ee-1}),month:Dt({values:{narrow:["I","F","M","A","M","I","I","A","S","O","N","D"],abbreviated:["ian","feb","mar","apr","mai","iun","iul","aug","sep","oct","noi","dec"],wide:["ianuarie","februarie","martie","aprilie","mai","iunie","iulie","august","septembrie","octombrie","noiembrie","decembrie"]},defaultWidth:"wide"}),day:Dt({values:{narrow:["d","l","m","m","j","v","s"],short:["du","lu","ma","mi","jo","vi","s\xe2"],abbreviated:["dum","lun","mar","mie","joi","vin","s\xe2m"],wide:["duminic\u0103","luni","mar\u021bi","miercuri","joi","vineri","s\xe2mb\u0103t\u0103"]},defaultWidth:"wide"}),dayPeriod:Dt({values:{narrow:{am:"a",pm:"p",midnight:"mn",noon:"ami",morning:"dim",afternoon:"da",evening:"s",night:"n"},abbreviated:{am:"AM",pm:"PM",midnight:"miezul nop\u021bii",noon:"amiaz\u0103",morning:"diminea\u021b\u0103",afternoon:"dup\u0103-amiaz\u0103",evening:"sear\u0103",night:"noapte"},wide:{am:"a.m.",pm:"p.m.",midnight:"miezul nop\u021bii",noon:"amiaz\u0103",morning:"diminea\u021b\u0103",afternoon:"dup\u0103-amiaz\u0103",evening:"sear\u0103",night:"noapte"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mn",noon:"amiaz\u0103",morning:"diminea\u021b\u0103",afternoon:"dup\u0103-amiaz\u0103",evening:"sear\u0103",night:"noapte"},abbreviated:{am:"AM",pm:"PM",midnight:"miezul nop\u021bii",noon:"amiaz\u0103",morning:"diminea\u021b\u0103",afternoon:"dup\u0103-amiaz\u0103",evening:"sear\u0103",night:"noapte"},wide:{am:"a.m.",pm:"p.m.",midnight:"miezul nop\u021bii",noon:"amiaz\u0103",morning:"diminea\u021b\u0103",afternoon:"dup\u0103-amiaz\u0103",evening:"sear\u0103",night:"noapte"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:hs({matchPattern:/^(\d+)?/i,parsePattern:/\d+/i,valueCallback:ee=>parseInt(ee,10)}),era:Di({matchPatterns:{narrow:/^(\xce|D)/i,abbreviated:/^(\xce\.?\s?d\.?\s?C\.?|\xce\.?\s?e\.?\s?n\.?|D\.?\s?C\.?|e\.?\s?n\.?)/i,wide:/^(\xcenainte de Cristos|\xcenaintea erei noastre|Dup\u0103 Cristos|Era noastr\u0103)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^\xceC/i,/^DC/i],wide:[/^(\xcenainte de Cristos|\xcenaintea erei noastre)/i,/^(Dup\u0103 Cristos|Era noastr\u0103)/i]},defaultParseWidth:"any"}),quarter:Di({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^trimestrul [1234]/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:ee=>ee+1}),month:Di({matchPatterns:{narrow:/^[ifmaasond]/i,abbreviated:/^(ian|feb|mar|apr|mai|iun|iul|aug|sep|oct|noi|dec)/i,wide:/^(ianuarie|februarie|martie|aprilie|mai|iunie|iulie|august|septembrie|octombrie|noiembrie|decembrie)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^i/i,/^f/i,/^m/i,/^a/i,/^m/i,/^i/i,/^i/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ia/i,/^f/i,/^mar/i,/^ap/i,/^mai/i,/^iun/i,/^iul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:Di({matchPatterns:{narrow:/^[dlmjvs]/i,short:/^(d|l|ma|mi|j|v|s)/i,abbreviated:/^(dum|lun|mar|mie|jo|vi|s\xe2)/i,wide:/^(duminica|luni|mar\u0163i|miercuri|joi|vineri|s\xe2mb\u0103t\u0103)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^d/i,/^l/i,/^ma/i,/^mi/i,/^j/i,/^v/i,/^s/i]},defaultParseWidth:"any"}),dayPeriod:Di({matchPatterns:{narrow:/^(a|p|mn|a|(diminea\u0163a|dup\u0103-amiaza|seara|noaptea))/i,any:/^([ap]\.?\s?m\.?|miezul nop\u021bii|amiaza|(diminea\u0163a|dup\u0103-amiaza|seara|noaptea))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mn/i,noon:/amiaza/i,morning:/diminea\u0163a/i,afternoon:/dup\u0103-amiaza/i,evening:/seara/i,night:/noaptea/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:1}};function sm(ee,H){if(void 0!==ee.one&&1===H)return ee.one;const W=H%10,oe=H%100;return 1===W&&11!==oe?ee.singularNominative.replace("{{count}}",String(H)):W>=2&&W<=4&&(oe<10||oe>20)?ee.singularGenitive.replace("{{count}}",String(H)):ee.pluralGenitive.replace("{{count}}",String(H))}function yc(ee){return(H,W)=>W?.addSuffix?W.comparison&&W.comparison>0?ee.future?sm(ee.future,H):"\u0447\u0435\u0440\u0435\u0437 "+sm(ee.regular,H):ee.past?sm(ee.past,H):sm(ee.regular,H)+" \u043d\u0430\u0437\u0430\u0434":sm(ee.regular,H)}const qO={lessThanXSeconds:yc({regular:{one:"\u043c\u0435\u043d\u044c\u0448\u0435 \u0441\u0435\u043a\u0443\u043d\u0434\u044b",singularNominative:"\u043c\u0435\u043d\u044c\u0448\u0435 {{count}} \u0441\u0435\u043a\u0443\u043d\u0434\u044b",singularGenitive:"\u043c\u0435\u043d\u044c\u0448\u0435 {{count}} \u0441\u0435\u043a\u0443\u043d\u0434",pluralGenitive:"\u043c\u0435\u043d\u044c\u0448\u0435 {{count}} \u0441\u0435\u043a\u0443\u043d\u0434"},future:{one:"\u043c\u0435\u043d\u044c\u0448\u0435, \u0447\u0435\u043c \u0447\u0435\u0440\u0435\u0437 \u0441\u0435\u043a\u0443\u043d\u0434\u0443",singularNominative:"\u043c\u0435\u043d\u044c\u0448\u0435, \u0447\u0435\u043c \u0447\u0435\u0440\u0435\u0437 {{count}} \u0441\u0435\u043a\u0443\u043d\u0434\u0443",singularGenitive:"\u043c\u0435\u043d\u044c\u0448\u0435, \u0447\u0435\u043c \u0447\u0435\u0440\u0435\u0437 {{count}} \u0441\u0435\u043a\u0443\u043d\u0434\u044b",pluralGenitive:"\u043c\u0435\u043d\u044c\u0448\u0435, \u0447\u0435\u043c \u0447\u0435\u0440\u0435\u0437 {{count}} \u0441\u0435\u043a\u0443\u043d\u0434"}}),xSeconds:yc({regular:{singularNominative:"{{count}} \u0441\u0435\u043a\u0443\u043d\u0434\u0430",singularGenitive:"{{count}} \u0441\u0435\u043a\u0443\u043d\u0434\u044b",pluralGenitive:"{{count}} \u0441\u0435\u043a\u0443\u043d\u0434"},past:{singularNominative:"{{count}} \u0441\u0435\u043a\u0443\u043d\u0434\u0443 \u043d\u0430\u0437\u0430\u0434",singularGenitive:"{{count}} \u0441\u0435\u043a\u0443\u043d\u0434\u044b \u043d\u0430\u0437\u0430\u0434",pluralGenitive:"{{count}} \u0441\u0435\u043a\u0443\u043d\u0434 \u043d\u0430\u0437\u0430\u0434"},future:{singularNominative:"\u0447\u0435\u0440\u0435\u0437 {{count}} \u0441\u0435\u043a\u0443\u043d\u0434\u0443",singularGenitive:"\u0447\u0435\u0440\u0435\u0437 {{count}} \u0441\u0435\u043a\u0443\u043d\u0434\u044b",pluralGenitive:"\u0447\u0435\u0440\u0435\u0437 {{count}} \u0441\u0435\u043a\u0443\u043d\u0434"}}),halfAMinute:(ee,H)=>H?.addSuffix?H.comparison&&H.comparison>0?"\u0447\u0435\u0440\u0435\u0437 \u043f\u043e\u043b\u043c\u0438\u043d\u0443\u0442\u044b":"\u043f\u043e\u043b\u043c\u0438\u043d\u0443\u0442\u044b \u043d\u0430\u0437\u0430\u0434":"\u043f\u043e\u043b\u043c\u0438\u043d\u0443\u0442\u044b",lessThanXMinutes:yc({regular:{one:"\u043c\u0435\u043d\u044c\u0448\u0435 \u043c\u0438\u043d\u0443\u0442\u044b",singularNominative:"\u043c\u0435\u043d\u044c\u0448\u0435 {{count}} \u043c\u0438\u043d\u0443\u0442\u044b",singularGenitive:"\u043c\u0435\u043d\u044c\u0448\u0435 {{count}} \u043c\u0438\u043d\u0443\u0442",pluralGenitive:"\u043c\u0435\u043d\u044c\u0448\u0435 {{count}} \u043c\u0438\u043d\u0443\u0442"},future:{one:"\u043c\u0435\u043d\u044c\u0448\u0435, \u0447\u0435\u043c \u0447\u0435\u0440\u0435\u0437 \u043c\u0438\u043d\u0443\u0442\u0443",singularNominative:"\u043c\u0435\u043d\u044c\u0448\u0435, \u0447\u0435\u043c \u0447\u0435\u0440\u0435\u0437 {{count}} \u043c\u0438\u043d\u0443\u0442\u0443",singularGenitive:"\u043c\u0435\u043d\u044c\u0448\u0435, \u0447\u0435\u043c \u0447\u0435\u0440\u0435\u0437 {{count}} \u043c\u0438\u043d\u0443\u0442\u044b",pluralGenitive:"\u043c\u0435\u043d\u044c\u0448\u0435, \u0447\u0435\u043c \u0447\u0435\u0440\u0435\u0437 {{count}} \u043c\u0438\u043d\u0443\u0442"}}),xMinutes:yc({regular:{singularNominative:"{{count}} \u043c\u0438\u043d\u0443\u0442\u0430",singularGenitive:"{{count}} \u043c\u0438\u043d\u0443\u0442\u044b",pluralGenitive:"{{count}} \u043c\u0438\u043d\u0443\u0442"},past:{singularNominative:"{{count}} \u043c\u0438\u043d\u0443\u0442\u0443 \u043d\u0430\u0437\u0430\u0434",singularGenitive:"{{count}} \u043c\u0438\u043d\u0443\u0442\u044b \u043d\u0430\u0437\u0430\u0434",pluralGenitive:"{{count}} \u043c\u0438\u043d\u0443\u0442 \u043d\u0430\u0437\u0430\u0434"},future:{singularNominative:"\u0447\u0435\u0440\u0435\u0437 {{count}} \u043c\u0438\u043d\u0443\u0442\u0443",singularGenitive:"\u0447\u0435\u0440\u0435\u0437 {{count}} \u043c\u0438\u043d\u0443\u0442\u044b",pluralGenitive:"\u0447\u0435\u0440\u0435\u0437 {{count}} \u043c\u0438\u043d\u0443\u0442"}}),aboutXHours:yc({regular:{singularNominative:"\u043e\u043a\u043e\u043b\u043e {{count}} \u0447\u0430\u0441\u0430",singularGenitive:"\u043e\u043a\u043e\u043b\u043e {{count}} \u0447\u0430\u0441\u043e\u0432",pluralGenitive:"\u043e\u043a\u043e\u043b\u043e {{count}} \u0447\u0430\u0441\u043e\u0432"},future:{singularNominative:"\u043f\u0440\u0438\u0431\u043b\u0438\u0437\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0447\u0435\u0440\u0435\u0437 {{count}} \u0447\u0430\u0441",singularGenitive:"\u043f\u0440\u0438\u0431\u043b\u0438\u0437\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0447\u0435\u0440\u0435\u0437 {{count}} \u0447\u0430\u0441\u0430",pluralGenitive:"\u043f\u0440\u0438\u0431\u043b\u0438\u0437\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0447\u0435\u0440\u0435\u0437 {{count}} \u0447\u0430\u0441\u043e\u0432"}}),xHours:yc({regular:{singularNominative:"{{count}} \u0447\u0430\u0441",singularGenitive:"{{count}} \u0447\u0430\u0441\u0430",pluralGenitive:"{{count}} \u0447\u0430\u0441\u043e\u0432"}}),xDays:yc({regular:{singularNominative:"{{count}} \u0434\u0435\u043d\u044c",singularGenitive:"{{count}} \u0434\u043d\u044f",pluralGenitive:"{{count}} \u0434\u043d\u0435\u0439"}}),aboutXWeeks:yc({regular:{singularNominative:"\u043e\u043a\u043e\u043b\u043e {{count}} \u043d\u0435\u0434\u0435\u043b\u0438",singularGenitive:"\u043e\u043a\u043e\u043b\u043e {{count}} \u043d\u0435\u0434\u0435\u043b\u044c",pluralGenitive:"\u043e\u043a\u043e\u043b\u043e {{count}} \u043d\u0435\u0434\u0435\u043b\u044c"},future:{singularNominative:"\u043f\u0440\u0438\u0431\u043b\u0438\u0437\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0447\u0435\u0440\u0435\u0437 {{count}} \u043d\u0435\u0434\u0435\u043b\u044e",singularGenitive:"\u043f\u0440\u0438\u0431\u043b\u0438\u0437\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0447\u0435\u0440\u0435\u0437 {{count}} \u043d\u0435\u0434\u0435\u043b\u0438",pluralGenitive:"\u043f\u0440\u0438\u0431\u043b\u0438\u0437\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0447\u0435\u0440\u0435\u0437 {{count}} \u043d\u0435\u0434\u0435\u043b\u044c"}}),xWeeks:yc({regular:{singularNominative:"{{count}} \u043d\u0435\u0434\u0435\u043b\u044f",singularGenitive:"{{count}} \u043d\u0435\u0434\u0435\u043b\u0438",pluralGenitive:"{{count}} \u043d\u0435\u0434\u0435\u043b\u044c"}}),aboutXMonths:yc({regular:{singularNominative:"\u043e\u043a\u043e\u043b\u043e {{count}} \u043c\u0435\u0441\u044f\u0446\u0430",singularGenitive:"\u043e\u043a\u043e\u043b\u043e {{count}} \u043c\u0435\u0441\u044f\u0446\u0435\u0432",pluralGenitive:"\u043e\u043a\u043e\u043b\u043e {{count}} \u043c\u0435\u0441\u044f\u0446\u0435\u0432"},future:{singularNominative:"\u043f\u0440\u0438\u0431\u043b\u0438\u0437\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0447\u0435\u0440\u0435\u0437 {{count}} \u043c\u0435\u0441\u044f\u0446",singularGenitive:"\u043f\u0440\u0438\u0431\u043b\u0438\u0437\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0447\u0435\u0440\u0435\u0437 {{count}} \u043c\u0435\u0441\u044f\u0446\u0430",pluralGenitive:"\u043f\u0440\u0438\u0431\u043b\u0438\u0437\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0447\u0435\u0440\u0435\u0437 {{count}} \u043c\u0435\u0441\u044f\u0446\u0435\u0432"}}),xMonths:yc({regular:{singularNominative:"{{count}} \u043c\u0435\u0441\u044f\u0446",singularGenitive:"{{count}} \u043c\u0435\u0441\u044f\u0446\u0430",pluralGenitive:"{{count}} \u043c\u0435\u0441\u044f\u0446\u0435\u0432"}}),aboutXYears:yc({regular:{singularNominative:"\u043e\u043a\u043e\u043b\u043e {{count}} \u0433\u043e\u0434\u0430",singularGenitive:"\u043e\u043a\u043e\u043b\u043e {{count}} \u043b\u0435\u0442",pluralGenitive:"\u043e\u043a\u043e\u043b\u043e {{count}} \u043b\u0435\u0442"},future:{singularNominative:"\u043f\u0440\u0438\u0431\u043b\u0438\u0437\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0447\u0435\u0440\u0435\u0437 {{count}} \u0433\u043e\u0434",singularGenitive:"\u043f\u0440\u0438\u0431\u043b\u0438\u0437\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0447\u0435\u0440\u0435\u0437 {{count}} \u0433\u043e\u0434\u0430",pluralGenitive:"\u043f\u0440\u0438\u0431\u043b\u0438\u0437\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0447\u0435\u0440\u0435\u0437 {{count}} \u043b\u0435\u0442"}}),xYears:yc({regular:{singularNominative:"{{count}} \u0433\u043e\u0434",singularGenitive:"{{count}} \u0433\u043e\u0434\u0430",pluralGenitive:"{{count}} \u043b\u0435\u0442"}}),overXYears:yc({regular:{singularNominative:"\u0431\u043e\u043b\u044c\u0448\u0435 {{count}} \u0433\u043e\u0434\u0430",singularGenitive:"\u0431\u043e\u043b\u044c\u0448\u0435 {{count}} \u043b\u0435\u0442",pluralGenitive:"\u0431\u043e\u043b\u044c\u0448\u0435 {{count}} \u043b\u0435\u0442"},future:{singularNominative:"\u0431\u043e\u043b\u044c\u0448\u0435, \u0447\u0435\u043c \u0447\u0435\u0440\u0435\u0437 {{count}} \u0433\u043e\u0434",singularGenitive:"\u0431\u043e\u043b\u044c\u0448\u0435, \u0447\u0435\u043c \u0447\u0435\u0440\u0435\u0437 {{count}} \u0433\u043e\u0434\u0430",pluralGenitive:"\u0431\u043e\u043b\u044c\u0448\u0435, \u0447\u0435\u043c \u0447\u0435\u0440\u0435\u0437 {{count}} \u043b\u0435\u0442"}}),almostXYears:yc({regular:{singularNominative:"\u043f\u043e\u0447\u0442\u0438 {{count}} \u0433\u043e\u0434",singularGenitive:"\u043f\u043e\u0447\u0442\u0438 {{count}} \u0433\u043e\u0434\u0430",pluralGenitive:"\u043f\u043e\u0447\u0442\u0438 {{count}} \u043b\u0435\u0442"},future:{singularNominative:"\u043f\u043e\u0447\u0442\u0438 \u0447\u0435\u0440\u0435\u0437 {{count}} \u0433\u043e\u0434",singularGenitive:"\u043f\u043e\u0447\u0442\u0438 \u0447\u0435\u0440\u0435\u0437 {{count}} \u0433\u043e\u0434\u0430",pluralGenitive:"\u043f\u043e\u0447\u0442\u0438 \u0447\u0435\u0440\u0435\u0437 {{count}} \u043b\u0435\u0442"}})},nP={date:Xi({formats:{full:"EEEE, d MMMM y '\u0433.'",long:"d MMMM y '\u0433.'",medium:"d MMM y '\u0433.'",short:"dd.MM.y"},defaultWidth:"full"}),time:Xi({formats:{full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},defaultWidth:"full"}),dateTime:Xi({formats:{any:"{{date}}, {{time}}"},defaultWidth:"any"})},Pp=["\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435","\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a","\u0432\u0442\u043e\u0440\u043d\u0438\u043a","\u0441\u0440\u0435\u0434\u0443","\u0447\u0435\u0442\u0432\u0435\u0440\u0433","\u043f\u044f\u0442\u043d\u0438\u0446\u0443","\u0441\u0443\u0431\u0431\u043e\u0442\u0443"];function Qy(ee){const H=Pp[ee];return 2===ee?"'\u0432\u043e "+H+" \u0432' p":"'\u0432 "+H+" \u0432' p"}const b1={lastWeek:(ee,H,W)=>{const oe=ee.getDay();return Rl(ee,H,W)?Qy(oe):function S1(ee){const H=Pp[ee];switch(ee){case 0:return"'\u0432 \u043f\u0440\u043e\u0448\u043b\u043e\u0435 "+H+" \u0432' p";case 1:case 2:case 4:return"'\u0432 \u043f\u0440\u043e\u0448\u043b\u044b\u0439 "+H+" \u0432' p";case 3:case 5:case 6:return"'\u0432 \u043f\u0440\u043e\u0448\u043b\u0443\u044e "+H+" \u0432' p"}}(oe)},yesterday:"'\u0432\u0447\u0435\u0440\u0430 \u0432' p",today:"'\u0441\u0435\u0433\u043e\u0434\u043d\u044f \u0432' p",tomorrow:"'\u0437\u0430\u0432\u0442\u0440\u0430 \u0432' p",nextWeek:(ee,H,W)=>{const oe=ee.getDay();return Rl(ee,H,W)?Qy(oe):function H_(ee){const H=Pp[ee];switch(ee){case 0:return"'\u0432 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435 "+H+" \u0432' p";case 1:case 2:case 4:return"'\u0432 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 "+H+" \u0432' p";case 3:case 5:case 6:return"'\u0432 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e "+H+" \u0432' p"}}(oe)},other:"P"},tS={code:"ru",formatDistance:(ee,H,W)=>qO[ee](H,W),formatLong:nP,formatRelative:(ee,H,W,oe)=>{const pt=b1[ee];return"function"==typeof pt?pt(H,W,oe):pt},localize:{ordinalNumber:(ee,H)=>{const W=Number(ee),oe=H?.unit;let pt;return pt="date"===oe?"-\u0435":"week"===oe||"minute"===oe||"second"===oe?"-\u044f":"-\u0439",W+pt},era:Dt({values:{narrow:["\u0434\u043e \u043d.\u044d.","\u043d.\u044d."],abbreviated:["\u0434\u043e \u043d. \u044d.","\u043d. \u044d."],wide:["\u0434\u043e \u043d\u0430\u0448\u0435\u0439 \u044d\u0440\u044b","\u043d\u0430\u0448\u0435\u0439 \u044d\u0440\u044b"]},defaultWidth:"wide"}),quarter:Dt({values:{narrow:["1","2","3","4"],abbreviated:["1-\u0439 \u043a\u0432.","2-\u0439 \u043a\u0432.","3-\u0439 \u043a\u0432.","4-\u0439 \u043a\u0432."],wide:["1-\u0439 \u043a\u0432\u0430\u0440\u0442\u0430\u043b","2-\u0439 \u043a\u0432\u0430\u0440\u0442\u0430\u043b","3-\u0439 \u043a\u0432\u0430\u0440\u0442\u0430\u043b","4-\u0439 \u043a\u0432\u0430\u0440\u0442\u0430\u043b"]},defaultWidth:"wide",argumentCallback:ee=>ee-1}),month:Dt({values:{narrow:["\u042f","\u0424","\u041c","\u0410","\u041c","\u0418","\u0418","\u0410","\u0421","\u041e","\u041d","\u0414"],abbreviated:["\u044f\u043d\u0432.","\u0444\u0435\u0432.","\u043c\u0430\u0440\u0442","\u0430\u043f\u0440.","\u043c\u0430\u0439","\u0438\u044e\u043d\u044c","\u0438\u044e\u043b\u044c","\u0430\u0432\u0433.","\u0441\u0435\u043d\u0442.","\u043e\u043a\u0442.","\u043d\u043e\u044f\u0431.","\u0434\u0435\u043a."],wide:["\u044f\u043d\u0432\u0430\u0440\u044c","\u0444\u0435\u0432\u0440\u0430\u043b\u044c","\u043c\u0430\u0440\u0442","\u0430\u043f\u0440\u0435\u043b\u044c","\u043c\u0430\u0439","\u0438\u044e\u043d\u044c","\u0438\u044e\u043b\u044c","\u0430\u0432\u0433\u0443\u0441\u0442","\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c","\u043e\u043a\u0442\u044f\u0431\u0440\u044c","\u043d\u043e\u044f\u0431\u0440\u044c","\u0434\u0435\u043a\u0430\u0431\u0440\u044c"]},defaultWidth:"wide",formattingValues:{narrow:["\u042f","\u0424","\u041c","\u0410","\u041c","\u0418","\u0418","\u0410","\u0421","\u041e","\u041d","\u0414"],abbreviated:["\u044f\u043d\u0432.","\u0444\u0435\u0432.","\u043c\u0430\u0440.","\u0430\u043f\u0440.","\u043c\u0430\u044f","\u0438\u044e\u043d.","\u0438\u044e\u043b.","\u0430\u0432\u0433.","\u0441\u0435\u043d\u0442.","\u043e\u043a\u0442.","\u043d\u043e\u044f\u0431.","\u0434\u0435\u043a."],wide:["\u044f\u043d\u0432\u0430\u0440\u044f","\u0444\u0435\u0432\u0440\u0430\u043b\u044f","\u043c\u0430\u0440\u0442\u0430","\u0430\u043f\u0440\u0435\u043b\u044f","\u043c\u0430\u044f","\u0438\u044e\u043d\u044f","\u0438\u044e\u043b\u044f","\u0430\u0432\u0433\u0443\u0441\u0442\u0430","\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044f","\u043e\u043a\u0442\u044f\u0431\u0440\u044f","\u043d\u043e\u044f\u0431\u0440\u044f","\u0434\u0435\u043a\u0430\u0431\u0440\u044f"]},defaultFormattingWidth:"wide"}),day:Dt({values:{narrow:["\u0412","\u041f","\u0412","\u0421","\u0427","\u041f","\u0421"],short:["\u0432\u0441","\u043f\u043d","\u0432\u0442","\u0441\u0440","\u0447\u0442","\u043f\u0442","\u0441\u0431"],abbreviated:["\u0432\u0441\u043a","\u043f\u043d\u0434","\u0432\u0442\u0440","\u0441\u0440\u0434","\u0447\u0442\u0432","\u043f\u0442\u043d","\u0441\u0443\u0431"],wide:["\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435","\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a","\u0432\u0442\u043e\u0440\u043d\u0438\u043a","\u0441\u0440\u0435\u0434\u0430","\u0447\u0435\u0442\u0432\u0435\u0440\u0433","\u043f\u044f\u0442\u043d\u0438\u0446\u0430","\u0441\u0443\u0431\u0431\u043e\u0442\u0430"]},defaultWidth:"wide"}),dayPeriod:Dt({values:{narrow:{am:"\u0414\u041f",pm:"\u041f\u041f",midnight:"\u043f\u043e\u043b\u043d.",noon:"\u043f\u043e\u043b\u0434.",morning:"\u0443\u0442\u0440\u043e",afternoon:"\u0434\u0435\u043d\u044c",evening:"\u0432\u0435\u0447.",night:"\u043d\u043e\u0447\u044c"},abbreviated:{am:"\u0414\u041f",pm:"\u041f\u041f",midnight:"\u043f\u043e\u043b\u043d.",noon:"\u043f\u043e\u043b\u0434.",morning:"\u0443\u0442\u0440\u043e",afternoon:"\u0434\u0435\u043d\u044c",evening:"\u0432\u0435\u0447.",night:"\u043d\u043e\u0447\u044c"},wide:{am:"\u0414\u041f",pm:"\u041f\u041f",midnight:"\u043f\u043e\u043b\u043d\u043e\u0447\u044c",noon:"\u043f\u043e\u043b\u0434\u0435\u043d\u044c",morning:"\u0443\u0442\u0440\u043e",afternoon:"\u0434\u0435\u043d\u044c",evening:"\u0432\u0435\u0447\u0435\u0440",night:"\u043d\u043e\u0447\u044c"}},defaultWidth:"any",formattingValues:{narrow:{am:"\u0414\u041f",pm:"\u041f\u041f",midnight:"\u043f\u043e\u043b\u043d.",noon:"\u043f\u043e\u043b\u0434.",morning:"\u0443\u0442\u0440\u0430",afternoon:"\u0434\u043d\u044f",evening:"\u0432\u0435\u0447.",night:"\u043d\u043e\u0447\u0438"},abbreviated:{am:"\u0414\u041f",pm:"\u041f\u041f",midnight:"\u043f\u043e\u043b\u043d.",noon:"\u043f\u043e\u043b\u0434.",morning:"\u0443\u0442\u0440\u0430",afternoon:"\u0434\u043d\u044f",evening:"\u0432\u0435\u0447.",night:"\u043d\u043e\u0447\u0438"},wide:{am:"\u0414\u041f",pm:"\u041f\u041f",midnight:"\u043f\u043e\u043b\u043d\u043e\u0447\u044c",noon:"\u043f\u043e\u043b\u0434\u0435\u043d\u044c",morning:"\u0443\u0442\u0440\u0430",afternoon:"\u0434\u043d\u044f",evening:"\u0432\u0435\u0447\u0435\u0440\u0430",night:"\u043d\u043e\u0447\u0438"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:hs({matchPattern:/^(\d+)(-?(\u0435|\u044f|\u0439|\u043e\u0435|\u044c\u0435|\u0430\u044f|\u044c\u044f|\u044b\u0439|\u043e\u0439|\u0438\u0439|\u044b\u0439))?/i,parsePattern:/\d+/i,valueCallback:ee=>parseInt(ee,10)}),era:Di({matchPatterns:{narrow:/^((\u0434\u043e )?\u043d\.?\s?\u044d\.?)/i,abbreviated:/^((\u0434\u043e )?\u043d\.?\s?\u044d\.?)/i,wide:/^(\u0434\u043e \u043d\u0430\u0448\u0435\u0439 \u044d\u0440\u044b|\u043d\u0430\u0448\u0435\u0439 \u044d\u0440\u044b|\u043d\u0430\u0448\u0430 \u044d\u0440\u0430)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^\u0434/i,/^\u043d/i]},defaultParseWidth:"any"}),quarter:Di({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234](-?[\u044b\u043e\u0438]?\u0439?)? \u043a\u0432.?/i,wide:/^[1234](-?[\u044b\u043e\u0438]?\u0439?)? \u043a\u0432\u0430\u0440\u0442\u0430\u043b/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:ee=>ee+1}),month:Di({matchPatterns:{narrow:/^[\u044f\u0444\u043c\u0430\u0438\u0441\u043e\u043d\u0434]/i,abbreviated:/^(\u044f\u043d\u0432|\u0444\u0435\u0432|\u043c\u0430\u0440\u0442?|\u0430\u043f\u0440|\u043c\u0430[\u0439\u044f]|\u0438\u044e\u043d[\u044c\u044f]?|\u0438\u044e\u043b[\u044c\u044f]?|\u0430\u0432\u0433|\u0441\u0435\u043d\u0442?|\u043e\u043a\u0442|\u043d\u043e\u044f\u0431?|\u0434\u0435\u043a)\.?/i,wide:/^(\u044f\u043d\u0432\u0430\u0440[\u044c\u044f]|\u0444\u0435\u0432\u0440\u0430\u043b[\u044c\u044f]|\u043c\u0430\u0440\u0442\u0430?|\u0430\u043f\u0440\u0435\u043b[\u044c\u044f]|\u043c\u0430[\u0439\u044f]|\u0438\u044e\u043d[\u044c\u044f]|\u0438\u044e\u043b[\u044c\u044f]|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044c\u044f]|\u043e\u043a\u0442\u044f\u0431\u0440[\u044c\u044f]|\u043e\u043a\u0442\u044f\u0431\u0440[\u044c\u044f]|\u043d\u043e\u044f\u0431\u0440[\u044c\u044f]|\u0434\u0435\u043a\u0430\u0431\u0440[\u044c\u044f])/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^\u044f/i,/^\u0444/i,/^\u043c/i,/^\u0430/i,/^\u043c/i,/^\u0438/i,/^\u0438/i,/^\u0430/i,/^\u0441/i,/^\u043e/i,/^\u043d/i,/^\u044f/i],any:[/^\u044f/i,/^\u0444/i,/^\u043c\u0430\u0440/i,/^\u0430\u043f/i,/^\u043c\u0430[\u0439\u044f]/i,/^\u0438\u044e\u043d/i,/^\u0438\u044e\u043b/i,/^\u0430\u0432/i,/^\u0441/i,/^\u043e/i,/^\u043d/i,/^\u0434/i]},defaultParseWidth:"any"}),day:Di({matchPatterns:{narrow:/^[\u0432\u043f\u0441\u0447]/i,short:/^(\u0432\u0441|\u0432\u043e|\u043f\u043d|\u043f\u043e|\u0432\u0442|\u0441\u0440|\u0447\u0442|\u0447\u0435|\u043f\u0442|\u043f\u044f|\u0441\u0431|\u0441\u0443)\.?/i,abbreviated:/^(\u0432\u0441\u043a|\u0432\u043e\u0441|\u043f\u043d\u0434|\u043f\u043e\u043d|\u0432\u0442\u0440|\u0432\u0442\u043e|\u0441\u0440\u0434|\u0441\u0440\u0435|\u0447\u0442\u0432|\u0447\u0435\u0442|\u043f\u0442\u043d|\u043f\u044f\u0442|\u0441\u0443\u0431).?/i,wide:/^(\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c[\u0435\u044f]|\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a\u0430?|\u0432\u0442\u043e\u0440\u043d\u0438\u043a\u0430?|\u0441\u0440\u0435\u0434[\u0430\u044b]|\u0447\u0435\u0442\u0432\u0435\u0440\u0433\u0430?|\u043f\u044f\u0442\u043d\u0438\u0446[\u0430\u044b]|\u0441\u0443\u0431\u0431\u043e\u0442[\u0430\u044b])/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^\u0432/i,/^\u043f/i,/^\u0432/i,/^\u0441/i,/^\u0447/i,/^\u043f/i,/^\u0441/i],any:[/^\u0432[\u043e\u0441]/i,/^\u043f[\u043e\u043d]/i,/^\u0432/i,/^\u0441\u0440/i,/^\u0447/i,/^\u043f[\u044f\u0442]/i,/^\u0441[\u0443\u0431]/i]},defaultParseWidth:"any"}),dayPeriod:Di({matchPatterns:{narrow:/^([\u0434\u043f]\u043f|\u043f\u043e\u043b\u043d\.?|\u043f\u043e\u043b\u0434\.?|\u0443\u0442\u0440[\u043e\u0430]|\u0434\u0435\u043d\u044c|\u0434\u043d\u044f|\u0432\u0435\u0447\.?|\u043d\u043e\u0447[\u044c\u0438])/i,abbreviated:/^([\u0434\u043f]\u043f|\u043f\u043e\u043b\u043d\.?|\u043f\u043e\u043b\u0434\.?|\u0443\u0442\u0440[\u043e\u0430]|\u0434\u0435\u043d\u044c|\u0434\u043d\u044f|\u0432\u0435\u0447\.?|\u043d\u043e\u0447[\u044c\u0438])/i,wide:/^([\u0434\u043f]\u043f|\u043f\u043e\u043b\u043d\u043e\u0447\u044c|\u043f\u043e\u043b\u0434\u0435\u043d\u044c|\u0443\u0442\u0440[\u043e\u0430]|\u0434\u0435\u043d\u044c|\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430?|\u043d\u043e\u0447[\u044c\u0438])/i},defaultMatchWidth:"wide",parsePatterns:{any:{am:/^\u0434\u043f/i,pm:/^\u043f\u043f/i,midnight:/^\u043f\u043e\u043b\u043d/i,noon:/^\u043f\u043e\u043b\u0434/i,morning:/^\u0443/i,afternoon:/^\u0434[\u0435\u043d]/i,evening:/^\u0432/i,night:/^\u043d/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:1}};function um(ee,H,W){return function Rv(ee,H){return 1===H&&ee.one?ee.one:H>=2&&H<=4&&ee.twoFour?ee.twoFour:ee.other}(ee,H)[W].replace("{{count}}",String(H))}function Dp(ee){let H="";return"almost"===ee&&(H="takmer"),"about"===ee&&(H="pribli\u017ene"),H.length>0?H+" ":""}function dh(ee){let H="";return"lessThan"===ee&&(H="menej ne\u017e"),"over"===ee&&(H="viac ne\u017e"),H.length>0?H+" ":""}const Md={xSeconds:{one:{present:"sekunda",past:"sekundou",future:"sekundu"},twoFour:{present:"{{count}} sekundy",past:"{{count}} sekundami",future:"{{count}} sekundy"},other:{present:"{{count}} sek\xfand",past:"{{count}} sekundami",future:"{{count}} sek\xfand"}},halfAMinute:{other:{present:"pol min\xfaty",past:"pol min\xfatou",future:"pol min\xfaty"}},xMinutes:{one:{present:"min\xfata",past:"min\xfatou",future:"min\xfatu"},twoFour:{present:"{{count}} min\xfaty",past:"{{count}} min\xfatami",future:"{{count}} min\xfaty"},other:{present:"{{count}} min\xfat",past:"{{count}} min\xfatami",future:"{{count}} min\xfat"}},xHours:{one:{present:"hodina",past:"hodinou",future:"hodinu"},twoFour:{present:"{{count}} hodiny",past:"{{count}} hodinami",future:"{{count}} hodiny"},other:{present:"{{count}} hod\xedn",past:"{{count}} hodinami",future:"{{count}} hod\xedn"}},xDays:{one:{present:"de\u0148",past:"d\u0148om",future:"de\u0148"},twoFour:{present:"{{count}} dni",past:"{{count}} d\u0148ami",future:"{{count}} dni"},other:{present:"{{count}} dn\xed",past:"{{count}} d\u0148ami",future:"{{count}} dn\xed"}},xWeeks:{one:{present:"t\xfd\u017ede\u0148",past:"t\xfd\u017ed\u0148om",future:"t\xfd\u017ede\u0148"},twoFour:{present:"{{count}} t\xfd\u017edne",past:"{{count}} t\xfd\u017ed\u0148ami",future:"{{count}} t\xfd\u017edne"},other:{present:"{{count}} t\xfd\u017ed\u0148ov",past:"{{count}} t\xfd\u017ed\u0148ami",future:"{{count}} t\xfd\u017ed\u0148ov"}},xMonths:{one:{present:"mesiac",past:"mesiacom",future:"mesiac"},twoFour:{present:"{{count}} mesiace",past:"{{count}} mesiacmi",future:"{{count}} mesiace"},other:{present:"{{count}} mesiacov",past:"{{count}} mesiacmi",future:"{{count}} mesiacov"}},xYears:{one:{present:"rok",past:"rokom",future:"rok"},twoFour:{present:"{{count}} roky",past:"{{count}} rokmi",future:"{{count}} roky"},other:{present:"{{count}} rokov",past:"{{count}} rokmi",future:"{{count}} rokov"}}},rS={date:Xi({formats:{full:"EEEE d. MMMM y",long:"d. MMMM y",medium:"d. M. y",short:"d. M. y"},defaultWidth:"full"}),time:Xi({formats:{full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},defaultWidth:"full"}),dateTime:Xi({formats:{full:"{{date}}, {{time}}",long:"{{date}}, {{time}}",medium:"{{date}}, {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},W_=["nede\u013eu","pondelok","utorok","stredu","\u0161tvrtok","piatok","sobotu"];function sS(ee){return 4===ee?"'vo' eeee 'o' p":"'v "+W_[ee]+" o' p"}const z_={lastWeek:(ee,H,W)=>{const oe=ee.getDay();return Rl(ee,H,W)?sS(oe):function iP(ee){const H=W_[ee];switch(ee){case 0:case 3:case 6:return"'minul\xfa "+H+" o' p";default:return"'minul\xfd' eeee 'o' p"}}(oe)},yesterday:"'v\u010dera o' p",today:"'dnes o' p",tomorrow:"'zajtra o' p",nextWeek:(ee,H,W)=>{const oe=ee.getDay();return Rl(ee,H,W)?sS(oe):function Nv(ee){const H=W_[ee];switch(ee){case 0:case 4:case 6:return"'bud\xfacu "+H+" o' p";default:return"'bud\xfaci' eeee 'o' p"}}(oe)},other:"P"},Q_={code:"sk",formatDistance:(ee,H,W)=>{const oe=function nS(ee){return["lessThan","about","over","almost"].filter(function(W){return!!ee.match(new RegExp("^"+W))})[0]}(ee)||"",pt=function M1(ee){return ee.charAt(0).toLowerCase()+ee.slice(1)}(ee.substring(oe.length)),wn=Md[pt];return W?.addSuffix?W.comparison&&W.comparison>0?Dp(oe)+"o "+dh(oe)+um(wn,H,"future"):Dp(oe)+"pred "+dh(oe)+um(wn,H,"past"):Dp(oe)+dh(oe)+um(wn,H,"present")},formatLong:rS,formatRelative:(ee,H,W,oe)=>{const pt=z_[ee];return"function"==typeof pt?pt(H,W,oe):pt},localize:{ordinalNumber:(ee,H)=>Number(ee)+".",era:Dt({values:{narrow:["pred Kr.","po Kr."],abbreviated:["pred Kr.","po Kr."],wide:["pred Kristom","po Kristovi"]},defaultWidth:"wide"}),quarter:Dt({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1. \u0161tvr\u0165rok","2. \u0161tvr\u0165rok","3. \u0161tvr\u0165rok","4. \u0161tvr\u0165rok"]},defaultWidth:"wide",argumentCallback:ee=>ee-1}),month:Dt({values:{narrow:["j","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["jan","feb","mar","apr","m\xe1j","j\xfan","j\xfal","aug","sep","okt","nov","dec"],wide:["janu\xe1r","febru\xe1r","marec","apr\xedl","m\xe1j","j\xfan","j\xfal","august","september","okt\xf3ber","november","december"]},defaultWidth:"wide",formattingValues:{narrow:["j","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["jan","feb","mar","apr","m\xe1j","j\xfan","j\xfal","aug","sep","okt","nov","dec"],wide:["janu\xe1ra","febru\xe1ra","marca","apr\xedla","m\xe1ja","j\xfana","j\xfala","augusta","septembra","okt\xf3bra","novembra","decembra"]},defaultFormattingWidth:"wide"}),day:Dt({values:{narrow:["n","p","u","s","\u0161","p","s"],short:["ne","po","ut","st","\u0161t","pi","so"],abbreviated:["ne","po","ut","st","\u0161t","pi","so"],wide:["nede\u013ea","pondelok","utorok","streda","\u0161tvrtok","piatok","sobota"]},defaultWidth:"wide"}),dayPeriod:Dt({values:{narrow:{am:"AM",pm:"PM",midnight:"poln.",noon:"pol.",morning:"r\xe1no",afternoon:"pop.",evening:"ve\u010d.",night:"noc"},abbreviated:{am:"AM",pm:"PM",midnight:"poln.",noon:"pol.",morning:"r\xe1no",afternoon:"popol.",evening:"ve\u010der",night:"noc"},wide:{am:"AM",pm:"PM",midnight:"polnoc",noon:"poludnie",morning:"r\xe1no",afternoon:"popoludnie",evening:"ve\u010der",night:"noc"}},defaultWidth:"wide",formattingValues:{narrow:{am:"AM",pm:"PM",midnight:"o poln.",noon:"nap.",morning:"r\xe1no",afternoon:"pop.",evening:"ve\u010d.",night:"v n."},abbreviated:{am:"AM",pm:"PM",midnight:"o poln.",noon:"napol.",morning:"r\xe1no",afternoon:"popol.",evening:"ve\u010der",night:"v noci"},wide:{am:"AM",pm:"PM",midnight:"o polnoci",noon:"napoludnie",morning:"r\xe1no",afternoon:"popoludn\xed",evening:"ve\u010der",night:"v noci"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:hs({matchPattern:/^(\d+)\.?/i,parsePattern:/\d+/i,valueCallback:ee=>parseInt(ee,10)}),era:Di({matchPatterns:{narrow:/^(pred Kr\.|pred n\. l\.|po Kr\.|n\. l\.)/i,abbreviated:/^(pred Kr\.|pred n\. l\.|po Kr\.|n\. l\.)/i,wide:/^(pred Kristom|pred na[\u0161s][\xedi]m letopo[\u010dc]tom|po Kristovi|n[\xe1a][\u0161s]ho letopo[\u010dc]tu)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^pr/i,/^(po|n)/i]},defaultParseWidth:"any"}),quarter:Di({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234]\. [\u0161s]tvr[\u0165t]rok/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:ee=>ee+1}),month:Di({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|m[\xe1a]j|j[\xfau]n|j[\xfau]l|aug|sep|okt|nov|dec)/i,wide:/^(janu[\xe1a]ra?|febru[\xe1a]ra?|(marec|marca)|apr[\xedi]la?|m[\xe1a]ja?|j[\xfau]na?|j[\xfau]la?|augusta?|(september|septembra)|(okt[\xf3o]ber|okt[\xf3o]bra)|(november|novembra)|(december|decembra))/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^m[\xe1a]j/i,/^j[\xfau]n/i,/^j[\xfau]l/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:Di({matchPatterns:{narrow:/^[npus\u0161p]/i,short:/^(ne|po|ut|st|\u0161t|pi|so)/i,abbreviated:/^(ne|po|ut|st|\u0161t|pi|so)/i,wide:/^(nede[\u013el]a|pondelok|utorok|streda|[\u0161s]tvrtok|piatok|sobota])/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^n/i,/^p/i,/^u/i,/^s/i,/^\u0161/i,/^p/i,/^s/i],any:[/^n/i,/^po/i,/^u/i,/^st/i,/^(\u0161t|stv)/i,/^pi/i,/^so/i]},defaultParseWidth:"any"}),dayPeriod:Di({matchPatterns:{narrow:/^(am|pm|(o )?poln\.?|(nap\.?|pol\.?)|r[\xe1a]no|pop\.?|ve[\u010dc]\.?|(v n\.?|noc))/i,abbreviated:/^(am|pm|(o )?poln\.?|(napol\.?|pol\.?)|r[\xe1a]no|pop\.?|ve[\u010dc]er|(v )?noci?)/i,any:/^(am|pm|(o )?polnoci?|(na)?poludnie|r[\xe1a]no|popoludn(ie|\xed|i)|ve[\u010dc]er|(v )?noci?)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^am/i,pm:/^pm/i,midnight:/poln/i,noon:/^(nap|(na)?pol(\.|u))/i,morning:/^r[\xe1a]no/i,afternoon:/^pop/i,evening:/^ve[\u010dc]/i,night:/^(noc|v n\.)/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:4}},U1={lessThanXSeconds:{present:{one:"manj kot {{count}} sekunda",two:"manj kot {{count}} sekundi",few:"manj kot {{count}} sekunde",other:"manj kot {{count}} sekund"},past:{one:"manj kot {{count}} sekundo",two:"manj kot {{count}} sekundama",few:"manj kot {{count}} sekundami",other:"manj kot {{count}} sekundami"},future:{one:"manj kot {{count}} sekundo",two:"manj kot {{count}} sekundi",few:"manj kot {{count}} sekunde",other:"manj kot {{count}} sekund"}},xSeconds:{present:{one:"{{count}} sekunda",two:"{{count}} sekundi",few:"{{count}} sekunde",other:"{{count}} sekund"},past:{one:"{{count}} sekundo",two:"{{count}} sekundama",few:"{{count}} sekundami",other:"{{count}} sekundami"},future:{one:"{{count}} sekundo",two:"{{count}} sekundi",few:"{{count}} sekunde",other:"{{count}} sekund"}},halfAMinute:"pol minute",lessThanXMinutes:{present:{one:"manj kot {{count}} minuta",two:"manj kot {{count}} minuti",few:"manj kot {{count}} minute",other:"manj kot {{count}} minut"},past:{one:"manj kot {{count}} minuto",two:"manj kot {{count}} minutama",few:"manj kot {{count}} minutami",other:"manj kot {{count}} minutami"},future:{one:"manj kot {{count}} minuto",two:"manj kot {{count}} minuti",few:"manj kot {{count}} minute",other:"manj kot {{count}} minut"}},xMinutes:{present:{one:"{{count}} minuta",two:"{{count}} minuti",few:"{{count}} minute",other:"{{count}} minut"},past:{one:"{{count}} minuto",two:"{{count}} minutama",few:"{{count}} minutami",other:"{{count}} minutami"},future:{one:"{{count}} minuto",two:"{{count}} minuti",few:"{{count}} minute",other:"{{count}} minut"}},aboutXHours:{present:{one:"pribli\u017eno {{count}} ura",two:"pribli\u017eno {{count}} uri",few:"pribli\u017eno {{count}} ure",other:"pribli\u017eno {{count}} ur"},past:{one:"pribli\u017eno {{count}} uro",two:"pribli\u017eno {{count}} urama",few:"pribli\u017eno {{count}} urami",other:"pribli\u017eno {{count}} urami"},future:{one:"pribli\u017eno {{count}} uro",two:"pribli\u017eno {{count}} uri",few:"pribli\u017eno {{count}} ure",other:"pribli\u017eno {{count}} ur"}},xHours:{present:{one:"{{count}} ura",two:"{{count}} uri",few:"{{count}} ure",other:"{{count}} ur"},past:{one:"{{count}} uro",two:"{{count}} urama",few:"{{count}} urami",other:"{{count}} urami"},future:{one:"{{count}} uro",two:"{{count}} uri",few:"{{count}} ure",other:"{{count}} ur"}},xDays:{present:{one:"{{count}} dan",two:"{{count}} dni",few:"{{count}} dni",other:"{{count}} dni"},past:{one:"{{count}} dnem",two:"{{count}} dnevoma",few:"{{count}} dnevi",other:"{{count}} dnevi"},future:{one:"{{count}} dan",two:"{{count}} dni",few:"{{count}} dni",other:"{{count}} dni"}},aboutXWeeks:{one:"pribli\u017eno {{count}} teden",two:"pribli\u017eno {{count}} tedna",few:"pribli\u017eno {{count}} tedne",other:"pribli\u017eno {{count}} tednov"},xWeeks:{one:"{{count}} teden",two:"{{count}} tedna",few:"{{count}} tedne",other:"{{count}} tednov"},aboutXMonths:{present:{one:"pribli\u017eno {{count}} mesec",two:"pribli\u017eno {{count}} meseca",few:"pribli\u017eno {{count}} mesece",other:"pribli\u017eno {{count}} mesecev"},past:{one:"pribli\u017eno {{count}} mesecem",two:"pribli\u017eno {{count}} mesecema",few:"pribli\u017eno {{count}} meseci",other:"pribli\u017eno {{count}} meseci"},future:{one:"pribli\u017eno {{count}} mesec",two:"pribli\u017eno {{count}} meseca",few:"pribli\u017eno {{count}} mesece",other:"pribli\u017eno {{count}} mesecev"}},xMonths:{present:{one:"{{count}} mesec",two:"{{count}} meseca",few:"{{count}} meseci",other:"{{count}} mesecev"},past:{one:"{{count}} mesecem",two:"{{count}} mesecema",few:"{{count}} meseci",other:"{{count}} meseci"},future:{one:"{{count}} mesec",two:"{{count}} meseca",few:"{{count}} mesece",other:"{{count}} mesecev"}},aboutXYears:{present:{one:"pribli\u017eno {{count}} leto",two:"pribli\u017eno {{count}} leti",few:"pribli\u017eno {{count}} leta",other:"pribli\u017eno {{count}} let"},past:{one:"pribli\u017eno {{count}} letom",two:"pribli\u017eno {{count}} letoma",few:"pribli\u017eno {{count}} leti",other:"pribli\u017eno {{count}} leti"},future:{one:"pribli\u017eno {{count}} leto",two:"pribli\u017eno {{count}} leti",few:"pribli\u017eno {{count}} leta",other:"pribli\u017eno {{count}} let"}},xYears:{present:{one:"{{count}} leto",two:"{{count}} leti",few:"{{count}} leta",other:"{{count}} let"},past:{one:"{{count}} letom",two:"{{count}} letoma",few:"{{count}} leti",other:"{{count}} leti"},future:{one:"{{count}} leto",two:"{{count}} leti",few:"{{count}} leta",other:"{{count}} let"}},overXYears:{present:{one:"ve\u010d kot {{count}} leto",two:"ve\u010d kot {{count}} leti",few:"ve\u010d kot {{count}} leta",other:"ve\u010d kot {{count}} let"},past:{one:"ve\u010d kot {{count}} letom",two:"ve\u010d kot {{count}} letoma",few:"ve\u010d kot {{count}} leti",other:"ve\u010d kot {{count}} leti"},future:{one:"ve\u010d kot {{count}} leto",two:"ve\u010d kot {{count}} leti",few:"ve\u010d kot {{count}} leta",other:"ve\u010d kot {{count}} let"}},almostXYears:{present:{one:"skoraj {{count}} leto",two:"skoraj {{count}} leti",few:"skoraj {{count}} leta",other:"skoraj {{count}} let"},past:{one:"skoraj {{count}} letom",two:"skoraj {{count}} letoma",few:"skoraj {{count}} leti",other:"skoraj {{count}} leti"},future:{one:"skoraj {{count}} leto",two:"skoraj {{count}} leti",few:"skoraj {{count}} leta",other:"skoraj {{count}} let"}}},j1={date:Xi({formats:{full:"EEEE, dd. MMMM y",long:"dd. MMMM y",medium:"d. MMM y",short:"d. MM. yy"},defaultWidth:"full"}),time:Xi({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:Xi({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},W1={lastWeek:ee=>{switch(ee.getDay()){case 0:return"'prej\u0161njo nedeljo ob' p";case 3:return"'prej\u0161njo sredo ob' p";case 6:return"'prej\u0161njo soboto ob' p";default:return"'prej\u0161nji' EEEE 'ob' p"}},yesterday:"'v\u010deraj ob' p",today:"'danes ob' p",tomorrow:"'jutri ob' p",nextWeek:ee=>{switch(ee.getDay()){case 0:return"'naslednjo nedeljo ob' p";case 3:return"'naslednjo sredo ob' p";case 6:return"'naslednjo soboto ob' p";default:return"'naslednji' EEEE 'ob' p"}},other:"P"},Lp={code:"sl",formatDistance:(ee,H,W)=>{let oe="",pt="present";W?.addSuffix&&(W.comparison&&W.comparison>0?(pt="future",oe="\u010dez "):(pt="past",oe="pred "));const wn=U1[ee];if("string"==typeof wn)oe+=wn;else{const hi=function B1(ee){switch(ee%100){case 1:return"one";case 2:return"two";case 3:case 4:return"few";default:return"other"}}(H);!function fS(ee){return void 0!==ee.one}(wn)?oe+=wn[pt][hi].replace("{{count}}",String(H)):oe+=wn[hi].replace("{{count}}",String(H))}return oe},formatLong:j1,formatRelative:(ee,H,W,oe)=>{const pt=W1[ee];return"function"==typeof pt?pt(H):pt},localize:{ordinalNumber:(ee,H)=>Number(ee)+".",era:Dt({values:{narrow:["pr. n. \u0161t.","po n. \u0161t."],abbreviated:["pr. n. \u0161t.","po n. \u0161t."],wide:["pred na\u0161im \u0161tetjem","po na\u0161em \u0161tetju"]},defaultWidth:"wide"}),quarter:Dt({values:{narrow:["1","2","3","4"],abbreviated:["1. \u010det.","2. \u010det.","3. \u010det.","4. \u010det."],wide:["1. \u010detrtletje","2. \u010detrtletje","3. \u010detrtletje","4. \u010detrtletje"]},defaultWidth:"wide",argumentCallback:ee=>ee-1}),month:Dt({values:{narrow:["j","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["jan.","feb.","mar.","apr.","maj","jun.","jul.","avg.","sep.","okt.","nov.","dec."],wide:["januar","februar","marec","april","maj","junij","julij","avgust","september","oktober","november","december"]},defaultWidth:"wide"}),day:Dt({values:{narrow:["n","p","t","s","\u010d","p","s"],short:["ned.","pon.","tor.","sre.","\u010det.","pet.","sob."],abbreviated:["ned.","pon.","tor.","sre.","\u010det.","pet.","sob."],wide:["nedelja","ponedeljek","torek","sreda","\u010detrtek","petek","sobota"]},defaultWidth:"wide"}),dayPeriod:Dt({values:{narrow:{am:"d",pm:"p",midnight:"24.00",noon:"12.00",morning:"j",afternoon:"p",evening:"v",night:"n"},abbreviated:{am:"dop.",pm:"pop.",midnight:"poln.",noon:"pold.",morning:"jut.",afternoon:"pop.",evening:"ve\u010d.",night:"no\u010d"},wide:{am:"dop.",pm:"pop.",midnight:"polno\u010d",noon:"poldne",morning:"jutro",afternoon:"popoldne",evening:"ve\u010der",night:"no\u010d"}},defaultWidth:"wide",formattingValues:{narrow:{am:"d",pm:"p",midnight:"24.00",noon:"12.00",morning:"zj",afternoon:"p",evening:"zv",night:"po"},abbreviated:{am:"dop.",pm:"pop.",midnight:"opoln.",noon:"opold.",morning:"zjut.",afternoon:"pop.",evening:"zve\u010d.",night:"pono\u010di"},wide:{am:"dop.",pm:"pop.",midnight:"opolno\u010di",noon:"opoldne",morning:"zjutraj",afternoon:"popoldan",evening:"zve\u010der",night:"pono\u010di"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:hs({matchPattern:/^(\d+)\./i,parsePattern:/\d+/i,valueCallback:ee=>parseInt(ee,10)}),era:Di({matchPatterns:{abbreviated:/^(pr\. n\. \u0161t\.|po n\. \u0161t\.)/i,wide:/^(pred Kristusom|pred na[s\u0161]im [s\u0161]tetjem|po Kristusu|po na[s\u0161]em [s\u0161]tetju|na[s\u0161]ega [s\u0161]tetja)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^pr/i,/^(po|na[s\u0161]em)/i]},defaultParseWidth:"any"}),quarter:Di({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234]\.\s?[\u010dc]et\.?/i,wide:/^[1234]\. [\u010dc]etrtletje/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:ee=>ee+1}),month:Di({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan\.|feb\.|mar\.|apr\.|maj|jun\.|jul\.|avg\.|sep\.|okt\.|nov\.|dec\.)/i,wide:/^(januar|februar|marec|april|maj|junij|julij|avgust|september|oktober|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],abbreviated:[/^ja/i,/^fe/i,/^mar/i,/^ap/i,/^maj/i,/^jun/i,/^jul/i,/^av/i,/^s/i,/^o/i,/^n/i,/^d/i],wide:[/^ja/i,/^fe/i,/^mar/i,/^ap/i,/^maj/i,/^jun/i,/^jul/i,/^av/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"wide"}),day:Di({matchPatterns:{narrow:/^[npts\u010dc]/i,short:/^(ned\.|pon\.|tor\.|sre\.|[c\u010d]et\.|pet\.|sob\.)/i,abbreviated:/^(ned\.|pon\.|tor\.|sre\.|[c\u010d]et\.|pet\.|sob\.)/i,wide:/^(nedelja|ponedeljek|torek|sreda|[c\u010d]etrtek|petek|sobota)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^n/i,/^p/i,/^t/i,/^s/i,/^[c\u010d]/i,/^p/i,/^s/i],any:[/^n/i,/^po/i,/^t/i,/^sr/i,/^[c\u010d]/i,/^pe/i,/^so/i]},defaultParseWidth:"any"}),dayPeriod:Di({matchPatterns:{narrow:/^(d|po?|z?v|n|z?j|24\.00|12\.00)/i,any:/^(dop\.|pop\.|o?poln(\.|o[c\u010d]i?)|o?pold(\.|ne)|z?ve[c\u010d](\.|er)|(po)?no[c\u010d]i?|popold(ne|an)|jut(\.|ro)|zjut(\.|raj))/i},defaultMatchWidth:"any",parsePatterns:{narrow:{am:/^d/i,pm:/^p/i,midnight:/^24/i,noon:/^12/i,morning:/^(z?j)/i,afternoon:/^p/i,evening:/^(z?v)/i,night:/^(n|po)/i},any:{am:/^dop\./i,pm:/^pop\./i,midnight:/^o?poln/i,noon:/^o?pold/i,morning:/j/i,afternoon:/^pop\./i,evening:/^z?ve/i,night:/(po)?no/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:1}},kp={lessThanXSeconds:{one:"mindre \xe4n en sekund",other:"mindre \xe4n {{count}} sekunder"},xSeconds:{one:"en sekund",other:"{{count}} sekunder"},halfAMinute:"en halv minut",lessThanXMinutes:{one:"mindre \xe4n en minut",other:"mindre \xe4n {{count}} minuter"},xMinutes:{one:"en minut",other:"{{count}} minuter"},aboutXHours:{one:"ungef\xe4r en timme",other:"ungef\xe4r {{count}} timmar"},xHours:{one:"en timme",other:"{{count}} timmar"},xDays:{one:"en dag",other:"{{count}} dagar"},aboutXWeeks:{one:"ungef\xe4r en vecka",other:"ungef\xe4r {{count}} veckor"},xWeeks:{one:"en vecka",other:"{{count}} veckor"},aboutXMonths:{one:"ungef\xe4r en m\xe5nad",other:"ungef\xe4r {{count}} m\xe5nader"},xMonths:{one:"en m\xe5nad",other:"{{count}} m\xe5nader"},aboutXYears:{one:"ungef\xe4r ett \xe5r",other:"ungef\xe4r {{count}} \xe5r"},xYears:{one:"ett \xe5r",other:"{{count}} \xe5r"},overXYears:{one:"\xf6ver ett \xe5r",other:"\xf6ver {{count}} \xe5r"},almostXYears:{one:"n\xe4stan ett \xe5r",other:"n\xe4stan {{count}} \xe5r"}},Fp=["noll","en","tv\xe5","tre","fyra","fem","sex","sju","\xe5tta","nio","tio","elva","tolv"],SS={date:Xi({formats:{full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"y-MM-dd"},defaultWidth:"full"}),time:Xi({formats:{full:"'kl'. HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:Xi({formats:{full:"{{date}} 'kl.' {{time}}",long:"{{date}} 'kl.' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},q_={lastWeek:"'i' EEEE's kl.' p",yesterday:"'ig\xe5r kl.' p",today:"'idag kl.' p",tomorrow:"'imorgon kl.' p",nextWeek:"EEEE 'kl.' p",other:"P"},ac={code:"sv",formatDistance:(ee,H,W)=>{let oe;const pt=kp[ee];return oe="string"==typeof pt?pt:1===H?pt.one:pt.other.replace("{{count}}",H<13?Fp[H]:String(H)),W?.addSuffix?W.comparison&&W.comparison>0?"om "+oe:oe+" sedan":oe},formatLong:SS,formatRelative:(ee,H,W,oe)=>q_[ee],localize:{ordinalNumber:(ee,H)=>{const W=Number(ee),oe=W%100;if(oe>20||oe<10)switch(oe%10){case 1:case 2:return W+":a"}return W+":e"},era:Dt({values:{narrow:["f.Kr.","e.Kr."],abbreviated:["f.Kr.","e.Kr."],wide:["f\xf6re Kristus","efter Kristus"]},defaultWidth:"wide"}),quarter:Dt({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1:a kvartalet","2:a kvartalet","3:e kvartalet","4:e kvartalet"]},defaultWidth:"wide",argumentCallback:ee=>ee-1}),month:Dt({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["jan.","feb.","mars","apr.","maj","juni","juli","aug.","sep.","okt.","nov.","dec."],wide:["januari","februari","mars","april","maj","juni","juli","augusti","september","oktober","november","december"]},defaultWidth:"wide"}),day:Dt({values:{narrow:["S","M","T","O","T","F","L"],short:["s\xf6","m\xe5","ti","on","to","fr","l\xf6"],abbreviated:["s\xf6n","m\xe5n","tis","ons","tors","fre","l\xf6r"],wide:["s\xf6ndag","m\xe5ndag","tisdag","onsdag","torsdag","fredag","l\xf6rdag"]},defaultWidth:"wide"}),dayPeriod:Dt({values:{narrow:{am:"fm",pm:"em",midnight:"midnatt",noon:"middag",morning:"morg.",afternoon:"efterm.",evening:"kv\xe4ll",night:"natt"},abbreviated:{am:"f.m.",pm:"e.m.",midnight:"midnatt",noon:"middag",morning:"morgon",afternoon:"efterm.",evening:"kv\xe4ll",night:"natt"},wide:{am:"f\xf6rmiddag",pm:"eftermiddag",midnight:"midnatt",noon:"middag",morning:"morgon",afternoon:"eftermiddag",evening:"kv\xe4ll",night:"natt"}},defaultWidth:"wide",formattingValues:{narrow:{am:"fm",pm:"em",midnight:"midnatt",noon:"middag",morning:"p\xe5 morg.",afternoon:"p\xe5 efterm.",evening:"p\xe5 kv\xe4llen",night:"p\xe5 natten"},abbreviated:{am:"fm",pm:"em",midnight:"midnatt",noon:"middag",morning:"p\xe5 morg.",afternoon:"p\xe5 efterm.",evening:"p\xe5 kv\xe4llen",night:"p\xe5 natten"},wide:{am:"fm",pm:"em",midnight:"midnatt",noon:"middag",morning:"p\xe5 morgonen",afternoon:"p\xe5 eftermiddagen",evening:"p\xe5 kv\xe4llen",night:"p\xe5 natten"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:hs({matchPattern:/^(\d+)(:a|:e)?/i,parsePattern:/\d+/i,valueCallback:ee=>parseInt(ee,10)}),era:Di({matchPatterns:{narrow:/^(f\.? ?Kr\.?|f\.? ?v\.? ?t\.?|e\.? ?Kr\.?|v\.? ?t\.?)/i,abbreviated:/^(f\.? ?Kr\.?|f\.? ?v\.? ?t\.?|e\.? ?Kr\.?|v\.? ?t\.?)/i,wide:/^(f\xf6re Kristus|f\xf6re v\xe5r tid|efter Kristus|v\xe5r tid)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^f/i,/^[ev]/i]},defaultParseWidth:"any"}),quarter:Di({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](:a|:e)? kvartalet/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:ee=>ee+1}),month:Di({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar[s]?|apr|maj|jun[i]?|jul[i]?|aug|sep|okt|nov|dec)\.?/i,wide:/^(januari|februari|mars|april|maj|juni|juli|augusti|september|oktober|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^maj/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:Di({matchPatterns:{narrow:/^[smtofl]/i,short:/^(s\xf6|m\xe5|ti|on|to|fr|l\xf6)/i,abbreviated:/^(s\xf6n|m\xe5n|tis|ons|tors|fre|l\xf6r)/i,wide:/^(s\xf6ndag|m\xe5ndag|tisdag|onsdag|torsdag|fredag|l\xf6rdag)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^s/i,/^m/i,/^ti/i,/^o/i,/^to/i,/^f/i,/^l/i]},defaultParseWidth:"any"}),dayPeriod:Di({matchPatterns:{any:/^([fe]\.?\s?m\.?|midn(att)?|midd(ag)?|(p\xe5) (morgonen|eftermiddagen|kv\xe4llen|natten))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^f/i,pm:/^e/i,midnight:/^midn/i,noon:/^midd/i,morning:/morgon/i,afternoon:/eftermiddag/i,evening:/kv\xe4ll/i,night:/natt/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:4}},lC={lessThanXSeconds:{one:"\u0e19\u0e49\u0e2d\u0e22\u0e01\u0e27\u0e48\u0e32 1 \u0e27\u0e34\u0e19\u0e32\u0e17\u0e35",other:"\u0e19\u0e49\u0e2d\u0e22\u0e01\u0e27\u0e48\u0e32 {{count}} \u0e27\u0e34\u0e19\u0e32\u0e17\u0e35"},xSeconds:{one:"1 \u0e27\u0e34\u0e19\u0e32\u0e17\u0e35",other:"{{count}} \u0e27\u0e34\u0e19\u0e32\u0e17\u0e35"},halfAMinute:"\u0e04\u0e23\u0e36\u0e48\u0e07\u0e19\u0e32\u0e17\u0e35",lessThanXMinutes:{one:"\u0e19\u0e49\u0e2d\u0e22\u0e01\u0e27\u0e48\u0e32 1 \u0e19\u0e32\u0e17\u0e35",other:"\u0e19\u0e49\u0e2d\u0e22\u0e01\u0e27\u0e48\u0e32 {{count}} \u0e19\u0e32\u0e17\u0e35"},xMinutes:{one:"1 \u0e19\u0e32\u0e17\u0e35",other:"{{count}} \u0e19\u0e32\u0e17\u0e35"},aboutXHours:{one:"\u0e1b\u0e23\u0e30\u0e21\u0e32\u0e13 1 \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07",other:"\u0e1b\u0e23\u0e30\u0e21\u0e32\u0e13 {{count}} \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07"},xHours:{one:"1 \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07",other:"{{count}} \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07"},xDays:{one:"1 \u0e27\u0e31\u0e19",other:"{{count}} \u0e27\u0e31\u0e19"},aboutXWeeks:{one:"\u0e1b\u0e23\u0e30\u0e21\u0e32\u0e13 1 \u0e2a\u0e31\u0e1b\u0e14\u0e32\u0e2b\u0e4c",other:"\u0e1b\u0e23\u0e30\u0e21\u0e32\u0e13 {{count}} \u0e2a\u0e31\u0e1b\u0e14\u0e32\u0e2b\u0e4c"},xWeeks:{one:"1 \u0e2a\u0e31\u0e1b\u0e14\u0e32\u0e2b\u0e4c",other:"{{count}} \u0e2a\u0e31\u0e1b\u0e14\u0e32\u0e2b\u0e4c"},aboutXMonths:{one:"\u0e1b\u0e23\u0e30\u0e21\u0e32\u0e13 1 \u0e40\u0e14\u0e37\u0e2d\u0e19",other:"\u0e1b\u0e23\u0e30\u0e21\u0e32\u0e13 {{count}} \u0e40\u0e14\u0e37\u0e2d\u0e19"},xMonths:{one:"1 \u0e40\u0e14\u0e37\u0e2d\u0e19",other:"{{count}} \u0e40\u0e14\u0e37\u0e2d\u0e19"},aboutXYears:{one:"\u0e1b\u0e23\u0e30\u0e21\u0e32\u0e13 1 \u0e1b\u0e35",other:"\u0e1b\u0e23\u0e30\u0e21\u0e32\u0e13 {{count}} \u0e1b\u0e35"},xYears:{one:"1 \u0e1b\u0e35",other:"{{count}} \u0e1b\u0e35"},overXYears:{one:"\u0e21\u0e32\u0e01\u0e01\u0e27\u0e48\u0e32 1 \u0e1b\u0e35",other:"\u0e21\u0e32\u0e01\u0e01\u0e27\u0e48\u0e32 {{count}} \u0e1b\u0e35"},almostXYears:{one:"\u0e40\u0e01\u0e37\u0e2d\u0e1a 1 \u0e1b\u0e35",other:"\u0e40\u0e01\u0e37\u0e2d\u0e1a {{count}} \u0e1b\u0e35"}},TS={date:Xi({formats:{full:"\u0e27\u0e31\u0e19EEEE\u0e17\u0e35\u0e48 do MMMM y",long:"do MMMM y",medium:"d MMM y",short:"dd/MM/yyyy"},defaultWidth:"full"}),time:Xi({formats:{full:"H:mm:ss \u0e19. zzzz",long:"H:mm:ss \u0e19. z",medium:"H:mm:ss \u0e19.",short:"H:mm \u0e19."},defaultWidth:"medium"}),dateTime:Xi({formats:{full:"{{date}} '\u0e40\u0e27\u0e25\u0e32' {{time}}",long:"{{date}} '\u0e40\u0e27\u0e25\u0e32' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Hp={lastWeek:"eeee'\u0e17\u0e35\u0e48\u0e41\u0e25\u0e49\u0e27\u0e40\u0e27\u0e25\u0e32' p",yesterday:"'\u0e40\u0e21\u0e37\u0e48\u0e2d\u0e27\u0e32\u0e19\u0e19\u0e35\u0e49\u0e40\u0e27\u0e25\u0e32' p",today:"'\u0e27\u0e31\u0e19\u0e19\u0e35\u0e49\u0e40\u0e27\u0e25\u0e32' p",tomorrow:"'\u0e1e\u0e23\u0e38\u0e48\u0e07\u0e19\u0e35\u0e49\u0e40\u0e27\u0e25\u0e32' p",nextWeek:"eeee '\u0e40\u0e27\u0e25\u0e32' p",other:"P"},c0={code:"th",formatDistance:(ee,H,W)=>{let oe;const pt=lC[ee];return oe="string"==typeof pt?pt:1===H?pt.one:pt.other.replace("{{count}}",String(H)),W?.addSuffix?W.comparison&&W.comparison>0?"halfAMinute"===ee?"\u0e43\u0e19"+oe:"\u0e43\u0e19 "+oe:oe+"\u0e17\u0e35\u0e48\u0e1c\u0e48\u0e32\u0e19\u0e21\u0e32":oe},formatLong:TS,formatRelative:(ee,H,W,oe)=>Hp[ee],localize:{ordinalNumber:(ee,H)=>String(ee),era:Dt({values:{narrow:["B","\u0e04\u0e28"],abbreviated:["BC","\u0e04.\u0e28."],wide:["\u0e1b\u0e35\u0e01\u0e48\u0e2d\u0e19\u0e04\u0e23\u0e34\u0e2a\u0e15\u0e01\u0e32\u0e25","\u0e04\u0e23\u0e34\u0e2a\u0e15\u0e4c\u0e28\u0e31\u0e01\u0e23\u0e32\u0e0a"]},defaultWidth:"wide"}),quarter:Dt({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["\u0e44\u0e15\u0e23\u0e21\u0e32\u0e2a\u0e41\u0e23\u0e01","\u0e44\u0e15\u0e23\u0e21\u0e32\u0e2a\u0e17\u0e35\u0e48\u0e2a\u0e2d\u0e07","\u0e44\u0e15\u0e23\u0e21\u0e32\u0e2a\u0e17\u0e35\u0e48\u0e2a\u0e32\u0e21","\u0e44\u0e15\u0e23\u0e21\u0e32\u0e2a\u0e17\u0e35\u0e48\u0e2a\u0e35\u0e48"]},defaultWidth:"wide",argumentCallback:ee=>ee-1}),month:Dt({values:{narrow:["\u0e21.\u0e04.","\u0e01.\u0e1e.","\u0e21\u0e35.\u0e04.","\u0e40\u0e21.\u0e22.","\u0e1e.\u0e04.","\u0e21\u0e34.\u0e22.","\u0e01.\u0e04.","\u0e2a.\u0e04.","\u0e01.\u0e22.","\u0e15.\u0e04.","\u0e1e.\u0e22.","\u0e18.\u0e04."],abbreviated:["\u0e21.\u0e04.","\u0e01.\u0e1e.","\u0e21\u0e35.\u0e04.","\u0e40\u0e21.\u0e22.","\u0e1e.\u0e04.","\u0e21\u0e34.\u0e22.","\u0e01.\u0e04.","\u0e2a.\u0e04.","\u0e01.\u0e22.","\u0e15.\u0e04.","\u0e1e.\u0e22.","\u0e18.\u0e04."],wide:["\u0e21\u0e01\u0e23\u0e32\u0e04\u0e21","\u0e01\u0e38\u0e21\u0e20\u0e32\u0e1e\u0e31\u0e19\u0e18\u0e4c","\u0e21\u0e35\u0e19\u0e32\u0e04\u0e21","\u0e40\u0e21\u0e29\u0e32\u0e22\u0e19","\u0e1e\u0e24\u0e29\u0e20\u0e32\u0e04\u0e21","\u0e21\u0e34\u0e16\u0e38\u0e19\u0e32\u0e22\u0e19","\u0e01\u0e23\u0e01\u0e0e\u0e32\u0e04\u0e21","\u0e2a\u0e34\u0e07\u0e2b\u0e32\u0e04\u0e21","\u0e01\u0e31\u0e19\u0e22\u0e32\u0e22\u0e19","\u0e15\u0e38\u0e25\u0e32\u0e04\u0e21","\u0e1e\u0e24\u0e28\u0e08\u0e34\u0e01\u0e32\u0e22\u0e19","\u0e18\u0e31\u0e19\u0e27\u0e32\u0e04\u0e21"]},defaultWidth:"wide"}),day:Dt({values:{narrow:["\u0e2d\u0e32.","\u0e08.","\u0e2d.","\u0e1e.","\u0e1e\u0e24.","\u0e28.","\u0e2a."],short:["\u0e2d\u0e32.","\u0e08.","\u0e2d.","\u0e1e.","\u0e1e\u0e24.","\u0e28.","\u0e2a."],abbreviated:["\u0e2d\u0e32.","\u0e08.","\u0e2d.","\u0e1e.","\u0e1e\u0e24.","\u0e28.","\u0e2a."],wide:["\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c","\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c","\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23","\u0e1e\u0e38\u0e18","\u0e1e\u0e24\u0e2b\u0e31\u0e2a\u0e1a\u0e14\u0e35","\u0e28\u0e38\u0e01\u0e23\u0e4c","\u0e40\u0e2a\u0e32\u0e23\u0e4c"]},defaultWidth:"wide"}),dayPeriod:Dt({values:{narrow:{am:"\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07",pm:"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07",midnight:"\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07\u0e04\u0e37\u0e19",noon:"\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07",morning:"\u0e40\u0e0a\u0e49\u0e32",afternoon:"\u0e1a\u0e48\u0e32\u0e22",evening:"\u0e40\u0e22\u0e47\u0e19",night:"\u0e01\u0e25\u0e32\u0e07\u0e04\u0e37\u0e19"},abbreviated:{am:"\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07",pm:"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07",midnight:"\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07\u0e04\u0e37\u0e19",noon:"\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07",morning:"\u0e40\u0e0a\u0e49\u0e32",afternoon:"\u0e1a\u0e48\u0e32\u0e22",evening:"\u0e40\u0e22\u0e47\u0e19",night:"\u0e01\u0e25\u0e32\u0e07\u0e04\u0e37\u0e19"},wide:{am:"\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07",pm:"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07",midnight:"\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07\u0e04\u0e37\u0e19",noon:"\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07",morning:"\u0e40\u0e0a\u0e49\u0e32",afternoon:"\u0e1a\u0e48\u0e32\u0e22",evening:"\u0e40\u0e22\u0e47\u0e19",night:"\u0e01\u0e25\u0e32\u0e07\u0e04\u0e37\u0e19"}},defaultWidth:"wide",formattingValues:{narrow:{am:"\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07",pm:"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07",midnight:"\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07\u0e04\u0e37\u0e19",noon:"\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07",morning:"\u0e15\u0e2d\u0e19\u0e40\u0e0a\u0e49\u0e32",afternoon:"\u0e15\u0e2d\u0e19\u0e01\u0e25\u0e32\u0e07\u0e27\u0e31\u0e19",evening:"\u0e15\u0e2d\u0e19\u0e40\u0e22\u0e47\u0e19",night:"\u0e15\u0e2d\u0e19\u0e01\u0e25\u0e32\u0e07\u0e04\u0e37\u0e19"},abbreviated:{am:"\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07",pm:"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07",midnight:"\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07\u0e04\u0e37\u0e19",noon:"\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07",morning:"\u0e15\u0e2d\u0e19\u0e40\u0e0a\u0e49\u0e32",afternoon:"\u0e15\u0e2d\u0e19\u0e01\u0e25\u0e32\u0e07\u0e27\u0e31\u0e19",evening:"\u0e15\u0e2d\u0e19\u0e40\u0e22\u0e47\u0e19",night:"\u0e15\u0e2d\u0e19\u0e01\u0e25\u0e32\u0e07\u0e04\u0e37\u0e19"},wide:{am:"\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07",pm:"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07",midnight:"\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07\u0e04\u0e37\u0e19",noon:"\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07",morning:"\u0e15\u0e2d\u0e19\u0e40\u0e0a\u0e49\u0e32",afternoon:"\u0e15\u0e2d\u0e19\u0e01\u0e25\u0e32\u0e07\u0e27\u0e31\u0e19",evening:"\u0e15\u0e2d\u0e19\u0e40\u0e22\u0e47\u0e19",night:"\u0e15\u0e2d\u0e19\u0e01\u0e25\u0e32\u0e07\u0e04\u0e37\u0e19"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:hs({matchPattern:/^\d+/i,parsePattern:/\d+/i,valueCallback:ee=>parseInt(ee,10)}),era:Di({matchPatterns:{narrow:/^([bB]|[aA]|\u0e04\u0e28)/i,abbreviated:/^([bB]\.?\s?[cC]\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?|\u0e04\.?\u0e28\.?)/i,wide:/^(\u0e01\u0e48\u0e2d\u0e19\u0e04\u0e23\u0e34\u0e2a\u0e15\u0e01\u0e32\u0e25|\u0e04\u0e23\u0e34\u0e2a\u0e15\u0e4c\u0e28\u0e31\u0e01\u0e23\u0e32\u0e0a|\u0e04\u0e23\u0e34\u0e2a\u0e15\u0e01\u0e32\u0e25)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^[bB]/i,/^(^[aA]|\u0e04\.?\u0e28\.?|\u0e04\u0e23\u0e34\u0e2a\u0e15\u0e01\u0e32\u0e25|\u0e04\u0e23\u0e34\u0e2a\u0e15\u0e4c\u0e28\u0e31\u0e01\u0e23\u0e32\u0e0a|)/i]},defaultParseWidth:"any"}),quarter:Di({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^\u0e44\u0e15\u0e23\u0e21\u0e32\u0e2a(\u0e17\u0e35\u0e48)? ?[1234]/i},defaultMatchWidth:"wide",parsePatterns:{any:[/(1|\u0e41\u0e23\u0e01|\u0e2b\u0e19\u0e36\u0e48\u0e07)/i,/(2|\u0e2a\u0e2d\u0e07)/i,/(3|\u0e2a\u0e32\u0e21)/i,/(4|\u0e2a\u0e35\u0e48)/i]},defaultParseWidth:"any",valueCallback:ee=>ee+1}),month:Di({matchPatterns:{narrow:/^(\u0e21\.?\u0e04\.?|\u0e01\.?\u0e1e\.?|\u0e21\u0e35\.?\u0e04\.?|\u0e40\u0e21\.?\u0e22\.?|\u0e1e\.?\u0e04\.?|\u0e21\u0e34\.?\u0e22\.?|\u0e01\.?\u0e04\.?|\u0e2a\.?\u0e04\.?|\u0e01\.?\u0e22\.?|\u0e15\.?\u0e04\.?|\u0e1e\.?\u0e22\.?|\u0e18\.?\u0e04\.?)/i,abbreviated:/^(\u0e21\.?\u0e04\.?|\u0e01\.?\u0e1e\.?|\u0e21\u0e35\.?\u0e04\.?|\u0e40\u0e21\.?\u0e22\.?|\u0e1e\.?\u0e04\.?|\u0e21\u0e34\.?\u0e22\.?|\u0e01\.?\u0e04\.?|\u0e2a\.?\u0e04\.?|\u0e01\.?\u0e22\.?|\u0e15\.?\u0e04\.?|\u0e1e\.?\u0e22\.?|\u0e18\.?\u0e04\.?')/i,wide:/^(\u0e21\u0e01\u0e23\u0e32\u0e04\u0e21|\u0e01\u0e38\u0e21\u0e20\u0e32\u0e1e\u0e31\u0e19\u0e18\u0e4c|\u0e21\u0e35\u0e19\u0e32\u0e04\u0e21|\u0e40\u0e21\u0e29\u0e32\u0e22\u0e19|\u0e1e\u0e24\u0e29\u0e20\u0e32\u0e04\u0e21|\u0e21\u0e34\u0e16\u0e38\u0e19\u0e32\u0e22\u0e19|\u0e01\u0e23\u0e01\u0e0e\u0e32\u0e04\u0e21|\u0e2a\u0e34\u0e07\u0e2b\u0e32\u0e04\u0e21|\u0e01\u0e31\u0e19\u0e22\u0e32\u0e22\u0e19|\u0e15\u0e38\u0e25\u0e32\u0e04\u0e21|\u0e1e\u0e24\u0e28\u0e08\u0e34\u0e01\u0e32\u0e22\u0e19|\u0e18\u0e31\u0e19\u0e27\u0e32\u0e04\u0e21)/i},defaultMatchWidth:"wide",parsePatterns:{wide:[/^\u0e21\u0e01/i,/^\u0e01\u0e38\u0e21/i,/^\u0e21\u0e35/i,/^\u0e40\u0e21/i,/^\u0e1e\u0e24\u0e29/i,/^\u0e21\u0e34/i,/^\u0e01\u0e23\u0e01/i,/^\u0e2a/i,/^\u0e01\u0e31\u0e19/i,/^\u0e15/i,/^\u0e1e\u0e24\u0e28/i,/^\u0e18/i],any:[/^\u0e21\.?\u0e04\.?/i,/^\u0e01\.?\u0e1e\.?/i,/^\u0e21\u0e35\.?\u0e04\.?/i,/^\u0e40\u0e21\.?\u0e22\.?/i,/^\u0e1e\.?\u0e04\.?/i,/^\u0e21\u0e34\.?\u0e22\.?/i,/^\u0e01\.?\u0e04\.?/i,/^\u0e2a\.?\u0e04\.?/i,/^\u0e01\.?\u0e22\.?/i,/^\u0e15\.?\u0e04\.?/i,/^\u0e1e\.?\u0e22\.?/i,/^\u0e18\.?\u0e04\.?/i]},defaultParseWidth:"any"}),day:Di({matchPatterns:{narrow:/^(\u0e2d\u0e32\.?|\u0e08\.?|\u0e2d\.?|\u0e1e\u0e24\.?|\u0e1e\.?|\u0e28\.?|\u0e2a\.?)/i,short:/^(\u0e2d\u0e32\.?|\u0e08\.?|\u0e2d\.?|\u0e1e\u0e24\.?|\u0e1e\.?|\u0e28\.?|\u0e2a\.?)/i,abbreviated:/^(\u0e2d\u0e32\.?|\u0e08\.?|\u0e2d\.?|\u0e1e\u0e24\.?|\u0e1e\.?|\u0e28\.?|\u0e2a\.?)/i,wide:/^(\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c|\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c|\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23|\u0e1e\u0e38\u0e18|\u0e1e\u0e24\u0e2b\u0e31\u0e2a\u0e1a\u0e14\u0e35|\u0e28\u0e38\u0e01\u0e23\u0e4c|\u0e40\u0e2a\u0e32\u0e23\u0e4c)/i},defaultMatchWidth:"wide",parsePatterns:{wide:[/^\u0e2d\u0e32/i,/^\u0e08\u0e31/i,/^\u0e2d\u0e31/i,/^\u0e1e\u0e38\u0e18/i,/^\u0e1e\u0e24/i,/^\u0e28/i,/^\u0e40\u0e2a/i],any:[/^\u0e2d\u0e32/i,/^\u0e08/i,/^\u0e2d/i,/^\u0e1e(?!\u0e24)/i,/^\u0e1e\u0e24/i,/^\u0e28/i,/^\u0e2a/i]},defaultParseWidth:"any"}),dayPeriod:Di({matchPatterns:{any:/^(\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07|\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07|\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07\u0e04\u0e37\u0e19|\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07|(\u0e15\u0e2d\u0e19.*?)?.*(\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07|\u0e40\u0e0a\u0e49\u0e32|\u0e1a\u0e48\u0e32\u0e22|\u0e40\u0e22\u0e47\u0e19|\u0e01\u0e25\u0e32\u0e07\u0e04\u0e37\u0e19))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07/i,pm:/^\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07/i,midnight:/^\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07\u0e04\u0e37\u0e19/i,noon:/^\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07/i,morning:/\u0e40\u0e0a\u0e49\u0e32/i,afternoon:/\u0e1a\u0e48\u0e32\u0e22/i,evening:/\u0e40\u0e22\u0e47\u0e19/i,night:/\u0e01\u0e25\u0e32\u0e07\u0e04\u0e37\u0e19/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}},yC={lessThanXSeconds:{one:"bir saniyeden az",other:"{{count}} saniyeden az"},xSeconds:{one:"1 saniye",other:"{{count}} saniye"},halfAMinute:"yar\u0131m dakika",lessThanXMinutes:{one:"bir dakikadan az",other:"{{count}} dakikadan az"},xMinutes:{one:"1 dakika",other:"{{count}} dakika"},aboutXHours:{one:"yakla\u015f\u0131k 1 saat",other:"yakla\u015f\u0131k {{count}} saat"},xHours:{one:"1 saat",other:"{{count}} saat"},xDays:{one:"1 g\xfcn",other:"{{count}} g\xfcn"},aboutXWeeks:{one:"yakla\u015f\u0131k 1 hafta",other:"yakla\u015f\u0131k {{count}} hafta"},xWeeks:{one:"1 hafta",other:"{{count}} hafta"},aboutXMonths:{one:"yakla\u015f\u0131k 1 ay",other:"yakla\u015f\u0131k {{count}} ay"},xMonths:{one:"1 ay",other:"{{count}} ay"},aboutXYears:{one:"yakla\u015f\u0131k 1 y\u0131l",other:"yakla\u015f\u0131k {{count}} y\u0131l"},xYears:{one:"1 y\u0131l",other:"{{count}} y\u0131l"},overXYears:{one:"1 y\u0131ldan fazla",other:"{{count}} y\u0131ldan fazla"},almostXYears:{one:"neredeyse 1 y\u0131l",other:"neredeyse {{count}} y\u0131l"}},BS={date:Xi({formats:{full:"d MMMM y EEEE",long:"d MMMM y",medium:"d MMM y",short:"dd.MM.yyyy"},defaultWidth:"full"}),time:Xi({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:Xi({formats:{full:"{{date}} 'saat' {{time}}",long:"{{date}} 'saat' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},kv={lastWeek:"'ge\xe7en hafta' eeee 'saat' p",yesterday:"'d\xfcn saat' p",today:"'bug\xfcn saat' p",tomorrow:"'yar\u0131n saat' p",nextWeek:"eeee 'saat' p",other:"P"},NC={code:"tr",formatDistance:(ee,H,W)=>{let oe;const pt=yC[ee];return oe="string"==typeof pt?pt:1===H?pt.one:pt.other.replace("{{count}}",H.toString()),W?.addSuffix?W.comparison&&W.comparison>0?oe+" sonra":oe+" \xf6nce":oe},formatLong:BS,formatRelative:(ee,H,W,oe)=>kv[ee],localize:{ordinalNumber:(ee,H)=>Number(ee)+".",era:Dt({values:{narrow:["M\xd6","MS"],abbreviated:["M\xd6","MS"],wide:["Milattan \xd6nce","Milattan Sonra"]},defaultWidth:"wide"}),quarter:Dt({values:{narrow:["1","2","3","4"],abbreviated:["1\xc7","2\xc7","3\xc7","4\xc7"],wide:["\u0130lk \xe7eyrek","\u0130kinci \xc7eyrek","\xdc\xe7\xfcnc\xfc \xe7eyrek","Son \xe7eyrek"]},defaultWidth:"wide",argumentCallback:ee=>Number(ee)-1}),month:Dt({values:{narrow:["O","\u015e","M","N","M","H","T","A","E","E","K","A"],abbreviated:["Oca","\u015eub","Mar","Nis","May","Haz","Tem","A\u011fu","Eyl","Eki","Kas","Ara"],wide:["Ocak","\u015eubat","Mart","Nisan","May\u0131s","Haziran","Temmuz","A\u011fustos","Eyl\xfcl","Ekim","Kas\u0131m","Aral\u0131k"]},defaultWidth:"wide"}),day:Dt({values:{narrow:["P","P","S","\xc7","P","C","C"],short:["Pz","Pt","Sa","\xc7a","Pe","Cu","Ct"],abbreviated:["Paz","Pzt","Sal","\xc7ar","Per","Cum","Cts"],wide:["Pazar","Pazartesi","Sal\u0131","\xc7ar\u015famba","Per\u015fembe","Cuma","Cumartesi"]},defaultWidth:"wide"}),dayPeriod:Dt({values:{narrow:{am:"\xf6\xf6",pm:"\xf6s",midnight:"gy",noon:"\xf6",morning:"sa",afternoon:"\xf6s",evening:"ak",night:"ge"},abbreviated:{am:"\xd6\xd6",pm:"\xd6S",midnight:"gece yar\u0131s\u0131",noon:"\xf6\u011fle",morning:"sabah",afternoon:"\xf6\u011fleden sonra",evening:"ak\u015fam",night:"gece"},wide:{am:"\xd6.\xd6.",pm:"\xd6.S.",midnight:"gece yar\u0131s\u0131",noon:"\xf6\u011fle",morning:"sabah",afternoon:"\xf6\u011fleden sonra",evening:"ak\u015fam",night:"gece"}},defaultWidth:"wide",formattingValues:{narrow:{am:"\xf6\xf6",pm:"\xf6s",midnight:"gy",noon:"\xf6",morning:"sa",afternoon:"\xf6s",evening:"ak",night:"ge"},abbreviated:{am:"\xd6\xd6",pm:"\xd6S",midnight:"gece yar\u0131s\u0131",noon:"\xf6\u011flen",morning:"sabahleyin",afternoon:"\xf6\u011fleden sonra",evening:"ak\u015famleyin",night:"geceleyin"},wide:{am:"\xf6.\xf6.",pm:"\xf6.s.",midnight:"gece yar\u0131s\u0131",noon:"\xf6\u011flen",morning:"sabahleyin",afternoon:"\xf6\u011fleden sonra",evening:"ak\u015famleyin",night:"geceleyin"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:hs({matchPattern:/^(\d+)(\.)?/i,parsePattern:/\d+/i,valueCallback:function(ee){return parseInt(ee,10)}}),era:Di({matchPatterns:{narrow:/^(m\xf6|ms)/i,abbreviated:/^(m\xf6|ms)/i,wide:/^(milattan \xf6nce|milattan sonra)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/(^m\xf6|^milattan \xf6nce)/i,/(^ms|^milattan sonra)/i]},defaultParseWidth:"any"}),quarter:Di({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234]\xe7/i,wide:/^((i|\u0130)lk|(i|\u0130)kinci|\xfc\xe7\xfcnc\xfc|son) \xe7eyrek/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i],abbreviated:[/1\xe7/i,/2\xe7/i,/3\xe7/i,/4\xe7/i],wide:[/^(i|\u0130)lk \xe7eyrek/i,/(i|\u0130)kinci \xe7eyrek/i,/\xfc\xe7\xfcnc\xfc \xe7eyrek/i,/son \xe7eyrek/i]},defaultParseWidth:"any",valueCallback:ee=>ee+1}),month:Di({matchPatterns:{narrow:/^[o\u015fmnhtaek]/i,abbreviated:/^(oca|\u015fub|mar|nis|may|haz|tem|a\u011fu|eyl|eki|kas|ara)/i,wide:/^(ocak|\u015fubat|mart|nisan|may\u0131s|haziran|temmuz|a\u011fustos|eyl\xfcl|ekim|kas\u0131m|aral\u0131k)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^o/i,/^\u015f/i,/^m/i,/^n/i,/^m/i,/^h/i,/^t/i,/^a/i,/^e/i,/^e/i,/^k/i,/^a/i],any:[/^o/i,/^\u015f/i,/^mar/i,/^n/i,/^may/i,/^h/i,/^t/i,/^a\u011f/i,/^ey/i,/^ek/i,/^k/i,/^ar/i]},defaultParseWidth:"any"}),day:Di({matchPatterns:{narrow:/^[ps\xe7c]/i,short:/^(pz|pt|sa|\xe7a|pe|cu|ct)/i,abbreviated:/^(paz|pzt|sal|\xe7ar|per|cum|cts)/i,wide:/^(pazar(?!tesi)|pazartesi|sal\u0131|\xe7ar\u015famba|per\u015fembe|cuma(?!rtesi)|cumartesi)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^p/i,/^p/i,/^s/i,/^\xe7/i,/^p/i,/^c/i,/^c/i],any:[/^pz/i,/^pt/i,/^sa/i,/^\xe7a/i,/^pe/i,/^cu/i,/^ct/i],wide:[/^pazar(?!tesi)/i,/^pazartesi/i,/^sal\u0131/i,/^\xe7ar\u015famba/i,/^per\u015fembe/i,/^cuma(?!rtesi)/i,/^cumartesi/i]},defaultParseWidth:"any"}),dayPeriod:Di({matchPatterns:{narrow:/^(\xf6\xf6|\xf6s|gy|\xf6|sa|\xf6s|ak|ge)/i,any:/^(\xf6\.?\s?[\xf6s]\.?|\xf6\u011fleden sonra|gece yar\u0131s\u0131|\xf6\u011fle|(sabah|\xf6\u011f|ak\u015fam|gece)(leyin))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^\xf6\.?\xf6\.?/i,pm:/^\xf6\.?s\.?/i,midnight:/^(gy|gece yar\u0131s\u0131)/i,noon:/^\xf6\u011f/i,morning:/^sa/i,afternoon:/^\xf6\u011fleden sonra/i,evening:/^ak/i,night:/^ge/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:1}};function jp(ee,H){if(void 0!==ee.one&&1===H)return ee.one;const W=H%10,oe=H%100;return 1===W&&11!==oe?ee.singularNominative.replace("{{count}}",String(H)):W>=2&&W<=4&&(oe<10||oe>20)?ee.singularGenitive.replace("{{count}}",String(H)):ee.pluralGenitive.replace("{{count}}",String(H))}function rd(ee){return(H,W)=>W&&W.addSuffix?W.comparison&&W.comparison>0?ee.future?jp(ee.future,H):"\u0437\u0430 "+jp(ee.regular,H):ee.past?jp(ee.past,H):jp(ee.regular,H)+" \u0442\u043e\u043c\u0443":jp(ee.regular,H)}const h0={lessThanXSeconds:rd({regular:{one:"\u043c\u0435\u043d\u0448\u0435 \u0441\u0435\u043a\u0443\u043d\u0434\u0438",singularNominative:"\u043c\u0435\u043d\u0448\u0435 {{count}} \u0441\u0435\u043a\u0443\u043d\u0434\u0438",singularGenitive:"\u043c\u0435\u043d\u0448\u0435 {{count}} \u0441\u0435\u043a\u0443\u043d\u0434",pluralGenitive:"\u043c\u0435\u043d\u0448\u0435 {{count}} \u0441\u0435\u043a\u0443\u043d\u0434"},future:{one:"\u043c\u0435\u043d\u0448\u0435, \u043d\u0456\u0436 \u0437\u0430 \u0441\u0435\u043a\u0443\u043d\u0434\u0443",singularNominative:"\u043c\u0435\u043d\u0448\u0435, \u043d\u0456\u0436 \u0437\u0430 {{count}} \u0441\u0435\u043a\u0443\u043d\u0434\u0443",singularGenitive:"\u043c\u0435\u043d\u0448\u0435, \u043d\u0456\u0436 \u0437\u0430 {{count}} \u0441\u0435\u043a\u0443\u043d\u0434\u0438",pluralGenitive:"\u043c\u0435\u043d\u0448\u0435, \u043d\u0456\u0436 \u0437\u0430 {{count}} \u0441\u0435\u043a\u0443\u043d\u0434"}}),xSeconds:rd({regular:{singularNominative:"{{count}} \u0441\u0435\u043a\u0443\u043d\u0434\u0430",singularGenitive:"{{count}} \u0441\u0435\u043a\u0443\u043d\u0434\u0438",pluralGenitive:"{{count}} \u0441\u0435\u043a\u0443\u043d\u0434"},past:{singularNominative:"{{count}} \u0441\u0435\u043a\u0443\u043d\u0434\u0443 \u0442\u043e\u043c\u0443",singularGenitive:"{{count}} \u0441\u0435\u043a\u0443\u043d\u0434\u0438 \u0442\u043e\u043c\u0443",pluralGenitive:"{{count}} \u0441\u0435\u043a\u0443\u043d\u0434 \u0442\u043e\u043c\u0443"},future:{singularNominative:"\u0437\u0430 {{count}} \u0441\u0435\u043a\u0443\u043d\u0434\u0443",singularGenitive:"\u0437\u0430 {{count}} \u0441\u0435\u043a\u0443\u043d\u0434\u0438",pluralGenitive:"\u0437\u0430 {{count}} \u0441\u0435\u043a\u0443\u043d\u0434"}}),halfAMinute:(ee,H)=>H&&H.addSuffix?H.comparison&&H.comparison>0?"\u0437\u0430 \u043f\u0456\u0432\u0445\u0432\u0438\u043b\u0438\u043d\u0438":"\u043f\u0456\u0432\u0445\u0432\u0438\u043b\u0438\u043d\u0438 \u0442\u043e\u043c\u0443":"\u043f\u0456\u0432\u0445\u0432\u0438\u043b\u0438\u043d\u0438",lessThanXMinutes:rd({regular:{one:"\u043c\u0435\u043d\u0448\u0435 \u0445\u0432\u0438\u043b\u0438\u043d\u0438",singularNominative:"\u043c\u0435\u043d\u0448\u0435 {{count}} \u0445\u0432\u0438\u043b\u0438\u043d\u0438",singularGenitive:"\u043c\u0435\u043d\u0448\u0435 {{count}} \u0445\u0432\u0438\u043b\u0438\u043d",pluralGenitive:"\u043c\u0435\u043d\u0448\u0435 {{count}} \u0445\u0432\u0438\u043b\u0438\u043d"},future:{one:"\u043c\u0435\u043d\u0448\u0435, \u043d\u0456\u0436 \u0437\u0430 \u0445\u0432\u0438\u043b\u0438\u043d\u0443",singularNominative:"\u043c\u0435\u043d\u0448\u0435, \u043d\u0456\u0436 \u0437\u0430 {{count}} \u0445\u0432\u0438\u043b\u0438\u043d\u0443",singularGenitive:"\u043c\u0435\u043d\u0448\u0435, \u043d\u0456\u0436 \u0437\u0430 {{count}} \u0445\u0432\u0438\u043b\u0438\u043d\u0438",pluralGenitive:"\u043c\u0435\u043d\u0448\u0435, \u043d\u0456\u0436 \u0437\u0430 {{count}} \u0445\u0432\u0438\u043b\u0438\u043d"}}),xMinutes:rd({regular:{singularNominative:"{{count}} \u0445\u0432\u0438\u043b\u0438\u043d\u0430",singularGenitive:"{{count}} \u0445\u0432\u0438\u043b\u0438\u043d\u0438",pluralGenitive:"{{count}} \u0445\u0432\u0438\u043b\u0438\u043d"},past:{singularNominative:"{{count}} \u0445\u0432\u0438\u043b\u0438\u043d\u0443 \u0442\u043e\u043c\u0443",singularGenitive:"{{count}} \u0445\u0432\u0438\u043b\u0438\u043d\u0438 \u0442\u043e\u043c\u0443",pluralGenitive:"{{count}} \u0445\u0432\u0438\u043b\u0438\u043d \u0442\u043e\u043c\u0443"},future:{singularNominative:"\u0437\u0430 {{count}} \u0445\u0432\u0438\u043b\u0438\u043d\u0443",singularGenitive:"\u0437\u0430 {{count}} \u0445\u0432\u0438\u043b\u0438\u043d\u0438",pluralGenitive:"\u0437\u0430 {{count}} \u0445\u0432\u0438\u043b\u0438\u043d"}}),aboutXHours:rd({regular:{singularNominative:"\u0431\u043b\u0438\u0437\u044c\u043a\u043e {{count}} \u0433\u043e\u0434\u0438\u043d\u0438",singularGenitive:"\u0431\u043b\u0438\u0437\u044c\u043a\u043e {{count}} \u0433\u043e\u0434\u0438\u043d",pluralGenitive:"\u0431\u043b\u0438\u0437\u044c\u043a\u043e {{count}} \u0433\u043e\u0434\u0438\u043d"},future:{singularNominative:"\u043f\u0440\u0438\u0431\u043b\u0438\u0437\u043d\u043e \u0437\u0430 {{count}} \u0433\u043e\u0434\u0438\u043d\u0443",singularGenitive:"\u043f\u0440\u0438\u0431\u043b\u0438\u0437\u043d\u043e \u0437\u0430 {{count}} \u0433\u043e\u0434\u0438\u043d\u0438",pluralGenitive:"\u043f\u0440\u0438\u0431\u043b\u0438\u0437\u043d\u043e \u0437\u0430 {{count}} \u0433\u043e\u0434\u0438\u043d"}}),xHours:rd({regular:{singularNominative:"{{count}} \u0433\u043e\u0434\u0438\u043d\u0443",singularGenitive:"{{count}} \u0433\u043e\u0434\u0438\u043d\u0438",pluralGenitive:"{{count}} \u0433\u043e\u0434\u0438\u043d"}}),xDays:rd({regular:{singularNominative:"{{count}} \u0434\u0435\u043d\u044c",singularGenitive:"{{count}} \u0434\u043di",pluralGenitive:"{{count}} \u0434\u043d\u0456\u0432"}}),aboutXWeeks:rd({regular:{singularNominative:"\u0431\u043b\u0438\u0437\u044c\u043a\u043e {{count}} \u0442\u0438\u0436\u043d\u044f",singularGenitive:"\u0431\u043b\u0438\u0437\u044c\u043a\u043e {{count}} \u0442\u0438\u0436\u043d\u0456\u0432",pluralGenitive:"\u0431\u043b\u0438\u0437\u044c\u043a\u043e {{count}} \u0442\u0438\u0436\u043d\u0456\u0432"},future:{singularNominative:"\u043f\u0440\u0438\u0431\u043b\u0438\u0437\u043d\u043e \u0437\u0430 {{count}} \u0442\u0438\u0436\u0434\u0435\u043d\u044c",singularGenitive:"\u043f\u0440\u0438\u0431\u043b\u0438\u0437\u043d\u043e \u0437\u0430 {{count}} \u0442\u0438\u0436\u043d\u0456",pluralGenitive:"\u043f\u0440\u0438\u0431\u043b\u0438\u0437\u043d\u043e \u0437\u0430 {{count}} \u0442\u0438\u0436\u043d\u0456\u0432"}}),xWeeks:rd({regular:{singularNominative:"{{count}} \u0442\u0438\u0436\u0434\u0435\u043d\u044c",singularGenitive:"{{count}} \u0442\u0438\u0436\u043d\u0456",pluralGenitive:"{{count}} \u0442\u0438\u0436\u043d\u0456\u0432"}}),aboutXMonths:rd({regular:{singularNominative:"\u0431\u043b\u0438\u0437\u044c\u043a\u043e {{count}} \u043c\u0456\u0441\u044f\u0446\u044f",singularGenitive:"\u0431\u043b\u0438\u0437\u044c\u043a\u043e {{count}} \u043c\u0456\u0441\u044f\u0446\u0456\u0432",pluralGenitive:"\u0431\u043b\u0438\u0437\u044c\u043a\u043e {{count}} \u043c\u0456\u0441\u044f\u0446\u0456\u0432"},future:{singularNominative:"\u043f\u0440\u0438\u0431\u043b\u0438\u0437\u043d\u043e \u0437\u0430 {{count}} \u043c\u0456\u0441\u044f\u0446\u044c",singularGenitive:"\u043f\u0440\u0438\u0431\u043b\u0438\u0437\u043d\u043e \u0437\u0430 {{count}} \u043c\u0456\u0441\u044f\u0446\u0456",pluralGenitive:"\u043f\u0440\u0438\u0431\u043b\u0438\u0437\u043d\u043e \u0437\u0430 {{count}} \u043c\u0456\u0441\u044f\u0446\u0456\u0432"}}),xMonths:rd({regular:{singularNominative:"{{count}} \u043c\u0456\u0441\u044f\u0446\u044c",singularGenitive:"{{count}} \u043c\u0456\u0441\u044f\u0446\u0456",pluralGenitive:"{{count}} \u043c\u0456\u0441\u044f\u0446\u0456\u0432"}}),aboutXYears:rd({regular:{singularNominative:"\u0431\u043b\u0438\u0437\u044c\u043a\u043e {{count}} \u0440\u043e\u043a\u0443",singularGenitive:"\u0431\u043b\u0438\u0437\u044c\u043a\u043e {{count}} \u0440\u043e\u043a\u0456\u0432",pluralGenitive:"\u0431\u043b\u0438\u0437\u044c\u043a\u043e {{count}} \u0440\u043e\u043a\u0456\u0432"},future:{singularNominative:"\u043f\u0440\u0438\u0431\u043b\u0438\u0437\u043d\u043e \u0437\u0430 {{count}} \u0440\u0456\u043a",singularGenitive:"\u043f\u0440\u0438\u0431\u043b\u0438\u0437\u043d\u043e \u0437\u0430 {{count}} \u0440\u043e\u043a\u0438",pluralGenitive:"\u043f\u0440\u0438\u0431\u043b\u0438\u0437\u043d\u043e \u0437\u0430 {{count}} \u0440\u043e\u043a\u0456\u0432"}}),xYears:rd({regular:{singularNominative:"{{count}} \u0440\u0456\u043a",singularGenitive:"{{count}} \u0440\u043e\u043a\u0438",pluralGenitive:"{{count}} \u0440\u043e\u043a\u0456\u0432"}}),overXYears:rd({regular:{singularNominative:"\u0431\u0456\u043b\u044c\u0448\u0435 {{count}} \u0440\u043e\u043a\u0443",singularGenitive:"\u0431\u0456\u043b\u044c\u0448\u0435 {{count}} \u0440\u043e\u043a\u0456\u0432",pluralGenitive:"\u0431\u0456\u043b\u044c\u0448\u0435 {{count}} \u0440\u043e\u043a\u0456\u0432"},future:{singularNominative:"\u0431\u0456\u043b\u044c\u0448\u0435, \u043d\u0456\u0436 \u0437\u0430 {{count}} \u0440\u0456\u043a",singularGenitive:"\u0431\u0456\u043b\u044c\u0448\u0435, \u043d\u0456\u0436 \u0437\u0430 {{count}} \u0440\u043e\u043a\u0438",pluralGenitive:"\u0431\u0456\u043b\u044c\u0448\u0435, \u043d\u0456\u0436 \u0437\u0430 {{count}} \u0440\u043e\u043a\u0456\u0432"}}),almostXYears:rd({regular:{singularNominative:"\u043c\u0430\u0439\u0436\u0435 {{count}} \u0440\u0456\u043a",singularGenitive:"\u043c\u0430\u0439\u0436\u0435 {{count}} \u0440\u043e\u043a\u0438",pluralGenitive:"\u043c\u0430\u0439\u0436\u0435 {{count}} \u0440\u043e\u043a\u0456\u0432"},future:{singularNominative:"\u043c\u0430\u0439\u0436\u0435 \u0437\u0430 {{count}} \u0440\u0456\u043a",singularGenitive:"\u043c\u0430\u0439\u0436\u0435 \u0437\u0430 {{count}} \u0440\u043e\u043a\u0438",pluralGenitive:"\u043c\u0430\u0439\u0436\u0435 \u0437\u0430 {{count}} \u0440\u043e\u043a\u0456\u0432"}})},Fv={date:Xi({formats:{full:"EEEE, do MMMM y '\u0440.'",long:"do MMMM y '\u0440.'",medium:"d MMM y '\u0440.'",short:"dd.MM.y"},defaultWidth:"full"}),time:Xi({formats:{full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},defaultWidth:"full"}),dateTime:Xi({formats:{full:"{{date}} '\u043e' {{time}}",long:"{{date}} '\u043e' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Wp=["\u043d\u0435\u0434\u0456\u043b\u044e","\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043e\u043a","\u0432\u0456\u0432\u0442\u043e\u0440\u043e\u043a","\u0441\u0435\u0440\u0435\u0434\u0443","\u0447\u0435\u0442\u0432\u0435\u0440","\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u044e","\u0441\u0443\u0431\u043e\u0442\u0443"];function g0(ee){return"'\u0443 "+Wp[ee]+" \u043e' p"}const Uv={lastWeek:(ee,H,W)=>{const oe=lr(ee),pt=oe.getDay();return Rl(oe,H,W)?g0(pt):function p0(ee){const H=Wp[ee];switch(ee){case 0:case 3:case 5:case 6:return"'\u0443 \u043c\u0438\u043d\u0443\u043b\u0443 "+H+" \u043e' p";case 1:case 2:case 4:return"'\u0443 \u043c\u0438\u043d\u0443\u043b\u0438\u0439 "+H+" \u043e' p"}}(pt)},yesterday:"'\u0432\u0447\u043e\u0440\u0430 \u043e' p",today:"'\u0441\u044c\u043e\u0433\u043e\u0434\u043d\u0456 \u043e' p",tomorrow:"'\u0437\u0430\u0432\u0442\u0440\u0430 \u043e' p",nextWeek:(ee,H,W)=>{const oe=lr(ee),pt=oe.getDay();return Rl(oe,H,W)?g0(pt):function UC(ee){const H=Wp[ee];switch(ee){case 0:case 3:case 5:case 6:return"'\u0443 \u043d\u0430\u0441\u0442\u0443\u043f\u043d\u0443 "+H+" \u043e' p";case 1:case 2:case 4:return"'\u0443 \u043d\u0430\u0441\u0442\u0443\u043f\u043d\u0438\u0439 "+H+" \u043e' p"}}(pt)},other:"P"},KC={code:"uk",formatDistance:(ee,H,W)=>h0[ee](H,W=W||{}),formatLong:Fv,formatRelative:(ee,H,W,oe)=>{const pt=Uv[ee];return"function"==typeof pt?pt(H,W,oe):pt},localize:{ordinalNumber:(ee,H)=>{const W=String(H?.unit),oe=Number(ee);let pt;return pt="date"===W?3===oe||23===oe?"-\u0454":"-\u0435":"minute"===W||"second"===W||"hour"===W?"-\u0430":"-\u0439",oe+pt},era:Dt({values:{narrow:["\u0434\u043e \u043d.\u0435.","\u043d.\u0435."],abbreviated:["\u0434\u043e \u043d. \u0435.","\u043d. \u0435."],wide:["\u0434\u043e \u043d\u0430\u0448\u043e\u0457 \u0435\u0440\u0438","\u043d\u0430\u0448\u043e\u0457 \u0435\u0440\u0438"]},defaultWidth:"wide"}),quarter:Dt({values:{narrow:["1","2","3","4"],abbreviated:["1-\u0439 \u043a\u0432.","2-\u0439 \u043a\u0432.","3-\u0439 \u043a\u0432.","4-\u0439 \u043a\u0432."],wide:["1-\u0439 \u043a\u0432\u0430\u0440\u0442\u0430\u043b","2-\u0439 \u043a\u0432\u0430\u0440\u0442\u0430\u043b","3-\u0439 \u043a\u0432\u0430\u0440\u0442\u0430\u043b","4-\u0439 \u043a\u0432\u0430\u0440\u0442\u0430\u043b"]},defaultWidth:"wide",argumentCallback:ee=>ee-1}),month:Dt({values:{narrow:["\u0421","\u041b","\u0411","\u041a","\u0422","\u0427","\u041b","\u0421","\u0412","\u0416","\u041b","\u0413"],abbreviated:["\u0441\u0456\u0447.","\u043b\u044e\u0442.","\u0431\u0435\u0440\u0435\u0437.","\u043a\u0432\u0456\u0442.","\u0442\u0440\u0430\u0432.","\u0447\u0435\u0440\u0432.","\u043b\u0438\u043f.","\u0441\u0435\u0440\u043f.","\u0432\u0435\u0440\u0435\u0441.","\u0436\u043e\u0432\u0442.","\u043b\u0438\u0441\u0442\u043e\u043f.","\u0433\u0440\u0443\u0434."],wide:["\u0441\u0456\u0447\u0435\u043d\u044c","\u043b\u044e\u0442\u0438\u0439","\u0431\u0435\u0440\u0435\u0437\u0435\u043d\u044c","\u043a\u0432\u0456\u0442\u0435\u043d\u044c","\u0442\u0440\u0430\u0432\u0435\u043d\u044c","\u0447\u0435\u0440\u0432\u0435\u043d\u044c","\u043b\u0438\u043f\u0435\u043d\u044c","\u0441\u0435\u0440\u043f\u0435\u043d\u044c","\u0432\u0435\u0440\u0435\u0441\u0435\u043d\u044c","\u0436\u043e\u0432\u0442\u0435\u043d\u044c","\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434","\u0433\u0440\u0443\u0434\u0435\u043d\u044c"]},defaultWidth:"wide",formattingValues:{narrow:["\u0421","\u041b","\u0411","\u041a","\u0422","\u0427","\u041b","\u0421","\u0412","\u0416","\u041b","\u0413"],abbreviated:["\u0441\u0456\u0447.","\u043b\u044e\u0442.","\u0431\u0435\u0440\u0435\u0437.","\u043a\u0432\u0456\u0442.","\u0442\u0440\u0430\u0432.","\u0447\u0435\u0440\u0432.","\u043b\u0438\u043f.","\u0441\u0435\u0440\u043f.","\u0432\u0435\u0440\u0435\u0441.","\u0436\u043e\u0432\u0442.","\u043b\u0438\u0441\u0442\u043e\u043f.","\u0433\u0440\u0443\u0434."],wide:["\u0441\u0456\u0447\u043d\u044f","\u043b\u044e\u0442\u043e\u0433\u043e","\u0431\u0435\u0440\u0435\u0437\u043d\u044f","\u043a\u0432\u0456\u0442\u043d\u044f","\u0442\u0440\u0430\u0432\u043d\u044f","\u0447\u0435\u0440\u0432\u043d\u044f","\u043b\u0438\u043f\u043d\u044f","\u0441\u0435\u0440\u043f\u043d\u044f","\u0432\u0435\u0440\u0435\u0441\u043d\u044f","\u0436\u043e\u0432\u0442\u043d\u044f","\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434\u0430","\u0433\u0440\u0443\u0434\u043d\u044f"]},defaultFormattingWidth:"wide"}),day:Dt({values:{narrow:["\u041d","\u041f","\u0412","\u0421","\u0427","\u041f","\u0421"],short:["\u043d\u0434","\u043f\u043d","\u0432\u0442","\u0441\u0440","\u0447\u0442","\u043f\u0442","\u0441\u0431"],abbreviated:["\u043d\u0435\u0434","\u043f\u043e\u043d","\u0432\u0456\u0432","\u0441\u0435\u0440","\u0447\u0442\u0432","\u043f\u0442\u043d","\u0441\u0443\u0431"],wide:["\u043d\u0435\u0434\u0456\u043b\u044f","\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043e\u043a","\u0432\u0456\u0432\u0442\u043e\u0440\u043e\u043a","\u0441\u0435\u0440\u0435\u0434\u0430","\u0447\u0435\u0442\u0432\u0435\u0440","\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u044f","\u0441\u0443\u0431\u043e\u0442\u0430"]},defaultWidth:"wide"}),dayPeriod:Dt({values:{narrow:{am:"\u0414\u041f",pm:"\u041f\u041f",midnight:"\u043f\u0456\u0432\u043d.",noon:"\u043f\u043e\u043b.",morning:"\u0440\u0430\u043d\u043e\u043a",afternoon:"\u0434\u0435\u043d\u044c",evening:"\u0432\u0435\u0447.",night:"\u043d\u0456\u0447"},abbreviated:{am:"\u0414\u041f",pm:"\u041f\u041f",midnight:"\u043f\u0456\u0432\u043d.",noon:"\u043f\u043e\u043b.",morning:"\u0440\u0430\u043d\u043e\u043a",afternoon:"\u0434\u0435\u043d\u044c",evening:"\u0432\u0435\u0447.",night:"\u043d\u0456\u0447"},wide:{am:"\u0414\u041f",pm:"\u041f\u041f",midnight:"\u043f\u0456\u0432\u043d\u0456\u0447",noon:"\u043f\u043e\u043b\u0443\u0434\u0435\u043d\u044c",morning:"\u0440\u0430\u043d\u043e\u043a",afternoon:"\u0434\u0435\u043d\u044c",evening:"\u0432\u0435\u0447\u0456\u0440",night:"\u043d\u0456\u0447"}},defaultWidth:"any",formattingValues:{narrow:{am:"\u0414\u041f",pm:"\u041f\u041f",midnight:"\u043f\u0456\u0432\u043d.",noon:"\u043f\u043e\u043b.",morning:"\u0440\u0430\u043d\u043a\u0443",afternoon:"\u0434\u043d\u044f",evening:"\u0432\u0435\u0447.",night:"\u043d\u043e\u0447\u0456"},abbreviated:{am:"\u0414\u041f",pm:"\u041f\u041f",midnight:"\u043f\u0456\u0432\u043d.",noon:"\u043f\u043e\u043b.",morning:"\u0440\u0430\u043d\u043a\u0443",afternoon:"\u0434\u043d\u044f",evening:"\u0432\u0435\u0447.",night:"\u043d\u043e\u0447\u0456"},wide:{am:"\u0414\u041f",pm:"\u041f\u041f",midnight:"\u043f\u0456\u0432\u043d\u0456\u0447",noon:"\u043f\u043e\u043b\u0443\u0434\u0435\u043d\u044c",morning:"\u0440\u0430\u043d\u043a\u0443",afternoon:"\u0434\u043d\u044f",evening:"\u0432\u0435\u0447.",night:"\u043d\u043e\u0447\u0456"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:hs({matchPattern:/^(\d+)(-?(\u0435|\u0439|\u0454|\u0430|\u044f))?/i,parsePattern:/\d+/i,valueCallback:ee=>parseInt(ee,10)}),era:Di({matchPatterns:{narrow:/^((\u0434\u043e )?\u043d\.?\s?\u0435\.?)/i,abbreviated:/^((\u0434\u043e )?\u043d\.?\s?\u0435\.?)/i,wide:/^(\u0434\u043e \u043d\u0430\u0448\u043e\u0457 \u0435\u0440\u0438|\u043d\u0430\u0448\u043e\u0457 \u0435\u0440\u0438|\u043d\u0430\u0448\u0430 \u0435\u0440\u0430)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^\u0434/i,/^\u043d/i]},defaultParseWidth:"any"}),quarter:Di({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234](-?[\u0438\u0456]?\u0439?)? \u043a\u0432.?/i,wide:/^[1234](-?[\u0438\u0456]?\u0439?)? \u043a\u0432\u0430\u0440\u0442\u0430\u043b/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:ee=>ee+1}),month:Di({matchPatterns:{narrow:/^[\u0441\u043b\u0431\u043a\u0442\u0447\u0432\u0436\u0433]/i,abbreviated:/^(\u0441\u0456\u0447|\u043b\u044e\u0442|\u0431\u0435\u0440(\u0435\u0437)?|\u043a\u0432\u0456\u0442|\u0442\u0440\u0430\u0432|\u0447\u0435\u0440\u0432|\u043b\u0438\u043f|\u0441\u0435\u0440\u043f|\u0432\u0435\u0440(\u0435\u0441)?|\u0436\u043e\u0432\u0442|\u043b\u0438\u0441(\u0442\u043e\u043f)?|\u0433\u0440\u0443\u0434)\.?/i,wide:/^(\u0441\u0456\u0447\u0435\u043d\u044c|\u0441\u0456\u0447\u043d\u044f|\u043b\u044e\u0442\u0438\u0439|\u043b\u044e\u0442\u043e\u0433\u043e|\u0431\u0435\u0440\u0435\u0437\u0435\u043d\u044c|\u0431\u0435\u0440\u0435\u0437\u043d\u044f|\u043a\u0432\u0456\u0442\u0435\u043d\u044c|\u043a\u0432\u0456\u0442\u043d\u044f|\u0442\u0440\u0430\u0432\u0435\u043d\u044c|\u0442\u0440\u0430\u0432\u043d\u044f|\u0447\u0435\u0440\u0432\u043d\u044f|\u0447\u0435\u0440\u0432\u0435\u043d\u044c|\u043b\u0438\u043f\u0435\u043d\u044c|\u043b\u0438\u043f\u043d\u044f|\u0441\u0435\u0440\u043f\u0435\u043d\u044c|\u0441\u0435\u0440\u043f\u043d\u044f|\u0432\u0435\u0440\u0435\u0441\u0435\u043d\u044c|\u0432\u0435\u0440\u0435\u0441\u043d\u044f|\u0436\u043e\u0432\u0442\u0435\u043d\u044c|\u0436\u043e\u0432\u0442\u043d\u044f|\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434[\u0430]?|\u0433\u0440\u0443\u0434\u0435\u043d\u044c|\u0433\u0440\u0443\u0434\u043d\u044f)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^\u0441/i,/^\u043b/i,/^\u0431/i,/^\u043a/i,/^\u0442/i,/^\u0447/i,/^\u043b/i,/^\u0441/i,/^\u0432/i,/^\u0436/i,/^\u043b/i,/^\u0433/i],any:[/^\u0441\u0456/i,/^\u043b\u044e/i,/^\u0431/i,/^\u043a/i,/^\u0442/i,/^\u0447/i,/^\u043b\u0438\u043f/i,/^\u0441\u0435/i,/^\u0432/i,/^\u0436/i,/^\u043b\u0438\u0441/i,/^\u0433/i]},defaultParseWidth:"any"}),day:Di({matchPatterns:{narrow:/^[\u043d\u043f\u0432\u0441\u0447]/i,short:/^(\u043d\u0434|\u043f\u043d|\u0432\u0442|\u0441\u0440|\u0447\u0442|\u043f\u0442|\u0441\u0431)\.?/i,abbreviated:/^(\u043d\u0435\u0434|\u043f\u043e\u043d|\u0432\u0456\u0432|\u0441\u0435\u0440|\u0447\u0435?\u0442\u0432|\u043f\u0442\u043d?|\u0441\u0443\u0431)\.?/i,wide:/^(\u043d\u0435\u0434\u0456\u043b[\u044f\u0456]|\u043f\u043e\u043d\u0435\u0434\u0456\u043b[\u043e\u043a][\u043a\u0430]|\u0432\u0456\u0432\u0442\u043e\u0440[\u043e\u043a][\u043a\u0430]|\u0441\u0435\u0440\u0435\u0434[\u0430\u0438]|\u0447\u0435\u0442\u0432\u0435\u0440(\u0433\u0430)?|\u043f\W*?\u044f\u0442\u043d\u0438\u0446[\u044f\u0456]|\u0441\u0443\u0431\u043e\u0442[\u0430\u0438])/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^\u043d/i,/^\u043f/i,/^\u0432/i,/^\u0441/i,/^\u0447/i,/^\u043f/i,/^\u0441/i],any:[/^\u043d/i,/^\u043f[\u043e\u043d]/i,/^\u0432/i,/^\u0441[\u0435\u0440]/i,/^\u0447/i,/^\u043f\W*?[\u044f\u0442]/i,/^\u0441[\u0443\u0431]/i]},defaultParseWidth:"any"}),dayPeriod:Di({matchPatterns:{narrow:/^([\u0434\u043f]\u043f|\u043f\u0456\u0432\u043d\.?|\u043f\u043e\u043b\.?|\u0440\u0430\u043d\u043e\u043a|\u0440\u0430\u043d\u043a\u0443|\u0434\u0435\u043d\u044c|\u0434\u043d\u044f|\u0432\u0435\u0447\.?|\u043d\u0456\u0447|\u043d\u043e\u0447\u0456)/i,abbreviated:/^([\u0434\u043f]\u043f|\u043f\u0456\u0432\u043d\.?|\u043f\u043e\u043b\.?|\u0440\u0430\u043d\u043e\u043a|\u0440\u0430\u043d\u043a\u0443|\u0434\u0435\u043d\u044c|\u0434\u043d\u044f|\u0432\u0435\u0447\.?|\u043d\u0456\u0447|\u043d\u043e\u0447\u0456)/i,wide:/^([\u0434\u043f]\u043f|\u043f\u0456\u0432\u043d\u0456\u0447|\u043f\u043e\u043b\u0443\u0434\u0435\u043d\u044c|\u0440\u0430\u043d\u043e\u043a|\u0440\u0430\u043d\u043a\u0443|\u0434\u0435\u043d\u044c|\u0434\u043d\u044f|\u0432\u0435\u0447\u0456\u0440|\u0432\u0435\u0447\u043e\u0440\u0430|\u043d\u0456\u0447|\u043d\u043e\u0447\u0456)/i},defaultMatchWidth:"wide",parsePatterns:{any:{am:/^\u0434\u043f/i,pm:/^\u043f\u043f/i,midnight:/^\u043f\u0456\u0432\u043d/i,noon:/^\u043f\u043e\u043b/i,morning:/^\u0440/i,afternoon:/^\u0434[\u0435\u043d]/i,evening:/^\u0432/i,night:/^\u043d/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:1}},Vv={lessThanXSeconds:{one:"\u4e0d\u5230 1 \u79d2",other:"\u4e0d\u5230 {{count}} \u79d2"},xSeconds:{one:"1 \u79d2",other:"{{count}} \u79d2"},halfAMinute:"\u534a\u5206\u949f",lessThanXMinutes:{one:"\u4e0d\u5230 1 \u5206\u949f",other:"\u4e0d\u5230 {{count}} \u5206\u949f"},xMinutes:{one:"1 \u5206\u949f",other:"{{count}} \u5206\u949f"},xHours:{one:"1 \u5c0f\u65f6",other:"{{count}} \u5c0f\u65f6"},aboutXHours:{one:"\u5927\u7ea6 1 \u5c0f\u65f6",other:"\u5927\u7ea6 {{count}} \u5c0f\u65f6"},xDays:{one:"1 \u5929",other:"{{count}} \u5929"},aboutXWeeks:{one:"\u5927\u7ea6 1 \u4e2a\u661f\u671f",other:"\u5927\u7ea6 {{count}} \u4e2a\u661f\u671f"},xWeeks:{one:"1 \u4e2a\u661f\u671f",other:"{{count}} \u4e2a\u661f\u671f"},aboutXMonths:{one:"\u5927\u7ea6 1 \u4e2a\u6708",other:"\u5927\u7ea6 {{count}} \u4e2a\u6708"},xMonths:{one:"1 \u4e2a\u6708",other:"{{count}} \u4e2a\u6708"},aboutXYears:{one:"\u5927\u7ea6 1 \u5e74",other:"\u5927\u7ea6 {{count}} \u5e74"},xYears:{one:"1 \u5e74",other:"{{count}} \u5e74"},overXYears:{one:"\u8d85\u8fc7 1 \u5e74",other:"\u8d85\u8fc7 {{count}} \u5e74"},almostXYears:{one:"\u5c06\u8fd1 1 \u5e74",other:"\u5c06\u8fd1 {{count}} \u5e74"}},eb={date:Xi({formats:{full:"y'\u5e74'M'\u6708'd'\u65e5' EEEE",long:"y'\u5e74'M'\u6708'd'\u65e5'",medium:"yyyy-MM-dd",short:"yy-MM-dd"},defaultWidth:"full"}),time:Xi({formats:{full:"zzzz a h:mm:ss",long:"z a h:mm:ss",medium:"a h:mm:ss",short:"a h:mm"},defaultWidth:"full"}),dateTime:Xi({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})};function b0(ee,H,W){const oe="eeee p";return Rl(ee,H,W)?oe:ee.getTime()>H.getTime()?"'\u4e0b\u4e2a'"+oe:"'\u4e0a\u4e2a'"+oe}const tb={lastWeek:b0,yesterday:"'\u6628\u5929' p",today:"'\u4eca\u5929' p",tomorrow:"'\u660e\u5929' p",nextWeek:b0,other:"PP p"},ab={code:"zh-CN",formatDistance:(ee,H,W)=>{let oe;const pt=Vv[ee];return oe="string"==typeof pt?pt:1===H?pt.one:pt.other.replace("{{count}}",String(H)),W?.addSuffix?W.comparison&&W.comparison>0?oe+"\u5185":oe+"\u524d":oe},formatLong:eb,formatRelative:(ee,H,W,oe)=>{const pt=tb[ee];return"function"==typeof pt?pt(H,W,oe):pt},localize:{ordinalNumber:(ee,H)=>{const W=Number(ee);switch(H?.unit){case"date":return W.toString()+"\u65e5";case"hour":return W.toString()+"\u65f6";case"minute":return W.toString()+"\u5206";case"second":return W.toString()+"\u79d2";default:return"\u7b2c "+W.toString()}},era:Dt({values:{narrow:["\u524d","\u516c\u5143"],abbreviated:["\u524d","\u516c\u5143"],wide:["\u516c\u5143\u524d","\u516c\u5143"]},defaultWidth:"wide"}),quarter:Dt({values:{narrow:["1","2","3","4"],abbreviated:["\u7b2c\u4e00\u5b63","\u7b2c\u4e8c\u5b63","\u7b2c\u4e09\u5b63","\u7b2c\u56db\u5b63"],wide:["\u7b2c\u4e00\u5b63\u5ea6","\u7b2c\u4e8c\u5b63\u5ea6","\u7b2c\u4e09\u5b63\u5ea6","\u7b2c\u56db\u5b63\u5ea6"]},defaultWidth:"wide",argumentCallback:ee=>ee-1}),month:Dt({values:{narrow:["\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d","\u4e03","\u516b","\u4e5d","\u5341","\u5341\u4e00","\u5341\u4e8c"],abbreviated:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],wide:["\u4e00\u6708","\u4e8c\u6708","\u4e09\u6708","\u56db\u6708","\u4e94\u6708","\u516d\u6708","\u4e03\u6708","\u516b\u6708","\u4e5d\u6708","\u5341\u6708","\u5341\u4e00\u6708","\u5341\u4e8c\u6708"]},defaultWidth:"wide"}),day:Dt({values:{narrow:["\u65e5","\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d"],short:["\u65e5","\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d"],abbreviated:["\u5468\u65e5","\u5468\u4e00","\u5468\u4e8c","\u5468\u4e09","\u5468\u56db","\u5468\u4e94","\u5468\u516d"],wide:["\u661f\u671f\u65e5","\u661f\u671f\u4e00","\u661f\u671f\u4e8c","\u661f\u671f\u4e09","\u661f\u671f\u56db","\u661f\u671f\u4e94","\u661f\u671f\u516d"]},defaultWidth:"wide"}),dayPeriod:Dt({values:{narrow:{am:"\u4e0a",pm:"\u4e0b",midnight:"\u51cc\u6668",noon:"\u5348",morning:"\u65e9",afternoon:"\u4e0b\u5348",evening:"\u665a",night:"\u591c"},abbreviated:{am:"\u4e0a\u5348",pm:"\u4e0b\u5348",midnight:"\u51cc\u6668",noon:"\u4e2d\u5348",morning:"\u65e9\u6668",afternoon:"\u4e2d\u5348",evening:"\u665a\u4e0a",night:"\u591c\u95f4"},wide:{am:"\u4e0a\u5348",pm:"\u4e0b\u5348",midnight:"\u51cc\u6668",noon:"\u4e2d\u5348",morning:"\u65e9\u6668",afternoon:"\u4e2d\u5348",evening:"\u665a\u4e0a",night:"\u591c\u95f4"}},defaultWidth:"wide",formattingValues:{narrow:{am:"\u4e0a",pm:"\u4e0b",midnight:"\u51cc\u6668",noon:"\u5348",morning:"\u65e9",afternoon:"\u4e0b\u5348",evening:"\u665a",night:"\u591c"},abbreviated:{am:"\u4e0a\u5348",pm:"\u4e0b\u5348",midnight:"\u51cc\u6668",noon:"\u4e2d\u5348",morning:"\u65e9\u6668",afternoon:"\u4e2d\u5348",evening:"\u665a\u4e0a",night:"\u591c\u95f4"},wide:{am:"\u4e0a\u5348",pm:"\u4e0b\u5348",midnight:"\u51cc\u6668",noon:"\u4e2d\u5348",morning:"\u65e9\u6668",afternoon:"\u4e2d\u5348",evening:"\u665a\u4e0a",night:"\u591c\u95f4"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:hs({matchPattern:/^(\u7b2c\s*)?\d+(\u65e5|\u65f6|\u5206|\u79d2)?/i,parsePattern:/\d+/i,valueCallback:ee=>parseInt(ee,10)}),era:Di({matchPatterns:{narrow:/^(\u524d)/i,abbreviated:/^(\u524d)/i,wide:/^(\u516c\u5143\u524d|\u516c\u5143)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^(\u524d)/i,/^(\u516c\u5143)/i]},defaultParseWidth:"any"}),quarter:Di({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^\u7b2c[\u4e00\u4e8c\u4e09\u56db]\u523b/i,wide:/^\u7b2c[\u4e00\u4e8c\u4e09\u56db]\u523b\u949f/i},defaultMatchWidth:"wide",parsePatterns:{any:[/(1|\u4e00)/i,/(2|\u4e8c)/i,/(3|\u4e09)/i,/(4|\u56db)/i]},defaultParseWidth:"any",valueCallback:ee=>ee+1}),month:Di({matchPatterns:{narrow:/^(\u4e00|\u4e8c|\u4e09|\u56db|\u4e94|\u516d|\u4e03|\u516b|\u4e5d|\u5341[\u4e8c\u4e00])/i,abbreviated:/^(\u4e00|\u4e8c|\u4e09|\u56db|\u4e94|\u516d|\u4e03|\u516b|\u4e5d|\u5341[\u4e8c\u4e00]|\d|1[12])\u6708/i,wide:/^(\u4e00|\u4e8c|\u4e09|\u56db|\u4e94|\u516d|\u4e03|\u516b|\u4e5d|\u5341[\u4e8c\u4e00])\u6708/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^\u4e00/i,/^\u4e8c/i,/^\u4e09/i,/^\u56db/i,/^\u4e94/i,/^\u516d/i,/^\u4e03/i,/^\u516b/i,/^\u4e5d/i,/^\u5341(?!(\u4e00|\u4e8c))/i,/^\u5341\u4e00/i,/^\u5341\u4e8c/i],any:[/^\u4e00|1/i,/^\u4e8c|2/i,/^\u4e09|3/i,/^\u56db|4/i,/^\u4e94|5/i,/^\u516d|6/i,/^\u4e03|7/i,/^\u516b|8/i,/^\u4e5d|9/i,/^\u5341(?!(\u4e00|\u4e8c))|10/i,/^\u5341\u4e00|11/i,/^\u5341\u4e8c|12/i]},defaultParseWidth:"any"}),day:Di({matchPatterns:{narrow:/^[\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u65e5]/i,short:/^[\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u65e5]/i,abbreviated:/^\u5468[\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u65e5]/i,wide:/^\u661f\u671f[\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u65e5]/i},defaultMatchWidth:"wide",parsePatterns:{any:[/\u65e5/i,/\u4e00/i,/\u4e8c/i,/\u4e09/i,/\u56db/i,/\u4e94/i,/\u516d/i]},defaultParseWidth:"any"}),dayPeriod:Di({matchPatterns:{any:/^(\u4e0a\u5348?|\u4e0b\u5348?|\u5348\u591c|[\u4e2d\u6b63]\u5348|\u65e9\u4e0a?|\u4e0b\u5348|\u665a\u4e0a?|\u51cc\u6668|)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^\u4e0a\u5348?/i,pm:/^\u4e0b\u5348?/i,midnight:/^\u5348\u591c/i,noon:/^[\u4e2d\u6b63]\u5348/i,morning:/^\u65e9\u4e0a/i,afternoon:/^\u4e0b\u5348/i,evening:/^\u665a\u4e0a?/i,night:/^\u51cc\u6668/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:4}},lb={lessThanXSeconds:{one:"\u5c11\u65bc 1 \u79d2",other:"\u5c11\u65bc {{count}} \u79d2"},xSeconds:{one:"1 \u79d2",other:"{{count}} \u79d2"},halfAMinute:"\u534a\u5206\u9418",lessThanXMinutes:{one:"\u5c11\u65bc 1 \u5206\u9418",other:"\u5c11\u65bc {{count}} \u5206\u9418"},xMinutes:{one:"1 \u5206\u9418",other:"{{count}} \u5206\u9418"},xHours:{one:"1 \u5c0f\u6642",other:"{{count}} \u5c0f\u6642"},aboutXHours:{one:"\u5927\u7d04 1 \u5c0f\u6642",other:"\u5927\u7d04 {{count}} \u5c0f\u6642"},xDays:{one:"1 \u5929",other:"{{count}} \u5929"},aboutXWeeks:{one:"\u5927\u7d04 1 \u500b\u661f\u671f",other:"\u5927\u7d04 {{count}} \u500b\u661f\u671f"},xWeeks:{one:"1 \u500b\u661f\u671f",other:"{{count}} \u500b\u661f\u671f"},aboutXMonths:{one:"\u5927\u7d04 1 \u500b\u6708",other:"\u5927\u7d04 {{count}} \u500b\u6708"},xMonths:{one:"1 \u500b\u6708",other:"{{count}} \u500b\u6708"},aboutXYears:{one:"\u5927\u7d04 1 \u5e74",other:"\u5927\u7d04 {{count}} \u5e74"},xYears:{one:"1 \u5e74",other:"{{count}} \u5e74"},overXYears:{one:"\u8d85\u904e 1 \u5e74",other:"\u8d85\u904e {{count}} \u5e74"},almostXYears:{one:"\u5c07\u8fd1 1 \u5e74",other:"\u5c07\u8fd1 {{count}} \u5e74"}},vP={date:Xi({formats:{full:"y'\u5e74'M'\u6708'd'\u65e5' EEEE",long:"y'\u5e74'M'\u6708'd'\u65e5'",medium:"yyyy-MM-dd",short:"yy-MM-dd"},defaultWidth:"full"}),time:Xi({formats:{full:"zzzz a h:mm:ss",long:"z a h:mm:ss",medium:"a h:mm:ss",short:"a h:mm"},defaultWidth:"full"}),dateTime:Xi({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},_P={lastWeek:"'\u4e0a\u500b'eeee p",yesterday:"'\u6628\u5929' p",today:"'\u4eca\u5929' p",tomorrow:"'\u660e\u5929' p",nextWeek:"'\u4e0b\u500b'eeee p",other:"P"},SA={code:"zh-TW",formatDistance:(ee,H,W)=>{let oe;const pt=lb[ee];return oe="string"==typeof pt?pt:1===H?pt.one:pt.other.replace("{{count}}",String(H)),W?.addSuffix?W.comparison&&W.comparison>0?oe+"\u5167":oe+"\u524d":oe},formatLong:vP,formatRelative:(ee,H,W,oe)=>_P[ee],localize:{ordinalNumber:(ee,H)=>{const W=Number(ee);switch(H?.unit){case"date":return W+"\u65e5";case"hour":return W+"\u6642";case"minute":return W+"\u5206";case"second":return W+"\u79d2";default:return"\u7b2c "+W}},era:Dt({values:{narrow:["\u524d","\u516c\u5143"],abbreviated:["\u524d","\u516c\u5143"],wide:["\u516c\u5143\u524d","\u516c\u5143"]},defaultWidth:"wide"}),quarter:Dt({values:{narrow:["1","2","3","4"],abbreviated:["\u7b2c\u4e00\u523b","\u7b2c\u4e8c\u523b","\u7b2c\u4e09\u523b","\u7b2c\u56db\u523b"],wide:["\u7b2c\u4e00\u523b\u9418","\u7b2c\u4e8c\u523b\u9418","\u7b2c\u4e09\u523b\u9418","\u7b2c\u56db\u523b\u9418"]},defaultWidth:"wide",argumentCallback:ee=>ee-1}),month:Dt({values:{narrow:["\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d","\u4e03","\u516b","\u4e5d","\u5341","\u5341\u4e00","\u5341\u4e8c"],abbreviated:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],wide:["\u4e00\u6708","\u4e8c\u6708","\u4e09\u6708","\u56db\u6708","\u4e94\u6708","\u516d\u6708","\u4e03\u6708","\u516b\u6708","\u4e5d\u6708","\u5341\u6708","\u5341\u4e00\u6708","\u5341\u4e8c\u6708"]},defaultWidth:"wide"}),day:Dt({values:{narrow:["\u65e5","\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d"],short:["\u65e5","\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d"],abbreviated:["\u9031\u65e5","\u9031\u4e00","\u9031\u4e8c","\u9031\u4e09","\u9031\u56db","\u9031\u4e94","\u9031\u516d"],wide:["\u661f\u671f\u65e5","\u661f\u671f\u4e00","\u661f\u671f\u4e8c","\u661f\u671f\u4e09","\u661f\u671f\u56db","\u661f\u671f\u4e94","\u661f\u671f\u516d"]},defaultWidth:"wide"}),dayPeriod:Dt({values:{narrow:{am:"\u4e0a",pm:"\u4e0b",midnight:"\u51cc\u6668",noon:"\u5348",morning:"\u65e9",afternoon:"\u4e0b\u5348",evening:"\u665a",night:"\u591c"},abbreviated:{am:"\u4e0a\u5348",pm:"\u4e0b\u5348",midnight:"\u51cc\u6668",noon:"\u4e2d\u5348",morning:"\u65e9\u6668",afternoon:"\u4e2d\u5348",evening:"\u665a\u4e0a",night:"\u591c\u9593"},wide:{am:"\u4e0a\u5348",pm:"\u4e0b\u5348",midnight:"\u51cc\u6668",noon:"\u4e2d\u5348",morning:"\u65e9\u6668",afternoon:"\u4e2d\u5348",evening:"\u665a\u4e0a",night:"\u591c\u9593"}},defaultWidth:"wide",formattingValues:{narrow:{am:"\u4e0a",pm:"\u4e0b",midnight:"\u51cc\u6668",noon:"\u5348",morning:"\u65e9",afternoon:"\u4e0b\u5348",evening:"\u665a",night:"\u591c"},abbreviated:{am:"\u4e0a\u5348",pm:"\u4e0b\u5348",midnight:"\u51cc\u6668",noon:"\u4e2d\u5348",morning:"\u65e9\u6668",afternoon:"\u4e2d\u5348",evening:"\u665a\u4e0a",night:"\u591c\u9593"},wide:{am:"\u4e0a\u5348",pm:"\u4e0b\u5348",midnight:"\u51cc\u6668",noon:"\u4e2d\u5348",morning:"\u65e9\u6668",afternoon:"\u4e2d\u5348",evening:"\u665a\u4e0a",night:"\u591c\u9593"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:hs({matchPattern:/^(\u7b2c\s*)?\d+(\u65e5|\u6642|\u5206|\u79d2)?/i,parsePattern:/\d+/i,valueCallback:ee=>parseInt(ee,10)}),era:Di({matchPatterns:{narrow:/^(\u524d)/i,abbreviated:/^(\u524d)/i,wide:/^(\u516c\u5143\u524d|\u516c\u5143)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^(\u524d)/i,/^(\u516c\u5143)/i]},defaultParseWidth:"any"}),quarter:Di({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^\u7b2c[\u4e00\u4e8c\u4e09\u56db]\u523b/i,wide:/^\u7b2c[\u4e00\u4e8c\u4e09\u56db]\u523b\u9418/i},defaultMatchWidth:"wide",parsePatterns:{any:[/(1|\u4e00)/i,/(2|\u4e8c)/i,/(3|\u4e09)/i,/(4|\u56db)/i]},defaultParseWidth:"any",valueCallback:ee=>ee+1}),month:Di({matchPatterns:{narrow:/^(\u4e00|\u4e8c|\u4e09|\u56db|\u4e94|\u516d|\u4e03|\u516b|\u4e5d|\u5341[\u4e8c\u4e00])/i,abbreviated:/^(\u4e00|\u4e8c|\u4e09|\u56db|\u4e94|\u516d|\u4e03|\u516b|\u4e5d|\u5341[\u4e8c\u4e00]|\d|1[12])\u6708/i,wide:/^(\u4e00|\u4e8c|\u4e09|\u56db|\u4e94|\u516d|\u4e03|\u516b|\u4e5d|\u5341[\u4e8c\u4e00])\u6708/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^\u4e00/i,/^\u4e8c/i,/^\u4e09/i,/^\u56db/i,/^\u4e94/i,/^\u516d/i,/^\u4e03/i,/^\u516b/i,/^\u4e5d/i,/^\u5341(?!(\u4e00|\u4e8c))/i,/^\u5341\u4e00/i,/^\u5341\u4e8c/i],any:[/^\u4e00|1/i,/^\u4e8c|2/i,/^\u4e09|3/i,/^\u56db|4/i,/^\u4e94|5/i,/^\u516d|6/i,/^\u4e03|7/i,/^\u516b|8/i,/^\u4e5d|9/i,/^\u5341(?!(\u4e00|\u4e8c))|10/i,/^\u5341\u4e00|11/i,/^\u5341\u4e8c|12/i]},defaultParseWidth:"any"}),day:Di({matchPatterns:{narrow:/^[\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u65e5]/i,short:/^[\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u65e5]/i,abbreviated:/^\u9031[\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u65e5]/i,wide:/^\u661f\u671f[\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u65e5]/i},defaultMatchWidth:"wide",parsePatterns:{any:[/\u65e5/i,/\u4e00/i,/\u4e8c/i,/\u4e09/i,/\u56db/i,/\u4e94/i,/\u516d/i]},defaultParseWidth:"any"}),dayPeriod:Di({matchPatterns:{any:/^(\u4e0a\u5348?|\u4e0b\u5348?|\u5348\u591c|[\u4e2d\u6b63]\u5348|\u65e9\u4e0a?|\u4e0b\u5348|\u665a\u4e0a?|\u51cc\u6668)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^\u4e0a\u5348?/i,pm:/^\u4e0b\u5348?/i,midnight:/^\u5348\u591c/i,noon:/^[\u4e2d\u6b63]\u5348/i,morning:/^\u65e9\u4e0a/i,afternoon:/^\u4e0b\u5348/i,evening:/^\u665a\u4e0a?/i,night:/^\u51cc\u6668/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:4}},EA={lessThanXSeconds:{one:"\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",two:"\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u062a\u064a\u0646",threeToTen:"\u0623\u0642\u0644 \u0645\u0646 {{count}} \u062b\u0648\u0627\u0646\u064a",other:"\u0623\u0642\u0644 \u0645\u0646 {{count}} \u062b\u0627\u0646\u064a\u0629"},xSeconds:{one:"\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",two:"\u062b\u0627\u0646\u062a\u064a\u0646",threeToTen:"{{count}} \u062b\u0648\u0627\u0646\u064a",other:"{{count}} \u062b\u0627\u0646\u064a\u0629"},halfAMinute:"\u0646\u0635\u0641 \u062f\u0642\u064a\u0642\u0629",lessThanXMinutes:{one:"\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629",two:"\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u062a\u064a\u0646",threeToTen:"\u0623\u0642\u0644 \u0645\u0646 {{count}} \u062f\u0642\u0627\u0626\u0642",other:"\u0623\u0642\u0644 \u0645\u0646 {{count}} \u062f\u0642\u064a\u0642\u0629"},xMinutes:{one:"\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",two:"\u062f\u0642\u064a\u0642\u062a\u064a\u0646",threeToTen:"{{count}} \u062f\u0642\u0627\u0626\u0642",other:"{{count}} \u062f\u0642\u064a\u0642\u0629"},aboutXHours:{one:"\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629 \u062a\u0642\u0631\u064a\u0628\u0627\u064b",two:"\u0633\u0627\u0639\u062a\u064a\u0646 \u062a\u0642\u0631\u064a\u0628\u0627\u064b",threeToTen:"{{count}} \u0633\u0627\u0639\u0627\u062a \u062a\u0642\u0631\u064a\u0628\u0627\u064b",other:"{{count}} \u0633\u0627\u0639\u0629 \u062a\u0642\u0631\u064a\u0628\u0627\u064b"},xHours:{one:"\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",two:"\u0633\u0627\u0639\u062a\u064a\u0646",threeToTen:"{{count}} \u0633\u0627\u0639\u0627\u062a",other:"{{count}} \u0633\u0627\u0639\u0629"},xDays:{one:"\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",two:"\u064a\u0648\u0645\u064a\u0646",threeToTen:"{{count}} \u0623\u064a\u0627\u0645",other:"{{count}} \u064a\u0648\u0645"},aboutXWeeks:{one:"\u0623\u0633\u0628\u0648\u0639 \u0648\u0627\u062d\u062f \u062a\u0642\u0631\u064a\u0628\u0627\u064b",two:"\u0623\u0633\u0628\u0648\u0639\u064a\u0646 \u062a\u0642\u0631\u064a\u0628\u0627\u064b",threeToTen:"{{count}} \u0623\u0633\u0627\u0628\u064a\u0639 \u062a\u0642\u0631\u064a\u0628\u0627\u064b",other:"{{count}} \u0623\u0633\u0628\u0648\u0639 \u062a\u0642\u0631\u064a\u0628\u0627\u064b"},xWeeks:{one:"\u0623\u0633\u0628\u0648\u0639 \u0648\u0627\u062d\u062f",two:"\u0623\u0633\u0628\u0648\u0639\u064a\u0646",threeToTen:"{{count}} \u0623\u0633\u0627\u0628\u064a\u0639",other:"{{count}} \u0623\u0633\u0628\u0648\u0639"},aboutXMonths:{one:"\u0634\u0647\u0631 \u0648\u0627\u062d\u062f \u062a\u0642\u0631\u064a\u0628\u0627\u064b",two:"\u0634\u0647\u0631\u064a\u0646 \u062a\u0642\u0631\u064a\u0628\u0627\u064b",threeToTen:"{{count}} \u0623\u0634\u0647\u0631 \u062a\u0642\u0631\u064a\u0628\u0627\u064b",other:"{{count}} \u0634\u0647\u0631 \u062a\u0642\u0631\u064a\u0628\u0627\u064b"},xMonths:{one:"\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",two:"\u0634\u0647\u0631\u064a\u0646",threeToTen:"{{count}} \u0623\u0634\u0647\u0631",other:"{{count}} \u0634\u0647\u0631"},aboutXYears:{one:"\u0639\u0627\u0645 \u0648\u0627\u062d\u062f \u062a\u0642\u0631\u064a\u0628\u0627\u064b",two:"\u0639\u0627\u0645\u064a\u0646 \u062a\u0642\u0631\u064a\u0628\u0627\u064b",threeToTen:"{{count}} \u0623\u0639\u0648\u0627\u0645 \u062a\u0642\u0631\u064a\u0628\u0627\u064b",other:"{{count}} \u0639\u0627\u0645 \u062a\u0642\u0631\u064a\u0628\u0627\u064b"},xYears:{one:"\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",two:"\u0639\u0627\u0645\u064a\u0646",threeToTen:"{{count}} \u0623\u0639\u0648\u0627\u0645",other:"{{count}} \u0639\u0627\u0645"},overXYears:{one:"\u0623\u0643\u062b\u0631 \u0645\u0646 \u0639\u0627\u0645",two:"\u0623\u0643\u062b\u0631 \u0645\u0646 \u0639\u0627\u0645\u064a\u0646",threeToTen:"\u0623\u0643\u062b\u0631 \u0645\u0646 {{count}} \u0623\u0639\u0648\u0627\u0645",other:"\u0623\u0643\u062b\u0631 \u0645\u0646 {{count}} \u0639\u0627\u0645"},almostXYears:{one:"\u0639\u0627\u0645 \u0648\u0627\u062d\u062f \u062a\u0642\u0631\u064a\u0628\u0627\u064b",two:"\u0639\u0627\u0645\u064a\u0646 \u062a\u0642\u0631\u064a\u0628\u0627\u064b",threeToTen:"{{count}} \u0623\u0639\u0648\u0627\u0645 \u062a\u0642\u0631\u064a\u0628\u0627\u064b",other:"{{count}} \u0639\u0627\u0645 \u062a\u0642\u0631\u064a\u0628\u0627\u064b"}},AA={date:Xi({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:Xi({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:Xi({formats:{full:"{{date}} '\u0639\u0646\u062f' {{time}}",long:"{{date}} '\u0639\u0646\u062f' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},OA={lastWeek:"'\u0623\u062e\u0631' eeee '\u0639\u0646\u062f' p",yesterday:"'\u0623\u0645\u0633 \u0639\u0646\u062f' p",today:"'\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f' p",tomorrow:"'\u063a\u062f\u0627\u064b \u0639\u0646\u062f' p",nextWeek:"eeee '\u0639\u0646\u062f' p",other:"P"},IA={ordinalNumber:ee=>String(ee),era:Dt({values:{narrow:["\u0642","\u0628"],abbreviated:["\u0642.\u0645.","\u0628.\u0645."],wide:["\u0642\u0628\u0644 \u0627\u0644\u0645\u064a\u0644\u0627\u062f","\u0628\u0639\u062f \u0627\u0644\u0645\u064a\u0644\u0627\u062f"]},defaultWidth:"wide"}),quarter:Dt({values:{narrow:["1","2","3","4"],abbreviated:["\u06311","\u06312","\u06313","\u06314"],wide:["\u0627\u0644\u0631\u0628\u0639 \u0627\u0644\u0623\u0648\u0644","\u0627\u0644\u0631\u0628\u0639 \u0627\u0644\u062b\u0627\u0646\u064a","\u0627\u0644\u0631\u0628\u0639 \u0627\u0644\u062b\u0627\u0644\u062b","\u0627\u0644\u0631\u0628\u0639 \u0627\u0644\u0631\u0627\u0628\u0639"]},defaultWidth:"wide",argumentCallback:ee=>ee-1}),month:Dt({values:{narrow:["\u064a","\u0641","\u0645","\u0623","\u0645","\u064a","\u064a","\u0623","\u0633","\u0623","\u0646","\u062f"],abbreviated:["\u064a\u0646\u0627","\u0641\u0628\u0631","\u0645\u0627\u0631\u0633","\u0623\u0628\u0631\u064a\u0644","\u0645\u0627\u064a\u0648","\u064a\u0648\u0646\u0640","\u064a\u0648\u0644\u0640","\u0623\u063a\u0633\u0640","\u0633\u0628\u062a\u0640","\u0623\u0643\u062a\u0640","\u0646\u0648\u0641\u0640","\u062f\u064a\u0633\u0640"],wide:["\u064a\u0646\u0627\u064a\u0631","\u0641\u0628\u0631\u0627\u064a\u0631","\u0645\u0627\u0631\u0633","\u0623\u0628\u0631\u064a\u0644","\u0645\u0627\u064a\u0648","\u064a\u0648\u0646\u064a\u0648","\u064a\u0648\u0644\u064a\u0648","\u0623\u063a\u0633\u0637\u0633","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"]},defaultWidth:"wide"}),day:Dt({values:{narrow:["\u062d","\u0646","\u062b","\u0631","\u062e","\u062c","\u0633"],short:["\u0623\u062d\u062f","\u0627\u062b\u0646\u064a\u0646","\u062b\u0644\u0627\u062b\u0627\u0621","\u0623\u0631\u0628\u0639\u0627\u0621","\u062e\u0645\u064a\u0633","\u062c\u0645\u0639\u0629","\u0633\u0628\u062a"],abbreviated:["\u0623\u062d\u062f","\u0627\u062b\u0646\u0640","\u062b\u0644\u0627","\u0623\u0631\u0628\u0640","\u062e\u0645\u064a\u0640","\u062c\u0645\u0639\u0629","\u0633\u0628\u062a"],wide:["\u0627\u0644\u0623\u062d\u062f","\u0627\u0644\u0627\u062b\u0646\u064a\u0646","\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621","\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621","\u0627\u0644\u062e\u0645\u064a\u0633","\u0627\u0644\u062c\u0645\u0639\u0629","\u0627\u0644\u0633\u0628\u062a"]},defaultWidth:"wide"}),dayPeriod:Dt({values:{narrow:{am:"\u0635",pm:"\u0645",midnight:"\u0646",noon:"\u0638",morning:"\u0635\u0628\u0627\u062d\u0627\u064b",afternoon:"\u0628\u0639\u062f \u0627\u0644\u0638\u0647\u0631",evening:"\u0645\u0633\u0627\u0621\u0627\u064b",night:"\u0644\u064a\u0644\u0627\u064b"},abbreviated:{am:"\u0635",pm:"\u0645",midnight:"\u0646\u0635\u0641 \u0627\u0644\u0644\u064a\u0644",noon:"\u0638\u0647\u0631",morning:"\u0635\u0628\u0627\u062d\u0627\u064b",afternoon:"\u0628\u0639\u062f \u0627\u0644\u0638\u0647\u0631",evening:"\u0645\u0633\u0627\u0621\u0627\u064b",night:"\u0644\u064a\u0644\u0627\u064b"},wide:{am:"\u0635",pm:"\u0645",midnight:"\u0646\u0635\u0641 \u0627\u0644\u0644\u064a\u0644",noon:"\u0638\u0647\u0631",morning:"\u0635\u0628\u0627\u062d\u0627\u064b",afternoon:"\u0628\u0639\u062f \u0627\u0644\u0638\u0647\u0631",evening:"\u0645\u0633\u0627\u0621\u0627\u064b",night:"\u0644\u064a\u0644\u0627\u064b"}},defaultWidth:"wide",formattingValues:{narrow:{am:"\u0635",pm:"\u0645",midnight:"\u0646",noon:"\u0638",morning:"\u0641\u064a \u0627\u0644\u0635\u0628\u0627\u062d",afternoon:"\u0628\u0639\u062f \u0627\u0644\u0638\u0640\u0647\u0631",evening:"\u0641\u064a \u0627\u0644\u0645\u0633\u0627\u0621",night:"\u0641\u064a \u0627\u0644\u0644\u064a\u0644"},abbreviated:{am:"\u0635",pm:"\u0645",midnight:"\u0646\u0635\u0641 \u0627\u0644\u0644\u064a\u0644",noon:"\u0638\u0647\u0631",morning:"\u0641\u064a \u0627\u0644\u0635\u0628\u0627\u062d",afternoon:"\u0628\u0639\u062f \u0627\u0644\u0638\u0647\u0631",evening:"\u0641\u064a \u0627\u0644\u0645\u0633\u0627\u0621",night:"\u0641\u064a \u0627\u0644\u0644\u064a\u0644"},wide:{am:"\u0635",pm:"\u0645",midnight:"\u0646\u0635\u0641 \u0627\u0644\u0644\u064a\u0644",noon:"\u0638\u0647\u0631",morning:"\u0635\u0628\u0627\u062d\u0627\u064b",afternoon:"\u0628\u0639\u062f \u0627\u0644\u0638\u0640\u0647\u0631",evening:"\u0641\u064a \u0627\u0644\u0645\u0633\u0627\u0621",night:"\u0641\u064a \u0627\u0644\u0644\u064a\u0644"}},defaultFormattingWidth:"wide"})},BA={ordinalNumber:hs({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:ee=>parseInt(ee,10)}),era:Di({matchPatterns:{narrow:/^(\u0642|\u0628)/i,abbreviated:/^(\u0642\.?\s?\u0645\.?|\u0642\.?\s?\u0645\.?\s?|a\.?\s?d\.?|c\.?\s?)/i,wide:/^(\u0642\u0628\u0644 \u0627\u0644\u0645\u064a\u0644\u0627\u062f|\u0642\u0628\u0644 \u0627\u0644\u0645\u064a\u0644\u0627\u062f|\u0628\u0639\u062f \u0627\u0644\u0645\u064a\u0644\u0627\u062f|\u0628\u0639\u062f \u0627\u0644\u0645\u064a\u0644\u0627\u062f)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^\u0642\u0628\u0644/i,/^\u0628\u0639\u062f/i]},defaultParseWidth:"any"}),quarter:Di({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^\u0631[1234]/i,wide:/^\u0627\u0644\u0631\u0628\u0639 [1234]/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:ee=>ee+1}),month:Di({matchPatterns:{narrow:/^[\u064a\u0641\u0645\u0623\u0645\u0633\u0646\u062f]/i,abbreviated:/^(\u064a\u0646|\u0641|\u0645\u0627\u0631|\u0623\u0628|\u0645\u0627\u064a|\u064a\u0648\u0646|\u064a\u0648\u0644|\u0623\u063a|\u0633|\u0623\u0643|\u0646|\u062f)/i,wide:/^(\u064a\u0646|\u0641|\u0645\u0627\u0631|\u0623\u0628|\u0645\u0627\u064a|\u064a\u0648\u0646|\u064a\u0648\u0644|\u0623\u063a|\u0633|\u0623\u0643|\u0646|\u062f)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^\u064a/i,/^\u0641/i,/^\u0645/i,/^\u0623/i,/^\u0645/i,/^\u064a/i,/^\u064a/i,/^\u0623/i,/^\u0633/i,/^\u0623/i,/^\u0646/i,/^\u062f/i],any:[/^\u064a\u0646/i,/^\u0641/i,/^\u0645\u0627\u0631/i,/^\u0623\u0628/i,/^\u0645\u0627\u064a/i,/^\u064a\u0648\u0646/i,/^\u064a\u0648\u0644/i,/^\u0623\u063a/i,/^\u0633/i,/^\u0623\u0643/i,/^\u0646/i,/^\u062f/i]},defaultParseWidth:"any"}),day:Di({matchPatterns:{narrow:/^[\u062d\u0646\u062b\u0631\u062e\u062c\u0633]/i,short:/^(\u0623\u062d\u062f|\u0627\u062b\u0646\u064a\u0646|\u062b\u0644\u0627\u062b\u0627\u0621|\u0623\u0631\u0628\u0639\u0627\u0621|\u062e\u0645\u064a\u0633|\u062c\u0645\u0639\u0629|\u0633\u0628\u062a)/i,abbreviated:/^(\u0623\u062d\u062f|\u0627\u062b\u0646|\u062b\u0644\u0627|\u0623\u0631\u0628|\u062e\u0645\u064a|\u062c\u0645\u0639\u0629|\u0633\u0628\u062a)/i,wide:/^(\u0627\u0644\u0623\u062d\u062f|\u0627\u0644\u0627\u062b\u0646\u064a\u0646|\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621|\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621|\u0627\u0644\u062e\u0645\u064a\u0633|\u0627\u0644\u062c\u0645\u0639\u0629|\u0627\u0644\u0633\u0628\u062a)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^\u062d/i,/^\u0646/i,/^\u062b/i,/^\u0631/i,/^\u062e/i,/^\u062c/i,/^\u0633/i],wide:[/^\u0627\u0644\u0623\u062d\u062f/i,/^\u0627\u0644\u0627\u062b\u0646\u064a\u0646/i,/^\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621/i,/^\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621/i,/^\u0627\u0644\u062e\u0645\u064a\u0633/i,/^\u0627\u0644\u062c\u0645\u0639\u0629/i,/^\u0627\u0644\u0633\u0628\u062a/i],any:[/^\u0623\u062d/i,/^\u0627\u062b/i,/^\u062b/i,/^\u0623\u0631/i,/^\u062e/i,/^\u062c/i,/^\u0633/i]},defaultParseWidth:"any"}),dayPeriod:Di({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},bb=Or,CP={bg_BG:Zu,cs_CZ:Yn,da_DK:gd,de_DE:ng,el_GR:Dm,en_GB:Iu,en_US:Or,es_ES:Oc,es_MX:Oc,fi_FI:pf,fr_FR:Jm,hr_HR:Ng,hu_HU:Mc,it_IT:mv,ja_JP:Wb,ko_KR:rE,nb_NO:yE,nl_NL:uy,pl_PL:by,pt_BR:wO,pt_PT:s1,ro_RO:Xy,ru_RU:tS,sk_SK:Q_,sl_SI:Lp,sv_SE:ac,th_TH:c0,tr_TR:NC,uk_UA:KC,zh_CN:ab,zh_TW:SA,ar_SA:{code:"ar-SA",formatDistance:(ee,H,W)=>{let oe;const pt=EA[ee];return oe="string"==typeof pt?pt:1===H?pt.one:2===H?pt.two:H<=10?pt.threeToTen.replace("{{count}}",String(H)):pt.other.replace("{{count}}",String(H)),W?.addSuffix?W.comparison&&W.comparison>0?"\u0641\u064a \u062e\u0644\u0627\u0644 "+oe:"\u0645\u0646\u0630 "+oe:oe},formatLong:AA,formatRelative:(ee,H,W,oe)=>OA[ee],localize:IA,match:BA,options:{weekStartsOn:0,firstWeekContainsDate:1}}};class Yp{static parseISODate(H){return function Ua(ee,H){const W=H?.additionalDigits??2,oe=function Ka(ee){const H={},W=ee.split(Za.dateTimeDelimiter);let oe;if(W.length>2)return H;if(/:/.test(W[0])?oe=W[0]:(H.date=W[0],oe=W[1],Za.timeZoneDelimiter.test(H.date)&&(H.date=ee.split(Za.timeZoneDelimiter)[0],oe=ee.substr(H.date.length,ee.length))),oe){const pt=Za.timezone.exec(oe);pt?(H.time=oe.replace(pt[1],""),H.timezone=pt[1]):H.time=oe}return H}(ee);let pt;if(oe.date){const $r=function cc(ee,H){const W=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+H)+"})|(\\d{2}|[+-]\\d{"+(2+H)+"})$)"),oe=ee.match(W);if(!oe)return{year:NaN,restDateString:""};const pt=oe[1]?parseInt(oe[1]):null,wn=oe[2]?parseInt(oe[2]):null;return{year:null===wn?pt:100*wn,restDateString:ee.slice((oe[1]||oe[2]).length)}}(oe.date,W);pt=function dc(ee,H){if(null===H)return new Date(NaN);const W=ee.match(Ja);if(!W)return new Date(NaN);const oe=!!W[4],pt=Bl(W[1]),wn=Bl(W[2])-1,hi=Bl(W[3]),Ji=Bl(W[4]),$r=Bl(W[5])-1;if(oe)return function Fc(ee,H,W){return H>=1&&H<=53&&W>=0&&W<=6}(0,Ji,$r)?function Kl(ee,H,W){const oe=new Date(0);oe.setUTCFullYear(ee,0,4);const wn=7*(H-1)+W+1-(oe.getUTCDay()||7);return oe.setUTCDate(oe.getUTCDate()+wn),oe}(H,Ji,$r):new Date(NaN);{const Ts=new Date(0);return function kc(ee,H,W){return H>=0&&H<=11&&W>=1&&W<=(Zc[H]||(Lc(ee)?29:28))}(H,wn,hi)&&function No(ee,H){return H>=1&&H<=(Lc(ee)?366:365)}(H,pt)?(Ts.setUTCFullYear(H,wn,Math.max(pt,hi)),Ts):new Date(NaN)}}($r.restDateString,$r.year)}if(!pt||isNaN(pt.getTime()))return new Date(NaN);const wn=pt.getTime();let Ji,hi=0;if(oe.time&&(hi=function Nc(ee){const H=ee.match(bl);if(!H)return NaN;const W=tc(H[1]),oe=tc(H[2]),pt=tc(H[3]);return function uc(ee,H,W){return 24===ee?0===H&&0===W:W>=0&&W<60&&H>=0&&H<60&&ee>=0&&ee<25}(W,oe,pt)?W*Ii+oe*li+1e3*pt:NaN}(oe.time),isNaN(hi)))return new Date(NaN);if(!oe.timezone){const $r=new Date(wn+hi),Ts=new Date(0);return Ts.setFullYear($r.getUTCFullYear(),$r.getUTCMonth(),$r.getUTCDate()),Ts.setHours($r.getUTCHours(),$r.getUTCMinutes(),$r.getUTCSeconds(),$r.getUTCMilliseconds()),Ts}return Ji=function ul(ee){if("Z"===ee)return 0;const H=ee.match(gl);if(!H)return 0;const W="+"===H[1]?-1:1,oe=parseInt(H[2]),pt=H[3]&&parseInt(H[3])||0;return function $l(ee,H){return H>=0&&H<=59}(0,pt)?W*(oe*Ii+pt*li):NaN}(oe.timezone),isNaN(Ji)?new Date(NaN):new Date(wn+hi+Ji)}(H)}static isValidDate(H){try{return"string"==typeof H&&(H=this.parseISODate(H)),gi(H)}catch{return!1}}static getISODate(H){return function Jr(ee,H){const W=lr(ee);if(isNaN(W.getTime()))throw new RangeError("Invalid time value");const oe=H?.format??"extended",pt=H?.representation??"complete";let wn="",hi="";const Ji="extended"===oe?"-":"",$r="extended"===oe?":":"";if("time"!==pt){const Ts=Tt(W.getDate(),2),Cs=Tt(W.getMonth()+1,2);wn=`${Tt(W.getFullYear(),4)}${Ji}${Cs}${Ji}${Ts}`}if("date"!==pt){const Ts=W.getTimezoneOffset();if(0!==Ts){const ea=Math.abs(Ts);hi=`${Ts<0?"+":"-"}${Tt(Math.trunc(ea/60),2)}:${Tt(ea%60,2)}`}else hi="Z";wn=`${wn}${""===wn?"":"T"}${[Tt(W.getHours(),2),Tt(W.getMinutes(),2),Tt(W.getSeconds(),2)].join($r)}${hi}`}return wn}(H)}static getDifferenceInTime(H,W,oe){switch(oe){case yo.SECONDS:return va(H,W);case yo.MINUTES:return function Lo(ee,H,W){const oe=Js(ee,H)/li;return Ss(W?.roundingMethod)(oe)}(H,W);case yo.HOURS:return function Uc(ee,H,W){const oe=Js(ee,H)/Ii;return Ss(W?.roundingMethod)(oe)}(H,W);case yo.MILLISECONDS:return Js(H,W);default:throw new Error(`Unsupported metric: ${oe}`)}}static addTime(H,W,oe){switch(oe){case yo.HOURS:return hl(H,W);case yo.MINUTES:return qa(H,W);case yo.SECONDS:return Jc(H,W);case yo.MILLISECONDS:return Bc(H,W);case yo.DAYS:return ma(H,W);case yo.WEEKS:return Ia(H,W);case yo.MONTHS:return xd(H,W);case yo.YEARS:return yd(H,W);default:throw new Error('Invalid metric. Use "hours", "minutes", "seconds", "milliseconds", "days", "weeks", "months", or "years".')}}static subtractTime(H,W,oe){switch(oe){case yo.HOURS:return function Td(ee,H){return hl(ee,-H)}(H,W);case yo.MINUTES:return function cu(ee,H){return qa(ee,-H)}(H,W);case yo.SECONDS:return function bc(ee,H){return Jc(ee,-H)}(H,W);case yo.MILLISECONDS:return function Hh(ee,H){return Bc(ee,-H)}(H,W);case yo.DAYS:return function Sd(ee,H){return ma(ee,-H)}(H,W);case yo.WEEKS:return function du(ee,H){return Ia(ee,-H)}(H,W);case yo.MONTHS:return function cd(ee,H){return xd(ee,-H)}(H,W);case yo.YEARS:return function Wh(ee,H){return yd(ee,-H)}(H,W);default:throw new Error('Invalid metric. Use "hours", "minutes", "seconds", "milliseconds", "days", "weeks", "months", or "years".')}}static getStartOfDay(H){return xa(H)}static getEndOfDay(H){return cs(H)}static getDayOfWeek(H){return function Id(ee){return lr(ee).getDay()}(H)}static getStartOfMonth(H){return function Xl(ee){const H=lr(ee);return H.setDate(1),H.setHours(0,0,0,0),H}(H)}static getMonthOfYear(H){return function wd(ee){return lr(ee).getMonth()}(H)+1}static getYear(H){return function Qd(ee){return lr(ee).getFullYear()}(H)}static isSameOrAfter(H,W,oe){switch(oe){case mc.DAY:return this.isSameOrAfterDay(H,W);case mc.WEEK:return this.isSameOrAfterWeek(H,W);case mc.MONTH:return this.isSameOrAfterMonth(H,W);case mc.YEAR:return this.isSameOrAfterYear(H,W)}}static isSame(H,W,oe){switch(oe){case mc.DAY:return function Zd(ee,H){return+xa(ee)==+xa(H)}(H,W);case mc.WEEK:return Rl(H,W);case mc.MONTH:return pc(H,W);case mc.YEAR:return Jd(H,W)}}static createDuration(H){const W=Math.floor(H/qc);return{seconds:H%60,minutes:Math.floor(H%qc/60),hours:W}}static convertDurationToMilliseconds(H){const[W,oe,pt]=H.split(":").map(Number);return 1e3*(W*qc+60*oe+pt)}static isSameOrAfterDay(H,W){return function gc(ee,H){return+lr(ee)==+lr(H)}(H,W)||xs(H,W)}static isSameOrAfterWeek(H,W){return Rl(H,W)||xs(H,W)}static isSameOrAfterMonth(H,W){return pc(H,W)||xs(H,W)}static isSameOrAfterYear(H,W){return Jd(H,W)||xs(H,W)}static isBetween(H,W,oe,pt="()"){const wn="["===pt[0]?!Vc(H,W):xs(H,W),hi="]"===pt[1]?!xs(H,oe):Vc(H,oe);return wn&&hi}static getSecondsFromDate(H){return H.getSeconds()}static getMinutesFromDate(H){return H.getMinutes()}static getHoursFromDate(H){return H.getHours()}static getDaysElapsedFromDate(H){const W=new Date(H).getTime(),oe=(new Date).getTime(),pt=Math.max(0,Math.floor((oe-W)/1e3));return Math.max(0,Math.floor(pt/86400))}static secondsToHHMMSS(H){const W=Math.floor(H/qc),oe=Math.floor(H%qc/60),pt=Math.floor(H%60);return`${String(W).padStart(2,"0")}:${String(oe).padStart(2,"0")}:${String(pt).padStart(2,"0")}`}static convertTimeStringToSeconds(H){const[W,oe,pt]=H.split(":").map(Number);return W*qc+60*oe+pt}static fromNow(H,W,oe){try{if("string"==typeof H&&(H=this.parseISODate(H)),W){const pt=this.detectLocale(W);return Gs(H,{...oe,locale:pt})}return Gs(H,{...oe})}catch{return""}}static detectLocale(H){return CP[H]||bb}}let GA=(()=>{class ee{constructor(W,oe){this.localeService=oe,this.logger=W.getLogger("date-handler-service")}initialize(){this.localeService.localeChanged.subscribe(W=>{this.currentLocale=this.detectLocale()})}detectLocale(){const W=this.localeService.getLocale();return Yp.detectLocale(W)}formatDate(W,oe){try{return"string"==typeof W&&(W=Yp.parseISODate(W)),function Qi(ee,H,W){const oe=wr(),pt=W?.locale??oe.locale??Or,wn=W?.firstWeekContainsDate??W?.locale?.options?.firstWeekContainsDate??oe.firstWeekContainsDate??oe.locale?.options?.firstWeekContainsDate??1,hi=W?.weekStartsOn??W?.locale?.options?.weekStartsOn??oe.weekStartsOn??oe.locale?.options?.weekStartsOn??0,Ji=lr(ee);if(!gi(Ji))throw new RangeError("Invalid time value");let $r=H.match(rr).map(Cs=>{const Na=Cs[0];return"p"===Na||"P"===Na?(0,ne[Na])(Cs,pt.formatLong):Cs}).join("").match(ki).map(Cs=>{if("''"===Cs)return{isToken:!1,value:"'"};const Na=Cs[0];if("'"===Na)return{isToken:!1,value:Gr(Cs)};if(It[Na])return{isToken:!0,value:Cs};if(Na.match(Ti))throw new RangeError("Format string contains an unescaped latin alphabet character `"+Na+"`");return{isToken:!1,value:Cs}});pt.localize.preprocessor&&($r=pt.localize.preprocessor(Ji,$r));const Ts={firstWeekContainsDate:wn,weekStartsOn:hi,locale:pt};return $r.map(Cs=>{if(!Cs.isToken)return Cs.value;const Na=Cs.value;return(!W?.useAdditionalWeekYearTokens&&vn(Na)||!W?.useAdditionalDayOfYearTokens&&en(Na))&&fn(Na,H,String(ee)),(0,It[Na[0]])(Ji,Na,pt.localize,Ts)}).join("")}(W,oe,{locale:this.currentLocale})}catch(pt){this.logger.error("Error formatting date:",pt)}}parseDate(W,oe){return function Bn(ee,H,W,oe){const pt=function Fi(){return Object.assign({},wr())}(),wn=oe?.locale??pt.locale??Or,hi=oe?.firstWeekContainsDate??oe?.locale?.options?.firstWeekContainsDate??pt.firstWeekContainsDate??pt.locale?.options?.firstWeekContainsDate??1,Ji=oe?.weekStartsOn??oe?.locale?.options?.weekStartsOn??pt.weekStartsOn??pt.locale?.options?.weekStartsOn??0;if(""===H)return""===ee?lr(W):rs(W,NaN);const $r={firstWeekContainsDate:hi,weekStartsOn:Ji,locale:wn},Ts=[new Hr],Cs=H.match(Et).map(ea=>{const _l=ea[0];return _l in ne?(0,ne[_l])(ea,wn.formatLong):ea}).join("").match(Rt),Na=[];for(let ea of Cs){!oe?.useAdditionalWeekYearTokens&&vn(ea)&&fn(ea,H,ee),!oe?.useAdditionalDayOfYearTokens&&en(ea)&&fn(ea,H,ee);const _l=ea[0],Wd=Ct[_l];if(Wd){const{incompatibleTokens:D0}=Wd;if(Array.isArray(D0)){const Cb=Na.find(Ab=>D0.includes(Ab.token)||Ab.token===_l);if(Cb)throw new RangeError(`The format string mustn't contain \`${Cb.fullToken}\` and \`${ea}\` at the same time`)}else if("*"===Wd.incompatibleTokens&&Na.length>0)throw new RangeError(`The format string mustn't contain \`${ea}\` and any other token at the same time`);Na.push({token:_l,fullToken:ea});const x0=Wd.run(ee,ea,wn.match,$r);if(!x0)return rs(W,NaN);Ts.push(x0.setter),ee=x0.rest}else{if(_l.match(Pn))throw new RangeError("Format string contains an unescaped latin alphabet character `"+_l+"`");if("''"===ea?ea="'":"'"===_l&&(ea=ei(ea)),0!==ee.indexOf(ea))return rs(W,NaN);ee=ee.slice(ea.length)}}if(ee.length>0&&tn.test(ee))return rs(W,NaN);const Cl=Ts.map(ea=>ea.priority).sort((ea,_l)=>_l-ea).filter((ea,_l,Wd)=>Wd.indexOf(ea)===_l).map(ea=>Ts.filter(_l=>_l.priority===ea).sort((_l,Wd)=>Wd.subPriority-_l.subPriority)).map(ea=>ea[0]);let Yc=lr(W);if(isNaN(Yc.getTime()))return rs(W,NaN);const _d={};for(const ea of Cl){if(!ea.validate(Yc,$r))return rs(W,NaN);const _l=ea.set(Yc,_d,$r);Array.isArray(_l)?(Yc=_l[0],Object.assign(_d,_l[1])):Yc=_l}return rs(W,Yc)}(W,oe,new Date,{locale:this.currentLocale})}isValidDateTime(W,oe){const pt=this.parseDate(W,oe);return Yp.isValidDate(pt)}fromNow(W,oe){return"string"==typeof W&&(W=Yp.parseISODate(W)),Gs(W,{...oe,locale:this.currentLocale})}getLocalizedDate(W,oe=null){return W?this.localeService.localeChanged.pipe((0,ct.s)(1),(0,T.ZZ)(pt=>{const wn=new Date(W);if(isNaN(wn.getTime()))return(0,P.$)("Invalid Date");const hi=pt.replace("_","-");oe||(oe={day:"numeric",month:"long",year:"numeric"});const Ji=`${wn.toLocaleDateString(hi,oe)}`;return(0,M.of)(Ji)}),(0,E.W)(pt=>(this.logger.info("Error while localizing date ",pt),(0,P.$)(pt)))):(0,M.of)(null)}getLocalizedTime(W,oe=null){return W?this.localeService.localeChanged.pipe((0,ct.s)(1),(0,T.ZZ)(pt=>{const wn=new Date(W);if(isNaN(wn.getTime()))return(0,P.$)("Invalid Date");const hi=pt.replace("_","-");oe||(oe={hour:"numeric",minute:"2-digit"});const Ji=`${wn.toLocaleTimeString(hi,oe)}`;return(0,M.of)(Ji)}),(0,E.W)(pt=>(this.logger.info("Error while localizing time ",pt),(0,P.$)(pt)))):(0,M.of)(null)}getLocalizedDateTime(W,oe=null,pt=null){return(0,Qe.zV)([this.getLocalizedDate(W,oe),this.getLocalizedTime(W,pt)]).pipe((0,ct.s)(1),(0,u.T)(([wn,hi])=>({date:wn,time:hi})))}formatAMPMToUpperCase(W){return W?W.replace(/\bam\b/,"AM").replace(/\bpm\b/,"PM"):""}static{this.\u0275fac=function(oe){return new(oe||ee)(Fe.KVO(G.J6),Fe.KVO(vt))}}static{this.\u0275prov=Fe.jDH({token:ee,factory:ee.\u0275fac,providedIn:"root"})}}return ee})();const jd=[{name:"Dark",key:"dark",className:"",isDefaultTheme:!0},{name:"Light",key:"light",className:"light-theme"},{name:"System",key:"system",className:"",isSystemTheme:!0}],Wv="userThemePreference";let M0=(()=>{class ee{constructor(W,oe,pt){this.loggingService=W,this.bridgeService=oe,this.windowService=pt,this.listeningToSystemThemeChanges=!1,this.handleSystemThemeChange=wn=>{this.systemTheme=this.getSystemTheme(wn),this.applyThemeToBody(this.systemTheme),this.logger.info("System theme preference changed:",this.isSystemLightTheme(wn)?"light":"dark")},this.logger=this.loggingService.getLogger("crimson/AppThemeService"),this.systemThemeMediaQuery=pt.window.matchMedia("(prefers-color-scheme: light)")}initialize(){return this.logger.info("Initializing"),this.fetchThemePreferenceFromStorage().pipe((0,ct.s)(1),(0,u.T)(W=>{if(this.logger.info("Response from fetchThemePreference: ",W),W)if(W.value){this.currentTheme=jd.find(pt=>pt.key===W.value);const oe=jd.some(pt=>pt.isSystemTheme);this.currentTheme?.isSystemTheme&&oe?(this.systemTheme=this.getSystemTheme(),this.applyThemeToBody(this.systemTheme),this.listenToSystemThemeChanges()):(this.currentTheme||(this.currentTheme=jd.find(pt=>pt.isDefaultTheme)),this.applyThemeToBody(this.currentTheme))}else this.currentTheme=jd.find(oe=>oe.isDefaultTheme)}))}getThemeValToSendInTelemetry(){const W=this.getCurrentTheme(),oe=this.getCurrentAppliedTheme();return W?.isSystemTheme?`${W?.key}_${oe?.key}`:W?.key}saveAndSetAppTheme(W){if(W.isSystemTheme?(this.systemTheme=this.getSystemTheme(),this.listenToSystemThemeChanges()):this.listeningToSystemThemeChanges&&this.unsubscribeFromSystemThemeChanges(),void 0!==W?.className&&W.key){this.logger.info("Setting currentTheme to ",W),this.currentTheme=W;const oe=this.currentTheme.isSystemTheme?this.systemTheme:this.currentTheme;return this.currentTheme.isDefaultTheme?this.deleteThemePreferenceFromStorage(W).pipe((0,ct.s)(1),(0,R.M)(pt=>{pt&&(this.logger.info("Success calling deleteThemePreferenceFromStorage: ",pt),this.applyThemeToBody(oe))}),(0,E.W)(pt=>(this.logger.error("Error deleting theme preference",pt),(0,M.of)(!1)))):this.saveThemePreferenceInStorage(W).pipe((0,ct.s)(1),(0,R.M)(pt=>{pt&&(this.logger.info("Success calling saveThemePreferenceInStorage: ",pt),this.applyThemeToBody(oe))}),(0,E.W)(pt=>(this.logger.error("Error saving theme preference",pt),(0,M.of)(!1))))}this.logger.error("theme object is invalid- ",W)}getCurrentTheme(){return this.currentTheme}getCurrentAppliedTheme(){return this.getCurrentTheme()?.isSystemTheme?this.systemTheme:this.getCurrentTheme()}listenToSystemThemeChanges(){this.logger.info("inside listenToSystemThemeChanges"),this.listeningToSystemThemeChanges||(this.systemThemeMediaQuery.addEventListener("change",this.handleSystemThemeChange),this.listeningToSystemThemeChanges=!0)}unsubscribeFromSystemThemeChanges(){this.logger.info("inside unsubscribeFromSystemThemeChanges"),this.systemThemeMediaQuery.removeEventListener("change",this.handleSystemThemeChange),this.listeningToSystemThemeChanges=!1}saveThemePreferenceInStorage(W){const oe={key:Wv,value:W.key};return this.logger.info("Saving theme preference key - sending the params as",oe),this.bridgeService.executeCommand(Ge.Ts.Common.Nvkvstorage.Write,oe).pipe((0,R.M)(pt=>(this.logger.info("Success calling Nvkvstorage.Write API"),pt)),(0,Y.u)(!0),(0,E.W)(pt=>(this.logger.error("Error during Nvkvstorage.Write api call - ",pt),(0,P.$)(pt))))}deleteThemePreferenceFromStorage(W){const oe={key:Wv};return this.logger.info("Deleting theme preference key - sending the params as",oe),this.bridgeService.executeCommand(Ge.Ts.Common.Nvkvstorage.Delete,oe).pipe((0,R.M)(pt=>(this.logger.info("Success calling Nvkvstorage.Delete API"),pt)),(0,Y.u)(!0),(0,E.W)(pt=>(this.logger.error("Error during Nvkvstorage.Delete api call - ",pt),(0,P.$)(pt))))}fetchThemePreferenceFromStorage(){return this.bridgeService.executeCommand(Ge.Ts.Common.Nvkvstorage.Read,{key:Wv}).pipe((0,u.T)(oe=>oe))}listenToThemePreferenceFromStorage(){return this.bridgeService.executeCommand(Ge.Ts.Common.Nvkvstorage.Notification).pipe((0,u.T)(W=>W))}applyThemeToBody(W){const oe=this.windowService.window.document.body.classList;jd?.forEach(pt=>{pt.className&&oe?.remove(pt.className)}),this.applyThemeToCEF(W).pipe((0,ct.s)(1)).subscribe(()=>{this.logger.info("success calling applyThemeToCEF")},pt=>{this.logger.error("Failure calling applyThemeToCEF ",pt)}),W.className&&(this.logger.info("Setting body class as ",W.className),oe?.add(W.className))}applyThemeToCEF(W){return this.bridgeService.executeCommand(Ge.Ts.Common.Applicationcontrol.SetCEFWindowTheme,{systemTheme:W.key}).pipe((0,R.M)(pt=>(this.logger.info("Success calling SetCEFWindowTheme API",pt),pt)),(0,Y.u)(!0),(0,E.W)(pt=>(this.logger.error("Error during SetCEFWindowTheme API - ",pt),(0,P.$)(pt))))}isSystemLightTheme(W){return W||(W=this.systemThemeMediaQuery),W.matches}getSystemTheme(W){const oe=this.isSystemLightTheme(W);return jd.find(pt=>pt.key===(oe?"light":"dark"))}listenAndApplyTheme(){return this.listenToThemePreferenceFromStorage().pipe((0,u.T)(W=>{if(W)if(W.value){this.currentTheme=jd.find(pt=>pt.key===W.value);const oe=jd.some(pt=>pt.isSystemTheme);this.currentTheme?.isSystemTheme&&oe?(this.systemTheme=this.getSystemTheme(),this.applyThemeToBody(this.systemTheme),this.listenToSystemThemeChanges()):(this.currentTheme||(this.currentTheme=jd.find(pt=>pt.isDefaultTheme)),this.applyThemeToBody(this.currentTheme))}else this.currentTheme=jd.find(oe=>oe.isDefaultTheme),this.applyThemeToBody(this.currentTheme);return W}),(0,E.W)(W=>(this.logger.error("Error during listenAndApplyTheme : ",W),(0,P.$)(W))))}static{this.\u0275fac=function(oe){return new(oe||ee)(Fe.KVO(G.J6),Fe.KVO(i.NZ),Fe.KVO(ye))}}static{this.\u0275prov=Fe.jDH({token:ee,factory:ee.\u0275fac,providedIn:"root"})}}return ee})()},76449:(St,z,s)=>{"use strict";s.d(z,{Mn:()=>n,Z1:()=>ve,bZ:()=>vt,Af:()=>u,Se:()=>l,ls:()=>r,pB:()=>g,NS:()=>A});var i=s(58527);let n=(()=>{class ue{static{this.\u0275fac=function(Ce){return new(Ce||ue)}}static{this.\u0275mod=i.$C({type:ue})}static{this.\u0275inj=i.G2t({})}}return ue})();var h=s(59859),C=s(91384),S=s(14714),M=s(43615),P=s(26875),x=s(71152),A=function(ue){return ue.HttpUrl="http.url",ue.HttpStatusCode="http.status_code",ue.HttpStatusCodeFamily="http.status_code_family",ue.HttpMethod="http.method",ue.HttpHostname="http.hostname",ue.HttpHeadersPrefix="http.headers.",ue.HttpPath="http.path",ue.HttpErrorText="http.error_text",ue.ParamsPrefix="params.",ue.Error="error",ue.SpanKind="span.kind",ue.Component="component",ue.ClientOs="client.os",ue.ClientOsName="client.os.name",ue.ClientOsVersion="client.os.version",ue.ServiceVersion="service.version",ue.ServiceType="service.type",ue.Type="type",ue.DeviceId="deviceId",ue.AppName="appName",ue.LayoutExecutionId="layoutExecutionId",ue.Origin="origin",ue.VpcId="vpcId",ue.Locale="locale",ue.Trigger="trigger",ue.LoginStatus="loginStatus",ue.CmsId="cmsId",ue.FailurePoint="failurePoint",ue.ErrorCode="errorCode",ue.ErrorType="errorType",ue.NetworkOverridePresent="networkOverridePresent",ue.NetworkTestStatus="networkTestStatus",ue.ZoneName="zone.name",ue.ZoneAddress="zone.address",ue.OobeDialogShown="oobeDialogShown",ue.LoginWindowShown="loginWindowShown",ue.LaunchSource="launchSource",ue.ShortName="shortName",ue.UsedLatencyBasedRouting="usedLatencyBasedRouting",ue.IsSessionAutoResumed="isSessionAutoResumed",ue.ErrorDetails="errorDetails",ue.RoutingOverrideUsed="routingOverrideUsed",ue.OverrideZoneName="overrideZoneName",ue.OverrideZoneAddress="overrideZoneAddress",ue.SessionId="sessionId",ue.SkippedAuthCheck="skippedAuthCheck",ue.CountryCode="countryCode",ue.FastestJarvisDomain="fastestJarvisDomain",ue.TraceId="traceId",ue.RequestId="requestId",ue.PanelType="panelType",ue.BeforeEventDuration="beforeEventDuration",ue.PresentDuration="presentDuration",ue.PushMessageType="pushMessageType",ue.AccountLinkingProvider="accountLinkingProvider",ue.HasFilters="hasFilters",ue.HasSearchQuery="hasSearchQuery",ue.IsFirstPage="isFirstPage",ue.ErrorMessage="errorMessage",ue.ErrorStack="errorStack",ue.DevMode="devMode",ue.PanelName="panelName",ue.SectionId="sectionId",ue.SectionTitle="sectionTitle",ue.LoginMethod="loginMethod",ue.LoginResult="loginResult",ue.LoginErrorCode="loginErrorCode",ue.LoginErrorUrl="loginErrorUrl",ue.LoginIdpId="loginIdpId",ue.GameFound="gameFound",ue}(A||{}),g=function(ue){return ue.DelegateToken="GetDelegateToken",ue.ClientGetLayout="ClientGetLayout",ue.FetchLayout="LayoutManagerGetLayout",ue.GetServerInfo="GetServerInfo",ue.GetSpecificServerInfo="GetSpecificServerInfo",ue.ClientGetAppMetadata="ClientGetAppMetadata",ue.ClientGetAppsList="ClientGetAppsList",ue.FetchAppsList="LayoutManagerGetAppsList",ue.FetchAppMetadata="LayoutManagerGetAppMetadata",ue.FetchSubscriptions="FetchSubscriptions",ue.GetEntitlementStatus="GetEntitlementStatus",ue.GameLaunch="GameLaunch",ue.ClientGetSubscriptions="ClientGetSubscriptions",ue.GetActiveSessions="GetActiveSessions",ue.GetSessionInfo="GetSessionInfo",ue.StartStreaming="StartStreaming",ue.GetUserEntitlements="GetUserEntitlements",ue.UpdateCheck="UpdateCheck",ue.PreStreaming="PreStreaming",ue.StreamerAuthentication="StreamerAuthentication",ue.StreamerAuthorization="StreamerAuthorization",ue.StreamerNetworktest="StreamerNetworkTest",ue.SessionLoading="SessionLoading",ue.GetRatingsInfo="GetRatingsInfo",ue.GxTargetGetFeature="GxTargetGetFeature",ue.GetFastestDomain="GetFastestDomain",ue.JarvisPing="JarvisPing",ue.JarvisOAuth="JarvisOAuth",ue.StarfleetOAuth="StarfleetOAuth",ue.LcarsFetchQueryData="LcarsFetchQueryData",ue.LcarsPostQueryData="LcarsPostQueryData",ue.ClientGetSurvey="ClientGetSurvey",ue.ClientDismissSurvey="ClientDismissSurvey",ue.PlatformSelection="PlatformSelection",ue.PlatformSelectionSharedStorageRead="PlatformSelectionSharedStorageRead",ue.PlatformSelectionDialogInteraction="PlatformSelectionDialogInteraction",ue.AccountLinking="AccountLinking",ue.AccountLinkingDialogInteraction="AccountLinkingDialogInteraction",ue.AlsGetLoginUrl="AlsGetLoginUrl",ue.AlsPostLoginUrl="AlsPostLoginUrl",ue.AlsPostToken="AlsPostToken",ue.AlsSync="AlsSync",ue.AlsDeleteLinking="AlsDeleteLinking",ue.AlsUserLogin="AlsUserLogin",ue.AlsTokenExchange="AlsTokenExchange",ue.AlsUIConnect="AlsUIConnect",ue.AlsUIDisconnect="AlsUIDisconnect",ue.AlsUIReconnect="AlsUIReconnect",ue.AlsUIResync="AlsUIResync",ue.GetAemReleaseHighlights="GetAemReleaseHighlights",ue.GetGfwslInformation="GetGfwslInformation",ue.StarfleetDeleteClientToken="StarfleetDeleteClientToken",ue.StarfleetGetClientToken="StarfleetGetClientToken",ue.StarfleetGetAccessToken="StarfleetGetAccessToken",ue.StarfleetGetUserInfo="StarfleetGetUserInfo",ue.SendTelemetryEvent="SendTelemetryEvent",ue.ClientSettings="ClientSettings",ue.ScheduledMaintenance="ScheduledMaintenance",ue.ScheduledMaintenanceSessionEndError="ScheduledMaintenanceSessionEndError",ue.ClientGetCloudVariable="ClientGetCloudVariable",ue.ClientStreamingQuality="ClientStreamingQuality",ue.PushNotificationRegistration="PushNotificationRegistration",ue.KVStoreGetClientData="KVStoreGetClientData",ue.KVStoreSetClientData="KVStoreSetClientData",ue.KVStoreDeleteClientData="KVStoreDeleteClientData",ue.KVStoreAppendClientData="KVStoreAppendClientData",ue.ClientGetPanel="ClientGetPanel",ue.ClientDesktopPaste="ClientDesktopPaste",ue.ClientClipboardAvailable="ClientClipboardAvailable",ue.BackgroundNetworkTest="BackgroundNetworkTest",ue.GetRemoteConfigV2="GetRemoteConfigV2",ue.PushMessageReceived="PushMessageReceived",ue.PnsRegistration="PnsRegistration",ue.PnsUnregister="PnsUnregister",ue.UserAccountData="UserAccountData",ue.SessionLengthWarning="SessionLengthWarning",ue.VrsGetRewards="VrsGetRewards",ue.UpsellMessages="UpsellMessages",ue.CampaignsInfo="CampaignsInfo",ue.SearchFilterGames="SearchFilterGames",ue.UasAcquireUser="UasAcquireUser",ue.AdToken="AdToken",ue.AdSession="AdSession",ue.AdOpportunity="AdFetch",ue.AdStart="AdStart",ue.FilterGroupSortOrderDefinitions="FilterGroupSortOrderDefinitions",ue.GetLoginWallData="GetLoginWallData",ue.GetLoginWallStringsOnly="GetLoginWallStringsOnly",ue.AddFavoriteApp="AddFavoriteApp",ue.RemoveFavoriteApp="RemoveFavoriteApp",ue.AddOwnedVariant="AddOwnedVariant",ue.RemoveOwnedVariant="RemoveOwnedVariant",ue.SelectOwnedVariant="SelectOwnedVariant",ue.GetUdsSummonedReport="GetUdsSummonedReport",ue.GetUdsEndOfSessionReport="GetUdsEndOfSessionReport",ue.OverallGfnSupportedLanguages="OverallGfnSupportedLanguages",ue.GFNUIException="GFNUIException",ue.GFNUIExceptionRenderDirective="GFNUIExceptionRenderDirective",ue.OffDeviceLogin="OffDeviceLogin",ue.LoginAttempt="LoginAttempt",ue.UpdateLoginHint="UpdateLoginHint",ue.LoginHintGetSsoInfo="LoginHintGetSsoInfo",ue.LoginWallProviderInfo="LoginWallProviderInfo",ue.LoginWallDataFetch="LoginWallDataFetch",ue.LoginWallDeeplink="LoginWallDeeplink",ue.LoginWallRedirect="LoginWallRedirect",ue}(g||{}),m=function(ue){return ue.XmlHttpRequest="XMLHttpRequest",ue}(m||{}),l=function(ue){return ue.Pc_A7="pc-a7",ue.Native_Windows="native-windows",ue}(l||{}),r=function(ue){return ue.Client="client",ue}(r||{}),u=function(ue){return ue.VpcId="ERROR_WHILE_GETTING_VPCID",ue.UpdateSsoLoginInfoEntryError="UPDATE_SSO_LOGIN_INFO_ENTRY_ERROR",ue.GetSsoLoginInfoError="GET_SSO_LOGIN_INFO_ERROR",ue}(u||{}),E=s(61142),T=s(36466),R=s(43848),B=s(65726),U=s(75707),Y=s(5798),ae=s(70521),G=s(92602),k=s(77855),X=s(44748),q=s(23403),Q=s(23413),ce=s(35475),te=s(92414),Ee=s(33784),it=s(84877),Fe=s(14525),Qe=s(90775),Ge=s(70440),nt=s(83594),Je=s(65706);class ze extends nt.Q{constructor(et,se){super(et),this._isTracingDisabledReplaySubject=se}export(et,se){this._isTracingDisabledReplaySubject.asObservable().pipe((0,Je.s)(1)).subscribe(Ce=>{Ce||super.export(et,se)})}}var Ke=s(19392),Ve=s(83915);let $e=(()=>{class ue{constructor(se){this.loggingService=se,this.initializationMap=new Map,this.logger=this.loggingService.getLogger("OTELTracerService")}initialize(se,Ce){if(this.initializationMap.get(se.exportConfig.componentName))return;const rt={resource:new q.F({[Q._2.SERVICE_NAME]:se.exportConfig.componentName})};this.provider=new k.Z(rt);const me=new Qe.lm;ce.$.setGlobalPropagator(me);const le=new Fe.T;le.enable(),this.provider.register({propagator:me,contextManager:le}),this.exporter=new ze({headers:{"Lightstep-Access-Token":se.exportConfig.accessToken},url:se.exportConfig.collectorUrl},Ce),(0,Ge.u)(Ne=>{console.error("Error while tracing",Ne)}),this.batchSpanProcessor=new X.J(this.exporter,{disableAutoFlushOnDocumentHide:!0}),this.provider.addSpanProcessor(this.batchSpanProcessor),this.initializationMap.set(se.exportConfig.componentName,!0)}getSpanContextInfo(se){if(!this.tracer)return null;const Ce={},be=te.u.setSpanContext(Ee._.active(),se.spanContext());return ce.$.inject(be,Ce,it.U),Ce}getTraceInjectWrapper(){return this.getSpanContextInfo.bind(this)}createSpanUsingContextInfo(se,Ce){if(!this.tracer)return null;const be=ce.$.extract(Ee._.active(),Ce),rt=this.tracer.startSpan(se,{},be);return this.getSpanContextInfo(rt),rt}getCreateSpanUsingContextWrapper(){return this.createSpanUsingContextInfo.bind(this)}commitAnyPendingSpans(){return(0,Ke.H)(this.batchSpanProcessor.forceFlush()).pipe((0,Je.s)(1),(0,Ve.T)(()=>(this.logger.info("Spans flushed successfully:"),!0)),(0,S.W)(se=>(this.logger.error("Failed to flush spans:",se),(0,R.of)(!1))))}createSpan(se,Ce){if(!this.tracer)return this.logger.error("Open telemetry tracer not initialized yet, returning null for span name",se),null;if(!Ce)return this.tracer.startSpan(se);const be=te.u.setSpan(Ee._.active(),Ce);return this.tracer.startSpan(se,{},be)}getOTELTracer(se,Ce){return this.initialize(se,Ce),this.tracer=this.provider.getTracer(),this.tracer}extractContext(se,Ce,be){const rt=Ce||Ee._.active();return ce.$.extract(rt,se,be)}runWithContext(se,Ce,be,...rt){return Ee._.with(se,Ce,be,...rt)}static{this.\u0275fac=function(Ce){return new(Ce||ue)(i.KVO(G.J6))}}static{this.\u0275prov=i.jDH({token:ue,factory:ue.\u0275fac,providedIn:"root"})}}return ue})();const dt={[XMLHttpRequest.UNSENT]:"unsent",[XMLHttpRequest.OPENED]:"opened",[XMLHttpRequest.HEADERS_RECEIVED]:"headers received",[XMLHttpRequest.LOADING]:"loading",[XMLHttpRequest.DONE]:"done"},Pe=(ue,et)=>{ue.setAttributes({[A.HttpStatusCode]:et,[A.HttpStatusCodeFamily]:et.toString().replace(/[0-9]{2}$/,"XX"),[A.Error]:et<=0||et>=400})};let J=(()=>{class ue extends E.N0{constructor(se,Ce,be){super(),this.statusCodeZeroAnalyzerFactoryService=se,this.serviceWorkerService=Ce,this.otelTracerService=be,this.globalSpanTags={},this.tracer=null,this.tracingEnabledURLRegex=[],this.tracingEnabledUrls=new Map,this.pendingNetworkResponseSpanMap=new Map,this.createSpanUsingContext=this.otelTracerService.getCreateSpanUsingContextWrapper(),this.traceInjectWrapper=this.otelTracerService.getTraceInjectWrapper()}initialize(se,Ce,be,rt){this.tracer=se,this.setTracingEnabledURLRegex(Ce.urlRegex),this.setStatusCodeZeroAnalyzerConfig(be),this.serviceWorkerService.networkResponseReceived.subscribe(me=>{this.removeFromSWPendingRequests(me)},T.l),rt.asObservable().subscribe(me=>{this.globalSpanTags=me},me=>{this.globalSpanTags={}})}addToSWPendingRequests(se,Ce){this.pendingNetworkResponseSpanMap.set(se,Ce)}removeFromSWPendingRequests(se){if(this.pendingNetworkResponseSpanMap.has(se.requestId)){const Ce=this.pendingNetworkResponseSpanMap.get(se.requestId);this.pendingNetworkResponseSpanMap.delete(se.requestId),0===se.responseStatusCode?this.statusCodeZeroAnalyzer.getFailureCode({requestUrl:se.requestUrl,uniqueRequestId:se.requestId,isCancelled:!1}).subscribe(be=>{Pe(Ce,be.statusCode),Ce.end(se.responseReceivedTimeMs)},T.l):(Pe(Ce,se.responseStatusCode),Ce.end(se.responseReceivedTimeMs))}}build(){const se=new XMLHttpRequest;return(0,P.isNil)(this.tracer)||(se.requestHeaders={},se.commonSpanTags=this.globalSpanTags,se.tracer=this.tracer,se.open=this.wrapOpen(se),se.send=this.wrapSend(se),se.setRequestHeader=this.wrapSetRequestHeader(se),se.constructSpanTags=this.getConstructSpanTags(),se.injectCarrierHeaders=this.getInjectCarrierHeaders(),se.getOperationName=this.getOperationName(),se.createSpanUsingContext=this.createSpanUsingContextWrapper(),se.getResponseHeaders=this.getResponseHeaders(),se.analyzeStatusCodeZero=this.analyzeStatusCodeZero(),se.addEventListener("readystatechange",this.getOnReadyStateChangedListener()),se.addEventListener("abort",this.handleAbort())),se}handleAbort(){return function(){this.isRequestAborted=!0}}setTracingEnabledURLRegex(se){this.tracingEnabledURLRegex=se.map(Ce=>new RegExp(Ce,"g"))}setStatusCodeZeroAnalyzerConfig(se){this.statusCodeZeroAnalyzer&&(this.statusCodeZeroAnalyzer=null),this.statusCodeZeroAnalyzer=this.statusCodeZeroAnalyzerFactoryService.createAnalyzer(se)}matchURLAgainstEnabledList(se){if(!this.tracingEnabledUrls.has(se)){const Ce=this.tracingEnabledURLRegex.findIndex(be=>{const rt=se.match(be);return!(0,P.isNil)(rt)&&1===rt.length});this.tracingEnabledUrls.set(se,-1!==Ce)}return this.tracingEnabledUrls.get(se)}isURLEnabledForTracing(se){return!(0,P.isNil)(se)&&this.matchURLAgainstEnabledList(se.toString())}getResponseHeaders(){return function(){const be=this.getAllResponseHeaders().replace(/\s+$/,"").split(/\n/);for(let rt=0;rt<be.length;rt++)be[rt]=be[rt].replace(/\r/g,"").trim();return be}}getOperationName(){return function(){return this.method+" "+this.urlInfo.hostname+this.urlInfo.pathname}}createSpanUsingContextWrapper(){const se=this.createSpanUsingContext;return function(be){return se(be,this.requestHeaders)}}analyzeStatusCodeZero(){const se=this.statusCodeZeroAnalyzer.getFailureCode;return function(){return se({requestUrl:this.urlInfo.href,isCancelled:this.isRequestAborted,uniqueRequestId:this.uniqueRequestId||""})}}getOnReadyStateChangedListener(){return function(){const Ce=this.uniqueRequestId&&this.isHandledByServiceWorker?this.serviceWorkerSpan:this.span;(0,P.isNil)(Ce)||(this.readyState===XMLHttpRequest.UNSENT||this.readyState===XMLHttpRequest.OPENED?Ce.addEvent(dt[this.readyState]):this.readyState===XMLHttpRequest.HEADERS_RECEIVED?Ce.addEvent(dt[this.readyState],{method:this.method,url:this.urlInfo.href,responseHeaders:this.getResponseHeaders()}):this.readyState===XMLHttpRequest.LOADING?Ce.addEvent(dt[this.readyState]):this.readyState===XMLHttpRequest.DONE?(Ce.addEvent(dt[this.readyState],{method:this.method,url:this.urlInfo.href,statusText:this.statusText,responseType:this.responseType,responseHeaders:this.getResponseHeaders()}),0===this.status?(0,R.of)(!0).pipe((0,B.c)(100),(0,U.ZZ)(be=>this.analyzeStatusCodeZero(this.urlInfo.href))).subscribe(be=>{Ce.setAttributes({status:be.statusCode}),Pe(Ce,be.statusCode),Ce.end()}):(Ce.setAttributes({status:this.status}),Pe(Ce,this.status),Ce.end())):Ce.setAttributes({readyState:this.readyState}))}}getConstructSpanTags(){return function(){const Ce={[A.Component]:m.XmlHttpRequest,[A.HttpMethod]:this.method,[A.Type]:this.urlInfo.protocol.replace(":",""),[A.HttpHostname]:this.urlInfo.hostname,[A.HttpUrl]:this.urlInfo.pathname};return(0,P.extend)(Ce,this.commonSpanTags),Object.keys(this.requestHeaders).forEach(rt=>{Ce[A.HttpHeadersPrefix+rt]=this.requestHeaders[rt]}),this.urlInfo.searchParams.forEach((rt,me)=>{Ce[A.ParamsPrefix+me]=rt}),Ce}}getInjectCarrierHeaders(){const se=this.traceInjectWrapper;return function(){const be=se(this.span);Object.keys(be).forEach(me=>{Object.getPrototypeOf(this).setRequestHeader.call(this,me,be[me]),this.setRequestHeader(me,be[me])})}}wrapOpen(se){const Ce=se.open;return function(rt,me,le,Xe,Se){this.method=rt;try{this.urlInfo=new URL(me)}catch{this.urlInfo=null}Ce.apply(this,arguments)}}wrapSend(se){const Ce=se.send,be=this.isURLEnabledForTracing.bind(this),rt=this.serviceWorkerService.willGFNServiceWorkerHandleRequest.bind(this),me=this.addToSWPendingRequests.bind(this),le=this.omitOpentracingHeaders;return function(Se){(0,P.isNil)(this.urlInfo)||(this.span=this.createSpanUsingContext(this.getOperationName()),this.isHandledByServiceWorker=rt(this.urlInfo.href,this.bypassCacheHeaderValue),this.uniqueRequestId&&this.isHandledByServiceWorker&&(this.serviceWorkerSpan=this.createSpanUsingContext("SW "+this.getOperationName()),this.serviceWorkerSpan.setAttributes(this.constructSpanTags()),me(this.uniqueRequestId,this.span)),this.requestHeaders=le(this.requestHeaders),be(this.urlInfo)&&this.injectCarrierHeaders(),this.span.setAttributes(this.constructSpanTags()),this.span.addEvent("send")),Ce.apply(this,arguments)}}wrapSetRequestHeader(se){const Ce=se.setRequestHeader;return function(rt,me){"Authorization"===rt||"X_LOCAL_SECURITY_COOKIE"===rt||rt===ae.tD.SwCacheKeyAppendString||(this.requestHeaders[rt]=me,rt===Y.SA.xRequestId&&(this.uniqueRequestId=me),rt===ae.tD.SwCacheBypass&&(this.bypassCacheHeaderValue=me)),!rt.startsWith("ot-")&&!rt.startsWith("traceparent")&&Ce.apply(this,arguments)}}omitOpentracingHeaders(se){return(0,P.omitBy)(se,Ce=>!Ce.startsWith("ot-")&&!Ce.startsWith("traceparent"))}static{this.\u0275fac=function(Ce){return new(Ce||ue)(i.KVO(G.pZ),i.KVO(ae.lS),i.KVO($e))}}static{this.\u0275prov=i.jDH({token:ue,factory:ue.\u0275fac,providedIn:"root"})}}return ue})();const vt={provide:E.N0,useExisting:J};let ve=(()=>{class ue{constructor(se,Ce,be){this.openTelemetryService=se,this.loggingService=Ce,this.injector=be,this.logger=this.loggingService.getLogger("DistributedTracingUtilService")}setSpanAttribute(se,Ce,be){se?se.setAttribute(Ce,be):this.logger.error(`Unable to set attribute ${Ce} on null span`)}setSpanAttributes(se,Ce){se?se.setAttributes(Ce):this.logger.error(`Unable to set attributes ${Ce} on null span`)}initializeDistributedTracing(se,Ce,be,rt){this.disableOpenTracingSub=be,this.tracer=this.openTelemetryService.getOTELTracer(se,be),rt.subscribe(me=>{this.commonTags=me},me=>{this.logger.error("Error while setting global tags. No global tags will be used",me),this.commonTags={}}),this.distributedTracingXhrFactoryService=this.injector.get(J),this.distributedTracingXhrFactoryService.initialize(this.tracer,se.apiTracingConfig,Ce,rt)}commitAnyPendingSpans(){return this.openTelemetryService.commitAnyPendingSpans()}isTracingDisabled(){return this.disableOpenTracingSub}getFormattedUrlForHttpPopupSpan(se,Ce){if(Ce&&this.tracer){const be={};this.injectSpanHttpHeaders(Ce,be);const rt=new URL(se),me=JSON.stringify((0,P.extend)({},be)),le=rt.searchParams.toString();se=`${rt.origin}${rt.pathname}?tracer=${(0,x.KA)(me,!0,!0)}`,le.length&&(se=`${se}&${le}`)}return se}startSpan(se,Ce){return this.openTelemetryService.createSpan(se,Ce)}startSpanUsingContext(se,Ce){return this.openTelemetryService.createSpanUsingContextInfo(se,Ce)}extractContextFromSpan(se){return this.openTelemetryService.getSpanContextInfo(se)}injectSpanHttpHeaders(se,Ce){const be=this.openTelemetryService.getSpanContextInfo(se),rt=Object.keys(be);for(const me of rt)Ce[me]=be[me]}handleHttpError(se,Ce){this.setSpanAttribute(se,A.Error,!0),this.setSpanAttribute(se,A.HttpStatusCode,Ce&&Ce.status||0)}handleHttpPopupError(se,Ce){this.setSpanAttribute(se,A.Error,!0),this.setSpanAttribute(se,A.HttpStatusCode,Ce.errorCode),this.setSpanAttribute(se,A.HttpErrorText,Ce.errorText),this.setSpanAttribute(se,A.HttpUrl,Ce.failedUrl)}handleHttpSuccess(se,Ce){this.setSpanAttribute(se,A.Error,!1),Ce&&this.setSpanAttribute(se,A.HttpUrl,Ce)}handleHttpEndpointSpan(se,Ce,be,rt,me){const le=Ce.headers?Ce.headers:{},Xe=this.startSpan(be,rt);if(Xe){const fe={...Ce.params,...me};return this.setSpanAttributes(Xe,fe),this.injectSpanHttpHeaders(Xe,le),se.pipe((0,C.M)(()=>this.handleHttpSuccess(Xe)),(0,S.W)(Ne=>(this.handleHttpError(Xe,Ne),(0,h.$)(Ne))),(0,M.j)(()=>this.closeSpan(Xe)))}return se}closeSpan(se){se&&(this.setSpanAttributes(se,this.commonTags),se.end())}closeHttpPopupSpan(se,Ce,be){se&&(this.setSpanAttributes(se,this.commonTags),Ce?this.handleHttpPopupError(se,be):this.handleHttpSuccess(se,be.failedUrl),se.end())}sendOpenTracingSpanTags(se,Ce,be){const rt=this.startSpan(se,be);Ce?.forEach((me,le)=>{this.setSpanAttribute(rt,le,me)}),this.closeSpan(rt)}runWithinSpanContext(se,Ce,be,...rt){const me=this.openTelemetryService.extractContext(se);return this.openTelemetryService.runWithContext(me,Ce,be,...rt)}static{this.\u0275fac=function(Ce){return new(Ce||ue)(i.KVO($e),i.KVO(G.J6),i.KVO(i.zZn))}}static{this.\u0275prov=i.jDH({token:ue,factory:ue.\u0275fac,providedIn:"root"})}}return ue})()},40859:(St,z,s)=>{"use strict";s.d(z,{u$:()=>E,Wj:()=>R,sT:()=>h,tg:()=>T,yN:()=>l});var i=s(94485),n=s(58527);let h=(()=>{class B{static{this.\u0275fac=function(ae){return new(ae||B)}}static{this.\u0275prov=n.jDH({token:B,factory:B.\u0275fac})}}return B})();var C=s(26537),S=s(47973),M=s(51006),P=s(96542),x=s(3457);let A=(()=>{class B{constructor(Y,ae){this.dialogRef=Y,this.data=ae,this.content=ae.content}static{this.\u0275fac=function(ae){return new(ae||B)(n.rXU(C.CP),n.rXU(C.Vh))}}static{this.\u0275cmp=n.VBU({type:B,selectors:[["ng-component"]],standalone:!0,features:[n.aNF],decls:7,vars:3,consts:[["mat-dialog-title","",1,"font-header4"],["mat-dialog-content",""],[1,"exception-content",3,"innerHTML"],["mat-dialog-actions","","fxLayoutAlign","end end","fxLayout","row"],["mat-button","",1,"font-button1",3,"mat-dialog-close"]],template:function(ae,G){1&ae&&(n.j41(0,"h1",0),n.EFF(1),n.k0s(),n.j41(2,"div",1),n.nrm(3,"div",2),n.k0s(),n.j41(4,"div",3)(5,"button",4),n.EFF(6," Close "),n.k0s()()),2&ae&&(n.R7$(),n.JRh(G.data.title),n.R7$(2),n.Y8G("innerHTML",G.content,n.npT),n.R7$(2),n.Y8G("mat-dialog-close",!0))},dependencies:[C.hM,C.tx,C.BI,C.Yi,C.E7,M.YF,x.DJ,x.sA,S.wG,S.iV,P.h],styles:[".exception-content[_ngcontent-%COMP%]{-webkit-user-select:text;user-select:text;background-color:var(--primary-800);padding:10px;overflow-wrap:anywhere}"]})}}return B})();const g_Sanitize=/(\w+:|[\\/]).*[\\/]/gi,g_Indentation=/ at /g,g_Class=/([^]+)/g;class l{constructor(U,Y){this.err=Y,this.errorMessage=U,this.metadata={}}get error(){return this.err}toString(){return this.errorMessage+":"+JSON.stringify(this.err)}addMetadata(U,Y){this.metadata[U]=Y}getMetaData(){return this.metadata}}var r=s(99021),u=s(78812),v=s(92602);const E={exceptionTimeLimiter:6e4,clientName:"unknown",isExceptionEnabled:!0,devMode:!1};let T=(()=>{class B{constructor(Y,ae,G){this.logger=Y,this.injector=ae,this.dialog=G}handleError(Y){let ae=!1;this.logger.info("UnHandled Exception was caught",Y);const G=this.injector.get(h);if(G&&(this.isEnabled=G.isExceptionEnabled,this.devMode=G.devMode),!this.isEnabled||(Y?.rawResponse instanceof i.yz?(this.logger.error("There was an HTTP error. Skipping exception event"),ae=!0):Y instanceof r.M?(this.logger.error("Timeout error occured. Skipping exception event"),ae=!0):Y instanceof TypeError?this.logger.error("Type error occured. Sending exception telemetry"):Y instanceof Error?this.logger.error("Error occured. Sending exception telemetry"):(this.logger.error("Unknown error or cef query failure. Skipping exception event"),ae=!0),ae&&!this.devMode))return;const k={name:Y.name,message:Y.message,stackFrame:null,exceptionString:null};Y.stack=Y.stack?.replace(g_Sanitize,""),k.stackFrame=Y.stack??u.oX.Undefined;const X=JSON.stringify(k);this.logger.error("Exception stack trace ",X),this.devMode&&this.dialog.open(A,{autoFocus:!1,disableClose:!0,panelClass:"nv-overlay-panel",data:{title:"Unhandled Exception",content:Y.stack?this.formatExceptionStack(Y.stack):X}}),ae||(k.exceptionString=k.stackFrame,this.handleClientSideException(k,G))}formatExceptionStack(Y){return Y.replace(g_Indentation,"<br> at ").replace(g_Class,"<span>$1</span>")}static{this.\u0275fac=function(ae){return new(ae||B)(n.KVO(v.Vy),n.KVO(n.zZn),n.KVO(C.bZ))}}static{this.\u0275prov=n.jDH({token:B,factory:B.\u0275fac})}}return B})(),R=(()=>{class B{static{this.\u0275fac=function(ae){return new(ae||B)}}static{this.\u0275mod=n.$C({type:B})}static{this.\u0275inj=n.G2t({imports:[A]})}}return B})()},51040:(St,z,s)=>{"use strict";s.d(z,{dt:()=>i,bi:()=>U,Oz:()=>me,GJ:()=>h});var i=function(le){return le[le.A=0]="A",le[le.B=1]="B",le[le.X=2]="X",le[le.Y=3]="Y",le[le.LeftBumper=4]="LeftBumper",le[le.RightBumper=5]="RightBumper",le[le.LeftTrigger=6]="LeftTrigger",le[le.RightTrigger=7]="RightTrigger",le[le.Back=8]="Back",le[le.Start=9]="Start",le[le.LeftStick=10]="LeftStick",le[le.RightStick=11]="RightStick",le[le.DpadUp=12]="DpadUp",le[le.DpadDown=13]="DpadDown",le[le.DpadLeft=14]="DpadLeft",le[le.DpadRight=15]="DpadRight",le[le.Center=16]="Center",le}(i||{}),n=s(58527);let h=(()=>{class le{static{this.\u0275fac=function(fe){return new(fe||le)}}static{this.\u0275prov=n.jDH({token:le,factory:le.\u0275fac})}}return le})();var C=s(31315),S=s(12532),M=s(16229),P=s(3496),x=s(80583),A=s(26513),g=s(83915),m=s(34593),l=s(8619),r=s(53461),u=s(72147),v=s(10174),E=s(75707),T=s(43848);function R(le){return(0,u.n)(Xe=>Xe?(0,P.O)(0,le).pipe((0,v.u)(!0)):(0,T.of)(!1))}var B=s(20924);class U{}var Y=function(le){return le.Left="left",le.Right="right",le.Up="up",le.Down="down",le}(Y||{}),ae=function(le){return le.Vertical="vertical",le.Horizontal="horizontal",le}(ae||{}),G=function(le){return le[le.Left=0]="Left",le[le.Right=1]="Right",le}(G||{});const X=32767,q=-32768,Q={[Y.Down]:ae.Vertical,[Y.Up]:ae.Vertical,[Y.Left]:ae.Horizontal,[Y.Right]:ae.Horizontal};var ce=function(le){return le[le.NVST_GC_NONE=0]="NVST_GC_NONE",le[le.NVST_GC_BTN_START=1]="NVST_GC_BTN_START",le[le.NVST_GC_BTN_SELECT=2]="NVST_GC_BTN_SELECT",le[le.NVST_GC_BTN_MODE=3]="NVST_GC_BTN_MODE",le[le.NVST_GC_BTN_X=4]="NVST_GC_BTN_X",le[le.NVST_GC_BTN_Y=5]="NVST_GC_BTN_Y",le[le.NVST_GC_BTN_Z=6]="NVST_GC_BTN_Z",le[le.NVST_GC_BTN_A=7]="NVST_GC_BTN_A",le[le.NVST_GC_BTN_B=8]="NVST_GC_BTN_B",le[le.NVST_GC_BTN_C=9]="NVST_GC_BTN_C",le[le.NVST_GC_BTN_THUMBL=10]="NVST_GC_BTN_THUMBL",le[le.NVST_GC_BTN_THUMBR=11]="NVST_GC_BTN_THUMBR",le[le.NVST_GC_BTN_L1=12]="NVST_GC_BTN_L1",le[le.NVST_GC_BTN_R1=13]="NVST_GC_BTN_R1",le[le.NVST_GC_AXIS_DPAD_X=14]="NVST_GC_AXIS_DPAD_X",le[le.NVST_GC_AXIS_DPAD_Y=15]="NVST_GC_AXIS_DPAD_Y",le[le.NVST_GC_AXIS_LSTICK_X=16]="NVST_GC_AXIS_LSTICK_X",le[le.NVST_GC_AXIS_LSTICK_Y=17]="NVST_GC_AXIS_LSTICK_Y",le[le.NVST_GC_AXIS_RSTICK_X=18]="NVST_GC_AXIS_RSTICK_X",le[le.NVST_GC_AXIS_RSTICK_Y=19]="NVST_GC_AXIS_RSTICK_Y",le[le.NVST_GC_TRIGGER_LEFT=20]="NVST_GC_TRIGGER_LEFT",le[le.NVST_GC_TRIGGER_RIGHT=21]="NVST_GC_TRIGGER_RIGHT",le[le.NVST_GC_BTN_TOUCHPAD=22]="NVST_GC_BTN_TOUCHPAD",le[le.NVST_GC_AXIS_TOUCHPAD1_X=23]="NVST_GC_AXIS_TOUCHPAD1_X",le[le.NVST_GC_AXIS_TOUCHPAD1_Y=24]="NVST_GC_AXIS_TOUCHPAD1_Y",le[le.NVST_GC_AXIS_TOUCHPAD2_X=25]="NVST_GC_AXIS_TOUCHPAD2_X",le[le.NVST_GC_AXIS_TOUCHPAD2_Y=26]="NVST_GC_AXIS_TOUCHPAD2_Y",le[le.NVST_GC_NUM_CONTROLS=27]="NVST_GC_NUM_CONTROLS",le}(ce||{});const te={[ce.NVST_GC_BTN_START]:i.Start,[ce.NVST_GC_BTN_SELECT]:i.Back,[ce.NVST_GC_BTN_MODE]:i.Center,[ce.NVST_GC_BTN_X]:i.X,[ce.NVST_GC_BTN_Y]:i.Y,[ce.NVST_GC_BTN_A]:i.A,[ce.NVST_GC_BTN_B]:i.B,[ce.NVST_GC_BTN_THUMBL]:i.LeftStick,[ce.NVST_GC_BTN_THUMBR]:i.RightStick,[ce.NVST_GC_BTN_L1]:i.LeftBumper,[ce.NVST_GC_BTN_R1]:i.RightBumper,[ce.NVST_GC_TRIGGER_LEFT]:i.LeftTrigger,[ce.NVST_GC_TRIGGER_RIGHT]:i.RightTrigger};class Ee extends U{get isGamepadConnected$(){return this.connectedGamepadsInfoSubject.asObservable().pipe((0,g.T)(Xe=>Xe.length>0))}get isAnyGamepadInUse$(){const Xe=this.buttonPressedSubject.asObservable().pipe((0,g.T)(ye=>ye.isPressed),(0,m.Z)(!1)),Se=this.joystickMovementSubject.asObservable().pipe((0,l.p)(ye=>ye.position===G.Right),(0,g.T)(ye=>ye.value>this.gamepadConfig.joystickMovementThreshold*X||ye.value<this.gamepadConfig.joystickMovementThreshold*q),(0,m.Z)(!1)),fe=this.joystickMovementSubject.asObservable().pipe((0,l.p)(ye=>ye.position===G.Left),(0,g.T)(ye=>ye.value>this.gamepadConfig.joystickMovementThreshold*X||ye.value<this.gamepadConfig.joystickMovementThreshold*q),(0,m.Z)(!1));return(0,C.zV)([Se,fe,Xe]).pipe((0,g.T)(([ye,Ot,sn])=>ye||Ot||sn),(0,r.F)())}getObservableForDirection(Xe){let Se;switch(Xe){case Y.Down:Se=i.DpadDown;break;case Y.Left:Se=i.DpadLeft;break;case Y.Right:Se=i.DpadRight;break;case Y.Up:Se=i.DpadUp}return this.isGamepadConnected$.pipe((0,u.n)(fe=>fe?(0,M.h)(this.buttonPressedSubject.asObservable().pipe((0,l.p)(Ne=>Ne.name===Se),(0,g.T)(Ne=>Ne.isPressed)),this.getLeftJoystickMovementObservable(Xe)).pipe((0,r.F)(),R(this.gamepadConfig.continuousNavigationInterval)):S.w))}get leftPressed$(){return this.getObservableForDirection(Y.Left)}get rightPressed$(){return this.getObservableForDirection(Y.Right)}get upPressed$(){return this.getObservableForDirection(Y.Up)}get downPressed$(){return this.getObservableForDirection(Y.Down)}get rightStickMoved$(){return this.joystickMovementSubject.asObservable().pipe((0,l.p)(Xe=>Xe.position===G.Right),(0,g.T)(Xe=>Xe.value>this.gamepadConfig.joystickMovementThreshold*X||Xe.value<this.gamepadConfig.joystickMovementThreshold*q),(0,r.F)())}onButtonPressed$(Xe,Se){return this.buttonPressedSubject.asObservable().pipe((0,l.p)(fe=>fe.name===Xe),(0,g.T)(fe=>fe.isPressed))}onButtonLongPressed$(Xe,Se){return this.buttonPressedSubject.asObservable().pipe((0,l.p)(fe=>fe.name===Xe),(0,u.n)(fe=>fe.isPressed?(0,P.O)(Se??this.gamepadConfig.longPressDuration).pipe((0,v.u)(!0)):S.w))}onButtonComboPressed$(Xe){const Se=Xe.map(fe=>this.buttonPressedSubject.asObservable().pipe((0,l.p)(Ne=>Ne.name===fe),(0,g.T)(Ne=>Ne.isPressed),(0,m.Z)(!1)));return(0,C.zV)(Se).pipe((0,g.T)(fe=>!fe.some(ye=>!1===ye)))}hasMovedMoreThanThreshold(Xe,Se){switch(Se){case Y.Down:case Y.Right:return Xe>this.gamepadConfig.joystickMovementThreshold*X;case Y.Up:case Y.Left:return Xe<this.gamepadConfig.joystickMovementThreshold*q}}hasMovedMoreThanPreviousValue(Xe,Se,fe){switch(Xe){case Y.Down:case Y.Right:return Se>fe;case Y.Left:case Y.Up:return Se<fe}}getLeftJoystickMovementObservable(Xe){const Se=Q[Xe];let fe,Ne=!0;return this.joystickMovementSubject.asObservable().pipe((0,l.p)(ye=>ye.position===G.Left&&ye.axis===Se),(0,g.T)(ye=>{let Ot=!1;if(void 0===fe){if(Ot=this.hasMovedMoreThanThreshold(ye.value,Xe),Ot){if(!Ne)return!1;fe=ye.value}return Ot}return this.hasMovedMoreThanPreviousValue(Xe,ye.value,fe)?(fe=ye.value,!0):(fe=void 0,Ne=!1,setTimeout(()=>{Ne=!0},this.gamepadConfig.cooloffDuration),!1)}))}handleGamepadEvent(Xe){const Se=te[Xe.control];if(void 0===Se)switch(Xe.control){case ce.NVST_GC_AXIS_DPAD_X:Xe.value===q?this.buttonPressedSubject.next({name:i.DpadLeft,isPressed:!0}):Xe.value===X?this.buttonPressedSubject.next({name:i.DpadRight,isPressed:!0}):0===Xe.value&&(this.buttonPressedSubject.next({name:i.DpadLeft,isPressed:!1}),this.buttonPressedSubject.next({name:i.DpadRight,isPressed:!1}));break;case ce.NVST_GC_AXIS_DPAD_Y:Xe.value===q?this.buttonPressedSubject.next({name:i.DpadUp,isPressed:!0}):Xe.value===X?this.buttonPressedSubject.next({name:i.DpadDown,isPressed:!0}):0===Xe.value&&(this.buttonPressedSubject.next({name:i.DpadDown,isPressed:!1}),this.buttonPressedSubject.next({name:i.DpadUp,isPressed:!1}));break;case ce.NVST_GC_AXIS_LSTICK_X:this.joystickMovementSubject.next({value:Xe.value,axis:ae.Horizontal,position:G.Left});break;case ce.NVST_GC_AXIS_LSTICK_Y:this.joystickMovementSubject.next({value:Xe.value,axis:ae.Vertical,position:G.Left});break;case ce.NVST_GC_AXIS_RSTICK_X:this.joystickMovementSubject.next({value:Xe.value,axis:ae.Horizontal,position:G.Right});break;case ce.NVST_GC_AXIS_RSTICK_Y:this.joystickMovementSubject.next({value:Xe.value,axis:ae.Vertical,position:G.Right});break;default:this.logger.warn(`No handling for gamepad event ${Xe.control}, ignoring`)}else this.buttonPressedSubject.next({name:Se,isPressed:1===Xe.value||-1===Xe.value})}constructor(Xe,Se,fe,Ne){super(),this.bridgeService=Se,this.gamepadConfig=fe,this.ngZone=Ne,this.buttonPressedSubject=new x.B7,this.joystickMovementSubject=new x.B7,this.connectedGamepadsInfoSubject=new A.t([]),this.logger=Xe.getLogger("GeronimoEventGamepadService"),this.ngZone.runOutsideAngular(()=>{this.bridgeService.executeCommand(B.Ts.Gfn.Streaming.RegisterGamepadChangedCallback).pipe((0,m.Z)(0),(0,E.ZZ)(ye=>this.bridgeService.executeCommand(B.Ts.Gfn.Streaming.GetConnectedGamepads))).subscribe(ye=>{this.logger.info(`Connected gamepad info post gamepadChangeEvent: ${JSON.stringify(ye)}`),this.connectedGamepadsInfoSubject.next(ye.connectedGamepadInfoList)}),this.bridgeService.executeCommand(B.Ts.Gfn.Streaming.RegisterGamepadEventCallback,{minPositiveMovement:Math.floor(this.gamepadConfig.joystickTriggeredTolerance*X),maxNegativeMovement:Math.floor(this.gamepadConfig.joystickTriggeredTolerance*q)}).subscribe(ye=>{this.handleGamepadEvent(ye)})})}}var it=s(92602),Fe=s(27731),Qe=s(892),ct=s(36877),Ge=s(63997),nt=s(65726),Je=s(48765),ze=s(91384),Ke=s(55833),Ve=s(65770);class $e extends U{get isGamepadConnected$(){return this._isGamepadConnected$}get isAnyGamepadInUse$(){return this.ngZone.runOutsideAngular(()=>this.gamepadsTick$.pipe((0,g.T)(Xe=>Xe.some(Se=>this.isAnyAxisTriggeredOrButtonPressed(Se))),(0,r.F)()))}get leftPressed$(){return this.ngZone.runOutsideAngular(()=>this.gamepadsTick$.pipe((0,g.T)(Xe=>Xe.some(Se=>this.isAxisTriggeredOrButtonPressed(Se,fe=>fe[0]<-this.gamepadConfig.joystickMovementThreshold,i.DpadLeft))),(0,r.F)(),R(this.gamepadConfig.continuousNavigationInterval)))}get rightPressed$(){return this.ngZone.runOutsideAngular(()=>this.gamepadsTick$.pipe((0,g.T)(Xe=>Xe.some(Se=>this.isAxisTriggeredOrButtonPressed(Se,fe=>fe[0]>this.gamepadConfig.joystickMovementThreshold,i.DpadRight))),(0,r.F)(),R(this.gamepadConfig.continuousNavigationInterval)))}get upPressed$(){return this.ngZone.runOutsideAngular(()=>this.gamepadsTick$.pipe((0,g.T)(Xe=>Xe.some(Se=>this.isAxisTriggeredOrButtonPressed(Se,fe=>fe[1]<-this.gamepadConfig.joystickMovementThreshold,i.DpadUp))),(0,r.F)(),R(this.gamepadConfig.continuousNavigationInterval)))}get downPressed$(){return this.ngZone.runOutsideAngular(()=>this.gamepadsTick$.pipe((0,g.T)(Xe=>Xe.some(Se=>this.isAxisTriggeredOrButtonPressed(Se,fe=>fe[1]>this.gamepadConfig.joystickMovementThreshold,i.DpadDown))),(0,r.F)(),R(this.gamepadConfig.continuousNavigationInterval)))}get rightStickMoved$(){return this.ngZone.runOutsideAngular(()=>this.gamepadsTick$.pipe((0,g.T)(Xe=>Xe.some(Se=>this.isAxisTriggeredOrButtonPressed(Se,fe=>fe[2]>this.gamepadConfig.joystickTriggeredTolerance||fe[3]<-this.gamepadConfig.joystickTriggeredTolerance,i.RightStick))),(0,r.F)()))}onButtonPressed$(Xe,Se){return this.ngZone.runOutsideAngular(()=>this.getButtonPressed$(this.gamepadsTick$,Xe,Se))}onButtonLongPressed$(Xe,Se){return this.ngZone.runOutsideAngular(()=>this.getButtonPressed$(this.gamepadsTick$,Xe).pipe((0,u.n)(fe=>fe?(0,T.of)(!0).pipe((0,nt.c)(Se??this.gamepadConfig.longPressDuration)):Fe.t)))}onButtonComboPressed$(Xe){return this.ngZone.runOutsideAngular(()=>this.getButtonComboPressed$(this.gamepadsTick$,Xe))}constructor(Xe,Se,fe,Ne,ye){super(),this.ngZone=fe,this.browserSupportService=Ne,this.gamepadConfig=ye,this.pollForGamepadConnection=!!this.gamepadConfig?.pollForGamepadConnection,this.logger=Xe.getLogger("WebApiGamepadService");const dn=yn=>yn?.connected&&(!!it.zk.isAndroidPlatform()||(yn=>"standard"===yn?.mapping)(yn));fe.runOutsideAngular(()=>{let yn=this.pollForGamepadConnection;const At=yn?(0,Qe.Y)(1e3):Fe.t;this._isGamepadConnected$=(0,M.h)((0,ct.R)(window,"gamepadconnected"),(0,ct.R)(window,"gamepaddisconnected"),At.pipe((0,Je.v)(()=>yn))).pipe((0,m.Z)(0),(0,g.T)(Zt=>this.browserSupportService.getGamepads().some(dn)),(0,ze.M)(Zt=>{Zt&&this.pollForGamepadConnection&&(yn=!1)}),(0,r.F)(),(0,Ke.t)(1));const Vt=Se.leanModeTransitionState.pipe((0,m.Z)(this.gamepadConfig.gamepadTickPeriodDefault),(0,g.T)(Zt=>this.gamepadConfig.gamepadTickPeriodLean),(0,r.F)()),Qt=Ne.applicationWindowState$.pipe((0,g.T)(Zt=>"foreground"===Zt)),Jt=(0,M.h)((0,Ge.v)(()=>(0,T.of)(document.hasFocus())),(0,ct.R)(window,"focus").pipe((0,v.u)(!0)),(0,ct.R)(window,"blur").pipe((0,v.u)(!1)));this.gamepadsTick$=(0,C.zV)([this._isGamepadConnected$,Qt,Jt]).pipe((0,g.T)(([Zt,nn,Xt])=>(this.logger.info("connected=",Zt,", foreground=",nn,", windowFocused=",Xt),Zt&&nn&&Xt)),(0,r.F)(),(0,u.n)(Zt=>Zt?(this.logger.info("Start polling gamepad state"),Vt.pipe((0,ze.M)(nn=>{this.logger.info(`Polling gamepad state with period: ${nn} ms`)}),(0,u.n)(nn=>(0,Qe.Y)(nn)),(0,g.T)(nn=>Ne.getGamepads().filter(dn)))):(this.logger.info("Stop polling gamepad state"),(0,T.of)([]))),(0,Ve.u)())})}getButtonComboPressed$(Xe,Se){return Xe.pipe((0,g.T)(fe=>fe.some(Ne=>Se.every(ye=>this.isButtonPressed(Ne,ye)))),(0,r.F)())}getButtonPressed$(Xe,Se,fe){const Ne=!!fe?.repeat,ye=Xe.pipe((0,g.T)(Ot=>Ot.some(sn=>this.isButtonPressed(sn,Se,fe?.customButtonIndex))),(0,r.F)());return Ne?ye.pipe(R(this.gamepadConfig.continuousNavigationInterval)):ye}isButtonPressed(Xe,Se,fe){return Xe.buttons[fe??Se].pressed}isAxisTriggeredOrButtonPressed(Xe,Se,fe){return Se(Xe.axes)||this.isButtonPressed(Xe,fe)}isAnyAxisTriggeredOrButtonPressed(Xe){return Xe.buttons.some(Ne=>Ne.pressed)||(()=>Xe.axes.some(Ne=>Ne>this.gamepadConfig.joystickTriggeredTolerance||Ne<-this.gamepadConfig.joystickTriggeredTolerance))()}}class dt extends U{get isGamepadConnected$(){return S.w}get isAnyGamepadInUse$(){return S.w}get leftPressed$(){return S.w}get rightPressed$(){return S.w}get upPressed$(){return S.w}get downPressed$(){return S.w}get rightStickMoved$(){return S.w}onButtonPressed$(Xe,Se){return S.w}onButtonLongPressed$(Xe,Se){return S.w}onButtonComboPressed$(Xe){return S.w}}class Pe extends dt{constructor(Xe){super(),this.systemInfoService=Xe}get isGamepadConnected$(){return this.systemInfoService.getSystemInfo([it.Lu.HID]).pipe((0,g.T)(Se=>Se?.HID?.GamePad?.length>0))}}var J=s(19392),vt=function(le){return le.IGO="igo",le.Streaming="streaming",le.ClientIME="ime",le.PrivacyPolicy="privacy",le.QuitGath="quitGame",le.OscNotification="OscNotification",le}(vt||{}),ue=function(le){return le.Local="localhost",le.Stage="stage.nvidia.com",le.Partner="partner.nvidia.com",le}(ue||{});const et=new RegExp("/mall/index[.]html$|/mall/$|/index[.]html$|/$");var Ce=s(74150);let be=(()=>{class le{get fullScreenEventSubject(){return this.fullScreenEvent}get fullScreenEventObs$(){return this.fullScreenEvent.asObservable()}get documentVisiblityChange(){return(0,ct.R)(document,"visibilitychange")}resetExitPath(){this.fullScreenSource=void 0}setExitPath(Se){this.fullScreenSource=Se}get resumeFullScreenIGO(){return this.fullScreenSource===vt.IGO}get applicationWindowState$(){return this.isPWAModeOnLGTV?this.webOSWindowStateSubject.asObservable():this.documentVisiblityChange.pipe((0,m.Z)(0),(0,g.T)(Se=>"visible"===document.visibilityState?"foreground":"background"),(0,r.F)())}constructor(Se,fe,Ne){this.titleService=fe,this.ngZone=Ne,this.keyCodes={c:"KeyC",i:"KeyI",j:"KeyJ",u:"KeyU",f12:"F12"},this.isPWAModeOnLGTV=it.zk.isPWAModeOnLGTV(),this.isPWAModeOnSamsungTV=it.zk.isPWAModeOnSamsungTV(),this.fullScreenEvent=new A.t(!1),this.webOSWindowStateSubject=new A.t("foreground"),this.webOSWindowStateListener=ye=>{this.webOSWindowStateSubject.value!==ye.detail.state&&this.webOSWindowStateSubject.next(ye.detail.state)},this.logger=Se.getLogger("gfn/browser-support"),this.appIcon=document.querySelector("#appIcon"),this.appIconHref=this.appIcon?.href,this.hostBranch=window.location.pathname.replace(et,"")}initialize(Se,fe){Se&&this.ngZone.runOutsideAngular(()=>{document.addEventListener("wheel",this.dummyWheelListener,{passive:!0})}),fe||this.disableDevTools(),this.isPWAModeOnLGTV&&this.ngZone.runOutsideAngular(()=>{window.addEventListener("windowStateChanged",this.webOSWindowStateListener)})}dummyWheelListener(Se){return Se}disableDevTools(){this.ngZone.runOutsideAngular(()=>{document.addEventListener("contextmenu",Se=>Se.preventDefault()),window.addEventListener("keydown",Se=>{(Se.code===this.keyCodes.i&&Se.ctrlKey&&Se.shiftKey||Se.code===this.keyCodes.j&&Se.ctrlKey&&Se.shiftKey||Se.code===this.keyCodes.u&&Se.ctrlKey||Se.code===this.keyCodes.f12||Se.code===this.keyCodes.c&&Se.shiftKey&&Se.metaKey||Se.code===this.keyCodes.i&&Se.altKey&&Se.metaKey||Se.code===this.keyCodes.j&&Se.altKey&&Se.metaKey||Se.code===this.keyCodes.u&&Se.altKey&&Se.metaKey)&&Se.preventDefault()})})}getGamepads(){if(!navigator.getGamepads)return[];const Se=navigator.getGamepads();return Se instanceof Array?Se:Array.from(Se).filter(Ne=>!!Ne)}goToPreviousPage(){window.history.back()}supportsRequestFullscreen(Se){return document.fullscreenEnabled&&Se.requestFullscreen||document.webkitFullscreenEnabled&&Se.webkitRequestFullscreen}isFullscreen(){const Se=screen.width===window.innerWidth&&screen.height===window.innerHeight;return document.fullscreenElement||document.webkitFullscreenElement||!(this.isPWAModeOnLGTV||this.isPWAModeOnSamsungTV)&&Se}requestFullscreen(Se){if(this.supportsRequestFullscreen(Se))if(Se.requestFullscreen){const fe=Se.requestFullscreen();fe?fe.catch(Ne=>{this.logger.error(`Error attempting to enable fullscreen mode: ${Ne.message} (${Ne.name})`)}):this.logger.info("Fullscreen request API did not return a promise")}else Se.webkitRequestFullscreen?Se.webkitRequestFullscreen():this.logger.error("No available method to enter fullscreen");else this.logger.error("Fullscreen not supported")}exitFullscreen(){document.fullscreenElement&&document.exitFullscreen?document.exitFullscreen():document.webkitExitFullscreen?document.webkitExitFullscreen():this.logger.error("No available method to exit fullscreen")}isStagingOrDevDomain(){return this.isStagingDomain()||this.isLocalDomain()}isStagingDomain(){return window.location.hostname.endsWith(ue.Stage)}isPartnerDomain(){return window.location.hostname.endsWith(ue.Partner)}isLocalDomain(){return window.location.hostname.endsWith(ue.Local)}getHostBranchName(){return this.hostBranch}setTitle(Se){Se&&this.titleService.setTitle(Se)}blinkAppIcon(Se){this.appIcon&&this.appIconHref&&(Se%2==1?this.appIcon.href="./assets/img/transparent.png":this.resetAppIcon())}resetAppIcon(){this.appIconHref&&(this.appIcon.href=this.appIconHref)}cleanup(){document.removeEventListener("wheel",this.dummyWheelListener),this.resetAppIcon(),this.isPWAModeOnLGTV&&window.removeEventListener("windowStateChanged",this.webOSWindowStateListener)}getPermission$(Se){return(0,J.H)(navigator.permissions.query({name:Se})).pipe((0,E.ZZ)(fe=>(0,M.h)((0,T.of)(fe.state),(0,ct.R)(fe,"change").pipe((0,g.T)(Ne=>Ne.target.state)))),(0,ze.M)(fe=>this.logger.info(`BrowserPermission: ${Se} value: ${fe}`)))}static{this.\u0275fac=function(fe){return new(fe||le)(n.KVO(it.J6),n.KVO(Ce.hE),n.KVO(n.SKi))}}static{this.\u0275prov=n.jDH({token:le,factory:le.\u0275fac,providedIn:"root"})}}return le})();const me={provide:U,useFactory:function rt(le,Xe,Se){switch(le.implementationType){case"android":const fe=Se.get(it.zW);return new Pe(fe);case"geronimo":{const Ne=Se.get(it.J6),ye=Se.get(it.NZ);return new Ee(Ne,ye,le,Xe)}case"webapi":{const Ne=Se.get(it.J6),ye=Se.get(it.rQ),Ot=Se.get(be);return new $e(Ne,ye,Xe,Ot,le)}case"no-op":return new dt}},deps:[h,n.SKi,n.zZn]}},33089:(St,z,s)=>{"use strict";s.d(z,{NO:()=>u,Qe:()=>v});var i=s(43848),n=s(75707),h=s(20468),C=s(26875),x=function(T){return T.GfcHeadRequest="FeedbackHead",T.GfcAttachmentRequest="FeedbackAttachment",T}(x||{}),A=s(58527);let g=(()=>{class T{static{this.\u0275fac=function(U){return new(U||T)}}static{this.\u0275prov=A.jDH({token:T,factory:T.\u0275fac})}}return T})();var m=s(5798);const r="gfc/v4.0/attachment";let u=(()=>{class T{constructor(B,U){this.serverConfig=B,this.endpointFactory=U,this.latestOffset=0,this.commonFeedbackEventData={},this.previousChunkDataSize=0,this.prepareCommonFeedbackData(B),this.feedbackEndpointUrl=this.prepareFeedbackEndpoint(),this.feedbackAttachmentEndpointUrl=this.prepareFeedbackAttachmentEndpoint()}generateUrl(B){return this.serverConfig.server+"/"+B}computeSHA256Checksum(B){let U="";return(0,C.isEmpty)(B)||(U=(0,h.sha256)(B)),U}getDataSize(B){return(0,C.isEmpty)(B)?0:new Blob([B]).size}prepareFeedbackEndpoint(){return this.feedbackEndpointUrl=this.endpointFactory.createEndpoint({headers:{"Content-Type":"application/json"},config:{timeout:this.serverConfig.defaultTimeout,timeBetweenRetries:this.serverConfig.defaultTimeBetweenRetries,maxRetries:this.serverConfig.defaultRetries},reportRequestData:{originalService:"Gfc",serviceUseCase:x.GfcHeadRequest,reportSuccessTelemetry:"false"}}),this.feedbackEndpointUrl}prepareFeedbackAttachmentEndpoint(){return this.feedbackAttachmentEndpointUrl=this.endpointFactory.createEndpoint({config:{timeout:this.serverConfig.defaultTimeout,timeBetweenRetries:this.serverConfig.defaultTimeBetweenRetries,maxRetries:this.serverConfig.defaultRetries},reportRequestData:{originalService:"Gfc",serviceUseCase:x.GfcAttachmentRequest,reportSuccessTelemetry:"false"}}),this.feedbackAttachmentEndpointUrl}prepareCommonFeedbackData(B){this.commonFeedbackEventData=(0,C.extend)(this.commonFeedbackEventData,{clientId:B.clientId,feedbackProtocol:"4.4",feedbackSchemaVer:B.schemaVersion,feedbackSysVer:B.version})}buildGFCMultipartData(B,U,Y,ae,G=0,k=!1){const X=new FormData;return X.append("data2",new Blob([B])),X.append("feedbackId",U),X.append("size",Y.toString()),X.append("checksum",this.computeSHA256Checksum(B)),ae&&X.append("parameters",JSON.stringify(ae.parameters)),X.append("offset",G.toString()),k&&X.append("eob","true"),X}updatePreviousChunkSizeAndBuildMultipartData(B,U,Y=!1){return this.previousChunkDataSize=this.getDataSize(B),this.buildGFCMultipartData(B,this.xFeedbackId,this.previousChunkDataSize,U,this.latestOffset,Y)}sendFeedbackHeadRequest(B){return B=(0,C.merge)(B,this.commonFeedbackEventData),this.feedbackEndpointUrl.makeRequestEx("POST",this.generateUrl("gfc/v4.0/head"),{body:B,headers:{"Content-Type":"application/json"},withCredentials:!0})}sendFeedbackEvent(B){return this.latestOffset=0,this.xFeedbackId=B.feedbackId,this.sendFeedbackHeadRequest(B)}sendFeedbackChunkEvent(B,U,Y=!1,ae){if(Y){if(ae?.isBrowserClosing)return this.sendLastFeedbackChunkEvent(B,U),(0,i.of)({});{ae.prevChunkInProgress&&this.updateOffsetOnSuccessfulAttachmentRequest();const G=this.updatePreviousChunkSizeAndBuildMultipartData(B,U,!0);return this.latestOffset=0,this.sendFeedbackAttachmentReq(G)}}{const G=this.updatePreviousChunkSizeAndBuildMultipartData(B,U);return this.sendFeedbackAttachmentReq(G)}}sendFeedbackAttachmentReq(B){return this.feedbackAttachmentEndpointUrl.makeRequestEx("POST",this.generateUrl(r),{body:B,withCredentials:!0})}sendLastFeedbackChunkEvent(B,U){const Y=this.updatePreviousChunkSizeAndBuildMultipartData(B,U,!0);navigator.sendBeacon(this.generateUrl(r),Y),this.latestOffset=0}updateOffsetOnSuccessfulAttachmentRequest(B){this.latestOffset=B||Number(this.latestOffset)+Number(this.previousChunkDataSize)}sendFeedbackBasedOnTechConsent(B,U,Y){return B.sentTs=(new Date).toISOString(),this.sendFeedbackHeadRequest(B).pipe((0,n.ZZ)(()=>{if(U){const ae=this.buildGFCMultipartData(Y,B.feedbackId,this.getDataSize(Y),void 0,0,!0);return this.sendFeedbackAttachmentReq(ae)}return(0,i.of)(!0)}))}static{this.\u0275fac=function(U){return new(U||T)(A.KVO(g),A.KVO(m.t))}}static{this.\u0275prov=A.jDH({token:T,factory:T.\u0275fac,providedIn:"root"})}}return T})();const v="undefined"},72818:(St,z,s)=>{"use strict";s.d(z,{QO:()=>h,SN:()=>P});var h=function(x){return x.ThreeQuarterSheet="ThreeQuarterSheet",x.BottomSheet="BottomSheet",x}(h||{});function P(x,A){const g=[];if(A.addOverlayPanelCls&&g.push("nv-overlay-panel"),(A.bottomSheet||A.threeQuarterSheet)&&g.push("nv-hig"),A.threeQuarterSheet&&g.push("nv-three-quarter-sheet"),A.tvMode&&g.push("is-tv"),g.length>0){const m=x.panelClass?x.panelClass instanceof Array?x.panelClass:new Array(x.panelClass):[];g.forEach(l=>{m.includes(l)||m.push(l)}),x.panelClass=m}}},99564:(St,z,s)=>{"use strict";s.d(z,{G:()=>Ve});var i=s(58527),n=s(16490),h=s(96542),C=s(47973),S=s(99204),M=s(28139),P=s(36243),x=s(61142),A=s(3457),g=s(72818),m=s(11013),l=s(25369),r=s(22355),u=s(97888),v=s(40514),E=s(60990),T=s(81247),R=s(2218),B=s(26537);const U=($e,dt)=>({"has-image":$e,"only-body":dt}),Y=$e=>({"overflow-wrap-anywhere":$e}),ae=$e=>({"font-tv-error-text":$e}),G=$e=>({visible:$e});function k($e,dt){if(1&$e&&(i.j41(0,"i",20),i.EFF(1),i.k0s()),2&$e){const Pe=i.XpG(2);i.R7$(),i.JRh(Pe.data.icon)}}function X($e,dt){if(1&$e&&i.nrm(0,"img",21),2&$e){const Pe=i.XpG(2);i.Y8G("src",Pe.data.image.url,i.B4B)}}function q($e,dt){if(1&$e&&i.nrm(0,"qrcode",22),2&$e){const Pe=i.XpG(2);i.Y8G("qrdata",Pe.data.link.url)("width",Pe.tvMode?184:140)("errorCorrectionLevel","M")}}function Q($e,dt){if(1&$e&&(i.j41(0,"div",16),i.DNE(1,k,2,1,"i",17)(2,X,1,1,"img",18)(3,q,1,3,"qrcode",19),i.k0s()),2&$e){const Pe=i.XpG();i.R7$(),i.Y8G("ngIf",Pe.data.icon),i.R7$(),i.Y8G("ngIf",Pe.data.image),i.R7$(),i.Y8G("ngIf",Pe.showQRCode)}}function ce($e,dt){if(1&$e&&(i.j41(0,"div",23),i.EFF(1),i.nI1(2,"translate"),i.k0s()),2&$e){const Pe=i.XpG();i.Y8G("ngClass",Pe.tvMode?"font-header5":"font-header6"),i.R7$(),i.SpI(" ",i.i5U(2,2,Pe.data.headerText.text,Pe.data.headerText.placeholders)," ")}}function te($e,dt){1&$e&&i.nrm(0,"mat-progress-spinner",24)}function Ee($e,dt){if(1&$e&&(i.nrm(0,"div",25),i.nI1(1,"translate")),2&$e){const Pe=i.XpG();i.Y8G("ngClass",i.eq3(5,Y,Pe.showQRCode))("innerHTML",Pe.data.bodyText.translated?Pe.data.bodyText.text:i.i5U(1,2,Pe.data.bodyText.text,Pe.data.bodyText.placeholders),i.npT)}}function it($e,dt){if(1&$e&&(i.j41(0,"div",26),i.EFF(1),i.nI1(2,"translate"),i.k0s()),2&$e){const Pe=i.XpG();i.Y8G("ngClass",i.eq3(5,ae,Pe.tvMode)),i.R7$(),i.SpI(" ",i.i5U(2,2,Pe.data.errorCodeText.text,Pe.data.errorCodeText.placeholders)," ")}}function Fe($e,dt){if(1&$e&&(i.qex(0),i.eu8(1,27)(2,27),i.bVm()),2&$e){i.XpG();const Pe=i.sdS(15),J=i.sdS(17);i.R7$(),i.Y8G("ngTemplateOutlet",Pe),i.R7$(),i.Y8G("ngTemplateOutlet",J)}}function Qe($e,dt){if(1&$e&&i.eu8(0,27)(1,27),2&$e){i.XpG();const Pe=i.sdS(15),J=i.sdS(17);i.Y8G("ngTemplateOutlet",J),i.R7$(),i.Y8G("ngTemplateOutlet",Pe)}}function ct($e,dt){if(1&$e){const Pe=i.RV6();i.j41(0,"button",29),i.bIt("click",function(vt){i.eBV(Pe);const ve=i.XpG(2);return i.Njj(ve.onPrimaryButtonClick(vt))}),i.EFF(1),i.nI1(2,"translate"),i.eu8(3,30),i.k0s()}if(2&$e){const Pe=i.XpG(2),J=i.sdS(19);i.Y8G("ngClass",Pe.showAccentBtn?"font-button2 mat-flat-button mat-accent":"font-button2")("nvFocusRipple",Pe.showAccentBtn)("disabled",Pe.data.primaryButton.isDisabled)("nvAutoFocus",Pe.autoFocusOnPrimaryButton),i.R7$(),i.SpI(" ",i.bMT(2,7,Pe.data.primaryButton.text)," "),i.R7$(2),i.Y8G("ngTemplateOutlet",J)("ngTemplateOutletContext",i.eq3(9,G,Pe.data.primaryButton.spinnerOverlay))}}function Ge($e,dt){if(1&$e&&i.DNE(0,ct,4,11,"button",28),2&$e){const Pe=i.XpG();i.Y8G("ngIf",Pe.data.primaryButton)}}function nt($e,dt){if(1&$e){const Pe=i.RV6();i.j41(0,"button",32),i.bIt("click",function(vt){i.eBV(Pe);const ve=i.XpG(2);return i.Njj(ve.onSecondaryButtonClick(vt))}),i.EFF(1),i.nI1(2,"translate"),i.eu8(3,30),i.k0s()}if(2&$e){const Pe=i.XpG(2),J=i.sdS(19);i.Y8G("disabled",Pe.data.secondaryButton.isDisabled),i.R7$(),i.SpI(" ",i.bMT(2,4,Pe.data.secondaryButton.text)," "),i.R7$(2),i.Y8G("ngTemplateOutlet",J)("ngTemplateOutletContext",i.eq3(6,G,Pe.data.secondaryButton.spinnerOverlay))}}function Je($e,dt){if(1&$e&&i.DNE(0,nt,4,8,"button",31),2&$e){const Pe=i.XpG();i.Y8G("ngIf",Pe.data.secondaryButton)}}function ze($e,dt){1&$e&&(i.j41(0,"div",34),i.nrm(1,"mat-progress-spinner",35),i.k0s()),2&$e&&(i.R7$(),i.Y8G("diameter",48))}function Ke($e,dt){1&$e&&i.DNE(0,ze,2,1,"div",33),2&$e&&i.Y8G("ngIf",dt.visible)}let Ve=(()=>{class $e extends l.D{get hasImage(){return!!this.data.icon||!!this.data.image||this.showQRCode}get showQRCode(){return this.showQRCodeForLinks&&!!this.data.link?.url}get autoFocusOnPrimaryButton(){return this.data.autoFocusOnPrimaryButton??!0}get showAccentBtn(){return this.data.primaryButton.accentColor&&!this.tvMode}static open(Pe,J,vt){return(0,g.SN)(J,{bottomSheet:!0,tvMode:vt}),Pe.open($e,J)}constructor(Pe,J,vt,ve,ue){super(vt,ve,Pe,ue),this.primaryButtonClick=new i.bkB,this.secondaryButtonClick=new i.bkB,this.linkClick=new i.bkB,this.data={},this.data=Pe.get(n.yj,null),this.tvMode=!!J.tvMode,this.showQRCodeForLinks=!!J.showQRCodeForLinks}ngOnInit(){this.layoutType=this.hasImage||this.tvMode?"row":"column"}onPrimaryButtonClick(Pe){this.primaryButtonClick.emit(Pe)}onSecondaryButtonClick(Pe){this.secondaryButtonClick.emit(Pe)}onLinkClick(){this.linkClick.emit()}static{this.\u0275fac=function(J){return new(J||$e)(i.rXU(i.zZn),i.rXU(m.X,8),i.rXU(B.CP,8),i.rXU(n.eN,8),i.rXU(i.SKi))}}static{this.\u0275cmp=i.VBU({type:$e,selectors:[["nv-hig-bottom-sheet"]],inputs:{data:"data"},outputs:{primaryButtonClick:"primaryButtonClick",secondaryButtonClick:"secondaryButtonClick",linkClick:"linkClick"},standalone:!0,features:[i.Vt3,i.aNF],decls:20,vars:22,consts:[["nonTvMode",""],["primaryButton",""],["secondaryButton",""],["buttonSpinner",""],["fxLayoutAlign","space-between stretch","nvSpatialNavigationContainer","","nvTrapFocus","",1,"hig-bottom-sheet",3,"fxLayout"],["class","image-container",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start start",1,"content",3,"fxFlex","ngClass","fxLayoutGap"],["fxFlex","nogrow","class","header-text",3,"ngClass",4,"ngIf"],["fxFlex","","fxLayout","row","fxLayoutGap","24px",3,"fxLayoutAlign"],["fxFlex","none","mode","indeterminate","color","accent","diameter","64",4,"ngIf"],["fxFlex","","fxLayout","column",1,"font-body2"],["fxFlex","auto","class","body-text",3,"ngClass","innerHTML",4,"ngIf"],["fxFlex","auto","class","body-text",3,"ngClass",4,"ngIf"],["fxLayout","column",1,"actions-container",3,"fxFlex","fxFlexAlign"],[1,"buttons-container",3,"fxLayout","fxLayoutAlign","fxLayoutGap"],[4,"ngIf","ngIfElse"],[1,"image-container"],["class","material-icons",4,"ngIf"],[3,"src",4,"ngIf"],[3,"qrdata","width","errorCorrectionLevel",4,"ngIf"],[1,"material-icons"],[3,"src"],[3,"qrdata","width","errorCorrectionLevel"],["fxFlex","nogrow",1,"header-text",3,"ngClass"],["fxFlex","none","mode","indeterminate","color","accent","diameter","64"],["fxFlex","auto",1,"body-text",3,"ngClass","innerHTML"],["fxFlex","auto",1,"body-text",3,"ngClass"],[3,"ngTemplateOutlet"],["mat-button","",3,"ngClass","nvFocusRipple","disabled","nvAutoFocus","click",4,"ngIf"],["mat-button","",3,"click","ngClass","nvFocusRipple","disabled","nvAutoFocus"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["mat-button","","class","font-button2",3,"disabled","click",4,"ngIf"],["mat-button","",1,"font-button2",3,"click","disabled"],["fxLayout","column","fxLayoutAlign","center end","class","spinner-overlay",4,"ngIf"],["fxLayout","column","fxLayoutAlign","center end",1,"spinner-overlay"],["mode","indeterminate",1,"mat-accent",3,"diameter"]],template:function(J,vt){if(1&J&&(i.j41(0,"div",4),i.DNE(1,Q,4,3,"div",5),i.j41(2,"div",6),i.DNE(3,ce,3,5,"div",7),i.j41(4,"div",8),i.DNE(5,te,1,0,"mat-progress-spinner",9),i.j41(6,"div",10),i.DNE(7,Ee,2,7,"div",11)(8,it,3,7,"div",12),i.k0s()()(),i.j41(9,"div",13)(10,"div",14),i.DNE(11,Fe,3,2,"ng-container",15)(12,Qe,2,2,"ng-template",null,0,i.C5r),i.k0s(),i.DNE(14,Ge,1,1,"ng-template",null,1,i.C5r)(16,Je,1,1,"ng-template",null,2,i.C5r)(18,Ke,1,1,"ng-template",null,3,i.C5r),i.k0s()()),2&J){const ve=i.sdS(13);i.AVh("is-tv",vt.tvMode),i.Y8G("fxLayout",vt.layoutType),i.R7$(),i.Y8G("ngIf",vt.hasImage),i.R7$(),i.Y8G("fxFlex",vt.tvMode?"":"grow")("ngClass",i.l_i(19,U,vt.hasImage,!vt.data.headerText))("fxLayoutGap",vt.tvMode?"30px":"16px"),i.R7$(),i.Y8G("ngIf",vt.data.headerText),i.R7$(),i.Y8G("fxLayoutAlign",vt.data.headerText?"start start":"start center"),i.R7$(),i.Y8G("ngIf",vt.data.showSpinner),i.R7$(2),i.Y8G("ngIf",vt.data.bodyText),i.R7$(),i.Y8G("ngIf",vt.data.errorCodeText),i.R7$(),i.Y8G("fxFlex",vt.tvMode?"":"initial")("fxFlexAlign",vt.tvMode?"start":"end"),i.R7$(),i.Y8G("fxLayout",vt.tvMode?"column":"row")("fxLayoutAlign",vt.tvMode?"":"end center")("fxLayoutGap",vt.tvMode?"16px":"8px"),i.R7$(),i.Y8G("ngIf",vt.tvMode)("ngIfElse",ve)}},dependencies:[A.w2,A.DJ,A.BO,A.sA,A.R$,A.UI,R.R,T.D,x.bT,P.f,P.c,x.YU,M.Cc,M.PW,S.D6,S.LG,E.r,v.e,x.T3,C.wG,C.iV,u.Aq,r.N,h.h,h.D9],styles:[".isRtl[_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{transform:scaleX(-1)}html[dir=rtl][_ngcontent-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{--dummy: 0;transform:scaleX(-1)}.hotkey-border[_ngcontent-%COMP%]{border:1px solid #ffffff;padding:4px 8px;font-weight:500;line-height:32px;margin:4px}.hig-bottom-sheet[_ngcontent-%COMP%]{background-color:#393939;padding:0;width:100vw;min-height:132px;max-height:80vh}@media (orientation: portrait){.hig-bottom-sheet[_ngcontent-%COMP%]{min-height:180px;height:180px}}.isLtr[_nghost-%COMP%] .content[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .content[_ngcontent-%COMP%]{margin:16px max(env(safe-area-inset-right),16px) 0 max(env(safe-area-inset-left),16px)}html[dir=ltr][_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{--dummy: 0;margin:16px max(env(safe-area-inset-right),16px) 0 max(env(safe-area-inset-left),16px)}.isRtl[_nghost-%COMP%] .content[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .content[_ngcontent-%COMP%]{margin:16px max(env(safe-area-inset-left),16px) 0 max(env(safe-area-inset-right),16px)}html[dir=rtl][_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{--dummy: 0;margin:16px max(env(safe-area-inset-left),16px) 0 max(env(safe-area-inset-right),16px)}.actions-container[_ngcontent-%COMP%]{padding:8px max(env(safe-area-inset-right),8px) max(env(safe-area-inset-bottom),8px) max(env(safe-area-inset-left),8px)}.is-tv.hig-bottom-sheet[_ngcontent-%COMP%]{min-height:420px;height:420px}.isLtr[_nghost-%COMP%] .is-tv[_ngcontent-%COMP%] .image-container[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .is-tv[_ngcontent-%COMP%] .image-container[_ngcontent-%COMP%]{margin:120px 0 0 120px}html[dir=ltr][_ngcontent-%COMP%] .is-tv[_ngcontent-%COMP%] .image-container[_ngcontent-%COMP%]{--dummy: 0;margin:120px 0 0 120px}.isRtl[_nghost-%COMP%] .is-tv[_ngcontent-%COMP%] .image-container[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .is-tv[_ngcontent-%COMP%] .image-container[_ngcontent-%COMP%]{margin:120px 120px 0 0}html[dir=rtl][_ngcontent-%COMP%] .is-tv[_ngcontent-%COMP%] .image-container[_ngcontent-%COMP%]{--dummy: 0;margin:120px 120px 0 0}.is-tv[_ngcontent-%COMP%] .image-container[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:112px}.is-tv[_ngcontent-%COMP%] .image-container[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:112px;height:112px;object-fit:fill}.is-tv[_ngcontent-%COMP%] .actions-container[_ngcontent-%COMP%]{padding:0;max-width:606px}.is-tv[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{min-width:0}.isLtr[_nghost-%COMP%] .is-tv[_ngcontent-%COMP%] .content[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .is-tv[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{margin:120px 90px 0 120px}html[dir=ltr][_ngcontent-%COMP%] .is-tv[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{--dummy: 0;margin:120px 90px 0 120px}.isRtl[_nghost-%COMP%] .is-tv[_ngcontent-%COMP%] .content[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .is-tv[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{margin:120px 120px 0 90px}html[dir=rtl][_ngcontent-%COMP%] .is-tv[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{--dummy: 0;margin:120px 120px 0 90px}.isLtr[_nghost-%COMP%] .is-tv[_ngcontent-%COMP%] .content.has-image[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .is-tv[_ngcontent-%COMP%] .content.has-image[_ngcontent-%COMP%]{margin:120px 90px 0 56px}html[dir=ltr][_ngcontent-%COMP%] .is-tv[_ngcontent-%COMP%] .content.has-image[_ngcontent-%COMP%]{--dummy: 0;margin:120px 90px 0 56px}.isRtl[_nghost-%COMP%] .is-tv[_ngcontent-%COMP%] .content.has-image[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .is-tv[_ngcontent-%COMP%] .content.has-image[_ngcontent-%COMP%]{margin:120px 56px 0 90px}html[dir=rtl][_ngcontent-%COMP%] .is-tv[_ngcontent-%COMP%] .content.has-image[_ngcontent-%COMP%]{--dummy: 0;margin:120px 56px 0 90px}.is-tv[_ngcontent-%COMP%] .content.only-body[_ngcontent-%COMP%]{align-items:center}.isLtr[_nghost-%COMP%] .is-tv[_ngcontent-%COMP%] .content.only-body[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .is-tv[_ngcontent-%COMP%] .content.only-body[_ngcontent-%COMP%]{margin:0 90px 60px 120px}html[dir=ltr][_ngcontent-%COMP%] .is-tv[_ngcontent-%COMP%] .content.only-body[_ngcontent-%COMP%]{--dummy: 0;margin:0 90px 60px 120px}.isRtl[_nghost-%COMP%] .is-tv[_ngcontent-%COMP%] .content.only-body[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .is-tv[_ngcontent-%COMP%] .content.only-body[_ngcontent-%COMP%]{margin:0 120px 60px 90px}html[dir=rtl][_ngcontent-%COMP%] .is-tv[_ngcontent-%COMP%] .content.only-body[_ngcontent-%COMP%]{--dummy: 0;margin:0 120px 60px 90px}.isLtr[_nghost-%COMP%] .is-tv[_ngcontent-%COMP%] .content.has-image.only-body[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .is-tv[_ngcontent-%COMP%] .content.has-image.only-body[_ngcontent-%COMP%]{margin:0 90px 60px 56px}html[dir=ltr][_ngcontent-%COMP%] .is-tv[_ngcontent-%COMP%] .content.has-image.only-body[_ngcontent-%COMP%]{--dummy: 0;margin:0 90px 60px 56px}.isRtl[_nghost-%COMP%] .is-tv[_ngcontent-%COMP%] .content.has-image.only-body[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .is-tv[_ngcontent-%COMP%] .content.has-image.only-body[_ngcontent-%COMP%]{margin:0 56px 60px 90px}html[dir=rtl][_ngcontent-%COMP%] .is-tv[_ngcontent-%COMP%] .content.has-image.only-body[_ngcontent-%COMP%]{--dummy: 0;margin:0 56px 60px 90px}.is-tv[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .font-tv-error-text[_ngcontent-%COMP%]{margin:24px 0 0}.is-tv[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .header-text[_ngcontent-%COMP%]{word-break:break-word;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.is-tv[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .body-text[_ngcontent-%COMP%]{word-break:break-word;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;min-height:45px}.overflow-wrap-anywhere[_ngcontent-%COMP%]{overflow-wrap:anywhere}.buttons-container[_ngcontent-%COMP%]{height:calc(44px + max(env(safe-area-inset-bottom),8px))}.buttons-container[_ngcontent-%COMP%] button[mat-button][_ngcontent-%COMP%]{line-height:36px}.buttons-container[_ngcontent-%COMP%] .spinner-overlay[_ngcontent-%COMP%]{position:absolute;inset:0;display:flex;z-index:1;background:transparent}.isLtr[_nghost-%COMP%] .buttons-container[_ngcontent-%COMP%] .spinner-overlay[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .buttons-container[_ngcontent-%COMP%] .spinner-overlay[_ngcontent-%COMP%]{margin-right:32px}html[dir=ltr][_ngcontent-%COMP%] .buttons-container[_ngcontent-%COMP%] .spinner-overlay[_ngcontent-%COMP%]{--dummy4: 0;margin-right:32px}.isRtl[_nghost-%COMP%] .buttons-container[_ngcontent-%COMP%] .spinner-overlay[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .buttons-container[_ngcontent-%COMP%] .spinner-overlay[_ngcontent-%COMP%]{margin-left:32px}html[dir=rtl][_ngcontent-%COMP%] .buttons-container[_ngcontent-%COMP%] .spinner-overlay[_ngcontent-%COMP%]{--dummy4: 0;margin-left:32px}.is-tv[_ngcontent-%COMP%] .buttons-container[_ngcontent-%COMP%]{height:100%;margin-top:120px}.isLtr[_nghost-%COMP%] .is-tv[_ngcontent-%COMP%] .buttons-container[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .is-tv[_ngcontent-%COMP%] .buttons-container[_ngcontent-%COMP%]{margin-right:80px}html[dir=ltr][_ngcontent-%COMP%] .is-tv[_ngcontent-%COMP%] .buttons-container[_ngcontent-%COMP%]{--dummy4: 0;margin-right:80px}.isRtl[_nghost-%COMP%] .is-tv[_ngcontent-%COMP%] .buttons-container[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .is-tv[_ngcontent-%COMP%] .buttons-container[_ngcontent-%COMP%]{margin-left:80px}html[dir=rtl][_ngcontent-%COMP%] .is-tv[_ngcontent-%COMP%] .buttons-container[_ngcontent-%COMP%]{--dummy4: 0;margin-left:80px}.is-tv[_ngcontent-%COMP%] .buttons-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{align-self:flex-start;height:92px;width:100%;text-align:start;border-radius:5px;--font-sub-shared-font-size: 14px;--font-sub-shared-line-height: 20px;font-family:NVIDIA,sans-serif;color:var(--hig-ui-text-primary-color);font-weight:500;font-style:normal;text-transform:none;font-size:var(--font-sub-shared-font-size);line-height:var(--font-sub-shared-line-height);letter-spacing:0}.tv-view[_ngcontent-%COMP%] .is-tv[_ngcontent-%COMP%] .buttons-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .is-tv[_ngcontent-%COMP%] .buttons-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .is-tv[_ngcontent-%COMP%] .buttons-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{--font-sub-shared-font-size: 28px;--font-sub-shared-line-height: 40px}.image-container[_ngcontent-%COMP%]{margin:16px}"]})}}return $e})()},53484:(St,z,s)=>{"use strict";s.d(z,{_:()=>ct});var i=s(58527),n=s(64409),h=s(51394),C=s(29370),S=s(47973),M=s(28139),P=s(61142),x=s(80583),A=s(36877),g=s(31315),m=s(62931),l=s(4208),r=s(65706),u=s(94329),E=s(58108),T=s(71152),R=s(33420),B=s(69996),U=s(14605),Y=s(2218),ae=s(80362),G=s(16924),k=s(92602);const X=["wrapper"],q=["container"],Q=["carousel"],ce=(Ge,nt)=>({$implicit:Ge,index:nt}),te=Ge=>({hidden:Ge});function Ee(Ge,nt){}function it(Ge,nt){if(1&Ge){const Je=i.RV6();i.j41(0,"div",9,3),i.bIt("focusin",function(){const Ke=i.eBV(Je).index,Ve=i.XpG();return i.Njj(Ve.onTileFocused(Ke))})("focusout",function(){i.eBV(Je);const Ke=i.XpG();return i.Njj(Ke.onTileFocusOut())}),i.DNE(2,Ee,0,0,"ng-template",10),i.k0s()}if(2&Ge){const Je=nt.$implicit,ze=nt.index,Ke=nt.first,Ve=nt.last,$e=i.XpG();i.xc7("height",$e.itemHeight,"px"),i.AVh("first",Ke)("last",Ve),i.R7$(2),i.Y8G("ngTemplateOutlet",$e.template)("ngTemplateOutletContext",i.l_i(8,ce,Je,ze))}}function Fe(Ge,nt){if(1&Ge){const Je=i.RV6();i.qex(0),i.j41(1,"button",11),i.bIt("click",function(Ke){i.eBV(Je);const Ve=i.XpG();return i.Njj(Ve.moveLeft(Ke))}),i.nrm(2,"mat-icon",12),i.k0s(),i.j41(3,"button",13),i.bIt("click",function(Ke){i.eBV(Je);const Ve=i.XpG();return i.Njj(Ve.moveRight(Ke))}),i.nrm(4,"mat-icon",14),i.k0s(),i.bVm()}if(2&Ge){const Je=i.XpG();i.R7$(),i.Y8G("ngClass",i.eq3(2,te,!Je.showLeftCarouselButton)),i.R7$(2),i.Y8G("ngClass",i.eq3(4,te,!Je.showRightCarouselButton))}}let ct=(()=>{class Ge{get items(){return this._items}set items(Je){let ze=!1;if(this._itemsOriginal&&this._itemsOriginal?.length===Je.length)for(let Ke=0;Ke<this._items.length;Ke++)this._items[Ke].id!==Je[Ke].id&&(ze=!0);else ze=!0;ze&&(this._itemsOriginal=Je,this._items=Je.slice(),this.initialized&&this.initCarousel())}get scrollLeft(){return this.container.measureScrollOffset()}set scrollLeft(Je){this.container.scrollTo({start:Je,behavior:"auto"})}constructor(Je,ze,Ke,Ve,$e){this.ngZone=Ke,this.spatialNavigationService=Ve,this.changeDetector=$e,this.animationDuration=1e3,this.easingFunction=u(.35,.37,.2,1),this.defaultResizeDebounceTime=200,this.showLeftCarouselButton=!1,this.showRightCarouselButton=!1,this.carouselButtonsVisibility=!1,this.carouselDirection="ltr",this.itemOffsets=[],this.extraMargin=32,this.extraMarginHeight=8,this.itemWidth=270,this.itemHeight=150,this.spatialNavigationSpacingLeft=0,this.spatialNavigationSpacingRight=0,this.initialized=!1,this.navNoTarget=dt=>{const Pe=dt.detail.dir;("left"===Pe||"right"===Pe)&&dt.preventDefault()},this.logger=Je.getLogger("Hig/CarouselComponent"),this.carouselDirection=ze.isRTLLayoutEnabled?"rtl":"ltr",this.destroy$=new x.B7,this.enableButtons=!this.mobileMode,this.resizeDebounceTime=this.defaultResizeDebounceTime}onTileFocused(Je){const Ke=Je-this.firstPositiveWidthTileIndex==0;this.isFirstTileFocused!==Ke&&(this.isFirstTileFocused=Ke,this.changeDetector.detectChanges()),this.currentFocusedIndex=Je}onTileFocusOut(){this.currentFocusedIndex=-1}ngAfterViewInit(){setTimeout(()=>{this.initCarousel()}),T._4.onResize(this.wrapper.nativeElement).pipe((0,m.B)(this.resizeDebounceTime),(0,l.Q)(this.destroy$)).subscribe(Je=>this.resizeCarousel()),this.ngZone.runOutsideAngular(()=>{this.carousel.nativeElement.addEventListener("navnotarget",this.navNoTarget),(0,A.R)(this.carousel.nativeElement,"scroll").pipe((0,m.B)(100),(0,l.Q)(this.destroy$)).subscribe(Je=>{this.ngZone.run(()=>{this.onScroll(Je)})})})}get hasFocusedItem(){return this.currentFocusedIndex>=0}parseMargin(Je,ze=Je,Ke=Je,Ve=ze){return{top:Je,right:ze,bottom:Ke,left:Ve}}initCarousel(){const Je=getComputedStyle(this.sizingElement.nativeElement);let ze=(0,T.c2)(Je.getPropertyValue(this.itemProperty.widthCSSVar)),Ke=(0,T.c2)(Je.getPropertyValue(this.itemProperty.heightCSSVar));if(ze<0||Ke<0)return void this.logger.warn("Cannot show tile as width or height is less than zero",ze,Ke);const Ve=(0,T.c2)(Je.getPropertyValue(this.itemProperty.maxWidthCSSVar)),$e=(0,T.c2)(Je.getPropertyValue(this.itemProperty.maxHeightCSSVar));ze=Math.min(ze,+Ve),Ke=Math.min(Ke,+$e);const dt=Je.getPropertyValue(this.itemProperty.marginCSSVar).trim().replace(/\s+/g," ").split(" "),[Pe,...J]=dt,vt=this.parseMargin(Pe,...J);this.extraMargin=parseInt(Je.getPropertyValue(this.containerLeftMarginStr),10),this.extraMarginHeight=parseInt(Je.getPropertyValue(this.containerTopMarginStr),10);const ve=parseInt(vt.left,10),ue=parseInt(vt.right,10);this.spatialNavigationSpacingLeft=this.extraMargin+ve,this.spatialNavigationSpacingRight=this.extraMargin+ue,Ke+=parseInt(vt.top,10)+parseInt(vt.bottom,10)+this.extraMarginHeight,ze+=ve+ue;const et=this.carousel.nativeElement.getBoundingClientRect().width;this.itemWidth=ze,this.itemHeight=Ke,this.itemOffsets=[0];let se=0;this.firstPositiveWidthTileIndex=-1,this.items.forEach((be,rt)=>{let me=be.visibility?this.itemWidth:0;be.visibility&&-1===this.firstPositiveWidthTileIndex&&(this.firstPositiveWidthTileIndex=rt),(0===rt||rt===this.items.length-1)&&(me+=this.extraMargin),se+=me,this.itemOffsets.push(se)}),this.itemOffsets=this.itemOffsets.slice(),this.scrollLimit=this.itemOffsets[this.itemOffsets.length-1]-et,this.scrollLimit<this.extraMargin&&(this.scrollLimit=0);const Ce=this.itemWidth>0?Math.floor(et/this.itemWidth):0;this.scrollAmountWithButton=Ce*this.itemWidth,this.enableButtons&&this.updateButtonVisibility(),this.initialized=!0,this.changeDetector.detectChanges()}jumpToTile(Je){this.scrollLeft=Math.min(this.scrollLimit,this.itemWidth*(Je-this.firstPositiveWidthTileIndex))}moveRightValue(Je){const ze=this.container.getElementRef().nativeElement.scrollLeft+Je;this.animateScrollLeft(ze)}moveLeftValue(Je){const ze=this.container.getElementRef().nativeElement.scrollLeft-Je;this.animateScrollLeft(ze)}moveRight(Je){this.moveRightValue(this.scrollAmountWithButton)}moveLeft(Je){this.moveLeftValue(this.scrollAmountWithButton)}cancelScrollAnimationIfNeeded(){this.animationSubscription?.unsubscribe(),this.animationSubscription=null}animateScrollLeft(Je){this.cancelScrollAnimationIfNeeded();const ze=new E.ti(this.container.getElementRef().nativeElement,Je,0,{duration:this.animationDuration,easingFunction:this.easingFunction});ze.onScrollEnd().pipe((0,r.s)(1),(0,l.Q)(this.destroy$)).subscribe(()=>{this.updateButtonVisibility()}),this.animationSubscription=ze.start().pipe((0,l.Q)(this.destroy$)).subscribe()}resizeCarousel(){setTimeout(()=>{this.initCarousel(),this.hasFocusedItem?this.scrollFocusedItemIntoViewport():this.scrollLeft=0})}scrollFocusedItemIntoViewport(){return(0,g.zV)([this.spatialNavigationService.isFullyInViewport(document.activeElement),this.spatialNavigationService.isFullyInViewport(this.carousel.nativeElement)]).pipe((0,r.s)(1),(0,l.Q)(this.destroy$)).subscribe(([Je,ze])=>{Je&&ze||(this.carousel.nativeElement.scrollIntoView({behavior:"smooth",block:"center"}),this.jumpToTile(this.currentFocusedIndex))})}childrenChanged(){this.initCarousel()}onMouseEnter(){this.enableButtons&&(this.carouselButtonsVisibility=!0,this.changeDetector.detectChanges())}onMouseLeave(){this.enableButtons&&(this.carouselButtonsVisibility=!1,this.changeDetector.detectChanges())}onScroll(Je){this.enableButtons&&this.updateButtonVisibility()}focusFirstTile(){this.focusBackDirective.focusInitialFocusable()}updateButtonVisibility(){const Je="ltr"===this.carouselDirection?Math.floor(this.scrollLeft)>0:Math.floor(this.scrollLimit-this.scrollLeft)>0;Je!==this.showLeftCarouselButton&&(this.showLeftCarouselButton=Je);const ze="ltr"===this.carouselDirection?Math.floor(this.scrollLimit-this.scrollLeft)>0:Math.floor(this.scrollLeft)>0;ze!==this.showRightCarouselButton&&(this.showRightCarouselButton=ze),this.ngZone.run(()=>{this.changeDetector.detectChanges()})}ngOnDestroy(){this.cancelScrollAnimationIfNeeded(),this.destroy$.next(!0),this.destroy$.complete(),this.carousel.nativeElement.removeEventListener("navnotarget",this.navNoTarget)}tileIdentity(Je,ze){return ze.id}static{this.\u0275fac=function(ze){return new(ze||Ge)(i.rXU(k.J6),i.rXU(k.iH),i.rXU(i.SKi),i.rXU(E.ED),i.rXU(i.gRc))}}static{this.\u0275cmp=i.VBU({type:Ge,selectors:[["nv-hig-carousel"]],viewQuery:function(ze,Ke){if(1&ze&&(i.GBs(X,5),i.GBs(q,5,i.aKT),i.GBs(Q,5,i.aKT),i.GBs(Q,5),i.GBs(U.b,5)),2&ze){let Ve;i.mGM(Ve=i.lsd())&&(Ke.wrapper=Ve.first),i.mGM(Ve=i.lsd())&&(Ke.sizingElement=Ve.first),i.mGM(Ve=i.lsd())&&(Ke.carousel=Ve.first),i.mGM(Ve=i.lsd())&&(Ke.container=Ve.first),i.mGM(Ve=i.lsd())&&(Ke.focusBackDirective=Ve.first)}},inputs:{items:"items",template:"template",itemProperty:"itemProperty",containerLeftMarginStr:"containerLeftMarginStr",containerTopMarginStr:"containerTopMarginStr",mobileMode:"mobileMode",resizeDebounceTime:"resizeDebounceTime"},standalone:!0,features:[i.aNF],decls:8,vars:18,consts:[["container",""],["wrapper",""],["carousel",""],["carouselItem",""],[1,"carousel-container",3,"mouseenter","mouseleave","dir"],[1,"carousel-wrapper"],["orientation","horizontal","nvSpatialNavigationGroup","","navigateAction","focus","nvFocusBack","","nvFast1DSpatialNavigation","",1,"carousel-inner",3,"itemOffsets","minBufferPx","maxBufferPx","enableKeyThrottle","enableSmoothScrolling","spacingLeft","spacingRight","enableFocusBack","containFocus","isRTL"],["class","item-container","nvFastSpatialNavigationItem","",3,"first","last","height","focusin","focusout",4,"cdkVirtualFor","cdkVirtualForOf","cdkVirtualForTrackBy"],[4,"ngIf"],["nvFastSpatialNavigationItem","",1,"item-container",3,"focusin","focusout"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["mat-button","",1,"carousel-button","carousel-button-prev",3,"click","ngClass"],["svgIcon","lt_arrow",1,"carousel-button-icon"],["mat-button","",1,"carousel-button","carousel-button-next",3,"click","ngClass"],["svgIcon","rt_arrow",1,"carousel-button-icon"]],template:function(ze,Ke){if(1&ze){const Ve=i.RV6();i.j41(0,"div",4,0),i.bIt("mouseenter",function(){return i.eBV(Ve),i.Njj(Ke.onMouseEnter())})("mouseleave",function(){return i.eBV(Ve),i.Njj(Ke.onMouseLeave())}),i.j41(2,"div",5,1)(4,"cdk-virtual-scroll-viewport",6,2),i.DNE(6,it,3,11,"div",7),i.k0s()(),i.DNE(7,Fe,5,6,"ng-container",8),i.k0s()}2&ze&&(i.AVh("mobile-view",Ke.mobileMode),i.FS9("dir",Ke.carouselDirection),i.R7$(4),i.xc7("height",Ke.itemHeight,"px"),i.Y8G("itemOffsets",Ke.itemOffsets)("minBufferPx",Ke.itemWidth)("maxBufferPx",2.1*Ke.itemWidth)("enableKeyThrottle",!0)("enableSmoothScrolling",!1)("spacingLeft",Ke.spatialNavigationSpacingLeft)("spacingRight",Ke.spatialNavigationSpacingRight)("enableFocusBack",!Ke.isFirstTileFocused)("containFocus",!0)("isRTL","rtl"===Ke.carouselDirection),i.R7$(2),i.Y8G("cdkVirtualForOf",Ke.items)("cdkVirtualForTrackBy",Ke.tileIdentity),i.R7$(),i.Y8G("ngIf",Ke.enableButtons&&Ke.carouselButtonsVisibility))},dependencies:[h.jI,h.ig,n.d6,G.o,ae.i4,Y.$,U.b,B.u,n.E$,R.n,P.T3,P.bT,S.wG,S.iV,P.YU,M.Cc,M.PW,C.m_,C.An],styles:[".carousel-container{position:relative;overflow:hidden;width:100%}.carousel-wrapper{position:relative;width:100%;max-width:100%;overflow:hidden}.carousel-container .carousel-wrapper .carousel-inner{overflow-y:hidden}.carousel-inner{display:flex;width:100%;overflow-x:auto;overflow-y:hidden;scrollbar-width:none}.carousel-inner .cdk-virtual-scroll-content-wrapper{display:flex;flex-direction:row}.carousel-inner .cdk-virtual-scroll-content-wrapper>.item-container{margin:0;box-sizing:border-box;margin-top:var(--container-top-margin)}:host-context(.isLtr) .carousel-inner .cdk-virtual-scroll-content-wrapper>.first{margin-left:var(--container-left-margin)}html[dir=ltr] .carousel-inner .cdk-virtual-scroll-content-wrapper>.first{--dummy3: 0;margin-left:var(--container-left-margin)}:host-context(.isRtl) .carousel-inner .cdk-virtual-scroll-content-wrapper>.first{margin-right:var(--container-left-margin)}html[dir=rtl] .carousel-inner .cdk-virtual-scroll-content-wrapper>.first{--dummy3: 0;margin-right:var(--container-left-margin)}html[dir=ltr] .carousel-inner .cdk-virtual-scroll-content-wrapper>.last{border-right:var(--container-left-margin) solid transparent}html[dir=rtl] .carousel-inner .cdk-virtual-scroll-content-wrapper>.last{border-left:var(--container-left-margin) solid transparent}.carousel-inner::-webkit-scrollbar{display:none}.carousel-button-icon{font-size:40px;width:40px;height:40px;line-height:40px}.carousel-button{position:absolute;border-width:0;margin:0;padding:0;height:40px;min-width:40px;top:45%;transform:translateY(-45%);z-index:2;opacity:1;visibility:visible;transition:all .2s ease;background:transparent;border-radius:50%!important}.carousel-button.hidden{visibility:hidden;opacity:0}.carousel-button.hover{background:transparent}.carousel-button-prev{left:8px}.carousel-button-next{right:16px}\n"],encapsulation:2,changeDetection:0})}}return Ge})()},52171:(St,z,s)=>{"use strict";s.d(z,{X:()=>S});var i=s(61142),n=s(96542),h=s(58527);function C(M,P){if(1&M&&(h.j41(0,"div",2)(1,"div",3),h.EFF(2),h.nI1(3,"translate"),h.k0s(),h.j41(4,"div",4),h.EFF(5),h.nI1(6,"translate"),h.k0s()()),2&M){const x=P.$implicit;h.R7$(2),h.JRh(h.bMT(3,2,x.primaryText)),h.R7$(3),h.JRh(h.bMT(6,4,x.secondaryText))}}let S=(()=>{class M{constructor(){this.data=[]}static{this.\u0275fac=function(A){return new(A||M)}}static{this.\u0275cmp=h.VBU({type:M,selectors:[["nv-hig-cell-comparison"]],inputs:{data:"data"},standalone:!0,features:[h.aNF],decls:2,vars:1,consts:[[1,"hig-cell-upgrade-container"],["class","hig-cell-upgrade",4,"ngFor","ngForOf"],[1,"hig-cell-upgrade"],[1,"hig-cell-upgrade-primary"],[1,"hig-cell-upgrade-secondary"]],template:function(A,g){1&A&&(h.j41(0,"div",0),h.DNE(1,C,7,6,"div",1),h.k0s()),2&A&&(h.R7$(),h.Y8G("ngForOf",g.data))},dependencies:[i.pM,n.h,n.D9],styles:["[_ngcontent-%COMP%]:root{--rwd-column-count: 4;--rwd-gutter-count: 3 ;--rwd-gutter-size: 8px;--rwd-container-side-spacing: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 3 ) / 4);--rwd-sidebar-width: 0px;--rwd-container-width: 100vw}@media screen and (min-width: 480px){[_ngcontent-%COMP%]:root{--rwd-column-count: 6;--rwd-gutter-count: 5 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 5 ) / 6)}}@media screen and (min-width: 720px){[_ngcontent-%COMP%]:root{--rwd-column-count: 8;--rwd-gutter-count: 7 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 7 ) / 8)}}@media screen and (min-width: 960px){[_ngcontent-%COMP%]:root{--rwd-column-count: 12;--rwd-gutter-count: 11 ;--rwd-container-side-spacing: 24px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 8px * 11 ) / 12)}}@media screen and (min-width: 1440px){[_ngcontent-%COMP%]:root{--rwd-gutter-size: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 16px * 11 ) / 12)}}.hig-cell-upgrade-container[_ngcontent-%COMP%]{margin-top:16px;display:flex;flex-direction:column;gap:16px}.hig-cell-upgrade-container[_ngcontent-%COMP%] .hig-cell-upgrade[_ngcontent-%COMP%]{padding:16px;background:radial-gradient(112.74% 94.84% at 77.07% 0%,#ccc3,#ccc0 54.61%),#64646466}.hig-cell-upgrade-container[_ngcontent-%COMP%] .hig-cell-upgrade-primary[_ngcontent-%COMP%]{--font-header-font-size: 24px;--font-header-line-height: 32px;font-family:NVIDIA,sans-serif;color:var(--hig-ui-text-primary-color);font-style:normal;text-transform:none;font-size:var(--font-header-font-size);line-height:var(--font-header-line-height);letter-spacing:0;font-weight:500}.tv-view[_ngcontent-%COMP%] .hig-cell-upgrade-container[_ngcontent-%COMP%] .hig-cell-upgrade-primary[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .hig-cell-upgrade-container[_ngcontent-%COMP%] .hig-cell-upgrade-primary[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .hig-cell-upgrade-container[_ngcontent-%COMP%] .hig-cell-upgrade-primary[_ngcontent-%COMP%]{--font-header-font-size: 48px;--font-header-line-height: 64px}.hig-cell-upgrade-container[_ngcontent-%COMP%] .hig-cell-upgrade-secondary[_ngcontent-%COMP%]{--font-body-color: var(--hig-ui-text-secondary-color);--font-body-size: 14px;--font-body-line-height: 20px;font-family:NVIDIA,sans-serif;color:var(--font-body-color);font-weight:400;font-style:normal;text-transform:none;font-size:var(--font-body-size);line-height:var(--font-body-line-height);letter-spacing:0}.tv-view[_ngcontent-%COMP%] .hig-cell-upgrade-container[_ngcontent-%COMP%] .hig-cell-upgrade-secondary[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .hig-cell-upgrade-container[_ngcontent-%COMP%] .hig-cell-upgrade-secondary[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .hig-cell-upgrade-container[_ngcontent-%COMP%] .hig-cell-upgrade-secondary[_ngcontent-%COMP%]{--font-body-size: 28px;--font-body-line-height: 40px;--font-body-color: rgba(255, 255, 255, .85)}@media (max-width: 479px){.hig-cell-upgrade-container[_ngcontent-%COMP%] .hig-cell-upgrade-primary[_ngcontent-%COMP%]{--font-header-font-size: 20px;--font-header-line-height: 28px;font-family:NVIDIA,sans-serif;color:var(--hig-ui-text-primary-color);font-style:normal;text-transform:none;font-size:var(--font-header-font-size);line-height:var(--font-header-line-height);letter-spacing:0;font-weight:500}.tv-view[_ngcontent-%COMP%] .hig-cell-upgrade-container[_ngcontent-%COMP%] .hig-cell-upgrade-primary[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .hig-cell-upgrade-container[_ngcontent-%COMP%] .hig-cell-upgrade-primary[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .hig-cell-upgrade-container[_ngcontent-%COMP%] .hig-cell-upgrade-primary[_ngcontent-%COMP%]{--font-header-font-size: 40px;--font-header-line-height: 56px}}.tv-view[_nghost-%COMP%] .hig-cell-upgrade-container[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .hig-cell-upgrade-container[_ngcontent-%COMP%]{gap:32px}"]})}}return M})()},77970:(St,z,s)=>{"use strict";s.d(z,{w:()=>bn});var i=s(58527),n=s(76706),h=s(96542),C=s(31308),S=s(29370),M=s(47973),P=s(51394),x=s(3457),A=s(28139),g=s(61142),m=s(26875),r=s(80583),u=s(36877),v=s(12532),E=s(892),T=s(4208),R=s(8619),B=s(62931),U=s(91384),Y=s(14714),ae=s(43615),G=s(71152),k=s(73318),X=s(97363),q=s(13458),Q=s(46964),ce=s(40514),te=s(60990),Ee=s(54504),it=s(97888),Fe=s(2218),Qe=s(92602),ct=s(94222),Ge=s(21684);const nt=["marqueeContainer"],Je=["paginator"],ze=["marqueeTileContainerList"],Ke=["paginatorList"],Ve=(Ut,Bt,Le,V,de,ge,Ft,Wt,Kt)=>({"mobile-view":Ut,"tv-mode":Bt,"phone-marquee":Le,"paginator-navigation":V,"full-bleed-item":de,"full-bleed-item-not-first-position":ge,"no-bg-overhang":Ft,"custom-bg":Wt,"fallback-image-item":Kt}),$e=(Ut,Bt,Le,V)=>({fadeInMarquee:Ut,"padded-image-container":Bt,"full-bleed-image-container":Le,hidden:V}),dt=Ut=>({"no-mask":Ut}),Pe=(Ut,Bt)=>({fadeInMarqueeDescription:Ut,hidden:Bt}),J=(Ut,Bt)=>({"marquee-tile-background-gradient":Ut,"marquee-tile-background-fallback-gradient":Bt}),vt=Ut=>({"marquee-tile-data":Ut}),ve=Ut=>({"no-bg-overhang":Ut});function ue(Ut,Bt){if(1&Ut){const Le=i.RV6();i.j41(0,"img",20),i.bIt("load",function(){i.eBV(Le);const de=i.XpG(3);return i.Njj(de.marqueeImageLoadComplete())})("error",function(){i.eBV(Le);const de=i.XpG(3);return i.Njj(de.fallbackToPlaceholderImage())}),i.k0s()}if(2&Ut){const Le=i.XpG(3);i.Y8G("src",Le.marqueeImageUrl,i.B4B)("ngClass",i.eq3(2,dt,Le.imageMaskDisabled))}}function et(Ut,Bt){if(1&Ut&&(i.j41(0,"div",18),i.DNE(1,ue,1,4,"img",19),i.k0s()),2&Ut){const Le=Bt.$implicit,V=i.XpG(2);i.Y8G("ngClass",i.ziG(2,$e,Le.isVisible&&V.enableAnimation,Le.imageType===V.tileOption.PaddedImage&&!V.tileIsShowingFallbackImage,Le.imageType===V.tileOption.FullBleedImage||V.tileIsShowingFallbackImage,V.enableContentVisibilityOptimization&&!Le.isVisible)),i.R7$(),i.Y8G("ngIf",Le.isVisible)}}function se(Ut,Bt){if(1&Ut&&(i.j41(0,"div",22),i.nrm(1,"div",23),i.j41(2,"div",24),i.EFF(3),i.k0s()()),2&Ut){const Le=i.XpG().$implicit;i.R7$(3),i.JRh(Le.app.promoTag)}}function Ce(Ut,Bt){if(1&Ut&&(i.j41(0,"div"),i.DNE(1,se,4,1,"div",21),i.k0s()),2&Ut){const Le=Bt.$implicit;i.R7$(),i.Y8G("ngIf",Le.isVisible&&Le.app.promoTag)}}function be(Ut,Bt){if(1&Ut&&i.nrm(0,"div",18),2&Ut){const Le=i.XpG(5);i.Y8G("ngClass",i.l_i(1,J,Le.hasMarqueeScrim,!Le.hasMarqueeScrim))}}function rt(Ut,Bt){1&Ut&&i.nrm(0,"div",33)}function me(Ut,Bt){1&Ut&&i.nrm(0,"div",34)}function le(Ut,Bt){1&Ut&&i.nrm(0,"div",35)}function Xe(Ut,Bt){if(1&Ut&&(i.j41(0,"div",28),i.DNE(1,be,1,4,"div",29)(2,rt,1,0,"div",30)(3,me,1,0,"div",31)(4,le,1,0,"div",32),i.k0s()),2&Ut){const Le=i.XpG().$implicit;i.R7$(),i.Y8G("ngIf",Le.gradients.background&&!Le.isShowingFallbackImage),i.R7$(),i.Y8G("ngIf",Le.gradients.leftEdge&&!Le.isShowingFallbackImage),i.R7$(),i.Y8G("ngIf",Le.gradients.leftMerge&&!Le.isShowingFallbackImage),i.R7$(),i.Y8G("ngIf",Le.gradients.bottomEdge)}}function Se(Ut,Bt){if(1&Ut&&(i.j41(0,"div",26),i.DNE(1,Xe,5,4,"div",27),i.k0s()),2&Ut){const Le=Bt.$implicit,V=i.XpG(3);i.Y8G("ngClass",i.l_i(2,Pe,Le.isVisible&&V.enableAnimation,V.enableContentVisibilityOptimization&&!Le.isVisible)),i.R7$(),i.Y8G("ngIf",Le.isVisible)}}function fe(Ut,Bt){if(1&Ut&&(i.qex(0),i.DNE(1,Se,2,5,"div",25),i.bVm()),2&Ut){const Le=i.XpG(2);i.R7$(),i.Y8G("ngForOf",Le.marqueeData)}}function Ne(Ut,Bt){if(1&Ut&&(i.j41(0,"div",46),i.EFF(1),i.k0s()),2&Ut){const Le=i.XpG(5);i.xc7("color",Le.fontColor),i.R7$(),i.SpI(" ",Le.appTitle," ")}}function ye(Ut,Bt){if(1&Ut){const Le=i.RV6();i.j41(0,"img",47),i.bIt("error",function(){i.eBV(Le);const de=i.XpG(5);return i.Njj(de.fallbackToAppLogo())}),i.k0s()}if(2&Ut){const Le=i.XpG(5);i.Y8G("src",Le.appLogoUrl,i.B4B)}}function Ot(Ut,Bt){if(1&Ut&&(i.j41(0,"div",48),i.EFF(1),i.k0s()),2&Ut){const Le=i.XpG(5);i.R7$(),i.SpI(" ",Le.appSubtitle," ")}}function sn(Ut,Bt){if(1&Ut&&(i.j41(0,"div",49),i.EFF(1),i.k0s()),2&Ut){const Le=i.XpG(3).$implicit;i.R7$(),i.SpI(" ",Le.app.additionalSubtitle," ")}}function dn(Ut,Bt){if(1&Ut){const Le=i.RV6();i.j41(0,"div",39),i.DNE(1,Ne,2,3,"div",40)(2,ye,1,1,"img",41),i.j41(3,"div",42),i.DNE(4,Ot,2,1,"div",43)(5,sn,2,1,"div",44),i.k0s(),i.j41(6,"button",45),i.bIt("click",function(de){i.eBV(Le);const ge=i.XpG(2).$implicit,Ft=i.XpG(2);return i.Njj(Ft.onViewAppDetails(de,ge.app))}),i.EFF(7),i.nI1(8,"translate"),i.k0s()()}if(2&Ut){const Le=i.XpG(2).$implicit,V=i.XpG(2);i.R7$(),i.Y8G("ngIf",!V.phoneMarqueeEnabled&&V.appTitle),i.R7$(),i.Y8G("ngIf",!V.appTitle),i.R7$(),i.xc7("color",V.fontColor),i.R7$(),i.Y8G("ngIf",V.appSubtitle),i.R7$(),i.Y8G("ngIf",Le.app.additionalSubtitle),i.R7$(2),i.SpI(" ",i.bMT(8,7,"common.viewDetails")," ")}}function yn(Ut,Bt){if(1&Ut){const Le=i.RV6();i.j41(0,"button",55),i.bIt("click",function(de){i.eBV(Le);const ge=i.XpG(3).$implicit,Ft=i.XpG(2);return i.Njj(Ft.onActionClicked(de,ge.app.action,Ft.position,ge.app.id))}),i.EFF(1),i.k0s()}if(2&Ut){const Le=i.XpG(3).$implicit;i.R7$(),i.SpI(" ",Le.app.action.label," ")}}function At(Ut,Bt){if(1&Ut&&(i.j41(0,"div",56),i.EFF(1),i.k0s()),2&Ut){const Le=i.XpG(3).$implicit;i.R7$(),i.SpI(" ",Le.app.action.infoText," ")}}function Vt(Ut,Bt){if(1&Ut&&(i.j41(0,"div",50)(1,"div",51),i.EFF(2),i.k0s(),i.nrm(3,"div",52),i.DNE(4,yn,2,1,"button",53)(5,At,2,1,"div",54),i.k0s()),2&Ut){const Le=i.XpG(2).$implicit;i.R7$(),i.Y8G("isMultiLineEllipsis",!0),i.R7$(),i.SpI(" ",Le.app.title," "),i.R7$(),i.Y8G("isMultiLineEllipsis",!0)("innerHTML",null==Le.app?null:Le.app.body,i.npT),i.R7$(),i.Y8G("ngIf",(null==Le.app||null==Le.app.action||null==Le.app.action.label?null:Le.app.action.label.length)>0),i.R7$(),i.Y8G("ngIf",!(null==Le.app.action||!Le.app.action.infoText))}}function Qt(Ut,Bt){if(1&Ut&&(i.j41(0,"div",18),i.DNE(1,dn,9,9,"div",37)(2,Vt,6,6,"div",38),i.k0s()),2&Ut){const Le=i.XpG().$implicit,V=i.XpG(2);i.Y8G("ngClass",i.eq3(3,vt,Le.contentOverlayType!==V.tileOption.FullBleedImage)),i.R7$(),i.Y8G("ngIf",Le.contentOverlayType!==V.tileOption.FullBleedImage),i.R7$(),i.Y8G("ngIf",Le.contentOverlayType===V.tileOption.FullBleedImage)}}function Jt(Ut,Bt){if(1&Ut&&(i.j41(0,"div",36,1),i.DNE(2,Qt,3,5,"div",29),i.k0s()),2&Ut){const Le=Bt.$implicit,V=i.XpG(2);i.Y8G("ngClass",i.l_i(2,Pe,Le.isVisible&&V.enableAnimation,V.enableContentVisibilityOptimization&&!Le.isVisible)),i.R7$(2),i.Y8G("ngIf",Le.isVisible)}}function Zt(Ut,Bt){if(1&Ut){const Le=i.RV6();i.j41(0,"button",57,2),i.nI1(2,"translate"),i.bIt("click",function(){i.eBV(Le);const de=i.XpG(2);return i.Njj(de.prevSlide())}),i.nrm(3,"mat-icon",58),i.k0s()}2&Ut&&i.BMQ("aria-label",i.bMT(2,1,"marquee.previous"))}function nn(Ut,Bt){if(1&Ut){const Le=i.RV6();i.j41(0,"button",59,3),i.nI1(2,"translate"),i.bIt("click",function(){i.eBV(Le);const de=i.XpG(2);return i.Njj(de.nextSlide())}),i.nrm(3,"mat-icon",60),i.k0s()}2&Ut&&i.BMQ("aria-label",i.bMT(2,1,"marquee.next"))}function Xt(Ut,Bt){if(1&Ut){const Le=i.RV6();i.j41(0,"li",63,5),i.bIt("click",function(){const de=i.eBV(Le).$implicit,ge=i.XpG(3);return i.Njj(ge.goToSlide(de))})("focusin",function(){const de=i.eBV(Le).$implicit,ge=i.XpG(3);return i.Njj(ge.goToSlide(de))}),i.k0s()}if(2&Ut){const Le=Bt.$implicit,V=i.XpG(3);i.AVh("active",Le===V.position),i.BMQ("tabindex",V.enablePaginatorNavigation?0:null)}}function lt(Ut,Bt){if(1&Ut&&(i.j41(0,"ul",61,4),i.DNE(2,Xt,2,3,"li",62),i.k0s()),2&Ut){const Le=i.XpG(2);i.BMQ("tabindex",Le.enablePaginatorNavigation?0:null),i.R7$(2),i.Y8G("ngForOf",Le.slideAccessor)}}function Ue(Ut,Bt){1&Ut&&i.nrm(0,"div",64)}function wt(Ut,Bt){if(1&Ut){const Le=i.RV6();i.j41(0,"div",9,0),i.bIt("swipeleft",function(){i.eBV(Le);const de=i.XpG();return i.Njj(de.swipeLeft())})("swiperight",function(){i.eBV(Le);const de=i.XpG();return i.Njj(de.swipeRight())})("click",function(){i.eBV(Le);const de=i.XpG();return i.Njj(de.cancelAutoSlide())}),i.DNE(2,et,2,7,"div",10)(3,Ce,2,1,"div",11)(4,fe,2,1,"ng-container",12)(5,Jt,3,5,"div",13)(6,Zt,4,3,"button",14)(7,nn,4,3,"button",15)(8,lt,3,2,"ul",16)(9,Ue,1,0,"div",17),i.k0s()}if(2&Ut){const Le=i.XpG();i.xc7("--scrim-color",Le.scrimColor)("--dismiss-ratio",Le.dismissRatio),i.Y8G("ngClass",i.zJS(14,Ve,[Le.mobileMode,Le.tvMode,Le.phoneMarqueeEnabled,Le.enablePaginatorNavigation,Le.isTileTypeFullBleedImage,Le.isTileTypeFullBleedImageNotAtFirst,!1===Le.backgroundOverhangEnabled,Le.containerCustomBackground,Le.tileIsShowingFallbackImage])),i.BMQ("tabindex",Le.enablePaginatorNavigation?0:null),i.R7$(2),i.Y8G("ngForOf",Le.marqueeData),i.R7$(),i.Y8G("ngForOf",Le.marqueeData),i.R7$(),i.Y8G("ngIf",!Le.phoneMarqueeEnabled),i.R7$(),i.Y8G("ngForOf",Le.marqueeData),i.R7$(),i.Y8G("ngIf",0!==Le.position),i.R7$(),i.Y8G("ngIf",Le.position!==Le.marqueeData.length-1),i.R7$(),i.Y8G("ngIf",(null==Le.marqueeData?null:Le.marqueeData.length)>1),i.R7$(),i.Y8G("ngIf",Le.useMarqueeScrim)}}function gt(Ut,Bt){if(1&Ut&&(i.j41(0,"div",65),i.nrm(1,"nv-hig-progress-circular"),i.k0s()),2&Ut){const Le=i.XpG();i.Y8G("ngClass",i.eq3(1,ve,!1===Le.backgroundOverhangEnabled))}}function Ht(Ut,Bt){if(1&Ut&&(i.j41(0,"div",66)(1,"span",67),i.EFF(2),i.nI1(3,"translate"),i.nrm(4,"br"),i.EFF(5),i.nI1(6,"translate"),i.k0s()()),2&Ut){const Le=i.XpG();i.Y8G("ngClass",i.eq3(7,ve,!1===Le.backgroundOverhangEnabled)),i.R7$(2),i.SpI("",i.bMT(3,3,"common.genericLoadError")," "),i.R7$(3),i.JRh(i.bMT(6,5,"common.connectionError"))}}let bn=(()=>{class Ut{set tileData(Le){this._tileData=Le,this.refreshMarquee(!0)}get tileData(){return this._tileData}set imageOverrides(Le){(0,m.isEqual)(this._imageOverrides,Le)||(this._imageOverrides=Le,this.updateImageOverrides())}get imageOverrides(){return this._imageOverrides}get elementRef(){return this._elementRef}get tileOption(){return X.t}get hasMarqueeScrim(){return this._hasMarqueeScrim}set hasMarqueeScrim(Le){this._hasMarqueeScrim=Le}get hasFocus(){return this.marqueeContainer.nativeElement.contains(this.focusManager.currentFocusedElement)}get hasFocusable(){return!!this.focusManager.getInitialFocusable(this.marqueeContainer.nativeElement)}constructor(Le,V,de,ge,Ft,Wt,Kt,cn,En,kn){this.imageFormatService=de,this.networkStatusService=ge,this.localeService=Ft,this.breakpointObserver=Wt,this.spatialNavigationService=Kt,this.focusManager=cn,this.changeDetector=En,this.imageFetcher=kn,this.useMarqueeScrim=!1,this.phoneMarqueeEnabled=!1,this.mobileMode=!1,this.tvMode=!1,this.dismissRatio=0,this.enablePaginatorNavigation=!1,this.enableAnimation=!0,this.enableContentVisibilityOptimization=!1,this.actionClicked=new i.bkB,this.viewAppDetails=new i.bkB,this.imageLoadFailure=new i.bkB,this.marqueeScrolled=new i.bkB,this.paginatorRepositioned=new i.bkB,this.initialized=new i.bkB,this.beforeChangeSlide=new i.bkB,this.marqueeAutoScrollCancelled=new i.bkB,this.slideAccessor=[],this.position=0,this.busyLoadingMarquee=!0,this.errorVisible=!1,this.isTileTypeFullBleedImage=!1,this.isTileTypeFullBleedImageNotAtFirst=!1,this.tileIsShowingFallbackImage=!1,this.globalFallbackImage=X.X,this.globalFallbackImageType=X.t.FullBleedImage,this.formatImages=!0,this.backgroundOverhangEnabled=!0,this.imageMaskDisabled=!1,this.containerCustomBackground=!1,this.contentOverlayType=X.t.FullBleedImage,this.isHandsetPortrait=!1,this.ismarketingTileReloaded=!1,this.autoScrollInterval=5e3,this.autoScroll=!0,this._elementRef=Le,this.logger=V.getLogger("hig/MarqueeComponent"),this.destroy$=new r.B7}ngOnInit(){this.gradientOverrides&&(this.bottomEdgeGradientEnabled=this.gradientOverrides.bottomEdge??this.bottomEdgeGradientEnabled,this.leftEdgeGradientEnabled=this.gradientOverrides.leftEdge??this.leftEdgeGradientEnabled,this.leftMergeGradientEnabled=this.gradientOverrides.leftMerge??this.leftMergeGradientEnabled,this.backgroundGradientEnabled=this.gradientOverrides.background??this.backgroundGradientEnabled,this.backgroundOverhangEnabled=this.gradientOverrides.backgroundOverhang??this.backgroundOverhangEnabled),this.constructMarquee(),this.switchableImageConfig&&(this.breakpointObserver.observe(`(min-width: ${this.switchableImageConfig.breakpointPx}px)`).pipe((0,T.Q)(this.destroy$)).subscribe(Le=>{Le.matches&&(this.overrideImageType(this.switchableImageConfig.alternate),this.changeDetector.detectChanges())}),this.breakpointObserver.observe(`(max-width: ${this.switchableImageConfig.breakpointPx-1}px)`).pipe((0,T.Q)(this.destroy$)).subscribe(Le=>{Le.matches&&(this.overrideImageType(this.switchableImageConfig.default),this.changeDetector.detectChanges())})),this.networkStatusService.onlineStatusChanged.pipe((0,R.p)(Le=>!0===Le)).pipe((0,T.Q)(this.destroy$)).subscribe(()=>{this.refreshMarquee(),this.changeDetector.detectChanges()}),this.phoneMarqueeEnabled&&(this.breakpointObserver.observe(n.Rp.HandsetPortrait).pipe((0,T.Q)(this.destroy$)).subscribe(Le=>{this.isHandsetPortrait=Le.matches,this.updateMarqueeImageUrl(this.tileInFocus.app),this.notifyPaginatorRepositioned(),this.changeDetector.detectChanges()}),G._4.onResize(this.marqueeContainer.nativeElement).pipe((0,B.B)(200),(0,T.Q)(this.destroy$)).subscribe(Le=>{this.notifyPaginatorRepositioned()}))}updateImageOverrides(){if(this.globalFallbackImage=this.imageOverrides?.globalFallbackImageUrl??this.globalFallbackImage,this.globalFallbackImageType=this.imageOverrides?.globalFallbackImageType??this.globalFallbackImageType,this.formatImages=this.imageOverrides?.formatImages??this.formatImages,this.imageMaskDisabled=this.imageOverrides?.disableMask??this.imageMaskDisabled,this.containerCustomBackground=this.imageOverrides?.customBackground??this.containerCustomBackground,this.switchableImageConfig=this.imageOverrides?.switchableImageConfig,!(0,m.isEmpty)(this.marqueeData)&&((0,m.isNil)(this.tileData)||(0,m.isEmpty)(this.tileData))){const V={fallbackImage:this.globalFallbackImage,type:this.globalFallbackImageType};this.marqueeData=[{...this.marqueeData[0],app:V}],this.updateImageTypeByIndex(0,V.type,this.globalFallbackImageType!==X.t.PaddedImage)}}overrideImageType(Le){this.marqueeData=this.marqueeData?.map(V=>(V.imageType=Le,V)),this.updateImageTypeByIndex(this.position,Le,this.marqueeData[this.position].isShowingFallbackImage)}ngAfterViewInit(){this.spatialNavigationService.enabled&&this.enablePaginatorNavigation&&((0,u.R)(this.marqueeContainer?.nativeElement,"navbeforefocus").pipe((0,T.Q)(this.destroy$)).subscribe(this.onContainerNavBeforeFocus.bind(this)),(0,u.R)(this.marqueeContainer?.nativeElement,"navnotarget").pipe((0,R.p)(Le=>Le.target===this.marqueeContainer?.nativeElement&&(0,k.o3)(Le.detail.dir)),(0,T.Q)(this.destroy$)).subscribe(this.navigateMarqueeSlide.bind(this))),this.initialized.emit()}onContainerNavBeforeFocus(Le){this.hasFocus?this.navigateWithinMarquee(Le):this.navigateIntoMarquee(Le)}navigateIntoMarquee(Le){let V;switch(Le.detail.dir){case"up":V=this.paginatorList.get(this.position)?.nativeElement;break;case"down":case"left":case"right":V=this.focusManager.getFirstFocusableChild(this.marqueeTileContainerList.get(this.position).nativeElement)}V||(V=this.paginatorList.get(this.position)?.nativeElement),V&&(Le.preventDefault(),this.focusManager.focusViaLastOrigin(V))}navigateWithinMarquee(Le){const V=this.marqueeTileContainerList.get(this.position).nativeElement.contains(this.focusManager.currentFocusedElement),de=this.paginator.nativeElement.contains(Le.target),ge=this.marqueeTileContainerList.get(this.position).nativeElement.contains(Le.target);if(V&&de&&(0,k.o3)(Le.detail.dir))this.navigateMarqueeSlide(Le),Le.preventDefault();else if(Le.target===this.paginator?.nativeElement)Le.preventDefault(),this.focusManager.focusViaLastOrigin(this.paginatorList.get(this.position)?.nativeElement);else if(ge&&(0,k.o3)(Le.detail.dir)){Le.preventDefault();const Ft=this.spatialNavigationService.findNextTarget(Le.target,Le.detail.dir);Ft&&!this.marqueeContainer.nativeElement.contains(Ft)&&this.focusManager.navigateTo(Ft,Le.detail.dir)}}navigateMarqueeSlide(Le){let V=!1;V=(this.localeService.isRTLLayoutEnabled?"left"===Le.detail.dir:"right"===Le.detail.dir)?this.nextSlide():this.prevSlide(),V&&(Le.preventDefault(),this.changeDetector.detectChanges())}notifyPaginatorRepositioned(){setTimeout(()=>{const Le=this.marqueeContainer?.nativeElement.getBoundingClientRect().top;let V,de;void 0!==this.paginator?.nativeElement?(V=this.paginator?.nativeElement.getBoundingClientRect().bottom,de=parseInt(getComputedStyle(this.paginator?.nativeElement).getPropertyValue("margin-bottom"),10)):(V=this.marqueeTileContainerList.get(this.position).nativeElement.getBoundingClientRect().bottom,de=32),void 0!==V&&void 0!==Le&&this.paginatorRepositioned.next(Math.floor(V+de-Le))})}constructMarquee(){this.marqueeData=[],this.slideAccessor=[];const Le=(0,m.isNil)(this.tileData)||(0,m.isEmpty)(this.tileData);if(Le){const V={heroImage:this.globalFallbackImage,marqueeHeroImage:this.globalFallbackImage,type:this.globalFallbackImageType};this.marqueeData.push({isVisible:!1,app:V,gradients:this.getGradientConfig(V),contentOverlayType:this.getContentOverlayType(V),imageType:V.type,isShowingFallbackImage:this.globalFallbackImageType!==X.t.PaddedImage}),this.updateImageTypeByIndex(0,V.type,this.marqueeData[0].isShowingFallbackImage)}else this.tileData.forEach((V,de)=>{this.marqueeData.push({isVisible:!1,app:V,gradients:this.getGradientConfig(V),contentOverlayType:this.getContentOverlayType(V),imageType:V.type,isShowingFallbackImage:Le}),this.slideAccessor.push(de)});this.logger.info("Marquee Initialization"),this.errorVisible=!1,this.marqueeInitialization(),this.busyLoadingMarquee=!1,this.ismarketingTileReloaded=!0}getGradientConfig(Le){return{bottomEdge:this.bottomEdgeGradientEnabled??Le.type===X.t.FullBleedImage,leftEdge:this.leftEdgeGradientEnabled??Le.type===X.t.PaddedImage,leftMerge:this.leftMergeGradientEnabled??!1,background:this.backgroundGradientEnabled??Le.type===X.t.PaddedImage,backgroundOverhang:this.backgroundOverhangEnabled??!0}}getContentOverlayType(Le){return this.overlayOverrides?this.overlayOverrides.contentOverlayType:Le.type}updateMetaData(Le){const V=Le.app;this.appLogoUrl=V.logoImage?this.formatImages?this.imageFormatService.formatImageServiceUrl(V.logoImage):V.logoImage:null,this.updateMarqueeImageUrl(V)}updateMarqueeImageUrl(Le){let V,de;if(this.phoneMarqueeEnabled&&this.isHandsetPortrait?(V={w:960},de=Le.heroImage):(V={w:1920},de=Le.marqueeHeroImage),de){const ge=this.formatImages?this.imageFormatService.formatImageServiceUrl(de,V):de;this.imageFetcher?this.fetchImageAndColors(Le,ge):(this.isTileTypeFullBleedImage&&(this.scrimColor="0, 0, 0",this.hasMarqueeScrim=!0),this.marqueeImageUrl=ge,this.changeDetector.detectChanges())}else this.marqueeImageUrl=null,this.changeDetector.detectChanges()}fetchImageAndColors(Le,V){this.logger.info("image fetch started "+V);let de,ge=null;this.imageFetchSubsciption?.unsubscribe(),this.imageFetchSubsciption=this.imageFetcher.fetchImage(V).pipe((0,U.M)(Ft=>{if(ge=Ft.imageUrl,Ft.metadata?.colors){const Wt=Ft.metadata.colors;let Kt;Kt=this.phoneMarqueeEnabled&&this.isHandsetPortrait&&Wt.bottom?Wt.bottom:this.localeService.isRTLLayoutEnabled&&Wt.right||Wt.left,Kt&&(de=(0,G.iN)(Kt))}}),(0,Y.W)(Ft=>(this.logger.error("Failed to fetch image:",Ft),v.w)),(0,ae.j)(()=>{Le==this.tileInFocus.app&&(this.tileInFocus.isShowingFallbackImage=!1,this.updateImageTypeByIndex(this.position,this.tileInFocus?.imageType,this.tileInFocus.isShowingFallbackImage),this.marqueeImageUrl=ge,de=de||{r:0,g:0,b:0},this.scrimColor=`${de.r}, ${de.g}, ${de.b}`,this.fontColor=(0,G.VP)(de),this.hasMarqueeScrim=!0,this.changeDetector.detectChanges(),this.logger.info("image loaded "+this.marqueeImageUrl))})).subscribe()}marqueeInitialization(){this.position=0,this.marqueeData[this.position]&&(this.marqueeData[this.position].isVisible=!0),this.setSlideMetaData(0),this.initAutoScroll()}setSlideMetaData(Le){this.marqueeData[Le]&&(this.tileInFocus=this.marqueeData[Le],this.updateImageTypeByIndex(Le,this.tileInFocus?.imageType,this.tileInFocus.isShowingFallbackImage),this.resetData(),this.updateMetaData(this.tileInFocus),this.isTileTypeFullBleedImage||(this.appSubtitle=this.tileInFocus.app.subtitle))}updateImageTypeByIndex(Le,V,de){this.tileIsShowingFallbackImage=de,this.isTileTypeFullBleedImage=V===X.t.FullBleedImage,this.isTileTypeFullBleedImageNotAtFirst=this.isTileTypeFullBleedImage&&Le>0}resetData(){this.marqueeImageUrl=null,this.appLogoUrl=null,this.appTitle=null,this.hasMarqueeScrim=!1,this.scrimColor=null,this.fontColor="white",this.appSubtitle=null}initAutoScroll(){this.autoScroll&&(this.marqueeIterator=(0,E.Y)(this.autoScrollInterval),this.marqueeIteratorSubscription?.unsubscribe(),this.marqueeIteratorSubscription=this.marqueeIterator.pipe((0,R.p)(()=>document?.hasFocus()&&0==this.dismissRatio&&this.paginator?.nativeElement.getBoundingClientRect().bottom>0)).subscribe(()=>this.autoScrollNext()))}goToSlide(Le){this.position!==Le&&(this.changeSlide(Le),this.pause(),this.marqueeScrolled.emit({position:this.position,autoScrolled:this.autoScroll}))}changeSlide(Le){this.beforeChangeSlide.emit(Le);const V=this.marqueeContainer.nativeElement.contains(this.focusManager.currentFocusedElement),de=this.marqueeTileContainerList.get(this.position).nativeElement.contains(this.focusManager.currentFocusedElement);this.marqueeData.map((Ft,Wt)=>{Ft.isVisible=Wt===Le});const ge=this.position;if(this.position=Le,this.setSlideMetaData(this.position),this.spatialNavigationService.enabled&&this.enablePaginatorNavigation&&V){let Ft=this.position-ge;Ft*=this.localeService.isRTLLayoutEnabled?-1:1;const Kt=(0,G.Ms)(window,Ft>0?G.F0.ArrowRight:G.F0.ArrowLeft).pipe((0,T.Q)(this.destroy$)).subscribe();setTimeout(()=>{const cn=this.focusManager.getFirstFocusableChild(this.marqueeTileContainerList.get(this.position).nativeElement),En=de&&cn?cn:this.paginatorList.get(this.position)?.nativeElement;this.focusManager.focusViaLastOrigin(En),Kt.closed||Kt.unsubscribe()})}}prevSlide(){return this.position>0&&(this.goToSlide(this.position-1),!0)}nextSlide(){return this.position<this.marqueeData.length-1&&(this.goToSlide(this.position+1),!0)}autoScrollNext(){this.marqueeScrolled.emit({position:this.position,autoScrolled:this.autoScroll}),this.changeSlide((this.position+1)%this.marqueeData.length),this.changeDetector.detectChanges()}refreshMarquee(Le){(this.errorVisible||Le)&&(this.logger.info("Marquee data updated, constructing marquee..."),this.constructMarquee())}pause(){this.autoScroll=!1,this.marqueeIteratorSubscription?.unsubscribe()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.imageFetchSubsciption?.unsubscribe(),this.marqueeIteratorSubscription?.unsubscribe()}swipeLeft(){this.localeService.isRTLLayoutEnabled?this.prevSlide():this.nextSlide()}swipeRight(){this.localeService.isRTLLayoutEnabled?this.nextSlide():this.prevSlide()}marqueeImageLoadComplete(){0===this.position&&!0===this.ismarketingTileReloaded&&(this.ismarketingTileReloaded=!1)}fallbackToPlaceholderImage(){const Le=this.marqueeData[this.position],V=Le.app;this.logger.warn("Error loading image for "+V.title+" using fallback."),(0,m.isNil)(this.tileData)||(0,m.isEmpty)(this.tileData)?Le.isShowingFallbackImage=Le.imageType!==X.t.PaddedImage:(Le.isShowingFallbackImage=!0,this.updateImageTypeByIndex(this.position,Le.imageType,Le.isShowingFallbackImage)),this.marqueeImageUrl=V.fallbackImage?V.fallbackImage:this.globalFallbackImage,this.imageLoadFailure.next(this.position)}fallbackToAppLogo(){this.logger.warn("Error loading app logo for "+this.marqueeData[this.position].app.title+" using fallback."),this.appTitle=this.marqueeData[this.position].app.title}onViewAppDetails(Le,V){this.logger.info("view app details",Le),this.viewAppDetails.emit({app:V,...Le})}onActionClicked(Le,V,de,ge){this.logger.info("action clicked",Le,V),this.actionClicked.emit({action:V,position:de,id:ge,...Le})}setInitialFocus(){this.focusManager.focusChild(this.marqueeContainer.nativeElement,"first")}cancelAutoSlide(){this.pause(),this.marqueeAutoScrollCancelled.emit()}static{this.\u0275fac=function(V){return new(V||Ut)(i.rXU(i.aKT),i.rXU(Qe.J6),i.rXU(Qe.Pl),i.rXU(Qe.CF),i.rXU(Qe.iH),i.rXU(n.QP),i.rXU(ct.E),i.rXU(Ge.c),i.rXU(i.gRc),i.rXU("MARQUEE_IMAGE_METADATA_FETCHER",8))}}static{this.\u0275cmp=i.VBU({type:Ut,selectors:[["nv-hig-marquee"]],viewQuery:function(V,de){if(1&V&&(i.GBs(nt,5),i.GBs(Je,5),i.GBs(ze,5),i.GBs(Ke,5)),2&V){let ge;i.mGM(ge=i.lsd())&&(de.marqueeContainer=ge.first),i.mGM(ge=i.lsd())&&(de.paginator=ge.first),i.mGM(ge=i.lsd())&&(de.marqueeTileContainerList=ge),i.mGM(ge=i.lsd())&&(de.paginatorList=ge)}},inputs:{tileData:"tileData",useMarqueeScrim:"useMarqueeScrim",phoneMarqueeEnabled:"phoneMarqueeEnabled",mobileMode:"mobileMode",tvMode:"tvMode",dismissRatio:"dismissRatio",enablePaginatorNavigation:"enablePaginatorNavigation",gradientOverrides:"gradientOverrides",overlayOverrides:"overlayOverrides",enableAnimation:"enableAnimation",enableContentVisibilityOptimization:"enableContentVisibilityOptimization",imageOverrides:"imageOverrides"},outputs:{actionClicked:"actionClicked",viewAppDetails:"viewAppDetails",imageLoadFailure:"imageLoadFailure",marqueeScrolled:"marqueeScrolled",paginatorRepositioned:"paginatorRepositioned",initialized:"initialized",beforeChangeSlide:"beforeChangeSlide",marqueeAutoScrollCancelled:"marqueeAutoScrollCancelled"},standalone:!0,features:[i.aNF],decls:3,vars:3,consts:[["marqueeContainer",""],["marqueeTileContainerList",""],["leftButton",""],["rightButton",""],["paginator",""],["paginatorList",""],["class","marquee-container","nvSpatialNavigationGroup","",3,"ngClass","--scrim-color","--dismiss-ratio","swipeleft","swiperight","click",4,"ngIf"],["class","marquee-load-container",3,"ngClass",4,"ngIf"],["class","errorPlaceholder","fxLayoutAlign","center center",3,"ngClass",4,"ngIf"],["nvSpatialNavigationGroup","",1,"marquee-container",3,"swipeleft","swiperight","click","ngClass"],[3,"ngClass",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf"],[4,"ngIf"],["class","marquee-tile-overlay-container",3,"ngClass",4,"ngFor","ngForOf"],["mat-icon-button","","class","marquee-button marquee-button-prev","tabindex","-1",3,"click",4,"ngIf"],["mat-icon-button","","class","marquee-button marquee-button-next","tabindex","-1",3,"click",4,"ngIf"],["class","marquee-indicators","cdkMonitorSubtreeFocus","","nvSpatialNavigationGroup","",4,"ngIf"],["class","marquee-scrim",4,"ngIf"],[3,"ngClass"],["elementtiming","marqueeTile","class","marquee-tile-image",3,"src","ngClass","load","error",4,"ngIf"],["elementtiming","marqueeTile",1,"marquee-tile-image",3,"load","error","src","ngClass"],["class","marquee-promo-tag-container","fxLayout","row","fxLayoutAlign","start center",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center",1,"marquee-promo-tag-container"],[1,"marquee-promo-tag-border"],["dir","auto",1,"marquee-promo-tag"],["class","marquee-tile-gradient-container",3,"ngClass",4,"ngFor","ngForOf"],[1,"marquee-tile-gradient-container",3,"ngClass"],["class","marquee-tile-gradients",4,"ngIf"],[1,"marquee-tile-gradients"],[3,"ngClass",4,"ngIf"],["class","marquee-tile-left-edge-gradient",4,"ngIf"],["class","marquee-tile-left-merge-gradient",4,"ngIf"],["class","full-bleed-up-down-gradient",4,"ngIf"],[1,"marquee-tile-left-edge-gradient"],[1,"marquee-tile-left-merge-gradient"],[1,"full-bleed-up-down-gradient"],[1,"marquee-tile-overlay-container",3,"ngClass"],["class","overlay-content",4,"ngIf"],["class","full-bleed-overlay-content",4,"ngIf"],[1,"overlay-content"],["class","font-header4 marquee-app-title",3,"color",4,"ngIf"],["elementtiming","appLogo","class","marquee-app-title",3,"src","error",4,"ngIf"],[1,"subtitle-container"],["class","font-sub3",4,"ngIf"],["dir","auto","class","font-sub3",4,"ngIf"],["tabindex","0","mat-raised-button","","color","accent","data-focus-loss-exempt","",1,"marquee-tile-action-button","font-button2","text-button-icon",3,"click"],[1,"font-header4","marquee-app-title"],["elementtiming","appLogo",1,"marquee-app-title",3,"error","src"],[1,"font-sub3"],["dir","auto",1,"font-sub3"],[1,"full-bleed-overlay-content"],["nvEllipsifiedTextWithTooltip","","tooltipClass","mat-tooltip-font-body3",1,"title-font",3,"isMultiLineEllipsis"],["nvEllipsifiedTextWithTooltip","","tooltipClass","mat-tooltip-font-body3",1,"body-font",3,"isMultiLineEllipsis","innerHTML"],["mat-raised-button","","color","accent","class","marquee-tile-action-button font-button2","nvProgressCircular","",3,"click",4,"ngIf"],["class","info-font",4,"ngIf"],["mat-raised-button","","color","accent","nvProgressCircular","",1,"marquee-tile-action-button","font-button2",3,"click"],[1,"info-font"],["mat-icon-button","","tabindex","-1",1,"marquee-button","marquee-button-prev",3,"click"],["svgIcon","lt_arrow",1,"marquee-button-icon"],["mat-icon-button","","tabindex","-1",1,"marquee-button","marquee-button-next",3,"click"],["svgIcon","rt_arrow",1,"marquee-button-icon"],["cdkMonitorSubtreeFocus","","nvSpatialNavigationGroup","",1,"marquee-indicators"],[3,"active","click","focusin",4,"ngFor","ngForOf"],[3,"click","focusin"],[1,"marquee-scrim"],[1,"marquee-load-container",3,"ngClass"],["fxLayoutAlign","center center",1,"errorPlaceholder",3,"ngClass"],[1,"font-header5"]],template:function(V,de){1&V&&i.DNE(0,wt,10,24,"div",6)(1,gt,2,3,"div",7)(2,Ht,7,9,"div",8),2&V&&(i.Y8G("ngIf",!de.busyLoadingMarquee&&!de.errorVisible),i.R7$(),i.Y8G("ngIf",de.busyLoadingMarquee),i.R7$(),i.Y8G("ngIf",de.errorVisible))},dependencies:[g.bT,Fe.$,g.YU,A.Cc,A.PW,g.pM,x.w2,x.DJ,x.sA,P.jI,P.ig,M.wG,M.iV,it.Aq,Ee.a,te.r,ce.e,Q.q,S.m_,S.An,C.Pd,C.vR,q.o,h.h,h.D9],styles:[".isRtl[_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%], .isRtl[_nghost-%COMP%] .marquee-button[_ngcontent-%COMP%] .marquee-button-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .marquee-button[_ngcontent-%COMP%] .marquee-button-icon[_ngcontent-%COMP%], .isRtl[_nghost-%COMP%] .marquee-tile-gradient-container[_ngcontent-%COMP%] .marquee-tile-gradients[_ngcontent-%COMP%] .marquee-tile-left-edge-gradient[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .marquee-tile-gradient-container[_ngcontent-%COMP%] .marquee-tile-gradients[_ngcontent-%COMP%] .marquee-tile-left-edge-gradient[_ngcontent-%COMP%], .isRtl[_nghost-%COMP%] .marquee-tile-gradient-container[_ngcontent-%COMP%] .marquee-tile-gradients[_ngcontent-%COMP%] .marquee-tile-left-merge-gradient[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .marquee-tile-gradient-container[_ngcontent-%COMP%] .marquee-tile-gradients[_ngcontent-%COMP%] .marquee-tile-left-merge-gradient[_ngcontent-%COMP%]{transform:scaleX(-1)}html[dir=rtl][_ngcontent-%COMP%] .flip-rtl-element[_ngcontent-%COMP%], html[dir=rtl][_ngcontent-%COMP%] .marquee-button[_ngcontent-%COMP%] .marquee-button-icon[_ngcontent-%COMP%], .marquee-button[_ngcontent-%COMP%] html[dir=rtl][_ngcontent-%COMP%] .marquee-button-icon[_ngcontent-%COMP%], html[dir=rtl][_ngcontent-%COMP%] .marquee-tile-gradient-container[_ngcontent-%COMP%] .marquee-tile-gradients[_ngcontent-%COMP%] .marquee-tile-left-edge-gradient[_ngcontent-%COMP%], .marquee-tile-gradient-container[_ngcontent-%COMP%] .marquee-tile-gradients[_ngcontent-%COMP%] html[dir=rtl][_ngcontent-%COMP%] .marquee-tile-left-edge-gradient[_ngcontent-%COMP%], html[dir=rtl][_ngcontent-%COMP%] .marquee-tile-gradient-container[_ngcontent-%COMP%] .marquee-tile-gradients[_ngcontent-%COMP%] .marquee-tile-left-merge-gradient[_ngcontent-%COMP%], .marquee-tile-gradient-container[_ngcontent-%COMP%] .marquee-tile-gradients[_ngcontent-%COMP%] html[dir=rtl][_ngcontent-%COMP%] .marquee-tile-left-merge-gradient[_ngcontent-%COMP%]{--dummy: 0;transform:scaleX(-1)}.hotkey-border[_ngcontent-%COMP%]{border:1px solid #ffffff;padding:4px 8px;font-weight:500;line-height:32px;margin:4px}[_ngcontent-%COMP%]:root{--rwd-column-count: 4;--rwd-gutter-count: 3 ;--rwd-gutter-size: 8px;--rwd-container-side-spacing: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 3 ) / 4);--rwd-sidebar-width: 0px;--rwd-container-width: 100vw}@media screen and (min-width: 480px){[_ngcontent-%COMP%]:root{--rwd-column-count: 6;--rwd-gutter-count: 5 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 5 ) / 6)}}@media screen and (min-width: 720px){[_ngcontent-%COMP%]:root{--rwd-column-count: 8;--rwd-gutter-count: 7 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 7 ) / 8)}}@media screen and (min-width: 960px){[_ngcontent-%COMP%]:root{--rwd-column-count: 12;--rwd-gutter-count: 11 ;--rwd-container-side-spacing: 24px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 8px * 11 ) / 12)}}@media screen and (min-width: 1440px){[_ngcontent-%COMP%]:root{--rwd-gutter-size: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 16px * 11 ) / 12)}}[_ngcontent-%COMP%]:root{--hig-marquee-ratio: .3229;--hig-marquee-parent-container-width: 100vw;--hig-marquee-container-height: calc(var(--hig-marquee-ratio) * 100vw);--hig-marquee-corner-column: 56px;--hig-marquee-text-column: 14vw;--hig-marquee-padded-image-first-row: calc(var(--hig-marquee-ratio) * (100vw - var(--hig-marquee-corner-column) - var(--hig-marquee-text-column)));--hig-marquee-padded-image-second-row: calc(var(--hig-marquee-container-height) - var(--hig-marquee-padded-image-first-row))}.ellipsified-text-with-tooltip[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden}.ellipsified-text-with-tooltip.multi-line-ellipsis[_ngcontent-%COMP%]{display:-webkit-box;-webkit-box-orient:vertical;white-space:wrap}.ellipsified-text-with-tooltip.single-line-ellipsis[_ngcontent-%COMP%]{white-space:nowrap}[_nghost-%COMP%]{--usable-inline-size: calc(100vw - env(safe-area-inset-left) - env(safe-area-inset-right)) ;--full-bleed-title-margin-bottom: 20px;--full-bleed-info-margin-top: 20px;--text-overlay-content-padding-bottom: 24px;--full-bleed-overlay-content-width: calc(.38 * var(--usable-inline-size));--full-bleed-overlay-content-max-width: none;--hig-marquee-third-column: calc(.06 * var(--usable-inline-size));--hig-marquee-fallback-background-gradient: linear-gradient( to top, rgba(128, 128, 128, 0) 0%, gray 40% );--hig-marquee-left-edge-gradient: linear-gradient( to left, rgba(25, 25, 25, 0) 0%, rgba(25, 25, 25, .25) 100% );--hig-marquee-custom-container-background: none;--text-overlay-content-title-lines: 2;--text-overlay-content-body-lines: 4;--hig-marquee-tile-action-button-margin-top: 24px;--hig-marquee-left-edge-gradient-width: calc(6 * var(--rwd-column-size) + 5 * var(--rwd-gutter-size));--hig-marquee-tile-overlay-container-margin-left: 24px;--hig-marquee-scrim-opacity: 0;--hig-marquee-button-prev-left: 0;--hig-marquee-button-icon-size: 40px;--hig-marquee-promo-tag-container-top: 10px;--hig-marquee-promo-tag-height: 24px;--hig-marquee-promo-tag-horizontal-padding: 8px;--hig-marquee-parallax-offset: -48px;--hig-marquee-animation-duration: 1s;--hig-marquee-container-border-radius: 0;--hig-marquee-indicator-border-radius: 0}.mobile-view[_ngcontent-%COMP%]{--full-bleed-title-margin-bottom: 8px;--full-bleed-info-margin-top: 16px}.marquee-button[_ngcontent-%COMP%]{display:none;border-width:0;transition:all .2s ease;border:0;padding:0;background:none;outline:none;cursor:pointer}.marquee-button.mat-icon-button[_ngcontent-%COMP%]{border-radius:50%!important;height:var(--hig-marquee-button-icon-size);width:var(--hig-marquee-button-icon-size);line-height:var(--hig-marquee-button-icon-size)}.marquee-button[_ngcontent-%COMP%] .marquee-button-icon[_ngcontent-%COMP%]{font-size:var(--hig-marquee-button-icon-size);height:var(--hig-marquee-button-icon-size);width:var(--hig-marquee-button-icon-size);line-height:var(--hig-marquee-button-icon-size);vertical-align:initial}.marquee-container[_ngcontent-%COMP%], .fallback-content[_ngcontent-%COMP%]{display:grid;align-items:center;justify-items:center;height:0;grid-template-columns:var(--hig-marquee-corner-column) var(--hig-marquee-text-column) var(--hig-marquee-third-column) 1fr var(--hig-marquee-corner-column);box-sizing:border-box;position:relative}.marquee-container.phone-marquee[_ngcontent-%COMP%], .fallback-content.phone-marquee[_ngcontent-%COMP%]{position:sticky;top:0;opacity:1;z-index:2;width:100%;height:100%;padding-bottom:0;transform:translateY(calc(var(--dismiss-ratio) * var(--hig-marquee-parallax-offset)));opacity:calc(1 - var(--dismiss-ratio));filter:blur(calc(10px * var(--dismiss-ratio)))}@media (orientation: portrait){.marquee-container.phone-marquee[_ngcontent-%COMP%], .fallback-content.phone-marquee[_ngcontent-%COMP%]{--image-portrait-ratio: .5625;--overlapping-size: 56px;--paginator-height: 36px;--overlay-container-height: 150px;grid-template-rows:calc(var(--image-portrait-ratio) * var(--hig-marquee-parent-container-width) - var(--overlapping-size)) var(--overlapping-size) var(--overlay-container-height) var(--paginator-height)}}@media (orientation: landscape){.marquee-container.phone-marquee[_ngcontent-%COMP%], .fallback-content.phone-marquee[_ngcontent-%COMP%]{--indicator-container-height: 24px;grid-template-rows:calc(var(--usable-inline-size) / 3.0967741935) var(--indicator-container-height) 1fr}.marquee-container.phone-marquee.full-bleed-item[_ngcontent-%COMP%], .fallback-content.phone-marquee.full-bleed-item[_ngcontent-%COMP%]{grid-template-columns:repeat(4,1fr) auto}.marquee-container.phone-marquee[_ngcontent-%COMP%]:not(.full-bleed-item), .fallback-content.phone-marquee[_ngcontent-%COMP%]:not(.full-bleed-item){grid-template-columns:repeat(16,1fr) 50%}}@media (orientation: portrait){.marquee-container.phone-marquee.phone-marquee[_ngcontent-%COMP%], .fallback-content.phone-marquee.phone-marquee[_ngcontent-%COMP%]{background:linear-gradient(to bottom,rgba(var(--scrim-color),1) calc(.5 * var(--usable-inline-size)),rgba(var(--scrim-color),.7) calc(.9 * var(--usable-inline-size)),rgba(var(--scrim-color),0) calc(1.5 * var(--usable-inline-size)))}}@media (orientation: landscape){.marquee-container.phone-marquee.phone-marquee[_ngcontent-%COMP%], .fallback-content.phone-marquee.phone-marquee[_ngcontent-%COMP%]{background:linear-gradient(to bottom,rgba(var(--scrim-color),1) 55%,rgba(var(--scrim-color),.5) 80%,rgba(var(--scrim-color),0))}}[_ngcontent-%COMP%]:not(.phone-marquee) .marquee-container.phone-marquee[_ngcontent-%COMP%], [_ngcontent-%COMP%]:not(.phone-marquee) .fallback-content.phone-marquee[_ngcontent-%COMP%]{background:linear-gradient(to top,rgba(var(--scrim-color),0),rgba(var(--scrim-color),.02) 3.42%,rgba(var(--scrim-color),.05) 6.68%,rgba(var(--scrim-color),.12) 9.55%,rgba(var(--scrim-color),.2) 12.3%,rgba(var(--scrim-color),.29) 15%,rgba(var(--scrim-color),.39) 17.52%,rgba(var(--scrim-color),.5),rgba(var(--scrim-color),.61) 22.48%,rgba(var(--scrim-color),.71) 25%,rgba(var(--scrim-color),.8) 27.7%,rgba(var(--scrim-color),.88) 30.45%,rgba(var(--scrim-color),.95) 33.32%,rgba(var(--scrim-color),.98) 36.58%,rgba(var(--scrim-color),1) 40%)}@media (hover: hover) and (any-pointer: fine){.marquee-container[_ngcontent-%COMP%]:hover .marquee-button[_ngcontent-%COMP%], .fallback-content[_ngcontent-%COMP%]:hover .marquee-button[_ngcontent-%COMP%]{display:block}}.marquee-container[_ngcontent-%COMP%], .marquee-load-container[_ngcontent-%COMP%], .errorPlaceholder[_ngcontent-%COMP%]{grid-template-rows:var(--hig-marquee-padded-image-first-row) var(--hig-marquee-padded-image-second-row);padding-bottom:calc(var(--hig-marquee-padded-image-first-row) + var(--hig-marquee-padded-image-second-row))}.marquee-container[_ngcontent-%COMP%]{border-radius:var(--hig-marquee-container-border-radius);touch-action:pan-y!important}.marquee-container.no-bg-overhang[_ngcontent-%COMP%]{grid-template-rows:var(--hig-marquee-padded-image-first-row);padding-bottom:var(--hig-marquee-padded-image-first-row)}.marquee-container.no-bg-overhang.full-bleed-item[_ngcontent-%COMP%]{grid-template-rows:var(--hig-marquee-container-height);padding-bottom:var(--hig-marquee-container-height)}.marquee-container.custom-bg[_ngcontent-%COMP%]{background:var(--hig-marquee-custom-container-background)}.marquee-container[_ngcontent-%COMP%] .padded-image-container[_ngcontent-%COMP%], .marquee-container[_ngcontent-%COMP%] .marquee-tile-image[_ngcontent-%COMP%]{border-top-right-radius:var(--hig-marquee-container-border-radius);border-bottom-right-radius:var(--hig-marquee-container-border-radius)}.marquee-container[_ngcontent-%COMP%] .marquee-tile-left-merge-gradient[_ngcontent-%COMP%]{border-top-left-radius:var(--hig-marquee-container-border-radius);border-bottom-left-radius:var(--hig-marquee-container-border-radius)}.padded-image-container[_ngcontent-%COMP%]{grid-area:1/3/2/-1;height:100%;position:relative;z-index:2;justify-self:stretch}.phone-marquee[_ngcontent-%COMP%] .padded-image-container[_ngcontent-%COMP%]{min-height:unset;grid-area:1/1/3/-1}@media (orientation: landscape){.phone-marquee[_ngcontent-%COMP%] .padded-image-container[_ngcontent-%COMP%]{grid-area:1/1/2/-1}}[_ngcontent-%COMP%]:not(.phone-marquee) .padded-image-container[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:cover;mask-size:calc(100% + 2px) calc(100% + 2px);-webkit-mask-size:calc(100% + 2px) calc(100% + 2px);mask-position:center;-webkit-mask-position:center}.isLtr[_nghost-%COMP%] [_ngcontent-%COMP%]:not(.phone-marquee) .padded-image-container[_ngcontent-%COMP%] img[_ngcontent-%COMP%]:not(.no-mask), .isLtr [_nghost-%COMP%] [_ngcontent-%COMP%]:not(.phone-marquee) .padded-image-container[_ngcontent-%COMP%] img[_ngcontent-%COMP%]:not(.no-mask){mask-image:url(assets/hashed/Marquee_Hero_Image_Gradient.97da07cc527f6200.svg);-webkit-mask-image:url(assets/hashed/Marquee_Hero_Image_Gradient.97da07cc527f6200.svg)}.isRtl[_nghost-%COMP%] [_ngcontent-%COMP%]:not(.phone-marquee) .padded-image-container[_ngcontent-%COMP%] img[_ngcontent-%COMP%]:not(.no-mask), .isRtl [_nghost-%COMP%] [_ngcontent-%COMP%]:not(.phone-marquee) .padded-image-container[_ngcontent-%COMP%] img[_ngcontent-%COMP%]:not(.no-mask){mask-image:url(assets/hashed/Marquee_Hero_Image_Gradient_RTL.8f28b6a06d45d190.svg);-webkit-mask-image:url(assets/hashed/Marquee_Hero_Image_Gradient_RTL.8f28b6a06d45d190.svg)}.phone-marquee[_ngcontent-%COMP%] .padded-image-container[_ngcontent-%COMP%], .phone-marquee[_ngcontent-%COMP%] .full-bleed-image-container[_ngcontent-%COMP%]{display:flex;align-content:flex-end}.phone-marquee[_ngcontent-%COMP%] .padded-image-container[_ngcontent-%COMP%] img[_ngcontent-%COMP%], .phone-marquee[_ngcontent-%COMP%] .full-bleed-image-container[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{aspect-ratio:1.7777777778;min-height:unset;width:100%;height:auto;mask-size:100% 100%;-webkit-mask-size:100% 100%}@media (orientation: portrait){.phone-marquee[_ngcontent-%COMP%] .padded-image-container[_ngcontent-%COMP%] img[_ngcontent-%COMP%], .phone-marquee[_ngcontent-%COMP%] .full-bleed-image-container[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{-webkit-mask-image:linear-gradient(to top,#0000,#00000040 15%,#00000080 25%,#000 50%);mask-image:linear-gradient(to top,#0000,#00000040 15%,#00000080 25%,#000 50%)}}@media (orientation: landscape){.phone-marquee[_ngcontent-%COMP%] .padded-image-container[_ngcontent-%COMP%] img[_ngcontent-%COMP%], .phone-marquee[_ngcontent-%COMP%] .full-bleed-image-container[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{aspect-ratio:3.0967741935}.isLtr[_nghost-%COMP%] .phone-marquee[_ngcontent-%COMP%] .padded-image-container[_ngcontent-%COMP%] img[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .phone-marquee[_ngcontent-%COMP%] .padded-image-container[_ngcontent-%COMP%] img[_ngcontent-%COMP%], .isLtr[_nghost-%COMP%] .phone-marquee[_ngcontent-%COMP%] .full-bleed-image-container[_ngcontent-%COMP%] img[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .phone-marquee[_ngcontent-%COMP%] .full-bleed-image-container[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{-webkit-mask-image:url(assets/hashed/mobile_marquee_hero_mask_ltr.7fc7c054509b2c75.png);mask-image:url(assets/hashed/mobile_marquee_hero_mask_ltr.7fc7c054509b2c75.png)}.isRtl[_nghost-%COMP%] .phone-marquee[_ngcontent-%COMP%] .padded-image-container[_ngcontent-%COMP%] img[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .phone-marquee[_ngcontent-%COMP%] .padded-image-container[_ngcontent-%COMP%] img[_ngcontent-%COMP%], .isRtl[_nghost-%COMP%] .phone-marquee[_ngcontent-%COMP%] .full-bleed-image-container[_ngcontent-%COMP%] img[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .phone-marquee[_ngcontent-%COMP%] .full-bleed-image-container[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{-webkit-mask-image:url(assets/hashed/mobile_marquee_hero_mask_rtl.40e2e47979f0f272.png);mask-image:url(assets/hashed/mobile_marquee_hero_mask_rtl.40e2e47979f0f272.png)}}.marquee-tile-gradient-container[_ngcontent-%COMP%], .marquee-tile-gradient-container[_ngcontent-%COMP%] .marquee-tile-gradients[_ngcontent-%COMP%]{display:contents}.marquee-tile-gradient-container[_ngcontent-%COMP%] .marquee-tile-gradients[_ngcontent-%COMP%] .marquee-tile-background-gradient[_ngcontent-%COMP%]{grid-area:1/1/3/-1;width:100%;height:100%;z-index:1}@media (orientation: portrait){.marquee-tile-gradient-container[_ngcontent-%COMP%] .marquee-tile-gradients[_ngcontent-%COMP%] .marquee-tile-background-gradient.phone-marquee[_ngcontent-%COMP%]{background:linear-gradient(to bottom,rgba(var(--scrim-color),1) calc(.5 * var(--usable-inline-size)),rgba(var(--scrim-color),.7) calc(.9 * var(--usable-inline-size)),rgba(var(--scrim-color),0) calc(1.5 * var(--usable-inline-size)))}}@media (orientation: landscape){.marquee-tile-gradient-container[_ngcontent-%COMP%] .marquee-tile-gradients[_ngcontent-%COMP%] .marquee-tile-background-gradient.phone-marquee[_ngcontent-%COMP%]{background:linear-gradient(to bottom,rgba(var(--scrim-color),1) 55%,rgba(var(--scrim-color),.5) 80%,rgba(var(--scrim-color),0))}}[_ngcontent-%COMP%]:not(.phone-marquee) .marquee-tile-gradient-container[_ngcontent-%COMP%] .marquee-tile-gradients[_ngcontent-%COMP%] .marquee-tile-background-gradient[_ngcontent-%COMP%]{background:linear-gradient(to top,rgba(var(--scrim-color),0),rgba(var(--scrim-color),.02) 3.42%,rgba(var(--scrim-color),.05) 6.68%,rgba(var(--scrim-color),.12) 9.55%,rgba(var(--scrim-color),.2) 12.3%,rgba(var(--scrim-color),.29) 15%,rgba(var(--scrim-color),.39) 17.52%,rgba(var(--scrim-color),.5),rgba(var(--scrim-color),.61) 22.48%,rgba(var(--scrim-color),.71) 25%,rgba(var(--scrim-color),.8) 27.7%,rgba(var(--scrim-color),.88) 30.45%,rgba(var(--scrim-color),.95) 33.32%,rgba(var(--scrim-color),.98) 36.58%,rgba(var(--scrim-color),1) 40%)}.marquee-tile-gradient-container[_ngcontent-%COMP%] .marquee-tile-gradients[_ngcontent-%COMP%] .marquee-tile-background-fallback-gradient[_ngcontent-%COMP%]{grid-area:1/1/3/-1;background:var(--hig-marquee-fallback-background-gradient);width:100%;height:100%;z-index:3}.marquee-tile-gradient-container[_ngcontent-%COMP%] .marquee-tile-gradients[_ngcontent-%COMP%] .marquee-tile-left-edge-gradient[_ngcontent-%COMP%]{grid-area:1/1/3/3;width:100%;height:100%;background:var(--hig-marquee-left-edge-gradient);z-index:3}.marquee-tile-gradient-container[_ngcontent-%COMP%] .marquee-tile-gradients[_ngcontent-%COMP%] .marquee-tile-left-merge-gradient[_ngcontent-%COMP%]{grid-area:1/1/1/-1;width:var(--hig-marquee-left-edge-gradient-width);height:100%;justify-self:start;background:var(--hig-marquee-left-merge-gradient);z-index:3}.marquee-tile-gradient-container[_ngcontent-%COMP%] .marquee-tile-gradients[_ngcontent-%COMP%] .full-bleed-up-down-gradient[_ngcontent-%COMP%]{position:relative;grid-area:1/1/2/-1;width:100%;height:33%;align-self:end;bottom:-1px;background:var(--hig-marquee-tile-full-bleed-up-down-gradient);z-index:3}@media (min-width: 960px) and (max-width: 1439px),(min-width: 1440px) and (max-width: 1919px),(min-width: 1920px){[_nghost-%COMP%]{--hig-marquee-left-edge-gradient-width: calc(7 * var(--rwd-column-size) + 6 * var(--rwd-gutter-size))}}.marquee-button-prev[_ngcontent-%COMP%]{grid-area:1/1/2/2;position:relative;margin:16px;z-index:4}.isLtr[_nghost-%COMP%] .marquee-button-prev[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .marquee-button-prev[_ngcontent-%COMP%]{justify-self:left;left:var(--hig-marquee-button-prev-left)}.isRtl[_nghost-%COMP%] .marquee-button-prev[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .marquee-button-prev[_ngcontent-%COMP%]{justify-self:right;right:var(--hig-marquee-button-prev-left)}.marquee-button-next[_ngcontent-%COMP%]{grid-area:1/-2/2/-1;position:relative;margin:16px;z-index:4}.isLtr[_nghost-%COMP%] .marquee-button-next[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .marquee-button-next[_ngcontent-%COMP%]{justify-self:right}.isRtl[_nghost-%COMP%] .marquee-button-next[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .marquee-button-next[_ngcontent-%COMP%]{justify-self:left}@media (max-width: 479px){.marquee-button-prev[_ngcontent-%COMP%]{grid-area:1/1/5/2}.marquee-button-next[_ngcontent-%COMP%]{grid-area:1/-2/5/-1}}.full-bleed-image-container[_ngcontent-%COMP%]{grid-area:1/1/2/-1;position:relative;z-index:2;height:100%;justify-self:stretch}@media (orientation: portrait){.phone-marquee[_ngcontent-%COMP%] .full-bleed-image-container[_ngcontent-%COMP%]{grid-area:1/1/3/-1}}@media (orientation: landscape){.phone-marquee[_ngcontent-%COMP%] .full-bleed-image-container[_ngcontent-%COMP%]{grid-area:1/2/3/-1}}.full-bleed-image-container[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:cover}.mobile-view.full-bleed-item[_ngcontent-%COMP%]:not(.phone-marquee){--full-bleed-left-column: 16px}@media (orientation: portrait){.mobile-view.full-bleed-item[_ngcontent-%COMP%]:not(.phone-marquee){--full-bleed-left-column: 8px}}.mobile-view.full-bleed-item[_ngcontent-%COMP%]:not(.phone-marquee).full-bleed-item-not-first-position{--full-bleed-left-column: var(--hig-marquee-corner-column)}.mobile-view.full-bleed-item[_ngcontent-%COMP%]:not(.phone-marquee).marquee-container{--split-column: calc(var(--hig-marquee-corner-column) - var(--full-bleed-left-column));grid-template-columns:var(--full-bleed-left-column) var(--split-column) var(--hig-marquee-text-column) calc(.06 * var(--usable-inline-size)) 1fr var(--hig-marquee-corner-column)}.mobile-view.full-bleed-item[_ngcontent-%COMP%]:not(.phone-marquee).marquee-container .marquee-button-next[_ngcontent-%COMP%]{grid-area:1/6/2/-1}.mobile-view.full-bleed-item[_ngcontent-%COMP%]:not(.phone-marquee).marquee-container .marquee-indicators[_ngcontent-%COMP%]{grid-area:1/3/1/-1}.mobile-view.full-bleed-item[_ngcontent-%COMP%]:not(.phone-marquee).marquee-container .marquee-tile-overlay-container[_ngcontent-%COMP%]{grid-area:1/2/2/5}.full-bleed-overlay-content[_ngcontent-%COMP%]{text-align:start;width:var(--full-bleed-overlay-content-width);max-width:var(--full-bleed-overlay-content-max-width)}.full-bleed-overlay-content[_ngcontent-%COMP%] .body-font[_ngcontent-%COMP%]{--font-body-color: var(--hig-ui-text-secondary-color);--font-body-size: 14px;--font-body-line-height: 20px;font-family:NVIDIA,sans-serif;color:var(--font-body-color);font-weight:400;font-style:normal;text-transform:none;font-size:var(--font-body-size);line-height:var(--font-body-line-height);letter-spacing:0}.tv-view[_ngcontent-%COMP%] .full-bleed-overlay-content[_ngcontent-%COMP%] .body-font[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .full-bleed-overlay-content[_ngcontent-%COMP%] .body-font[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .full-bleed-overlay-content[_ngcontent-%COMP%] .body-font[_ngcontent-%COMP%]{--font-body-size: 28px;--font-body-line-height: 40px;--font-body-color: rgba(255, 255, 255, .85)}.mobile-view.full-bleed-item[_ngcontent-%COMP%] .full-bleed-overlay-content[_ngcontent-%COMP%] .body-font[_ngcontent-%COMP%]{word-break:break-word;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:var(--text-overlay-content-body-lines);align-self:center;text-overflow:ellipsis}[_ngcontent-%COMP%]:not(.mobile-view):not(.full-bleed-item) .full-bleed-overlay-content[_ngcontent-%COMP%] .body-font[_ngcontent-%COMP%]{-webkit-line-clamp:var(--text-overlay-content-body-lines)}.full-bleed-overlay-content[_ngcontent-%COMP%] .info-font[_ngcontent-%COMP%]{--font-body-color: var(--hig-ui-text-secondary-color);--font-body-size: 14px;--font-body-line-height: 20px;font-family:NVIDIA,sans-serif;color:var(--font-body-color);font-weight:400;font-style:normal;text-transform:none;font-size:var(--font-body-size);line-height:var(--font-body-line-height);letter-spacing:0;font-style:italic;margin-top:var(--full-bleed-info-margin-top)}.tv-view[_ngcontent-%COMP%] .full-bleed-overlay-content[_ngcontent-%COMP%] .info-font[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .full-bleed-overlay-content[_ngcontent-%COMP%] .info-font[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .full-bleed-overlay-content[_ngcontent-%COMP%] .info-font[_ngcontent-%COMP%]{--font-body-size: 28px;--font-body-line-height: 40px;--font-body-color: rgba(255, 255, 255, .85)}.mobile-view.full-bleed-item[_ngcontent-%COMP%] .full-bleed-overlay-content[_ngcontent-%COMP%] .info-font[_ngcontent-%COMP%]{word-break:break-word;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;align-self:center;text-overflow:ellipsis}[_ngcontent-%COMP%]:not(.mobile-view):not(.full-bleed-item) .full-bleed-overlay-content[_ngcontent-%COMP%] .info-font[_ngcontent-%COMP%]{-webkit-line-clamp:2}.full-bleed-overlay-content[_ngcontent-%COMP%] .title-font[_ngcontent-%COMP%]{--font-header-font-size: 34px;--font-header-line-height: 48px;font-family:NVIDIA,sans-serif;color:var(--hig-ui-text-primary-color);font-style:normal;text-transform:none;font-size:var(--font-header-font-size);line-height:var(--font-header-line-height);letter-spacing:0;font-weight:700;margin-bottom:var(--full-bleed-title-margin-bottom)}.tv-view[_ngcontent-%COMP%] .full-bleed-overlay-content[_ngcontent-%COMP%] .title-font[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .full-bleed-overlay-content[_ngcontent-%COMP%] .title-font[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .full-bleed-overlay-content[_ngcontent-%COMP%] .title-font[_ngcontent-%COMP%]{--font-header-font-size: 68px;--font-header-line-height: 96px}.mobile-view.full-bleed-item[_ngcontent-%COMP%] .full-bleed-overlay-content[_ngcontent-%COMP%] .title-font[_ngcontent-%COMP%]{word-break:break-word;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:var(--text-overlay-content-title-lines);align-self:center;text-overflow:ellipsis}[_ngcontent-%COMP%]:not(.mobile-view):not(.full-bleed-item) .full-bleed-overlay-content[_ngcontent-%COMP%] .title-font[_ngcontent-%COMP%]{-webkit-line-clamp:var(--text-overlay-content-title-lines)}.mobile-view.full-bleed-item[_ngcontent-%COMP%] .full-bleed-overlay-content[_ngcontent-%COMP%] .body-font[_ngcontent-%COMP%]{--font-body-color: var(--hig-ui-text-secondary-color);--font-body-size: 12px;--font-body-line-height: 16px;font-family:NVIDIA,sans-serif;color:var(--font-body-color);font-weight:400;font-style:normal;text-transform:none;font-size:var(--font-body-size);line-height:var(--font-body-line-height);letter-spacing:0}.tv-view[_ngcontent-%COMP%] .mobile-view.full-bleed-item[_ngcontent-%COMP%] .full-bleed-overlay-content[_ngcontent-%COMP%] .body-font[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .mobile-view.full-bleed-item[_ngcontent-%COMP%] .full-bleed-overlay-content[_ngcontent-%COMP%] .body-font[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .mobile-view.full-bleed-item[_ngcontent-%COMP%] .full-bleed-overlay-content[_ngcontent-%COMP%] .body-font[_ngcontent-%COMP%]{--font-body-size: 24px;--font-body-line-height: 32px;--font-body-color: rgba(255, 255, 255, .85)}.mobile-view.full-bleed-item[_ngcontent-%COMP%] .full-bleed-overlay-content[_ngcontent-%COMP%] .info-font[_ngcontent-%COMP%]{--font-body-color: var(--hig-ui-text-secondary-color);--font-body-size: 12px;--font-body-line-height: 16px;font-family:NVIDIA,sans-serif;color:var(--font-body-color);font-weight:400;font-style:normal;text-transform:none;font-size:var(--font-body-size);line-height:var(--font-body-line-height);letter-spacing:0;font-style:italic}.tv-view[_ngcontent-%COMP%] .mobile-view.full-bleed-item[_ngcontent-%COMP%] .full-bleed-overlay-content[_ngcontent-%COMP%] .info-font[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .mobile-view.full-bleed-item[_ngcontent-%COMP%] .full-bleed-overlay-content[_ngcontent-%COMP%] .info-font[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .mobile-view.full-bleed-item[_ngcontent-%COMP%] .full-bleed-overlay-content[_ngcontent-%COMP%] .info-font[_ngcontent-%COMP%]{--font-body-size: 24px;--font-body-line-height: 32px;--font-body-color: rgba(255, 255, 255, .85)}.mobile-view.full-bleed-item[_ngcontent-%COMP%] .full-bleed-overlay-content[_ngcontent-%COMP%] .title-font[_ngcontent-%COMP%]{--font-header-font-size: 24px;--font-header-line-height: 32px;font-family:NVIDIA,sans-serif;color:var(--hig-ui-text-primary-color);font-style:normal;text-transform:none;font-size:var(--font-header-font-size);line-height:var(--font-header-line-height);letter-spacing:0;font-weight:500}.tv-view[_ngcontent-%COMP%] .mobile-view.full-bleed-item[_ngcontent-%COMP%] .full-bleed-overlay-content[_ngcontent-%COMP%] .title-font[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .mobile-view.full-bleed-item[_ngcontent-%COMP%] .full-bleed-overlay-content[_ngcontent-%COMP%] .title-font[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .mobile-view.full-bleed-item[_ngcontent-%COMP%] .full-bleed-overlay-content[_ngcontent-%COMP%] .title-font[_ngcontent-%COMP%]{--font-header-font-size: 48px;--font-header-line-height: 64px}.phone-marquee.full-bleed-item[_ngcontent-%COMP%] .full-bleed-overlay-content[_ngcontent-%COMP%] .body-font[_ngcontent-%COMP%]{margin-top:16px}.phone-marquee.full-bleed-item[_ngcontent-%COMP%] .full-bleed-overlay-content[_ngcontent-%COMP%] .title-font[_ngcontent-%COMP%]{--font-header-font-size: 20px;--font-header-line-height: 28px;font-family:NVIDIA,sans-serif;color:var(--hig-ui-text-primary-color);font-style:normal;text-transform:none;font-size:var(--font-header-font-size);line-height:var(--font-header-line-height);letter-spacing:0;font-weight:500;margin-bottom:0}.tv-view[_ngcontent-%COMP%] .phone-marquee.full-bleed-item[_ngcontent-%COMP%] .full-bleed-overlay-content[_ngcontent-%COMP%] .title-font[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .phone-marquee.full-bleed-item[_ngcontent-%COMP%] .full-bleed-overlay-content[_ngcontent-%COMP%] .title-font[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .phone-marquee.full-bleed-item[_ngcontent-%COMP%] .full-bleed-overlay-content[_ngcontent-%COMP%] .title-font[_ngcontent-%COMP%]{--font-header-font-size: 40px;--font-header-line-height: 56px}@media (orientation: portrait){.phone-marquee[_ngcontent-%COMP%] .full-bleed-overlay-content[_ngcontent-%COMP%]{text-align:center;width:var(--usable-inline-size)}.phone-marquee[_ngcontent-%COMP%] .full-bleed-overlay-content[_ngcontent-%COMP%] .marquee-tile-action-button[_ngcontent-%COMP%]{margin-top:auto}}@media (orientation: landscape){.phone-marquee[_ngcontent-%COMP%] .full-bleed-overlay-content[_ngcontent-%COMP%] .marquee-tile-action-button[_ngcontent-%COMP%]{margin-top:var(--hig-marquee-tile-action-button-margin-top)}}.marquee-tile-overlay-container[_ngcontent-%COMP%]{grid-area:1/2/2/4;width:100%;position:relative;z-index:4;justify-self:flex-start;display:flex;align-items:center;padding-bottom:var(--text-overlay-content-padding-bottom)}.isLtr[_nghost-%COMP%] .marquee-tile-overlay-container[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .marquee-tile-overlay-container[_ngcontent-%COMP%]{padding-left:var(--hig-marquee-tile-overlay-container-margin-left)}html[dir=ltr][_ngcontent-%COMP%] .marquee-tile-overlay-container[_ngcontent-%COMP%]{--dummy1: 0;padding-left:var(--hig-marquee-tile-overlay-container-margin-left)}.isRtl[_nghost-%COMP%] .marquee-tile-overlay-container[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .marquee-tile-overlay-container[_ngcontent-%COMP%]{padding-right:var(--hig-marquee-tile-overlay-container-margin-left)}html[dir=rtl][_ngcontent-%COMP%] .marquee-tile-overlay-container[_ngcontent-%COMP%]{--dummy1: 0;padding-right:var(--hig-marquee-tile-overlay-container-margin-left)}.marquee-tile-overlay-container[_ngcontent-%COMP%] .marquee-tile-data[_ngcontent-%COMP%]{width:100%}.marquee-tile-overlay-container[_ngcontent-%COMP%] .marquee-app-title[_ngcontent-%COMP%]{width:100%;height:auto;-webkit-line-clamp:3}.marquee-tile-overlay-container[_ngcontent-%COMP%] .subtitle-container[_ngcontent-%COMP%]{margin-top:24px;justify-content:center;text-align:center}.marquee-tile-overlay-container[_ngcontent-%COMP%] .subtitle-container[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{color:inherit}.phone-marquee[_ngcontent-%COMP%] .marquee-tile-overlay-container[_ngcontent-%COMP%]{padding-bottom:0;pointer-events:none}.isLtr[_nghost-%COMP%] .phone-marquee[_ngcontent-%COMP%] .marquee-tile-overlay-container[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .phone-marquee[_ngcontent-%COMP%] .marquee-tile-overlay-container[_ngcontent-%COMP%]{padding-left:0}html[dir=ltr][_ngcontent-%COMP%] .phone-marquee[_ngcontent-%COMP%] .marquee-tile-overlay-container[_ngcontent-%COMP%]{--dummy1: 0;padding-left:0}.isRtl[_nghost-%COMP%] .phone-marquee[_ngcontent-%COMP%] .marquee-tile-overlay-container[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .phone-marquee[_ngcontent-%COMP%] .marquee-tile-overlay-container[_ngcontent-%COMP%]{padding-right:0}html[dir=rtl][_ngcontent-%COMP%] .phone-marquee[_ngcontent-%COMP%] .marquee-tile-overlay-container[_ngcontent-%COMP%]{--dummy1: 0;padding-right:0}.phone-marquee[_ngcontent-%COMP%] .marquee-tile-overlay-container[_ngcontent-%COMP%] .marquee-app-title[_ngcontent-%COMP%]{width:160px;height:90px;padding-bottom:8px}@media screen and (max-width: 667px) and (max-height: 375px) and (orientation: landscape){.phone-marquee[_ngcontent-%COMP%] .marquee-tile-overlay-container[_ngcontent-%COMP%] .marquee-app-title[_ngcontent-%COMP%]{width:132px;height:74px}}@media (orientation: portrait){.phone-marquee[_ngcontent-%COMP%] .marquee-tile-overlay-container[_ngcontent-%COMP%]{grid-area:2/1/4/-1;height:100%;align-items:stretch}.phone-marquee[_ngcontent-%COMP%] .marquee-tile-overlay-container[_ngcontent-%COMP%] .overlay-content[_ngcontent-%COMP%], .phone-marquee[_ngcontent-%COMP%] .marquee-tile-overlay-container[_ngcontent-%COMP%] .full-bleed-overlay-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;height:100%}.phone-marquee[_ngcontent-%COMP%] .marquee-tile-overlay-container[_ngcontent-%COMP%] .full-bleed-overlay-content[_ngcontent-%COMP%]{width:calc(var(--usable-inline-size) - 48px);padding:0 24px}.phone-marquee[_ngcontent-%COMP%] .marquee-tile-overlay-container[_ngcontent-%COMP%] .marquee-tile-data[_ngcontent-%COMP%]{width:100%;height:100%;padding:0 24px}.phone-marquee[_ngcontent-%COMP%] .marquee-tile-overlay-container[_ngcontent-%COMP%] .subtitle-container[_ngcontent-%COMP%]{margin-top:auto;margin-bottom:16px}}@media (orientation: landscape){.phone-marquee[_ngcontent-%COMP%] .marquee-tile-overlay-container[_ngcontent-%COMP%]{grid-area:1/2/2/11;width:100%;padding-top:10px}.phone-marquee[_ngcontent-%COMP%] .marquee-tile-overlay-container[_ngcontent-%COMP%] .subtitle-container[_ngcontent-%COMP%]{margin-top:0;padding-bottom:16px}.isLtr[_nghost-%COMP%] .phone-marquee[_ngcontent-%COMP%] .marquee-tile-overlay-container[_ngcontent-%COMP%] .full-bleed-overlay-content[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .phone-marquee[_ngcontent-%COMP%] .marquee-tile-overlay-container[_ngcontent-%COMP%] .full-bleed-overlay-content[_ngcontent-%COMP%]{padding-left:24px}html[dir=ltr][_ngcontent-%COMP%] .phone-marquee[_ngcontent-%COMP%] .marquee-tile-overlay-container[_ngcontent-%COMP%] .full-bleed-overlay-content[_ngcontent-%COMP%]{--dummy1: 0;padding-left:24px}.isRtl[_nghost-%COMP%] .phone-marquee[_ngcontent-%COMP%] .marquee-tile-overlay-container[_ngcontent-%COMP%] .full-bleed-overlay-content[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .phone-marquee[_ngcontent-%COMP%] .marquee-tile-overlay-container[_ngcontent-%COMP%] .full-bleed-overlay-content[_ngcontent-%COMP%]{padding-right:24px}html[dir=rtl][_ngcontent-%COMP%] .phone-marquee[_ngcontent-%COMP%] .marquee-tile-overlay-container[_ngcontent-%COMP%] .full-bleed-overlay-content[_ngcontent-%COMP%]{--dummy1: 0;padding-right:24px}}@media (orientation: landscape){.phone-marquee.full-bleed-item[_ngcontent-%COMP%] .marquee-tile-overlay-container[_ngcontent-%COMP%]{grid-area:1/1/2/5}}.marquee-tile-overlay-container[_ngcontent-%COMP%] .body-font[_ngcontent-%COMP%], .marquee-tile-overlay-container[_ngcontent-%COMP%] .title-font[_ngcontent-%COMP%]{display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis}.marquee-load-container[_ngcontent-%COMP%]{margin-bottom:61px;height:0;display:grid;align-items:center;justify-items:center;box-sizing:border-box}@keyframes _ngcontent-%COMP%_nv-hig-marquee_fadeInMarquee{0%{opacity:0;transform:translate(1%)}to{opacity:1;transform:translate(0)}}.fadeInMarquee[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_nv-hig-marquee_fadeInMarquee var(--hig-marquee-animation-duration) forwards}.hidden[_ngcontent-%COMP%]{content-visibility:hidden}@keyframes _ngcontent-%COMP%_nv-hig-marquee_fadeInMarqueeDescription{0%{opacity:0}to{opacity:1}}.fadeInMarqueeDescription[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_nv-hig-marquee_fadeInMarqueeDescription var(--hig-marquee-animation-duration) forwards}.marquee-tile-action-button[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;color:#fff;margin-top:var(--hig-marquee-tile-action-button-margin-top)}.phone-marquee[_ngcontent-%COMP%] .marquee-tile-action-button[_ngcontent-%COMP%]{pointer-events:auto;margin-top:0}@media (orientation: portrait){.phone-marquee[_ngcontent-%COMP%] .marquee-tile-action-button[_ngcontent-%COMP%]{margin-bottom:16px}}.tv-mode[_ngcontent-%COMP%] .marquee-tile-action-button[_ngcontent-%COMP%]{height:72px;margin-top:var(--hig-marquee-tile-action-button-margin-top);min-width:-moz-fit-content;min-width:fit-content}.overlay-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;align-items:center}.marquee-indicators[_ngcontent-%COMP%]{grid-area:1/2/1/-1;align-self:end;z-index:4}.isLtr[_nghost-%COMP%] .marquee-indicators[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .marquee-indicators[_ngcontent-%COMP%]{padding-right:90px}html[dir=ltr][_ngcontent-%COMP%] .marquee-indicators[_ngcontent-%COMP%]{--dummy2: 0;padding-right:90px}.isRtl[_nghost-%COMP%] .marquee-indicators[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .marquee-indicators[_ngcontent-%COMP%]{padding-left:90px}html[dir=rtl][_ngcontent-%COMP%] .marquee-indicators[_ngcontent-%COMP%]{--dummy2: 0;padding-left:90px}.paginator-navigation.phone-marquee[_ngcontent-%COMP%] .marquee-indicators[_ngcontent-%COMP%]{align-self:start;margin:0}@media (orientation: portrait){.paginator-navigation.phone-marquee[_ngcontent-%COMP%] .marquee-indicators[_ngcontent-%COMP%]{margin:0 0 16px;grid-area:4/1/4/-1}}@media (orientation: landscape){.paginator-navigation.phone-marquee[_ngcontent-%COMP%] .marquee-indicators[_ngcontent-%COMP%]{grid-area:2/1/2/-1}}.paginator-navigation[_ngcontent-%COMP%] .marquee-indicators[_ngcontent-%COMP%]{padding:0 8px;align-items:center;display:flex;width:-moz-fit-content;width:fit-content;height:23px}.paginator-navigation[_ngcontent-%COMP%] .marquee-indicators.cdk-keyboard-focused[_ngcontent-%COMP%]{border-radius:12px;background-color:#ffffff52;transition:background-color .75s ease}.paginator-navigation.tv-mode[_ngcontent-%COMP%] .marquee-indicators[_ngcontent-%COMP%]{height:48px}.paginator-navigation.tv-mode[_ngcontent-%COMP%] .marquee-indicators.cdk-keyboard-focused[_ngcontent-%COMP%]{border-radius:22px}.marquee-indicators[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{display:inline-block;box-shadow:1px 1px 1px #00000080;border-radius:var(--hig-marquee-indicator-border-radius);background:#636363;transition:all .2s ease;width:32px;height:6px;margin-bottom:2px}.isLtr[_nghost-%COMP%] .marquee-indicators[_ngcontent-%COMP%] li[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .marquee-indicators[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin-right:8px}html[dir=ltr][_ngcontent-%COMP%] .marquee-indicators[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{--dummy4: 0;margin-right:8px}.isRtl[_nghost-%COMP%] .marquee-indicators[_ngcontent-%COMP%] li[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .marquee-indicators[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin-left:8px}html[dir=rtl][_ngcontent-%COMP%] .marquee-indicators[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{--dummy4: 0;margin-left:8px}.paginator-navigation[_ngcontent-%COMP%] .marquee-indicators[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{border-radius:50%;width:7px;height:7px;margin:4px}.paginator-navigation[_ngcontent-%COMP%] .marquee-indicators[_ngcontent-%COMP%] li.active[_ngcontent-%COMP%]{width:11px;height:11px;margin:2px}.paginator-navigation.tv-mode[_ngcontent-%COMP%] .marquee-indicators[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{border-radius:50%;width:16px;height:16px;margin:12px}.paginator-navigation.tv-mode[_ngcontent-%COMP%] .marquee-indicators[_ngcontent-%COMP%] li.active[_ngcontent-%COMP%]{width:24px;height:24px;margin:8px}.marquee-indicators[_ngcontent-%COMP%] li.active[_ngcontent-%COMP%]{background:#76b900}@media (hover: hover) and (any-pointer: fine){.marquee-indicators[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:hover:not(.active){cursor:pointer;background:#76b90080}}.errorPlaceholder[_ngcontent-%COMP%]{margin-bottom:61px;height:0;text-align:center;opacity:.5;box-sizing:border-box}.tv-mode[_ngcontent-%COMP%]{--hig-marquee-promo-tag-height: 42px;--hig-marquee-promo-tag-horizontal-padding: 10px}.mobile-view[_ngcontent-%COMP%]{--hig-marquee-promo-tag-height: 16px;--hig-marquee-promo-tag-horizontal-padding: 6px}.mobile-view[_ngcontent-%COMP%] .marquee-promo-tag-container[_ngcontent-%COMP%] .marquee-promo-tag[_ngcontent-%COMP%]{--font-sub-shared-font-size: 12px;--font-sub-shared-line-height: 16px;font-family:NVIDIA,sans-serif;color:var(--hig-ui-text-primary-color);font-weight:500;font-style:normal;text-transform:none;font-size:var(--font-sub-shared-font-size);line-height:var(--font-sub-shared-line-height);letter-spacing:0;line-height:16px}.tv-view[_ngcontent-%COMP%] .mobile-view[_ngcontent-%COMP%] .marquee-promo-tag-container[_ngcontent-%COMP%] .marquee-promo-tag[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .mobile-view[_ngcontent-%COMP%] .marquee-promo-tag-container[_ngcontent-%COMP%] .marquee-promo-tag[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .mobile-view[_ngcontent-%COMP%] .marquee-promo-tag-container[_ngcontent-%COMP%] .marquee-promo-tag[_ngcontent-%COMP%]{--font-sub-shared-font-size: 24px;--font-sub-shared-line-height: 32px}.marquee-promo-tag-container[_ngcontent-%COMP%]{background:#292929;position:absolute;top:var(--hig-marquee-promo-tag-container-top);z-index:5}.isLtr[_nghost-%COMP%] .marquee-promo-tag-container[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .marquee-promo-tag-container[_ngcontent-%COMP%]{left:0}html[dir=ltr][_ngcontent-%COMP%] .marquee-promo-tag-container[_ngcontent-%COMP%]{--dummy5: 0;left:0}.isRtl[_nghost-%COMP%] .marquee-promo-tag-container[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .marquee-promo-tag-container[_ngcontent-%COMP%]{right:0}html[dir=rtl][_ngcontent-%COMP%] .marquee-promo-tag-container[_ngcontent-%COMP%]{--dummy5: 0;right:0}.isLtr[_nghost-%COMP%] .marquee-promo-tag-container[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .marquee-promo-tag-container[_ngcontent-%COMP%]{right:unset}html[dir=ltr][_ngcontent-%COMP%] .marquee-promo-tag-container[_ngcontent-%COMP%]{--dummy6: 0;right:unset}.isRtl[_nghost-%COMP%] .marquee-promo-tag-container[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .marquee-promo-tag-container[_ngcontent-%COMP%]{left:unset}html[dir=rtl][_ngcontent-%COMP%] .marquee-promo-tag-container[_ngcontent-%COMP%]{--dummy6: 0;left:unset}.phone-marquee[_ngcontent-%COMP%] .marquee-promo-tag-container[_ngcontent-%COMP%]{top:5px}.marquee-promo-tag-container[_ngcontent-%COMP%] .marquee-promo-tag-border[_ngcontent-%COMP%]{height:var(--hig-marquee-promo-tag-height);width:calc(var(--hig-marquee-promo-tag-height) / 2);background-color:#76b900}.isLtr[_nghost-%COMP%] .marquee-promo-tag-container[_ngcontent-%COMP%] .marquee-promo-tag-border[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .marquee-promo-tag-container[_ngcontent-%COMP%] .marquee-promo-tag-border[_ngcontent-%COMP%]{clip-path:polygon(0% 0%,100% 0%,25% 100%,0% 100%)}.isRtl[_nghost-%COMP%] .marquee-promo-tag-container[_ngcontent-%COMP%] .marquee-promo-tag-border[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .marquee-promo-tag-container[_ngcontent-%COMP%] .marquee-promo-tag-border[_ngcontent-%COMP%]{clip-path:polygon(0% 0%,75% 100%,100% 100%,100% 0%)}.marquee-promo-tag-container[_ngcontent-%COMP%] .marquee-promo-tag[_ngcontent-%COMP%]{height:var(--hig-marquee-promo-tag-height);display:flex;align-items:center;--font-sub-shared-font-size: 16px;--font-sub-shared-line-height: 24px;font-family:NVIDIA,sans-serif;color:var(--hig-ui-text-primary-color);font-weight:500;font-style:normal;text-transform:none;font-size:var(--font-sub-shared-font-size);line-height:var(--font-sub-shared-line-height);letter-spacing:0}.isLtr[_nghost-%COMP%] .marquee-promo-tag-container[_ngcontent-%COMP%] .marquee-promo-tag[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .marquee-promo-tag-container[_ngcontent-%COMP%] .marquee-promo-tag[_ngcontent-%COMP%]{padding-left:var(--hig-marquee-promo-tag-horizontal-padding)}html[dir=ltr][_ngcontent-%COMP%] .marquee-promo-tag-container[_ngcontent-%COMP%] .marquee-promo-tag[_ngcontent-%COMP%]{--dummy1: 0;padding-left:var(--hig-marquee-promo-tag-horizontal-padding)}.isRtl[_nghost-%COMP%] .marquee-promo-tag-container[_ngcontent-%COMP%] .marquee-promo-tag[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .marquee-promo-tag-container[_ngcontent-%COMP%] .marquee-promo-tag[_ngcontent-%COMP%]{padding-right:var(--hig-marquee-promo-tag-horizontal-padding)}html[dir=rtl][_ngcontent-%COMP%] .marquee-promo-tag-container[_ngcontent-%COMP%] .marquee-promo-tag[_ngcontent-%COMP%]{--dummy1: 0;padding-right:var(--hig-marquee-promo-tag-horizontal-padding)}.isLtr[_nghost-%COMP%] .marquee-promo-tag-container[_ngcontent-%COMP%] .marquee-promo-tag[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .marquee-promo-tag-container[_ngcontent-%COMP%] .marquee-promo-tag[_ngcontent-%COMP%]{padding-right:var(--hig-marquee-promo-tag-horizontal-padding)}html[dir=ltr][_ngcontent-%COMP%] .marquee-promo-tag-container[_ngcontent-%COMP%] .marquee-promo-tag[_ngcontent-%COMP%]{--dummy2: 0;padding-right:var(--hig-marquee-promo-tag-horizontal-padding)}.isRtl[_nghost-%COMP%] .marquee-promo-tag-container[_ngcontent-%COMP%] .marquee-promo-tag[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .marquee-promo-tag-container[_ngcontent-%COMP%] .marquee-promo-tag[_ngcontent-%COMP%]{padding-left:var(--hig-marquee-promo-tag-horizontal-padding)}html[dir=rtl][_ngcontent-%COMP%] .marquee-promo-tag-container[_ngcontent-%COMP%] .marquee-promo-tag[_ngcontent-%COMP%]{--dummy2: 0;padding-left:var(--hig-marquee-promo-tag-horizontal-padding)}.tv-view[_ngcontent-%COMP%] .marquee-promo-tag-container[_ngcontent-%COMP%] .marquee-promo-tag[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .marquee-promo-tag-container[_ngcontent-%COMP%] .marquee-promo-tag[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .marquee-promo-tag-container[_ngcontent-%COMP%] .marquee-promo-tag[_ngcontent-%COMP%]{--font-sub-shared-font-size: 32px;--font-sub-shared-line-height: 48px}.marquee-scrim[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;opacity:var(--hig-marquee-scrim-opacity);background:linear-gradient(180deg,#000 68%,#0000);z-index:6;pointer-events:none;transition:opacity .15s ease}.overlay-content[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;aspect-ratio:1.7777777778}"],changeDetection:0})}}return Ut})()},97363:(St,z,s)=>{"use strict";s.d(z,{X:()=>n,t:()=>i});var i=function(h){return h.FullBleedImage="FullBleedImage",h.PaddedImage="PaddedImage",h}(i||{});const n="assets/img/Marquee_Hero_Image_Fallback.png"},80598:(St,z,s)=>{"use strict";s.d(z,{b5:()=>i.b5,oV:()=>n.o});var i=s(43281),n=s(13458)},13458:(St,z,s)=>{"use strict";s.d(z,{o:()=>S});var i=s(99204),n=s(3457),h=s(43281),C=s(58527);let S=(()=>{class M{constructor(x){this.viewRef=x,this.isTv=!1,this.mode=h.mt.Indeterminate,this.value=0,this.diameter=this.isTv?h._U:h.b5}static{this.\u0275fac=function(A){return new(A||M)(C.rXU(C.c1b))}}static{this.\u0275cmp=C.VBU({type:M,selectors:[["nv-hig-progress-circular"]],inputs:{isTv:"isTv",mode:"mode",value:"value",diameter:"diameter"},standalone:!0,features:[C.aNF],decls:2,vars:3,consts:[["fxLayoutAlign","center center",1,"common-overlay"],[1,"mat-accent",3,"mode","diameter","value"]],template:function(A,g){1&A&&(C.j41(0,"div",0),C.nrm(1,"mat-progress-spinner",1),C.k0s()),2&A&&(C.R7$(),C.Y8G("mode",g.mode)("diameter",g.diameter)("value",g.value))},dependencies:[n.w2,n.sA,i.D6,i.LG],styles:[".isRtl[_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{transform:scaleX(-1)}html[dir=rtl][_ngcontent-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{--dummy: 0;transform:scaleX(-1)}.hotkey-border[_ngcontent-%COMP%]{border:1px solid #ffffff;padding:4px 8px;font-weight:500;line-height:32px;margin:4px}.common-overlay[_ngcontent-%COMP%]{position:absolute;inset:0;display:flex;z-index:1;background-color:#000000bf}.common-overlay.light-background[_ngcontent-%COMP%]{background-color:#00000080}.common-overlay.no-background[_ngcontent-%COMP%]{background-color:transparent}"]})}}return M})()},43281:(St,z,s)=>{"use strict";s.d(z,{_U:()=>n,b5:()=>i,mt:()=>h});const i=16,n=2*i;var h=function(C){return C.Indeterminate="indeterminate",C.Determininate="determinate",C}(h||{})},80282:(St,z,s)=>{"use strict";s.d(z,{_:()=>$e});var i=s(58527),n=s(40262),h=s(96542),C=s(29370),S=s(47973),M=s(61142),P=s(80583),x=s(26513),A=s(36877),g=s(4208),m=s(8619),l=s(65706),r=s(66253);const u={[r.Y.Init]:{expand:!1,text:!1,shadow:!1,icon:!1},[r.Y.Expanding]:{expand:!0,text:!0,shadow:!0,icon:!0},[r.Y.Expanded]:{expand:!0,text:!0,shadow:!0,icon:!0},[r.Y.Collapsing]:{expand:!0,text:!1,shadow:!1,icon:!1},[r.Y.Collapsed]:{expand:!1,text:!1,shadow:!1,icon:!1}};var v=s(54504),E=s(2218),T=s(92602),R=s(94222),B=s(21684),U=s(68868);const Y=["higSidebarContainer"],ae=["higSidebarHighlight"];function G(dt,Pe){if(1&dt){const J=i.RV6();i.j41(0,"div",8),i.bIt("@higSidebarOpacityAnimation.done",function(ve){i.eBV(J);const ue=i.XpG();return i.Njj(ue.onAnimationDone(ve))}),i.k0s()}if(2&dt){const J=i.XpG();i.Y8G("@.disabled",!J.expandable)("@higSidebarOpacityAnimation",J.sidebarAnimationState)}}function k(dt,Pe){1&dt&&i.nrm(0,"div",9,1)}function X(dt,Pe){if(1&dt&&i.nrm(0,"img",19),2&dt){const J=i.XpG(3);i.FS9("src",J.accountInfoSidebarItem.badgeUrl,i.B4B),i.Y8G("@higSidebarOpacityAnimation",J.sidebarAnimationState)}}function q(dt,Pe){if(1&dt&&(i.j41(0,"span"),i.EFF(1),i.nI1(2,"translate"),i.k0s()),2&dt){let J;const vt=i.XpG(3);i.HbH(null!==(J=vt.accountInfoSidebarItem.fontTypeClass)&&void 0!==J?J:"font-sub2"),i.Y8G("@higSidebarTextAnimation",vt.sidebarAnimationState),i.R7$(),i.SpI(" ",i.bMT(2,4,vt.accountInfoSidebarItem.text)," ")}}function Q(dt,Pe){if(1&dt&&(i.j41(0,"span",23),i.EFF(1),i.k0s()),2&dt){const J=i.XpG(4);i.R7$(),i.JRh(J.accountInfoSidebarItem.subtext)}}function ce(dt,Pe){if(1&dt&&(i.j41(0,"div",20)(1,"span",21),i.EFF(2),i.k0s(),i.DNE(3,Q,2,1,"span",22),i.k0s()),2&dt){const J=i.XpG(3);i.Y8G("@higSidebarTextAnimation",J.sidebarAnimationState),i.R7$(2),i.JRh(J.accountInfoSidebarItem.text),i.R7$(),i.Y8G("ngIf",J.accountInfoSidebarItem.subtext)}}function te(dt,Pe){if(1&dt){const J=i.RV6();i.j41(0,"div",12)(1,"button",13),i.bIt("focus",function(ve){i.eBV(J);const ue=i.XpG(2);return i.Njj(ue.onItemFocus(ve))})("click",function(ve){i.eBV(J);const ue=i.XpG(2);return i.Njj(ue.onItemClicked(ve,ue.accountInfoSidebarItem.type))}),i.j41(2,"div",14),i.nrm(3,"mat-icon",15),i.DNE(4,X,1,2,"img",16)(5,q,3,6,"span",17)(6,ce,4,3,"div",18),i.k0s()()()}if(2&dt){const J=i.XpG(2);i.R7$(),i.AVh("has-badge",null==J.accountInfoSidebarItem?null:J.accountInfoSidebarItem.badgeUrl)("selected",(null==J.currentSelectedItem?null:J.currentSelectedItem.type)===J.accountInfoSidebarItem.type),i.Y8G("hidden",!J.animationStateMap[J.sidebarAnimationState].expand&&J.hideAccountItemWhenCollapsed),i.R7$(2),i.Y8G("svgIcon",J.accountInfoSidebarItem.svgIconId)("@higSidebarOpacityAnimation",J.sidebarAnimationState),i.R7$(),i.Y8G("ngIf",J.accountInfoSidebarItem.badgeUrl&&J.animationStateMap[J.sidebarAnimationState].icon),i.R7$(),i.Y8G("ngIf",!(null!=J.accountInfoSidebarItem&&J.accountInfoSidebarItem.loggedIn)&&J.animationStateMap[J.sidebarAnimationState].text),i.R7$(),i.Y8G("ngIf",(null==J.accountInfoSidebarItem?null:J.accountInfoSidebarItem.loggedIn)&&J.animationStateMap[J.sidebarAnimationState].text)}}function Ee(dt,Pe){if(1&dt&&(i.j41(0,"div",10),i.DNE(1,te,7,10,"div",11),i.k0s()),2&dt){const J=i.XpG();i.R7$(),i.Y8G("ngIf",J.accountInfoSidebarItem)}}function it(dt,Pe){1&dt&&i.nrm(0,"div",30)}function Fe(dt,Pe){if(1&dt&&(i.j41(0,"span",31),i.EFF(1),i.nI1(2,"translate"),i.k0s()),2&dt){let J;const vt=i.XpG().$implicit,ve=i.XpG(2);i.HbH(null!==(J=vt.fontTypeClass)&&void 0!==J?J:"font-sub2"),i.Y8G("@higSidebarTextAnimation",ve.sidebarAnimationState),i.R7$(),i.SpI(" ",i.bMT(2,4,vt.text)," ")}}function Qe(dt,Pe){if(1&dt&&i.nrm(0,"div",32),2&dt){const J=i.XpG().$implicit,vt=i.XpG(2);i.AVh("selected",(null==vt.currentSelectedItem?null:vt.currentSelectedItem.type)===J.type)}}function ct(dt,Pe){if(1&dt){const J=i.RV6();i.j41(0,"div",12)(1,"button",26),i.bIt("focus",function(ve){i.eBV(J);const ue=i.XpG(2);return i.Njj(ue.onItemFocus(ve))})("click",function(ve){const ue=i.eBV(J).$implicit,et=i.XpG(2);return i.Njj(et.onItemClicked(ve,ue.type))}),i.j41(2,"div",14),i.DNE(3,it,1,0,"div",27),i.nrm(4,"mat-icon",15),i.DNE(5,Fe,3,6,"span",28),i.k0s()(),i.DNE(6,Qe,1,2,"div",29),i.k0s()}if(2&dt){const J=Pe.$implicit,vt=i.XpG(2);i.R7$(),i.AVh("selected",(null==vt.currentSelectedItem?null:vt.currentSelectedItem.type)===J.type),i.BMQ("cdkFocusInitial",(null==vt.currentSelectedItem?null:vt.currentSelectedItem.type)===J.type||null),i.R7$(2),i.Y8G("ngIf",J.hasNotificationBadge),i.R7$(),i.Y8G("svgIcon",J.svgIconId),i.R7$(),i.Y8G("ngIf",vt.animationStateMap[vt.sidebarAnimationState].text||!vt.expandable),i.R7$(),i.Y8G("ngIf",vt.showBorderOnSelectedItem)}}function Ge(dt,Pe){if(1&dt&&(i.j41(0,"div",24),i.DNE(1,ct,7,7,"div",25),i.k0s()),2&dt){const J=i.XpG();i.R7$(),i.Y8G("ngForOf",J.pageNavSidebarItems)}}function nt(dt,Pe){1&dt&&i.nrm(0,"div",30)}function Je(dt,Pe){if(1&dt&&i.nrm(0,"mat-icon",15),2&dt){const J=i.XpG().$implicit,vt=i.XpG(2);i.Y8G("svgIcon",J.svgIconId)("@higSidebarOpacityAnimation",vt.sidebarAnimationState)}}function ze(dt,Pe){if(1&dt&&(i.j41(0,"span"),i.EFF(1),i.nI1(2,"translate"),i.k0s()),2&dt){let J;const vt=i.XpG().$implicit,ve=i.XpG(2);i.HbH(null!==(J=vt.fontTypeClass)&&void 0!==J?J:"font-sub2"),i.Y8G("@higSidebarTextAnimation",ve.sidebarAnimationState),i.R7$(),i.SpI(" ",i.bMT(2,4,vt.text)," ")}}function Ke(dt,Pe){if(1&dt){const J=i.RV6();i.j41(0,"div",12)(1,"button",34),i.bIt("focus",function(ve){i.eBV(J);const ue=i.XpG(2);return i.Njj(ue.onItemFocus(ve))})("click",function(ve){const ue=i.eBV(J).$implicit,et=i.XpG(2);return i.Njj(et.onItemClicked(ve,ue.type))}),i.j41(2,"div",14),i.DNE(3,nt,1,0,"div",27)(4,Je,1,2,"mat-icon",35)(5,ze,3,6,"span",17),i.k0s()()()}if(2&dt){const J=Pe.$implicit,vt=i.XpG(2);i.R7$(),i.AVh("selected",(null==vt.currentSelectedItem?null:vt.currentSelectedItem.type)===J.type),i.Y8G("hidden",!vt.animationStateMap[vt.sidebarAnimationState].expand),i.R7$(2),i.Y8G("ngIf",J.hasNotificationBadge&&vt.animationStateMap[vt.sidebarAnimationState].expand),i.R7$(),i.Y8G("ngIf",vt.animationStateMap[vt.sidebarAnimationState].icon),i.R7$(),i.Y8G("ngIf",vt.animationStateMap[vt.sidebarAnimationState].text||!vt.expandable)}}function Ve(dt,Pe){if(1&dt&&(i.j41(0,"div",33),i.DNE(1,Ke,6,6,"div",25),i.k0s()),2&dt){const J=i.XpG();i.R7$(),i.Y8G("ngForOf",J.modalNavSidebarItems)}}let $e=(()=>{class dt{get expand(){return this._expand}set expand(J){!this.expandable||J===this._expand||(this._expand=J,this.sidebarAnimationStateSubject.next(J?r.Y.Expanding:r.Y.Collapsing))}set currentSelectedItem(J){this._currentSelectedItem=J??this.pageNavSidebarItems?.[0]}get currentSelectedItem(){return this._currentSelectedItem}get sidebarAnimationState(){return this.sidebarAnimationStateSubject.getValue()}get sidebarAnimationState$(){return this.sidebarAnimationStateSubject.asObservable()}get spatialNavigationEnabled(){return this.spatialNavigationService.enabled}constructor(J,vt,ve,ue,et,se,Ce,be){this.builder=J,this.loggingService=vt,this.spatialNavigationService=ve,this.localeService=ue,this.ngZone=et,this.focusManager=se,this.inputModalityService=Ce,this.changeDetector=be,this.expandable=!0,this.showBorder=!1,this.enlargeFocusedItem=!1,this.gradientOnFocusedItem=!1,this.showBorderOnSelectedItem=!1,this.hideAccountItemWhenCollapsed=!1,this.itemClicked=new i.bkB,this.animationStateMap=u,this.HigSidebarAnimationStateType=r.Y,this.destroy$=new P.B7,this.lastHighlightOffset=0,this.sidebarAnimationStateSubject=new x.t(r.Y.Init),this._expand=!1,this.logger=this.loggingService.getLogger("hig/SidebarComponent"),this.isRtl=this.localeService.isRTLLayoutEnabled}ngOnInit(){this.logger.info(`Init, expandable: ${this.expandable}`),this.localeService.localeChanged.pipe((0,g.Q)(this.destroy$)).subscribe(J=>{this.isRtl=this.localeService.isRTLLayoutEnabled})}ngAfterViewInit(){this.spatialNavigationEnabled&&this.ngZone.runOutsideAngular(()=>{(0,A.R)(this.higSidebarContainer.nativeElement,"navbeforefocus").pipe((0,m.p)(J=>J.target===this.higSidebarContainer.nativeElement),(0,g.Q)(this.destroy$)).subscribe(this.onNavigateToInside.bind(this)),(0,A.R)(this.higSidebarContainer.nativeElement,"navnotarget").pipe((0,m.p)(J=>J.target===this.higSidebarContainer.nativeElement&&(this.isRtl?"left"===J.detail.dir:"right"===J.detail.dir)),(0,g.Q)(this.destroy$)).subscribe(this.onNavigateToOutside.bind(this))})}onAnimationDone(J){"void"===J.toState?this.sidebarAnimationStateSubject.next(r.Y.Collapsed):J.toState===r.Y.Expanding&&this.sidebarAnimationStateSubject.next(r.Y.Expanded)}onSidebarClicked(J){!this.expandable||this.expand||(this.expand=!0,this.moveFocusOnSelectedItem())}onItemClicked(J,vt){this.expandable&&!this.expand||(this.expandable&&this.expand&&J.stopPropagation(),this.expandable&&this.currentSelectedItem.type===vt&&this.navigateOutToPrevFocused(),this.itemClicked.emit({itemType:vt,event:J}))}onItemFocus(J){if(this.higSidebarHighlight){this.higSidebarHighlight.nativeElement.style.height=`${J.target.getBoundingClientRect().height}px`;const vt=(0,n.i0)(this.expandable&&this.sidebarAnimationState===r.Y.Expanded&&"keyboard"===this.inputModalityService.lastFocusOrigin?"200ms ease-in":0,(0,n.i7)([(0,n.iF)({transform:`translateY(${this.lastHighlightOffset}px)`}),(0,n.iF)({transform:`translateY(${J.target.getBoundingClientRect().top}px)`})]));this.lastHighlightOffset=J.target.getBoundingClientRect().top,this.builder.build(vt).create(this.higSidebarHighlight.nativeElement).play()}}onFocusOut(J){this.isFocusedElementInSidebar(J.relatedTarget)||this.expandable&&this.expand&&(this.expand=!1,this.changeDetector.detectChanges())}onFocusIn(J){this.expandable&&!this.expand&&"keyboard"===this.inputModalityService.lastFocusOrigin&&(this.expand=!0)}moveFocusOnSelectedItem(J){setTimeout(()=>{const vt=this.higSidebarContainer?.nativeElement.querySelector(".selected");!vt||vt===this.focusManager.currentFocusedElement||(J?this.focusManager.navigateTo(vt,J):this.focusManager.focusViaLastOrigin(vt))})}onNavigateToInside(J){const vt=this.focusManager.currentFocusedElement;this.getSiblingElement()?.contains(vt)&&(this.prevFocusedElementBeforeNavigateIn=vt),J.preventDefault(),this.onExpandSidebarByNavigationIfNeeded(),this.moveFocusOnSelectedItem(J.detail.dir)}onExpandSidebarByNavigationIfNeeded(){!this.expandable||this.expand||this.sidebarAnimationState!==r.Y.Collapsed&&this.sidebarAnimationState!==r.Y.Init||(this.expand=!0,this.changeDetector.markForCheck())}onNavigateToOutside(J){J.preventDefault(),(!this.expandable||this.sidebarAnimationState===r.Y.Expanded)&&this.navigateOutToPrevFocused()}navigateOutToPrevFocused(){const J=this.isRtl?"left":"right";this.prevFocusedElementBeforeNavigateIn&&this.prevFocusedElementBeforeNavigateIn.isConnected?this.focusManager.navigateTo(this.prevFocusedElementBeforeNavigateIn,J):this.handleNavigateToNearBy(J),this.prevFocusedElementBeforeNavigateIn=null}handleNavigateToNearBy(J){this.expandable&&this.expand?(this.sidebarAnimationState$.pipe((0,m.p)(vt=>vt===r.Y.Collapsed),(0,l.s)(1),(0,g.Q)(this.destroy$)).subscribe(vt=>{this.navigateToNearby(this.isRtl?"left":"right")}),this.expand=!1,this.changeDetector.markForCheck()):this.navigateToNearby(J)}navigateToNearby(J){const ve=document.activeElement.getBoundingClientRect(),ue=this.higSidebarContainer.nativeElement.getBoundingClientRect();this.spatialNavigationService.setStartingPointAt(this.isRtl?ue.left:ue.right,(ve.top+ve.bottom)/2);const se=this.spatialNavigationService.getClosestChild(document.body,this.getSiblingElement(),J);this.focusManager.navigateTo(se,J)}isFocusedElementInSidebar(J){return this.higSidebarContainer.nativeElement.contains(J)}getSiblingElement(){return this.higSidebarContainer.nativeElement.parentElement.nextElementSibling}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static{this.\u0275fac=function(vt){return new(vt||dt)(i.rXU(n.S6),i.rXU(T.J6),i.rXU(R.E),i.rXU(T.iH),i.rXU(i.SKi),i.rXU(B.c),i.rXU(U.p),i.rXU(i.gRc))}}static{this.\u0275cmp=i.VBU({type:dt,selectors:[["nv-hig-sidebar"]],viewQuery:function(vt,ve){if(1&vt&&(i.GBs(Y,5),i.GBs(ae,5)),2&vt){let ue;i.mGM(ue=i.lsd())&&(ve.higSidebarContainer=ue.first),i.mGM(ue=i.lsd())&&(ve.higSidebarHighlight=ue.first)}},inputs:{expandable:"expandable",showBorder:"showBorder",enlargeFocusedItem:"enlargeFocusedItem",gradientOnFocusedItem:"gradientOnFocusedItem",showBorderOnSelectedItem:"showBorderOnSelectedItem",hideAccountItemWhenCollapsed:"hideAccountItemWhenCollapsed",expand:"expand",currentSelectedItem:"currentSelectedItem",accountInfoSidebarItem:"accountInfoSidebarItem",pageNavSidebarItems:"pageNavSidebarItems",modalNavSidebarItems:"modalNavSidebarItems"},outputs:{itemClicked:"itemClicked"},standalone:!0,features:[i.aNF],decls:7,vars:19,consts:[["higSidebarContainer",""],["higSidebarHighlight",""],["class","hig-sidebar-gradient",4,"ngIf"],["nvSpatialNavigationGroup","",1,"hig-sidebar-container",3,"click","focusout","focusin"],["class","hig-sidebar-highlight",4,"ngIf"],["class","account-info-layout",4,"ngIf"],["class","page-nav-layout",4,"ngIf"],["class","modal-nav-layout",4,"ngIf"],[1,"hig-sidebar-gradient"],[1,"hig-sidebar-highlight"],[1,"account-info-layout"],["class","hig-sidebar-item",4,"ngIf"],[1,"hig-sidebar-item"],["mat-button","",1,"account-button",3,"focus","click","hidden"],[1,"hig-sidebar-button-content"],[3,"svgIcon"],["class","avatar-badge",3,"src",4,"ngIf"],[3,"class",4,"ngIf"],["class","account-info",4,"ngIf"],[1,"avatar-badge",3,"src"],[1,"account-info"],[1,"username","font-sub2"],["class","font-body3",4,"ngIf"],[1,"font-body3"],[1,"page-nav-layout"],["class","hig-sidebar-item",4,"ngFor","ngForOf"],["mat-button","",3,"focus","click"],["class","notification-badge",4,"ngIf"],["class","item-text","nvEllipsifiedTextWithTooltip","","tooltipClass","mat-tooltip-font-body3",3,"class",4,"ngIf"],["class","button-border",3,"selected",4,"ngIf"],[1,"notification-badge"],["nvEllipsifiedTextWithTooltip","","tooltipClass","mat-tooltip-font-body3",1,"item-text"],[1,"button-border"],[1,"modal-nav-layout"],["mat-button","",3,"focus","click","hidden"],[3,"svgIcon",4,"ngIf"]],template:function(vt,ve){if(1&vt){const ue=i.RV6();i.DNE(0,G,1,2,"div",2),i.j41(1,"div",3,0),i.bIt("click",function(se){return i.eBV(ue),i.Njj(ve.onSidebarClicked(se))})("focusout",function(se){return i.eBV(ue),i.Njj(ve.onFocusOut(se))})("focusin",function(se){return i.eBV(ue),i.Njj(ve.onFocusIn(se))}),i.DNE(3,k,2,0,"div",4)(4,Ee,2,1,"div",5)(5,Ge,2,1,"div",6)(6,Ve,2,1,"div",7),i.k0s()}2&vt&&(i.Y8G("ngIf",ve.animationStateMap[ve.sidebarAnimationState].shadow),i.R7$(),i.HbH(ve.animationStateMap[ve.sidebarAnimationState].expand&&ve.expandable?"expanded":"collapsed"),i.AVh("expandable",ve.expandable)("show-border",ve.showBorder)("enlarge-focused-item",ve.enlargeFocusedItem)("collapsing",ve.sidebarAnimationState===ve.HigSidebarAnimationStateType.Collapsing)("expand-finished",ve.sidebarAnimationState===ve.HigSidebarAnimationStateType.Expanded),i.Y8G("@.disabled",!ve.expandable),i.BMQ("tabindex",ve.spatialNavigationEnabled?0:-1),i.R7$(2),i.Y8G("ngIf",ve.expandable),i.R7$(),i.Y8G("ngIf",ve.expandable),i.R7$(),i.Y8G("ngIf",(null==ve.pageNavSidebarItems?null:ve.pageNavSidebarItems.length)>0),i.R7$(),i.Y8G("ngIf",ve.expandable))},dependencies:[M.bT,E.$,S.wG,S.iV,C.m_,C.An,M.pM,v.a,h.h,h.D9],styles:[".isRtl[_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{transform:scaleX(-1)}html[dir=rtl][_ngcontent-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{--dummy: 0;transform:scaleX(-1)}.hotkey-border[_ngcontent-%COMP%]{border:1px solid #ffffff;padding:4px 8px;font-weight:500;line-height:32px;margin:4px}[_nghost-%COMP%]{height:100%;--hig-sidebar-expand-width: 256px;--hig-sidebar-collapse-width: 120px;--hig-sidebar-container-padding-top: auto;--hig-sidebar-horizontal-padding: 0;--hig-sidebar-layout-gap-size: 16px;--hig-sidebar-layout-first-item-top-gap: 16px;--hig-sidebar-button-padding-top-bottom-size: 8px;--hig-sidebar-button-padding-left-right-size: 16px;--hig-sidebar-button-left-indent: 0;--hig-sidebar-button-content-layout-direction: column;--hig-sidebar-icon-size: 24px;--hig-sidebar-icon-default-color: var(--primary-contrast-700);--hig-sidebar-icon-padding-right: 0;--hig-sidebar-text-align-self: none;--hig-sidebar-text-last-align-last: none;--hig-sidebar-expanded-icon-gap-size: 24px;--hig-sidebar-collapsed-icon-gap-size: 8px;--hig-sidebar-item-focused-rgba: rgba(255, 255, 255, .32);--hig-sidebar-item-selected-left-border-size: 4px;--hig-sidebar-item-selected-left-border-color: #76b900;--hig-sidebar-item-selected-icon-color: #76b900;--hig-sidebar-item-selected-text-color: var(--primary-contrast-1000);--hig-sidebar-item-selected-border-width: 0;--hig-sidebar-item-selected-border-radius: 0;--hig-sidebar-item-selected-left-position: 0;--hig-notification-badge-width: 9px;--hig-notification-badge-height: 9px;--hig-notification-badge-bg: #76b900;--hig-notification-badge-position-right: 8px;--hig-notification-badge-position-top: -5px;--hig-notification-badge-position-left: initial;--hig-sidebar-border-color-rgba: rgba(255, 255, 255, .16);--hig-sidebar-account-icon-size: 24px;--hig-sidebar-account-layout-margin-top: 28px;--hig-sidebar-expanded-account-icon-gap-size: 16px;--hig-sidebar-expanded-account-with-badge-icon-gap-size: 8px;--hig-sidebar-avatar-badge-img-size: 17px;--hig-sidebar-avatar-badge-img-relative-top: 9px;--hig-sidebar-avatar-badge-img-relative-right: 11px;--hig-sidebar-avatar-badge-img-relative-left: 34px;--hig-sidebar-modal-layout-margin-bottom: 28px;--hig-sidebar-background-linear-gradient-deg: 90deg;--hig-sidebar-container-collapsed-overflow: unset}.isRtl [_nghost-%COMP%]{--hig-sidebar-background-linear-gradient-deg: 270deg}.hig-sidebar-container[_ngcontent-%COMP%]{height:100%;background:var(--hig-sidebar-bg);display:flex;flex-direction:column;padding-top:var(--hig-sidebar-container-padding-top)}.hig-sidebar-container[_ngcontent-%COMP%] .account-info-layout[_ngcontent-%COMP%], .hig-sidebar-container[_ngcontent-%COMP%] .page-nav-layout[_ngcontent-%COMP%], .hig-sidebar-container[_ngcontent-%COMP%] .modal-nav-layout[_ngcontent-%COMP%]{display:flex;flex-direction:column}.hig-sidebar-container[_ngcontent-%COMP%] .page-nav-layout[_ngcontent-%COMP%]{padding:0 var(--hig-sidebar-horizontal-padding)}.hig-sidebar-container[_ngcontent-%COMP%] .account-info-layout[_ngcontent-%COMP%]{justify-content:flex-start;margin-top:var(--hig-sidebar-account-layout-margin-top)}.hig-sidebar-container[_ngcontent-%COMP%] .modal-nav-layout[_ngcontent-%COMP%]{justify-content:flex-end;margin-bottom:var(--hig-sidebar-modal-layout-margin-bottom)}.hig-sidebar-container[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%]{width:100%;margin:var(--hig-sidebar-layout-gap-size) 0;position:relative}.hig-sidebar-container[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%]:first-of-type{margin-top:var(--hig-sidebar-layout-first-item-top-gap)}.hig-sidebar-container[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] .button-border[_ngcontent-%COMP%]{position:absolute;top:0;left:var(--hig-sidebar-item-selected-left-position);width:var(--hig-sidebar-item-selected-border-width);height:100%;background-color:var(--hig-sidebar-item-selected-left-border-color);border-radius:var(--hig-sidebar-item-selected-border-radius);display:none}.hig-sidebar-container[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] .button-border.selected[_ngcontent-%COMP%]{display:block}.hig-sidebar-container[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{position:relative;width:100%;padding:var(--hig-sidebar-button-padding-top-bottom-size) var(--hig-sidebar-button-padding-left-right-size)}.hig-sidebar-container[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .hig-sidebar-button-content[_ngcontent-%COMP%]{display:flex;align-items:center;position:relative}.hig-sidebar-container[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .notification-badge[_ngcontent-%COMP%]{position:absolute;height:var(--hig-notification-badge-width);width:var(--hig-notification-badge-height);background:var(--hig-notification-badge-bg);border-radius:50%;top:var(--hig-notification-badge-position-top)}.isLtr[_nghost-%COMP%] .hig-sidebar-container[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .notification-badge[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .hig-sidebar-container[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .notification-badge[_ngcontent-%COMP%]{right:var(--hig-notification-badge-position-right)}html[dir=ltr][_ngcontent-%COMP%] .hig-sidebar-container[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .notification-badge[_ngcontent-%COMP%]{--dummy6: 0;right:var(--hig-notification-badge-position-right)}.isRtl[_nghost-%COMP%] .hig-sidebar-container[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .notification-badge[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .hig-sidebar-container[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .notification-badge[_ngcontent-%COMP%]{left:var(--hig-notification-badge-position-right)}html[dir=rtl][_ngcontent-%COMP%] .hig-sidebar-container[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .notification-badge[_ngcontent-%COMP%]{--dummy6: 0;left:var(--hig-notification-badge-position-right)}.isLtr[_nghost-%COMP%] .hig-sidebar-container[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .notification-badge[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .hig-sidebar-container[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .notification-badge[_ngcontent-%COMP%]{left:var(--hig-notification-badge-position-left, initial)}html[dir=ltr][_ngcontent-%COMP%] .hig-sidebar-container[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .notification-badge[_ngcontent-%COMP%]{--dummy5: 0;left:var(--hig-notification-badge-position-left, initial)}.isRtl[_nghost-%COMP%] .hig-sidebar-container[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .notification-badge[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .hig-sidebar-container[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .notification-badge[_ngcontent-%COMP%]{right:var(--hig-notification-badge-position-left, initial)}html[dir=rtl][_ngcontent-%COMP%] .hig-sidebar-container[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .notification-badge[_ngcontent-%COMP%]{--dummy5: 0;right:var(--hig-notification-badge-position-left, initial)}.hig-sidebar-container[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:var(--hig-sidebar-icon-size);width:var(--hig-sidebar-icon-size);height:var(--hig-sidebar-icon-size);color:var(--hig-sidebar-icon-default-color)}.hig-sidebar-container[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button.account-button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:var(--hig-sidebar-account-icon-size);width:var(--hig-sidebar-account-icon-size);height:var(--hig-sidebar-account-icon-size)}.hig-sidebar-container[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{background:var(--hig-sidebar-item-hover-rgba)}.hig-sidebar-container[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button.cdk-keyboard-focused[_ngcontent-%COMP%], .hig-sidebar-container[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button.cdk-program-focused[_ngcontent-%COMP%]{background-color:var(--hig-sidebar-item-focused-rgba)}.isLtr[_nghost-%COMP%] .hig-sidebar-container[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button.selected[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .hig-sidebar-container[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button.selected[_ngcontent-%COMP%]{box-shadow:inset var(--hig-sidebar-item-selected-left-border-size) 0 var(--hig-sidebar-item-selected-left-border-color)}.isRtl[_nghost-%COMP%] .hig-sidebar-container[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button.selected[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .hig-sidebar-container[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button.selected[_ngcontent-%COMP%]{box-shadow:inset calc(var(--hig-sidebar-item-selected-left-border-size) * -1) 0 var(--hig-sidebar-item-selected-left-border-color)}.hig-sidebar-container[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button.selected[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:var(--hig-sidebar-item-selected-icon-color)}.hig-sidebar-container[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button.selected[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:var(--hig-sidebar-item-selected-text-color)}.hig-sidebar-container[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] .account-button[_ngcontent-%COMP%] img.avatar-badge[_ngcontent-%COMP%]{position:relative;height:var(--hig-sidebar-avatar-badge-img-size);width:auto;top:var(--hig-sidebar-avatar-badge-img-relative-top)}.isLtr[_nghost-%COMP%] .hig-sidebar-container[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] .account-button[_ngcontent-%COMP%] img.avatar-badge[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .hig-sidebar-container[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] .account-button[_ngcontent-%COMP%] img.avatar-badge[_ngcontent-%COMP%]{right:var(--hig-sidebar-avatar-badge-img-relative-right)}.isRtl[_nghost-%COMP%] .hig-sidebar-container[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] .account-button[_ngcontent-%COMP%] img.avatar-badge[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .hig-sidebar-container[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] .account-button[_ngcontent-%COMP%] img.avatar-badge[_ngcontent-%COMP%]{left:var(--hig-sidebar-avatar-badge-img-relative-left)}.hig-sidebar-container[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] .account-button[_ngcontent-%COMP%] .account-info[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;min-width:0;max-width:70%}.hig-sidebar-container[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] .account-button[_ngcontent-%COMP%] .account-info[_ngcontent-%COMP%] .username[_ngcontent-%COMP%]{width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.hig-sidebar-highlight[_ngcontent-%COMP%]{--hig-linear-gradient-highlight-style-deg: 90deg;background-image:linear-gradient(var(--hig-linear-gradient-highlight-style-deg),rgba(255,255,255,.32) 0%,rgba(255,255,255,.32) 33%,rgba(255,255,255,0) 100%);transition:height .1s ease-in-out,opacity .3s ease-in-out,visibility .3s ease-in-out;left:0;opacity:0;visibility:hidden;position:absolute;top:0;width:100%}.isRtl[_nghost-%COMP%] .hig-sidebar-highlight[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .hig-sidebar-highlight[_ngcontent-%COMP%]{--hig-linear-gradient-highlight-style-deg: 270deg}.hig-sidebar-container.expandable.expanded[_ngcontent-%COMP%]:not(.collapsing) .hig-sidebar-highlight[_ngcontent-%COMP%]{opacity:1;visibility:visible}.hig-sidebar-container.show-border[_ngcontent-%COMP%]{box-sizing:border-box}.isLtr[_nghost-%COMP%] .hig-sidebar-container.show-border[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .hig-sidebar-container.show-border[_ngcontent-%COMP%]{border-left:none;border-right:1px solid var(--hig-sidebar-border-color-rgba)}.isRtl[_nghost-%COMP%] .hig-sidebar-container.show-border[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .hig-sidebar-container.show-border[_ngcontent-%COMP%]{border-right:none;border-left:1px solid var(--hig-sidebar-border-color-rgba)}.hig-sidebar-container.expandable[_ngcontent-%COMP%]{transition:width .3s ease-in-out}.hig-sidebar-container.expandable[_ngcontent-%COMP%]:hover{background-color:#ffffff14;cursor:pointer;transition:background-color .3s ease-in-out}.hig-sidebar-container.expandable[_ngcontent-%COMP%] .account-info-layout[_ngcontent-%COMP%], .hig-sidebar-container.expandable[_ngcontent-%COMP%] .modal-nav-layout[_ngcontent-%COMP%]{flex:1 0 0}.hig-sidebar-container.expandable[_ngcontent-%COMP%] .page-nav-layout[_ngcontent-%COMP%]{flex:2 0 0;justify-content:center}.isLtr[_nghost-%COMP%] .hig-sidebar-container.expandable[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .hig-sidebar-container.expandable[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{padding-left:calc(var(--hig-sidebar-button-padding-left-right-size) + var(--hig-sidebar-button-left-indent))}html[dir=ltr][_ngcontent-%COMP%] .hig-sidebar-container.expandable[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{--dummy1: 0;padding-left:calc(var(--hig-sidebar-button-padding-left-right-size) + var(--hig-sidebar-button-left-indent))}.isRtl[_nghost-%COMP%] .hig-sidebar-container.expandable[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .hig-sidebar-container.expandable[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{padding-right:calc(var(--hig-sidebar-button-padding-left-right-size) + var(--hig-sidebar-button-left-indent))}html[dir=rtl][_ngcontent-%COMP%] .hig-sidebar-container.expandable[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{--dummy1: 0;padding-right:calc(var(--hig-sidebar-button-padding-left-right-size) + var(--hig-sidebar-button-left-indent))}.hig-sidebar-container.expandable[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{background-color:unset;--hig-linear-gradient-highlight-style-deg: 90deg;background-image:linear-gradient(var(--hig-linear-gradient-highlight-style-deg),rgba(255,255,255,.08) 0%,rgba(255,255,255,.08) 33%,rgba(255,255,255,0) 100%)}.isRtl[_nghost-%COMP%] .hig-sidebar-container.expandable[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover, .isRtl [_nghost-%COMP%] .hig-sidebar-container.expandable[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{--hig-linear-gradient-highlight-style-deg: 270deg}.hig-sidebar-container.expandable[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button.cdk-keyboard-focused[_ngcontent-%COMP%], .hig-sidebar-container.expandable[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button.cdk-program-focused[_ngcontent-%COMP%]{background-color:unset}.hig-sidebar-container.expandable[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover mat-icon[_ngcontent-%COMP%], .hig-sidebar-container.expandable[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button.cdk-keyboard-focused[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .hig-sidebar-container.expandable[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button.cdk-program-focused[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:#fff;transition:color .4s ease-in;filter:drop-shadow(0 3px 2px rgba(0,0,0,.5))}.hig-sidebar-container.expandable[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button[hidden][_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{display:none}.hig-sidebar-container.expandable[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button[hidden][_ngcontent-%COMP%]:hover{--hig-linear-gradient-highlight-style-deg: 90deg;background-image:linear-gradient(var(--hig-linear-gradient-highlight-style-deg),rgba(255,255,255,0) 0%,rgba(255,255,255,0) 33%,rgba(255,255,255,0) 100%)}.isRtl[_nghost-%COMP%] .hig-sidebar-container.expandable[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button[hidden][_ngcontent-%COMP%]:hover, .isRtl [_nghost-%COMP%] .hig-sidebar-container.expandable[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button[hidden][_ngcontent-%COMP%]:hover{--hig-linear-gradient-highlight-style-deg: 270deg}.hig-sidebar-container.expandable[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button[hidden].cdk-focused[_ngcontent-%COMP%], .hig-sidebar-container.expandable[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button[hidden].cdk-mouse-focused[_ngcontent-%COMP%]{opacity:0}.hig-sidebar-container.collapsed[_ngcontent-%COMP%]:not(.expandable) mat-icon[_ngcontent-%COMP%]{margin-bottom:var(--hig-sidebar-collapsed-icon-gap-size)}.hig-sidebar-container.collapsed[_ngcontent-%COMP%]:not(.expandable) .item-text[_ngcontent-%COMP%]{width:100%}.hig-sidebar-container.collapsed[_ngcontent-%COMP%]:not(.expandable) .hig-sidebar-item[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .hig-sidebar-button-content[_ngcontent-%COMP%]{flex-direction:var(--hig-sidebar-button-content-layout-direction);justify-content:center}.isLtr[_nghost-%COMP%] .hig-sidebar-container.collapsed[_ngcontent-%COMP%]:not(.expandable) .hig-sidebar-item[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .hig-sidebar-button-content[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .hig-sidebar-container.collapsed[_ngcontent-%COMP%]:not(.expandable) .hig-sidebar-item[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .hig-sidebar-button-content[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:var(--hig-sidebar-icon-padding-right)}html[dir=ltr][_ngcontent-%COMP%] .hig-sidebar-container.collapsed[_ngcontent-%COMP%]:not(.expandable) .hig-sidebar-item[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .hig-sidebar-button-content[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-right:var(--hig-sidebar-icon-padding-right)}.isRtl[_nghost-%COMP%] .hig-sidebar-container.collapsed[_ngcontent-%COMP%]:not(.expandable) .hig-sidebar-item[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .hig-sidebar-button-content[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .hig-sidebar-container.collapsed[_ngcontent-%COMP%]:not(.expandable) .hig-sidebar-item[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .hig-sidebar-button-content[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:var(--hig-sidebar-icon-padding-right)}html[dir=rtl][_ngcontent-%COMP%] .hig-sidebar-container.collapsed[_ngcontent-%COMP%]:not(.expandable) .hig-sidebar-item[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .hig-sidebar-button-content[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-left:var(--hig-sidebar-icon-padding-right)}.isLtr[_nghost-%COMP%] .hig-sidebar-container.collapsed[_ngcontent-%COMP%]:not(.expandable) .hig-sidebar-item[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .hig-sidebar-button-content[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .hig-sidebar-container.collapsed[_ngcontent-%COMP%]:not(.expandable) .hig-sidebar-item[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .hig-sidebar-button-content[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:0}html[dir=ltr][_ngcontent-%COMP%] .hig-sidebar-container.collapsed[_ngcontent-%COMP%]:not(.expandable) .hig-sidebar-item[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .hig-sidebar-button-content[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{--dummy3: 0;margin-left:0}.isRtl[_nghost-%COMP%] .hig-sidebar-container.collapsed[_ngcontent-%COMP%]:not(.expandable) .hig-sidebar-item[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .hig-sidebar-button-content[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .hig-sidebar-container.collapsed[_ngcontent-%COMP%]:not(.expandable) .hig-sidebar-item[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .hig-sidebar-button-content[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:0}html[dir=rtl][_ngcontent-%COMP%] .hig-sidebar-container.collapsed[_ngcontent-%COMP%]:not(.expandable) .hig-sidebar-item[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .hig-sidebar-button-content[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{--dummy3: 0;margin-right:0}.hig-sidebar-container.collapsed[_ngcontent-%COMP%]:not(.expandable) .hig-sidebar-item[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .hig-sidebar-button-content[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{align-self:var(--hig-sidebar-text-align-self);text-align-last:var(--hig-sidebar-text-last-align-last)}.hig-sidebar-container.collapsed[_ngcontent-%COMP%]{width:var(--hig-sidebar-collapse-width);overflow:var(--hig-sidebar-container-collapsed-overflow)}.hig-sidebar-container.collapsed[_ngcontent-%COMP%] .account-info-layout[_ngcontent-%COMP%], .hig-sidebar-container.collapsed[_ngcontent-%COMP%] .page-nav-layout[_ngcontent-%COMP%], .hig-sidebar-container.collapsed[_ngcontent-%COMP%] .modal-nav-layout[_ngcontent-%COMP%]{align-items:center}.hig-sidebar-container.collapsed[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .hig-sidebar-button-content[_ngcontent-%COMP%]{flex-direction:var(--hig-sidebar-button-content-layout-direction);justify-content:center}.hig-sidebar-container.expandable.expand-finished[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{transition:transform .2s ease-in-out}.hig-sidebar-container.expandable.expand-finished[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:not(.account-button) span[_ngcontent-%COMP%]{transition:font-size .2s ease-in-out}.hig-sidebar-container.expanded[_ngcontent-%COMP%]{width:var(--hig-sidebar-expand-width)}.hig-sidebar-container.expanded[_ngcontent-%COMP%] .account-info-layout[_ngcontent-%COMP%], .hig-sidebar-container.expanded[_ngcontent-%COMP%] .page-nav-layout[_ngcontent-%COMP%], .hig-sidebar-container.expanded[_ngcontent-%COMP%] .modal-nav-layout[_ngcontent-%COMP%]{align-items:stretch}.hig-sidebar-container.expanded[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:var(--hig-sidebar-expand-width)}.isLtr[_nghost-%COMP%] .hig-sidebar-container.expanded[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .hig-sidebar-container.expanded[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:var(--hig-sidebar-expanded-icon-gap-size)}html[dir=ltr][_ngcontent-%COMP%] .hig-sidebar-container.expanded[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-right:var(--hig-sidebar-expanded-icon-gap-size)}.isRtl[_nghost-%COMP%] .hig-sidebar-container.expanded[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .hig-sidebar-container.expanded[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:var(--hig-sidebar-expanded-icon-gap-size)}html[dir=rtl][_ngcontent-%COMP%] .hig-sidebar-container.expanded[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-left:var(--hig-sidebar-expanded-icon-gap-size)}.isLtr[_nghost-%COMP%] .hig-sidebar-container.expanded[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button.account-button[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .hig-sidebar-container.expanded[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button.account-button[_ngcontent-%COMP%]{padding-left:calc(calc(var(--hig-sidebar-icon-size) / 2 + var(--hig-sidebar-button-padding-left-right-size) + var(--hig-sidebar-button-left-indent)) - var(--hig-sidebar-account-icon-size) / 2)}html[dir=ltr][_ngcontent-%COMP%] .hig-sidebar-container.expanded[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button.account-button[_ngcontent-%COMP%]{--dummy1: 0;padding-left:calc(calc(var(--hig-sidebar-icon-size) / 2 + var(--hig-sidebar-button-padding-left-right-size) + var(--hig-sidebar-button-left-indent)) - var(--hig-sidebar-account-icon-size) / 2)}.isRtl[_nghost-%COMP%] .hig-sidebar-container.expanded[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button.account-button[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .hig-sidebar-container.expanded[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button.account-button[_ngcontent-%COMP%]{padding-right:calc(calc(var(--hig-sidebar-icon-size) / 2 + var(--hig-sidebar-button-padding-left-right-size) + var(--hig-sidebar-button-left-indent)) - var(--hig-sidebar-account-icon-size) / 2)}html[dir=rtl][_ngcontent-%COMP%] .hig-sidebar-container.expanded[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button.account-button[_ngcontent-%COMP%]{--dummy1: 0;padding-right:calc(calc(var(--hig-sidebar-icon-size) / 2 + var(--hig-sidebar-button-padding-left-right-size) + var(--hig-sidebar-button-left-indent)) - var(--hig-sidebar-account-icon-size) / 2)}.isLtr[_nghost-%COMP%] .hig-sidebar-container.expanded[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button.account-button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .hig-sidebar-container.expanded[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button.account-button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:var(--hig-sidebar-expanded-account-icon-gap-size)}html[dir=ltr][_ngcontent-%COMP%] .hig-sidebar-container.expanded[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button.account-button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-right:var(--hig-sidebar-expanded-account-icon-gap-size)}.isRtl[_nghost-%COMP%] .hig-sidebar-container.expanded[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button.account-button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .hig-sidebar-container.expanded[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button.account-button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:var(--hig-sidebar-expanded-account-icon-gap-size)}html[dir=rtl][_ngcontent-%COMP%] .hig-sidebar-container.expanded[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button.account-button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-left:var(--hig-sidebar-expanded-account-icon-gap-size)}.isLtr[_nghost-%COMP%] .hig-sidebar-container.expanded[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button.account-button.has-badge[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .hig-sidebar-container.expanded[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button.account-button.has-badge[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:var(--hig-sidebar-expanded-account-with-badge-icon-gap-size)}html[dir=ltr][_ngcontent-%COMP%] .hig-sidebar-container.expanded[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button.account-button.has-badge[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-right:var(--hig-sidebar-expanded-account-with-badge-icon-gap-size)}.isRtl[_nghost-%COMP%] .hig-sidebar-container.expanded[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button.account-button.has-badge[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .hig-sidebar-container.expanded[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button.account-button.has-badge[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:var(--hig-sidebar-expanded-account-with-badge-icon-gap-size)}html[dir=rtl][_ngcontent-%COMP%] .hig-sidebar-container.expanded[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button.account-button.has-badge[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-left:var(--hig-sidebar-expanded-account-with-badge-icon-gap-size)}.hig-sidebar-container.expanded[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .hig-sidebar-button-content[_ngcontent-%COMP%]{flex-direction:row;justify-content:start}.hig-sidebar-container.expanded.collapsing[_ngcontent-%COMP%]{width:var(--hig-sidebar-collapse-width)}.hig-sidebar-container.enlarge-focused-item[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:calc(var(--hig-sidebar-button-padding-top-bottom-size) + var(--hig-sidebar-icon-size) * 1.5);padding:0 var(--hig-sidebar-button-padding-left-right-size)}.hig-sidebar-container.enlarge-focused-item[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button.cdk-keyboard-focused[_ngcontent-%COMP%]:not(.account-button) mat-icon[_ngcontent-%COMP%], .hig-sidebar-container.enlarge-focused-item[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button.cdk-program-focused[_ngcontent-%COMP%]:not(.account-button) mat-icon[_ngcontent-%COMP%]{transform:scale(1.5);transition:transform .2s ease-in}.hig-sidebar-container.enlarge-focused-item[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button.cdk-keyboard-focused[_ngcontent-%COMP%]:not(.account-button) span[_ngcontent-%COMP%], .hig-sidebar-container.enlarge-focused-item[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button.cdk-program-focused[_ngcontent-%COMP%]:not(.account-button) span[_ngcontent-%COMP%]{--font-body-color: var(--hig-ui-text-secondary-color);--font-body-size: 16px;--font-body-line-height: 24px;font-family:NVIDIA,sans-serif;color:var(--font-body-color);font-weight:400;font-style:normal;text-transform:none;font-size:var(--font-body-size);line-height:var(--font-body-line-height);letter-spacing:0}.tv-view[_ngcontent-%COMP%] .hig-sidebar-container.enlarge-focused-item[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button.cdk-keyboard-focused[_ngcontent-%COMP%]:not(.account-button) span[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .hig-sidebar-container.enlarge-focused-item[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button.cdk-keyboard-focused[_ngcontent-%COMP%]:not(.account-button) span[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .hig-sidebar-container.enlarge-focused-item[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button.cdk-keyboard-focused[_ngcontent-%COMP%]:not(.account-button) span[_ngcontent-%COMP%], .tv-view[_ngcontent-%COMP%] .hig-sidebar-container.enlarge-focused-item[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button.cdk-program-focused[_ngcontent-%COMP%]:not(.account-button) span[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .hig-sidebar-container.enlarge-focused-item[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button.cdk-program-focused[_ngcontent-%COMP%]:not(.account-button) span[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .hig-sidebar-container.enlarge-focused-item[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button.cdk-program-focused[_ngcontent-%COMP%]:not(.account-button) span[_ngcontent-%COMP%]{--font-body-size: 32px;--font-body-line-height: 48px;--font-body-color: rgba(255, 255, 255, .85)}.hig-sidebar-container.enlarge-focused-item[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button.cdk-keyboard-focused.selected[_ngcontent-%COMP%] span[_ngcontent-%COMP%], .hig-sidebar-container.enlarge-focused-item[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button.cdk-program-focused.selected[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{--font-sub-shared-font-size: 16px;--font-sub-shared-line-height: 24px;font-family:NVIDIA,sans-serif;color:var(--hig-ui-text-primary-color);font-weight:500;font-style:normal;text-transform:none;font-size:var(--font-sub-shared-font-size);line-height:var(--font-sub-shared-line-height);letter-spacing:0}.tv-view[_ngcontent-%COMP%] .hig-sidebar-container.enlarge-focused-item[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button.cdk-keyboard-focused.selected[_ngcontent-%COMP%] span[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .hig-sidebar-container.enlarge-focused-item[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button.cdk-keyboard-focused.selected[_ngcontent-%COMP%] span[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .hig-sidebar-container.enlarge-focused-item[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button.cdk-keyboard-focused.selected[_ngcontent-%COMP%] span[_ngcontent-%COMP%], .tv-view[_ngcontent-%COMP%] .hig-sidebar-container.enlarge-focused-item[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button.cdk-program-focused.selected[_ngcontent-%COMP%] span[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .hig-sidebar-container.enlarge-focused-item[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button.cdk-program-focused.selected[_ngcontent-%COMP%] span[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .hig-sidebar-container.enlarge-focused-item[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button.cdk-program-focused.selected[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{--font-sub-shared-font-size: 32px;--font-sub-shared-line-height: 48px}.hig-sidebar-container.enlarge-focused-item[_ngcontent-%COMP%] .hig-sidebar-item[_ngcontent-%COMP%] button.selected[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{transform:scale(1.5)}.hig-sidebar-gradient[_ngcontent-%COMP%]{background:linear-gradient(var(--hig-sidebar-background-linear-gradient-deg),#000000 16.12%,rgba(0,0,0,.99) 18.82%,rgba(0,0,0,.98) 21.45%,rgba(0,0,0,.965) 23.65%,rgba(0,0,0,.5) 100%);height:100vh;position:absolute;top:0;width:100vw}"],data:{animation:[(0,n.hZ)("higSidebarOpacityAnimation",[(0,n.kY)("void => *",[(0,n.iF)({opacity:"0"}),(0,n.i0)("300ms ease-in",(0,n.iF)({opacity:"1"}))]),(0,n.kY)("* => void",[(0,n.iF)({opacity:"1"}),(0,n.i0)("300ms ease-in",(0,n.iF)({opacity:"0"}))])]),(0,n.hZ)("higSidebarTextAnimation",[(0,n.kY)("void => *",[(0,n.iF)({opacity:"0",transform:"translateX(-10px)"}),(0,n.i0)("300ms ease-in",(0,n.iF)({opacity:"1",transform:"translateX(0)"}))]),(0,n.kY)("* => void",[(0,n.iF)({opacity:"1",transform:"translateX(0)"}),(0,n.i0)("300ms ease-in",(0,n.iF)({opacity:"0",transform:"translateX(-10px)"}))])])]}})}}return dt})()},66253:(St,z,s)=>{"use strict";s.d(z,{Y:()=>i});var i=function(n){return n.Init="Init",n.Expanded="Expanded",n.Expanding="Expanding",n.Collapsed="Collapsed",n.Collapsing="Collapsing",n}(i||{})},5428:(St,z,s)=>{"use strict";s.d(z,{t:()=>r});var i=s(58527),n=s(13186),h=s(6364),C=s(56106),S=s(61142),M=s(3457),P=s(92602),x=s(54676);const A=["slider"];function g(u,v){if(1&u){const E=i.RV6();i.j41(0,"input",4),i.mxI("ngModelChange",function(R){i.eBV(E);const B=i.XpG();return i.DH7(B.inputValue,R)||(B.inputValue=R),i.Njj(R)}),i.bIt("focus",function(){i.eBV(E);const R=i.XpG();return i.Njj(R.onTextFocus())})("blur",function(){i.eBV(E);const R=i.XpG();return i.Njj(R.onTextBlur())})("change",function(R){i.eBV(E);const B=i.XpG();return i.Njj(B.textChanged(R))})("input",function(R){i.eBV(E);const B=i.XpG();return i.Njj(B.textInput(R))}),i.k0s()}if(2&u){const E=i.XpG();i.Y8G("disabled",E.disabled),i.R50("ngModel",E.inputValue),i.BMQ("tabindex",E.tabindex)}}var m=function(u){return u.Integer="integer",u.Decimal="decimal",u.Time="time",u.Percent="percent",u}(m||{});const l={[m.Integer]:/^-?\d*$/,[m.Decimal]:/^-?\d*\.*\d*$/,[m.Time]:/^-?\d*[:]?\d*$/,[m.Percent]:/^-?\d*$/};let r=(()=>{class u{get min(){return this._min}set min(E){this._min=(0,h.OE)(E,this._min)}get max(){return this._max}set max(E){this._max=(0,h.OE)(E,this._max)}get step(){return this._step}set step(E){this._step=(0,h.OE)(E,this._step),this.forceSliderTickUpdate()}get default(){return this._default}set default(E){this._default=(0,h.OE)(E,this._default)}get tickInterval(){return this._tickInterval}set tickInterval(E){this._tickInterval="auto"===E?"auto":"number"==typeof E||"string"==typeof E?(0,h.OE)(E,this._tickInterval):0,console.log("tickinterval: ",this._tickInterval),this.forceSliderTickUpdate()}get value(){return this._value}set value(E){this._value=(0,h.OE)(E,this._value),setTimeout(()=>this.sliderMoved({source:this.slider,value:this.value}),0)}set formatTextAs(E){this._formatTextAs=m[E]||m.Integer}get formatTextAs(){return this._formatTextAs}constructor(E,T){this.dateHandlerService=T,this._min=0,this._max=100,this._step=1,this._default=void 0,this.disabled=!1,this.thumbLabel=!1,this.animating=!1,this._tickInterval=0,this._value=0,this.valueChange=new i.bkB,this.valueEntry=!1,this._formatTextAs=m.Integer,this.change=new i.bkB,this.input=new i.bkB,this.tabindex=void 0,this.sliderStep=0,this.inputValue=void 0,this.textFocused=!1,this.mouseDown=!1,this.initializing=!0,this.afterInit=!1,this.textValueValidation="",this.tabindex=parseInt(E,10),Number.isNaN(this.tabindex)&&(this.tabindex=void 0),this.realTabIndex="-1"}ngAfterViewInit(){this.afterInit=!0,setTimeout(()=>{this.forceSliderTickUpdate(),this.sliderMoved({source:this.slider,value:this.value})},0),setTimeout(()=>this.initializing=!1,100)}forceSliderTickUpdate(){this.afterInit&&this.slider&&(this.slider.step=this.step,this.sliderStep=this.step,this.slider._onMouseenter())}onTextFocus(){this.textFocused=!0}onTextBlur(){this.textFocused=!1}textChanged(E){let T=E.target.value;if(this.formatTextAs===m.Time){const B=this.dateHandlerService.parseDate(T,"mm:ss");T=(60*P.Nq.getMinutesFromDate(B)+P.Nq.getSecondsFromDate(B)).toString()}let R=0;this.formatTextAs===m.Decimal?(R=100*(parseFloat(T)||0),this.step&&(R=Math.round((R-100*this.min)/(100*this.step))*this.step+this.min)):(R=parseInt(T,10)||0,this.step&&(R=Math.round((R-this.min)/this.step)*this.step+this.min)),R=Math.min(this.max,Math.max(R,this.min)),this.value=R,this.sliderChanged({source:this.slider,value:this.value}),E.stopImmediatePropagation()}sliderChanged(E){this.valueChange.emit(this.value),this.change.emit(E)}sliderMoved(E){if(E&&void 0!==E.value){if(this.formatTextAs===m.Time){const T=new Date(0).getTimezoneOffset();let R=new Date(60*T*1e3);R=P.Nq.addTime(R,E.value,P.yr.SECONDS),this.inputValue=this.dateHandlerService.formatDate(R,"mm:ss")}else this.inputValue=this.formatTextAs===m.Percent?E.value+" %":E.value+"";this.textValueValidation=this.inputValue,this.input.emit(E)}}textInput(E){const R=E.target;R&&!(l[this.formatTextAs]||l[m.Integer]).test(R.value)?R.value=this.textValueValidation:this.textValueValidation=R.value,E.stopImmediatePropagation()}onKeyDown(E){this.default&&"Period"===E.code&&(this.value=this.default,this.sliderChanged({source:this.slider,value:this.value}))}static{this.\u0275fac=function(T){return new(T||u)(i.kS0("tabindex"),i.rXU(P.I_))}}static{this.\u0275cmp=i.VBU({type:u,selectors:[["nv-hig-slider"]],viewQuery:function(T,R){if(1&T&&i.GBs(A,7),2&T){let B;i.mGM(B=i.lsd())&&(R.slider=B.first)}},hostVars:1,hostBindings:function(T,R){2&T&&i.Mr5("tabindex",R.realTabIndex)},inputs:{min:"min",max:"max",step:"step",default:"default",disabled:"disabled",thumbLabel:"thumbLabel",animating:"animating",tickInterval:"tickInterval",value:"value",valueEntry:"valueEntry",formatTextAs:"formatTextAs"},outputs:{valueChange:"valueChange",change:"change",input:"input"},standalone:!0,features:[i.aNF],decls:4,vars:15,consts:[["slider",""],["fxFlex","row","fxLayoutAlign","start start",1,"nv-hig"],["fxFlex","","nvMatSliderKeyboardFixup","",3,"valueChange","input","change","mousedown","mouseup","keydown","min","max","step","disabled","thumbLabel","tickInterval","value","tabIndex"],["type","text","fxFlex","none","class","slider-text-entry font-body2",3,"disabled","ngModel","ngModelChange","focus","blur","change","input",4,"ngIf"],["type","text","fxFlex","none",1,"slider-text-entry","font-body2",3,"ngModelChange","focus","blur","change","input","disabled","ngModel"]],template:function(T,R){if(1&T){const B=i.RV6();i.j41(0,"div",1)(1,"mat-slider",2,0),i.mxI("valueChange",function(Y){return i.eBV(B),i.DH7(R.value,Y)||(R.value=Y),i.Njj(Y)}),i.bIt("input",function(Y){return i.eBV(B),i.Njj(R.sliderMoved(Y))})("change",function(Y){return i.eBV(B),i.Njj(R.sliderChanged(Y))})("mousedown",function(){return i.eBV(B),i.Njj(R.mouseDown=!0)})("mouseup",function(){return i.eBV(B),i.Njj(R.mouseDown=!1)},!1,i.tSv)("keydown",function(Y){return i.eBV(B),i.Njj(R.onKeyDown(Y))}),i.k0s(),i.DNE(3,g,1,3,"input",3),i.k0s()}2&T&&(i.R7$(),i.AVh("cdk-mouse-focused",R.textFocused)("nv-mouse-down",R.mouseDown)("hig-slider-no-animation",R.animating||R.initializing),i.Y8G("min",R.min)("max",R.max)("step",R.sliderStep)("disabled",R.disabled)("thumbLabel",R.thumbLabel)("tickInterval",R.tickInterval),i.R50("value",R.value),i.Y8G("tabIndex",R.tabindex),i.R7$(2),i.Y8G("ngIf",R.valueEntry))},dependencies:[M.w2,M.sA,M.UI,n.Lq,n.N$,x.Sb,S.bT,C.YN,C.me,C.BC,C.vS],styles:[".slider-text-entry[_ngcontent-%COMP%]{width:48px;height:23px;background-color:transparent;border:none;text-align:center;padding-bottom:2px;border-bottom:1px solid var(--hig-slider-border-bottom-color);caret-color:#76b900}.isLtr[_nghost-%COMP%] .slider-text-entry[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .slider-text-entry[_ngcontent-%COMP%]{margin:0 0 0 8px}html[dir=ltr][_ngcontent-%COMP%] .slider-text-entry[_ngcontent-%COMP%]{--dummy: 0;margin:0 0 0 8px}.isRtl[_nghost-%COMP%] .slider-text-entry[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .slider-text-entry[_ngcontent-%COMP%]{margin:0 8px 0 0}html[dir=rtl][_ngcontent-%COMP%] .slider-text-entry[_ngcontent-%COMP%]{--dummy: 0;margin:0 8px 0 0}.slider-text-entry[_ngcontent-%COMP%]:disabled{opacity:.38}.slider-text-entry[_ngcontent-%COMP%]::selection{background-color:#76b900}.slider-text-entry[_ngcontent-%COMP%]:focus, .mat-slider[_ngcontent-%COMP%]:not(.mat-slider-disabled).cdk-focused ~ .slider-text-entry[_ngcontent-%COMP%]{padding-bottom:1px;border-bottom:2px solid #76b900;outline:none}"]})}}return u})()},29824:(St,z,s)=>{"use strict";s.d(z,{L:()=>et});var i=s(58527),n=s(26537),h=s(96542),C=s(47973),S=s(29370),M=s(36243),P=s(99204),x=s(61142),A=s(3457),g=s(44224),m=s(72818),l=s(25369),r=s(22355),u=s(40514),v=s(60990),E=s(13906),T=s(81247),R=s(2218),B=s(52171),U=s(13090),Y=s(16490);function ae(se,Ce){if(1&se&&i.nrm(0,"div",23),2&se){const be=i.XpG();i.Y8G("imageUrl",null==be.data||null==be.data.threeQuarterSheetData?null:be.data.threeQuarterSheetData.backgroundImageUrl)}}function G(se,Ce){if(1&se&&(i.j41(0,"div",24)(1,"span",25),i.EFF(2),i.nI1(3,"translate"),i.k0s()()),2&se){const be=i.XpG();i.R7$(2),i.JRh(be.data.threeQuarterSheetData.title.translated?be.data.threeQuarterSheetData.title.text:i.bMT(3,1,be.data.threeQuarterSheetData.title.text))}}function k(se,Ce){if(1&se&&(i.j41(0,"span",26),i.EFF(1),i.nI1(2,"translate"),i.k0s()),2&se){const be=i.XpG();i.R7$(),i.JRh(i.i5U(2,1,be.data.headerText.text,be.data.translateValues))}}function X(se,Ce){1&se&&i.nrm(0,"mat-progress-spinner",27)}function q(se,Ce){if(1&se&&(i.j41(0,"div",28),i.nrm(1,"qrcode",29),i.k0s()),2&se){const be=i.XpG();i.R7$(),i.Y8G("qrdata",be.data.image.url)("width",200)("errorCorrectionLevel","M")}}function Q(se,Ce){if(1&se&&(i.nrm(0,"div",30),i.nI1(1,"translate")),2&se){const be=i.XpG();i.Y8G("innerHTML",be.data.bodyText.translated?be.data.bodyText.text:i.i5U(1,1,be.data.bodyText.text,be.data.bodyText.placeholders),i.npT)}}function ce(se,Ce){if(1&se&&i.nrm(0,"mat-icon",36),2&se){const be=i.XpG().$implicit;i.Y8G("svgIcon",be.matIcon)}}function te(se,Ce){if(1&se&&(i.j41(0,"div",33),i.DNE(1,ce,1,1,"mat-icon",34),i.j41(2,"div",35),i.EFF(3),i.k0s()()),2&se){const be=Ce.$implicit;i.R7$(),i.Y8G("ngIf",be.matIcon),i.R7$(2),i.JRh(be.text)}}function Ee(se,Ce){if(1&se&&(i.j41(0,"div",31),i.DNE(1,te,4,2,"div",32),i.k0s()),2&se){const be=i.XpG();i.R7$(),i.Y8G("ngForOf",be.data.descriptionList)}}function it(se,Ce){if(1&se&&i.nrm(0,"nv-hig-cell-comparison",37),2&se){const be=i.XpG();i.Y8G("data",be.data.dataCells)}}function Fe(se,Ce){if(1&se&&(i.j41(0,"div",38)(1,"div",39),i.EFF(2),i.nI1(3,"translate"),i.k0s()()),2&se){const be=i.XpG();i.R7$(2),i.JRh(i.bMT(3,1,be.data.footerText.text))}}function Qe(se,Ce){1&se&&(i.j41(0,"div",40),i.nrm(1,"div",41),i.k0s())}function ct(se,Ce){if(1&se&&i.nrm(0,"img",45),2&se){const be=i.XpG(2).$implicit;i.Y8G("src",be.imageUrl,i.B4B)}}function Ge(se,Ce){if(1&se){const be=i.RV6();i.j41(0,"button",43),i.bIt("click",function(){i.eBV(be);const me=i.XpG().$implicit,le=i.XpG();return i.Njj(le.onRadioButtonClick(me.value))}),i.DNE(1,ct,1,1,"img",44),i.EFF(2),i.nI1(3,"translate"),i.k0s()}if(2&se){const be=i.XpG().$implicit;i.R7$(),i.Y8G("ngIf",be.imageUrl),i.R7$(),i.SpI(" ",i.bMT(3,2,be.value)," ")}}function nt(se,Ce){if(1&se&&(i.qex(0),i.DNE(1,Ge,4,4,"button",42),i.bVm()),2&se){const be=Ce.$implicit;i.R7$(),i.Y8G("ngIf",be)}}function Je(se,Ce){if(1&se){const be=i.RV6();i.j41(0,"button",46),i.bIt("click",function(){i.eBV(be);const me=i.XpG();return i.Njj(me.onPrimaryButtonClick())}),i.EFF(1),i.nI1(2,"translate"),i.k0s()}if(2&se){const be=i.XpG();i.Y8G("disabled",be.data.primaryButton.isDisabled)("nvAutoFocus",be.autoFocusOnPrimaryButton),i.R7$(),i.SpI(" ",i.bMT(2,3,be.data.primaryButton.text)," ")}}function ze(se,Ce){if(1&se&&(i.qex(0),i.eu8(1,47),i.bVm()),2&se){i.XpG();const be=i.sdS(25);i.R7$(),i.Y8G("ngTemplateOutlet",be)}}function Ke(se,Ce){if(1&se&&(i.qex(0),i.eu8(1,47)(2,47),i.bVm()),2&se){i.XpG();const be=i.sdS(23),rt=i.sdS(25);i.R7$(),i.Y8G("ngTemplateOutlet",be),i.R7$(),i.Y8G("ngTemplateOutlet",rt)}}function Ve(se,Ce){1&se&&i.nrm(0,"span",49)}function $e(se,Ce){if(1&se){const be=i.RV6();i.qex(0),i.j41(1,"button",43),i.bIt("click",function(){const me=i.eBV(be).$implicit,le=i.XpG();return i.Njj(le.onAugmentedButtonClick(me.id))}),i.DNE(2,Ve,1,0,"span",48),i.EFF(3),i.nI1(4,"translate"),i.k0s(),i.bVm()}if(2&se){const be=Ce.$implicit;i.R7$(2),i.Y8G("ngIf",null==be?null:be.hasNotificationBadge),i.R7$(),i.SpI(" ",i.bMT(4,2,be.text)," ")}}function dt(se,Ce){if(1&se){const be=i.RV6();i.j41(0,"button",43),i.bIt("click",function(){i.eBV(be);const me=i.XpG(2);return i.Njj(me.onLinkClick(me.data.link.url,me.data.link.shortUrl,me.data.link.shortUrlDescription,me.data.link.linkClickedCallback))}),i.j41(1,"span"),i.EFF(2),i.nI1(3,"translate"),i.k0s(),i.j41(4,"i",52),i.EFF(5,"open_in_new"),i.k0s()()}if(2&se){const be=i.XpG(2);i.R7$(2),i.JRh(i.i5U(3,1,be.data.link.text,be.data.link.placeholders))}}function Pe(se,Ce){if(1&se&&(i.j41(0,"div",50),i.nrm(1,"mat-divider",51),i.DNE(2,dt,6,4,"button",42),i.k0s()),2&se){const be=i.XpG();i.R7$(2),i.Y8G("ngIf",be.data.link.url||be.data.link.linkClickedCallback)}}function J(se,Ce){if(1&se){const be=i.RV6();i.j41(0,"button",54),i.bIt("click",function(){i.eBV(be);const me=i.XpG(2);return i.Njj(me.onSecondaryButtonClick())}),i.EFF(1),i.nI1(2,"translate"),i.k0s()}if(2&se){const be=i.XpG(2);i.R7$(),i.SpI(" ",i.bMT(2,1,be.data.secondaryButton.text)," ")}}function vt(se,Ce){if(1&se&&i.DNE(0,J,3,3,"button",53),2&se){const be=i.XpG();i.Y8G("ngIf",be.data.secondaryButton)}}function ve(se,Ce){if(1&se){const be=i.RV6();i.j41(0,"button",54),i.bIt("click",function(){i.eBV(be);const me=i.XpG(2);return i.Njj(me.onCheckboxClick())}),i.EFF(1),i.nI1(2,"translate"),i.k0s()}if(2&se){const be=i.XpG(2);i.R7$(),i.SpI(" ",i.bMT(2,1,be.data.checkbox.text)," ")}}function ue(se,Ce){if(1&se&&i.DNE(0,ve,3,3,"button",53),2&se){const be=i.XpG();i.Y8G("ngIf",be.data.checkbox)}}let et=(()=>{class se extends l.D{get autoFocusOnPrimaryButton(){return this.data.autoFocusOnPrimaryButton??!0}static open(be,rt){return rt.maxWidth="100vw",(0,m.SN)(rt,{threeQuarterSheet:!0}),be.open(se,{...rt,width:"100%",height:"100%"})}constructor(be,rt,me,le,Xe){super(me,le,be,Xe),this.offDeviceLinkService=rt,this.primaryButtonClick=new i.bkB,this.secondaryButtonClick=new i.bkB,this.radioButtonClick=new i.bkB,this.augmentedButtonClick=new i.bkB,this.linkClick=new i.bkB,this.data={},this.data=be.get(n.Vh,null)}onPrimaryButtonClick(be){this.primaryButtonClick.emit(be)}onSecondaryButtonClick(be){this.secondaryButtonClick.emit(be)}onCheckboxClick(){this.data.checkboxState=!0,(this.data.checkbox.primaryActionInThreeQuarterSheet?this.primaryButtonClick:this.secondaryButtonClick).emit()}onRadioButtonClick(be){this.data.radioOptionSelected=be,this.radioButtonClick.emit(),this.primaryButtonClick.emit()}onLinkClick(be,rt,me,le){be?this.offDeviceLinkService.open(be,{shortUrl:rt,shortUrlDescription:me,threeQuarterSheetData:this.data?.threeQuarterSheetData}):le&&le(),this.linkClick.emit()}onAugmentedButtonClick(be){this.augmentedButtonClick.emit(be)}static{this.\u0275fac=function(rt){return new(rt||se)(i.rXU(i.zZn),i.rXU(U.n),i.rXU(n.CP,8),i.rXU(Y.eN,8),i.rXU(i.SKi))}}static{this.\u0275cmp=i.VBU({type:se,selectors:[["nv-hig-three-quarter-sheet"]],inputs:{data:"data"},outputs:{primaryButtonClick:"primaryButtonClick",secondaryButtonClick:"secondaryButtonClick",radioButtonClick:"radioButtonClick",augmentedButtonClick:"augmentedButtonClick",linkClick:"linkClick"},standalone:!0,features:[i.Vt3,i.aNF],decls:26,vars:21,consts:[["secondaryButton",""],["checkboxButton",""],["fxFlex","","fxLayout","row","nvSpatialNavigationContainer","","nvTrapFocus","",1,"main-dialog-sheet"],["class","image-layer","nvHigBackgroundImageOverlay","",3,"imageUrl",4,"ngIf"],["fxLayout","column","fxLayoutAlign","space-between start",1,"content-container"],["class","title",4,"ngIf"],["fxLayout","column","fxLayoutGap","32px"],["class","content-header font-header4",4,"ngIf"],["fxLayout","row",1,"content-info"],["mode","indeterminate","diameter","48","color","accent",4,"ngIf"],["class","qrcode-container",4,"ngIf"],["fxFlex","","fxLayout","column","fxLayoutGap","16px"],["class","font-body2",3,"innerHTML",4,"ngIf"],["fxLayout","column","fxLayoutGap","16px","class","hig-description-list-container",4,"ngIf"],[3,"data",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end end",4,"ngIf"],["class","background-scrim translucent",4,"ngIf"],["fxLayout","column","fxLayoutGap","12px",1,"button-container"],[4,"ngFor","ngForOf"],["mat-button","","class","sentence-case",3,"disabled","nvAutoFocus","click",4,"ngIf"],[4,"ngIf"],[4,"ngIf","ngIfElse"],["fxLayout","column","fxLayoutGap","16px",4,"ngIf"],["nvHigBackgroundImageOverlay","",1,"image-layer",3,"imageUrl"],[1,"title"],[1,"title-content"],[1,"content-header","font-header4"],["mode","indeterminate","diameter","48","color","accent"],[1,"qrcode-container"],[3,"qrdata","width","errorCorrectionLevel"],[1,"font-body2",3,"innerHTML"],["fxLayout","column","fxLayoutGap","16px",1,"hig-description-list-container"],["class","hig-description-list-item",4,"ngFor","ngForOf"],[1,"hig-description-list-item"],["class","hig-description-icon font-body2",3,"svgIcon",4,"ngIf"],[1,"hig-description-text","font-body2"],[1,"hig-description-icon","font-body2",3,"svgIcon"],[3,"data"],["fxLayout","row","fxLayoutAlign","end end"],[1,"font-body3"],[1,"background-scrim","translucent"],[1,"vertical-divider"],["mat-button","",3,"click",4,"ngIf"],["mat-button","",3,"click"],["class","prefix-image",3,"src",4,"ngIf"],[1,"prefix-image",3,"src"],["mat-button","",1,"sentence-case",3,"click","disabled","nvAutoFocus"],[3,"ngTemplateOutlet"],["class","notification-badge",4,"ngIf"],[1,"notification-badge"],["fxLayout","column","fxLayoutGap","16px"],["role","separator",1,"separator"],[1,"material-icons","link-icon"],["mat-button","","class","sentence-case",3,"click",4,"ngIf"],["mat-button","",1,"sentence-case",3,"click"]],template:function(rt,me){if(1&rt&&(i.j41(0,"div",2),i.DNE(1,ae,1,1,"div",3),i.j41(2,"div",4),i.DNE(3,G,4,3,"div",5),i.j41(4,"div",6),i.DNE(5,k,3,4,"span",7),i.j41(6,"div",8),i.DNE(7,X,1,0,"mat-progress-spinner",9)(8,q,2,3,"div",10),i.j41(9,"div",11),i.DNE(10,Q,2,4,"div",12)(11,Ee,2,1,"div",13),i.k0s()(),i.DNE(12,it,1,1,"nv-hig-cell-comparison",14),i.k0s(),i.DNE(13,Fe,4,3,"div",15),i.k0s(),i.DNE(14,Qe,2,0,"div",16),i.j41(15,"div",17),i.DNE(16,nt,2,1,"ng-container",18)(17,Je,3,5,"button",19)(18,ze,2,1,"ng-container",20)(19,Ke,3,2,"ng-container",21)(20,$e,5,4,"ng-container",18)(21,Pe,3,1,"div",22)(22,vt,1,1,"ng-template",null,0,i.C5r)(24,ue,1,1,"ng-template",null,1,i.C5r),i.k0s()()),2&rt){const le=i.sdS(23);i.R7$(),i.Y8G("ngIf",null==me.data||null==me.data.threeQuarterSheetData?null:me.data.threeQuarterSheetData.backgroundImageUrl),i.R7$(),i.AVh("translucent",null==me.data||null==me.data.threeQuarterSheetData?null:me.data.threeQuarterSheetData.backgroundImageUrl),i.R7$(),i.Y8G("ngIf",null==me.data||null==me.data.threeQuarterSheetData?null:me.data.threeQuarterSheetData.title),i.R7$(2),i.Y8G("ngIf",me.data.headerText),i.R7$(2),i.Y8G("ngIf",me.data.showSpinner),i.R7$(),i.Y8G("ngIf",null==me.data.image?null:me.data.image.url),i.R7$(2),i.Y8G("ngIf",me.data.bodyText),i.R7$(),i.Y8G("ngIf",me.data.descriptionList),i.R7$(),i.Y8G("ngIf",(null==me.data.dataCells?null:me.data.dataCells.length)>0),i.R7$(),i.Y8G("ngIf",me.data.footerText),i.R7$(),i.Y8G("ngIf",null==me.data||null==me.data.threeQuarterSheetData?null:me.data.threeQuarterSheetData.backgroundImageUrl),i.R7$(),i.AVh("translucent",null==me.data||null==me.data.threeQuarterSheetData?null:me.data.threeQuarterSheetData.backgroundImageUrl),i.R7$(),i.Y8G("ngForOf",me.data.radioButtonOptions),i.R7$(),i.Y8G("ngIf",me.data.primaryButton&&!me.data.radioButtonOptions),i.R7$(),i.Y8G("ngIf",null==me.data.checkbox?null:me.data.checkbox.primaryActionInThreeQuarterSheet),i.R7$(),i.Y8G("ngIf",me.data.checkbox&&!me.data.checkbox.primaryActionInThreeQuarterSheet)("ngIfElse",le),i.R7$(),i.Y8G("ngForOf",null==me.data.threeQuarterSheetData?null:me.data.threeQuarterSheetData.augmentedButtons),i.R7$(),i.Y8G("ngIf",me.data.link)}},dependencies:()=>[A.w2,A.DJ,A.BO,A.sA,A.UI,R.R,T.D,x.bT,E.Z,P.D6,P.LG,M.f,M.c,v.r,u.e,x.pM,B.X,S.m_,S.An,C.wG,C.iV,r.N,x.T3,h.h,h.D9,g.w,g.q],styles:[".isRtl[_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{transform:scaleX(-1)}html[dir=rtl][_ngcontent-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{--dummy: 0;transform:scaleX(-1)}.hotkey-border[_ngcontent-%COMP%]{border:1px solid #ffffff;padding:4px 8px;font-weight:500;line-height:32px;margin:4px}.main-dialog-sheet[_ngcontent-%COMP%]{position:fixed;top:0;left:0;max-height:100%;width:100vw;height:100%}.main-dialog-sheet[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%]{padding:133px 88px 48px;width:1180px}.main-dialog-sheet[_ngcontent-%COMP%] .content-container.translucent[_ngcontent-%COMP%]{background:#000000b3}.main-dialog-sheet[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] .content-header[_ngcontent-%COMP%]{height:318px;word-break:break-word;display:flex;align-items:flex-end}.main-dialog-sheet[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] .content-header.sentence-case[_ngcontent-%COMP%]{text-transform:lowercase}.main-dialog-sheet[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] .content-header.sentence-case[_ngcontent-%COMP%]:first-letter{text-transform:uppercase}.isLtr[_nghost-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] div.content-info[_ngcontent-%COMP%] > *[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] div.content-info[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{margin-right:32px}html[dir=ltr][_ngcontent-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] div.content-info[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{--dummy4: 0;margin-right:32px}.isRtl[_nghost-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] div.content-info[_ngcontent-%COMP%] > *[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] div.content-info[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{margin-left:32px}html[dir=rtl][_ngcontent-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] div.content-info[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{--dummy4: 0;margin-left:32px}.isLtr[_nghost-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] div.content-info[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:last-child, .isLtr [_nghost-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] div.content-info[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:last-child{margin-right:0}html[dir=ltr][_ngcontent-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] div.content-info[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:last-child{--dummy4: 0;margin-right:0}.isRtl[_nghost-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] div.content-info[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:last-child, .isRtl [_nghost-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] div.content-info[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:last-child{margin-left:0}html[dir=rtl][_ngcontent-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] div.content-info[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:last-child{--dummy4: 0;margin-left:0}.main-dialog-sheet[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] .qrcode-container[_ngcontent-%COMP%]{width:200px;height:200px}.main-dialog-sheet[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{top:56px;position:fixed;display:flex;align-items:flex-end}.main-dialog-sheet[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] .title-content[_ngcontent-%COMP%]{--font-sub-shared-font-size: 16px;--font-sub-shared-line-height: 24px;font-family:NVIDIA,sans-serif;color:var(--hig-ui-text-primary-color);font-weight:500;font-style:normal;text-transform:none;font-size:var(--font-sub-shared-font-size);line-height:var(--font-sub-shared-line-height);letter-spacing:0;color:#fff9}.tv-view[_ngcontent-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] .title-content[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] .title-content[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] .title-content[_ngcontent-%COMP%]{--font-sub-shared-font-size: 32px;--font-sub-shared-line-height: 48px}.main-dialog-sheet[_ngcontent-%COMP%] .button-container[_ngcontent-%COMP%]{width:calc(100vw - 1180px);background:#191919;padding-top:374px}.isLtr[_nghost-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .button-container[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .button-container[_ngcontent-%COMP%]{padding-left:40px}html[dir=ltr][_ngcontent-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .button-container[_ngcontent-%COMP%]{--dummy1: 0;padding-left:40px}.isRtl[_nghost-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .button-container[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .button-container[_ngcontent-%COMP%]{padding-right:40px}html[dir=rtl][_ngcontent-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .button-container[_ngcontent-%COMP%]{--dummy1: 0;padding-right:40px}.isLtr[_nghost-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .button-container[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .button-container[_ngcontent-%COMP%]{padding-right:88px}html[dir=ltr][_ngcontent-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .button-container[_ngcontent-%COMP%]{--dummy2: 0;padding-right:88px}.isRtl[_nghost-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .button-container[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .button-container[_ngcontent-%COMP%]{padding-left:88px}html[dir=rtl][_ngcontent-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .button-container[_ngcontent-%COMP%]{--dummy2: 0;padding-left:88px}.main-dialog-sheet[_ngcontent-%COMP%] .button-container.translucent[_ngcontent-%COMP%]{background:#000000b3}.main-dialog-sheet[_ngcontent-%COMP%] .button-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{text-align:start;height:96px;border-radius:8px;white-space:normal;--font-sub-shared-font-size: 14px;--font-sub-shared-line-height: 20px;font-family:NVIDIA,sans-serif;color:var(--hig-ui-text-primary-color);font-weight:500;font-style:normal;text-transform:none;font-size:var(--font-sub-shared-font-size);line-height:var(--font-sub-shared-line-height);letter-spacing:0}.isLtr[_nghost-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .button-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .button-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{padding-left:32px}html[dir=ltr][_ngcontent-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .button-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{--dummy1: 0;padding-left:32px}.isRtl[_nghost-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .button-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .button-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{padding-right:32px}html[dir=rtl][_ngcontent-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .button-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{--dummy1: 0;padding-right:32px}.main-dialog-sheet[_ngcontent-%COMP%] .button-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .prefix-image[_ngcontent-%COMP%]{width:48px;height:48px}.isLtr[_nghost-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .button-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .prefix-image[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .button-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .prefix-image[_ngcontent-%COMP%]{padding-left:12px}html[dir=ltr][_ngcontent-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .button-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .prefix-image[_ngcontent-%COMP%]{--dummy1: 0;padding-left:12px}.isRtl[_nghost-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .button-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .prefix-image[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .button-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .prefix-image[_ngcontent-%COMP%]{padding-right:12px}html[dir=rtl][_ngcontent-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .button-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .prefix-image[_ngcontent-%COMP%]{--dummy1: 0;padding-right:12px}.isLtr[_nghost-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .button-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .prefix-image[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .button-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .prefix-image[_ngcontent-%COMP%]{padding-right:28px}html[dir=ltr][_ngcontent-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .button-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .prefix-image[_ngcontent-%COMP%]{--dummy2: 0;padding-right:28px}.isRtl[_nghost-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .button-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .prefix-image[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .button-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .prefix-image[_ngcontent-%COMP%]{padding-left:28px}html[dir=rtl][_ngcontent-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .button-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .prefix-image[_ngcontent-%COMP%]{--dummy2: 0;padding-left:28px}.main-dialog-sheet[_ngcontent-%COMP%] .button-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%] i.link-icon[_ngcontent-%COMP%]{vertical-align:middle;padding:0 16px}.main-dialog-sheet[_ngcontent-%COMP%] .button-container[_ngcontent-%COMP%] button.sentence-case[_ngcontent-%COMP%]{text-transform:lowercase}.main-dialog-sheet[_ngcontent-%COMP%] .button-container[_ngcontent-%COMP%] button.sentence-case[_ngcontent-%COMP%]:first-letter{text-transform:uppercase}.tv-view[_ngcontent-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .button-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .button-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .main-dialog-sheet[_ngcontent-%COMP%] .button-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{--font-sub-shared-font-size: 28px;--font-sub-shared-line-height: 40px}.main-dialog-sheet[_ngcontent-%COMP%] .button-container[_ngcontent-%COMP%] .separator[_ngcontent-%COMP%]{margin-top:4px;color:#ffffff3d}.image-layer[_ngcontent-%COMP%]{position:absolute;inset:0;height:100%;width:100%;z-index:-1;opacity:.8}.hig-description-list-container[_ngcontent-%COMP%]{margin-top:16px}.hig-description-list-container[_ngcontent-%COMP%] .hig-description-list-item[_ngcontent-%COMP%]{display:flex}.hig-description-list-container[_ngcontent-%COMP%] .hig-description-icon[_ngcontent-%COMP%]{font-size:28px;width:28px;height:28px;margin-top:4px}.isLtr[_nghost-%COMP%] .hig-description-list-container[_ngcontent-%COMP%] .hig-description-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .hig-description-list-container[_ngcontent-%COMP%] .hig-description-icon[_ngcontent-%COMP%]{margin-right:20px}html[dir=ltr][_ngcontent-%COMP%] .hig-description-list-container[_ngcontent-%COMP%] .hig-description-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-right:20px}.isRtl[_nghost-%COMP%] .hig-description-list-container[_ngcontent-%COMP%] .hig-description-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .hig-description-list-container[_ngcontent-%COMP%] .hig-description-icon[_ngcontent-%COMP%]{margin-left:20px}html[dir=rtl][_ngcontent-%COMP%] .hig-description-list-container[_ngcontent-%COMP%] .hig-description-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-left:20px}.notification-badge[_ngcontent-%COMP%]{display:inline-block;width:14px;height:14px;border-radius:50%;background-color:#76b900}.isLtr[_nghost-%COMP%] .notification-badge[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .notification-badge[_ngcontent-%COMP%]{margin-right:6px}html[dir=ltr][_ngcontent-%COMP%] .notification-badge[_ngcontent-%COMP%]{--dummy4: 0;margin-right:6px}.isRtl[_nghost-%COMP%] .notification-badge[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .notification-badge[_ngcontent-%COMP%]{margin-left:6px}html[dir=rtl][_ngcontent-%COMP%] .notification-badge[_ngcontent-%COMP%]{--dummy4: 0;margin-left:6px}.background-scrim[_ngcontent-%COMP%]{position:relative;width:2px;height:100%}.background-scrim.translucent[_ngcontent-%COMP%]{background:#000000b3}.background-scrim[_ngcontent-%COMP%] .vertical-divider[_ngcontent-%COMP%]{width:100%;height:1080px;opacity:.24;background:linear-gradient(180deg,#fff0,#fff,#fff0)}"]})}}return se})()},22355:(St,z,s)=>{"use strict";s.d(z,{N:()=>C});var i=s(6364),n=s(58527),h=s(21684);let C=(()=>{class S{constructor(P,x){this.element=P,this.focusManager=x,this.autoFocusPolicy="self",this._focusEnabled=!0}get focusEnabled(){return this._focusEnabled}set focusEnabled(P){this._focusEnabled=(0,i.he)(P)}ngAfterViewInit(){this.focusEnabled&&("initial"===this.autoFocusPolicy?setTimeout(()=>this.focusManager.focusChild(this.element.nativeElement,"initial")):setTimeout(()=>this.focusManager.focusViaLastOrigin(this.element.nativeElement)))}static{this.\u0275fac=function(x){return new(x||S)(n.rXU(n.aKT),n.rXU(h.c))}}static{this.\u0275dir=n.FsC({type:S,selectors:[["","nvAutoFocus",""]],inputs:{autoFocusPolicy:"autoFocusPolicy",focusEnabled:[n.Mj6.None,"nvAutoFocus","focusEnabled"]},standalone:!0})}}return S})()},25369:(St,z,s)=>{"use strict";s.d(z,{D:()=>A});var i=s(26537),n=s(16490),h=s(80583),C=s(8619),S=s(65706),M=s(4208),P=s(71152),x=s(58527);let A=(()=>{class g{constructor(l,r,u,v){this.dialogRef=l,this.bottomSheetRef=r,this.injector=u,this.ngZone=v,this.destroy$=new h.B7}ngAfterViewInit(){const l=this.dialogRef?this.injector.get(i.Vh,null):this.bottomSheetRef?this.injector.get(n.yj,null):void 0,r=this.dialogRef??this.bottomSheetRef;!r||l?.disableBackToClose||this.ngZone.runOutsideAngular(()=>{r.keydownEvents().pipe((0,C.p)(P.Nw),(0,S.s)(1),(0,M.Q)(this.destroy$)).subscribe(u=>{u.stopPropagation(),u.preventDefault(),this.close(u)})})}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}close(l){const r=("function"==typeof this.backToCloseResult?this.backToCloseResult():this.backToCloseResult)??l;this.dialogRef?.close(r),this.bottomSheetRef?.dismiss(r)}static{this.\u0275fac=function(r){return new(r||g)(x.rXU(i.CP,8),x.rXU(n.eN,8),x.rXU(x.zZn),x.rXU(x.SKi))}}static{this.\u0275dir=x.FsC({type:g,selectors:[["","nvBackToCloseModal",""]],inputs:{backToCloseResult:"backToCloseResult"},standalone:!0})}}return g})()},81336:(St,z,s)=>{"use strict";s.d(z,{f:()=>R});var i=s(6364),n=s(80583),h=s(36877),C=s(15652),S=s(4208),M=s(65706),P=s(87781),l=s(1119),r=s(58527),u=s(94222),v=s(21684),E=s(92602);let R=(()=>{class B{get enabled(){return this._enabled}set enabled(Y){this._enabled=(0,i.he)(Y)}get enableKeyThrottle(){return this._enableKeyThrottle}set enableKeyThrottle(Y){this._enableKeyThrottle=(0,i.he)(Y)}constructor(Y,ae,G,k,X){this.spatialNavigationService=Y,this.elementRef=ae,this.focusManager=G,this.ngZone=X,this.spacingTop=0,this.spacingBottom=0,this.spacingLeft=0,this.spacingRight=0,this._enabled=!0,this._enableKeyThrottle=!0,this.cancelScrolling$=new n.B7,this.destroy$=new n.B7,this.navBeforeFocus=q=>{if(!(this.enabled&&q.target instanceof HTMLElement))return;const Q=this.scrollerElement,ce=this.orientation;if(!Q||!ce)return;const te=q.target;if(!Q.contains(te))return;const Ee=Q.getBoundingClientRect(),it=function m(B){return function g(B){return B?.getScrollSnapTarget?.()??B}(B).getBoundingClientRect()}(te);if(this.isVisibleInScroller(it,Ee,ce))return;q.preventDefault();const Fe=this.calculateRequiredScrollAmount(it,Ee,ce);if(0===Fe)return;this.focusManager.focusViaLastOrigin(te,{preventScroll:!0});const{x:Qe,y:ct}=this.getDestinationCoordinates(Fe);this.isScrolling&&this.cancelScrolling$.next();const Ge=new l.t(this.scrollerElement,Qe,ct,{easingFunction:P.p_,duration:96});this.enableKeyThrottle&&(0,h.R)(te,"keydown",{capture:!0}).pipe((0,S.Q)((0,C.O4)(Ge.onScrollEnd(),this.cancelScrolling$,this.destroy$))).subscribe(this.swallowKeydownEvent),this.doScrolling(Ge)},this.logger=k.getLogger("focusThenScrollDirective")}ngAfterViewInit(){this.ngZone.runOutsideAngular(()=>{this.elementRef.nativeElement.addEventListener("navbeforefocus",this.navBeforeFocus)})}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete(),this.elementRef.nativeElement.removeEventListener("navbeforefocus",this.navBeforeFocus)}isVisibleInScroller(Y,ae,G){return"horizontal"===G&&Y.left>=ae.left&&Y.right<=ae.right||"vertical"===G&&Y.top>=ae.top&&Y.bottom<=ae.bottom}calculateRequiredScrollAmount(Y,ae,G){let k=0;return k="horizontal"===G?Y.left<ae.left?Y.left-this.spacingLeft-ae.left:Y.right+this.spacingRight-ae.right:Y.top<ae.top?Y.top-this.spacingTop-ae.top:Y.bottom+this.spacingBottom-ae.bottom,k}getDestinationCoordinates(Y){let ae=this.scrollerElement.scrollLeft,G=this.scrollerElement.scrollTop;return"horizontal"===this.orientation?ae+=Y:G+=Y,{x:ae,y:G}}swallowKeydownEvent(Y){Y.stopPropagation(),Y.preventDefault()}doScrolling(Y){Y.onScrollEnd().pipe((0,M.s)(1),(0,S.Q)((0,C.O4)(this.destroy$,this.cancelScrolling$))).subscribe(()=>{this.isScrolling=!1}),Y.onScrollStart().pipe((0,M.s)(1),(0,S.Q)((0,C.O4)(this.destroy$,this.cancelScrolling$))).subscribe(()=>{this.isScrolling=!0}),Y.start().pipe((0,S.Q)((0,C.O4)(this.cancelScrolling$,this.destroy$))).subscribe()}static{this.\u0275fac=function(ae){return new(ae||B)(r.rXU(u.E),r.rXU(r.aKT),r.rXU(v.c),r.rXU(E.J6),r.rXU(r.SKi))}}static{this.\u0275dir=r.FsC({type:B,inputs:{spacingTop:"spacingTop",spacingBottom:"spacingBottom",spacingLeft:"spacingLeft",spacingRight:"spacingRight",enabled:[r.Mj6.None,"enableFocusThenScroll","enabled"],enableKeyThrottle:"enableKeyThrottle"}})}}return B})()},54504:(St,z,s)=>{"use strict";s.d(z,{a:()=>h});var i=s(44186),n=s(58527);let h=(()=>{class C{constructor(M,P,x){this.elementRef=M,this.renderer=P,this.matTooltip=x,this.isTooltipEnabled=!0,this.isMultiLineEllipsis=!1}ngOnInit(){this.domElement=this.elementRef.nativeElement,this.renderer.addClass(this.domElement,this.isMultiLineEllipsis?"multi-line-ellipsis":"single-line-ellipsis"),this.renderer.addClass(this.domElement,"ellipsified-text-with-tooltip"),this.lineClamp&&this.renderer.setStyle(this.domElement,"-webkit-line-clamp",this.lineClamp)}ngAfterViewInit(){this.matTooltip.tooltipClass=this.tooltipClass}onMouseOver(){this.isTooltipEnabled&&(this.isMultiLineEllipsis?this.domElement.offsetHeight<this.domElement.scrollHeight:this.domElement.offsetWidth<this.domElement.scrollWidth)&&(this.matTooltip.message=this.domElement.innerText,this.matTooltip.show())}onMouseOut(){this.matTooltip.hide()}static{this.\u0275fac=function(P){return new(P||C)(n.rXU(n.aKT),n.rXU(n.sFG),n.rXU(i.oV))}}static{this.\u0275dir=n.FsC({type:C,selectors:[["","nvEllipsifiedTextWithTooltip",""]],hostBindings:function(P,x){1&P&&n.bIt("mouseover",function(){return x.onMouseOver()})("mouseout",function(){return x.onMouseOut()})},inputs:{tooltipClass:"tooltipClass",isTooltipEnabled:"isTooltipEnabled",isMultiLineEllipsis:"isMultiLineEllipsis",lineClamp:"lineClamp"},standalone:!0,features:[n.Jv_([i.oV])]})}}return C})()},69996:(St,z,s)=>{"use strict";s.d(z,{u:()=>g});var i=s(33420),n=s(73318),h=s(80583),C=s(36877),S=s(8619),M=s(4208),P=s(6364),x=s(58527),A=s(94222);let g=(()=>{class m{get enableFastNavigation(){return this._enalbeFastNavigation}set enableFastNavigation(r){this._enalbeFastNavigation=(0,P.he)(r)}get orientation(){return this._orientation}set orientation(r){this._orientation=r}get containFocus(){return this._containFocus}set containFocus(r){this._containFocus=Array.isArray(r)?r:(0,P.he)(r)}get isRTL(){return this._isRTL}set isRTL(r){this._isRTL=(0,P.he)(r)}constructor(r,u,v){this.container=r,this.spatialNavigationService=u,this.ngZone=v,this._enalbeFastNavigation=!0,this._orientation="horizontal",this._containFocus=!1,this._isRTL=!1,this.destroy$=new h.B7}ngAfterViewInit(){this.spatialNavigationService.enabled&&this.ngZone.runOutsideAngular(()=>{(0,C.R)(this.container.nativeElement,"keydown").pipe((0,S.p)(this.checkDirection.bind(this)),(0,M.Q)(this.destroy$)).subscribe(this.onKeydown.bind(this))})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}checkDirection(r){return"horizontal"===this.orientation?"ArrowLeft"===r.key||"ArrowRight"===r.key:"vertical"===this.orientation&&("ArrowUp"===r.key||"ArrowDown"===r.key)}getOffset(r){let u=0;return"horizontal"===this.orientation?(u="ArrowLeft"===r?-1:1,u*=this.isRTL?-1:1):"vertical"===this.orientation&&(u="ArrowDown"===r?1:-1),u}onKeydown(r){if(!this.enableFastNavigation)return;const u=r.key,v=this.getOffset(u),E=this.getCurrentFocusedIndex();if(E<0)return;let T=E+v;const R=(0,n.G2)(u);let B=!1;for(;!this.isOutofBoundary(T)&&!this.items.get(T).focusableElement;)T+=v;!this.isOutofBoundary(T)&&this.items.get(T).focusableElement?(this.items.get(T).focus(R),B=!0):B=this.spatialNavigationService.shouldContainFocus(R,this.containFocus),B&&(r.preventDefault(),r.stopPropagation())}isOutofBoundary(r){return r<0||r>=this.items.length}getCurrentFocusedIndex(){let r=document.activeElement;for(;r&&r!==this.container.nativeElement;){if(r.hasAttribute("nvFastSpatialNavigationItem")){const u=this.items.toArray().findIndex(v=>v?.elementRef?.nativeElement===r);if(-1!==u)return u}r=r.parentElement}return-1}static{this.\u0275fac=function(u){return new(u||m)(x.rXU(x.aKT),x.rXU(A.E),x.rXU(x.SKi))}}static{this.\u0275dir=x.FsC({type:m,selectors:[["","nvFast1DSpatialNavigation",""]],contentQueries:function(u,v,E){if(1&u&&x.wni(E,i.n,5),2&u){let T;x.mGM(T=x.lsd())&&(v.items=T)}},inputs:{enableFastNavigation:"enableFastNavigation",orientation:"orientation",containFocus:"containFocus",isRTL:"isRTL"},standalone:!0})}}return m})()},33420:(St,z,s)=>{"use strict";s.d(z,{n:()=>C});var i=s(58527),n=s(21684),h=s(94222);let C=(()=>{class S{get focusableElement(){return this._focusableElement=this.spatialNavigationService.isFocusable(this._elementRef.nativeElement)?this._elementRef.nativeElement:this.focusManager.getFirstFocusableChild(this.elementRef.nativeElement,this.spatialNavigationService.isFocusable.bind(this.spatialNavigationService)),this._focusableElement}get elementRef(){return this._elementRef}constructor(P,x,A){this.focusManager=x,this.spatialNavigationService=A,this._focusableElement=null,this._elementRef=P}focus(P){this.focusManager.navigateTo(this.focusableElement,P)}static{this.\u0275fac=function(x){return new(x||S)(i.rXU(i.aKT),i.rXU(n.c),i.rXU(h.E))}}static{this.\u0275dir=i.FsC({type:S,selectors:[["","nvFastSpatialNavigationItem",""]],standalone:!0})}}return S})()},14605:(St,z,s)=>{"use strict";s.d(z,{b:()=>A});var i=s(80583),n=s(36877),h=s(8619),C=s(4208),S=s(6364),M=s(58527),P=s(21684),x=s(64409);let A=(()=>{class g{get enableFocusBack(){return this._enableFocusBack}set enableFocusBack(l){this._enableFocusBack=(0,S.he)(l)}get scrollPosition(){return this.scroller?.measureScrollOffset()}constructor(l,r,u,v){this.elementRef=l,this.focusManager=r,this.ngZone=u,this.scroller=v,this._enableFocusBack=!0,this.destroy$=new i.B7}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}ngAfterViewInit(){this.enableFocusBack&&this.ngZone.runOutsideAngular(()=>{(0,n.R)(this.elementRef.nativeElement,"keydown").pipe((0,h.p)(l=>"Escape"===l.key&&!l.defaultPrevented),(0,C.Q)(this.destroy$)).subscribe(this.onKeydownEvent.bind(this))})}onKeydownEvent(l){this.focusInitialFocusable()&&(l.stopPropagation(),l.preventDefault())}focusInitialFocusable(){if(this.scroller&&0!==this.scrollPosition)return this.elementScrolledSub||this.scrollThenFocusInitialFocusable(this.scroller?.elementRef?.nativeElement),!0;const r=this.focusManager.getInitialFocusable(this.scroller?.elementRef?.nativeElement??this.elementRef?.nativeElement);return!(r===document.activeElement||!r?.isConnected||(this.focusManager.focusViaLastOrigin(r),0))}scrollThenFocusInitialFocusable(l){let r=this.scrollPosition;this.elementScrolledSub=this.scroller.elementScrolled().pipe((0,C.Q)(this.destroy$)).subscribe(()=>{0===this.scrollPosition||this.scrollPosition>r?(0===this.scrollPosition&&this.focusManager.focusChild(l,"initial"),this.elementScrolledSub.unsubscribe(),this.elementScrolledSub=void 0):r=this.scrollPosition}),this.scroller.scrollToIndex(0,"auto")}static{this.\u0275fac=function(r){return new(r||g)(M.rXU(M.aKT),M.rXU(P.c),M.rXU(M.SKi),M.rXU(x.d6,8))}}static{this.\u0275dir=M.FsC({type:g,selectors:[["","nvFocusBack",""]],inputs:{enableFocusBack:"enableFocusBack"},exportAs:["nvFocusBack"],standalone:!0})}}return g})()},97888:(St,z,s)=>{"use strict";s.d(z,{Aq:()=>T});var i=s(58527),n=s(6364),h=s(71152),C=s(11013),S=s(72653),M=s(68868),P=function(R){return R[R.Off=0]="Off",R[R.FocusIn=1]="FocusIn",R[R.On=2]="On",R[R.FocusOut=3]="FocusOut",R}(P||{});const x=["focus"],A=["blur"];function l({rippleRef:R,rectRef:B,targetWidth:U,targetHeight:Y,borderWidth:ae}){const G=R.nativeElement,k=B.nativeElement,X=Math.ceil(function m(R){const B=R.width/2,U=R.height/2;return Math.sqrt(B*B+U*U)}({width:U,height:Y}))+20;G.style.height=2*X+"px",G.style.width=2*X+"px",k.style.height=Math.ceil(Y)-2*ae+"px",k.style.width=Math.ceil(U)-2*ae+"px"}const r={enterDuration:140,exitDuration:140};class E{static{this._eventManager=new h.EU}constructor(B,U,Y,ae,G,k){this._target=B,this._ngZone=U,this._platform=ae,this.borderWidth=G,this.inputModalityService=k,this.eventListeners={},this.focusAnimState=P.Off,this.clearListeners=()=>{this._currentRippleRef?.nativeElement.removeEventListener("transitionend",this.eventListeners.onTransitionEnd),this._currentRippleRef?.nativeElement.removeEventListener("transitioncancel",this.eventListeners.onTransitionCancel)},ae.isBrowser&&(this._hostElement=(0,n.i8)(Y))}focusInRipple(B){this.tearDown(),this._hostElement.classList.add("nv-focus-ripple-cta-btn"),this._hostElement.classList.add("focus-green-text");const U=B.animation,Y=this.borderWidth,ae=this._hostElement.getBoundingClientRect(),G=document.createElement("div");G.classList.add("nv-ripple-container");const k=document.createElement("div");k.classList.add("nv-ripple-circle");const X=document.createElement("div");X.classList.add("nv-ripple-rect");const q=new i.aKT(k),Q=new i.aKT(X);this._hostElement.appendChild(G),G.appendChild(k),G.appendChild(X),this._currentContainerRef=new i.aKT(G),this._currentContainerRef.nativeElement.getBoundingClientRect(),l({rippleRef:q,rectRef:Q,targetWidth:ae.width,targetHeight:ae.height,borderWidth:Y}),k.style.backgroundColor=B.color,X.style.backgroundColor=B.color,k.style.transitionDuration=`${U.enterDuration}ms`,X.style.transitionDuration=`${U.enterDuration}ms`,k.style.opacity="0.5",X.style.opacity="1",this.focusAnimState=P.FocusIn,this._currentRippleRef=q,this._currentRectRef=Q,this._ngZone.runOutsideAngular(()=>{const ce=Ee=>{"opacity"===Ee.propertyName&&(this.clearListeners(),this.focusAnimState=P.On,this._currentRectRef.nativeElement.style.border=`${Y}px solid ${B.borderColor}`,this.observer=new ResizeObserver(([{borderBoxSize:[{inlineSize:it,blockSize:Fe}]}])=>{(it!==ae.width||Fe!==ae.height)&&l({rippleRef:this._currentRippleRef,rectRef:this._currentRectRef,targetWidth:it,targetHeight:Fe,borderWidth:Y})}),this.observer.observe(this._hostElement))},te=Ee=>{"opacity"===Ee.propertyName&&this.tearDown()};this.eventListeners={onTransitionCancel:te,onTransitionEnd:ce},this._currentRippleRef.nativeElement.addEventListener("transitionend",ce),this._currentRippleRef.nativeElement.addEventListener("transitioncancel",te)})}tearDown(){this.clearListeners(),this._destroyRipples(),this.observer?.disconnect(),this.observer=null}focusOutRipple(){this.observer?.disconnect(),this.clearListeners();const B=this._currentRippleRef.nativeElement,U=this._currentRectRef.nativeElement;!U||!B||(U.style.border="none",B.style.opacity="0",B.style.width=0,B.style.height=0,U.style.opacity="0.5",U.style.width=0,U.style.height=0,this._hostElement.classList.remove("focus-green-text"),this.focusAnimState=P.FocusOut,this._ngZone.runOutsideAngular(()=>{const Y=k=>{"opacity"===k.propertyName&&this.tearDown()},ae=k=>{Y(k)},G=k=>{Y(k)};this.eventListeners={onTransitionCancel:G,onTransitionEnd:ae},this._currentRippleRef.nativeElement.addEventListener("transitionend",ae),this._currentRippleRef.nativeElement.addEventListener("transitioncancel",G)}))}setupTriggerEvents(B){const U=(0,n.i8)(B);!this._platform.isBrowser||!U||U===this._triggerElement||(this.removeTriggerEvents(),this._triggerElement=U,x.forEach(Y=>{E._eventManager.addHandler(this._ngZone,Y,U,this)}),A.forEach(Y=>{E._eventManager.addHandler(this._ngZone,Y,U,this)}))}removeTriggerEvents(){const B=this._triggerElement;B&&(x.forEach(U=>E._eventManager.removeHandler(U,B,this)),A.forEach(U=>E._eventManager.removeHandler(U,B,this)))}handleEvent(B){const U=this.inputModalityService.lastFocusOrigin;if(A.includes(B.type)){if(this.focusAnimState===P.Off||this.focusAnimState===P.FocusOut)return;this._onFocusOut()}if(("keyboard"===U||"program"===U)&&x.includes(B.type)){if(this.focusAnimState===P.On||this.focusAnimState===P.FocusIn)return;this._onFocusIn()}}_destroyRipples(){this.focusAnimState=P.Off,this._currentContainerRef?.nativeElement?.remove(),this._currentRippleRef?.nativeElement?.remove(),this._currentRectRef?.nativeElement?.remove(),this._currentRippleRef=null,this._currentRectRef=null,this._hostElement.classList.remove("nv-focus-ripple-cta-btn")}_onFocusIn(){const B=this._target.rippleConfig.animation;(B.enterDuration||B.exitDuration)&&this.focusInRipple(this._target.rippleConfig)}_onFocusOut(){const B=this._target.rippleConfig.animation;(B.enterDuration||B.exitDuration)&&this.focusOutRipple()}}let T=(()=>{class R{get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(U){this._trigger=U,this._setupTriggerEventsIfEnabled()}get flagEnabled(){return this._flagEnabled}set flagEnabled(U){this._flagEnabled=(0,n.he)(U)}get disableRipple(){return!this.focusRippleEnabled||!this._flagEnabled}constructor(U,Y,ae,G,k){this._elementRef=U,this.animation=r,this.color="#2c3220",this.borderColor="#76b900",this._flagEnabled=!0,this._isInitialized=!1,this.focusRippleEnabled=!!k.focusRippleEnabled,!this.disableRipple&&(this._rippleRenderer=new E(this,Y,U,ae,k?.focusRippleBorderWidth,G))}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer?.removeTriggerEvents()}get rippleConfig(){return{color:this.color,borderColor:this.borderColor,animation:this.animation}}_setupTriggerEventsIfEnabled(){this._isInitialized&&!this.disableRipple&&this._rippleRenderer.setupTriggerEvents(this.trigger)}static{this.\u0275fac=function(Y){return new(Y||R)(i.rXU(i.aKT),i.rXU(i.SKi),i.rXU(S.OD),i.rXU(M.p),i.rXU(C.X,8))}}static{this.\u0275dir=i.FsC({type:R,selectors:[["button","color","accent"],["button","mat-raised-button",""],["button",8,"mat-accent"],["","nvFocusRipple",""]],inputs:{animation:[i.Mj6.None,"nvRippleAnimation","animation"],color:[i.Mj6.None,"nvRippleColor","color"],borderColor:[i.Mj6.None,"nvRippleBorderColor","borderColor"],trigger:[i.Mj6.None,"nvRippleTrigger","trigger"],flagEnabled:[i.Mj6.None,"nvFocusRipple","flagEnabled"]},standalone:!0})}}return R})()},40514:(St,z,s)=>{"use strict";s.d(z,{e:()=>r});var i=s(80583),n=s(36877),h=s(16229),C=s(8619),S=s(91384),M=s(4208),P=s(10174),x=s(65706),A=s(11013),g=s(71152),m=s(58527),l=s(6360);let r=(()=>{class u{constructor(E,T,R,B){this.elementRef=E,this.userActivationGuardService=T,this.ngZone=R,this.destroy$=new i.B7,this.enable=!1,this.enable=!!B?.userActivationGuardConfig?.link,this.message=B?.userActivationGuardConfig?.linkWarningMessage}ngAfterViewInit(){!this.enable||!this.message||this.ngZone.runOutsideAngular(()=>{(0,n.R)(this.elementRef.nativeElement,"click").pipe((0,C.p)(E=>this.isLink(E.target)),(0,C.p)(E=>!(0,g.Ls)(E)),(0,S.M)(()=>{this.displayWarningMessage()}),(0,M.Q)(this.destroy$)).subscribe(E=>{E.preventDefault()})})}isLink(E){return"A"===E.tagName&&E.hasAttribute("href")}displayWarningMessage(){if(this.isWarningDisplayed)return;const E=this.userActivationGuardService.displayWarning(this.message);(0,h.h)(E.afterOpened().pipe((0,P.u)(!0)),E.afterDismissed().pipe((0,P.u)(!1))).pipe((0,x.s)(2),(0,M.Q)(this.destroy$)).subscribe(T=>{this.isWarningDisplayed=T})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static{this.\u0275fac=function(T){return new(T||u)(m.rXU(m.aKT),m.rXU(l.gE),m.rXU(m.SKi),m.rXU(A.X,8))}}static{this.\u0275dir=m.FsC({type:u,selectors:[["","nvHyperLinkGuard",""],["a","href",""],["","innerHTML",""]],standalone:!0})}}return u})()},80362:(St,z,s)=>{"use strict";s.d(z,{i4:()=>g});var i=s(6364),n=s(58527),h=s(64409),C=s(80583),S=s(53461),M=s(26875);class x{constructor(l,r,u){this._scrolledIndexChange=new C.B7,this.scrolledIndexChange=this._scrolledIndexChange.pipe((0,S.F)()),this._viewport=null,this._itemOffsets=l,this._minBufferPx=r,this._maxBufferPx=u}attach(l){this._viewport=l,this._updateTotalContentSize(),this._updateRenderedRange()}detach(){this._scrolledIndexChange.complete(),this._viewport=null}updateItemAndBufferSize(l,r,u){if(u<r)throw Error("CDK virtual scroll: maxBufferPx must be greater than or equal to minBufferPx");this._itemOffsets=l,this._minBufferPx=r,this._maxBufferPx=u,this._updateTotalContentSize(),this._updateRenderedRange()}onContentScrolled(){this._updateRenderedRange()}onDataLengthChanged(){this._updateTotalContentSize(),this._updateRenderedRange()}onContentRendered(){}onRenderedOffsetChanged(){}scrollToIndex(l,r){this._viewport&&this._itemOffsets&&this._itemOffsets.length>=l&&l>=0&&this._viewport.scrollToOffset(this._itemOffsets[l],r)}_updateTotalContentSize(){!this._viewport||!this._itemOffsets||0===this._itemOffsets.length||this._viewport.setTotalContentSize(this._itemOffsets[this._itemOffsets.length-1])}getIndexFromPosition(l){return Math.max(0,(0,M.sortedIndex)(this._itemOffsets,l)-1)}_updateRenderedRange(){if(!this._viewport||!this._itemOffsets||0===this._itemOffsets.length)return;const l=this._viewport.measureScrollOffset(),r=this.getIndexFromPosition(l),u=this._viewport.getRenderedRange(),v={start:u.start,end:u.end},E=this._viewport.getViewportSize(),T=this._viewport.getDataLength();v.start>this._itemOffsets.length&&(v.start=0,v.end=this._itemOffsets.length-1);const R=l-this._itemOffsets[v.start];if(R<this._minBufferPx&&0!==v.start){const B=this.getIndexFromPosition(this._maxBufferPx-R);v.start=Math.max(0,v.start-B),v.end=Math.min(T,Math.ceil(this.getIndexFromPosition(l+E+this._minBufferPx)))}else{const B=this._itemOffsets[v.end]-(l+E);if(B<this._minBufferPx&&v.end!==T){const U=this.getIndexFromPosition(this._maxBufferPx-B);U>0&&(v.end=Math.min(T,v.end+U),v.start=Math.max(0,Math.floor(this.getIndexFromPosition(this._itemOffsets[r]-this._minBufferPx))))}}this._viewport.setRenderedRange(v),this._viewport.setRenderedContentOffset(this._itemOffsets[v.start]),this._scrolledIndexChange.next(Math.floor(r))}}function A(m){return m._scrollStrategy}let g=(()=>{class m{constructor(){this._itemOffsets=[0],this._minBufferPx=200,this._maxBufferPx=300,this._scrollStrategy=new x(this.itemOffsets,this.minBufferPx,this.maxBufferPx)}get itemOffsets(){return this._itemOffsets}set itemOffsets(r){this._itemOffsets=r}get minBufferPx(){return this._minBufferPx}set minBufferPx(r){this._minBufferPx=(0,i.OE)(r)}get maxBufferPx(){return this._maxBufferPx}set maxBufferPx(r){this._maxBufferPx=(0,i.OE)(r)}ngOnChanges(){this._scrollStrategy.updateItemAndBufferSize(this.itemOffsets,this.minBufferPx,this.maxBufferPx)}static{this.\u0275fac=function(u){return new(u||m)}}static{this.\u0275dir=n.FsC({type:m,selectors:[["cdk-virtual-scroll-viewport","itemOffsets",""]],inputs:{itemOffsets:"itemOffsets",minBufferPx:"minBufferPx",maxBufferPx:"maxBufferPx"},standalone:!0,features:[n.Jv_([{provide:h.Mr,useFactory:A,deps:[(0,n.Rfq)(()=>m)]}]),n.OA$]})}}return m})()},13906:(St,z,s)=>{"use strict";s.d(z,{Z:()=>h});var i=s(6364),n=s(58527);let h=(()=>{class C{get enabled(){return this._enabled}set enabled(M){this._enabled=(0,i.he)(M)}constructor(M,P){this.el=M,this.renderer=P}setBackgroundStyles(){this.renderer.setStyle(this.el.nativeElement,"background",`url("${this.imageUrl}") 0% 0% / cover no-repeat black`)}removeBackgroundStyles(){["background","background-color","background-repeat","background-size"].forEach(M=>{this.renderer.removeStyle(this.el.nativeElement,M)})}ngOnChanges(M){M.imageUrl?.currentValue&&M.imageUrl?.currentValue!==M.imageUrl?.previousValue&&this.enabled&&this.setBackgroundStyles(),(!M.imageUrl?.currentValue||!this.enabled)&&this.removeBackgroundStyles()}static{this.\u0275fac=function(P){return new(P||C)(n.rXU(n.aKT),n.rXU(n.sFG))}}static{this.\u0275dir=n.FsC({type:C,selectors:[["","nvHigBackgroundImageOverlay",""]],inputs:{imageUrl:"imageUrl",enabled:[n.Mj6.None,"nvHigBackgroundImageOverlay","enabled"]},standalone:!0,features:[n.OA$]})}}return C})()},54676:(St,z,s)=>{"use strict";s.d(z,{Sb:()=>E,rs:()=>r,tG:()=>m});var i=s(71152),n=s(58108),h=s(68868),C=s(58527),S=s(49678),M=s(62141),P=s(4418),x=s(12949),g=(s(94222),s(13186));let m=(()=>{class U{constructor(ae,G,k,X,q,Q){this.el=ae,this.radio=G,this.slide=k,this.check=X,this.inputModalityService=q,this.config=Q}keydownEvent(ae){const G=this.radio?._inputElement?.nativeElement??this.slide?._inputElement.nativeElement??this.check?._inputElement.nativeElement??this.el.nativeElement;if(ae.target===G&&("Enter"===ae.key||" "===ae.key)){if(this.radio)this.radio._onInputInteraction(ae);else if(this.slide)this.slide._inputElement.nativeElement.checked=!this.slide.checked,this.slide._onChangeEvent(ae);else if(this.check)this.check._onInputClick();else{const k=this.inputModalityService.lastInputModality===h.M.Gamepad;this.config?.customClickHandler&&k?this.config.customClickHandler(this.el.nativeElement):G.click()}ae.preventDefault(),ae.stopPropagation()}}static{this.\u0275fac=function(G){return new(G||U)(C.rXU(C.aKT),C.rXU(S._g,8),C.rXU(M.P2,8),C.rXU(P.So,8),C.rXU(h.p),C.rXU(n.Xv,8))}}static{this.\u0275dir=C.FsC({type:U,selectors:[["","nvAddKeyboardActivate",""],["mat-slide-toggle"],["mat-radio-button"],["mat-checkbox"],["a",3,"href",""]],hostBindings:function(G,k){1&G&&C.bIt("keydown",function(q){return k.keydownEvent(q)})},standalone:!0})}}return U})(),r=(()=>{class U{constructor(ae,G){this.select=ae,this.focusManager=G}ngAfterViewInit(){this.select&&setTimeout(()=>{const ae=this.select._handleKeydown.bind(this.select);this.select._handleKeydown=G=>{if(this.select._elementRef.nativeElement.classList.contains("cdk-keyboard-focused")||this.focusManager.focusViaLastOrigin(this.select._elementRef.nativeElement),(0,i.Nw)(G)&&this.select.panelOpen)G.stopPropagation(),this.select.close();else if("ArrowLeft"!==G.key&&"ArrowRight"!==G.key||!this.select.panelOpen){if(this.select.panelOpen||"Enter"===G.key||" "===G.key){if(this.select.panelOpen&&"Enter"===G.key&&this.select._keyManager.activeItem._getHostElement().hasAttribute("nvMapOptionNoSelect"))return void this.select._keyManager.activeItem._getHostElement().click();ae(G)}}else G.stopPropagation(),G.preventDefault()}},150)}static{this.\u0275fac=function(G){return new(G||U)(C.rXU(x.VO),C.rXU(n.c_))}}static{this.\u0275dir=C.FsC({type:U,selectors:[["mat-select","nvMatSelectKeyboardFixup",""]],standalone:!0})}}return U})(),E=(()=>{class U{constructor(ae){this.slider=ae}ngAfterViewInit(){this.slider&&setTimeout(()=>{const ae=this.slider._onKeydown.bind(this.slider);this.slider._onKeydown=G=>{"ArrowUp"!==G.key&&"ArrowDown"!==G.key&&ae(G)}},150)}static{this.\u0275fac=function(G){return new(G||U)(C.rXU(g.N$))}}static{this.\u0275dir=C.FsC({type:U,selectors:[["mat-slider","nvMatSliderKeyboardFixup",""]],standalone:!0})}}return U})()},98504:(St,z,s)=>{"use strict";s.d(z,{f3:()=>g,nM:()=>m,tH:()=>r});var i=s(4208),n=s(80583),h=s(58527),C=s(49678),S=s(94222),M=s(31308),P=s(44296),x=s(42884),A=s(68868);let g=(()=>{class u{constructor(E,T){this.radio=E,this.spatialNavigationService=T}ngAfterViewInit(){if(this.spatialNavigationService.enabled&&this.radio._elementRef.nativeElement){const E=this.radio._inputElement.nativeElement.setAttribute.bind(this.radio._inputElement.nativeElement);this.radio._inputElement.nativeElement.setAttribute=(T,R)=>{E(T,"tabindex"===T?0:R)}}}static{this.\u0275fac=function(T){return new(T||u)(h.rXU(C._g),h.rXU(S.E))}}static{this.\u0275dir=h.FsC({type:u,selectors:[["mat-radio-button","nvMatRadioSpatialNavigationFixup",""]],standalone:!0})}}return u})(),m=(()=>{class u{constructor(E,T){this.elementRef=E,this.focusMonitor=T}ngOnInit(){this.focusMonitor.monitor(this.elementRef.nativeElement,!0)}ngOnDestroy(){this.focusMonitor.stopMonitoring(this.elementRef.nativeElement)}static{this.\u0275fac=function(T){return new(T||u)(h.rXU(h.aKT),h.rXU(M.FN))}}static{this.\u0275dir=h.FsC({type:u,selectors:[["mat-checkbox"]],standalone:!0})}}return u})(),r=(()=>{class u{constructor(E,T,R,B){this.matMenuTrigger=E,this.spatialNavigationService=T,this.nvFocusTrapFactory=R,this.inputModality=B,this.destroyed$=new n.B7}ngAfterViewInit(){this.spatialNavigationService.enabled&&(this.matMenuTrigger.menuOpened.pipe((0,i.Q)(this.destroyed$)).subscribe(()=>{const E=document.getElementById(this.matMenuTrigger.menu.panelId);this.focusTrap=this.nvFocusTrapFactory.create(E.parentElement),this.focusTrap.attach(),this.matMenuTrigger.menu.focusFirstItem(this.inputModality.lastFocusOrigin||"keyboard")}),this.matMenuTrigger.menuClosed.pipe((0,i.Q)(this.destroyed$)).subscribe(()=>{this.focusTrap?.detach()}))}ngOnDestroy(){this.focusTrap?.detach(),this.destroyed$.next(),this.destroyed$.complete()}static{this.\u0275fac=function(T){return new(T||u)(h.rXU(P.fS),h.rXU(S.E),h.rXU(x.O),h.rXU(A.p))}}static{this.\u0275dir=h.FsC({type:u,selectors:[["","nvMatMenuTriggerSpatialNavigationFixup",""],["","matMenuTriggerFor",""]],standalone:!0})}}return u})()},60990:(St,z,s)=>{"use strict";s.d(z,{r:()=>h});var i=s(58527),n=s(13090);let h=(()=>{class C{constructor(M){this.offDeviceLinkService=M}onClick(M){const P=M.target;if(this.offDeviceLinkService.enabled&&P instanceof HTMLAnchorElement&&P.href){const x=this.shortUrl??P.getAttribute("shortUrl")??"";M.preventDefault(),this.offDeviceLinkService.open(P.href,{shortUrl:x})}}static{this.\u0275fac=function(P){return new(P||C)(i.rXU(n.n))}}static{this.\u0275dir=i.FsC({type:C,selectors:[["","nvOffDeviceLink",""],["a","href",""],["","innerHTML",""]],hostBindings:function(P,x){1&P&&i.bIt("click",function(g){return x.onClick(g)})},inputs:{shortUrl:"shortUrl"},standalone:!0})}}return C})()},46964:(St,z,s)=>{"use strict";s.d(z,{q:()=>C});var i=s(80598),n=s(58527),h=s(92602);let C=(()=>{class S{constructor(P,x,A){this.viewcontainerRef=P,this.renderer=x,this.diameter=i.b5,this.spinnerComponentNativeElement=null,this.logger=A.getLogger("nvProgressCircularDirective")}ngOnChanges(P){P&&P.isVisible&&P.isVisible.currentValue!==P.isVisible.previousValue&&(P.isVisible.currentValue?this.createSpinner():this.destroySpinner())}ngOnDestroy(){this.destroySpinner()}createSpinner(){this.spinnerComponentRef=this.viewcontainerRef.createComponent(i.oV),this.spinnerComponentNativeElement=this.spinnerComponentRef.injector.get(i.oV).viewRef.element.nativeElement,this.renderer.appendChild(this.viewcontainerRef.element.nativeElement,this.spinnerComponentNativeElement)}destroySpinner(){this.spinnerComponentNativeElement&&this.renderer.removeChild(this.viewcontainerRef.element.nativeElement,this.spinnerComponentNativeElement),this.spinnerComponentRef&&this.spinnerComponentRef.destroy(),this.spinnerComponentNativeElement=null}static{this.\u0275fac=function(x){return new(x||S)(n.rXU(n.c1b),n.rXU(n.sFG),n.rXU(h.J6))}}static{this.\u0275dir=n.FsC({type:S,selectors:[["","nvProgressCircular",""]],inputs:{isVisible:"isVisible",diameter:"diameter"},standalone:!0,features:[n.OA$]})}}return S})()},2218:(St,z,s)=>{"use strict";s.d(z,{$:()=>P,R:()=>M});var i=s(6364),n=s(58527),h=s(94222),C=s(21684),S=s(92602);let M=(()=>{class x{get containFocus(){return this._containFocus}set containFocus(g){this._containFocus=Array.isArray(g)?g.slice():(0,i.he)(g)}get captureFocusForChild(){return this._captureFocusForChild}set captureFocusForChild(g){this._captureFocusForChild=(0,i.he)(g),this.updateTabIndex()}get autoDisableCaptureIfNoChild(){return this._autoDisableCaptureIfNoChild}set autoDisableCaptureIfNoChild(g){this._autoDisableCaptureIfNoChild=(0,i.he)(g)}get enableSmoothScrolling(){return this._enableSmoothScrolling}set enableSmoothScrolling(g){this._enableSmoothScrolling=(0,i.he)(g)}constructor(g,m,l,r,u){this.element=g,this.spatialNavigationService=m,this.focusManager=l,this.ngZone=r,this.navigateFunction="grid",this.navigateAction="auto",this._containFocus=!0,this._captureFocusForChild=!1,this.captureAndTransitFocusPolicy="initial",this._autoDisableCaptureIfNoChild=!1,this._enableSmoothScrolling=!0,this.navBeforeFocus=v=>{if(this.captureFocusForChild){let E=v.target===this.element.nativeElement;if(this.autoDisableCaptureIfNoChild&&!this.spatialNavigationService.isFocusable(this.element.nativeElement)&&(this.updateTabIndex(),E=E||!this.element.nativeElement.contains(document.activeElement)),!E)return;let T=null;if("closest"===this.captureAndTransitFocusPolicy){const R=document.activeElement.contains(this.element.nativeElement)?this.element.nativeElement:document.activeElement;T=this.spatialNavigationService.getClosestChild(R,this.element.nativeElement,v.detail.dir)}else{const R=this.spatialNavigationService.isFocusable.bind(this.spatialNavigationService);T="first"===this.captureAndTransitFocusPolicy?this.focusManager.getFirstFocusableChild(this.element.nativeElement,R):this.focusManager.getInitialFocusable(this.element.nativeElement,R)}if(!T||T===this.element.nativeElement){let R="";T?T===this.element.nativeElement&&(R=`focus is on the container, container=${this.element.nativeElement.tagName}, containerClass=${this.element.nativeElement.className}`):R="target not found",this.logger.info(`possible focus lost. reason=${R}`)}v.preventDefault(),v.stopPropagation(),T&&T!==this.element.nativeElement?this.focusManager.navigateTo(T,v.detail.dir):this.autoDisableCaptureIfNoChild&&(this.updateTabIndex(),this.spatialNavigationService.navigate(v.detail.dir))}},this.navNoTarget=v=>{this.spatialNavigationService.shouldContainFocus(v.detail.dir,this.containFocus)&&v.target===this.element.nativeElement&&v.preventDefault()},this.logger=u.getLogger("SpatialNavigationContainer")}ngAfterContentInit(){this.spatialNavigationService.enabled&&this.spatialNavigationService.setNavigationContainerCssStyles(this.element.nativeElement,this.navigateFunction,this.navigateAction,this.enableSmoothScrolling)}ngAfterViewInit(){this.spatialNavigationService.enabled&&(this.ngZone.runOutsideAngular(()=>{this.element.nativeElement.addEventListener("navbeforefocus",this.navBeforeFocus),this.element.nativeElement.addEventListener("navnotarget",this.navNoTarget)}),this.updateTabIndex())}ngOnDestroy(){this.spatialNavigationService.enabled&&(this.element.nativeElement.removeEventListener("navbeforefocus",this.navBeforeFocus),this.element.nativeElement.removeEventListener("navnotarget",this.navNoTarget))}updateTabIndex(){if(this.spatialNavigationService.enabled&&this.element){const g=this.captureFocusForChild&&this.autoDisableCaptureIfNoChild?!!this.focusManager.getInitialFocusable(this.element.nativeElement,this.spatialNavigationService.isFocusable.bind(this.spatialNavigationService)):this.captureFocusForChild;this.element.nativeElement.tabIndex=g?0:-1}}static{this.\u0275fac=function(m){return new(m||x)(n.rXU(n.aKT),n.rXU(h.E),n.rXU(C.c),n.rXU(n.SKi),n.rXU(S.J6))}}static{this.\u0275dir=n.FsC({type:x,selectors:[["","nvSpatialNavigationContainer",""]],inputs:{navigateFunction:"navigateFunction",navigateAction:"navigateAction",containFocus:"containFocus",captureFocusForChild:"captureFocusForChild",captureAndTransitFocusPolicy:"captureAndTransitFocusPolicy",autoDisableCaptureIfNoChild:"autoDisableCaptureIfNoChild",enableSmoothScrolling:"enableSmoothScrolling"},standalone:!0})}}return x})(),P=(()=>{class x{get enableSmoothScrolling(){return this._enableSmoothScrolling}set enableSmoothScrolling(g){this._enableSmoothScrolling=(0,i.he)(g)}constructor(g,m){this.element=g,this.spatialNavigationService=m,this.navigateFunction="grid",this.navigateAction="auto",this._enableSmoothScrolling=!0}ngAfterContentInit(){this.spatialNavigationService.enabled&&this.spatialNavigationService.setNavigationContainerCssStyles(this.element.nativeElement,this.navigateFunction,this.navigateAction,this.enableSmoothScrolling)}static{this.\u0275fac=function(m){return new(m||x)(n.rXU(n.aKT),n.rXU(h.E))}}static{this.\u0275dir=n.FsC({type:x,selectors:[["","nvSpatialNavigationGroup",""]],inputs:{navigateFunction:"navigateFunction",navigateAction:"navigateAction",enableSmoothScrolling:"enableSmoothScrolling"},standalone:!0})}}return x})()},16924:(St,z,s)=>{"use strict";s.d(z,{o:()=>P});var i=s(81336),n=s(58527),h=s(64409),C=s(94222),S=s(21684),M=s(92602);let P=(()=>{class x extends i.f{constructor(g,m,l,r,u,v){super(m,r,l,u,v),this.scroller=g}get orientation(){return this.scroller.orientation}get scrollerElement(){return this.scroller.getElementRef().nativeElement}static{this.\u0275fac=function(m){return new(m||x)(n.rXU(h.d6),n.rXU(C.E),n.rXU(S.c),n.rXU(n.aKT),n.rXU(M.J6),n.rXU(n.SKi))}}static{this.\u0275dir=n.FsC({type:x,selectors:[["","nvSpatialNavigationVirtualScroll",""],["cdk-virtual-scroll-viewport","nvSpatialNavigationContainer","","navigateAction","focus"],["cdk-virtual-scroll-viewport","nvSpatialNavigationGroup","","navigateAction","focus"]],standalone:!0,features:[n.Vt3]})}}return x})()},81247:(St,z,s)=>{"use strict";s.d(z,{D:()=>S});var i=s(6364),n=s(58527),h=s(94222),C=s(42884);let S=(()=>{class M{get forceEnable(){return this._forceEnable}set forceEnable(x){this._forceEnable=(0,i.he)(x)}constructor(x,A,g){this.elementRef=x,this.spatialNavigationService=A,this.nvTrapFocusFactory=g,this._forceEnable=!1}ngAfterViewInit(){this.elementRef&&(this.forceEnable||this.spatialNavigationService.enabled)&&(this.focusTrap=this.nvTrapFocusFactory.create(this.elementRef.nativeElement),this.focusTrap.attach())}ngOnDestroy(){this.focusTrap?.isAttached&&this.focusTrap?.detach()}static{this.\u0275fac=function(A){return new(A||M)(n.rXU(n.aKT),n.rXU(h.E),n.rXU(C.O))}}static{this.\u0275dir=n.FsC({type:M,selectors:[["","nvTrapFocus",""]],inputs:{forceEnable:"forceEnable"},standalone:!0})}}return M})()},11013:(St,z,s)=>{"use strict";s.d(z,{X:()=>h});const h=new(s(58527).nKC)("NV_HIG_CONFIG")},87781:(St,z,s)=>{"use strict";function S(P){return P}function M(P){return 1-Math.pow(1-P,3)}s.d(z,{p_:()=>M,sn:()=>S})},1119:(St,z,s)=>{"use strict";s.d(z,{t:()=>v});var i=s(87781),n=s(27594),h=s(63997),C=s(892),S=s(80583),M=s(83915),P=s(48765),x=s(80412),A=s(8619),g=s(91384),m=s(43615);class v{constructor(T,R,B,U){if(this.container=T,this.onScrollStatusChanged=new S.B7,this.isComplete=!1,this.isStarted=!1,!(T&&T instanceof HTMLElement))throw new Error(`${T.tagName} is not a valid container`);if(this.easingFunction=U?.easingFunction??i.sn,U?.duration&&U.duration<0)throw new Error(`${U.duration} is not a valid duration. the duration must greater or equal than 0.`);this.duration=U?.duration??200,this.startX=T.scrollLeft,this.startY=T.scrollTop,this.scrollAmountX=R-this.startX,this.scrollAmountY=B-this.startY}onScrollStart(){return this.onScrollStatusChanged.pipe((0,A.p)(T=>T))}onScrollEnd(){return this.onScrollStatusChanged.pipe((0,A.p)(T=>!T))}start(){if(this.isComplete||this.isStarted)throw new Error(`the scrolling is ${this.isComplete?"completed":"started"}.`);return function u(E,T=n.X){return function r(E=n.X){return(0,h.v)(()=>{const T=E.now();return(0,C.Y)(0,E).pipe((0,M.T)(()=>E.now()-T))})}(T).pipe((0,M.T)(R=>R/E),(0,P.v)(R=>R<1),(0,x.q)(1))}(this.duration).pipe((0,g.M)(()=>{this.isStarted||(this.isStarted=!0,this.onScrollStatusChanged.next(!0))}),(0,M.T)(T=>this.easingFunction(T)),(0,M.T)(T=>(this.container.scrollLeft=this.startX+this.scrollAmountX*T,this.container.scrollTop=this.startY+this.scrollAmountY*T,T)),(0,m.j)(()=>{this.isComplete=!0,this.onScrollStatusChanged.next(!1)}))}}},21684:(St,z,s)=>{"use strict";s.d(z,{c:()=>g});var i=s(65706),n=s(73318),h=s(71152),C=s(58527),S=s(92602),M=s(94222),P=s(68868),x=s(31308);let g=(()=>{class m{get currentFocusedElement(){return document.activeElement instanceof HTMLElement?document.activeElement:void 0}constructor(r,u,v,E,T){this.spatialNavigationService=u,this.inputModalityService=v,this.checker=E,this.focusMonitor=T,this.logger=r.getLogger("FocusManager")}canFocusElement(r,u){return!(!r||(r.isConnected?this.currentFocusedElement===r&&r.classList.contains(`.cdk-${u}-focused`)&&(this.logger.warn(`cdk-${u}-focused is existing in ${r.nodeName}.`),1):(this.logger.warn(`${r.nodeName} is not connected to DOM.`),1)))}getFirstFocusableChild(r,u){const v=u??this.checker.isFocusable.bind(this.checker),E=r.children;for(let T=0;T<E.length;T++){const R=E[T];let B=null;if(B=R.nodeType===Node.ELEMENT_NODE&&v(R)?R:this.getFirstFocusableChild(R,u),B)return B}return null}focusChild(r,u,v,E){r&&setTimeout(()=>{const T="initial"===u?this.getInitialFocusable(r,v):this.getFirstFocusableChild(r,v);this.focusViaLastOrigin(T,E)},0)}getInitialFocusable(r,u){const v=u??this.checker.isFocusable.bind(this.checker);let E=r.querySelector("[cdkFocusInitial]");return(!E||!v(E))&&(E=this.getFirstFocusableChild(r,v)),E}focusViaLastOrigin(r,u){this.focusVia(r,this.inputModalityService.lastFocusOrigin??"keyboard",u)}focusVia(r,u,v){this.canFocusElement(r,u)&&(this.spatialNavigationService.enabled&&this.spatialNavigationService.setStartingPoint(null),this.focusMonitor.focusVia(r,u,v))}navigateTo(r,u,v){!r||!(0,n.UH)(r,"navbeforefocus",u)||this.focusViaLastOrigin(r,v)}getFocusRestorationTargetAt(r,u){const v=(0,h.EL)(r,u);if(!v||this.checker.isFocusable(v))return v;if(!Element.prototype.spatialNavigationSearch||!Element.prototype.focusableAreas)return;const T=v.getSpatialNavigationContainer().focusableAreas({mode:"visible"});let R,B=Number.POSITIVE_INFINITY;return T.forEach(U=>{if(!(U instanceof HTMLElement)||window.__spatialNavigation__.isContainer(U)&&T.some(X=>U.contains(X)))return;const Y=U.getBoundingClientRect(),k=function A(m,l,r,u){return Math.abs(m-r)+Math.abs(l-u)}(r,u,(Y.left+Y.right)/2,(Y.top+Y.bottom)/2);k<B&&(B=k,R=U)}),R}createRestoreFocusFunction(r){if(r===document.body)return()=>{this.logger.warn("restoreTarget cannot be BODY. The focus might have already been lost before focus restoration")};const u=r.getBoundingClientRect();return()=>{if(r.isConnected&&this.checker.isFocusable(r))this.focusViaLastOrigin(r);else{const T=this.getFocusRestorationTargetAt((u.left+u.right)/2,(u.top+u.bottom)/2);T?this.focusViaLastOrigin(T):this.logger.warn("Potential focus loss (failed to restore focus) - target cannot be focused and no other focusable element is found")}}}restoreFocusAfterClosed(r,u){const v=u?.restoreFocusTarget??this.currentFocusedElement,E=r();if(v){const T=this.createRestoreFocusFunction(v);let R;if(E?.afterClosed)R=E.afterClosed();else{if(!E?.afterDismissed)throw new Error("not a supported type.");R=E.afterDismissed()}if(!R)throw new Error("afterClosed$ is not assigned.");R.pipe((0,i.s)(1)).subscribe(()=>{T()})}return E}static{this.\u0275fac=function(u){return new(u||m)(C.KVO(S.J6),C.KVO(M.E),C.KVO(P.p),C.KVO(x.Z7),C.KVO(x.FN))}}static{this.\u0275prov=C.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}}return m})()},42884:(St,z,s)=>{"use strict";s.d(z,{O:()=>S});var i=s(58527),n=s(21684),h=s(31308),C=s(73318);let S=(()=>{class x{constructor(g,m,l,r,u){this.focusManager=g,this.focusMonitor=m,this.ngZone=l,this.spatialNavigationService=r,this.nvFocusTrapManager=u}create(g){return new P(g,this.nvFocusTrapManager,this.focusManager,this.focusMonitor,this.ngZone,this.spatialNavigationService)}static{this.\u0275fac=function(m){return new(m||x)(i.KVO(n.c),i.KVO(h.FN),i.KVO(i.SKi),i.KVO(C.ED),i.KVO(M))}}static{this.\u0275prov=i.jDH({token:x,factory:x.\u0275fac,providedIn:"root"})}}return x})(),M=(()=>{class x{constructor(){this.focusTraps=[]}get topFocusTrap(){const g=this.focusTraps,m=g.length;return m>0?g[m-1]:void 0}register(g){if(!g)return;const m=this.focusTraps.indexOf(g);m>=0&&(this.focusTraps=this.focusTraps.splice(m,1)),this.topFocusTrap?.disable(),g.enable(),this.focusTraps.push(g)}remove(g){if(!g)return;const m=this.focusTraps.indexOf(g);-1!==m&&(this.focusTraps.splice(m,1),g.isAttached&&g.disable(),this.topFocusTrap?.enable())}static{this.\u0275fac=function(m){return new(m||x)}}static{this.\u0275prov=i.jDH({token:x,factory:x.\u0275fac,providedIn:"root"})}}return x})();class P{get isAttached(){return this._isAttached}constructor(A,g,m,l,r,u){this.container=A,this.nvFocusTrapManager=g,this.focusManager=m,this.focusMonitor=l,this.ngZone=r,this.spatialNavigationService=u,this._isAttached=!1,this.containerMutated=!1}attach(){this.nvFocusTrapManager.register(this)}detach(){this.nvFocusTrapManager.remove(this)}enable(){return!!this._isAttached||(this.spatialNavigationService.isFocusable(this.container)||(this.containerOldTabIndexVal=this.container.tabIndex,this.container.tabIndex=0,this.containerMutated=!0),this.container.contains(document.activeElement)||this.focusManager.focusViaLastOrigin(this.container),this.monitorFocusOn(this.container,document.activeElement),this._isAttached=!0,this._isAttached)}disable(){if(!this._isAttached)throw new Error("invoked detach when the focus trap is not attached");this.containerMutated&&(this.container.tabIndex=this.containerOldTabIndexVal,this.containerMutated=void 0,this.containerOldTabIndexVal=void 0),this.monitorSubscription?.unsubscribe(),this.monitorSubscription=void 0,this._isAttached=!1}monitorFocusOn(A,g){let m=g;this.ngZone.runOutsideAngular(()=>{this.monitorSubscription=this.focusMonitor.monitor(A,!0).subscribe(l=>{l?m=this.focusManager.currentFocusedElement:setTimeout(()=>{if(!this._isAttached)return;const r=this.focusManager.currentFocusedElement!==document.body||m?.isConnected?m:A;this.focusManager.focusViaLastOrigin(r)})})})}}},13090:(St,z,s)=>{"use strict";s.d(z,{n:()=>r});var i=s(99564),n=s(29824),h=s(11013),C=s(12532),S=s(80583),M=s(16229),P=s(10174),x=s(92602),A=s(58527),g=s(16490),m=s(26537),l=s(21684);let r=(()=>{class u{get isModalSheetOpened(){return this._isModalSheetOpened}get enabled(){return this._enabled}get isModalSheetOpened$(){return this.isModalSheetOpenSubject?this.isModalSheetOpenSubject.asObservable():C.w}constructor(E,T,R,B){this.matBottomSheet=T,this.matDialog=R,this.focusManager=B,this._isModalSheetOpened=!1,this._enabled=!1,this.config=E?.offDeviceLinkConfig,this.tvMode=!!E?.tvMode}enable(){window.open=(E,T,R,B)=>(E&&this.open(E),null),this._enabled=!0,this.isModalSheetOpenSubject||(this.isModalSheetOpenSubject=new S.B7)}open(E,T){if(!this.config)throw new Error("Off device link configuration is missing!");if(this._enabled){let R=!1;if(this.matDialog.openDialogs.length>0&&this.matDialog.openDialogs[this.matDialog.openDialogs.length-1].componentInstance instanceof n.L&&(R=!0),R){const B=this.focusManager.restoreFocusAfterClosed(()=>n.L.open(this.matDialog,{data:{headerText:{text:T?.shortUrl},bodyText:{text:T?.shortUrlDescription??this.config.title},primaryButton:{text:this.config.primaryButtonText},image:{url:E},threeQuarterSheetData:T?.threeQuarterSheetData},autoFocus:!1}));B.componentInstance.primaryButtonClick.subscribe(()=>{B.close()}),(0,M.h)(B.afterOpened().pipe((0,P.u)(!0)),B.afterClosed().pipe((0,P.u)(!1))).subscribe(U=>{this._isModalSheetOpened=U,this.isModalSheetOpenSubject.next(U)})}else{const B=this.focusManager.restoreFocusAfterClosed(()=>i.G.open(this.matBottomSheet,{data:{headerText:{text:this.config.title},bodyText:T?.shortUrl?{text:T?.shortUrl}:void 0,primaryButton:{text:this.config.primaryButtonText},link:{url:E,text:T?.shortUrl}}},this.tvMode));B.instance.primaryButtonClick.subscribe(()=>{B.dismiss()}),(0,M.h)(B.afterOpened().pipe((0,P.u)(!0)),B.afterDismissed().pipe((0,P.u)(!1))).subscribe(U=>{this._isModalSheetOpened=U,this.isModalSheetOpenSubject.next(U)})}return!0}{const R=window.open(E,"_blank");return!!x.zk.isCefPlatform()||null!==R}}static{this.\u0275fac=function(T){return new(T||u)(A.KVO(h.X,8),A.KVO(g.VK),A.KVO(m.bZ),A.KVO(l.c))}}static{this.\u0275prov=A.jDH({token:u,factory:u.\u0275fac,providedIn:"root"})}}return u})()},73318:(St,z,s)=>{"use strict";s.d(z,{ED:()=>n.E,G2:()=>i.G2,UH:()=>i.UH,o3:()=>i.o3});var i=s(66221),n=s(94222)},94222:(St,z,s)=>{"use strict";s.d(z,{E:()=>r});var i=s(17053),n=s(63997),h=s(16229),C=s(36877),S=s(43848),M=s(75707),P=s(11013),x=s(66221),A=s(58527),g=s(68868),m=s(92602);let l=(()=>{class u{constructor(E,T,R,B){this.ngZone=E,this.inputModalityService=B,this.maxLength=0,this.focusIn=U=>{const Y=this.queue.length>0&&this.queue[this.queue.length-1].fl,ae={fo:null,fi:this.buildFocusEventData(U),fl:!1};U.target!==document.activeElement&&(ae.ae=this.buildElementData(document.activeElement)),this.enqueue(ae),Y&&this.logger.info("Focus regained. Focus on: ",JSON.stringify(ae.fi))},this.focusOut=U=>{const Y=this.buildFocusEventData(U);let ae;0===this.queue.length||null!==this.queue[this.queue.length-1].fo?(ae={fo:Y,fl:this.shouldCheckFocusLoss(U.target),fi:null},this.enqueue(ae)):(ae=this.queue[this.queue.length-1],ae.fo=Y,ae.fl=this.shouldCheckFocusLoss(U.target)&&(null===U.relatedTarget||!U.relatedTarget?.isConnected)),ae.fl&&this.logger.warn("Potential focus loss. Focus history: ",JSON.stringify(this.queue))},this.logger=T.getLogger("FocusHistoryQueueService"),this.window=R.window}enqueue(E){this.queue.push(E)>this.maxLength&&this.queue.shift()}buildElementData(E,T=0){if(!E)return null;const R={nn:E.nodeName?.toUpperCase?.()};return"BUTTON"===R.nn?R.it=E.textContent||E.querySelector("mat-icon[data-mat-icon-name]")?.getAttribute("data-mat-icon-name"):!E.textContent||"A"!==R.nn&&"MAT-SELECT"!==R.nn?E.textContent&&("DIV"===R.nn||"MAT-DIALOG-CONTAINER"===R.nn)&&(R.it=E.textContent.substring(0,50)):R.it=E.textContent,R.it||(R.cn=E.className,0===T&&(R.sc=this.buildElementData(E.getSpatialNavigationContainer(),T+1))),R}buildFocusEventData(E){return{ts:E.timeStamp,t:this.buildElementData(E.target),rt:this.buildElementData(E.relatedTarget),i:this.lastInputType}}shouldCheckFocusLoss(E){return this.lastInputType!==g.M.Touch&&this.lastInputType!==g.M.Mouse&&!E?.hasAttribute("data-focus-loss-exempt")}start(E){this.logger.info("Starting Focus History Queue Service"),this.lastInputType=null,this.maxLength=E,this.queue=[],this.ngZone.runOutsideAngular(()=>{this.window.addEventListener("focusin",this.focusIn),this.window.addEventListener("focusout",this.focusOut),this.inputModalitySubscription=this.inputModalityService.inputModalityChanged$.subscribe(T=>{this.lastInputType=T})})}stop(){this.logger.info("Stopping Focus History Queue Service"),this.ngZone.runOutsideAngular(()=>{this.window.removeEventListener("focusin",this.focusIn),this.window.removeEventListener("focusout",this.focusOut),this.inputModalitySubscription?.unsubscribe()})}static{this.\u0275fac=function(T){return new(T||u)(A.KVO(A.SKi),A.KVO(m.J6),A.KVO(m.s7),A.KVO(g.p))}}static{this.\u0275prov=A.jDH({token:u,factory:u.\u0275fac,providedIn:"root"})}}return u})(),r=(()=>{class u{get enabled(){return this._enabled}constructor(E,T,R){this.focusHistoryQueueService=T,this.logginService=R,this.spatialNavigation=void 0,this._navigate=void 0,this._enabled=!1,this.config=E?.spatialNavigationConfig??{},this.spatialNavigation=window.__spatialNavigation__,this.logger=this.logginService.getLogger("SpatialNavigationService"),this.spatialNavigation&&(this._navigate=window.navigate,this.spatialNavigation.keyMode="NONE"),this.logger.info(`Constructor: this.spatialNavigation=${!!this.spatialNavigation}, window.__spatialNavigation__=${!!window.__spatialNavigation__}`)}setNavigationContainerCssStyles(E,T,R,B=!0){this.enabled&&(E.setAttribute("data-spatial-navigation-contain","contain"),E.setAttribute("data-spatial-navigation-action",R),E.style.setProperty("--spatial-navigation-function",T),"focus"===R&&B&&E.style.setProperty("scroll-behavior","smooth"))}enable(E){this._enabled=E,this.activated=E,this.enabled?this.config?.focusHistoryQueueSize>0&&this.focusHistoryQueueService.start(this.config.focusHistoryQueueSize):this.config?.focusHistoryQueueSize>0&&this.focusHistoryQueueService.stop()}get activated(){return!(!this.spatialNavigation||"NONE"===this.spatialNavigation.keyMode)}set activated(E){!this.enabled||!this.spatialNavigation||(this.spatialNavigation.keyMode=E?"ARROW":"NONE")}setStartingPoint(E){if(!this.enabled||!this.spatialNavigation)return;if(!E)return void this.spatialNavigation.setStartingPoint(null);const T=E.getBoundingClientRect();this.spatialNavigation.setStartingPoint(T.x+T.width/2,T.y+T.height/2)}setStartingPointAt(E,T){!this.enabled||!this.spatialNavigation||this.spatialNavigation.setStartingPoint(E,T)}getClosestChild(E,T,R,B){const U=T.focusableAreas({mode:"all"});let Y=this.getClosestChildInternal(E,T,R,U);if(!Y&&B?.length>0)for(const ae of B)if(Y=this.getClosestChildInternal(E,T,ae,U),Y)break;return Y}getClosestChildInternal(E,T,R,B){return E.spatialNavigationSearch(R,{container:T,candidates:B})}isFullyInViewport(E){return new i.c(T=>{const R=new IntersectionObserver(B=>{const U=B.filter(Y=>Y.intersectionRatio<1)?.[0];T.next(!U)});return R.observe(E),function(){R.disconnect()}})}onClick(E){return(0,n.v)(()=>(E instanceof HTMLAnchorElement&&(E.tabIndex=0),(0,h.h)((0,C.R)(E,"click"),(0,C.R)(E,"keydown")).pipe((0,M.ZZ)(T=>T instanceof MouseEvent||"Enter"===T.key||" "===T.key?(0,S.of)(T):(0,S.of)(void 0)))))}isDefaultFocusRequired(){return this.enabled&&!!this.config.isDefaultFocusRequired}navigate(E){this._navigate?.(E)}isFocusable(E){if(!this.spatialNavigation||!this.spatialNavigation.isFocusable){const T=window.__spatialNavigation__;this.logger.info(`this.spatialNavigation=${!!this.spatialNavigation}, this.spatialNavigation.isFocusable=${!!this.spatialNavigation.isFocusable}`),this.logger.info(`window.__spatialNavigation__=${!!T}, window.__spatialNavigation__.isFocusable=${!!T.isFocusable}`),this.logger.info(`this.spatialNavigation===window.__spatialNavigation__ ? ${this.spatialNavigation===T}`)}return this.spatialNavigation.isFocusable(E)}findNextTarget(E,T,R=document.body){let B,U;const Y=E.getBoundingClientRect();return(0,x.o3)(T)?(B="left"===T?Y.left-1:Y.right+1,U=(Y.top+Y.bottom)/2):(B=(Y.left+Y.right)/2,U="up"===T?Y.top-1:Y.bottom+1),this.setStartingPointAt(B,U),this.getClosestChild(document.body,R,T)}shouldContainFocus(E,T){return Array.isArray(T)?T.includes(E):T}static{this.\u0275fac=function(T){return new(T||u)(A.KVO(P.X,8),A.KVO(l),A.KVO(m.J6))}}static{this.\u0275prov=A.jDH({token:u,factory:u.\u0275fac,providedIn:"root"})}}return u})()},66221:(St,z,s)=>{"use strict";function n(A,g,m){const l=new CustomEvent(g,{bubbles:!0,cancelable:!0,detail:{dir:m}});return A.dispatchEvent(l)}function h(A){switch(A){case"ArrowUp":return"up";case"ArrowDown":return"down";case"ArrowLeft":return"left";case"ArrowRight":return"right";default:throw new Error(`${A} is not a valid navigation key value`)}}function M(A){return"left"===A||"right"===A}s.d(z,{G2:()=>h,UH:()=>n,o3:()=>M}),s(71152)},6360:(St,z,s)=>{"use strict";s.d(z,{gE:()=>E,HK:()=>i});var i=function(T){return T[T.Link=0]="Link",T[T.Share=1]="Share",T[T.Input=2]="Input",T[T.PlayMedia=3]="PlayMedia",T}(i||{});const n=[{object:Navigator.prototype,methodName:"share",type:i.Share,returnsPromise:!0},{object:window,methodName:"open",type:i.Link},{object:Element.prototype,methodName:"requestFullscreen",type:i.PlayMedia,returnsPromise:!0},{object:Element.prototype,methodName:"webkitRequestFullscreen",type:i.PlayMedia,returnsPromise:!0},{object:HTMLMediaElement.prototype,methodName:"play",type:i.PlayMedia,returnsPromise:!0}];var h=s(11013),C=s(10174),S=s(65706),M=s(91384),P=s(14714),x=s(71152),A=s(16229),g=s(12532),m=s(59859),l=s(58527),r=s(92602),u=s(65597),v=s(96542);let E=(()=>{class T{get enabled(){return this._enabled}set enabled(B){this._enabled=B,this.logger.info(`Set UserActivationGuardService enabled: ${B}`)}constructor(B,U,Y,ae){this.snackbarService=U,this.translateService=Y,this._enabled=!1,this.guardedTypes=new Map,this.patchedTypes=[],this.snackBarOpened=!1,this.storedOriginalImplementation=new Map,this.logger=B.getLogger("UserActivationGuard"),this.defaultWarningMessage=ae?.userActivationGuardConfig?.buttonWarningMessage,ae?.userActivationGuardConfig&&this.logger.info(`UserActivationGuardConfig by HIG injection: ${JSON.stringify(ae.userActivationGuardConfig)}`),this.isEnabled(ae?.userActivationGuardConfig?.link)&&this.guardedTypes.set(i.Link,ae.userActivationGuardConfig.link),this.isEnabled(ae?.userActivationGuardConfig?.input)&&this.guardedTypes.set(i.Input,ae.userActivationGuardConfig.input),this.isEnabled(ae?.userActivationGuardConfig?.playMedia)&&this.guardedTypes.set(i.PlayMedia,ae.userActivationGuardConfig.playMedia),this.isEnabled(ae?.userActivationGuardConfig?.share)&&this.guardedTypes.set(i.Share,ae.userActivationGuardConfig.share)}isEnabled(B){return!!B&&"none"!==B}isUserActivated(B){switch(B){case"sticky":return!!navigator.userActivation?.hasBeenActive;case"transient":return!!navigator.userActivation?.isActive;case"none":return!0;default:return!1}}guardSensitiveAPIs(){const B=this;if(this.enabled){if(!navigator.userActivation)return void this.logger.info("navigator.userActivation is not supported on this platform");for(const U of n){const{object:Y,methodName:ae,type:G}=U;if(!this.guardedTypes.has(G))return void this.logger.info(`Skipping patching ${ae}`);if(!Y||"function"!=typeof Y[ae])return void this.logger.error(`Failed patching ${ae}: not found or not a function`);const k=`${Y.constructor.name}.${ae}`;if(this.storedOriginalImplementation.has(k))return;if(!Object.getOwnPropertyDescriptor(Y,ae)?.writable)return void this.logger.error(`${ae} is not a writable property for ${Y}`);this.storedOriginalImplementation.set(k,{object:Y,methodName:ae,original:Y[ae],type:G}),Y[ae]=function(...q){const Q=B.guardedTypes.get(G);if(!B.isUserActivated(Q))return B.triggerWarningMsg(),U.returnsPromise?Promise.resolve(void 0):void 0;try{const ce=B.storedOriginalImplementation.get(k)?.original.apply(this,q);return ce instanceof Promise?ce.catch(te=>te instanceof DOMException&&"NotAllowedError"===te.name?(B.logger.info("NotAllowedError caught: action is not user activated",te),Promise.resolve(void 0)):Promise.reject(te)):ce}catch(ce){B.catchNotAllowedError(ce)}},this.patchedTypes.push(G)}}}catchNotAllowedError(B){if("NotAllowedError"!==B.name)throw B;this.logger.info("NotAllowedError caught: action is not user activated",B)}restoreOriginalAPIs(){this.enabled&&navigator.userActivation&&(this.storedOriginalImplementation.forEach(({object:B,methodName:U,original:Y})=>{try{B[U]=Y}catch(ae){this.logger.error(`Failed restoring ${U}:`,ae)}}),this.storedOriginalImplementation.clear(),this.patchedTypes=[])}displayWarning(B,U){return this.snackbarService.open(this.translateService.instant(B,U))}isGuarded(B){return this.guardedTypes.has(B)}isPatched(B){return this.patchedTypes.includes(B)}guard(B,U,Y,ae){return this.enabled&&this.isGuarded(B)?(G,...k)=>{if(!(0,x.Ls)(G))return this.triggerWarningMsg(G,Y,ae),n.find(q=>q.type===B).returnsPromise?Promise.resolve(void 0):void 0;try{const X=U(G,...k);return X&&"function"==typeof X.then?X.catch(q=>"NotAllowedError"===q.name?(this.logger.info("NotAllowedError caught in Promise: action is not user activated",q),Promise.resolve(void 0)):Promise.reject(q)):X}catch(X){this.catchNotAllowedError(X)}}:U}triggerWarningMsg(B,U,Y){if(!this.snackBarOpened){const k=this.displayWarning(U??this.defaultWarningMessage,Y?.interpolationKey?{[Y.interpolationKey]:Y?.useInnerText?B?.target?.innerText:Y?.text}:void 0);(0,A.h)(k.afterOpened().pipe((0,C.u)(!0)),k.afterDismissed().pipe((0,C.u)(!1))).pipe((0,S.s)(2)).subscribe(X=>{this.snackBarOpened=X})}}guardObservable(B,U,Y,ae){return this.enabled&&this.isGuarded(B)?U.pipe((0,M.M)(G=>{!(0,x.Ls)(G)&&this.triggerWarningMsg(G,Y,ae)}),(0,P.W)(G=>"NotAllowedError"===G.name?(this.logger.info("NotAllowedError caught: action is not user activated",G),g.w):(0,m.$)(()=>G))):U}static{this.\u0275fac=function(U){return new(U||T)(l.KVO(r.J6),l.KVO(u.UG),l.KVO(v.c$),l.KVO(h.X,8))}}static{this.\u0275prov=l.jDH({token:T,factory:T.\u0275fac,providedIn:"root"})}}return T})()},58108:(St,z,s)=>{"use strict";s.d(z,{N5:()=>te.N,c_:()=>Dt.c,t4:()=>vn.t,bm:()=>en,Xv:()=>Nr.X,tG:()=>oo.tG,uh:()=>Da,ur:()=>At,wN:()=>Jt.w,nO:()=>rr.n,ti:()=>Wo.t,RM:()=>G.R,ED:()=>Wn.E,D2:()=>k.D,gE:()=>Hr.gE,HK:()=>Hr.HK});var i=s(61142),n=s(94485),h=s(58527),C=s(51006),S=s(26537),M=s(16490),P=s(29370),x=s(44224),A=s(74150),g=s(96542),m=s(36243),l=s(14354),r=s(64409),u=s(99564),v=s(56106),E=s(47973),T=s(4418),R=s(49678),B=s(99204),U=s(31308),Y=s(72818),ae=s(25369),G=s(2218),k=s(81247),X=s(98504),q=s(60990),Q=s(40514),ce=s(97888),te=s(22355),Ee=s(52171),it=s(3457),Fe=s(28139),Qe=s(51394);const ct=(ut,Pt)=>[ut,Pt],Ge=ut=>({visible:ut}),nt=ut=>({"pointer-events":ut}),Je=ut=>({visibility:ut});function ze(ut,Pt){if(1&ut&&(h.j41(0,"i",23),h.EFF(1),h.k0s()),2&ut){const Re=h.XpG();h.R7$(),h.JRh(Re.data.icon)}}function Ke(ut,Pt){if(1&ut&&h.nrm(0,"img",24),2&ut){const Re=h.XpG();h.Y8G("src",Re.data.image.url,h.B4B)}}function Ve(ut,Pt){if(1&ut&&(h.nrm(0,"div",25),h.nI1(1,"translate")),2&ut){const Re=h.XpG();h.Y8G("innerHTML",h.i5U(1,1,Re.data.headerText.text,Re.data.translateValues),h.npT)}}function $e(ut,Pt){1&ut&&(h.j41(0,"div",26),h.nrm(1,"mat-progress-spinner",27),h.k0s())}function dt(ut,Pt){if(1&ut&&(h.nrm(0,"div",28),h.nI1(1,"translate")),2&ut){const Re=h.XpG();h.Y8G("innerHTML",Re.data.bodyText.translated?Re.data.bodyText.text:h.i5U(1,1,Re.data.bodyText.text,Re.data.bodyText.placeholders),h.npT)}}function Pe(ut,Pt){if(1&ut){const Re=h.RV6();h.j41(0,"a",32),h.bIt("click",function(){h.eBV(Re);const an=h.XpG(2);return h.Njj(an.onLinkClick())}),h.EFF(1),h.nI1(2,"translate"),h.k0s()}if(2&ut){const Re=h.XpG(2);h.Y8G("href",Re.data.link.url,h.B4B)("shortUrl",null==Re.data.link?null:Re.data.link.shortUrl),h.R7$(),h.JRh(h.i5U(2,3,Re.data.link.text,Re.data.link.placeholders))}}function J(ut,Pt){if(1&ut){const Re=h.RV6();h.j41(0,"span",33),h.nI1(1,"translate"),h.bIt("click",function(){h.eBV(Re);const an=h.XpG(2);return h.Njj(an.onLinkClick())}),h.k0s()}if(2&ut){const Re=h.XpG(2);h.Y8G("innerHTML",h.i5U(1,1,Re.data.link.text,Re.data.link.placeholders),h.npT)}}function vt(ut,Pt){if(1&ut&&(h.j41(0,"div",29),h.DNE(1,Pe,3,6,"a",30)(2,J,2,4,"span",31),h.k0s()),2&ut){const Re=h.XpG();h.R7$(),h.Y8G("ngIf",!(null!=Re.data.link&&Re.data.link.isTextWithHyperlinkTag)),h.R7$(),h.Y8G("ngIf",null==Re.data.link?null:Re.data.link.isTextWithHyperlinkTag)}}function ve(ut,Pt){if(1&ut){const Re=h.RV6();h.j41(0,"a",32),h.bIt("click",function(){h.eBV(Re);const an=h.XpG(2);return h.Njj(an.onLinkClick())}),h.EFF(1),h.nI1(2,"translate"),h.k0s()}if(2&ut){const Re=h.XpG(2);h.Y8G("href",Re.data.link.url,h.B4B)("shortUrl",Re.data.link.shortUrl),h.R7$(),h.JRh(h.bMT(2,3,Re.data.link.text))}}function ue(ut,Pt){if(1&ut&&(h.j41(0,"a",36),h.EFF(1),h.nI1(2,"translate"),h.k0s()),2&ut){const Re=h.XpG(2);h.Y8G("routerLink",Re.data.link.routerLink.commands)("skipLocationChange",Re.data.link.routerLink.skipLocationChange),h.R7$(),h.SpI(" ",h.bMT(2,3,Re.data.link.text)," ")}}function et(ut,Pt){if(1&ut){const Re=h.RV6();h.j41(0,"a",37),h.bIt("click",function(){h.eBV(Re);const an=h.XpG(2);return h.Njj(an.data.link.linkClickedCallback())}),h.EFF(1),h.nI1(2,"translate"),h.k0s()}if(2&ut){const Re=h.XpG(2);h.R7$(),h.SpI(" ",h.bMT(2,1,Re.data.link.text)," ")}}function se(ut,Pt){if(1&ut&&(h.j41(0,"div",29),h.DNE(1,ve,3,5,"a",30)(2,ue,3,5,"a",34)(3,et,3,3,"a",35),h.k0s()),2&ut){const Re=h.XpG();h.R7$(),h.Y8G("ngIf",Re.data.link.url&&!Re.data.link.routerLink&&!Re.data.link.linkClickedCallback),h.R7$(),h.Y8G("ngIf",Re.data.link.routerLink&&!Re.data.link.linkClickedCallback),h.R7$(),h.Y8G("ngIf",Re.data.link.linkClickedCallback)}}function Ce(ut,Pt){if(1&ut&&(h.j41(0,"div",38),h.EFF(1),h.nI1(2,"translate"),h.k0s()),2&ut){const Re=h.XpG();h.R7$(),h.SpI(" ",h.i5U(2,1,Re.data.errorCodeText.text,Re.data.errorCodeText.placeholders)," ")}}function be(ut,Pt){if(1&ut&&h.nrm(0,"nv-hig-cell-comparison",39),2&ut){const Re=h.XpG();h.Y8G("data",Re.data.dataCells)}}function rt(ut,Pt){if(1&ut&&h.nrm(0,"img",46),2&ut){const Re=h.XpG().$implicit;h.Y8G("src",Re.imageUrl,h.B4B)}}function me(ut,Pt){if(1&ut&&(h.j41(0,"mat-radio-button",42)(1,"div",43),h.DNE(2,rt,1,1,"img",44),h.j41(3,"div",45),h.EFF(4),h.k0s()()()),2&ut){const Re=Pt.$implicit;h.Y8G("value",Re.value),h.R7$(2),h.Y8G("ngIf",Re.imageUrl),h.R7$(2),h.JRh(Re.value)}}function le(ut,Pt){if(1&ut){const Re=h.RV6();h.j41(0,"mat-radio-group",40),h.mxI("ngModelChange",function(an){h.eBV(Re);const Hn=h.XpG();return h.DH7(Hn.data.radioOptionSelected,an)||(Hn.data.radioOptionSelected=an),h.Njj(an)}),h.bIt("change",function(){h.eBV(Re);const an=h.XpG();return h.Njj(an.onRadioOptionChange())}),h.DNE(1,me,5,3,"mat-radio-button",41),h.k0s()}if(2&ut){const Re=h.XpG();h.R50("ngModel",Re.data.radioOptionSelected),h.R7$(),h.Y8G("ngForOf",Re.data.radioButtonOptions)}}function Xe(ut,Pt){if(1&ut&&h.nrm(0,"mat-icon",52),2&ut){const Re=h.XpG().$implicit;h.Y8G("svgIcon",Re.matIcon)}}function Se(ut,Pt){if(1&ut&&(h.j41(0,"div",49),h.DNE(1,Xe,1,1,"mat-icon",50),h.j41(2,"div",51),h.EFF(3),h.k0s()()),2&ut){const Re=Pt.$implicit;h.R7$(),h.Y8G("ngIf",Re.matIcon),h.R7$(2),h.JRh(Re.text)}}function fe(ut,Pt){if(1&ut&&(h.j41(0,"div",47),h.DNE(1,Se,4,2,"div",48),h.k0s()),2&ut){const Re=h.XpG();h.R7$(),h.Y8G("ngForOf",Re.data.descriptionList)}}function Ne(ut,Pt){if(1&ut){const Re=h.RV6();h.j41(0,"div",53)(1,"div",54)(2,"a",55),h.bIt("click",function(){return h.eBV(Re),h.Njj(!1)})("dragstart",function(){h.eBV(Re);const an=h.XpG();return h.Njj(an.onImageDragStart())}),h.EFF(3),h.nI1(4,"translate"),h.nrm(5,"img",56),h.k0s(),h.nrm(6,"p",57),h.nI1(7,"translate"),h.k0s(),h.nrm(8,"p",58),h.nI1(9,"translate"),h.k0s()}if(2&ut){const Re=h.XpG();h.R7$(2),h.Y8G("href",Re.data.image.shortcutUrl,h.B4B),h.R7$(),h.JRh(h.i5U(4,6,Re.data.image.caption,Re.data.image.captionPlaceholder)),h.R7$(2),h.Y8G("src",Re.data.image.url,h.B4B)("alt",Re.data.image.captionPlaceholder),h.R7$(),h.Y8G("innerHTML",h.i5U(7,9,Re.data.image.caption,Re.data.image.captionPlaceholder),h.npT),h.R7$(2),h.Y8G("innerHTML",h.bMT(9,12,Re.data.image.description),h.npT)}}function ye(ut,Pt){if(1&ut){const Re=h.RV6();h.j41(0,"mat-checkbox",59),h.mxI("ngModelChange",function(an){h.eBV(Re);const Hn=h.XpG();return h.DH7(Hn.data.checkboxState,an)||(Hn.data.checkboxState=an),h.Njj(an)}),h.j41(1,"span",60),h.EFF(2),h.nI1(3,"translate"),h.k0s()()}if(2&ut){const Re=h.XpG();h.R50("ngModel",Re.data.checkboxState),h.R7$(2),h.JRh(h.bMT(3,2,Re.data.checkbox.text))}}function Ot(ut,Pt){if(1&ut){const Re=h.RV6();h.j41(0,"button",61),h.bIt("click",function(an){h.eBV(Re);const Hn=h.XpG();return h.Njj(Hn.onSecondaryButtonClick(an))}),h.EFF(1),h.nI1(2,"translate"),h.eu8(3,62),h.k0s()}if(2&ut){const Re=h.XpG(),rn=h.sdS(25);h.Y8G("disabled",Re.data.secondaryButton.isDisabled),h.R7$(),h.SpI(" ",h.bMT(2,4,Re.data.secondaryButton.text)," "),h.R7$(2),h.Y8G("ngTemplateOutlet",rn)("ngTemplateOutletContext",h.eq3(6,Ge,Re.data.secondaryButton.spinnerOverlay))}}function sn(ut,Pt){if(1&ut){const Re=h.RV6();h.j41(0,"button",63),h.bIt("click",function(an){h.eBV(Re);const Hn=h.XpG();return h.Njj(Hn.onPrimaryButtonClick(an))}),h.j41(1,"div",64),h.EFF(2),h.nI1(3,"translate"),h.k0s(),h.eu8(4,62),h.k0s()}if(2&ut){const Re=h.XpG(),rn=h.sdS(25);h.Y8G("ngClass",Re.data.primaryButton.accentColor?"font-button2 mat-flat-button mat-accent":"font-button2")("nvFocusRipple",!!Re.data.primaryButton.accentColor)("disabled",Re.data.primaryButton.isDisabled)("nvAutoFocus",Re.autoFocusOnPrimaryButton)("ngStyle",h.eq3(11,nt,Re.data.primaryButton.spinnerOverlay?"none":"all")),h.R7$(),h.Y8G("ngStyle",h.eq3(13,Je,Re.data.primaryButton.removeButtonTextOnClick?"hidden":"visible")),h.R7$(),h.SpI(" ",h.bMT(3,9,Re.data.primaryButton.text)," "),h.R7$(2),h.Y8G("ngTemplateOutlet",rn)("ngTemplateOutletContext",h.eq3(15,Ge,Re.data.primaryButton.spinnerOverlay))}}function dn(ut,Pt){if(1&ut&&(h.j41(0,"div",66),h.nrm(1,"mat-progress-spinner",67),h.k0s()),2&ut){const Re=h.XpG(2);h.R7$(),h.Y8G("ngClass",Re.data.spinnerClass?Re.data.spinnerClass:"mat-accent")("diameter",16)}}function yn(ut,Pt){1&ut&&h.DNE(0,dn,2,2,"div",65),2&ut&&h.Y8G("ngIf",Pt.visible)}let At=(()=>{class ut extends ae.D{get hasIcon(){return!!this.data.icon||!!this.data.image}get autoFocusOnPrimaryButton(){return this.data.autoFocusOnPrimaryButton??!0}static open(Re,rn){return(0,Y.SN)(rn,{addOverlayPanelCls:!0}),Re.open(ut,rn)}constructor(Re,rn,an,Hn){super(rn,an,Re,Hn),this.primaryButtonClick=new h.bkB,this.secondaryButtonClick=new h.bkB,this.radioButtonClick=new h.bkB,this.linkClick=new h.bkB,this.data={},this.data=Re.get(S.Vh,null)||{showSpinner:!1}}ngOnInit(){this.data.checkboxState=this.data.checkbox?.initialState??!1}onPrimaryButtonClick(Re){this.primaryButtonClick.emit(Re)}onSecondaryButtonClick(Re){this.secondaryButtonClick.emit(Re)}onLinkClick(){this.linkClick.emit()}onRadioOptionChange(){this.radioButtonClick.emit()}onImageDragStart(){this.data.image?.dragStartCallback()}static{this.\u0275fac=function(rn){return new(rn||ut)(h.rXU(h.zZn),h.rXU(S.CP,8),h.rXU(M.eN,8),h.rXU(h.SKi))}}static{this.\u0275cmp=h.VBU({type:ut,selectors:[["nv-hig-dialog"]],inputs:{data:"data"},outputs:{primaryButtonClick:"primaryButtonClick",secondaryButtonClick:"secondaryButtonClick",radioButtonClick:"radioButtonClick",linkClick:"linkClick"},standalone:!0,features:[h.Vt3,h.aNF],decls:26,vars:29,consts:[["buttonSpinner",""],["nvSpatialNavigationContainer","","nvTrapFocus","",3,"ngClass","forceEnable"],["fxLayout","row","fxLayoutAlign","stretch start",1,"hig-dialog-padding"],["class","hig-dialog-icon material-icons",4,"ngIf"],["class","hig-dialog-img",3,"src",4,"ngIf"],["fxLayout","column","fxLayoutGap","16px",1,"hig-dialog-content-container"],["fxLayout","column","fxLayoutAlign","space-between stretch",1,"hig-dialog-info-container"],["class","font-header6 header-text",3,"innerHTML",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center",1,"hig-dialog-spinner-container",3,"ngClass"],["class","hig-dialog-spinner",4,"ngIf"],["fxLayout","column"],["class","font-body2 body-text",3,"innerHTML",4,"ngIf"],["class","hig-dialog-link-text",4,"ngIf"],["class","font-body2 hig-dialog-error-text",4,"ngIf"],[3,"data",4,"ngIf"],["class","hig-radio-container","nvSpatialNavigationGroup","","navigateAction","focus",3,"ngModel","ngModelChange","change",4,"ngIf"],["class","hig-description-list-container",4,"ngIf"],["class","hig-dialog-image-container","fxLayout","row","fxLayoutAlign","start start",4,"ngIf"],["fxLayout","column","fxLayoutGap","16px",1,"hig-dialog-actions-container"],["class","nv-hig",3,"ngModel","ngModelChange",4,"ngIf"],["fxLayoutAlign","end center","fxLayoutGap","8px",1,"hig-dialog-buttons-container"],["mat-button","","class","hig-dialog-secondary-button font-button2",3,"disabled","click",4,"ngIf"],["mat-button","",3,"ngClass","nvFocusRipple","disabled","nvAutoFocus","ngStyle","click",4,"ngIf"],[1,"hig-dialog-icon","material-icons"],[1,"hig-dialog-img",3,"src"],[1,"font-header6","header-text",3,"innerHTML"],[1,"hig-dialog-spinner"],["mode","indeterminate","diameter","48","color","accent"],[1,"font-body2","body-text",3,"innerHTML"],[1,"hig-dialog-link-text"],["target","_blank","class","font-body2-link",3,"href","shortUrl","click",4,"ngIf"],["cdkMonitorSubtreeFocus","","target","_blank","class","font-body2",3,"innerHTML","click",4,"ngIf"],["target","_blank",1,"font-body2-link",3,"click","href","shortUrl"],["cdkMonitorSubtreeFocus","","target","_blank",1,"font-body2",3,"click","innerHTML"],["class","font-body2-link",3,"routerLink","skipLocationChange",4,"ngIf"],["class","font-body2-link","role","link","tabindex","0",3,"click",4,"ngIf"],[1,"font-body2-link",3,"routerLink","skipLocationChange"],["role","link","tabindex","0",1,"font-body2-link",3,"click"],[1,"font-body2","hig-dialog-error-text"],[3,"data"],["nvSpatialNavigationGroup","","navigateAction","focus",1,"hig-radio-container",3,"ngModelChange","change","ngModel"],["nvMatRadioSpatialNavigationFixup","",3,"value",4,"ngFor","ngForOf"],["nvMatRadioSpatialNavigationFixup","",3,"value"],[1,"hig-radio-label-container"],["class","hig-radio-option-image",3,"src",4,"ngIf"],["dir","auto",1,"hig-radio-option-label"],[1,"hig-radio-option-image",3,"src"],[1,"hig-description-list-container"],["class","hig-description-list-item",4,"ngFor","ngForOf"],[1,"hig-description-list-item"],["class","hig-description-icon font-body2",3,"svgIcon",4,"ngIf"],[1,"hig-description-text","font-body2"],[1,"hig-description-icon","font-body2",3,"svgIcon"],["fxLayout","row","fxLayoutAlign","start start",1,"hig-dialog-image-container"],["fxLayout","column",1,"hig-dialog-image-shortcut-container"],[1,"hig-dialog-image-shortcut-link",3,"click","dragstart","href"],[1,"hig-dialog-image",3,"src","alt"],[1,"hig-dialog-image-caption",3,"innerHTML"],[1,"hig-dialog-image-description","font-body2",3,"innerHTML"],[1,"nv-hig",3,"ngModelChange","ngModel"],[1,"font-body2"],["mat-button","",1,"hig-dialog-secondary-button","font-button2",3,"click","disabled"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["mat-button","",3,"click","ngClass","nvFocusRipple","disabled","nvAutoFocus","ngStyle"],[3,"ngStyle"],["fxLayoutAlign","center center","class","spinner-overlay",4,"ngIf"],["fxLayoutAlign","center center",1,"spinner-overlay"],["mode","indeterminate",3,"ngClass","diameter"]],template:function(rn,an){1&rn&&(h.j41(0,"div",1)(1,"div",2),h.DNE(2,ze,2,1,"i",3)(3,Ke,1,1,"img",4),h.j41(4,"div",5)(5,"div",6),h.DNE(6,Ve,2,4,"div",7),h.j41(7,"div",8),h.DNE(8,$e,2,0,"div",9),h.j41(9,"div",10),h.DNE(10,dt,2,4,"div",11),h.k0s()(),h.DNE(11,vt,3,2,"div",12)(12,se,4,3,"div",12)(13,Ce,3,4,"div",13)(14,be,1,1,"nv-hig-cell-comparison",14)(15,le,2,2,"mat-radio-group",15)(16,fe,2,1,"div",16)(17,Ne,10,14,"div",17),h.k0s(),h.j41(18,"div",18)(19,"div"),h.DNE(20,ye,4,4,"mat-checkbox",19),h.k0s(),h.j41(21,"div",20),h.DNE(22,Ot,4,8,"button",21)(23,sn,5,17,"button",22),h.k0s(),h.DNE(24,yn,1,1,"ng-template",null,0,h.C5r),h.k0s()()()()),2&rn&&(h.Y8G("ngClass",an.data.isTransparent?"hig-dialog-transparent":"hig-dialog")("forceEnable",an.data.trapFocus),h.R7$(),h.AVh("no-header-text",!an.data.headerText)("no-body-text",!an.data.bodyText)("no-spinner",!an.data.showSpinner)("has-icon",an.hasIcon),h.R7$(),h.Y8G("ngIf",an.data.icon),h.R7$(),h.Y8G("ngIf",an.data.image&&!an.data.image.isDraggableUrl),h.R7$(3),h.Y8G("ngIf",an.data.headerText),h.R7$(),h.Y8G("ngClass",h.l_i(26,ct,an.data.bodyText?"hig-dialog-spinner-content-start":"hig-dialog-spinner-content-center",an.data.showSpinner?"hig-dialog-spinner-group":"")),h.R7$(),h.Y8G("ngIf",an.data.showSpinner),h.R7$(2),h.Y8G("ngIf",an.data.bodyText),h.R7$(),h.Y8G("ngIf",null==an.data.link?null:an.data.link.placeholders),h.R7$(),h.Y8G("ngIf",an.data.link&&!an.data.link.placeholders),h.R7$(),h.Y8G("ngIf",an.data.errorCodeText),h.R7$(),h.Y8G("ngIf",(null==an.data.dataCells?null:an.data.dataCells.length)>0),h.R7$(),h.Y8G("ngIf",an.data.radioButtonOptions),h.R7$(),h.Y8G("ngIf",an.data.descriptionList),h.R7$(),h.Y8G("ngIf",null==an.data.image?null:an.data.image.isDraggableUrl),h.R7$(3),h.Y8G("ngIf",an.data.checkbox),h.R7$(2),h.Y8G("ngIf",an.data.secondaryButton),h.R7$(),h.Y8G("ngIf",an.data.primaryButton))},dependencies:[i.bT,i.YU,i.T3,v.YN,v.BC,v.vS,C.YF,it.DJ,it.BO,it.sA,Fe.PW,Fe.eI,E.wG,E.iV,Qe.ig,T.g7,T.So,P.m_,P.An,R.Wk,R.VT,R._g,B.D6,B.LG,g.h,g.D9,U.Pd,U.vR,l.iI,l.Wk,G.R,k.D,X.f3,te.N,q.r,Q.e,ce.Aq,Ee.X],styles:["[_ngcontent-%COMP%]:root{--rwd-column-count: 4;--rwd-gutter-count: 3 ;--rwd-gutter-size: 8px;--rwd-container-side-spacing: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 3 ) / 4);--rwd-sidebar-width: 0px;--rwd-container-width: 100vw}@media screen and (min-width: 480px){[_ngcontent-%COMP%]:root{--rwd-column-count: 6;--rwd-gutter-count: 5 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 5 ) / 6)}}@media screen and (min-width: 720px){[_ngcontent-%COMP%]:root{--rwd-column-count: 8;--rwd-gutter-count: 7 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 7 ) / 8)}}@media screen and (min-width: 960px){[_ngcontent-%COMP%]:root{--rwd-column-count: 12;--rwd-gutter-count: 11 ;--rwd-container-side-spacing: 24px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 8px * 11 ) / 12)}}@media screen and (min-width: 1440px){[_ngcontent-%COMP%]:root{--rwd-gutter-size: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 16px * 11 ) / 12)}}.hig-dialog[_ngcontent-%COMP%]{background-color:var(--hig-dialog-bg-color);padding:0;width:560px}.hig-dialog-transparent[_ngcontent-%COMP%]{background-color:transparent;padding:0;width:100%}.isLtr[_nghost-%COMP%] .hig-dialog-padding[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .hig-dialog-padding[_ngcontent-%COMP%]{padding:20px 8px 8px 24px}html[dir=ltr][_ngcontent-%COMP%] .hig-dialog-padding[_ngcontent-%COMP%]{--dummy: 0;padding:20px 8px 8px 24px}.isRtl[_nghost-%COMP%] .hig-dialog-padding[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .hig-dialog-padding[_ngcontent-%COMP%]{padding:20px 24px 8px 8px}html[dir=rtl][_ngcontent-%COMP%] .hig-dialog-padding[_ngcontent-%COMP%]{--dummy: 0;padding:20px 24px 8px 8px}.hig-dialog-img[_ngcontent-%COMP%]{min-width:32px}.isLtr[_nghost-%COMP%] .hig-dialog-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .hig-dialog-icon[_ngcontent-%COMP%], .isLtr[_nghost-%COMP%] .hig-dialog-img[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .hig-dialog-img[_ngcontent-%COMP%]{margin-right:16px}html[dir=ltr][_ngcontent-%COMP%] .hig-dialog-icon[_ngcontent-%COMP%], html[dir=ltr][_ngcontent-%COMP%] .hig-dialog-img[_ngcontent-%COMP%]{--dummy4: 0;margin-right:16px}.isRtl[_nghost-%COMP%] .hig-dialog-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .hig-dialog-icon[_ngcontent-%COMP%], .isRtl[_nghost-%COMP%] .hig-dialog-img[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .hig-dialog-img[_ngcontent-%COMP%]{margin-left:16px}html[dir=rtl][_ngcontent-%COMP%] .hig-dialog-icon[_ngcontent-%COMP%], html[dir=rtl][_ngcontent-%COMP%] .hig-dialog-img[_ngcontent-%COMP%]{--dummy4: 0;margin-left:16px}@media (max-width: 479px),(min-width: 480px) and (max-width: 719px){.hig-dialog[_ngcontent-%COMP%]{width:calc(100vw - 32px)}}.hig-dialog-content-container[_ngcontent-%COMP%]{width:100%}.isLtr[_nghost-%COMP%] .hig-dialog-content-container[_ngcontent-%COMP%] .hig-dialog-info-container[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .hig-dialog-content-container[_ngcontent-%COMP%] .hig-dialog-info-container[_ngcontent-%COMP%]{margin-right:16px}html[dir=ltr][_ngcontent-%COMP%] .hig-dialog-content-container[_ngcontent-%COMP%] .hig-dialog-info-container[_ngcontent-%COMP%]{--dummy4: 0;margin-right:16px}.isRtl[_nghost-%COMP%] .hig-dialog-content-container[_ngcontent-%COMP%] .hig-dialog-info-container[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .hig-dialog-content-container[_ngcontent-%COMP%] .hig-dialog-info-container[_ngcontent-%COMP%]{margin-left:16px}html[dir=rtl][_ngcontent-%COMP%] .hig-dialog-content-container[_ngcontent-%COMP%] .hig-dialog-info-container[_ngcontent-%COMP%]{--dummy4: 0;margin-left:16px}.isLtr[_nghost-%COMP%] .hig-dialog-spinner[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .hig-dialog-spinner[_ngcontent-%COMP%]{padding-right:15px}html[dir=ltr][_ngcontent-%COMP%] .hig-dialog-spinner[_ngcontent-%COMP%]{--dummy2: 0;padding-right:15px}.isRtl[_nghost-%COMP%] .hig-dialog-spinner[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .hig-dialog-spinner[_ngcontent-%COMP%]{padding-left:15px}html[dir=rtl][_ngcontent-%COMP%] .hig-dialog-spinner[_ngcontent-%COMP%]{--dummy2: 0;padding-left:15px}.hig-dialog-spinner-group[_ngcontent-%COMP%]{margin-top:10px}.hig-dialog-link-text[_ngcontent-%COMP%]{margin:10px 0 0}.isLtr[_nghost-%COMP%] .hig-dialog-buttons-container[_ngcontent-%COMP%] .hig-dialog-secondary-button[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .hig-dialog-buttons-container[_ngcontent-%COMP%] .hig-dialog-secondary-button[_ngcontent-%COMP%]{margin-right:8px}html[dir=ltr][_ngcontent-%COMP%] .hig-dialog-buttons-container[_ngcontent-%COMP%] .hig-dialog-secondary-button[_ngcontent-%COMP%]{--dummy4: 0;margin-right:8px}.isRtl[_nghost-%COMP%] .hig-dialog-buttons-container[_ngcontent-%COMP%] .hig-dialog-secondary-button[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .hig-dialog-buttons-container[_ngcontent-%COMP%] .hig-dialog-secondary-button[_ngcontent-%COMP%]{margin-left:8px}html[dir=rtl][_ngcontent-%COMP%] .hig-dialog-buttons-container[_ngcontent-%COMP%] .hig-dialog-secondary-button[_ngcontent-%COMP%]{--dummy4: 0;margin-left:8px}.hig-dialog-buttons-container[_ngcontent-%COMP%] .spinner-overlay[_ngcontent-%COMP%]{position:absolute;inset:0;display:flex;z-index:1;background:transparent}@media (max-width: 599.98px) and (orientation: portrait),(max-width: 959.98px) and (orientation: landscape){.hig-dialog-buttons-container[_ngcontent-%COMP%]{flex-flow:row wrap-reverse}}.hig-dialog-spinner-container[_ngcontent-%COMP%]{display:flex;align-items:center}.hig-dialog-spinner-content-start[_ngcontent-%COMP%]{margin-top:10px;place-content:start}.no-header-text.no-spinner[_ngcontent-%COMP%] .hig-dialog-spinner-content-start[_ngcontent-%COMP%]{margin-top:0}.hig-dialog-spinner-content-center[_ngcontent-%COMP%]{place-content:center}.no-body-text.has-icon[_ngcontent-%COMP%] .header-text[_ngcontent-%COMP%], .no-header-text.no-spinner.has-icon[_ngcontent-%COMP%] .body-text[_ngcontent-%COMP%]{display:flex;height:32px;align-items:center}.hig-dialog-icon[_ngcontent-%COMP%]{font-size:32px;color:#595959}.hig-radio-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin-top:16px}.hig-radio-label-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center}.hig-radio-option-image[_ngcontent-%COMP%]{height:24px}.isLtr[_nghost-%COMP%] .hig-radio-option-image[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .hig-radio-option-image[_ngcontent-%COMP%]{margin-right:16px}html[dir=ltr][_ngcontent-%COMP%] .hig-radio-option-image[_ngcontent-%COMP%]{--dummy4: 0;margin-right:16px}.isRtl[_nghost-%COMP%] .hig-radio-option-image[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .hig-radio-option-image[_ngcontent-%COMP%]{margin-left:16px}html[dir=rtl][_ngcontent-%COMP%] .hig-radio-option-image[_ngcontent-%COMP%]{--dummy4: 0;margin-left:16px}.hig-radio-option-label[_ngcontent-%COMP%]{line-height:24px;font-size:16px}.hig-dialog-image-container[_ngcontent-%COMP%]{width:100%;padding-top:24px}.hig-dialog-image-container[_ngcontent-%COMP%] .hig-dialog-image-shortcut-container[_ngcontent-%COMP%]{width:154px}.isLtr[_nghost-%COMP%] .hig-dialog-image-container[_ngcontent-%COMP%] .hig-dialog-image-shortcut-container[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .hig-dialog-image-container[_ngcontent-%COMP%] .hig-dialog-image-shortcut-container[_ngcontent-%COMP%]{padding-right:24px}html[dir=ltr][_ngcontent-%COMP%] .hig-dialog-image-container[_ngcontent-%COMP%] .hig-dialog-image-shortcut-container[_ngcontent-%COMP%]{--dummy2: 0;padding-right:24px}.isRtl[_nghost-%COMP%] .hig-dialog-image-container[_ngcontent-%COMP%] .hig-dialog-image-shortcut-container[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .hig-dialog-image-container[_ngcontent-%COMP%] .hig-dialog-image-shortcut-container[_ngcontent-%COMP%]{padding-left:24px}html[dir=rtl][_ngcontent-%COMP%] .hig-dialog-image-container[_ngcontent-%COMP%] .hig-dialog-image-shortcut-container[_ngcontent-%COMP%]{--dummy2: 0;padding-left:24px}.hig-dialog-image-container[_ngcontent-%COMP%] .hig-dialog-image-shortcut-link[_ngcontent-%COMP%]{position:relative;font-size:0;line-height:0;color:transparent;cursor:grab;cursor:-webkit-grab}.hig-dialog-image-container[_ngcontent-%COMP%] .hig-dialog-image-shortcut-link[_ngcontent-%COMP%]:active{cursor:grabbing;cursor:-webkit-grabbing}.hig-dialog-image-container[_ngcontent-%COMP%] .hig-dialog-image[_ngcontent-%COMP%]{width:130px;height:130px}.hig-dialog-image-container[_ngcontent-%COMP%] .hig-dialog-image-caption[_ngcontent-%COMP%]{text-align:center;margin:12px 0 0;color:#ffffffb3}.hig-dialog-image-container[_ngcontent-%COMP%] .hig-dialog-image-description[_ngcontent-%COMP%]{margin:0}.hig-dialog-error-text[_ngcontent-%COMP%]{margin:24px 0 0}.hig-description-list-container[_ngcontent-%COMP%]{margin-top:16px}.hig-description-list-container[_ngcontent-%COMP%] .hig-description-list-item[_ngcontent-%COMP%]{display:flex}.hig-description-list-container[_ngcontent-%COMP%] .hig-description-icon[_ngcontent-%COMP%]{width:14px;height:14px;margin-top:2px;flex-shrink:0}.isLtr[_nghost-%COMP%] .hig-description-list-container[_ngcontent-%COMP%] .hig-description-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .hig-description-list-container[_ngcontent-%COMP%] .hig-description-icon[_ngcontent-%COMP%]{margin-right:20px}html[dir=ltr][_ngcontent-%COMP%] .hig-description-list-container[_ngcontent-%COMP%] .hig-description-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-right:20px}.isRtl[_nghost-%COMP%] .hig-description-list-container[_ngcontent-%COMP%] .hig-description-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .hig-description-list-container[_ngcontent-%COMP%] .hig-description-icon[_ngcontent-%COMP%]{margin-left:20px}html[dir=rtl][_ngcontent-%COMP%] .hig-description-list-container[_ngcontent-%COMP%] .hig-description-icon[_ngcontent-%COMP%]{--dummy4: 0;margin-left:20px}"]})}}return ut})();var Vt=s(5428),Qt=s(29824),Jt=s(77970),Zt=s(53484),nn=s(13186),Xt=s(62141),lt=s(12949);function bn(ut,Pt,Re,rn){var xi,an=arguments.length,Hn=an<3?Pt:null===rn?rn=Object.getOwnPropertyDescriptor(Pt,Re):rn;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)Hn=Reflect.decorate(ut,Pt,Re,rn);else for(var yr=ut.length-1;yr>=0;yr--)(xi=ut[yr])&&(Hn=(an<3?xi(Hn):an>3?xi(Pt,Re,Hn):xi(Pt,Re))||Hn);return an>3&&Hn&&Object.defineProperty(Pt,Re,Hn),Hn}"function"==typeof SuppressedError&&SuppressedError;const Qn=(ut,Pt)=>"method"===Pt.kind&&Pt.descriptor&&!("value"in Pt.descriptor)?{...Pt,finisher(Re){Re.createProperty(Pt.key,ut)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:Pt.key,initializer(){"function"==typeof Pt.initializer&&(this[Pt.key]=Pt.initializer.call(this))},finisher(Re){Re.createProperty(Pt.key,ut)}};function fi(ut){return(Pt,Re)=>void 0!==Re?((ut,Pt,Re)=>{Pt.constructor.createProperty(Re,ut)})(ut,Pt,Re):Qn(ut,Pt)}window;var Sr=s(70650);const ds=window,bs=ds.ShadowRoot&&(void 0===ds.ShadyCSS||ds.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,An=Symbol(),zn=new WeakMap;class Jn{constructor(Pt,Re,rn){if(this._$cssResult$=!0,rn!==An)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=Pt,this.t=Re}get styleSheet(){let Pt=this.o;const Re=this.t;if(bs&&void 0===Pt){const rn=void 0!==Re&&1===Re.length;rn&&(Pt=zn.get(Re)),void 0===Pt&&((this.o=Pt=new CSSStyleSheet).replaceSync(this.cssText),rn&&zn.set(Re,Pt))}return Pt}toString(){return this.cssText}}const mr=bs?ut=>ut:ut=>ut instanceof CSSStyleSheet?(Pt=>{let Re="";for(const rn of Pt.cssRules)Re+=rn.cssText;return(ut=>new Jn("string"==typeof ut?ut:ut+"",void 0,An))(Re)})(ut):ut;var qr;const ms=window,us=ms.trustedTypes,Qs=us?us.emptyScript:"",ks=ms.reactiveElementPolyfillSupport,Ar={toAttribute(ut,Pt){switch(Pt){case Boolean:ut=ut?Qs:null;break;case Object:case Array:ut=null==ut?ut:JSON.stringify(ut)}return ut},fromAttribute(ut,Pt){let Re=ut;switch(Pt){case Boolean:Re=null!==ut;break;case Number:Re=null===ut?null:Number(ut);break;case Object:case Array:try{Re=JSON.parse(ut)}catch{Re=null}}return Re}},Ur=(ut,Pt)=>Pt!==ut&&(Pt==Pt||ut==ut),vs={attribute:!0,type:String,converter:Ar,reflect:!1,hasChanged:Ur},fo="finalized";class Zo extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(Pt){var Re;this.finalize(),(null!==(Re=this.h)&&void 0!==Re?Re:this.h=[]).push(Pt)}static get observedAttributes(){this.finalize();const Pt=[];return this.elementProperties.forEach((Re,rn)=>{const an=this._$Ep(rn,Re);void 0!==an&&(this._$Ev.set(an,rn),Pt.push(an))}),Pt}static createProperty(Pt,Re=vs){if(Re.state&&(Re.attribute=!1),this.finalize(),this.elementProperties.set(Pt,Re),!Re.noAccessor&&!this.prototype.hasOwnProperty(Pt)){const rn="symbol"==typeof Pt?Symbol():"__"+Pt,an=this.getPropertyDescriptor(Pt,rn,Re);void 0!==an&&Object.defineProperty(this.prototype,Pt,an)}}static getPropertyDescriptor(Pt,Re,rn){return{get(){return this[Re]},set(an){const Hn=this[Pt];this[Re]=an,this.requestUpdate(Pt,Hn,rn)},configurable:!0,enumerable:!0}}static getPropertyOptions(Pt){return this.elementProperties.get(Pt)||vs}static finalize(){if(this.hasOwnProperty(fo))return!1;this[fo]=!0;const Pt=Object.getPrototypeOf(this);if(Pt.finalize(),void 0!==Pt.h&&(this.h=[...Pt.h]),this.elementProperties=new Map(Pt.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const Re=this.properties,rn=[...Object.getOwnPropertyNames(Re),...Object.getOwnPropertySymbols(Re)];for(const an of rn)this.createProperty(an,Re[an])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(Pt){const Re=[];if(Array.isArray(Pt)){const rn=new Set(Pt.flat(1/0).reverse());for(const an of rn)Re.unshift(mr(an))}else void 0!==Pt&&Re.push(mr(Pt));return Re}static _$Ep(Pt,Re){const rn=Re.attribute;return!1===rn?void 0:"string"==typeof rn?rn:"string"==typeof Pt?Pt.toLowerCase():void 0}_$Eu(){var Pt;this._$E_=new Promise(Re=>this.enableUpdating=Re),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(Pt=this.constructor.h)||void 0===Pt||Pt.forEach(Re=>Re(this))}addController(Pt){var Re,rn;(null!==(Re=this._$ES)&&void 0!==Re?Re:this._$ES=[]).push(Pt),void 0!==this.renderRoot&&this.isConnected&&(null===(rn=Pt.hostConnected)||void 0===rn||rn.call(Pt))}removeController(Pt){var Re;null===(Re=this._$ES)||void 0===Re||Re.splice(this._$ES.indexOf(Pt)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((Pt,Re)=>{this.hasOwnProperty(Re)&&(this._$Ei.set(Re,this[Re]),delete this[Re])})}createRenderRoot(){var Pt;const Re=null!==(Pt=this.shadowRoot)&&void 0!==Pt?Pt:this.attachShadow(this.constructor.shadowRootOptions);return((ut,Pt)=>{bs?ut.adoptedStyleSheets=Pt.map(Re=>Re instanceof CSSStyleSheet?Re:Re.styleSheet):Pt.forEach(Re=>{const rn=document.createElement("style"),an=ds.litNonce;void 0!==an&&rn.setAttribute("nonce",an),rn.textContent=Re.cssText,ut.appendChild(rn)})})(Re,this.constructor.elementStyles),Re}connectedCallback(){var Pt;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(Pt=this._$ES)||void 0===Pt||Pt.forEach(Re=>{var rn;return null===(rn=Re.hostConnected)||void 0===rn?void 0:rn.call(Re)})}enableUpdating(Pt){}disconnectedCallback(){var Pt;null===(Pt=this._$ES)||void 0===Pt||Pt.forEach(Re=>{var rn;return null===(rn=Re.hostDisconnected)||void 0===rn?void 0:rn.call(Re)})}attributeChangedCallback(Pt,Re,rn){this._$AK(Pt,rn)}_$EO(Pt,Re,rn=vs){var an;const Hn=this.constructor._$Ep(Pt,rn);if(void 0!==Hn&&!0===rn.reflect){const xi=(void 0!==(null===(an=rn.converter)||void 0===an?void 0:an.toAttribute)?rn.converter:Ar).toAttribute(Re,rn.type);this._$El=Pt,null==xi?this.removeAttribute(Hn):this.setAttribute(Hn,xi),this._$El=null}}_$AK(Pt,Re){var rn;const an=this.constructor,Hn=an._$Ev.get(Pt);if(void 0!==Hn&&this._$El!==Hn){const xi=an.getPropertyOptions(Hn),yr="function"==typeof xi.converter?{fromAttribute:xi.converter}:void 0!==(null===(rn=xi.converter)||void 0===rn?void 0:rn.fromAttribute)?xi.converter:Ar;this._$El=Hn,this[Hn]=yr.fromAttribute(Re,xi.type),this._$El=null}}requestUpdate(Pt,Re,rn){let an=!0;void 0!==Pt&&(((rn=rn||this.constructor.getPropertyOptions(Pt)).hasChanged||Ur)(this[Pt],Re)?(this._$AL.has(Pt)||this._$AL.set(Pt,Re),!0===rn.reflect&&this._$El!==Pt&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(Pt,rn))):an=!1),!this.isUpdatePending&&an&&(this._$E_=this._$Ej())}_$Ej(){var Pt=this;return(0,Sr.A)(function*(){Pt.isUpdatePending=!0;try{yield Pt._$E_}catch(rn){Promise.reject(rn)}const Re=Pt.scheduleUpdate();return null!=Re&&(yield Re),!Pt.isUpdatePending})()}scheduleUpdate(){return this.performUpdate()}performUpdate(){var Pt;if(!this.isUpdatePending)return;this._$Ei&&(this._$Ei.forEach((an,Hn)=>this[Hn]=an),this._$Ei=void 0);let Re=!1;const rn=this._$AL;try{Re=this.shouldUpdate(rn),Re?(this.willUpdate(rn),null===(Pt=this._$ES)||void 0===Pt||Pt.forEach(an=>{var Hn;return null===(Hn=an.hostUpdate)||void 0===Hn?void 0:Hn.call(an)}),this.update(rn)):this._$Ek()}catch(an){throw Re=!1,this._$Ek(),an}Re&&this._$AE(rn)}willUpdate(Pt){}_$AE(Pt){var Re;null===(Re=this._$ES)||void 0===Re||Re.forEach(rn=>{var an;return null===(an=rn.hostUpdated)||void 0===an?void 0:an.call(rn)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(Pt)),this.updated(Pt)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(Pt){return!0}update(Pt){void 0!==this._$EC&&(this._$EC.forEach((Re,rn)=>this._$EO(rn,this[rn],Re)),this._$EC=void 0),this._$Ek()}updated(Pt){}firstUpdated(Pt){}}var vo;Zo[fo]=!0,Zo.elementProperties=new Map,Zo.elementStyles=[],Zo.shadowRootOptions={mode:"open"},ks?.({ReactiveElement:Zo}),(null!==(qr=ms.reactiveElementVersions)&&void 0!==qr?qr:ms.reactiveElementVersions=[]).push("1.6.3");const Pa=window,fa=Pa.trustedTypes,fs=fa?fa.createPolicy("lit-html",{createHTML:ut=>ut}):void 0,Io="$lit$",Fo=`lit$${(Math.random()+"").slice(9)}$`,qs="?"+Fo,So=`<${qs}>`,ta=document,Go=()=>ta.createComment(""),Mo=ut=>null===ut||"object"!=typeof ut&&"function"!=typeof ut,As=Array.isArray,Rr="[ \t\n\f\r]",pa=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,nl=/-->/g,Ha=/>/g,bo=RegExp(`>|${Rr}(?:([^\\s"'>=/]+)(${Rr}*=${Rr}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),Xa=/'/g,Es=/"/g,eo=/^(?:script|style|textarea|title)$/i,Ks=ut=>(Pt,...Re)=>({_$litType$:ut,strings:Pt,values:Re}),la=(Ks(1),Ks(2),Symbol.for("lit-noChange")),wo=Symbol.for("lit-nothing"),na=new WeakMap,Ro=ta.createTreeWalker(ta,129,null,!1);function ja(ut,Pt){if(!Array.isArray(ut)||!ut.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==fs?fs.createHTML(Pt):Pt}class Ho{constructor({strings:Pt,_$litType$:Re},rn){let an;this.parts=[];let Hn=0,xi=0;const yr=Pt.length-1,ts=this.parts,[gr,Cr]=((ut,Pt)=>{const Re=ut.length-1,rn=[];let an,Hn=2===Pt?"<svg>":"",xi=pa;for(let yr=0;yr<Re;yr++){const ts=ut[yr];let gr,Cr,os=-1,Xo=0;for(;Xo<ts.length&&(xi.lastIndex=Xo,Cr=xi.exec(ts),null!==Cr);)Xo=xi.lastIndex,xi===pa?"!--"===Cr[1]?xi=nl:void 0!==Cr[1]?xi=Ha:void 0!==Cr[2]?(eo.test(Cr[2])&&(an=RegExp("</"+Cr[2],"g")),xi=bo):void 0!==Cr[3]&&(xi=bo):xi===bo?">"===Cr[0]?(xi=an??pa,os=-1):void 0===Cr[1]?os=-2:(os=xi.lastIndex-Cr[2].length,gr=Cr[1],xi=void 0===Cr[3]?bo:'"'===Cr[3]?Es:Xa):xi===Es||xi===Xa?xi=bo:xi===nl||xi===Ha?xi=pa:(xi=bo,an=void 0);const Ps=xi===bo&&ut[yr+1].startsWith("/>")?" ":"";Hn+=xi===pa?ts+So:os>=0?(rn.push(gr),ts.slice(0,os)+Io+ts.slice(os)+Fo+Ps):ts+Fo+(-2===os?(rn.push(void 0),yr):Ps)}return[ja(ut,Hn+(ut[Re]||"<?>")+(2===Pt?"</svg>":"")),rn]})(Pt,Re);if(this.el=Ho.createElement(gr,rn),Ro.currentNode=this.el.content,2===Re){const os=this.el.content,Xo=os.firstChild;Xo.remove(),os.append(...Xo.childNodes)}for(;null!==(an=Ro.nextNode())&&ts.length<yr;){if(1===an.nodeType){if(an.hasAttributes()){const os=[];for(const Xo of an.getAttributeNames())if(Xo.endsWith(Io)||Xo.startsWith(Fo)){const Ps=Cr[xi++];if(os.push(Xo),void 0!==Ps){const sl=an.getAttribute(Ps.toLowerCase()+Io).split(Fo),Aa=/([.?@])?(.*)/.exec(Ps);ts.push({type:1,index:Hn,name:Aa[2],strings:sl,ctor:"."===Aa[1]?_o:"?"===Aa[1]?Ko:"@"===Aa[1]?Jo:so})}else ts.push({type:6,index:Hn})}for(const Xo of os)an.removeAttribute(Xo)}if(eo.test(an.tagName)){const os=an.textContent.split(Fo),Xo=os.length-1;if(Xo>0){an.textContent=fa?fa.emptyScript:"";for(let Ps=0;Ps<Xo;Ps++)an.append(os[Ps],Go()),Ro.nextNode(),ts.push({type:2,index:++Hn});an.append(os[Xo],Go())}}}else if(8===an.nodeType)if(an.data===qs)ts.push({type:2,index:Hn});else{let os=-1;for(;-1!==(os=an.data.indexOf(Fo,os+1));)ts.push({type:7,index:Hn}),os+=Fo.length-1}Hn++}}static createElement(Pt,Re){const rn=ta.createElement("template");return rn.innerHTML=Pt,rn}}function no(ut,Pt,Re=ut,rn){var an,Hn,xi,yr;if(Pt===la)return Pt;let ts=void 0!==rn?null===(an=Re._$Co)||void 0===an?void 0:an[rn]:Re._$Cl;const gr=Mo(Pt)?void 0:Pt._$litDirective$;return ts?.constructor!==gr&&(null===(Hn=ts?._$AO)||void 0===Hn||Hn.call(ts,!1),void 0===gr?ts=void 0:(ts=new gr(ut),ts._$AT(ut,Re,rn)),void 0!==rn?(null!==(xi=(yr=Re)._$Co)&&void 0!==xi?xi:yr._$Co=[])[rn]=ts:Re._$Cl=ts),void 0!==ts&&(Pt=no(ut,ts._$AS(ut,Pt.values),ts,rn)),Pt}class Fs{constructor(Pt,Re){this._$AV=[],this._$AN=void 0,this._$AD=Pt,this._$AM=Re}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(Pt){var Re;const{el:{content:rn},parts:an}=this._$AD,Hn=(null!==(Re=Pt?.creationScope)&&void 0!==Re?Re:ta).importNode(rn,!0);Ro.currentNode=Hn;let xi=Ro.nextNode(),yr=0,ts=0,gr=an[0];for(;void 0!==gr;){if(yr===gr.index){let Cr;2===gr.type?Cr=new Co(xi,xi.nextSibling,this,Pt):1===gr.type?Cr=new gr.ctor(xi,gr.name,gr.strings,this,Pt):6===gr.type&&(Cr=new ka(xi,this,Pt)),this._$AV.push(Cr),gr=an[++ts]}yr!==gr?.index&&(xi=Ro.nextNode(),yr++)}return Ro.currentNode=ta,Hn}v(Pt){let Re=0;for(const rn of this._$AV)void 0!==rn&&(void 0!==rn.strings?(rn._$AI(Pt,rn,Re),Re+=rn.strings.length-2):rn._$AI(Pt[Re])),Re++}}class Co{constructor(Pt,Re,rn,an){var Hn;this.type=2,this._$AH=wo,this._$AN=void 0,this._$AA=Pt,this._$AB=Re,this._$AM=rn,this.options=an,this._$Cp=null===(Hn=an?.isConnected)||void 0===Hn||Hn}get _$AU(){var Pt,Re;return null!==(Re=null===(Pt=this._$AM)||void 0===Pt?void 0:Pt._$AU)&&void 0!==Re?Re:this._$Cp}get parentNode(){let Pt=this._$AA.parentNode;const Re=this._$AM;return void 0!==Re&&11===Pt?.nodeType&&(Pt=Re.parentNode),Pt}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(Pt,Re=this){Pt=no(this,Pt,Re),Mo(Pt)?Pt===wo||null==Pt||""===Pt?(this._$AH!==wo&&this._$AR(),this._$AH=wo):Pt!==this._$AH&&Pt!==la&&this._(Pt):void 0!==Pt._$litType$?this.g(Pt):void 0!==Pt.nodeType?this.$(Pt):(ut=>As(ut)||"function"==typeof ut?.[Symbol.iterator])(Pt)?this.T(Pt):this._(Pt)}k(Pt){return this._$AA.parentNode.insertBefore(Pt,this._$AB)}$(Pt){this._$AH!==Pt&&(this._$AR(),this._$AH=this.k(Pt))}_(Pt){this._$AH!==wo&&Mo(this._$AH)?this._$AA.nextSibling.data=Pt:this.$(ta.createTextNode(Pt)),this._$AH=Pt}g(Pt){var Re;const{values:rn,_$litType$:an}=Pt,Hn="number"==typeof an?this._$AC(Pt):(void 0===an.el&&(an.el=Ho.createElement(ja(an.h,an.h[0]),this.options)),an);if((null===(Re=this._$AH)||void 0===Re?void 0:Re._$AD)===Hn)this._$AH.v(rn);else{const xi=new Fs(Hn,this),yr=xi.u(this.options);xi.v(rn),this.$(yr),this._$AH=xi}}_$AC(Pt){let Re=na.get(Pt.strings);return void 0===Re&&na.set(Pt.strings,Re=new Ho(Pt)),Re}T(Pt){As(this._$AH)||(this._$AH=[],this._$AR());const Re=this._$AH;let rn,an=0;for(const Hn of Pt)an===Re.length?Re.push(rn=new Co(this.k(Go()),this.k(Go()),this,this.options)):rn=Re[an],rn._$AI(Hn),an++;an<Re.length&&(this._$AR(rn&&rn._$AB.nextSibling,an),Re.length=an)}_$AR(Pt=this._$AA.nextSibling,Re){var rn;for(null===(rn=this._$AP)||void 0===rn||rn.call(this,!1,!0,Re);Pt&&Pt!==this._$AB;){const an=Pt.nextSibling;Pt.remove(),Pt=an}}setConnected(Pt){var Re;void 0===this._$AM&&(this._$Cp=Pt,null===(Re=this._$AP)||void 0===Re||Re.call(this,Pt))}}class so{constructor(Pt,Re,rn,an,Hn){this.type=1,this._$AH=wo,this._$AN=void 0,this.element=Pt,this.name=Re,this._$AM=an,this.options=Hn,rn.length>2||""!==rn[0]||""!==rn[1]?(this._$AH=Array(rn.length-1).fill(new String),this.strings=rn):this._$AH=wo}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(Pt,Re=this,rn,an){const Hn=this.strings;let xi=!1;if(void 0===Hn)Pt=no(this,Pt,Re,0),xi=!Mo(Pt)||Pt!==this._$AH&&Pt!==la,xi&&(this._$AH=Pt);else{const yr=Pt;let ts,gr;for(Pt=Hn[0],ts=0;ts<Hn.length-1;ts++)gr=no(this,yr[rn+ts],Re,ts),gr===la&&(gr=this._$AH[ts]),xi||(xi=!Mo(gr)||gr!==this._$AH[ts]),gr===wo?Pt=wo:Pt!==wo&&(Pt+=(gr??"")+Hn[ts+1]),this._$AH[ts]=gr}xi&&!an&&this.j(Pt)}j(Pt){Pt===wo?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,Pt??"")}}class _o extends so{constructor(){super(...arguments),this.type=3}j(Pt){this.element[this.name]=Pt===wo?void 0:Pt}}const La=fa?fa.emptyScript:"";class Ko extends so{constructor(){super(...arguments),this.type=4}j(Pt){Pt&&Pt!==wo?this.element.setAttribute(this.name,La):this.element.removeAttribute(this.name)}}class Jo extends so{constructor(Pt,Re,rn,an,Hn){super(Pt,Re,rn,an,Hn),this.type=5}_$AI(Pt,Re=this){var rn;if((Pt=null!==(rn=no(this,Pt,Re,0))&&void 0!==rn?rn:wo)===la)return;const an=this._$AH,Hn=Pt===wo&&an!==wo||Pt.capture!==an.capture||Pt.once!==an.once||Pt.passive!==an.passive,xi=Pt!==wo&&(an===wo||Hn);Hn&&this.element.removeEventListener(this.name,this,an),xi&&this.element.addEventListener(this.name,this,Pt),this._$AH=Pt}handleEvent(Pt){var Re,rn;"function"==typeof this._$AH?this._$AH.call(null!==(rn=null===(Re=this.options)||void 0===Re?void 0:Re.host)&&void 0!==rn?rn:this.element,Pt):this._$AH.handleEvent(Pt)}}class ka{constructor(Pt,Re,rn){this.element=Pt,this.type=6,this._$AN=void 0,this._$AM=Re,this.options=rn}get _$AU(){return this._$AM._$AU}_$AI(Pt){no(this,Pt)}}const co=Pa.litHtmlPolyfillSupport;var $s,Sn;co?.(Ho,Co),(null!==(vo=Pa.litHtmlVersions)&&void 0!==vo?vo:Pa.litHtmlVersions=[]).push("2.8.0");class uo extends Zo{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var Pt,Re;const rn=super.createRenderRoot();return null!==(Pt=(Re=this.renderOptions).renderBefore)&&void 0!==Pt||(Re.renderBefore=rn.firstChild),rn}update(Pt){const Re=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(Pt),this._$Do=((ut,Pt,Re)=>{var rn,an;const Hn=null!==(rn=Re?.renderBefore)&&void 0!==rn?rn:Pt;let xi=Hn._$litPart$;if(void 0===xi){const yr=null!==(an=Re?.renderBefore)&&void 0!==an?an:null;Hn._$litPart$=xi=new Co(Pt.insertBefore(Go(),yr),yr,void 0,Re??{})}return xi._$AI(ut),xi})(Re,this.renderRoot,this.renderOptions)}connectedCallback(){var Pt;super.connectedCallback(),null===(Pt=this._$Do)||void 0===Pt||Pt.setConnected(!0)}disconnectedCallback(){var Pt;super.disconnectedCallback(),null===(Pt=this._$Do)||void 0===Pt||Pt.setConnected(!1)}render(){return la}}uo.finalized=!0,uo._$litElement$=!0,null===($s=globalThis.litElementHydrateSupport)||void 0===$s||$s.call(globalThis,{LitElement:uo});const $o=globalThis.litElementPolyfillSupport;$o?.({LitElement:uo}),(null!==(Sn=globalThis.litElementVersions)&&void 0!==Sn?Sn:globalThis.litElementVersions=[]).push("3.3.3");class Xs extends uo{constructor(){super(...arguments),this.inset=!1,this.insetStart=!1,this.insetEnd=!1}}bn([fi({type:Boolean,reflect:!0})],Xs.prototype,"inset",void 0),bn([fi({type:Boolean,reflect:!0,attribute:"inset-start"})],Xs.prototype,"insetStart",void 0),bn([fi({type:Boolean,reflect:!0,attribute:"inset-end"})],Xs.prototype,"insetEnd",void 0);const _a=((ut,...Pt)=>{const Re=1===ut.length?ut[0]:Pt.reduce((rn,an,Hn)=>rn+(xi=>{if(!0===xi._$cssResult$)return xi.cssText;if("number"==typeof xi)return xi;throw Error("Value passed to 'css' function must be a 'css' function result: "+xi+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(an)+ut[Hn+1],ut[0]);return new Jn(Re,ut,An)})`:host{--_color: var(--md-divider-color, var(--md-sys-color-outline-variant, #cac4d0));--_thickness: var(--md-divider-thickness, 1px);box-sizing:border-box;color:var(--_color);display:flex;height:var(--_thickness);width:100%}:host([inset]),:host([inset-start]){padding-inline-start:16px}:host([inset]),:host([inset-end]){padding-inline-end:16px}:host::before{background:currentColor;content:"";height:100%;width:100%}@media(forced-colors: active){:host::before{background:CanvasText}}/*# sourceMappingURL=divider-styles.css.map */
`;let zi=class extends Xs{};var ut;zi.styles=[_a],zi=bn([(ut="md-divider",Pt=>{return"function"==typeof Pt?(rn=Pt,customElements.define(ut,rn),rn):((Re,rn)=>{const{kind:an,elements:Hn}=rn;return{kind:an,elements:Hn,finisher(xi){customElements.define(Re,xi)}}})(ut,Pt);var rn})],zi);var Ae=s(44186),jo=s(20288);const fl=[nn.Lq,E.wG,Xt.jm,v.YN,B.D6,jo.PO,P.m_,R.Wk,T.g7,M.vF,S.hM,lt.Ve,Ae.uc,U.Pd];let Wa=(()=>{class ut{static{this.\u0275fac=function(rn){return new(rn||ut)}}static{this.\u0275mod=h.$C({type:ut})}static{this.\u0275inj=h.G2t({imports:[fl,nn.Lq,E.wG,Xt.jm,v.YN,B.D6,jo.PO,P.m_,R.Wk,T.g7,M.vF,S.hM,lt.Ve,Ae.uc,U.Pd]})}}return ut})();var Ao=s(80598),ps=s(80282),ca=s(33668),al=s(33420),ga=s(69996),on=s(13906),Dt=s(21684),Mt=s(92602);const Dn=["selectorCardElements"],qn=ut=>({visibility:ut});function Yr(ut,Pt){if(1&ut&&(h.j41(0,"span",8),h.EFF(1),h.nI1(2,"translate"),h.k0s()),2&ut){const Re=h.XpG();h.R7$(),h.JRh(h.i5U(2,1,Re.data.subtitle.text,null==Re.data.subtitle?null:Re.data.subtitle.placeholders))}}function _s(ut,Pt){1&ut&&h.eu8(0)}function Do(ut,Pt){if(1&ut&&h.nrm(0,"img",16),2&ut){const Re=h.XpG(2);h.Y8G("src",Re.choiceChip.choiceChipIcon.text,h.B4B)}}function Ws(ut,Pt){if(1&ut&&h.nrm(0,"qrcode",25),2&ut){const Re=h.XpG().$implicit,rn=h.XpG(3);h.Y8G("qrdata",Re.stepImage.url)("width",rn.qrCodeWidth)("errorCorrectionLevel","M")}}function Bi(ut,Pt){if(1&ut&&h.nrm(0,"mat-icon",26),2&ut){const Re=h.XpG().$implicit;h.Y8G("svgIcon",Re.stepImage.matIcon)}}function Di(ut,Pt){if(1&ut&&(h.j41(0,"div",19)(1,"div",20),h.DNE(2,Ws,1,3,"qrcode",21)(3,Bi,1,1,"mat-icon",22),h.k0s(),h.j41(4,"span",23),h.EFF(5),h.nI1(6,"translate"),h.k0s(),h.j41(7,"span",24),h.EFF(8),h.nI1(9,"translate"),h.k0s()()),2&ut){const Re=Pt.$implicit;h.R7$(2),h.Y8G("ngIf",null==Re||null==Re.stepImage?null:Re.stepImage.url),h.R7$(),h.Y8G("ngIf",null==Re||null==Re.stepImage?null:Re.stepImage.matIcon),h.R7$(2),h.JRh(h.bMT(6,4,Re.stepTitle.text)),h.R7$(3),h.JRh(h.bMT(9,6,Re.stepDescription.text))}}function Ea(ut,Pt){if(1&ut&&(h.j41(0,"div",17),h.DNE(1,Di,10,8,"div",18),h.k0s()),2&ut){const Re=h.XpG(2);h.R7$(),h.Y8G("ngForOf",Re.choiceChip.choiceChipContent)}}function vl(ut,Pt){if(1&ut){const Re=h.RV6();h.j41(0,"button",27),h.bIt("click",function(){const an=h.eBV(Re).$implicit,Hn=h.XpG(2);return h.Njj(Hn.onButtonClick(an))}),h.EFF(1),h.nI1(2,"translate"),h.k0s()}if(2&ut){const Re=Pt.$implicit;h.Y8G("disabled",null==Re?null:Re.isDisabled),h.R7$(),h.SpI(" ",h.bMT(2,2,Re.text)," ")}}function hs(ut,Pt){if(1&ut&&(h.j41(0,"span",28),h.EFF(1),h.nI1(2,"translate"),h.k0s()),2&ut){const Re=h.XpG(2);h.R7$(),h.JRh(h.bMT(2,1,Re.choiceChip.choiceChipStatusText.title.text))}}function Is(ut,Pt){if(1&ut&&(h.j41(0,"div",9)(1,"div",10),h.DNE(2,Do,1,1,"img",11),h.j41(3,"span"),h.EFF(4),h.nI1(5,"translate"),h.k0s()(),h.DNE(6,Ea,2,1,"div",12),h.j41(7,"div",13),h.DNE(8,vl,3,4,"button",14),h.k0s(),h.DNE(9,hs,3,3,"span",15),h.k0s()),2&ut){const Re=h.XpG();h.R7$(2),h.Y8G("ngIf",null==Re.choiceChip.choiceChipIcon?null:Re.choiceChip.choiceChipIcon.text),h.R7$(2),h.JRh(Re.choiceChip.choiceChipTitle.translated?Re.choiceChip.choiceChipTitle.text:h.bMT(5,5,Re.choiceChip.choiceChipTitle.text)),h.R7$(2),h.Y8G("ngIf",Re.choiceChip.choiceChipContent),h.R7$(2),h.Y8G("ngForOf",null==Re.choiceChip?null:Re.choiceChip.choiceChipButtons),h.R7$(),h.Y8G("ngIf",null==Re.choiceChip||null==Re.choiceChip.choiceChipStatusText?null:Re.choiceChip.choiceChipStatusText.title)}}function da(ut,Pt){if(1&ut&&(h.j41(0,"span",41),h.EFF(1),h.nI1(2,"translate"),h.k0s()),2&ut){const Re=h.XpG().$implicit;h.R7$(),h.JRh(h.bMT(2,1,Re.secondaryInfo.text))}}function jr(ut,Pt){if(1&ut&&h.nrm(0,"mat-icon",42),2&ut){const Re=h.XpG().$implicit;h.Y8G("svgIcon",Re.secondaryInfo.matIcon)}}function ia(ut,Pt){if(1&ut&&(h.j41(0,"span",43),h.EFF(1),h.nI1(2,"translate"),h.k0s()),2&ut){const Re=h.XpG().$implicit;h.R7$(),h.JRh(h.bMT(2,1,Re.selectorCardStatusText.text))}}function Oo(ut,Pt){if(1&ut){const Re=h.RV6();h.j41(0,"button",46),h.bIt("click",function(){const an=h.eBV(Re).$implicit,Hn=h.XpG(4);return h.Njj(Hn.onButtonClick(an))}),h.EFF(1),h.nI1(2,"translate"),h.k0s()}if(2&ut){const Re=Pt.$implicit;h.Y8G("disabled",null==Re?null:Re.isDisabled),h.R7$(),h.SpI(" ",h.bMT(2,2,Re.text)," ")}}function ra(ut,Pt){if(1&ut&&(h.j41(0,"div",44),h.DNE(1,Oo,3,4,"button",45),h.k0s()),2&ut){const Re=h.XpG().$implicit;h.R7$(),h.Y8G("ngForOf",Re.selectorCardButtons)}}function $n(ut,Pt){if(1&ut){const Re=h.RV6();h.j41(0,"div",31,2),h.bIt("focus",function(){const an=h.eBV(Re).index,Hn=h.XpG(2);return h.Njj(Hn.expandSelectorCard(an))})("mousemove",function(){const an=h.eBV(Re).index,Hn=h.XpG(2);return h.Njj(Hn.expandSelectorCard(an))}),h.j41(2,"div",32),h.nrm(3,"img",33),h.j41(4,"span",34),h.EFF(5),h.k0s()(),h.j41(6,"div",35)(7,"div",36),h.DNE(8,da,3,3,"span",37)(9,jr,1,1,"mat-icon",38),h.k0s(),h.DNE(10,ia,3,3,"span",39),h.k0s(),h.DNE(11,ra,2,1,"div",40),h.k0s()}if(2&ut){const Re=Pt.$implicit,rn=Pt.index,an=h.XpG(2);h.HbH(rn===an.expandedSelectorCardIndex?"expanded":rn>an.expandedSelectorCardIndex?"next-card":"previous-card"),h.R7$(3),h.Y8G("ngStyle",h.eq3(9,qn,null!=Re.selectorCardIcon&&Re.selectorCardIcon.url?"visible":"hidden"))("src",Re.selectorCardIcon.url,h.B4B),h.R7$(2),h.JRh(Re.selectorCardIcon.caption),h.R7$(3),h.Y8G("ngIf",null==Re||null==Re.secondaryInfo?null:Re.secondaryInfo.text),h.R7$(),h.Y8G("ngIf",null==Re||null==Re.secondaryInfo?null:Re.secondaryInfo.matIcon),h.R7$(),h.Y8G("ngIf",null==Re?null:Re.selectorCardStatusText),h.R7$(),h.Y8G("ngIf",null==Re?null:Re.selectorCardButtons)}}function mt(ut,Pt){if(1&ut&&(h.j41(0,"div",29),h.DNE(1,$n,12,11,"div",30),h.k0s()),2&ut){const Re=h.XpG();h.Y8G("isRTL",Re.isRTL),h.R7$(),h.Y8G("ngForOf",Re.data.content)}}let Yt=(()=>{class ut extends ae.D{expandSelectorCard(Re,rn=!0){rn&&Re===this.expandedSelectorCardIndex&&this.selectorCardElements.get(this.expandedSelectorCardIndex)?.nativeElement?.contains(document.activeElement)||(this.expandedSelectorCardIndex=Re,setTimeout(()=>{this.focusManager.focusChild(this.selectorCardElements.get(this.expandedSelectorCardIndex).nativeElement,"initial")}))}constructor(Re,rn,an,Hn,xi,yr){super(rn,an,Re,Hn),this.focusManager=xi,this.localeService=yr,this.buttonClick=new h.bkB,this.qrCodeWidth=200,this.isRTL=!1,this.expandedSelectorCardIndex=0,this.data=Re.get(S.Vh,null),this.isRTL=this.localeService.isRTLLayoutEnabled,this.data.content&&this.setContentData(this.data.content)}onButtonClick(Re){this.buttonClick.emit(Re)}setContentData(Re){Re.choiceChipTitle?this.choiceChip=Re:this.selectorCards=Re}ngAfterViewInit(){this.selectorCardElements.length>0&&this.expandSelectorCard(this.expandedSelectorCardIndex,!1)}static{this.\u0275fac=function(rn){return new(rn||ut)(h.rXU(h.zZn),h.rXU(S.CP,8),h.rXU(M.eN,8),h.rXU(h.SKi),h.rXU(Dt.c),h.rXU(Mt.iH))}}static{this.\u0275cmp=h.VBU({type:ut,selectors:[["nv-hig-fullpage-dialog"]],viewQuery:function(rn,an){if(1&rn&&h.GBs(Dn,5),2&rn){let Hn;h.mGM(Hn=h.lsd())&&(an.selectorCardElements=Hn)}},inputs:{data:"data"},outputs:{buttonClick:"buttonClick"},standalone:!0,features:[h.Vt3,h.aNF],decls:13,vars:11,consts:[["choiceChipTemplate",""],["selectorCardsTemplate",""],["selectorCardElements",""],["nvHigBackgroundImageOverlay","","fxFlex","","fxLayout","column","nvTrapFocus","",1,"fullpage-dialog",3,"imageUrl"],[1,"header","font-sub1"],[1,"title","font-header4"],["class","subtitle font-body2",4,"ngIf"],[4,"ngIf","ngIfThen","ngIfElse"],[1,"subtitle","font-body2"],["fxLayout","column",1,"choice-chip-container"],[1,"choice-chip","font-sub2"],["class","chip-icon",3,"src",4,"ngIf"],["fxLayout","row","class","steps",4,"ngIf"],["nvAutoFocus","","autoFocusPolicy","initial",1,"buttons"],["mat-button","","class","font-button2",3,"disabled","click",4,"ngFor","ngForOf"],["class","status-text font-sub3",4,"ngIf"],[1,"chip-icon",3,"src"],["fxLayout","row",1,"steps"],["fxLayout","column","class","step",4,"ngFor","ngForOf"],["fxLayout","column",1,"step"],[1,"icon-container"],[3,"qrdata","width","errorCorrectionLevel",4,"ngIf"],["class","icon font-body2",3,"svgIcon",4,"ngIf"],[1,"step-title","font-body2"],[1,"step-description","font-body3"],[3,"qrdata","width","errorCorrectionLevel"],[1,"icon","font-body2",3,"svgIcon"],["mat-button","",1,"font-button2",3,"click","disabled"],[1,"status-text","font-sub3"],["nvFast1DSpatialNavigation","","fxLayout","row",1,"selector-cards",3,"isRTL"],["class","selector-card","nvFastSpatialNavigationItem","","tabindex","0",3,"class","focus","mousemove",4,"ngFor","ngForOf"],["nvFastSpatialNavigationItem","","tabindex","0",1,"selector-card",3,"focus","mousemove"],[1,"card-icon"],[1,"icon",3,"ngStyle","src"],[1,"font-body3"],[1,"card-text"],[1,"selector-card-secondary-info"],["class","font-sub3 selector-card-secondary-info-text",4,"ngIf"],["class","selector-card-secondary-info-icon icon font-body2",3,"svgIcon",4,"ngIf"],["class","card-status-text font-body3",4,"ngIf"],["class","card-buttons",4,"ngIf"],[1,"font-sub3","selector-card-secondary-info-text"],[1,"selector-card-secondary-info-icon","icon","font-body2",3,"svgIcon"],[1,"card-status-text","font-body3"],[1,"card-buttons"],["mat-button","","class","font-button2 card-button",3,"disabled","click",4,"ngFor","ngForOf"],["mat-button","",1,"font-button2","card-button",3,"click","disabled"]],template:function(rn,an){if(1&rn&&(h.j41(0,"div",3)(1,"span",4),h.EFF(2),h.nI1(3,"translate"),h.k0s(),h.j41(4,"span",5),h.EFF(5),h.nI1(6,"translate"),h.k0s(),h.DNE(7,Yr,3,4,"span",6)(8,_s,1,0,"ng-container",7),h.k0s(),h.DNE(9,Is,10,7,"ng-template",null,0,h.C5r)(11,mt,2,2,"ng-template",null,1,h.C5r)),2&rn){const Hn=h.sdS(10),xi=h.sdS(12);h.Y8G("imageUrl",null==an.data?null:an.data.backgroundImageUrl),h.R7$(2),h.JRh(h.bMT(3,7,an.data.header.text)),h.R7$(3),h.JRh(h.bMT(6,9,an.data.title.text)),h.R7$(2),h.Y8G("ngIf",null==an.data?null:an.data.subtitle),h.R7$(),h.Y8G("ngIf",an.choiceChip)("ngIfThen",Hn)("ngIfElse",xi)}},dependencies:[on.Z,it.w2,it.DJ,it.UI,k.D,i.bT,i.pM,m.f,m.c,P.m_,P.An,te.N,E.wG,E.iV,ga.u,al.n,i.B3,Fe.Cc,Fe.eI,g.h,g.D9],styles:['.isRtl[_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{transform:scaleX(-1)}html[dir=rtl][_ngcontent-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{--dummy: 0;transform:scaleX(-1)}.hotkey-border[_ngcontent-%COMP%]{border:1px solid #ffffff;padding:4px 8px;font-weight:500;line-height:32px;margin:4px}.fullpage-dialog[_ngcontent-%COMP%]{position:fixed;top:0;left:0;max-height:100%;width:100%;height:100%;align-items:center;padding:56px 88px}.fullpage-dialog[_ngcontent-%COMP%]:before{content:"";position:absolute;inset:0;height:100%;width:100%;z-index:-1;background:linear-gradient(to top,#000000f2 7.22%,#000000b3)}.header[_ngcontent-%COMP%]{align-self:self-start;color:#fff9}.title[_ngcontent-%COMP%], .subtitle[_ngcontent-%COMP%]{text-align:center}.subtitle[_ngcontent-%COMP%]{margin-top:16px;max-width:1152px}.choice-chip-container[_ngcontent-%COMP%]{align-items:center}.choice-chip[_ngcontent-%COMP%]{display:flex;margin-top:96px}.chip-icon[_ngcontent-%COMP%]{width:32px;height:32px;color:#fff}.isLtr[_nghost-%COMP%] .chip-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .chip-icon[_ngcontent-%COMP%]{margin:auto 16px auto 0}html[dir=ltr][_ngcontent-%COMP%] .chip-icon[_ngcontent-%COMP%]{--dummy: 0;margin:auto 16px auto 0}.isRtl[_nghost-%COMP%] .chip-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .chip-icon[_ngcontent-%COMP%]{margin:auto 0 auto 16px}html[dir=rtl][_ngcontent-%COMP%] .chip-icon[_ngcontent-%COMP%]{--dummy: 0;margin:auto 0 auto 16px}.choice-chip-content[_ngcontent-%COMP%]{display:flex;flex-direction:column}.steps[_ngcontent-%COMP%]{flex-direction:row;justify-content:center;margin:84px 0}.step[_ngcontent-%COMP%]{flex-direction:column;margin:0 48px;text-align:center;width:300px}.icon-container[_ngcontent-%COMP%]{height:200px;margin-bottom:56px}.icon[_ngcontent-%COMP%]{color:#fff;height:200px;width:238px}.step-title[_ngcontent-%COMP%]{align-items:center;border:#ffffff 2px solid;border-radius:24px;color:#fff;display:flex;font-weight:500;height:44px;justify-content:center;margin:0 auto 24px;width:44px}.step-description[_ngcontent-%COMP%]{margin:0;max-width:300px}.buttons[_ngcontent-%COMP%]{display:flex;gap:24px}.status-container[_ngcontent-%COMP%]{text-align:center}.status[_ngcontent-%COMP%]{margin:0}.selector-cards[_ngcontent-%COMP%]{margin-top:96px}.selector-card[_ngcontent-%COMP%]{width:264px;height:544px;margin:20px 16px;text-align:center}.selector-card[_ngcontent-%COMP%]:before{content:"";position:absolute;inset:0;background-color:#494949;opacity:0}.selector-card[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{transform:translateY(188px)}.selector-card[_ngcontent-%COMP%] .card-icon[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:24px;align-items:center;opacity:.7}.selector-card[_ngcontent-%COMP%] .card-icon[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{width:64px;height:64px}.selector-card[_ngcontent-%COMP%] .card-icon[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{min-height:80px}.selector-card[_ngcontent-%COMP%] .card-text[_ngcontent-%COMP%]{box-sizing:border-box;height:110px}.selector-card[_ngcontent-%COMP%] .selector-card-secondary-info[_ngcontent-%COMP%]{height:30px;margin-top:16px;display:inline-flex;flex-direction:row;gap:16px}.selector-card[_ngcontent-%COMP%] .selector-card-secondary-info-icon[_ngcontent-%COMP%]{height:32px;width:32px;color:#76b900}.selector-card[_ngcontent-%COMP%] .card-status-text[_ngcontent-%COMP%], .selector-card[_ngcontent-%COMP%] .card-buttons[_ngcontent-%COMP%]{opacity:0}.selector-card.next-card[_ngcontent-%COMP%]{transform:translate(74px)}.selector-card.previous-card[_ngcontent-%COMP%]{transform:translate(-74px)}.isRtl[_nghost-%COMP%] .selector-card.next-card[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .selector-card.next-card[_ngcontent-%COMP%]{transform:translate(-74px)}.isRtl[_nghost-%COMP%] .selector-card.previous-card[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .selector-card.previous-card[_ngcontent-%COMP%]{transform:translate(74px)}.expanded.selector-card[_ngcontent-%COMP%]{transform:scale(1.6818181818,1.0735294118)}.expanded.selector-card[_ngcontent-%COMP%]:before{opacity:.8}.expanded.selector-card[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{transform:scale(.5945945946,.9315068493) translateZ(0) translateY(96px)}.expanded.selector-card[_ngcontent-%COMP%] .card-icon[_ngcontent-%COMP%]{opacity:1}.expanded.selector-card[_ngcontent-%COMP%] .card-icon[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{transform:scale(1.25)}.expanded.selector-card[_ngcontent-%COMP%] .card-icon[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{--font-header-font-size: 14px;--font-header-line-height: 20px;font-family:NVIDIA,sans-serif;color:var(--hig-ui-text-primary-color);font-style:normal;text-transform:none;font-size:var(--font-header-font-size);line-height:var(--font-header-line-height);letter-spacing:0;font-weight:700}.tv-view[_ngcontent-%COMP%] .expanded.selector-card[_ngcontent-%COMP%] .card-icon[_ngcontent-%COMP%] span[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .expanded.selector-card[_ngcontent-%COMP%] .card-icon[_ngcontent-%COMP%] span[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .expanded.selector-card[_ngcontent-%COMP%] .card-icon[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{--font-header-font-size: 28px;--font-header-line-height: 40px}.expanded.selector-card[_ngcontent-%COMP%] .card-status-text[_ngcontent-%COMP%], .expanded.selector-card[_ngcontent-%COMP%] .card-buttons[_ngcontent-%COMP%]{opacity:1}.expanded.selector-card[_ngcontent-%COMP%] .card-buttons[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px;width:100%;min-height:160px}.expanded.selector-card[_ngcontent-%COMP%] .card-buttons[_ngcontent-%COMP%] .card-button[_ngcontent-%COMP%]{height:72px}.selector-card[_ngcontent-%COMP%]{--transition-duration: .2s;transition-property:transform;transition-duration:var(--transition-duration);transition-timing-function:ease-out}.selector-card[_ngcontent-%COMP%] .card-icon[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%], .selector-card[_ngcontent-%COMP%] .card-text[_ngcontent-%COMP%]{transition-property:transform;transition-duration:var(--transition-duration);transition-timing-function:ease-out}.selector-card[_ngcontent-%COMP%]:before{transition-property:opacity;transition-duration:var(--transition-duration);transition-timing-function:ease-out}.selector-card[_ngcontent-%COMP%] .card-icon[_ngcontent-%COMP%]{transition-property:transform,opacity;transition-duration:var(--transition-duration);transition-timing-function:ease-out}.selector-card[_ngcontent-%COMP%] .card-icon[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{transition-property:font-size,font-weight;transition-duration:var(--transition-duration);transition-timing-function:ease-out}.selector-card.expanded[_ngcontent-%COMP%]{--transition-duration: .25s}.selector-card.expanded[_ngcontent-%COMP%] .card-buttons[_ngcontent-%COMP%]{transition-property:opacity;transition-duration:var(--transition-duration);transition-timing-function:ease-out;transition-delay:.2s}']})}}return ut})();var Un=function(ut){return ut[ut.Icon=0]="Icon",ut[ut.AvatarIcon=1]="AvatarIcon",ut[ut.SquareImage=2]="SquareImage",ut[ut.RectangularImage=3]="RectangularImage",ut}(Un||{}),ii=function(ut){return ut[ut.Icon=0]="Icon",ut[ut.Checkbox=1]="Checkbox",ut[ut.Switch=2]="Switch",ut[ut.IconButton=3]="IconButton",ut[ut.TextButton=4]="TextButton",ut[ut.Rotary=5]="Rotary",ut[ut.Dropdown=6]="Dropdown",ut[ut.PlainText=7]="PlainText",ut}(ii||{}),Nr=s(11013);function Us(ut,Pt){if(1&ut){const Re=h.RV6();h.j41(0,"button",2),h.bIt("click",function(an){h.eBV(Re);const Hn=h.XpG(2);return h.Njj(Hn.secondaryButtonClick(an))}),h.EFF(1),h.nI1(2,"translate"),h.k0s()}if(2&ut){const Re=h.XpG(2);h.Y8G("disabled",Re.data.secondaryButton.isDisabled),h.R7$(),h.SpI(" ",h.bMT(2,2,Re.data.secondaryButton.text)," ")}}function Vs(ut,Pt){if(1&ut){const Re=h.RV6();h.j41(0,"div",1)(1,"button",2),h.bIt("click",function(an){h.eBV(Re);const Hn=h.XpG();return h.Njj(Hn.primaryButtonClick(an))}),h.EFF(2),h.nI1(3,"translate"),h.k0s(),h.DNE(4,Us,3,4,"button",3),h.k0s()}if(2&ut){const Re=h.XpG();h.R7$(),h.Y8G("disabled",Re.data.primaryButton.isDisabled),h.R7$(),h.SpI(" ",h.bMT(3,3,Re.data.primaryButton.text)," "),h.R7$(2),h.vxM(4,Re.data.secondaryButton?4:-1)}}let Ma=(()=>{class ut{constructor(){this.primaryButtonClicked=new h.bkB,this.secondaryButtonClicked=new h.bkB}set cardData(Re){this.data=Re}primaryButtonClick(Re){this.primaryButtonClicked.emit(Re)}secondaryButtonClick(Re){this.secondaryButtonClicked.emit(Re)}static{this.\u0275fac=function(rn){return new(rn||ut)}}static{this.\u0275cmp=h.VBU({type:ut,selectors:[["nv-hig-list-item-context-cta"]],inputs:{cardData:"cardData"},outputs:{primaryButtonClicked:"primaryButtonClicked",secondaryButtonClicked:"secondaryButtonClicked"},standalone:!0,features:[h.aNF],decls:1,vars:1,consts:[["class","context-cta-container",4,"ngIf"],[1,"context-cta-container"],["mat-button","",1,"font-button2",3,"click","disabled"],["mat-button","",1,"font-button2",3,"disabled"]],template:function(rn,an){1&rn&&h.DNE(0,Vs,5,5,"div",0),2&rn&&h.Y8G("ngIf",an.data.primaryButton)},dependencies:[i.bT,E.wG,E.iV,g.h,g.D9],styles:[".context-cta-container[_ngcontent-%COMP%]{display:flex;flex-direction:row-reverse;align-items:flex-start;gap:calc(var(--hig-list-item-context-cta-button-gap) * var(--hig-list-item-length-scaling-factor))}.isLtr[_nghost-%COMP%] .context-cta-container[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .context-cta-container[_ngcontent-%COMP%]{padding-right:calc(8px * var(--hig-list-item-length-scaling-factor))}html[dir=ltr][_ngcontent-%COMP%] .context-cta-container[_ngcontent-%COMP%]{--dummy2: 0;padding-right:calc(8px * var(--hig-list-item-length-scaling-factor))}.isRtl[_nghost-%COMP%] .context-cta-container[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .context-cta-container[_ngcontent-%COMP%]{padding-left:calc(8px * var(--hig-list-item-length-scaling-factor))}html[dir=rtl][_ngcontent-%COMP%] .context-cta-container[_ngcontent-%COMP%]{--dummy2: 0;padding-left:calc(8px * var(--hig-list-item-length-scaling-factor))}"]})}}return ut})();function Ya(ut,Pt){if(1&ut&&h.nrm(0,"mat-icon",1),2&ut){const Re=h.XpG();h.Y8G("svgIcon",Re.data.context.matIcon)}}let Qa=(()=>{class ut{set cardData(Re){this.data=Re}static{this.\u0275fac=function(rn){return new(rn||ut)}}static{this.\u0275cmp=h.VBU({type:ut,selectors:[["nv-hig-list-item-context"]],inputs:{cardData:"cardData"},standalone:!0,features:[h.aNF],decls:4,vars:5,consts:[[1,"context-text-row","font-body2","font-color-tertiary"],[1,"context-icon",3,"svgIcon"],[3,"innerHtml"]],template:function(rn,an){1&rn&&(h.j41(0,"div",0),h.DNE(1,Ya,1,1,"mat-icon",1),h.nrm(2,"div",2),h.nI1(3,"translate"),h.k0s()),2&rn&&(h.R7$(),h.vxM(1,an.data.context.matIcon?1:-1),h.R7$(),h.Y8G("innerHtml",an.data.context.translated?an.data.context.text:h.i5U(3,2,an.data.context.text,an.data.context.placeholders),h.npT))},dependencies:[P.m_,P.An,g.h,g.D9],styles:[".context-text-row[_ngcontent-%COMP%]{display:flex;flex-direction:row;gap:calc(var(--hig-list-item-context-supporting-text-gap) * var(--hig-list-item-length-scaling-factor));padding:calc(var(--hig-list-item-context-vertical-padding) * var(--hig-list-item-length-scaling-factor)) 0px}.context-icon[_ngcontent-%COMP%]{width:calc(var(--hig-list-item-context-supporting-icon-size) * var(--hig-list-item-image-scaling-factor));height:calc(var(--hig-list-item-context-supporting-icon-size) * var(--hig-list-item-image-scaling-factor));flex:0 0 auto}"]})}}return ut})();var za=s(51635),Bo=s(80583),li=s(40262);const Ii=["button"],Pi=["container"],Dr=["items"];function ns(ut,Pt){if(1&ut&&(h.j41(0,"div",10),h.EFF(1),h.nI1(2,"translate"),h.k0s()),2&ut){const Re=Pt.$implicit,rn=h.XpG();h.AVh("disabled-opacity",rn.disabled)("selected",Re===(null==rn.input?null:rn.input[rn.selectedIndex])),h.R7$(),h.SpI(" ",h.bMT(2,5,Re)," ")}}let ws=(()=>{class ut{set input(Re){this._input=Re,this.displayList=Re.slice()}get input(){return this._input}set initialState(Re){this._initialState=Re,this.initialized&&Re!==this.selectedIndex&&(this.ngOnInit(),this.ngAfterViewInit())}get initialState(){return this._initialState}constructor(Re,rn){this.animationBuilder=Re,this.disabled=!1,this._initialState=0,this.continuous=!0,this.selectionChanged=new h.bkB,this.displayIndex=0,this.selectedIndex=-1,this.initialized=!1,this.isRTLLayout=!1,this.isRTLLayout=rn.isRTLLayoutEnabled}moveToLeft(){if(!(!1===this.continuous&&0===this.selectedIndex||this.disabled||0===this.input.length)){if(0===this.displayIndex){const Re=this.displayList.pop();this.displayList.unshift(Re),this.displayIndex=1,this.animateTo(this.displayIndex,!0)}this.displayIndex--,this.selectedIndex=(this.input.length+this.selectedIndex-1)%this.input.length,this.selectionChanged.emit(this.selectedIndex),this.animateTo(this.displayIndex,!1)}}moveToRight(){if(!(!1===this.continuous&&this.selectedIndex===this.input.length-1||this.disabled||0===this.input.length)){if(this.displayIndex+1===this.displayList.length){const Re=this.displayList.shift();this.displayList.push(Re),this.displayIndex--,this.animateTo(this.displayIndex,!0)}this.displayIndex++,this.selectedIndex=(this.selectedIndex+1)%this.input.length,this.selectionChanged.emit(this.selectedIndex),this.animateTo(this.displayIndex,!1)}}goLeft(Re){Re?.preventDefault(),this.isRTLLayout?this.moveToRight():this.moveToLeft()}goRight(Re){Re?.preventDefault(),this.isRTLLayout?this.moveToLeft():this.moveToRight()}ngOnChanges(Re){for(const rn of Object.keys(Re))"input"===rn&&(Re[rn].currentValue.length-1<this.initialState&&(this.initialState=0),(0===this.initialState||this.initialState===this.input.length-1)&&(this.ngOnInit(),this.ngAfterViewInit()))}ngOnInit(){this.displayIndex=this.selectedIndex=this.initialState,this.displayList=this.input?this.input.slice():void 0}ngAfterViewInit(){this.animateTo(this.displayIndex,!0),this.initialized=!0}animateTo(Re,rn){let an=Re*this.container.nativeElement.offsetWidth;this.isRTLLayout||(an*=-1),this.animationBuilder.build([(0,li.i0)(rn?0:"250ms cubic-bezier(0.4, 0.0, 0.2, 1)",(0,li.iF)({transform:`translateX(${an}px)`}))]).create(this.itemContainer.nativeElement).play()}focus(){this.element.nativeElement.focus()}static{this.\u0275fac=function(rn){return new(rn||ut)(h.rXU(li.S6),h.rXU(Mt.iH))}}static{this.\u0275cmp=h.VBU({type:ut,selectors:[["nv-hig-rotary"]],viewQuery:function(rn,an){if(1&rn&&(h.GBs(Ii,5),h.GBs(Pi,7),h.GBs(Dr,7)),2&rn){let Hn;h.mGM(Hn=h.lsd())&&(an.element=Hn.first),h.mGM(Hn=h.lsd())&&(an.container=Hn.first),h.mGM(Hn=h.lsd())&&(an.itemContainer=Hn.first)}},inputs:{input:"input",disabled:"disabled",initialState:"initialState",continuous:"continuous"},outputs:{selectionChanged:"selectionChanged"},standalone:!0,features:[h.OA$,h.aNF],decls:12,vars:3,consts:[["container",""],["items",""],["tabindex","0","cdkMonitorElementFocus","",1,"rotary-container",3,"keydown.arrowleft","keydown.arrowright"],[1,"button-container"],["mat-icon-button","","tabindex","-1",1,"rounded-button","font-body2",3,"click","disabled"],["svgIcon","chevron_left",1,"rotary-chevron"],[1,"nv-rotary-data-container","item-width"],["fxLayout","row","fxLayoutAlign","start center"],["class","font-body2 font-color-primary item-width","fxFlex","none",3,"disabled-opacity","selected",4,"ngFor","ngForOf"],["svgIcon","chevron_right",1,"rotary-chevron"],["fxFlex","none",1,"font-body2","font-color-primary","item-width"]],template:function(rn,an){if(1&rn){const Hn=h.RV6();h.j41(0,"div",2),h.bIt("keydown.arrowleft",function(yr){return h.eBV(Hn),h.Njj(an.goLeft(yr))})("keydown.arrowright",function(yr){return h.eBV(Hn),h.Njj(an.goRight(yr))}),h.j41(1,"div",3)(2,"button",4),h.bIt("click",function(yr){return h.eBV(Hn),h.Njj(an.goLeft(yr))}),h.nrm(3,"mat-icon",5),h.k0s()(),h.j41(4,"div",6,0)(6,"div",7,1),h.DNE(8,ns,3,7,"div",8),h.k0s()(),h.j41(9,"div",3)(10,"button",4),h.bIt("click",function(yr){return h.eBV(Hn),h.Njj(an.goRight(yr))}),h.nrm(11,"mat-icon",9),h.k0s()()()}2&rn&&(h.R7$(2),h.Y8G("disabled",an.disabled),h.R7$(6),h.Y8G("ngForOf",an.displayList),h.R7$(2),h.Y8G("disabled",an.disabled))},dependencies:[U.Pd,U.vR,E.wG,E.iV,P.m_,P.An,it.w2,it.DJ,it.sA,it.UI,i.pM,g.h,g.D9],styles:["[_nghost-%COMP%]{--hig-rotary-width: 144px;--hig-rotary-height: 40px;--hig-rotary-button-size: 40px;--hig-rotary-chevron-size: 24px}.rotary-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;height:var(--hig-rotary-height)}.rotary-container.cdk-keyboard-focused[_ngcontent-%COMP%], .rotary-container.cdk-program-focused[_ngcontent-%COMP%]{background:#ffffff52;transition:background-color .75s ease}.nv-rotary-data-container[_ngcontent-%COMP%]{text-align:center;display:block;overflow:hidden}.button-container[_ngcontent-%COMP%]{width:var(--hig-rotary-height);height:var(--hig-rotary-height);display:flex;align-items:center;justify-content:center}.rounded-button[_ngcontent-%COMP%]{border-radius:50%!important;width:var(--hig-rotary-button-size);height:var(--hig-rotary-button-size)}.rotary-chevron[_ngcontent-%COMP%]{width:var(--hig-rotary-chevron-size);height:var(--hig-rotary-chevron-size)}.disabled-opacity[_ngcontent-%COMP%]{opacity:.38}.item-width[_ngcontent-%COMP%]{width:calc(var(--hig-rotary-width) - 2 * var(--hig-rotary-height))}.selected[_ngcontent-%COMP%]{visibility:visible}"]})}}return ut})();var oo=s(54676);class ao{constructor(Pt){this.reference=Pt}get dialogRef(){return this.reference instanceof S.CP&&this.reference.componentInstance instanceof At?this.reference:void 0}get bottomSheetRef(){return this.reference instanceof M.eN&&this.reference.instance instanceof u.G?this.reference:void 0}get threeQuarterSheetRef(){return this.reference instanceof S.CP&&this.reference.componentInstance instanceof Qt.L?this.reference:void 0}get instance(){return this.dialogRef?.componentInstance??this.bottomSheetRef?.instance??this.threeQuarterSheetRef?.componentInstance}get primaryButtonClick(){return this.instance?.primaryButtonClick}get secondaryButtonClick(){return this.instance?.secondaryButtonClick}get linkClick(){return this.instance?.linkClick}get dialogKeydownEvents(){return this.dialogRef?.keydownEvents()}get augmentedButtonClick(){return this.instance instanceof Qt.L?this.instance.augmentedButtonClick:void 0}get radioButtonClick(){return this.instance instanceof At||this.instance instanceof Qt.L?this.instance.radioButtonClick:void 0}get checkboxState(){return this.instance?.data?.checkboxState}get radioOptionSelected(){return this.instance?.data?.radioOptionSelected}set backToCloseResult(Pt){this.instance.backToCloseResult=Pt}close(Pt){this.dialogRef?.close(Pt),this.bottomSheetRef?.dismiss(Pt),this.threeQuarterSheetRef?.close(Pt)}afterClosed(){return this.dialogRef?.afterClosed()??this.bottomSheetRef?.afterDismissed()??this.threeQuarterSheetRef?.afterClosed()}afterOpened(){return this.dialogRef?.afterOpened()??this.bottomSheetRef?.afterOpened()??this.threeQuarterSheetRef?.afterOpened()}}let Da=(()=>{class ut{constructor(Re,rn,an,Hn){this.matDialog=Re,this.matBottomSheet=rn,this.focusManager=an,this.tvMode=!!Hn.tvMode}open(Re,rn){Re.autoFocus=!1;const an=()=>rn?.preferredDialogType===Y.QO.BottomSheet?u.G.open(this.matBottomSheet,Re,this.tvMode):this.tvMode?Re.data.checkbox||Re.data.radioButtonOptions||rn?.preferredDialogType===Y.QO.ThreeQuarterSheet?Qt.L.open(this.matDialog,Re):u.G.open(this.matBottomSheet,Re,this.tvMode):At.open(this.matDialog,Re);return rn?.disableFocusRestore?new ao(an()):this.focusManager.restoreFocusAfterClosed(()=>new ao(an()),rn)}closeAll(){this.matDialog.closeAll(),this.matBottomSheet.dismiss()}static{this.\u0275fac=function(rn){return new(rn||ut)(h.KVO(S.bZ),h.KVO(M.VK),h.KVO(Dt.c),h.KVO(Nr.X,8))}}static{this.\u0275prov=h.jDH({token:ut,factory:ut.\u0275fac,providedIn:"root"})}}return ut})();const Sl=ut=>({visible:ut});function Vr(ut,Pt){if(1&ut&&(h.j41(0,"div",1),h.nrm(1,"mat-icon",2),h.k0s()),2&ut){const Re=h.XpG();h.R7$(),h.Y8G("svgIcon",Re.data.icon)}}function Ca(ut,Pt){if(1&ut){const Re=h.RV6();h.j41(0,"div",3)(1,"mat-checkbox",4),h.mxI("ngModelChange",function(an){h.eBV(Re);const Hn=h.XpG();return h.DH7(Hn.data.toggleState,an)||(Hn.data.toggleState=an),h.Njj(an)}),h.bIt("change",function(an){h.eBV(Re);const Hn=h.XpG();return h.Njj(Hn.toggleClick(an))}),h.k0s()()}if(2&ut){const Re=h.XpG();h.R7$(),h.Y8G("disabled",Re.data.disabled),h.R50("ngModel",Re.data.toggleState)}}function ua(ut,Pt){if(1&ut){const Re=h.RV6();h.j41(0,"div",5)(1,"mat-slide-toggle",4),h.mxI("ngModelChange",function(an){h.eBV(Re);const Hn=h.XpG();return h.DH7(Hn.data.toggleState,an)||(Hn.data.toggleState=an),h.Njj(an)}),h.bIt("change",function(an){h.eBV(Re);const Hn=h.XpG();return h.Njj(Hn.toggleClick(an))}),h.k0s()()}if(2&ut){const Re=h.XpG();h.R7$(),h.Y8G("disabled",Re.data.disabled),h.R50("ngModel",Re.data.toggleState)}}function sa(ut,Pt){if(1&ut){const Re=h.RV6();h.j41(0,"div",6)(1,"button",7),h.bIt("click",function(an){h.eBV(Re);const Hn=h.XpG();return h.Njj(Hn.primaryButtonClick(an))}),h.nrm(2,"mat-icon",8),h.k0s()()}if(2&ut){const Re=h.XpG();h.R7$(2),h.Y8G("svgIcon",Re.data.icon)}}function rl(ut,Pt){if(1&ut){const Re=h.RV6();h.j41(0,"button",12),h.bIt("click",function(an){h.eBV(Re);const Hn=h.XpG(2);return h.Njj(Hn.primaryButtonClick(an))}),h.j41(1,"span"),h.EFF(2),h.nI1(3,"translate"),h.k0s(),h.eu8(4,13),h.k0s()}if(2&ut){const Re=h.XpG(2),rn=h.sdS(9);h.Y8G("disabled",Re.data.primaryButton.isDisabled||Re.data.disabled),h.R7$(),h.AVh("primary-button-text",Re.data.primaryButton.spinnerOverlay),h.R7$(),h.SpI(" ",h.bMT(3,6,Re.data.primaryButton.text)," "),h.R7$(2),h.Y8G("ngTemplateOutlet",rn)("ngTemplateOutletContext",h.eq3(8,Sl,Re.data.primaryButton.spinnerOverlay))}}function ll(ut,Pt){if(1&ut){const Re=h.RV6();h.j41(0,"button",14),h.bIt("click",function(an){h.eBV(Re);const Hn=h.XpG(2);return h.Njj(Hn.secondaryButtonClick(an))}),h.j41(1,"span"),h.EFF(2),h.nI1(3,"translate"),h.k0s(),h.eu8(4,13),h.k0s()}if(2&ut){const Re=h.XpG(2),rn=h.sdS(9);h.Y8G("disabled",Re.data.secondaryButton.isDisabled||Re.data.disabled),h.BMQ("cdkFocusInitial",!Re.data.primaryButton),h.R7$(),h.AVh("secondary-button-text",Re.data.secondaryButton.spinnerOverlay),h.R7$(),h.SpI(" ",h.bMT(3,7,Re.data.secondaryButton.text)," "),h.R7$(2),h.Y8G("ngTemplateOutlet",rn)("ngTemplateOutletContext",h.eq3(9,Sl,Re.data.secondaryButton.spinnerOverlay))}}function Os(ut,Pt){if(1&ut&&(h.j41(0,"div",9),h.DNE(1,rl,5,10,"button",10)(2,ll,5,11,"button",11),h.k0s()),2&ut){const Re=h.XpG();h.R7$(),h.vxM(1,Re.data.primaryButton?1:-1),h.R7$(),h.vxM(2,Re.data.secondaryButton?2:-1)}}function lr(ut,Pt){if(1&ut){const Re=h.RV6();h.j41(0,"div",15)(1,"nv-hig-rotary",16),h.bIt("selectionChanged",function(an){h.eBV(Re);const Hn=h.XpG();return h.Njj(Hn.rotaryChange(an))}),h.k0s()()}if(2&ut){const Re=h.XpG();h.R7$(),h.Y8G("input",Re.rotaryOptions)("initialState",Re.rotaryInit)}}function zs(ut,Pt){1&ut&&h.nrm(0,"mat-divider")}function xa(ut,Pt){if(1&ut&&(h.j41(0,"mat-option",19),h.EFF(1),h.nI1(2,"translate"),h.k0s(),h.DNE(3,zs,1,0,"mat-divider")),2&ut){const Re=Pt.$implicit;h.Y8G("value",Re)("disabled",Re.disabled),h.R7$(),h.SpI(" ",h.bMT(2,4,Re.label)," "),h.R7$(2),h.vxM(3,Re.divider?3:-1)}}function ho(ut,Pt){if(1&ut){const Re=h.RV6();h.j41(0,"div",17)(1,"mat-select",18),h.mxI("ngModelChange",function(an){h.eBV(Re);const Hn=h.XpG();return h.DH7(Hn.selection,an)||(Hn.selection=an),h.Njj(an)}),h.bIt("selectionChange",function(an){h.eBV(Re);const Hn=h.XpG();return h.Njj(Hn.selectionChange(an))}),h.Z7z(2,xa,4,6,null,null,h.Vm6),h.k0s()()}if(2&ut){const Re=h.XpG();h.R7$(),h.FS9("placeholder",Re.selection.label),h.R50("ngModel",Re.selection),h.Y8G("disabled",Re.data.disabled),h.BMQ("disabled",!!Re.data.disabled||null),h.R7$(),h.Dyx(Re.data.listItems)}}function Vi(ut,Pt){if(1&ut&&(h.j41(0,"div",20),h.nrm(1,"div",21),h.nI1(2,"translate"),h.k0s()),2&ut){const Re=h.XpG();h.R7$(),h.Y8G("innerHtml",Re.data.plaintext.translated?Re.data.plaintext.text:h.i5U(2,1,Re.data.plaintext.text,Re.data.plaintext.placeholders),h.npT)}}function br(ut,Pt){if(1&ut&&(h.j41(0,"div",23),h.nrm(1,"mat-progress-spinner",24),h.k0s()),2&ut){const Re=h.XpG(2);h.R7$(),h.Y8G("diameter",Re.spinnerDiameter)}}function ya(ut,Pt){1&ut&&h.DNE(0,br,2,1,"div",22),2&ut&&h.Y8G("ngIf",Pt.visible)}let rs=(()=>{class ut{set cardData(Re){this.data=Re,this.data?.listItems?.length>0&&(this.initializeListItems(!0),this.objectDifferMap=void 0,this.setupKvDiffer()),this.data?.toggleState&&(this.toggleState=this.data.toggleState)}constructor(Re,rn){this.genericDialog=Re,this.differs=rn,this.spinnerDiameter=16,this.dialogPanelClass="",this.useDifferForListItemUpdate=!1,this.primaryButtonClicked=new h.bkB,this.secondaryButtonClicked=new h.bkB,this.toggleClicked=new h.bkB,this.selectionChanged=new h.bkB,this.trailElementType=ii,this.toggleState=!1,this.rotaryOptions=[],this.rotaryInit=0,this.destroy$=new Bo.B7}ngOnInit(){this.setupKvDiffer()}ngDoCheck(){if(!(this.useDifferForListItemUpdate&&this.data?.listItems?.length>0))return;let Re=!1;this.data?.listItems?.forEach(rn=>{this.objectDifferMap[rn.label].diff(rn)&&(Re=!0)}),Re&&this.initializeListItems()}primaryButtonClick(Re){this.primaryButtonClicked.emit(Re)}secondaryButtonClick(Re){this.secondaryButtonClicked.emit(Re)}toggleClick(Re){this.toggleClicked.emit(Re.checked)}selectionChange(Re){this.emitSelectionChange(this.selection)}rotaryChange(Re){this.selection=this.data.listItems[Re],this.emitSelectionChange(this.selection)}emitSelectionChange(Re){for(const rn of this.data.listItems)rn.selected=!1;this.selection.selected=!0,this.selectionChanged.emit(Re)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}setupKvDiffer(){!this.useDifferForListItemUpdate||!(this.data?.listItems?.length>0)||this.objectDifferMap||(this.objectDifferMap={},this.data?.listItems?.forEach(Re=>this.objectDifferMap[Re.label]=this.differs.find(Re).create()))}initializeListItems(Re=!1){Re&&(this.rotaryOptions=this.data.listItems.map(an=>an.label)),this.selection=this.data.listItems.find(an=>an.selected)??this.data.listItems[0];const rn=this.data.listItems.findIndex(an=>an.selected);this.rotaryInit=-1!==rn?rn:0}static{this.\u0275fac=function(rn){return new(rn||ut)(h.rXU(Da),h.rXU(h.MKu))}}static{this.\u0275cmp=h.VBU({type:ut,selectors:[["nv-hig-list-item-trail"]],inputs:{cardData:"cardData",spinnerDiameter:"spinnerDiameter",dialogPanelClass:"dialogPanelClass",useDifferForListItemUpdate:[h.Mj6.None,"useDifferForUpdate","useDifferForListItemUpdate"]},outputs:{primaryButtonClicked:"primaryButtonClicked",secondaryButtonClicked:"secondaryButtonClicked",toggleClicked:"toggleClicked",selectionChanged:"selectionChanged"},standalone:!0,features:[h.aNF],decls:10,vars:1,consts:[["buttonSpinner",""],[1,"trail-container","trail-icon-container"],[1,"trail-icon","font-color-primary",3,"svgIcon"],[1,"trail-container","trail-checkbox-container"],[3,"ngModelChange","change","disabled","ngModel"],[1,"trail-container","trail-switch-container"],[1,"trail-container","trail-icon-button-container"],["mat-icon-button","",3,"click"],[3,"svgIcon"],[1,"trail-container","trail-buttons-container"],["mat-button","","cdkFocusInitial","",1,"font-button2",3,"disabled"],["mat-button","",1,"font-button2",3,"disabled"],["mat-button","","cdkFocusInitial","",1,"font-button2",3,"click","disabled"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["mat-button","",1,"font-button2",3,"click","disabled"],[1,"trail-container","trail-rotary-container"],[3,"selectionChanged","input","initialState"],[1,"trail-container","trail-dropdown-container"],["color","accent","panelClass","mat-select-dark-background mat-select-font-body2","nvMatSelectKeyboardFixup","","cdkMonitorElementFocus","",1,"trail-dropdown","hig-button-overlay","mat-select-font-body2",3,"ngModelChange","selectionChange","ngModel","placeholder","disabled"],[1,"font-body2","font-color-tertiary",3,"value","disabled"],[1,"trail-container","trail-plaintext-container"],[1,"font-body2","font-color-secondary",3,"innerHtml"],["class","trail-button-spinner-overlay",4,"ngIf"],[1,"trail-button-spinner-overlay"],["mode","indeterminate",1,"mat-accent",3,"diameter"]],template:function(rn,an){if(1&rn&&h.DNE(0,Vr,2,1)(1,Ca,2,2)(2,ua,2,2)(3,sa,3,1)(4,Os,3,2)(5,lr,2,2)(6,ho,4,4)(7,Vi,3,4)(8,ya,1,1,"ng-template",null,0,h.C5r),2&rn){let Hn;h.vxM(0,(Hn=an.data.elementType)===an.trailElementType.Icon?0:Hn===an.trailElementType.Checkbox?1:Hn===an.trailElementType.Switch?2:Hn===an.trailElementType.IconButton?3:Hn===an.trailElementType.TextButton?4:Hn===an.trailElementType.Rotary?5:Hn===an.trailElementType.Dropdown?6:Hn===an.trailElementType.PlainText?7:-1)}},dependencies:[P.m_,P.An,T.g7,T.So,oo.tG,X.nM,v.YN,v.BC,v.vS,Xt.jm,Xt.P2,E.wG,E.iV,i.T3,ws,lt.Ve,lt.VO,za.wT,oo.rs,U.Pd,U.vR,za.Sy,x.w,x.q,B.D6,B.LG,i.bT,g.h,g.D9],styles:[".trail-container[_ngcontent-%COMP%]{height:calc(48px * var(--hig-list-item-length-scaling-factor));box-sizing:border-box;display:flex;align-items:center;width:-moz-fit-content;width:fit-content}.isLtr[_nghost-%COMP%] .trail-icon-container[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .trail-icon-container[_ngcontent-%COMP%]{padding:calc(12px * var(--hig-list-item-length-scaling-factor)) calc(16px * var(--hig-list-item-length-scaling-factor)) calc(12px * var(--hig-list-item-length-scaling-factor)) 0px}html[dir=ltr][_ngcontent-%COMP%] .trail-icon-container[_ngcontent-%COMP%]{--dummy: 0;padding:calc(12px * var(--hig-list-item-length-scaling-factor)) calc(16px * var(--hig-list-item-length-scaling-factor)) calc(12px * var(--hig-list-item-length-scaling-factor)) 0px}.isRtl[_nghost-%COMP%] .trail-icon-container[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .trail-icon-container[_ngcontent-%COMP%]{padding:calc(12px * var(--hig-list-item-length-scaling-factor)) 0px calc(12px * var(--hig-list-item-length-scaling-factor)) calc(16px * var(--hig-list-item-length-scaling-factor))}html[dir=rtl][_ngcontent-%COMP%] .trail-icon-container[_ngcontent-%COMP%]{--dummy: 0;padding:calc(12px * var(--hig-list-item-length-scaling-factor)) 0px calc(12px * var(--hig-list-item-length-scaling-factor)) calc(16px * var(--hig-list-item-length-scaling-factor))}.trail-icon[_ngcontent-%COMP%]{width:calc(var(--hig-list-item-trail-icon-size) * var(--hig-list-item-image-scaling-factor));height:calc(var(--hig-list-item-trail-icon-size) * var(--hig-list-item-image-scaling-factor))}.trail-switch-container[_ngcontent-%COMP%]{min-width:calc(var(--hig-list-item-trail-switch-width) * var(--hig-list-item-length-scaling-factor));justify-content:center}.isLtr[_nghost-%COMP%] .trail-switch-container[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .trail-switch-container[_ngcontent-%COMP%]{padding-right:calc(8px * var(--hig-list-item-length-scaling-factor))}html[dir=ltr][_ngcontent-%COMP%] .trail-switch-container[_ngcontent-%COMP%]{--dummy2: 0;padding-right:calc(8px * var(--hig-list-item-length-scaling-factor))}.isRtl[_nghost-%COMP%] .trail-switch-container[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .trail-switch-container[_ngcontent-%COMP%]{padding-left:calc(8px * var(--hig-list-item-length-scaling-factor))}html[dir=rtl][_ngcontent-%COMP%] .trail-switch-container[_ngcontent-%COMP%]{--dummy2: 0;padding-left:calc(8px * var(--hig-list-item-length-scaling-factor))}.isLtr[_nghost-%COMP%] .trail-icon-button-container[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .trail-icon-button-container[_ngcontent-%COMP%]{padding-right:calc(4px * var(--hig-list-item-length-scaling-factor))}html[dir=ltr][_ngcontent-%COMP%] .trail-icon-button-container[_ngcontent-%COMP%]{--dummy2: 0;padding-right:calc(4px * var(--hig-list-item-length-scaling-factor))}.isRtl[_nghost-%COMP%] .trail-icon-button-container[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .trail-icon-button-container[_ngcontent-%COMP%]{padding-left:calc(4px * var(--hig-list-item-length-scaling-factor))}html[dir=rtl][_ngcontent-%COMP%] .trail-icon-button-container[_ngcontent-%COMP%]{--dummy2: 0;padding-left:calc(4px * var(--hig-list-item-length-scaling-factor))}.trail-buttons-container[_ngcontent-%COMP%]{display:flex;flex-direction:row-reverse;gap:calc(var(--hig-list-item-trail-button-gap) * var(--hig-list-item-length-scaling-factor))}.isLtr[_nghost-%COMP%] .trail-buttons-container[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .trail-buttons-container[_ngcontent-%COMP%]{padding:calc(6px * var(--hig-list-item-length-scaling-factor)) calc(8px * var(--hig-list-item-length-scaling-factor)) calc(6px * var(--hig-list-item-length-scaling-factor)) 0px}html[dir=ltr][_ngcontent-%COMP%] .trail-buttons-container[_ngcontent-%COMP%]{--dummy: 0;padding:calc(6px * var(--hig-list-item-length-scaling-factor)) calc(8px * var(--hig-list-item-length-scaling-factor)) calc(6px * var(--hig-list-item-length-scaling-factor)) 0px}.isRtl[_nghost-%COMP%] .trail-buttons-container[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .trail-buttons-container[_ngcontent-%COMP%]{padding:calc(6px * var(--hig-list-item-length-scaling-factor)) 0px calc(6px * var(--hig-list-item-length-scaling-factor)) calc(8px * var(--hig-list-item-length-scaling-factor))}html[dir=rtl][_ngcontent-%COMP%] .trail-buttons-container[_ngcontent-%COMP%]{--dummy: 0;padding:calc(6px * var(--hig-list-item-length-scaling-factor)) 0px calc(6px * var(--hig-list-item-length-scaling-factor)) calc(8px * var(--hig-list-item-length-scaling-factor))}.trail-buttons-container[_ngcontent-%COMP%] .primary-button-text[_ngcontent-%COMP%], .trail-buttons-container[_ngcontent-%COMP%] .secondary-button-text[_ngcontent-%COMP%]{visibility:hidden}.trail-rotary-container[_ngcontent-%COMP%]{justify-content:center}.trail-rotary-container[_ngcontent-%COMP%] nv-hig-rotary[_ngcontent-%COMP%]{--hig-rotary-width: calc(calc(var(--hig-list-item-trail-rotary-width) * var(--hig-list-item-length-scaling-factor)) - calc(8px * var(--hig-list-item-length-scaling-factor)));--hig-rotary-height: calc(var(--hig-list-item-trail-rotary-height) * var(--hig-list-item-length-scaling-factor));--hig-rotary-button-size: calc(var(--hig-list-item-trail-rotary-height) * var(--hig-list-item-image-scaling-factor));--hig-rotary-chevron-size: calc(24px * var(--hig-list-item-image-scaling-factor))}.isLtr[_nghost-%COMP%] .trail-rotary-container[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .trail-rotary-container[_ngcontent-%COMP%]{padding:calc(4px * var(--hig-list-item-length-scaling-factor)) calc(8px * var(--hig-list-item-length-scaling-factor)) calc(4px * var(--hig-list-item-length-scaling-factor)) 0px}html[dir=ltr][_ngcontent-%COMP%] .trail-rotary-container[_ngcontent-%COMP%]{--dummy: 0;padding:calc(4px * var(--hig-list-item-length-scaling-factor)) calc(8px * var(--hig-list-item-length-scaling-factor)) calc(4px * var(--hig-list-item-length-scaling-factor)) 0px}.isRtl[_nghost-%COMP%] .trail-rotary-container[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .trail-rotary-container[_ngcontent-%COMP%]{padding:calc(4px * var(--hig-list-item-length-scaling-factor)) 0px calc(4px * var(--hig-list-item-length-scaling-factor)) calc(8px * var(--hig-list-item-length-scaling-factor))}html[dir=rtl][_ngcontent-%COMP%] .trail-rotary-container[_ngcontent-%COMP%]{--dummy: 0;padding:calc(4px * var(--hig-list-item-length-scaling-factor)) 0px calc(4px * var(--hig-list-item-length-scaling-factor)) calc(8px * var(--hig-list-item-length-scaling-factor))}.isLtr[_nghost-%COMP%] .trail-dropdown-container[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .trail-dropdown-container[_ngcontent-%COMP%]{padding-right:calc(4px * var(--hig-list-item-length-scaling-factor))}html[dir=ltr][_ngcontent-%COMP%] .trail-dropdown-container[_ngcontent-%COMP%]{--dummy2: 0;padding-right:calc(4px * var(--hig-list-item-length-scaling-factor))}.isRtl[_nghost-%COMP%] .trail-dropdown-container[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .trail-dropdown-container[_ngcontent-%COMP%]{padding-left:calc(4px * var(--hig-list-item-length-scaling-factor))}html[dir=rtl][_ngcontent-%COMP%] .trail-dropdown-container[_ngcontent-%COMP%]{--dummy2: 0;padding-left:calc(4px * var(--hig-list-item-length-scaling-factor))}.trail-dropdown[_ngcontent-%COMP%]{width:calc(var(--hig-list-item-trail-dropdown-width) * var(--hig-list-item-length-scaling-factor))}.isLtr[_nghost-%COMP%] .trail-spinner-container[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .trail-spinner-container[_ngcontent-%COMP%]{padding-left:calc(16px * var(--hig-list-item-length-scaling-factor))}html[dir=ltr][_ngcontent-%COMP%] .trail-spinner-container[_ngcontent-%COMP%]{--dummy1: 0;padding-left:calc(16px * var(--hig-list-item-length-scaling-factor))}.isRtl[_nghost-%COMP%] .trail-spinner-container[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .trail-spinner-container[_ngcontent-%COMP%]{padding-right:calc(16px * var(--hig-list-item-length-scaling-factor))}html[dir=rtl][_ngcontent-%COMP%] .trail-spinner-container[_ngcontent-%COMP%]{--dummy1: 0;padding-right:calc(16px * var(--hig-list-item-length-scaling-factor))}.isLtr[_nghost-%COMP%] .trail-spinner-container[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .trail-spinner-container[_ngcontent-%COMP%]{padding-right:calc(24px * var(--hig-list-item-length-scaling-factor))}html[dir=ltr][_ngcontent-%COMP%] .trail-spinner-container[_ngcontent-%COMP%]{--dummy2: 0;padding-right:calc(24px * var(--hig-list-item-length-scaling-factor))}.isRtl[_nghost-%COMP%] .trail-spinner-container[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .trail-spinner-container[_ngcontent-%COMP%]{padding-left:calc(24px * var(--hig-list-item-length-scaling-factor))}html[dir=rtl][_ngcontent-%COMP%] .trail-spinner-container[_ngcontent-%COMP%]{--dummy2: 0;padding-left:calc(24px * var(--hig-list-item-length-scaling-factor))}.trail-plaintext-container[_ngcontent-%COMP%]{padding:0px calc(16px * var(--hig-list-item-length-scaling-factor))}.trail-button-spinner-overlay[_ngcontent-%COMP%]{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;z-index:1;background:transparent}"]})}}return ut})();function cl(ut,Pt){if(1&ut&&h.nrm(0,"mat-icon",4),2&ut){const Re=h.XpG().$implicit;h.Y8G("svgIcon",Re.matIcon)}}function Ta(ut,Pt){if(1&ut&&(h.j41(0,"div",3),h.DNE(1,cl,1,1,"mat-icon",4),h.nrm(2,"div",5),h.nI1(3,"translate"),h.k0s()),2&ut){const Re=Pt.$implicit;h.R7$(),h.vxM(1,Re.matIcon?1:-1),h.R7$(),h.Y8G("innerHtml",Re.translated?Re.text:h.i5U(3,2,Re.text,Re.placeholders),h.npT)}}function pl(ut,Pt){if(1&ut&&h.Z7z(0,Ta,4,5,"div",3,h.Vm6),2&ut){const Re=h.XpG();h.Dyx(null==Re.data?null:Re.data.supportingText)}}let io=(()=>{class ut{constructor(){this.topPadding=!1,this.centerAlign=!1}set cardData(Re){this.data=Re,this.topPadding=!!this.data.supportingText&&!!this.data.headline?.text,this.centerAlign=!!this.data.supportingText!=!!this.data.headline?.text}static{this.\u0275fac=function(rn){return new(rn||ut)}}static{this.\u0275cmp=h.VBU({type:ut,selectors:[["nv-hig-list-item-core"]],inputs:{cardData:"cardData"},standalone:!0,features:[h.aNF],decls:5,vars:9,consts:[[1,"core-container","column-layout"],[1,"row-layout"],[1,"headline","font-body1","font-color-primary",3,"innerHtml"],[1,"core-supporting-text-row","font-color-tertiary"],[1,"core-supporting-icon",3,"svgIcon"],[1,"font-body2","font-color-tertiary",3,"innerHtml"]],template:function(rn,an){1&rn&&(h.j41(0,"div",0)(1,"div",1),h.nrm(2,"div",2),h.nI1(3,"translate"),h.k0s(),h.DNE(4,pl,2,0),h.k0s()),2&rn&&(h.AVh("conditional-top-padding",an.topPadding)("center-align",an.centerAlign),h.R7$(2),h.Y8G("innerHtml",null!=an.data&&an.data.headline.translated?null==an.data?null:an.data.headline.text:h.i5U(3,6,null==an.data?null:an.data.headline.text,null==an.data?null:an.data.headline.placeholders),h.npT),h.R7$(2),h.vxM(4,(null==an.data||null==an.data.supportingText?null:an.data.supportingText.length)>0?4:-1))},dependencies:[P.m_,P.An,g.h,g.D9],styles:[".headline[_ngcontent-%COMP%]{text-transform:var(--hig-list-item-core-headline-text-transform)}.core-supporting-text-row[_ngcontent-%COMP%]{display:flex;flex-direction:row;gap:calc(var(--hig-list-item-core-supporting-text-gap) * var(--hig-list-item-length-scaling-factor))}.core-supporting-icon[_ngcontent-%COMP%]{width:calc(var(--hig-list-item-core-supporting-icon-size) * var(--hig-list-item-image-scaling-factor));height:calc(var(--hig-list-item-core-supporting-icon-size) * var(--hig-list-item-image-scaling-factor));flex:0 0 auto}.column-layout[_ngcontent-%COMP%]{display:flex;flex-direction:column}.row-layout[_ngcontent-%COMP%]{display:flex;flex-direction:row}.core-container[_ngcontent-%COMP%]{min-height:calc(var(--hig-list-item-core-min-height) * var(--hig-list-item-length-scaling-factor));gap:calc(var(--hig-list-item-core-supporting-text-gap) * var(--hig-list-item-length-scaling-factor))}.conditional-top-padding[_ngcontent-%COMP%]{padding-top:calc(12px * var(--hig-list-item-length-scaling-factor))}.center-align[_ngcontent-%COMP%]{justify-content:center}"]})}}return ut})();function Fa(ut,Pt){if(1&ut&&(h.j41(0,"div",0),h.nrm(1,"mat-icon",1),h.k0s()),2&ut){const Re=h.XpG();h.R7$(),h.Y8G("svgIcon",Re.data.icon)}}function Mr(ut,Pt){if(1&ut&&h.nrm(0,"img",5),2&ut){const Re=h.XpG(2);h.Y8G("src",Re.data.badgeIcon,h.B4B)}}function Ze(ut,Pt){if(1&ut&&(h.j41(0,"div",2)(1,"div",3),h.nrm(2,"img",4),h.DNE(3,Mr,1,1,"img",5),h.k0s()()),2&ut){const Re=h.XpG();h.R7$(2),h.Y8G("src",Re.data.primaryIcon,h.B4B),h.R7$(),h.vxM(3,Re.data.badgeIcon?3:-1)}}function _(ut,Pt){if(1&ut&&(h.j41(0,"div",6),h.nrm(1,"img",7),h.k0s()),2&ut){const Re=h.XpG();h.R7$(),h.Y8G("src",Re.data.image,h.B4B)}}function D(ut,Pt){if(1&ut&&(h.j41(0,"div",8),h.nrm(1,"img",9),h.k0s()),2&ut){const Re=h.XpG();h.R7$(),h.Y8G("src",Re.data.image,h.B4B)}}let I=(()=>{class ut{constructor(){this.checkboxClicked=new h.bkB,this.leadElementType=Un}set cardData(Re){this.data=Re}checkBoxClick(Re){this.checkboxClicked.emit(Re.checked)}static{this.\u0275fac=function(rn){return new(rn||ut)}}static{this.\u0275cmp=h.VBU({type:ut,selectors:[["nv-hig-list-item-lead"]],inputs:{cardData:"cardData"},outputs:{checkboxClicked:"checkboxClicked"},standalone:!0,features:[h.aNF],decls:4,vars:1,consts:[[1,"lead-offset","lead-icon-container"],[1,"lead-icon",3,"svgIcon"],[1,"lead-offset","lead-avatar-container"],[1,"lead-avatar-box"],[1,"lead-avatar-icon",3,"src"],[1,"lead-avatar-badge",3,"src"],[1,"lead-offset","lead-square-image-container"],[1,"lead-square-image",3,"src"],[1,"lead-rectangular-image-container"],[1,"lead-rectangular-image",3,"src"]],template:function(rn,an){if(1&rn&&h.DNE(0,Fa,2,1)(1,Ze,4,2)(2,_,2,1)(3,D,2,1),2&rn){let Hn;h.vxM(0,(Hn=an.data.elementType)===an.leadElementType.Icon?0:Hn===an.leadElementType.AvatarIcon?1:Hn===an.leadElementType.SquareImage?2:Hn===an.leadElementType.RectangularImage?3:-1)}},dependencies:[P.m_,P.An],styles:[".isLtr[_nghost-%COMP%] .lead-offset[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .lead-offset[_ngcontent-%COMP%]{padding-left:calc(16px * var(--hig-list-item-length-scaling-factor))}html[dir=ltr][_ngcontent-%COMP%] .lead-offset[_ngcontent-%COMP%]{--dummy1: 0;padding-left:calc(16px * var(--hig-list-item-length-scaling-factor))}.isRtl[_nghost-%COMP%] .lead-offset[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .lead-offset[_ngcontent-%COMP%]{padding-right:calc(16px * var(--hig-list-item-length-scaling-factor))}html[dir=rtl][_ngcontent-%COMP%] .lead-offset[_ngcontent-%COMP%]{--dummy1: 0;padding-right:calc(16px * var(--hig-list-item-length-scaling-factor))}.lead-icon-container[_ngcontent-%COMP%]{padding:calc(12px * var(--hig-list-item-length-scaling-factor)) 0px}.lead-icon[_ngcontent-%COMP%]{width:calc(var(--hig-list-item-lead-icon-size) * var(--hig-list-item-image-scaling-factor));height:calc(var(--hig-list-item-lead-icon-size) * var(--hig-list-item-image-scaling-factor));color:var(--hig-list-item-lead-icon-color)}.lead-square-image-container[_ngcontent-%COMP%]{padding:calc(8px * var(--hig-list-item-length-scaling-factor)) 0px}.lead-square-image[_ngcontent-%COMP%]{width:calc(var(--hig-list-item-lead-square-image-size) * var(--hig-list-item-image-scaling-factor));height:calc(var(--hig-list-item-lead-square-image-size) * var(--hig-list-item-image-scaling-factor))}.lead-rectangular-image-container[_ngcontent-%COMP%]{padding:calc(12px * var(--hig-list-item-length-scaling-factor)) 0px}.lead-rectangular-image[_ngcontent-%COMP%]{width:calc(var(--hig-list-item-lead-rectangular-image-width) * var(--hig-list-item-image-scaling-factor));height:calc(var(--hig-list-item-lead-rectangular-image-height) * var(--hig-list-item-image-scaling-factor))}.lead-avatar-container[_ngcontent-%COMP%]{width:calc(var(--hig-list-item-lead-avatar-icon-size) * var(--hig-list-item-image-scaling-factor));height:calc(var(--hig-list-item-lead-avatar-icon-size) * var(--hig-list-item-image-scaling-factor));padding:calc(8px * var(--hig-list-item-length-scaling-factor)) 0px}.lead-avatar-box[_ngcontent-%COMP%]{position:relative;width:calc(var(--hig-list-item-lead-avatar-icon-size) * var(--hig-list-item-image-scaling-factor));height:calc(var(--hig-list-item-lead-avatar-icon-size) * var(--hig-list-item-image-scaling-factor))}.lead-avatar-icon[_ngcontent-%COMP%]{width:calc(var(--hig-list-item-lead-avatar-icon-size) * var(--hig-list-item-image-scaling-factor));height:calc(var(--hig-list-item-lead-avatar-icon-size) * var(--hig-list-item-image-scaling-factor))}.lead-avatar-badge[_ngcontent-%COMP%]{position:absolute;width:calc(var(--hig-list-item-lead-avatar-badge-width) * var(--hig-list-item-image-scaling-factor));height:calc(var(--hig-list-item-lead-avatar-badge-height) * var(--hig-list-item-image-scaling-factor));bottom:0}.isLtr[_nghost-%COMP%] .lead-avatar-badge[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .lead-avatar-badge[_ngcontent-%COMP%]{right:0}.isRtl[_nghost-%COMP%] .lead-avatar-badge[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .lead-avatar-badge[_ngcontent-%COMP%]{left:0}"]})}}return ut})();function j(ut,Pt){if(1&ut&&h.nrm(0,"nv-hig-list-item-lead",1),2&ut){const Re=h.XpG();h.Y8G("cardData",Re.data.lead)}}function pe(ut,Pt){if(1&ut){const Re=h.RV6();h.j41(0,"nv-hig-list-item-trail",6),h.bIt("primaryButtonClicked",function(an){h.eBV(Re);const Hn=h.XpG();return h.Njj(Hn.primaryButtonClick(an))})("secondaryButtonClicked",function(an){h.eBV(Re);const Hn=h.XpG();return h.Njj(Hn.secondaryButtonClick(an))})("toggleClicked",function(an){h.eBV(Re);const Hn=h.XpG();return h.Njj(Hn.toggleClick(an))})("selectionChanged",function(an){h.eBV(Re);const Hn=h.XpG();return h.Njj(Hn.selectionChange(an))}),h.k0s()}if(2&ut){const Re=h.XpG();h.Y8G("cardData",Re.data.trail)("dialogPanelClass",Re.dialogPanelClass)("spinnerDiameter",Re.spinnerDiameter)("useDifferForUpdate",Re.useDifferForUpdate)}}function _e(ut,Pt){if(1&ut&&h.nrm(0,"nv-hig-list-item-context",1),2&ut){const Re=h.XpG();h.Y8G("cardData",Re.data.context)}}function xe(ut,Pt){if(1&ut){const Re=h.RV6();h.j41(0,"nv-hig-list-item-context-cta",7),h.bIt("primaryButtonClicked",function(an){h.eBV(Re);const Hn=h.XpG();return h.Njj(Hn.primaryContextButtonClick(an))})("secondaryButtonClicked",function(an){h.eBV(Re);const Hn=h.XpG();return h.Njj(Hn.secondaryContextButtonClick(an))}),h.k0s()}if(2&ut){const Re=h.XpG();h.Y8G("cardData",Re.data.context)}}let He=(()=>{class ut{set cardData(Re){this.data=Re}constructor(Re){this.dialogPanelClass="",this.useDifferForUpdate=!1,this.primaryButtonClicked=new h.bkB,this.secondaryButtonClicked=new h.bkB,this.toggleClicked=new h.bkB,this.selectionChanged=new h.bkB,this.primaryContextButtonClicked=new h.bkB,this.secondaryContextButtonClicked=new h.bkB,this.leadElementType=Un,this.trailElementType=ii,this.spinnerDiameter=16,this.tvMode=!!Re?.tvMode,this.tvMode&&(this.spinnerDiameter*=1.5)}primaryButtonClick(Re){this.primaryButtonClicked.emit(Re)}secondaryButtonClick(Re){this.secondaryButtonClicked.emit(Re)}toggleClick(Re){this.toggleClicked.emit(Re)}selectionChange(Re){this.selectionChanged.emit(Re)}primaryContextButtonClick(Re){this.primaryContextButtonClicked.emit(Re)}secondaryContextButtonClick(Re){this.secondaryContextButtonClicked.emit(Re)}static{this.\u0275fac=function(rn){return new(rn||ut)(h.rXU(Nr.X,8))}}static{this.\u0275cmp=h.VBU({type:ut,selectors:[["nv-hig-list-item"]],inputs:{cardData:"cardData",dialogPanelClass:"dialogPanelClass",useDifferForUpdate:"useDifferForUpdate"},outputs:{primaryButtonClicked:"primaryButtonClicked",secondaryButtonClicked:"secondaryButtonClicked",toggleClicked:"toggleClicked",selectionChanged:"selectionChanged",primaryContextButtonClicked:"primaryContextButtonClicked",secondaryContextButtonClicked:"secondaryContextButtonClicked"},standalone:!0,features:[h.aNF],decls:9,vars:5,consts:[[1,"card-container"],[3,"cardData"],[1,"card-inner-container"],[1,"core-trail-container"],[3,"cardData","dialogPanelClass","spinnerDiameter","useDifferForUpdate"],[1,"context-container"],[3,"primaryButtonClicked","secondaryButtonClicked","toggleClicked","selectionChanged","cardData","dialogPanelClass","spinnerDiameter","useDifferForUpdate"],[3,"primaryButtonClicked","secondaryButtonClicked","cardData"]],template:function(rn,an){1&rn&&(h.j41(0,"div",0),h.DNE(1,j,1,1,"nv-hig-list-item-lead",1),h.j41(2,"div",2)(3,"div",3),h.nrm(4,"nv-hig-list-item-core",1),h.DNE(5,pe,1,4,"nv-hig-list-item-trail",4),h.k0s(),h.j41(6,"div",5),h.DNE(7,_e,1,1,"nv-hig-list-item-context",1)(8,xe,1,1,"nv-hig-list-item-context-cta",1),h.k0s()()()),2&rn&&(h.R7$(),h.vxM(1,null!=an.data&&an.data.lead?1:-1),h.R7$(3),h.Y8G("cardData",an.data.core),h.R7$(),h.vxM(5,null!=an.data&&an.data.trail?5:-1),h.R7$(2),h.vxM(7,null!=an.data&&an.data.context?7:-1),h.R7$(),h.vxM(8,null!=an.data&&null!=an.data.context&&an.data.context.primaryButton?8:-1))},dependencies:[I,io,rs,Qa,Ma],styles:["[_ngcontent-%COMP%]:root{--rwd-column-count: 4;--rwd-gutter-count: 3 ;--rwd-gutter-size: 8px;--rwd-container-side-spacing: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 3 ) / 4);--rwd-sidebar-width: 0px;--rwd-container-width: 100vw}@media screen and (min-width: 480px){[_ngcontent-%COMP%]:root{--rwd-column-count: 6;--rwd-gutter-count: 5 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 5 ) / 6)}}@media screen and (min-width: 720px){[_ngcontent-%COMP%]:root{--rwd-column-count: 8;--rwd-gutter-count: 7 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 7 ) / 8)}}@media screen and (min-width: 960px){[_ngcontent-%COMP%]:root{--rwd-column-count: 12;--rwd-gutter-count: 11 ;--rwd-container-side-spacing: 24px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 8px * 11 ) / 12)}}@media screen and (min-width: 1440px){[_ngcontent-%COMP%]:root{--rwd-gutter-size: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 16px * 11 ) / 12)}}[_nghost-%COMP%]{display:contents;--hig-list-item-display: contents;--hig-list-item-context-display: flex;--hig-list-item-image-scaling-factor: 1;--hig-list-item-length-scaling-factor: 1;--hig-list-item-lead-column: 1 / span 1;--hig-list-item-core-column: 2 / span 1;--hig-list-item-trail-column: 3 / span 1;--hig-list-item-context-column: 2 / span 2;--hig-list-item-context-text-column: 2 / span 1;--hig-list-item-context-cta-column: 3 / span 1;--hig-list-item-core-headline-text-transform: none;--hig-list-item-core-min-height: 48px;--hig-list-item-core-supporting-icon-size: 20px;--hig-list-item-core-supporting-text-gap: 0px;--hig-list-item-lead-icon-size: 24px;--hig-list-item-lead-square-image-size: 56px;--hig-list-item-lead-rectangular-image-width: 100px;--hig-list-item-lead-rectangular-image-height: 56px;--hig-list-item-lead-avatar-icon-size: 40px;--hig-list-item-lead-avatar-badge-width: 20px;--hig-list-item-lead-avatar-badge-height: 17px;--hig-list-item-lead-icon-color: rgba(255, 255, 255, .9);--hig-list-item-trail-icon-size: 24px;--hig-list-item-trail-dropdown-width: 148px;--hig-list-item-trail-rotary-width: 144px;--hig-list-item-trail-rotary-height: 40px;--hig-list-item-trail-button-gap: 8px;--hig-list-item-trail-switch-width: 64px;--hig-list-item-trail-justify-items: end;--hig-list-item-context-justify-items: space-between;--hig-list-item-context-supporting-icon-size: 20px;--hig-list-item-context-supporting-text-gap: 8px;--hig-list-item-context-vertical-padding: 8px;--hig-list-item-context-cta-button-gap: 8px;--hig-list-item-context-cta-justify-items: end;--hig-list-item-container-padding: 4px}nv-hig-list-item-core[_ngcontent-%COMP%]{padding:calc(var(--hig-list-item-container-padding) * var(--hig-list-item-length-scaling-factor)) calc(16px * var(--hig-list-item-length-scaling-factor));min-height:calc(var(--hig-list-item-core-min-height) * var(--hig-list-item-length-scaling-factor));grid-column:var(--hig-list-item-core-column)}nv-hig-list-item-lead[_ngcontent-%COMP%]{padding:calc(var(--hig-list-item-container-padding) * var(--hig-list-item-length-scaling-factor)) 0px;grid-column:var(--hig-list-item-lead-column)}nv-hig-list-item-trail[_ngcontent-%COMP%]{display:flex;padding:calc(var(--hig-list-item-container-padding) * var(--hig-list-item-length-scaling-factor)) 0px;justify-content:var(--hig-list-item-trail-justify-items);grid-column:var(--hig-list-item-trail-column)}nv-hig-list-item-context[_ngcontent-%COMP%]{padding:0px calc(16px * var(--hig-list-item-length-scaling-factor)) calc(var(--hig-list-item-container-padding) * var(--hig-list-item-length-scaling-factor)) calc(16px * var(--hig-list-item-length-scaling-factor));grid-column:var(--hig-list-item-context-text-column)}nv-hig-list-item-context-cta[_ngcontent-%COMP%]{display:flex;padding-bottom:calc(var(--hig-list-item-container-padding) * var(--hig-list-item-length-scaling-factor));justify-content:var(--hig-list-item-context-cta-justify-items);grid-column:var(--hig-list-item-context-cta-column)}.card-container[_ngcontent-%COMP%], .card-inner-container[_ngcontent-%COMP%], .core-trail-container[_ngcontent-%COMP%]{display:var(--hig-list-item-display)}.context-container[_ngcontent-%COMP%]{display:var(--hig-list-item-context-display);justify-content:var(--hig-card-context-justify-items);grid-column:var(--hig-list-item-context-column)}"]})}}return ut})();function ht(ut,Pt){1&ut&&h.nrm(0,"div",1)}function yt(ut,Pt){if(1&ut&&(h.j41(0,"div",2),h.nrm(1,"mat-icon",7),h.k0s()),2&ut){const Re=h.XpG();h.R7$(),h.FS9("svgIcon",Re.data.leadIcon)}}function Gt(ut,Pt){if(1&ut&&(h.j41(0,"span",8),h.EFF(1),h.nI1(2,"translate"),h.k0s()),2&ut){const Re=h.XpG(2);h.R7$(),h.JRh(h.bMT(2,1,Re.data.headerText))}}function $t(ut,Pt){if(1&ut&&(h.j41(0,"span",9),h.EFF(1),h.nI1(2,"translate"),h.k0s()),2&ut){const Re=h.XpG(2);h.R7$(),h.JRh(h.bMT(2,1,Re.data.supportingText))}}function st(ut,Pt){if(1&ut&&(h.j41(0,"div"),h.DNE(1,Gt,3,3,"span",8)(2,$t,3,3,"span",9),h.k0s()),2&ut){const Re=h.XpG();h.AVh("text-content",Re.data.headerText&&Re.data.supportingText)("supporting-text-only",!Re.data.headerText),h.R7$(),h.vxM(1,Re.data.headerText?1:-1),h.R7$(),h.vxM(2,Re.data.supportingText?2:-1)}}function tt(ut,Pt){if(1&ut){const Re=h.RV6();h.j41(0,"div",5)(1,"button",10),h.bIt("click",function(an){h.eBV(Re);const Hn=h.XpG();return h.Njj(Hn.onPrimaryButtonClick(an))}),h.EFF(2),h.nI1(3,"translate"),h.k0s(),h.j41(4,"button",10),h.bIt("click",function(an){h.eBV(Re);const Hn=h.XpG();return h.Njj(Hn.onSecondaryButtonClick(an))}),h.EFF(5),h.nI1(6,"translate"),h.k0s()()}if(2&ut){const Re=h.XpG();h.R7$(2),h.SpI(" ",h.bMT(3,2,Re.data.primaryButtonText)," "),h.R7$(3),h.SpI(" ",h.bMT(6,4,Re.data.secondaryButtonText)," ")}}function Tt(ut,Pt){if(1&ut){const Re=h.RV6();h.j41(0,"div",11)(1,"button",12),h.bIt("click",function(an){h.eBV(Re);const Hn=h.XpG();return h.Njj(Hn.onIconButtonClick(an))}),h.nrm(2,"mat-icon",7),h.k0s()()}if(2&ut){const Re=h.XpG();h.AVh("icon-button-when-supporting-text-only",!Re.data.headerText&&Re.data.supportingText),h.R7$(2),h.FS9("svgIcon",Re.data.iconButton)}}let Ye=(()=>{class ut{constructor(){this.data={},this.primaryButtonClicked=new h.bkB,this.secondaryButtonClicked=new h.bkB,this.iconButtonClicked=new h.bkB}onPrimaryButtonClick(Re){this.primaryButtonClicked.emit(Re)}onSecondaryButtonClick(Re){this.secondaryButtonClicked.emit(Re)}onIconButtonClick(Re){this.iconButtonClicked.emit(Re)}static{this.\u0275fac=function(rn){return new(rn||ut)}}static{this.\u0275cmp=h.VBU({type:ut,selectors:[["nv-hig-list-insert"]],inputs:{data:"data"},outputs:{primaryButtonClicked:"primaryButtonClicked",secondaryButtonClicked:"secondaryButtonClicked",iconButtonClicked:"iconButtonClicked"},standalone:!0,features:[h.aNF],decls:7,vars:6,consts:[[1,"nv-hig-list-insert-container",3,"ngClass"],[1,"left-border"],[1,"lead-icon"],[1,"core-container"],[3,"text-content","supporting-text-only"],[1,"buttons-group"],[1,"icon-button",3,"icon-button-when-supporting-text-only"],[3,"svgIcon"],[1,"header-text","font-body1","font-color-primary"],[1,"font-body2","font-color-primary"],["mat-button","","cdkFocusInitial","",1,"font-button2",3,"click"],[1,"icon-button"],["mat-icon-button","",3,"click"]],template:function(rn,an){1&rn&&(h.j41(0,"div",0),h.DNE(1,ht,1,0,"div",1)(2,yt,2,1,"div",2),h.j41(3,"div",3),h.DNE(4,st,3,6,"div",4)(5,tt,7,6,"div",5),h.k0s(),h.DNE(6,Tt,3,3,"div",6),h.k0s()),2&rn&&(h.Y8G("ngClass",null==an.data?null:an.data.colorTheme),h.R7$(),h.vxM(1,an.data.isLeftBorder?1:-1),h.R7$(),h.vxM(2,an.data.leadIcon?2:-1),h.R7$(2),h.vxM(4,an.data.headerText||an.data.supportingText?4:-1),h.R7$(),h.vxM(5,an.data.primaryButtonText||an.data.secondaryButtonText?5:-1),h.R7$(),h.vxM(6,an.data.iconButton?6:-1))},dependencies:[i.YU,Fe.Cc,Fe.PW,P.m_,P.An,E.wG,E.iV,g.h,g.D9],styles:["[_ngcontent-%COMP%]:root{--rwd-column-count: 4;--rwd-gutter-count: 3 ;--rwd-gutter-size: 8px;--rwd-container-side-spacing: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 3 ) / 4);--rwd-sidebar-width: 0px;--rwd-container-width: 100vw}@media screen and (min-width: 480px){[_ngcontent-%COMP%]:root{--rwd-column-count: 6;--rwd-gutter-count: 5 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 5 ) / 6)}}@media screen and (min-width: 720px){[_ngcontent-%COMP%]:root{--rwd-column-count: 8;--rwd-gutter-count: 7 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 7 ) / 8)}}@media screen and (min-width: 960px){[_ngcontent-%COMP%]:root{--rwd-column-count: 12;--rwd-gutter-count: 11 ;--rwd-container-side-spacing: 24px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 8px * 11 ) / 12)}}@media screen and (min-width: 1440px){[_ngcontent-%COMP%]:root{--rwd-gutter-size: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 16px * 11 ) / 12)}}.isRtl[_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{transform:scaleX(-1)}html[dir=rtl][_ngcontent-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{--dummy: 0;transform:scaleX(-1)}.hotkey-border[_ngcontent-%COMP%]{border:1px solid #ffffff;padding:4px 8px;font-weight:500;line-height:32px;margin:4px}[_nghost-%COMP%]{--hig-list-item-display: contents;--hig-list-item-context-display: flex;--hig-list-item-image-scaling-factor: 1;--hig-list-item-length-scaling-factor: 1;--hig-list-item-lead-column: 1 / span 1;--hig-list-item-core-column: 2 / span 1;--hig-list-item-trail-column: 3 / span 1;--hig-list-item-context-column: 2 / span 2;--hig-list-item-context-text-column: 2 / span 1;--hig-list-item-context-cta-column: 3 / span 1;--hig-list-item-core-headline-text-transform: none;--hig-list-item-core-min-height: 48px;--hig-list-item-core-supporting-icon-size: 20px;--hig-list-item-core-supporting-text-gap: 0px;--hig-list-item-lead-icon-size: 24px;--hig-list-item-lead-square-image-size: 56px;--hig-list-item-lead-rectangular-image-width: 100px;--hig-list-item-lead-rectangular-image-height: 56px;--hig-list-item-lead-avatar-icon-size: 40px;--hig-list-item-lead-avatar-badge-width: 20px;--hig-list-item-lead-avatar-badge-height: 17px;--hig-list-item-lead-icon-color: rgba(255, 255, 255, .9);--hig-list-item-trail-icon-size: 24px;--hig-list-item-trail-dropdown-width: 148px;--hig-list-item-trail-rotary-width: 144px;--hig-list-item-trail-rotary-height: 40px;--hig-list-item-trail-button-gap: 8px;--hig-list-item-trail-switch-width: 64px;--hig-list-item-trail-justify-items: end;--hig-list-item-context-justify-items: space-between;--hig-list-item-context-supporting-icon-size: 20px;--hig-list-item-context-supporting-text-gap: 8px;--hig-list-item-context-vertical-padding: 8px;--hig-list-item-context-cta-button-gap: 8px;--hig-list-item-context-cta-justify-items: end;--hig-list-item-container-padding: 4px;width:100%}.nv-hig-list-insert-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:stretch;width:100%}.nv-hig-list-insert-container[_ngcontent-%COMP%] .left-border[_ngcontent-%COMP%]{display:flex;border-left:4px solid white}.nv-hig-list-insert-container[_ngcontent-%COMP%] .lead-icon[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center}.isLtr[_nghost-%COMP%] .nv-hig-list-insert-container[_ngcontent-%COMP%] .lead-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-hig-list-insert-container[_ngcontent-%COMP%] .lead-icon[_ngcontent-%COMP%]{padding:calc(12px * var(--hig-list-item-length-scaling-factor)) 0px calc(12px * var(--hig-list-item-length-scaling-factor)) calc(16px * var(--hig-list-item-length-scaling-factor))}html[dir=ltr][_ngcontent-%COMP%] .nv-hig-list-insert-container[_ngcontent-%COMP%] .lead-icon[_ngcontent-%COMP%]{--dummy: 0;padding:calc(12px * var(--hig-list-item-length-scaling-factor)) 0px calc(12px * var(--hig-list-item-length-scaling-factor)) calc(16px * var(--hig-list-item-length-scaling-factor))}.isRtl[_nghost-%COMP%] .nv-hig-list-insert-container[_ngcontent-%COMP%] .lead-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-hig-list-insert-container[_ngcontent-%COMP%] .lead-icon[_ngcontent-%COMP%]{padding:calc(12px * var(--hig-list-item-length-scaling-factor)) calc(16px * var(--hig-list-item-length-scaling-factor)) calc(12px * var(--hig-list-item-length-scaling-factor)) 0px}html[dir=rtl][_ngcontent-%COMP%] .nv-hig-list-insert-container[_ngcontent-%COMP%] .lead-icon[_ngcontent-%COMP%]{--dummy: 0;padding:calc(12px * var(--hig-list-item-length-scaling-factor)) calc(16px * var(--hig-list-item-length-scaling-factor)) calc(12px * var(--hig-list-item-length-scaling-factor)) 0px}.nv-hig-list-insert-container[_ngcontent-%COMP%] .core-container[_ngcontent-%COMP%]{display:flex;width:100%;flex-direction:row;flex:1;gap:inherit;justify-content:space-between}.nv-hig-list-insert-container[_ngcontent-%COMP%] .core-container[_ngcontent-%COMP%] .text-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex:1;padding:calc(8px * var(--hig-list-item-length-scaling-factor)) calc(16px * var(--hig-list-item-length-scaling-factor))}.nv-hig-list-insert-container[_ngcontent-%COMP%] .core-container[_ngcontent-%COMP%] .supporting-text-only[_ngcontent-%COMP%]{display:flex;flex:1;align-self:center;padding:calc(8px * var(--hig-list-item-length-scaling-factor)) calc(16px * var(--hig-list-item-length-scaling-factor))}.nv-hig-list-insert-container[_ngcontent-%COMP%] .core-container[_ngcontent-%COMP%] .buttons-group[_ngcontent-%COMP%]{display:flex;flex-direction:row;gap:calc(8px * var(--hig-list-item-length-scaling-factor));align-self:center}.isLtr[_nghost-%COMP%] .nv-hig-list-insert-container[_ngcontent-%COMP%] .core-container[_ngcontent-%COMP%] .buttons-group[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-hig-list-insert-container[_ngcontent-%COMP%] .core-container[_ngcontent-%COMP%] .buttons-group[_ngcontent-%COMP%]{padding:calc(6px * var(--hig-list-item-length-scaling-factor)) calc(8px * var(--hig-list-item-length-scaling-factor)) calc(6px * var(--hig-list-item-length-scaling-factor)) 0px}html[dir=ltr][_ngcontent-%COMP%] .nv-hig-list-insert-container[_ngcontent-%COMP%] .core-container[_ngcontent-%COMP%] .buttons-group[_ngcontent-%COMP%]{--dummy: 0;padding:calc(6px * var(--hig-list-item-length-scaling-factor)) calc(8px * var(--hig-list-item-length-scaling-factor)) calc(6px * var(--hig-list-item-length-scaling-factor)) 0px}.isRtl[_nghost-%COMP%] .nv-hig-list-insert-container[_ngcontent-%COMP%] .core-container[_ngcontent-%COMP%] .buttons-group[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-hig-list-insert-container[_ngcontent-%COMP%] .core-container[_ngcontent-%COMP%] .buttons-group[_ngcontent-%COMP%]{padding:calc(6px * var(--hig-list-item-length-scaling-factor)) 0px calc(6px * var(--hig-list-item-length-scaling-factor)) calc(8px * var(--hig-list-item-length-scaling-factor))}html[dir=rtl][_ngcontent-%COMP%] .nv-hig-list-insert-container[_ngcontent-%COMP%] .core-container[_ngcontent-%COMP%] .buttons-group[_ngcontent-%COMP%]{--dummy: 0;padding:calc(6px * var(--hig-list-item-length-scaling-factor)) 0px calc(6px * var(--hig-list-item-length-scaling-factor)) calc(8px * var(--hig-list-item-length-scaling-factor))}.nv-hig-list-insert-container[_ngcontent-%COMP%] .core-container[_ngcontent-%COMP%] .buttons-group[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{min-width:64px}.nv-hig-list-insert-container[_ngcontent-%COMP%] .icon-button[_ngcontent-%COMP%]{display:flex;align-self:center;justify-content:center}.isLtr[_nghost-%COMP%] .nv-hig-list-insert-container[_ngcontent-%COMP%] .icon-button[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-hig-list-insert-container[_ngcontent-%COMP%] .icon-button[_ngcontent-%COMP%]{padding-right:calc(8px * var(--hig-list-item-length-scaling-factor))}html[dir=ltr][_ngcontent-%COMP%] .nv-hig-list-insert-container[_ngcontent-%COMP%] .icon-button[_ngcontent-%COMP%]{--dummy2: 0;padding-right:calc(8px * var(--hig-list-item-length-scaling-factor))}.isRtl[_nghost-%COMP%] .nv-hig-list-insert-container[_ngcontent-%COMP%] .icon-button[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-hig-list-insert-container[_ngcontent-%COMP%] .icon-button[_ngcontent-%COMP%]{padding-left:calc(8px * var(--hig-list-item-length-scaling-factor))}html[dir=rtl][_ngcontent-%COMP%] .nv-hig-list-insert-container[_ngcontent-%COMP%] .icon-button[_ngcontent-%COMP%]{--dummy2: 0;padding-left:calc(8px * var(--hig-list-item-length-scaling-factor))}.nv-hig-list-insert-container[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{width:calc(24px * var(--hig-list-item-image-scaling-factor));height:calc(24px * var(--hig-list-item-image-scaling-factor));font-size:calc(24px * var(--hig-list-item-image-scaling-factor))}.nv-hig-list-insert-container.theme-white[_ngcontent-%COMP%]{background-color:#ffffff1f}.nv-hig-list-insert-container.theme-white[_ngcontent-%COMP%] .left-border[_ngcontent-%COMP%]{border-left-color:#ffffffe6}.nv-hig-list-insert-container.theme-white[_ngcontent-%COMP%] .lead-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:#ffffffe6}.nv-hig-list-insert-container.theme-red[_ngcontent-%COMP%]{background-color:#fe1b0b33}.nv-hig-list-insert-container.theme-red[_ngcontent-%COMP%] .left-border[_ngcontent-%COMP%]{border-left-color:#fe1b0b}.nv-hig-list-insert-container.theme-red[_ngcontent-%COMP%] .lead-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:#fe1b0b}.nv-hig-list-insert-container.theme-yellow[_ngcontent-%COMP%]{background-color:#ffb43e33}.nv-hig-list-insert-container.theme-yellow[_ngcontent-%COMP%] .left-border[_ngcontent-%COMP%]{border-left-color:#ffb43e}.nv-hig-list-insert-container.theme-yellow[_ngcontent-%COMP%] .lead-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:#ffb43e}.nv-hig-list-insert-container.theme-blue[_ngcontent-%COMP%]{background-color:#0b8abc33}.nv-hig-list-insert-container.theme-blue[_ngcontent-%COMP%] .left-border[_ngcontent-%COMP%]{border-left-color:#0b8abc}.nv-hig-list-insert-container.theme-blue[_ngcontent-%COMP%] .lead-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:#0b8abc}.nv-hig-list-insert-container.theme-green[_ngcontent-%COMP%]{background-color:#76b90033}.nv-hig-list-insert-container.theme-green[_ngcontent-%COMP%] .left-border[_ngcontent-%COMP%]{border-left-color:#76b900}.nv-hig-list-insert-container.theme-green[_ngcontent-%COMP%] .lead-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:#76b900}@media screen and (max-width: 719px){.nv-hig-list-insert-container[_ngcontent-%COMP%] .lead-icon[_ngcontent-%COMP%], .nv-hig-list-insert-container[_ngcontent-%COMP%] .icon-button[_ngcontent-%COMP%]{align-self:flex-start}.nv-hig-list-insert-container[_ngcontent-%COMP%] .core-container[_ngcontent-%COMP%]{flex-direction:column;align-items:flex-start}.nv-hig-list-insert-container[_ngcontent-%COMP%] .core-container[_ngcontent-%COMP%] .supporting-text-only[_ngcontent-%COMP%]{align-self:flex-start;align-items:center}.nv-hig-list-insert-container[_ngcontent-%COMP%] .core-container[_ngcontent-%COMP%] .buttons-group[_ngcontent-%COMP%]{align-self:flex-start}.nv-hig-list-insert-container[_ngcontent-%COMP%] .icon-button-when-supporting-text-only[_ngcontent-%COMP%]{align-self:center}.isLtr[_nghost-%COMP%] .nv-hig-list-insert-container[_ngcontent-%COMP%] .icon-button[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .nv-hig-list-insert-container[_ngcontent-%COMP%] .icon-button[_ngcontent-%COMP%]{margin-left:-8px}html[dir=ltr][_ngcontent-%COMP%] .nv-hig-list-insert-container[_ngcontent-%COMP%] .icon-button[_ngcontent-%COMP%]{--dummy3: 0;margin-left:-8px}.isRtl[_nghost-%COMP%] .nv-hig-list-insert-container[_ngcontent-%COMP%] .icon-button[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .nv-hig-list-insert-container[_ngcontent-%COMP%] .icon-button[_ngcontent-%COMP%]{margin-right:-8px}html[dir=rtl][_ngcontent-%COMP%] .nv-hig-list-insert-container[_ngcontent-%COMP%] .icon-button[_ngcontent-%COMP%]{--dummy3: 0;margin-right:-8px}}.tv-view[_nghost-%COMP%], .tv-view [_nghost-%COMP%]{--hig-list-item-length-scaling-factor: 2;--hig-list-item-image-scaling-factor: 1.5}.tv-view[_nghost-%COMP%] .nv-hig-list-insert-container[_ngcontent-%COMP%] .lead-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-hig-list-insert-container[_ngcontent-%COMP%] .lead-icon[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .nv-hig-list-insert-container[_ngcontent-%COMP%] .icon-button[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-hig-list-insert-container[_ngcontent-%COMP%] .icon-button[_ngcontent-%COMP%]{align-self:center}.tv-view[_nghost-%COMP%] .nv-hig-list-insert-container[_ngcontent-%COMP%] .core-container[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-hig-list-insert-container[_ngcontent-%COMP%] .core-container[_ngcontent-%COMP%]{flex-direction:row;align-items:center}.isLtr.tv-view[_nghost-%COMP%] .nv-hig-list-insert-container[_ngcontent-%COMP%] .icon-button[_ngcontent-%COMP%], .isLtr.tv-view [_nghost-%COMP%] .nv-hig-list-insert-container[_ngcontent-%COMP%] .icon-button[_ngcontent-%COMP%], .isLtr .tv-view[_nghost-%COMP%] .nv-hig-list-insert-container[_ngcontent-%COMP%] .icon-button[_ngcontent-%COMP%], .isLtr .tv-view [_nghost-%COMP%] .nv-hig-list-insert-container[_ngcontent-%COMP%] .icon-button[_ngcontent-%COMP%], .tv-view .isLtr[_nghost-%COMP%] .nv-hig-list-insert-container[_ngcontent-%COMP%] .icon-button[_ngcontent-%COMP%], .tv-view .isLtr [_nghost-%COMP%] .nv-hig-list-insert-container[_ngcontent-%COMP%] .icon-button[_ngcontent-%COMP%]{padding-right:calc(20px * var(--hig-list-item-length-scaling-factor))}html[dir=ltr] .tv-view[_nghost-%COMP%] .nv-hig-list-insert-container[_ngcontent-%COMP%] .icon-button[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-hig-list-insert-container[_ngcontent-%COMP%] .icon-button[_ngcontent-%COMP%]{--dummy2: 0;padding-right:calc(20px * var(--hig-list-item-length-scaling-factor))}.isRtl.tv-view[_nghost-%COMP%] .nv-hig-list-insert-container[_ngcontent-%COMP%] .icon-button[_ngcontent-%COMP%], .isRtl.tv-view [_nghost-%COMP%] .nv-hig-list-insert-container[_ngcontent-%COMP%] .icon-button[_ngcontent-%COMP%], .isRtl .tv-view[_nghost-%COMP%] .nv-hig-list-insert-container[_ngcontent-%COMP%] .icon-button[_ngcontent-%COMP%], .isRtl .tv-view [_nghost-%COMP%] .nv-hig-list-insert-container[_ngcontent-%COMP%] .icon-button[_ngcontent-%COMP%], .tv-view .isRtl[_nghost-%COMP%] .nv-hig-list-insert-container[_ngcontent-%COMP%] .icon-button[_ngcontent-%COMP%], .tv-view .isRtl [_nghost-%COMP%] .nv-hig-list-insert-container[_ngcontent-%COMP%] .icon-button[_ngcontent-%COMP%]{padding-left:calc(20px * var(--hig-list-item-length-scaling-factor))}html[dir=rtl] .tv-view[_nghost-%COMP%] .nv-hig-list-insert-container[_ngcontent-%COMP%] .icon-button[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .nv-hig-list-insert-container[_ngcontent-%COMP%] .icon-button[_ngcontent-%COMP%]{--dummy2: 0;padding-left:calc(20px * var(--hig-list-item-length-scaling-factor))}"]})}}return ut})();function kt(ut,Pt){if(1&ut&&h.nrm(0,"mat-progress-bar",7),2&ut){const Re=h.XpG();h.AVh("progress-bar-accent",Re.isFullResourceState)("progress-bar-warn",!Re.isFullResourceState),h.Y8G("value",Re.progressValue),h.BMQ("tabindex",null)}}function It(ut,Pt){if(1&ut&&h.nrm(0,"mat-progress-bar",8),2&ut){const Re=h.XpG();h.Y8G("value",Re.progressValue),h.BMQ("tabindex",null)}}let un=(()=>{class ut{constructor(){this.resourceType="decremental",this.isWarningState=!1,this.isFullResourceState=!1}static{this.\u0275fac=function(rn){return new(rn||ut)}}static{this.\u0275cmp=h.VBU({type:ut,selectors:[["nv-hig-resource-progress-bar"]],inputs:{resourceType:"resourceType",isWarningState:"isWarningState",resourceRemainingCardData:"resourceRemainingCardData",resourceTotalCardData:"resourceTotalCardData",warningMessageData:"warningMessageData",progressValue:"progressValue",isFullResourceState:"isFullResourceState"},standalone:!0,features:[h.aNF],decls:9,vars:7,consts:[[1,"grid"],[1,"wrap-trail",3,"cardData"],[1,"progress-bar-container"],["mode","determinate",3,"progress-bar-accent","progress-bar-warn","value",4,"ngIf"],["class","progress-bar-default","mode","determinate",3,"value",4,"ngIf"],[1,"resource-warning"],[3,"data"],["mode","determinate",3,"value"],["mode","determinate",1,"progress-bar-default",3,"value"]],template:function(rn,an){1&rn&&(h.j41(0,"div",0),h.nrm(1,"nv-hig-list-item",1),h.j41(2,"div",2),h.DNE(3,kt,1,6,"mat-progress-bar",3)(4,It,1,2,"mat-progress-bar",4),h.k0s()(),h.j41(5,"div",0),h.nrm(6,"nv-hig-list-item",1),h.k0s(),h.j41(7,"div",5),h.nrm(8,"nv-hig-list-insert",6),h.k0s()),2&rn&&(h.R7$(),h.AVh("warning",an.isWarningState),h.Y8G("cardData",an.resourceRemainingCardData),h.R7$(2),h.Y8G("ngIf","decremental"===an.resourceType),h.R7$(),h.Y8G("ngIf","incremental"===an.resourceType),h.R7$(2),h.Y8G("cardData",an.resourceTotalCardData),h.R7$(2),h.Y8G("data",an.warningMessageData))},dependencies:[He,i.bT,jo.PO,jo.HM,Ye],styles:["[_nghost-%COMP%]{--progress-bar-container-padding: 16px}.warning[_ngcontent-%COMP%]{--hig-list-item-lead-icon-color: #e02828}.grid[_ngcontent-%COMP%]{width:100%;display:grid;grid-template-columns:auto 1fr auto}.progress-bar-container[_ngcontent-%COMP%]{grid-column:1/-1;padding:0 var(--progress-bar-container-padding)}.resource-warning[_ngcontent-%COMP%]{display:flex;width:100%}.progress-bar-container[_ngcontent-%COMP%]{transform:scaleY(2);transform-origin:bottom}.tv-view[_nghost-%COMP%], .tv-view [_nghost-%COMP%]{--progress-bar-container-padding: 32px}.tv-view[_nghost-%COMP%] nv-hig-list-item[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] nv-hig-list-item[_ngcontent-%COMP%]{--hig-list-item-image-scaling-factor: 1.5;--hig-list-item-length-scaling-factor: 2}.tv-view[_nghost-%COMP%] .progress-bar-container[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .progress-bar-container[_ngcontent-%COMP%]{transform:scaleY(4)}"]})}}return ut})();function xn(ut,Pt){if(1&ut&&h.nrm(0,"mat-icon",9),2&ut){const Re=h.XpG().$implicit;h.AVh("warning",Re.warning),h.Y8G("svgIcon",Re.iconName)}}function In(ut,Pt){if(1&ut&&(h.qex(0),h.j41(1,"div",7),h.DNE(2,xn,1,3,"mat-icon",8),h.j41(3,"span"),h.EFF(4),h.k0s()(),h.bVm()),2&ut){const Re=Pt.$implicit;h.R7$(2),h.Y8G("ngIf",Re.iconName),h.R7$(),h.AVh("hig-generic-table-content-text",!Re.iconName)("hig-generic-table-content-text-icon",Re.iconName),h.R7$(),h.JRh(Re.string)}}function Nn(ut,Pt){if(1&ut){const Re=h.RV6();h.j41(0,"div",7)(1,"button",10),h.bIt("click",function(){h.eBV(Re);const an=h.XpG(),Hn=an.$implicit,xi=an.index,yr=h.XpG();return h.Njj(yr.onButtonClick(Hn,xi))}),h.j41(2,"span",11),h.EFF(3),h.nI1(4,"translate"),h.k0s()()()}if(2&ut){const Re=h.XpG().$implicit;h.R7$(),h.AVh("mat-accent",Re.cta.accentColor),h.R7$(2),h.JRh(h.bMT(4,3,Re.cta.text))}}function ri(ut,Pt){if(1&ut&&(h.j41(0,"div",2)(1,"div",3)(2,"span",4),h.EFF(3),h.k0s()(),h.DNE(4,In,5,6,"ng-container",5)(5,Nn,5,5,"div",6),h.k0s()),2&ut){const Re=Pt.$implicit;h.R7$(3),h.JRh(Re.title),h.R7$(),h.Y8G("ngForOf",Re.cells),h.R7$(),h.Y8G("ngIf",!!Re.cta)}}let ui=(()=>{class ut{constructor(){this.columns=[],this.columnActionClick=new h.bkB}onButtonClick(Re,rn){this.columnActionClick.emit({column:Re,columnIndex:rn})}static{this.\u0275fac=function(rn){return new(rn||ut)}}static{this.\u0275cmp=h.VBU({type:ut,selectors:[["nv-hig-table-comparison"]],inputs:{columns:"columns"},outputs:{columnActionClick:"columnActionClick"},standalone:!0,features:[h.aNF],decls:2,vars:1,consts:[[1,"hig-generic-table"],["class","hig-generic-table-column",4,"ngFor","ngForOf"],[1,"hig-generic-table-column"],[1,"hig-generic-table-header"],[1,"hig-generic-table-content-text-header"],[4,"ngFor","ngForOf"],["class","hig-generic-table-content",4,"ngIf"],[1,"hig-generic-table-content"],["class","hig-generic-table-icon",3,"warning","svgIcon",4,"ngIf"],[1,"hig-generic-table-icon",3,"svgIcon"],["mat-button","",1,"hig-generic-table-button","font-button2",3,"click"],[1,""]],template:function(rn,an){1&rn&&(h.j41(0,"div",0),h.DNE(1,ri,6,3,"div",1),h.k0s()),2&rn&&(h.R7$(),h.Y8G("ngForOf",an.columns))},dependencies:[P.m_,P.An,E.wG,E.iV,g.h,g.D9,i.MD,i.Sq,i.bT],styles:["[_ngcontent-%COMP%]:root{--rwd-column-count: 4;--rwd-gutter-count: 3 ;--rwd-gutter-size: 8px;--rwd-container-side-spacing: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 3 ) / 4);--rwd-sidebar-width: 0px;--rwd-container-width: 100vw}@media screen and (min-width: 480px){[_ngcontent-%COMP%]:root{--rwd-column-count: 6;--rwd-gutter-count: 5 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 5 ) / 6)}}@media screen and (min-width: 720px){[_ngcontent-%COMP%]:root{--rwd-column-count: 8;--rwd-gutter-count: 7 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 7 ) / 8)}}@media screen and (min-width: 960px){[_ngcontent-%COMP%]:root{--rwd-column-count: 12;--rwd-gutter-count: 11 ;--rwd-container-side-spacing: 24px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 8px * 11 ) / 12)}}@media screen and (min-width: 1440px){[_ngcontent-%COMP%]:root{--rwd-gutter-size: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 16px * 11 ) / 12)}}.isRtl[_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{transform:scaleX(-1)}html[dir=rtl][_ngcontent-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{--dummy: 0;transform:scaleX(-1)}.hotkey-border[_ngcontent-%COMP%]{border:1px solid #ffffff;padding:4px 8px;font-weight:500;line-height:32px;margin:4px}.hig-generic-table[_ngcontent-%COMP%]{display:flex;flex-direction:row;gap:8px}.hig-generic-table-column[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex:1;overflow:hidden}.hig-generic-table-column[_ngcontent-%COMP%] .hig-generic-table-header[_ngcontent-%COMP%]{--font-header-font-size: 20px;--font-header-line-height: 28px;font-family:NVIDIA,sans-serif;color:var(--hig-ui-text-primary-color);font-style:normal;text-transform:none;font-size:var(--font-header-font-size);line-height:var(--font-header-line-height);letter-spacing:0;font-weight:500;display:flex;align-items:center;justify-content:center;height:60px;background-color:var(--hig-generic-table-content-bg-color-header)}.isLtr[_nghost-%COMP%] .hig-generic-table-column[_ngcontent-%COMP%] .hig-generic-table-header[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .hig-generic-table-column[_ngcontent-%COMP%] .hig-generic-table-header[_ngcontent-%COMP%]{padding-right:8px}html[dir=ltr][_ngcontent-%COMP%] .hig-generic-table-column[_ngcontent-%COMP%] .hig-generic-table-header[_ngcontent-%COMP%]{--dummy2: 0;padding-right:8px}.isRtl[_nghost-%COMP%] .hig-generic-table-column[_ngcontent-%COMP%] .hig-generic-table-header[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .hig-generic-table-column[_ngcontent-%COMP%] .hig-generic-table-header[_ngcontent-%COMP%]{padding-left:8px}html[dir=rtl][_ngcontent-%COMP%] .hig-generic-table-column[_ngcontent-%COMP%] .hig-generic-table-header[_ngcontent-%COMP%]{--dummy2: 0;padding-left:8px}.isLtr[_nghost-%COMP%] .hig-generic-table-column[_ngcontent-%COMP%] .hig-generic-table-header[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .hig-generic-table-column[_ngcontent-%COMP%] .hig-generic-table-header[_ngcontent-%COMP%]{padding-left:8px}html[dir=ltr][_ngcontent-%COMP%] .hig-generic-table-column[_ngcontent-%COMP%] .hig-generic-table-header[_ngcontent-%COMP%]{--dummy1: 0;padding-left:8px}.isRtl[_nghost-%COMP%] .hig-generic-table-column[_ngcontent-%COMP%] .hig-generic-table-header[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .hig-generic-table-column[_ngcontent-%COMP%] .hig-generic-table-header[_ngcontent-%COMP%]{padding-right:8px}html[dir=rtl][_ngcontent-%COMP%] .hig-generic-table-column[_ngcontent-%COMP%] .hig-generic-table-header[_ngcontent-%COMP%]{--dummy1: 0;padding-right:8px}.tv-view[_ngcontent-%COMP%] .hig-generic-table-column[_ngcontent-%COMP%] .hig-generic-table-header[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .hig-generic-table-column[_ngcontent-%COMP%] .hig-generic-table-header[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .hig-generic-table-column[_ngcontent-%COMP%] .hig-generic-table-header[_ngcontent-%COMP%]{--font-header-font-size: 40px;--font-header-line-height: 56px}.hig-generic-table-content-text-header[_ngcontent-%COMP%]{word-break:break-word;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;align-self:center;text-overflow:ellipsis}.hig-generic-table-content-text[_ngcontent-%COMP%]{word-break:break-word;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;align-self:center;text-overflow:ellipsis}.hig-generic-table-content-text-icon[_ngcontent-%COMP%]{word-break:break-word;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;align-self:center;text-overflow:ellipsis}.hig-generic-table-content[_ngcontent-%COMP%]{height:60px;display:flex;flex-direction:column;align-items:center;justify-content:center;--font-body-color: var(--hig-ui-text-secondary-color);--font-body-size: 14px;--font-body-line-height: 20px;font-family:NVIDIA,sans-serif;color:var(--font-body-color);font-weight:400;font-style:normal;text-transform:none;font-size:var(--font-body-size);line-height:var(--font-body-line-height);letter-spacing:0}.isLtr[_nghost-%COMP%] .hig-generic-table-content[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .hig-generic-table-content[_ngcontent-%COMP%]{padding-right:8px}html[dir=ltr][_ngcontent-%COMP%] .hig-generic-table-content[_ngcontent-%COMP%]{--dummy2: 0;padding-right:8px}.isRtl[_nghost-%COMP%] .hig-generic-table-content[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .hig-generic-table-content[_ngcontent-%COMP%]{padding-left:8px}html[dir=rtl][_ngcontent-%COMP%] .hig-generic-table-content[_ngcontent-%COMP%]{--dummy2: 0;padding-left:8px}.isLtr[_nghost-%COMP%] .hig-generic-table-content[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .hig-generic-table-content[_ngcontent-%COMP%]{padding-left:8px}html[dir=ltr][_ngcontent-%COMP%] .hig-generic-table-content[_ngcontent-%COMP%]{--dummy1: 0;padding-left:8px}.isRtl[_nghost-%COMP%] .hig-generic-table-content[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .hig-generic-table-content[_ngcontent-%COMP%]{padding-right:8px}html[dir=rtl][_ngcontent-%COMP%] .hig-generic-table-content[_ngcontent-%COMP%]{--dummy1: 0;padding-right:8px}.tv-view[_ngcontent-%COMP%] .hig-generic-table-content[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .hig-generic-table-content[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .hig-generic-table-content[_ngcontent-%COMP%]{--font-body-size: 28px;--font-body-line-height: 40px;--font-body-color: rgba(255, 255, 255, .85)}.hig-generic-table-content[_ngcontent-%COMP%]:nth-child(odd){background-color:var(--hig-generic-table-content-bg-color-odd)}.hig-generic-table-content[_ngcontent-%COMP%]:nth-child(2n){background-color:var(--hig-generic-table-content-bg-color-even)}.hig-generic-table-icon[_ngcontent-%COMP%]{display:flex;width:16px;height:16px;margin-bottom:2px}.hig-generic-table-icon.warning[_ngcontent-%COMP%]{color:#ffb43e}@media (max-width: 479px){.hig-generic-table[_ngcontent-%COMP%]{flex-direction:column;gap:24px}}.tv-view[_nghost-%COMP%], .tv-view [_nghost-%COMP%]{--max-tv-content-width: 1152px}.tv-view[_nghost-%COMP%] .hig-generic-table[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .hig-generic-table[_ngcontent-%COMP%]{width:var(--max-tv-content-width);gap:16px}.tv-view[_nghost-%COMP%] .hig-generic-table-column[_ngcontent-%COMP%] .hig-generic-table-header[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .hig-generic-table-column[_ngcontent-%COMP%] .hig-generic-table-header[_ngcontent-%COMP%]{background-color:var(--hig-generic-table-tv-content-bg-color-header)}.tv-view[_nghost-%COMP%] .hig-generic-table-header[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .hig-generic-table-header[_ngcontent-%COMP%]{height:88px}.tv-view[_nghost-%COMP%] .hig-generic-table-content[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .hig-generic-table-content[_ngcontent-%COMP%]{height:120px}.tv-view[_nghost-%COMP%] .hig-generic-table-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .hig-generic-table-icon[_ngcontent-%COMP%]{width:24px;height:24px;margin-bottom:4px}"]})}}return ut})();const _t={provide:h.hnV,useFactory:function Ie(ut,Pt){return()=>function ne(ut,Pt){return ut.addSvgIconSetLiteral(Pt.bypassSecurityTrustHtml('<svg width="0" height="0" class="svg-sprite" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><defs><clipPath id="a"><path fill="#fff" d="M0 0h48v48H0z"/></clipPath><clipPath id="a"><path fill="#fff" d="M0 0h48v48H0z"/></clipPath><clipPath id="a"><path fill="#fff" d="M0 0h24v24H0z"/></clipPath><clipPath id="clip0_10669_139213"><path d="M0 0h32v32H0z"/></clipPath></defs><symbol id="account_circle" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 3c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3zm0 14.2a7.2 7.2 0 0 1-6-3.22c.03-1.99 4-3.08 6-3.08 1.99 0 5.97 1.09 6 3.08a7.2 7.2 0 0 1-6 3.22z"/></symbol><symbol id="account_circle2" viewBox="0 0 80 74"><path d="M40.1 9.833C23.483 9.833 10 23.478 10 40.291a30.72 30.72 0 0 0 6.1 18.396c.16 0 .321-.041.482-.041 1.444-.162 2.809-.487 4.214-.893 1.244-.366 2.568-.65 3.772-1.097a23.448 23.448 0 0 0 3.652-1.787c1.164-.69 1.927-1.584 2.609-2.72.401-.731.762-1.26 1.565-1.544.16-.08.602-.203 1.043-.284v-1.218s-.802-.528-1.284-1.95c-.401-1.218-.642-3.98-.642-3.98s-.401-.121-.602-.202c-1.926-1.015-2.167-3.817-2.448-5.726-.12-.69-.281-1.706.361-2.193.12-.081.241-.163.361-.163-.441-1.218-.722-2.558-.963-3.776-.28-1.503-.762-2.843-.522-4.386.241-1.625 1.084-3.005 1.646-4.508.441-1.096 1.926-2.193 3.17-1.99.642-1.055 1.846-1.827 3.05-2.274a8.166 8.166 0 0 1 3.13-.487c1.445.04 2.73.569 4.134.771a8.482 8.482 0 0 1 2.609.813c.401.203.722.487 1.083.65.402.202.803.365 1.164.65.602.486 1.405 1.218 1.686 1.948.2.528.401.975.762 1.462.201.285.402.488.522.813.923 2.314.803 4.751.682 7.188-.04.974-.08 2.07-.401 3.045.16.04.321.081.481.203.763.569.482 2.924.281 3.736-.28 1.26-.842 2.965-1.284 3.533-.32.488-1.565.894-1.565.894s-.401 3.249-.722 4.183c-.321.934-1.084 1.665-1.084 1.665l-.04 1.258s1.405.203 1.806.731c.361.447.562.528.963.894.401.365.843.73 1.244 1.096.963.934 2.087 1.828 3.411 2.274.602.203 1.244.285 1.806.528.482.203.883.528 1.365.772 1.084.487 2.207.812 3.29 1.34.884.447 1.767.812 2.69 1.137 4.013-5.198 6.42-11.695 6.42-18.802C70.199 23.478 56.715 9.833 40.1 9.833Z"/></symbol><symbol id="add" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"/></symbol><symbol id="add_square" viewBox="0 0 44 44"><path d="M31.11 8A4.896 4.896 0 0 1 36 12.89v18.22A4.896 4.896 0 0 1 31.11 36H12.89A4.896 4.896 0 0 1 8 31.11V12.89A4.896 4.896 0 0 1 12.89 8h18.22Zm0 1.956H12.89a2.938 2.938 0 0 0-2.934 2.935v18.218a2.938 2.938 0 0 0 2.935 2.935h18.218a2.937 2.937 0 0 0 2.935-2.935V12.891a2.937 2.937 0 0 0-2.935-2.935ZM22 16a1 1 0 0 1 1 1v4h4a1 1 0 0 1 0 2h-4v4a1 1 0 0 1-2 0v-4h-4a1 1 0 0 1 0-2h4v-4a1 1 0 0 1 1-1Z"/></symbol><symbol id="alert_circle" viewBox="0 0 24 24"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"/></symbol><symbol id="analytics" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0z"/><path fill="none" d="M7 12h2v5H7zm4 2h2v3h-2zm4-7h2v10h-2z"/><path d="M3 3v18h18V3H3zm6 14H7v-5h2v5zm4 0h-2v-3h2v3zm0-5h-2v-2h2v2zm4 5h-2V7h2v10z"/></symbol><symbol id="analytics_off" viewBox="0 0 24 24"><path d="M22.22 22.18 1.81 1.78.4 3.19 3 5.79V21h15.21l2.59 2.59 1.42-1.41ZM9 17H7v-5h2v5Zm4 0h-2v-3h.21L13 15.79V17Zm0-7v.14l2 2V7h2v7.14l4 4V3H5.86l7 7H13Z"/><path d="m17.892 17.846-1.415 1.414 4.335 4.335 1.414-1.414-4.334-4.335Z"/></symbol><symbol id="app" viewBox="0 0 32 32"><path d="M4 28V4h24v24H4Zm2.667-2.667h18.666v-16H6.667v16ZM9.333 16v-2.667h13.334V16H9.333Zm0 5.333v-2.666h8v2.666h-8Z" fill="currentColor"/></symbol><symbol id="arrow_down" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="m20 12-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"/></symbol><symbol id="arrow_left" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M20 11H7.8l5.6-5.6L12 4l-8 8 8 8 1.4-1.4L7.8 13H20v-2z"/></symbol><symbol id="arrow_right" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8-8-8z"/></symbol><symbol id="arrow_up" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="m4 12 1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"/></symbol><symbol id="aspect_ratio_scaling" viewBox="0 0 20 20"><path d="M11.667 14.165h4.167V10h-1.667v2.5h-2.5v1.666ZM4.167 10h1.667V7.5h2.5V5.832H4.167v4.167Zm-2.5 6.666V3.332h16.667v13.333H1.667ZM3.334 15h13.333V5H3.334v10Z"/></symbol><symbol id="audio" viewBox="0 0 24 24"><path d="M1 18h6v3H1v-3Zm8 0h6v3H9v-3Zm8 0h6v3h-6v-3ZM1 13h6v3H1v-3Zm8 0h6v3H9v-3Zm8 0h6v3h-6v-3ZM9 8h6v3H9V8Zm8 0h6v3h-6V8ZM9 3h6v3H9V3Z"/></symbol><symbol id="backspace" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0z"/><path d="M22 3H7c-.69 0-1.23.35-1.59.88L0 12l5.41 8.11c.36.53.9.89 1.59.89h15c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-3 12.59L17.59 17 14 13.41 10.41 17 9 15.59 12.59 12 9 8.41 10.41 7 14 10.59 17.59 7 19 8.41 15.41 12 19 15.59z"/></symbol><symbol id="bandaid" viewBox="0 0 512 512"><path d="M259.2 304c-6.4 0-11.2 4.8-11.2 11.2s4.8 11.2 11.2 11.2c6.4 0 11.2-4.8 11.2-11.2s-4.8-11.2-11.2-11.2zm6.4-107.2c0-6.4-4.8-11.2-11.2-11.2s-11.2 4.8-11.2 11.2c0 6.4 4.8 11.2 11.2 11.2 4.8 0 11.2-4.8 11.2-11.2zm22.4 80c-6.4 0-11.2 4.8-11.2 11.2s4.8 11.2 11.2 11.2c6.4 0 11.2-4.8 11.2-11.2s-4.8-11.2-11.2-11.2zm-91.2-35.2c-6.4 0-11.2 4.8-11.2 11.2s4.8 11.2 11.2 11.2c6.4 0 11.2-4.8 11.2-11.2 0-4.8-4.8-11.2-11.2-11.2zm28.8-27.2c-6.4 0-11.2 4.8-11.2 11.2s4.8 11.2 11.2 11.2c6.4 0 11.2-4.8 11.2-11.2s-4.8-11.2-11.2-11.2zm3.2 59.2c-6.4 0-11.2 4.8-11.2 11.2s4.8 11.2 11.2 11.2c6.4 0 11.2-4.8 11.2-11.2s-4.8-11.2-11.2-11.2zm88-3.2c6.4 0 11.2-4.8 11.2-11.2s-4.8-11.2-11.2-11.2c-6.4 0-11.2 4.8-11.2 11.2s4.8 11.2 11.2 11.2zm-32-54.4c-6.4 0-11.2 4.8-11.2 11.2s4.8 11.2 11.2 11.2c6.4 0 11.2-4.8 11.2-11.2 0-4.8-4.8-11.2-11.2-11.2zM256 267.2c6.4 0 11.2-4.8 11.2-11.2s-4.8-11.2-11.2-11.2c-6.4 0-11.2 4.8-11.2 11.2s4.8 11.2 11.2 11.2zm6.4 88-104-104 94.4-94.4 104 104c-32 32-64 62.4-94.4 94.4zm-115.2-96 105.6 105.6-1.6 1.6-46.4 46.4c-17.6 17.6-43.2 17.6-60.8 0-16-14.4-30.4-28.8-44.8-43.2-17.6-17.6-17.6-43.2 0-60.8l46.4-46.4c0-1.6 1.6-3.2 1.6-3.2zm217.6-6.4L259.2 147.2l1.6-1.6 46.4-46.4c17.6-17.6 43.2-17.6 60.8 0 16 14.4 30.4 30.4 46.4 44.8 17.6 17.6 17.6 43.2 0 59.2l-48 48s0 1.6-1.6 1.6z"/></symbol><symbol id="battery_boost" viewBox="0 0 768 768"><path d="M286.68 287.76v64.944l95.52-64.944 96.288 64.944V287.76L382.2 224.352z"/><path d="M286.68 398.376v64.92l95.52-64.92 96.288 64.92v-64.92L382.2 334.968z"/><path d="M286.68 510.504v64.968l95.52-64.968 96.288 64.968v-64.968L382.2 447.096z"/><path d="M383.16 32.328 78.576 208.176v351.672l304.56 175.8 304.536-175.8V208.176L383.16 32.328zm127.152 559.8c0 7.824-6.384 14.232-14.256 14.232H269.808c-7.872 0-14.256-6.408-14.256-14.232v-371.64c0-7.872 6.384-14.232 14.256-14.232h51.984v-45.84h122.28v45.84h51.984c7.872 0 14.256 6.384 14.256 14.232v371.64z"/></symbol><symbol id="battery_charging" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M17 4h-3V2h-4v2H7v18h10V4zm-6 16v-5.5H9L13 7v5.5h2L11 20z"/></symbol><symbol id="bell" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M12 22c1.1 0 2-.9 2-2h-4a2 2 0 0 0 2 2zm6-6v-5c0-3.07-1.64-5.64-4.5-6.32V2.5h-3v2.18C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2z"/></symbol><symbol id="blank" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/></symbol><symbol id="broadcast" viewBox="0 0 24 24"><path d="M12 10a2 2 0 0 1 1.53 3.29L16.7 22h-2.13L12 14.93 9.43 22H7.3l3.17-8.71A2 2 0 0 1 12 10zm0-2a4 4 0 0 0-4 4c0 .5.1 1 .28 1.46l-.88 2.4A6.026 6.026 0 0 1 6 12a6 6 0 1 1 12 0c0 1.47-.53 2.81-1.4 3.86l-.88-2.4C15.9 13 16 12.5 16 12a4 4 0 0 0-4-4zm0-4a8 8 0 0 0-8 8c0 2.36 1 4.5 2.64 5.94l-.72 2A10.005 10.005 0 0 1 2 12C2 6.477 6.477 2 12 2s10 4.477 10 10c0 3.23-1.54 6.11-3.92 7.94l-.72-2C19 16.5 20 14.36 20 12a8 8 0 0 0-8-8z"/></symbol><symbol id="browser_diskdrive" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M2 8v8h20V8H2zm16 6c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2z"/></symbol><symbol id="browser_diskdrive_network" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M21 13V5H3v8h8v3H9v1H3v2h6v1h6v-1h6v-2h-6v-1h-2v-3h8zm-4-6c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2z"/></symbol><symbol id="browser_disk_drive_removable" viewBox="0 0 24 24"><path d="M2 8v8h20V8H2zm2 5v-2h10v2H4zm14 1c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2z"/></symbol><symbol id="browser_nav_up" viewBox="0 0 24 24"><path d="M12 22C6.5 22 2 17.5 2 12S6.5 2 12 2s10 4.5 10 10-4.5 10-10 10zm0-15-5 5h3v4h4v-4h3l-5-5z"/></symbol><symbol id="cancel" viewBox="0 0 16 17"><path d="M8 1.795c3.667 0 6.667 3 6.667 6.666 0 3.667-3 6.667-6.667 6.667s-6.667-3-6.667-6.667c0-3.666 3-6.666 6.667-6.666Zm0 1.333c-1.267 0-2.4.4-3.267 1.133l7.467 7.467c.667-.933 1.133-2.067 1.133-3.267 0-2.933-2.4-5.333-5.333-5.333Zm3.267 9.533L3.8 5.195c-.733.866-1.133 2-1.133 3.266 0 2.934 2.4 5.334 5.333 5.334 1.267 0 2.4-.4 3.267-1.134Z" fill="#fff" fill-opacity=".7"/></symbol><symbol id="carrot_down" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="m7 10 5 5 5-5H7z"/></symbol><symbol id="carrot_up" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="m7 14 5-5 5 5H7z"/></symbol><symbol id="cellular" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0zm0 0h24v24H0V0z"/>><path d="M4 20v-6h3v6H4Zm6 0V9h3v11h-3Zm6 0V4h3v16h-3Z"/></symbol><symbol id="check" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4L9 16.2z"/></symbol><symbol id="check_circle" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"/></symbol><symbol id="chevron_down" viewBox="0 0 768 768"><path d="M237.12 274.56 384 421.44l146.88-146.88L576 320 384 512 192 320l45.12-45.44z"/></symbol><symbol id="chevron_left" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12l4.58-4.59z"/></symbol><symbol id="chevron_right" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6-6-6z"/></symbol><symbol id="chevron_up" viewBox="0 0 768 768"><path d="M237.12 493.12 384 346.56l146.88 146.56L576 448 384 256 192 448l45.12 45.12z"/></symbol><symbol id="close" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M19 6.4 17.6 5 12 10.6 6.4 5 5 6.4l5.6 5.6L5 17.6 6.4 19l5.6-5.6 5.6 5.6 1.4-1.4-5.6-5.6L19 6.4z"/></symbol><symbol id="cloud_download" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M19.35 10.04A7.49 7.49 0 0 0 12 4C9.11 4 6.6 5.64 5.35 8.04A5.994 5.994 0 0 0 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM17 13l-5 5-5-5h3V9h4v4h3z"/></symbol><symbol id="cloud_upload" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M19.35 10.04A7.49 7.49 0 0 0 12 4C9.11 4 6.6 5.64 5.35 8.04A5.994 5.994 0 0 0 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM14 13v4h-4v-4H7l5-5 5 5h-3z"/></symbol><symbol id="comment" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M2 2h19.99L22 22l-4-4H2z"/></symbol><symbol id="content_paste" viewBox="0 0 768 768"><path d="M608 640H160V128h64v96h320v-96h64zM384 64c17.673 0 32 14.327 32 32s-14.327 32-32 32c-17.673 0-32-14.327-32-32s14.327-32 32-32zm224 0H474.24C460.8 26.88 425.6 0 384 0s-76.8 26.88-90.24 64H160c-35.346 0-64 28.654-64 64v512c0 35.346 28.654 64 64 64h448c35.346 0 64-28.654 64-64V128c0-35.346-28.654-64-64-64z"/></symbol><symbol id="copy_generic" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M16 1.9v2H4v12H2v-14h14ZM6 6h16v16H6V6Z"/></symbol><symbol id="death" viewBox="0 0 24 24"><path d="M20.85 15.92c-.1-.54-.44-.98-.9-1.22.43-1.37.66-3.13.66-5.34 0-4.03-3.92-7.48-8.73-7.48-4.81 0-8.64 3.33-8.64 7.48 0 2.19.23 3.94.65 5.3-.5.23-.88.69-.98 1.26-.17.94.47 1.84 1.44 2.01l2.32.4c.1.05.19.09.29.13l.53 2.48s1.27.93 4.45.93 4.39-.93 4.39-.93l.54-2.47c.13-.05.25-.1.38-.16l2.17-.38a1.73 1.73 0 0 0 1.43-2.01ZM9.56 14.56c-1.36 1.13-2.95 1.58-3.85.7-.9-.88-.67-2.66.59-3.89s3.23-1.3 4.13-.42c.91.87.46 2.51-.87 3.61Zm3.76 3.33c-.34.38.01-.05-1.43-.05s-.95.48-1.41.03c-.46-.45-.22-1.43-.1-1.8.11-.35.75-1.83 1.52-1.83.76 0 1.36 1.47 1.49 1.83.13.36.31 1.4-.07 1.82Zm4.82-2.64c-.9.88-2.49.43-3.85-.7-1.33-1.1-1.77-2.74-.87-3.62.9-.88 2.87-.81 4.13.42 1.27 1.24 1.5 3.02.59 3.9Z"/></symbol><symbol id="delete" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M6 21h12V7H6v14zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"/></symbol><symbol id="delete_forever" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M6 21h12V7H6v14zm2.46-9.12 1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14l2.12 2.12-1.41 1.41L12 15.41l-2.12 2.12-1.41-1.41L10.59 14l-2.13-2.12zM15.5 4l-1-1h-5l-1 1H5v2h14V4h-3.5z"/></symbol><symbol id="desktop" viewBox="0 0 24 24"><path d="M14 2h10v20h-2v-2h-6v2h-2V2Zm7 4a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm-5 2v2h6V8h-6Zm0 4v2h6v-2h-6Zm-4-6v2H2v8h10v2h-2v2h2v2H6v-2h2v-2H0V6h12Z"/></symbol><symbol id="desktop_mac" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M23 2H1v16h9l-2 3v1h8v-1l-2-3h9V2zm-2 12H3V4h18v10z"/></symbol><symbol id="desktop_windows" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M23 2H1v16h9v2H8v2h8v-2h-2v-2h9V2zm-2 14H3V4h18v12z"/></symbol><symbol id="devices" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M4 6h18V4H2v13H0v3h14v-3H4V6zm20 2h-8v12h8V8zm-2 9h-4v-7h4v7z"/></symbol><symbol id="download" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M19 12v7H5v-7H3v9h18v-9h-2zm-6 .67 2.59-2.58L17 11.5l-5 5-5-5 1.41-1.41L11 12.67V3h2v9.67z"/></symbol><symbol id="edit" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM21.41 6.34l-3.75-3.75-2.53 2.54 3.75 3.75 2.53-2.54z"/></symbol><symbol id="edit_settings" viewBox="0 0 24 24"><path d="M4 20V5.684h8.71L10.554 7.75H6V18h10.356v-4.713l1.993-1.996V20H4Zm4.783-4.772v-3.38l5.72-5.706 3.408 3.34-5.74 5.746H8.783Zm10.264-6.88-3.408-3.34L17.652 3 21 6.4l-1.953 1.949Z"/></symbol><symbol id="epic_games_logo" viewBox="0 0 22 25"><g id="Settings" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><path d="M2.615.053H19.42c1.343 0 1.838.507 1.838 1.88v16.58c0 .156 0 1.231-1.054 1.8-.703.378-3.452 1.543-8.248 3.495-.424.199-.628.25-.938.244-.348 0-.479-.047-.943-.244-4.792-2.015-7.54-3.18-8.243-3.496C.777 19.84.828 19.246.797 18.947a4.39 4.39 0 0 1-.02-.434V1.933c0-1.373.496-1.88 1.838-1.88ZM17.998 16.95l.003-.04v-.089l-.003-.04-.004-.037-.015-.074-.008-.033-.01-.034-.012-.033-.015-.03-.019-.033-.019-.03-.022-.032-.022-.03-.027-.026-.026-.03-.03-.025-.03-.026-.03-.019-.03-.022-.03-.018-.033-.019-.034-.018-.037-.019-.038-.015-.037-.019-.041-.014-.034-.01-.034-.012-.037-.01-.034-.012-.037-.011-.037-.011-.038-.008-.041-.01-.038-.012-.04-.007-.042-.011-.041-.011-.041-.012-.038-.007-.033-.011-.034-.007-.03-.012-.03-.007-.045-.014-.041-.016-.037-.014-.03-.019-.034-.018-.026-.026-.016-.022-.018-.04-.004-.049v-.007l.004-.037.015-.033.022-.034.034-.03.026-.014.03-.015.034-.007.038-.008.04-.007h.083l.033.004.038.003.037.004.038.008.037.007.038.007.037.011.038.012.04.01.03.015.034.012.03.014.034.015.03.015.034.015.03.018.033.015.03.022.03.019.033.018.03.022.023-.03.019-.029.022-.03.023-.029.022-.033.019-.03.022-.03.023-.029.018-.03.023-.03.022-.029.02-.029.021-.034.023-.029.022-.03.019-.03.023-.029-.03-.022-.03-.022-.03-.022-.03-.019-.034-.022-.03-.018-.033-.019-.034-.018-.03-.015-.034-.019-.037-.014-.034-.015-.034-.015-.033-.01-.038-.016-.033-.007-.034-.011-.038-.011-.033-.008-.038-.007-.037-.008-.034-.007-.037-.007-.041-.004-.037-.008-.042-.003h-.037l-.042-.004-.04-.004h-.161l-.075.008-.038.003-.037.004-.034.008-.037.007-.034.007-.034.008-.03.007-.034.011-.037.015-.037.01-.034.016-.033.019-.034.014-.034.019-.03.018-.03.022-.03.023-.026.018-.03.026-.026.03-.026.025-.026.03-.023.03-.022.03-.019.032-.019.033-.015.034-.015.033-.014.033-.008.033-.012.034-.014.066-.004.037-.004.033-.004.037v.086l.004.04.004.037.004.037.007.033.008.037.011.03.011.033.011.03.015.025.019.033.019.03.018.026.023.026.023.025.025.026.027.026.026.023.03.018.03.022.033.019.03.018.038.019.034.018.037.015.038.015.037.014.041.015.034.011.033.011.034.011.037.008.034.011.037.01.038.008.037.011.038.008.04.01.039.008.04.011.038.008.037.01.034.008.034.011.03.008.026.007.045.019.037.015.034.014.03.015.03.022.026.022.019.026.015.037.004.044v.008l-.004.037-.012.033-.014.03-.023.025-.03.023-.026.014-.03.012-.034.007-.033.007-.038.007-.041.004h-.082l-.041-.004h-.038l-.037-.007-.042-.003-.037-.008-.037-.007-.038-.008-.034-.01-.037-.012-.037-.01-.034-.016-.034-.01-.033-.016-.034-.014-.034-.015-.03-.019-.033-.014-.03-.019-.034-.022-.03-.019-.033-.021-.03-.023-.034-.022-.03-.022-.023.03-.026.025-.022.03-.026.03-.023.025-.022.03-.026.03-.023.025-.026.03-.022.026-.027.03-.022.029-.022.026-.027.03-.022.029-.026.025-.023.03.03.026.026.022.03.022.03.023.03.022.03.022.03.019.03.018.034.019.03.018.033.018.034.015.033.018.034.015.034.015.037.015.034.01.037.012.034.015.038.01.037.012.034.007.037.011.037.008.038.007.075.015.037.004.038.007.04.004.038.003.037.004h.041l.038.004h.157l.037-.004.042-.004.037-.003.034-.004.037-.004.038-.007.033-.008.034-.007.037-.007.034-.011.038-.012.037-.01.037-.015.038-.015.034-.019.033-.015.034-.018.03-.022.03-.018.03-.023.026-.021.03-.027.022-.022.026-.025.023-.026.018-.03.023-.03.038-.059.015-.033.014-.03.015-.033.012-.037.007-.033.011-.037.008-.037.004-.04.004-.037Zm-2.625.74h.038v-.61h-1.468v-.458h1.303v-.573h-1.303v-.44h1.449V15h-2.163v2.69h2.144Zm-2.734 0h.037V15h-.767l-.019.029-.018.033-.023.03-.019.033-.018.03-.019.033-.022.03-.02.032-.018.03-.019.03-.022.032-.019.03-.018.033-.02.03-.021.033-.019.03-.02.03-.018.032-.018.03-.023.033-.018.03-.02.032-.018.03-.023.033-.018.03-.019.03-.019.032-.022.03-.019.033-.018.03-.019.033-.022.03-.019.032-.02.03-.018-.03-.018-.033-.023-.029-.019-.033-.018-.03-.019-.033-.018-.03-.023-.033-.019-.03-.018-.029-.02-.033-.018-.03-.023-.032-.018-.03-.019-.033-.018-.03-.02-.033-.022-.03-.018-.029-.019-.033-.02-.03-.021-.033-.02-.03-.018-.033-.018-.029-.02-.03-.022-.033-.018-.029-.019-.034-.019-.029-.019-.033-.022-.03-.019-.033-.018-.03h-.767v2.69h.71v-1.583l.023.03.019.033.022.03.019.033.022.03.019.033.023.03.018.033.023.03.018.033.023.03.019.033.022.03.019.033.022.03.019.032.023.03.022.033.019.03.022.034.018.03.023.032.019.03.022.033.02.03.021.033.02.03.021.033.02.03.022.033.018.03.023.033.019.03.022.033h.015l.019-.03.022-.033.019-.03.022-.03.02-.033.021-.03.02-.03.018-.032.023-.03.018-.03.023-.03.018-.032.023-.03.018-.03.02-.033.022-.03.018-.03.023-.032.018-.03.023-.03.019-.033.018-.03.023-.029.019-.034.022-.03.019-.029.022-.03.019-.033.018-.03.023-.03.019-.032.022-.03.019-.03.022-.033.019-.03v1.591h.685Zm-4.342-1.11.015.034h-.633l.015-.033.012-.034.015-.037.015-.033.011-.033.015-.034.015-.037.015-.033.011-.033.015-.034.015-.033.011-.037.015-.033.015-.034.011-.033.015-.033.015-.037L7.93 16l.012-.034.014-.033.015-.037.012-.034.015-.033.015.033.011.034.014.037.016.033.011.034.015.033.015.037.01.033.016.033.015.034.011.033.015.037.011.033.015.034.015.033.012.033.014.038.015.033.012.033.015.033.015.037.011.034Zm1.175 1.11h.037l-.015-.034-.014-.033-.015-.034-.012-.037-.015-.032-.015-.034-.014-.033-.03-.066-.015-.038-.015-.033-.012-.033-.015-.033-.015-.034-.015-.033-.014-.037-.016-.033-.03-.067-.01-.033-.016-.033-.015-.037-.015-.033-.015-.034-.03-.066-.015-.033-.01-.038-.016-.033-.015-.033-.015-.033-.015-.033-.015-.033-.015-.038-.014-.033-.012-.033-.014-.033-.016-.034-.015-.033-.015-.037-.015-.033-.03-.067-.01-.033-.016-.033-.015-.033-.014-.037-.03-.066-.016-.034-.014-.033-.012-.033-.015-.037-.015-.033-.015-.034-.015-.033-.015-.033-.015-.033-.015-.038-.01-.033-.015-.033-.016-.033-.015-.033-.015-.034-.015-.037-.015-.033-.015-.033-.01-.033-.016-.034-.015-.033-.014-.037-.016-.033-.015-.033-.015-.034-.014-.033-.012-.033-.015-.037-.015-.033-.015-.034-.015-.033h-.692l-.015.033-.015.034-.015.033-.011.037-.015.033-.015.033-.015.034-.015.033-.015.033-.015.037-.015.033-.011.034-.03.066-.015.033-.015.037-.015.034-.015.033-.015.033-.011.033-.015.034-.015.037-.03.066-.015.033-.015.034-.015.033-.01.037-.016.033-.015.033-.015.034-.015.033-.015.033-.015.037-.015.033-.011.033-.03.067-.015.033-.015.033-.015.037-.015.033-.015.034-.011.033-.015.033-.015.034-.015.037-.015.033-.015.033-.015.033-.015.033-.011.034-.015.037-.015.033-.015.033-.015.033-.015.034-.015.033-.015.037-.011.033-.03.067-.015.033-.015.033-.015.037-.015.033-.015.034-.011.033-.015.033-.015.034-.015.037-.015.033-.015.033-.03.066-.011.033-.015.037-.03.067-.015.033h.756l.015-.033.011-.033.015-.034.015-.037.011-.032.015-.034.015-.033.011-.033.015-.033.016-.034.01-.033.015-.037.016-.033.01-.034.016-.033h1.074l.015.033.011.034.015.033.015.037.011.033.015.034.015.033.011.033.03.066.011.033.015.037.015.034.012.033.014.033h.734Zm-3.278-.344.026-.022v-1.201H4.985v.54h.546v.335l-.03.019-.026.015-.033.014-.03.015-.034.015-.034.007-.037.012-.038.007-.037.007-.038.004-.04.004-.042.004h-.086l-.041-.004-.037-.004-.038-.008-.037-.007-.038-.011-.037-.011-.034-.015-.034-.015-.033-.014-.03-.019-.03-.018-.03-.023-.03-.022-.026-.022-.023-.026-.026-.026-.022-.025-.023-.03-.018-.03-.02-.029-.018-.033-.015-.034-.015-.037-.011-.03-.011-.032-.008-.034-.015-.066-.004-.037-.003-.033-.004-.037v-.085l.004-.037.003-.037.008-.041.008-.033.007-.037.011-.037.015-.033.011-.033.015-.034.02-.03.018-.032.019-.03.018-.026.023-.03.026-.025.022-.026.026-.022.027-.023.026-.021.03-.02.03-.018.03-.018.034-.015.033-.015.034-.01.033-.012.034-.007.037-.007.034-.004.038-.004h.078l.042.004.04.004.038.003.037.008.038.007.034.007.033.011.034.012.03.01.03.015.03.015.033.019.03.018.03.019.03.018.03.022.03.019.03.026.03.022.022-.03.026-.025.023-.03.026-.03.022-.03.023-.025.026-.03.023-.03.026-.03.022-.025.023-.03.026-.029.022-.026.023-.03.026-.029.022-.03.027-.025.022-.03-.03-.022-.03-.026-.03-.022-.03-.022-.03-.019-.03-.022-.033-.018-.03-.02-.033-.017-.03-.02-.034-.014-.034-.018-.034-.015-.033-.015-.034-.014-.034-.012-.03-.01-.033-.008-.034-.01L5.486 15l-.033-.007-.034-.007-.037-.008-.038-.007-.033-.004-.042-.007-.037-.004h-.038l-.04-.004-.042-.003h-.16l-.038.003-.038.004-.074.008-.038.007-.037.004-.037.007-.034.011-.038.007-.034.012-.033.007-.034.015-.037.01-.03.012-.037.018-.034.015-.034.015-.034.019-.033.018-.034.019-.03.018-.03.018-.03.023-.03.018-.03.022-.026.022-.03.026-.026.022-.026.026-.026.026-.023.026-.026.026-.023.026-.022.03-.022.029-.023.03-.038.059-.018.03-.019.029-.019.033-.015.033-.03.067-.014.033-.016.037-.01.033-.012.037-.01.033-.008.037-.012.037-.007.033-.004.037-.008.037-.003.041-.004.037v.037l-.003.04v.122l.003.037.004.037.003.037.004.034.008.037.003.033.008.037.011.033.008.037.011.033.007.033.015.034.012.03.015.032.015.034.014.033.015.033.02.03.018.033.019.03.018.03.023.029.019.029.022.026.022.03.023.025.026.026.026.026.026.023.027.025.026.023.026.022.03.022.03.022.03.022.03.019.03.018.034.019.03.018.033.019.034.014.033.015.034.015.038.014.033.012.034.014.034.011.037.008.034.011.037.007.034.008.037.007.037.007.038.004.037.004.038.004.04.003.038.004h.161l.042-.004.037-.003.041-.004.038-.004.04-.004.038-.003.037-.008.038-.007.033-.007.038-.008.034-.011.037-.01.034-.012.034-.011.033-.011.034-.015.037-.015.034-.015.037-.014.034-.02.034-.013.033-.02.034-.018.034-.018.03-.018.03-.019.03-.022.03-.019.03-.021.025-.02.03-.021Zm1.1-8.912V7.04H5.439V4.705h1.857V3.311h-3.26v9.31h3.259V11.23H5.438V8.435h1.857Zm9.311 2.444c0 .366-.184.536-.545.536h-.267c-.375 0-.58-.17-.58-.536V5.174c0-.366.205-.61.58-.61h.24c.44 0 .572.148.572.61v1.86l1.396.003V5.032c0-1.137-.592-1.712-1.756-1.712h-.696c-1.164 0-1.737.716-1.737 1.854v5.77c0 1.138.573 1.683 1.737 1.683h.71c1.164 0 1.742-.545 1.742-1.682V8.899h-1.396v1.98ZM11.95 12.62h1.396V3.31H11.95v9.31Zm-1.864-5.173c0 .372-.101.518-.44.518h-.49V4.562h.49c.338 0 .44.172.44.545v2.34ZM7.76 3.31v9.31h1.395V9.243h.704c1.088 0 1.625-.572 1.625-1.729V5.04c0-1.157-.537-1.729-1.625-1.729H7.76Zm6.983 17.698H7.295l3.724 1.389 3.724-1.389Z" id="path2-7" fill="#E8E8E8"/></g></symbol><symbol id="ethernet" viewBox="0 0 768 768"><path d="M224 480h64v96h64v-96h64v96h64v-96h64v96h64V288H480v-96H288v96H160v288h64v-96zM140.16 96h488c41.92 0 75.84 33.92 75.84 76.16v456c0 41.885-33.955 75.84-75.84 75.84h-488C97.92 704 64 670.08 64 628.16v-456C64 129.92 97.92 96 140.16 96z"/></symbol><symbol id="exit_to_app" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M10.09 15.59 11.5 17l5-5-5-5-1.41 1.41L12.67 11H3v2h9.67l-2.58 2.59zM21 3H3v6h2V5h14v14H5v-4H3v6h18V3z"/></symbol><symbol id="eye" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M12 4C7 4 2.73 7.11 1 11.5 2.73 15.89 7 19 12 19s9.27-3.11 11-7.5C21.27 7.11 17 4 12 4zm0 12.5c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"/></symbol><symbol id="eye_off" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0zm0 0h24v24H0V0zm0 0h24v24H0V0zm0 0h24v24H0V0z"/><path d="M12 6.5c2.76 0 5 2.24 5 5 0 .51-.1 1-.24 1.46l3.06 3.06c1.39-1.23 2.49-2.77 3.18-4.53C21.27 7.11 17 4 12 4c-1.27 0-2.49.2-3.64.57l2.17 2.17c.47-.14.96-.24 1.47-.24zM3.42 2.45 2.01 3.87l2.68 2.68A11.738 11.738 0 0 0 1 11.5C2.73 15.89 7 19 12 19c1.52 0 2.97-.3 4.31-.82l3.43 3.43 1.41-1.41L3.42 2.45zM12 16.5c-2.76 0-5-2.24-5-5 0-.77.18-1.5.49-2.14l1.57 1.57c-.03.18-.06.37-.06.57 0 1.66 1.34 3 3 3 .2 0 .38-.03.57-.07L14.14 16c-.65.32-1.37.5-2.14.5zm2.97-5.33a2.97 2.97 0 0 0-2.64-2.64l2.64 2.64z"/></symbol><symbol id="favorite" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="m12 21.35-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z"/></symbol><symbol id="favorite_border" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M16.5 3c-1.74 0-3.41.81-4.5 2.09C10.91 3.81 9.24 3 7.5 3 4.42 3 2 5.42 2 8.5c0 3.78 3.4 6.86 8.55 11.54L12 21.35l1.45-1.32C18.6 15.36 22 12.28 22 8.5 22 5.42 19.58 3 16.5 3zm-4.4 15.55-.1.1-.1-.1C7.14 14.24 4 11.39 4 8.5 4 6.5 5.5 5 7.5 5c1.54 0 3.04.99 3.57 2.36h1.87C13.46 5.99 14.96 5 16.5 5c2 0 3.5 1.5 3.5 3.5 0 2.89-3.14 5.74-7.9 10.05z"/></symbol><symbol id="feedback" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M22 2H2.01L2 22l4-4h16V2zm-9 12h-2v-2h2v2zm0-4h-2V6h2v4z"/></symbol><symbol id="file" viewBox="0 0 24 24"><path d="M4.01 2 4 22h16V8l-6-6H4.01zM13 9V3.5L18.5 9H13z"/></symbol><symbol id="filter_list" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"/></symbol><symbol id="folder" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M10 4H2v16h20V6H12l-2-2z"/></symbol><symbol id="folder_open" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M22 6H12l-2-2H2v16h20V6zm-2 12H4V8h16v10z"/></symbol><symbol id="fps" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M23 2H1v16h9v2H8v2h8v-2h-2v-2h9V2zm-2 14H3V4h18v12z"/><path d="M6 11h2V9H6V8h3V6H4v8h2v-3zm6 0h3V6h-5v8h2v-3zm0-3h1v1h-1V8zm8 1h-2V8h2V6h-4v5h2v1h-2v2h4V9z"/></symbol><symbol id="freestyle" viewBox="0 0 24 24"><path d="M12.3 9.4c-1.5 0-2.7 1.2-2.7 2.7 0 1.2-1.1 1.8-1.8 1.8.8 1.1 2.3 1.8 3.6 1.8 2 0 3.6-1.6 3.6-3.6 0-1.4-1.2-2.7-2.7-2.7zm10.697-5.383-6.364 6.364-2.475-2.475 6.364-6.364 2.475 2.475z"/><path d="M20 9v9H4V7h9l2-2H2v15h20V7l-2 2z"/></symbol><symbol id="fullscreen_exit" viewBox="0 0 24 24"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M5 16h3v3h2v-5H5v2zm3-8H5v2h5V5H8v3zm6 11h2v-3h3v-2h-5v5zm2-11V5h-2v5h5V8h-3z"/></symbol><symbol id="full_screen_scaling" viewBox="0 0 20 20"><path d="M2.5 17.5v-4.167h1.667v2.5h2.5V17.5H2.5Zm10.833 0v-1.667h2.5v-2.5H17.5V17.5h-4.167ZM2.5 6.667V2.5h4.167v1.667h-2.5v2.5H2.5Zm13.333 0v-2.5h-2.5V2.5H17.5v4.167h-1.667Z"/></symbol><symbol id="g-assist" viewBox="0 0 24 24"><path d="M18.809 6.618v8.947H5.95v3.194h12.812L22.003 22V6.618h-3.194Z"/><path d="M1.332 2v15.37l3.229-3.229h12.824V2H1.332Zm11.712 5.822v3.518l-.115.093a4.398 4.398 0 0 1-1.435.717 6.134 6.134 0 0 1-1.748.243h-.093c-1.308 0-2.303-.347-2.974-1.041a3.05 3.05 0 0 1-.73-1.215c-.185-.521-.277-1.135-.277-1.83V7.88c0-.845.15-1.586.451-2.188a3.386 3.386 0 0 1 1.343-1.447c.578-.335 1.273-.497 2.06-.497h.104c.799 0 1.482.173 2.049.532a3.06 3.06 0 0 1 1.238 1.528l.116.3-.313.105-1.157.405-.324.116-.313.104-.069-.22-.023-.093c-.104-.312-.336-.74-1.215-.74h-.081c-.533 0-.926.162-1.204.497-.081.093-.15.209-.208.336-.15.324-.22.74-.22 1.238v.498c0 .706.138 1.227.416 1.54.266.3.706.45 1.32.45h.07c.265 0 .52-.022.763-.057.15-.023.29-.058.405-.104v-.891H9.225V7.486h3.82v.336Z"/></symbol><symbol id="gallery" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M18 2v6H4v8H2V2h2l2 4h2L6 2h2l2 4h2l-2-4h2l2 4h2l-2-4h4Zm1 14.5V19H9l3-4 2 2.7 3-3.7 2 2.5Zm1-4.5H8v8h12v-8Zm2-2v12H6V10h16Z"/></symbol><symbol id="gamepad_blue_b" viewBox="0 0 48 48"><circle cx="24" cy="24" r="24" fill="#0B8ABC"/><path d="M16.836 34V14.094h6.973c2.415 0 4.247.465 5.496 1.394 1.248.92 1.873 2.274 1.873 4.06 0 .976-.25 1.837-.752 2.585-.502.738-1.199 1.28-2.092 1.627 1.02.255 1.823.77 2.406 1.545.593.774.889 1.722.889 2.843 0 1.915-.61 3.364-1.832 4.348-1.221.984-2.962 1.486-5.223 1.504h-7.738Zm4.102-8.668v5.373h3.513c.966 0 1.718-.228 2.256-.683.547-.465.82-1.103.82-1.915 0-1.822-.943-2.748-2.83-2.775h-3.76Zm0-2.898h3.035c2.069-.037 3.103-.862 3.103-2.475 0-.902-.264-1.55-.793-1.941-.52-.402-1.344-.602-2.474-.602h-2.872v5.018Z" fill="#fff"/></symbol><symbol id="gamepad_blue_rb" viewBox="0 0 48 48"><g clip-path="url(#a)"><path d="M24 48c13.255 0 24-10.745 24-24S37.255 0 24 0 0 10.745 0 24s10.745 24 24 24Z" fill="#0B8ABC"/><path d="M25.306 34V14h7.438c2.001 0 3.576.505 4.724 1.514 1.166.99 1.749 2.334 1.749 4.029v.486c0 .762-.183 1.447-.548 2.057-.348.59-.844 1.085-1.488 1.485.905.4 1.601.962 2.088 1.686.487.724.731 1.59.731 2.6v.486c0 1.771-.574 3.162-1.722 4.171-1.131.99-2.715 1.486-4.75 1.486h-8.222Zm3.81-3.543h4.307c1.844 0 2.767-.705 2.767-2.114V27.8c0-.686-.244-1.219-.731-1.6-.47-.381-1.149-.571-2.036-.571h-4.306v4.828Zm0-8.314h3.524c1.844 0 2.767-.686 2.767-2.057V19.6c0-.648-.244-1.152-.731-1.514-.47-.362-1.149-.543-2.036-.543h-3.523v4.6ZM8 34V14h6.916c2.123 0 3.802.543 5.037 1.629 1.253 1.085 1.88 2.59 1.88 4.514v.543c0 1.352-.305 2.495-.914 3.428-.591.934-1.427 1.638-2.505 2.115L22.407 34h-4.15l-3.602-7.143H11.81V34H8Zm3.81-10.743h3.002c.922 0 1.688-.19 2.297-.571.609-.381.913-1.02.913-1.915v-.714c0-.857-.304-1.476-.913-1.857-.61-.4-1.375-.6-2.297-.6H11.81v5.657Z" fill="#fff"/></g></symbol><symbol id="gamepad_blue_rs" viewBox="0 0 48 48"><circle cx="24" cy="24" r="24" fill="#0B8ABC"/><path d="M15.631 27.269h-3.086v6.967H8.671V15.203h6.986c2.221 0 3.934.5 5.14 1.503 1.205 1.002 1.807 2.419 1.807 4.249 0 1.298-.28 2.383-.84 3.255-.55.862-1.39 1.551-2.517 2.065l4.068 7.778v.183h-4.158Zm-3.086-3.177h3.125c.973 0 1.726-.248 2.26-.745.534-.506.8-1.198.8-2.079 0-.897-.254-1.603-.761-2.117-.5-.514-1.27-.772-2.312-.772h-3.112zm22.766 5.15c0-.74-.258-1.307-.775-1.699-.517-.4-1.446-.82-2.79-1.255-1.342-.444-2.405-.88-3.189-1.307-2.135-1.168-3.202-2.74-3.202-4.72 0-1.028.284-1.943.852-2.744.577-.81 1.399-1.443 2.466-1.896 1.077-.453 2.282-.68 3.616-.68 1.343 0 2.54.249 3.59.746 1.05.488 1.864 1.18 2.44 2.078.586.898.879 1.917.879 3.059h-3.874c0-.872-.271-1.547-.814-2.026-.542-.488-1.304-.732-2.285-.732-.947 0-1.683.205-2.209.614-.525.401-.787.933-.787 1.595 0 .619.305 1.137.917 1.556.62.418 1.528.81 2.724 1.176 2.204.671 3.81 1.503 4.817 2.497 1.007.993 1.51 2.23 1.51 3.712 0 1.648-.615 2.942-1.846 3.883-1.231.932-2.888 1.399-4.971 1.399-1.447 0-2.764-.266-3.952-.798-1.188-.54-2.096-1.276-2.724-2.209-.62-.933-.93-2.013-.93-3.242h3.887c0 2.1 1.24 3.15 3.719 3.15.92 0 1.64-.187 2.156-.562.517-.383.775-.915.775-1.594z" fill="#fff"/></symbol><symbol id="gamepad_blue_rt" viewBox="0 0 48 48"><circle cx="24" cy="24" r="24" fill="#0B8ABC"/><path d="M15.991 27.436h-3.12v7.159H8.952V15.039h7.064c2.246 0 3.978.515 5.197 1.544 1.218 1.03 1.828 2.485 1.828 4.366 0 1.334-.283 2.449-.849 3.344-.557.886-1.406 1.594-2.546 2.122l4.113 7.992v.188h-4.205Zm-3.12-3.264h3.16c.983 0 1.745-.255 2.284-.766.54-.519.81-1.23.81-2.135 0-.922-.257-1.648-.77-2.176-.506-.528-1.285-.792-2.338-.792H12.87Zm26.818-5.87h-5.823v16.293h-3.917V18.303h-5.745v-3.264h15.485z" fill="#fff"/></symbol><symbol id="gamepad_blue_x" viewBox="0 0 48 48"><circle cx="24" cy="24" r="24" fill="#0B8ABC"/><path d="m23.854 21.775 4.477-7.24h5.659l-6.954 10.413 7.134 10.587h-5.724l-4.592-7.356-4.593 7.356h-5.724l7.135-10.587-6.954-10.414h5.658z" fill="#fff"/></symbol><symbol id="gamepad_blue_y" viewBox="0 0 48 48"><circle cx="24" cy="24" r="24" fill="#0B8ABC"/><path d="m23.986 23.063 4.143-8.97h4.484l-6.535 12.688V34h-4.17v-7.219l-6.535-12.687h4.498l4.115 8.969Z" fill="#fff"/></symbol><symbol id="gamepad_b_hint" viewBox="0 0 48 48"><circle cx="24" cy="24" r="24" fill="#CF3C33"/><path d="M17.588 34V14.094h6.508c2.16 0 3.782.446 4.867 1.34 1.094.893 1.64 2.214 1.64 3.964 0 .93-.264 1.755-.793 2.475-.528.711-1.248 1.262-2.16 1.654 1.076.301 1.924.875 2.543 1.723.63.838.944 1.841.944 3.008 0 1.786-.58 3.19-1.737 4.21C28.243 33.49 26.607 34 24.492 34h-6.904Zm2.625-9.31v7.163h4.334c1.221 0 2.183-.314 2.885-.943.71-.638 1.066-1.513 1.066-2.625 0-2.397-1.303-3.596-3.91-3.596h-4.375Zm0-2.106h3.965c1.148 0 2.064-.287 2.748-.861.693-.575 1.039-1.354 1.039-2.338 0-1.094-.32-1.887-.957-2.38-.638-.5-1.609-.751-2.912-.751h-3.883v6.33Z" fill="#fff"/></symbol><symbol id="gamepad_ls_hint" viewBox="0 0 48 48"><circle cx="24" cy="24" r="24" fill="#616161"/><path d="M13.104 31.854h9.433V34H10.465V14.094h2.639v17.76Zm18.293-6.727c-2.252-.647-3.892-1.44-4.922-2.379-1.021-.948-1.532-2.114-1.532-3.5 0-1.568.625-2.862 1.873-3.883 1.258-1.03 2.89-1.545 4.895-1.545 1.367 0 2.584.265 3.65.793 1.076.529 1.905 1.258 2.489 2.188.592.93.888 1.946.888 3.049H36.1c0-1.204-.383-2.147-1.149-2.83-.766-.693-1.846-1.04-3.24-1.04-1.294 0-2.306.288-3.035.862-.72.565-1.08 1.353-1.08 2.365 0 .811.341 1.5 1.025 2.064.693.556 1.864 1.067 3.514 1.532 1.659.465 2.953.98 3.883 1.545.938.556 1.631 1.207 2.078 1.955.455.747.683 1.627.683 2.638 0 1.614-.629 2.908-1.886 3.883-1.258.966-2.94 1.45-5.045 1.45-1.367 0-2.644-.26-3.828-.78-1.185-.529-2.101-1.249-2.748-2.16-.638-.912-.957-1.946-.957-3.104h2.638c0 1.204.442 2.156 1.326 2.858.893.693 2.083 1.039 3.569 1.039 1.385 0 2.447-.283 3.185-.848.739-.565 1.108-1.335 1.108-2.31 0-.976-.342-1.728-1.026-2.256-.683-.538-1.923-1.067-3.719-1.586Z" fill="#fff"/></symbol><symbol id="gamepad_lt_hint" viewBox="0 0 48 48"><circle cx="24" cy="24" r="24" fill="#616161"/><path d="M14.95 31.854h9.433V34H12.31V14.094h2.638v17.76Zm22.407-15.6H30.96V34h-2.611V16.254h-6.385v-2.16h15.394v2.16Z" fill="#fff"/></symbol><symbol id="gamepad_rb_hint" viewBox="0 0 48 48"><g clip-path="url(#a)"><path d="M24 48c13.255 0 24-10.745 24-24S37.255 0 24 0 0 10.745 0 24s10.745 24 24 24Z" fill="#616161"/><path d="M25.729 33.91V15h7.32c2.072 0 3.675.45 4.81 1.35 1.152.883 1.729 2.099 1.729 3.648v.54c0 1.585-.748 2.756-2.243 3.512 2.035.756 3.053 2.143 3.053 4.16v.568c0 1.603-.567 2.863-1.702 3.782-1.135.9-2.746 1.35-4.836 1.35h-8.13Zm3.107-2.62h4.943c1.189 0 2.071-.216 2.648-.648.594-.432.891-1.045.891-1.837v-.622c0-.828-.297-1.458-.891-1.89-.594-.45-1.477-.676-2.648-.676h-4.944v5.673Zm0-8.267h4.133c1.152 0 2.026-.207 2.62-.62.613-.415.919-1.018.919-1.81v-.568c0-.757-.297-1.342-.892-1.756-.594-.432-1.477-.648-2.647-.648h-4.134v5.402ZM8 33.91V15h6.78c2.198 0 3.918.486 5.16 1.459 1.243.972 1.865 2.341 1.865 4.106v.567c0 1.28-.333 2.36-1 3.242-.648.865-1.576 1.495-2.782 1.891l4.322 7.646h-3.404l-3.998-7.186h-3.836v7.186H8Zm3.107-9.833h3.62c1.224 0 2.188-.225 2.89-.675.72-.469 1.081-1.198 1.081-2.189v-.702c0-.972-.36-1.684-1.08-2.134-.703-.468-1.666-.703-2.891-.703h-3.62v6.403Z" fill="#fff"/></g></symbol><symbol id="gamepad_rs_hint" viewBox="0 0 48 48"><circle cx="24" cy="24" r="24" fill="#616161"/><path d="M16.672 25.947h-4.676V34H9.357V14.094h6.59c2.242 0 3.965.51 5.168 1.531 1.213 1.02 1.819 2.506 1.819 4.457 0 1.24-.338 2.32-1.012 3.24-.666.92-1.595 1.609-2.79 2.065l4.677 8.449V34h-2.817l-4.32-8.053Zm-4.676-2.146h4.033c1.304 0 2.338-.337 3.104-1.012.775-.674 1.162-1.577 1.162-2.707 0-1.23-.37-2.174-1.108-2.83-.729-.656-1.786-.989-3.171-.998h-4.02V23.8Zm20.494 1.326c-2.251-.647-3.892-1.44-4.922-2.379-1.02-.948-1.53-2.114-1.53-3.5 0-1.568.623-2.862 1.872-3.883 1.258-1.03 2.89-1.545 4.895-1.545 1.367 0 2.584.265 3.65.793 1.076.529 1.905 1.258 2.488 2.188.593.93.889 1.946.889 3.049h-2.639c0-1.204-.383-2.147-1.148-2.83-.766-.693-1.846-1.04-3.24-1.04-1.295 0-2.306.288-3.035.862-.72.565-1.08 1.353-1.08 2.365 0 .811.341 1.5 1.025 2.064.693.556 1.864 1.067 3.513 1.532 1.66.465 2.954.98 3.883 1.545.94.556 1.632 1.207 2.079 1.955.455.747.683 1.627.683 2.638 0 1.614-.629 2.908-1.887 3.883-1.258.966-2.94 1.45-5.045 1.45-1.367 0-2.643-.26-3.828-.78-1.185-.529-2.1-1.249-2.748-2.16-.638-.912-.957-1.946-.957-3.104h2.639c0 1.204.442 2.156 1.326 2.858.893.693 2.083 1.039 3.568 1.039 1.386 0 2.448-.283 3.186-.848s1.107-1.335 1.107-2.31c0-.976-.341-1.728-1.025-2.256-.684-.538-1.923-1.067-3.719-1.586Z" fill="#fff"/></symbol><symbol id="gamepad_rt_hint" viewBox="0 0 48 48"><circle cx="24" cy="24" r="24" fill="#616161"/><path d="m24.272 34.207-3.206-.153-5.513-7.413h-3.85v7.413H8.97V15.41h5.755c1.242 0 2.276.075 3.104.225.828.142 1.573.4 2.236.776.745.426 1.325.964 1.739 1.616.423.642.634 1.46.634 2.454 0 1.344-.372 2.47-1.117 3.38-.746.902-1.771 1.582-3.078 2.042zm-4.69-13.55c0-.535-.106-1.007-.317-1.416-.203-.417-.543-.768-1.022-1.052a3.903 3.903 0 0 0-1.407-.5 10.7 10.7 0 0 0-1.918-.15h-3.215v7.036h2.76c.864 0 1.619-.066 2.262-.2.644-.142 1.192-.4 1.643-.776.414-.351.717-.752.91-1.202.203-.46.304-1.04.304-1.74zm20.902-3.044H33.74v16.441h-2.51v-16.44h-6.744V15.41h15.998z" fill="#fff"/></symbol><symbol id="gamepad_y_hint" viewBox="0 0 48 48"><circle cx="24" cy="24" r="24" fill="#F19937"/><path d="m24.473 24.088 5.195-9.994h2.98l-6.863 12.482V34H23.16v-7.424l-6.863-12.482h3.008l5.168 9.994Z" fill="#fff"/></symbol><symbol id="gameplay" viewBox="0 0 24 24"><path d="M23 2v16h-9v2h2v2H8v-2h2v-2H1V2h22Zm-2 2H3v12h18V4ZM10 6c.3 0 .6.3.6.6H13c0-.4.3-.6.6-.6h1.1c.4 0 .6.3.6.6l.121.007c.57.06 1.186.533 1.279 1.093.1.6.9 4.1.8 5.1 0 .5-.5 1.1-1.1 1.1-.6 0-1.1-.5-1.7-1.1l-.962-.962-.138-.138c-.5-.6-.5-.6-1.1-.6h-1.3c-.403.003-.443.043-1 .6l-1.1 1.1c-.6.5-1.2 1.1-1.7 1.1s-1.1-.5-1.1-1.1c0-1.1.8-4.5.9-5.1.1-.6.8-1.1 1.3-1.1l.009-.114C8.56 6.162 8.83 6 9.1 6Z"/></symbol><symbol id="game_controller" viewBox="0 0 768 768"><path d="M652.8 272c-6.4-32-44.8-64-76.8-64 0-19.2-12.8-32-32-32h-64c-19.2 0-32 12.8-32 32H320c0-16-16-32-32-32h-64c-19.2 0-32 12.8-32 32-32 0-70.4 28.8-76.8 64C108.8 304 64 496 64 560c0 32 32 64 64 64s64-32 96-64 32-35.2 64-64c32-32 32-32 64-32h64c32 0 32 0 64 32l64 64c32 32 64 64 96 64s64-32 64-64c0-60.8-44.8-256-51.2-288zM320 358.4h-41.6V400h-44.8v-41.6H192v-44.8h41.6V272h44.8v41.6H320v44.8zM512 400c-35.2 0-64-28.8-64-64s28.8-64 64-64 64 28.8 64 64-28.8 64-64 64z"/></symbol><symbol id="game_controller_off" viewBox="0 0 768 768"><path d="M704 560c0 9.5-2.8 18.9-7.6 27.5L500 398.8c3.9.7 7.9 1.2 12 1.2 35.2 0 64-28.8 64-64s-28.8-64-64-64-64 28.8-64 64c0 5 .6 9.8 1.7 14.5L301.3 208H448c0-19.2 12.8-32 32-32h64c19.2 0 32 12.8 32 32 32 0 70.4 32 76.8 64S704 499.2 704 560zM146.9 224.6c-15.8 11.7-28.3 28.7-31.7 47.4C108.8 304 64 496 64 560c0 32 32 64 64 64s64-32 96-64 32-35.2 64-64c32-32 32-32 64-32h44.2m-110-105.6h-7.8V400h-44.8v-41.6H192v-44.8h41.6v-5.8M396.2 464l255 244.9 40.9-42.5-44.7-42.9L214.8 208 96.1 93.9l-40.9 42.5 91.7 88.1"/></symbol><symbol id="game_controller_partial" viewBox="0 0 24 24"><path clip-rule="evenodd" d="M18.011 6c1.001 0 2.202 1.001 2.402 2.002.033.167.1.475.188.88.44 2.034 1.413 6.532 1.413 8.117 0 1-1 2.001-2.001 2.001-1 0-2.002-1-3.002-2.001l-2.002-2.002c-.667-.667-1.334-1-2.001-1h-2.002c-.667 0-1.334.333-2.001 1-.618.557-.855.808-1.181 1.154-.202.214-.438.465-.82.848C6.003 17.999 5.002 19 4 19c-.999 0-2-1-2-2.001 0-1.66.962-6.061 1.406-8.09.091-.418.16-.736.195-.907.2-1.1 1.401-2.001 2.402-2.001 0-.6.4-1.001 1-1.001h2.002c.5 0 1 .5 1 1h4.004c0-.6.4-1 1-1h2.002c.6 0 1 .4 1 1zm-6.995 6.495h1.001l-.01-.01V7.492H8.505v-1H7.504v1H6.003c-.31 0-.86.41-.92.77l-.096.456-.105.495-.065.302c-.41 1.901-1.306 6.053-1.306 7.474 0 .17.33.5.5.5.38 0 1.401-1.02 1.942-1.561.37-.36.6-.6.79-.81.33-.351.6-.631 1.241-1.212 1.181-1.18 1.551-1.41 3.032-1.41zm3.003-2.501c0 1.1.9 2.001 2.001 2.001s2.001-.9 2.001-2.001-.9-2.002-2.001-2.002-2.001.9-2.001 2.002zM7.324 8.002h1.401v1.291h1.291v1.401h-1.29v1.301H7.323v-1.3h-1.3V9.292h1.3z" fill="#fff" fill-opacity=".9" fill-rule="evenodd"/></symbol><symbol id="game_library" viewBox="0 0 768 768"><path d="M160 96v576h448V96H160zm352 400c-16 0-32-16-48-32l-32-32c-16-16-16-16-32-16h-32c-16 0-16 0-32 16l-32 32c-16 16-32 32-48 32s-32-16-32-32c0-32 22.4-128 25.6-144s22.4-32 38.4-32c0-9.6 6.4-16 16-16h32c9.6 0 16 6.4 16 16h64c0-9.6 6.4-16 16-16h32c9.6 0 16 6.4 16 16 16 0 35.2 16 38.4 32S544 432 544 464c0 16-16 32-32 32zM64 128h64v512H64V128zm576 0h64v512h-64V128z"/></symbol><symbol id="gfe_logo" viewBox="0 0 768 768"><path d="m42.667 608 83.2 83.2h601.6v34.133H110.934l-68.267-68.267z"/><path d="M42.667 42.667v512l102.4 102.4h582.4v-614.4h-684.8zM76.8 539.733V76.8h616.533V192c-179.2 0-332.8 72.533-392.534 125.867l12.8 38.4c10.666 29.867 23.467 59.733 40.533 87.466 2.133 6.4 6.4 10.666 8.534 17.067 38.4 64 85.333 119.467 134.4 164.267H396.799c-53.333-46.933-98.133-98.133-134.4-153.6-25.6 12.8-102.4 14.933-138.667 32 34.133 36.267 74.667 81.067 125.866 121.6h-91.733l-81.067-85.334zm503.467 85.334c-89.6-87.466-128-196.267-140.8-236.8-2.133-10.666-4.267-14.933-4.267-14.933s110.933-83.2 256-108.8v72.533c-46.933 19.2-98.133 44.8-145.067 85.333 0 0 0 4.267 2.133 8.534 6.4 25.6 29.866 100.267 89.6 160-6.4-70.4-4.267-119.467-4.267-134.4v-6.4s21.333-17.067 55.467-36.267v211.2h-108.8z"/></symbol><symbol id="gfe_logo_inverse" viewBox="0 0 768 768"><path d="M437.333 386.133c12.8 38.4 49.067 145.067 136.533 228.267h106.666V411.733c-34.133 19.2-53.333 34.133-53.333 34.133v6.4c0 17.067-2.133 61.867 4.267 130.133-57.6-59.733-81.067-130.133-87.466-155.733-2.133-6.4-2.133-8.534-2.133-8.534 44.8-38.4 93.867-64 138.667-81.067v-70.4c-140.8 23.467-247.467 104.533-247.467 104.533s2.133 6.4 4.267 14.933z"/><path d="M249.6 616.533c-49.066-40.533-87.467-83.2-119.467-119.467 36.267-14.933 108.8-19.2 134.4-29.866 34.133 53.333 78.933 104.534 130.133 149.333h96c-46.933-44.8-93.867-98.133-130.133-160-2.133-4.267-6.4-10.666-8.534-14.933-14.933-25.6-27.733-53.333-38.4-83.2-4.267-12.8-8.534-23.467-12.8-36.267 57.6-51.2 206.933-119.467 379.733-121.6v-115.2h-595.2v448l78.933 81.067h85.333z"/><path d="M42.667 42.667v612.267l70.4 70.4h612.267V42.668H42.668zm672 672h-595.2l-66.133-66.134V601.6l81.067 78.933h580.267v34.133zm0-66.134h-563.2L53.334 548.266V53.333h661.333v595.2z"/></symbol><symbol id="goal" viewBox="0 0 24 24"><g transform="translate(2 6)"><circle cx="10.388" cy="5.993" r="5.62"/><path d="M3.405 9.008H-.003v2.02h4.701a7.632 7.632 0 0 1-1.293-2.02zm-.626-3.015c0-.338.03-.669.073-.996H-.003v2.02h2.859a7.548 7.548 0 0 1-.077-1.024zM4.673.984H-.003v2.02h3.395A7.633 7.633 0 0 1 4.673.984z"/></g><path d="M15.379 1.999h-4.376c5.13 1.031 8.964 5.122 8.964 10.015 0 4.847-3.762 8.908-8.819 9.986h4.173c3.944-1.747 6.683-5.573 6.683-10.013-.001-4.419-2.712-8.229-6.625-9.988Z"/></symbol><symbol id="gpu" viewBox="0 0 768 768"><path d="M64 226.133v46.934h34.133v268.8H140.8V226.134zm128 0V499.2h34.133v46.933H448V499.2h256V226.133H192zm366.933 217.6c-42.667 0-81.067-34.133-81.067-81.067 0-42.667 34.133-81.067 81.067-81.067 42.667 0 81.067 34.133 81.067 81.067 0 42.667-34.133 81.067-81.067 81.067z"/></symbol><symbol id="group2" viewBox="0 0 24 24"><g clip-path="url(#a)"><path d="M0 18v-1.575c0-.717.367-1.3 1.1-1.75C1.833 14.225 2.8 14 4 14c.217 0 .425.004.625.012.2.009.392.03.575.063-.233.35-.408.717-.525 1.1a4.098 4.098 0 0 0-.175 1.2V18H0Zm6 0v-1.625c0-.533.146-1.02.438-1.463.291-.441.704-.829 1.237-1.162.533-.333 1.17-.583 1.913-.75.741-.167 1.545-.25 2.412-.25.883 0 1.696.083 2.438.25.741.167 1.379.417 1.912.75.533.333.942.72 1.225 1.162.283.442.425.93.425 1.463V18H6Zm13.5 0v-1.625a4.46 4.46 0 0 0-.163-1.225 3.913 3.913 0 0 0-.487-1.075 4.29 4.29 0 0 1 .563-.063c.191-.008.387-.012.587-.012 1.2 0 2.167.22 2.9.662.733.442 1.1 1.03 1.1 1.763V18h-4.5ZM4 13c-.55 0-1.02-.196-1.413-.588A1.926 1.926 0 0 1 2 11c0-.567.196-1.042.587-1.425A1.947 1.947 0 0 1 4 9c.567 0 1.042.192 1.425.575.383.383.575.858.575 1.425 0 .55-.192 1.02-.575 1.412A1.914 1.914 0 0 1 4 13Zm16 0c-.55 0-1.02-.196-1.413-.588A1.926 1.926 0 0 1 18 11c0-.567.196-1.042.587-1.425A1.947 1.947 0 0 1 20 9c.567 0 1.042.192 1.425.575.383.383.575.858.575 1.425 0 .55-.192 1.02-.575 1.412A1.914 1.914 0 0 1 20 13Zm-8-1a2.893 2.893 0 0 1-2.125-.875A2.893 2.893 0 0 1 9 9c0-.85.292-1.563.875-2.138S11.167 6 12 6c.85 0 1.563.287 2.137.862C14.712 7.438 15 8.15 15 9c0 .833-.287 1.542-.863 2.125-.575.583-1.287.875-2.137.875Z" fill="#fff"/></g></symbol><symbol id="guage" viewBox="0 0 768 768"><path d="M384 512c-53.019 0-96-42.981-96-96 0-35.84 19.52-67.2 48-83.52l310.72-179.84L469.76 459.2c-16 31.36-48.32 52.8-85.76 52.8zm0-416c57.92 0 112 16 159.04 42.24l-67.2 38.72C448 166.08 416 160 384 160c-141.385 0-256 114.615-256 256 0 70.72 28.48 134.72 74.88 180.8h.32c12.48 12.48 12.48 32.64 0 45.12s-32.96 12.48-45.44.32C99.84 584.32 64 504.32 64 416 64 239.269 207.269 96 384 96zm320 320c0 88.32-35.84 168.32-93.76 226.24-12.48 12.16-32.64 12.16-45.12-.32s-12.48-32.64 0-45.12C611.52 550.4 640 486.72 640 416c0-32-6.08-64-17.28-92.8l38.72-67.2C688 304 704 357.76 704 416z"/></symbol><symbol id="gun" viewBox="0 0 24 24"><path d="M23 6.21h-.456v-.957H20.82l-.267.517H6.46l.001-.007C6.46 5.342 6.095 5 5.643 5c-.451 0-.817.342-.817.763l.001.007H2.986v2.315L1.496 9.35v.902h1.312l-1.784 7.632c-.135.574.333 1.116.961 1.116h4.199c.463 0 .864-.301.962-.724l1.182-5.057h3.026c1.644 0 2.982-1.249 2.982-2.784 0-.068-.006-.135-.011-.203h6.363v-.509h1.855V7.652H23V6.21Zm-9.812 4.225c0 .944-.822 1.712-1.833 1.712H8.58l.448-1.914h4.147c.007.066.013.134.013.202Z"/></symbol><symbol id="gun2x" viewBox="0 0 24 36"><path d="M23 18.21h-.456v-.957H20.82l-.267.517H6.46l.001-.007C6.46 17.342 6.095 17 5.643 17c-.451 0-.817.342-.817.763l.001.007H2.986v2.315l-1.49 1.265v.902h1.312l-1.784 7.632c-.135.574.333 1.116.961 1.116h4.199c.463 0 .864-.301.962-.724l1.182-5.057h3.026c1.644 0 2.982-1.249 2.982-2.784 0-.068-.006-.135-.011-.203h6.363v-.509h1.855v-2.071H23V18.21Zm-9.812 4.225c0 .944-.822 1.712-1.833 1.712H8.58l.448-1.914h4.147c.007.066.013.134.013.202ZM11.94 13.43H5.96v-1.02l2.9-3.16c.24-.27.45-.51.61-.72.16-.21.29-.4.38-.57.1-.17.16-.33.2-.49a1.79 1.79 0 0 0-.03-1.02 1.244 1.244 0 0 0-.67-.75c-.16-.06-.35-.1-.56-.1-.26 0-.48.04-.67.12-.19.08-.35.2-.47.34-.12.15-.22.32-.28.52-.06.2-.1.42-.1.66H5.79c0-.39.07-.76.2-1.1.13-.34.33-.64.58-.9.26-.26.57-.46.95-.61.37-.15.8-.22 1.28-.22.44 0 .84.06 1.19.17.35.11.64.28.88.49.24.21.42.47.54.77a2.712 2.712 0 0 1 .06 1.83c-.09.27-.21.54-.37.81s-.35.54-.57.81c-.22.27-.46.54-.72.82l-1.99 2.13h4.13v1.19h-.01Zm3.6-4.44 1.26-2.17h1.65l-2.02 3.26 2.09 3.35h-1.64l-1.32-2.26-1.31 2.26H12.6l2.09-3.35-2.02-3.26h1.64z"/></symbol><symbol id="gun3x" viewBox="0 0 24 36"><path d="M23 18.21h-.456v-.957H20.82l-.267.517H6.46l.001-.007C6.46 17.342 6.095 17 5.643 17c-.451 0-.817.342-.817.763l.001.007H2.986v2.315l-1.49 1.265v.902h1.312l-1.784 7.632c-.135.574.333 1.116.961 1.116h4.199c.463 0 .864-.301.962-.724l1.182-5.057h3.026c1.644 0 2.982-1.249 2.982-2.784 0-.068-.006-.135-.011-.203h6.363v-.509h1.855v-2.071H23V18.21Zm-9.812 4.225c0 .944-.822 1.712-1.833 1.712H8.58l.448-1.914h4.147c.007.066.013.134.013.202ZM7.67 8.3h.88c.26 0 .48-.03.67-.1.19-.07.34-.16.47-.28.13-.12.22-.26.28-.43.06-.17.09-.35.09-.56 0-.42-.11-.75-.33-.99-.22-.23-.56-.34-1.02-.34-.2 0-.38.03-.54.09-.17.05-.31.14-.44.24-.12.11-.21.24-.28.4-.07.15-.1.32-.1.52H5.86c0-.35.07-.67.21-.97.14-.31.33-.56.59-.78.25-.22.55-.39.9-.51s.72-.19 1.13-.19c.42 0 .81.05 1.16.16.35.11.65.27.9.48.25.22.45.48.59.8.14.32.21.68.21 1.1 0 .18-.03.36-.09.54-.06.18-.14.36-.26.53-.11.17-.26.33-.43.48-.17.15-.37.27-.6.38.27.09.5.21.69.36.19.14.34.31.46.49s.2.38.26.58a2.736 2.736 0 0 1-.15 1.75c-.15.33-.36.6-.63.82-.27.22-.58.39-.95.51s-.76.17-1.18.17c-.39 0-.76-.05-1.11-.16a2.91 2.91 0 0 1-.93-.47c-.27-.21-.48-.47-.64-.78-.16-.31-.24-.68-.24-1.09h1.48c0 .2.03.37.1.54.07.16.17.3.29.42.13.12.28.21.46.27.18.06.38.09.6.09.46 0 .82-.12 1.09-.37.26-.24.4-.6.4-1.06 0-.25-.04-.47-.12-.65-.08-.18-.19-.33-.33-.46-.14-.12-.31-.21-.52-.27-.2-.06-.43-.09-.68-.09h-.85V8.3Zm7.86.69 1.26-2.17h1.65l-2.02 3.26 2.09 3.35h-1.64l-1.32-2.26-1.31 2.26h-1.65l2.09-3.35-2.02-3.26h1.64z"/></symbol><symbol id="heads_up_display" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M23 18h-9v2h2v2H8v-2h2v-2H1V2h22v16ZM21 4H3v12h18V4ZM5 10v4h6v-4H5Z"/></symbol><symbol id="heart" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="m12 21.35-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z"/></symbol><symbol id="help" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 17h-2v-2h2v2zm2.07-7.75-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25z"/></symbol><symbol id="highlights" viewBox="0 0 24 24"><path d="m18 4 2 4h-3l-2-4h-2l2 4h-3l-2-4H8l2 4H7L5 4H2v16h20V4h-4Zm-3.5 13.987L12 16.478l-2.5 1.51.7-2.818L8 13.157l2.9-.201 1.1-2.717 1.1 2.717 2.9.201-2.2 1.912.7 2.918Z"/></symbol><symbol id="highlights_disabled" viewBox="0 0 24 24"><path d="M2.27 2 21 20.73 19.73 22l-2.002-2.001L2 20V4.269L1 3.27 2.27 2ZM10 4l2 4h3l-2-4h2l2 4h3.005L18 4h4v15.173l-6.027-6.026.036-.03-.07-.006-6.744-6.74L8 4.001h2Zm.663 8.933-2.645.183 2.198 1.997-.699 2.796 2.497-1.498 2.497 1.498-.36-1.488-3.488-3.488Z"/></symbol><symbol id="home" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8h5z"/></symbol><symbol id="icon_play" viewBox="0 0 20 20"><path fill-rule="evenodd" clip-rule="evenodd" d="M6.667 4.167v11.666L15.833 10 6.667 4.167Z" fill="#fff" fill-opacity=".9"/></symbol><symbol id="image" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M21 21V3H3v18h18zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z"/></symbol><symbol id="image_off" viewBox="0 0 32 32"><path fill-rule="evenodd" clip-rule="evenodd" d="M20.67 22.084 1.914 3.328l1.414-1.414L22.084 20.67l-1.414 1.414Z" fill="#fff"/><path fill-rule="evenodd" clip-rule="evenodd" d="M21.328 17.2V3h-14.2l14.2 14.2ZM4.3 3h-.972v18h18v-.972L19.301 18H5.327l3.5-4.5 2.5 3.01 2.833-3.65L4.3 3Z" fill="#fff"/></symbol><symbol id="ime" viewBox="0 0 24 24"><g fill="#FFF"><path d="M13.912 14.884h-.905V13.11H15.9a4.157 4.157 0 0 0-.302-.51l.92-.279c.186.233.372.542.472.79h2.662v1.772H18.7v-.905h-4.79v.905Zm5.795 2.5h-2.886v1.167c0 .495-.116.743-.495.882-.371.148-.867.155-1.5.155a3.363 3.363 0 0 0-.403-.936c.479.016 1.06.016 1.214.016.155 0 .201-.031.201-.14v-1.145h-2.87v-.874h2.87v-.41a5.31 5.31 0 0 0 .945-.635H14.29v-.859h3.42l.21-.046.61.48a7.772 7.772 0 0 1-1.71 1.338v.132h2.886v.874Z"/><path d="M20.232 2c.942 0 1.71.735 1.768 1.658v16.574c0 .936-.729 1.71-1.658 1.762l-.11.006H3.774c-.942 0-1.71-.735-1.768-1.665L2 20.232V3.768c0-.942.735-1.71 1.665-1.768h16.567Zm.626 1.258-.013.045a.804.804 0 0 1-.174.284L3.503 20.8a.695.695 0 0 1-.155.116c.104.058.22.103.342.116h16.542a.8.8 0 0 0 .8-.722l.007-.078V3.768a.83.83 0 0 0-.18-.51Zm-12.364 1.2H7.298L4.967 10.72h1.372l.43-1.29h2.263l.434 1.29h1.373L8.494 4.458ZM7.896 6.04l.787 2.344H7.118l.778-2.344Z"/></g></symbol><symbol id="inactive_display" viewBox="0 0 25 22"><path clip-rule="evenodd" d="M4.627 2.031H0v17.904h22.441l-1.492-1.5H1.5V3.531h4.62l-1.493-1.5ZM23.5 18.186V3.53H8.919l-1.493-1.5H25v17.662l-1.5-1.507Z"/><path d="M1.379 1.195 2.604 0l20.577 20.68-1.225 1.195L1.379 1.195Z"/></symbol><symbol id="info" viewBox="0 0 24 24"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2Zm1 15h-2v-6h2v6Zm0-8h-2V7h2v2Z"/></symbol><symbol id="integer_scaling" viewBox="0 0 20 20"><path d="M5 10h1.667V8.335H5v1.667Zm3.334 0H10V8.335H8.334v1.667Zm3.333 3.334h1.667v-1.667h-1.667v1.667Zm0-3.333h1.667V8.334h-1.667v1.667Zm-10 6.666V3.334h16.667v13.333H1.667Zm1.667-1.666h13.333V5H3.334v10Z"/></symbol><symbol id="ios_share" viewBox="0 0 44 44"><path d="m21 7-2.65 3.41a.931.931 0 0 1-.72.342c-.538 0-.944-.427-.944-1.012 0-.298.117-.527.314-.74l4.155-4.659C21.417 4.056 21.738 4 22 4s.415.056.676.341l4.432 4.645c.196.213.302.442.302.74 0 .585-.408 1.012-.958 1.012a.925.925 0 0 1-.708-.342L23 7v17c0 .598-.436 1-1 1-.564 0-1-.402-1-1V7ZM9 17.667c0-3.045 1.538-4.583 4.6-4.583L17 13v1.993h-3.686c-1.464 0-2.27.798-2.27 2.335l-.042 15.259c0 1.537.533 2.413 1.998 2.413h17.727C32.178 35 33 34.467 33 32.93l.042-15.26c0-1.536-.591-2.677-2.042-2.677h-4V13l3.4.084c3.062 0 4.6 1.538 4.6 4.583v14.75C35 35.464 33.462 37 30.4 37H13.6C10.538 37 9 35.463 9 32.418V17.667Z"/></symbol><symbol id="isp" viewBox="0 0 768 768"><path d="M384 64c-141.385 0-256 114.615-256 256 0 128.96 96 237.44 224 253.76V608h-32c-17.673 0-32 14.327-32 32H64v64h224c0 17.673 14.327 32 32 32h128c17.673 0 32-14.327 32-32h224v-64H480c0-17.673-14.327-32-32-32h-32v-34.24c128-16 224-124.8 224-253.76 0-141.385-114.615-256-256-256zm0 64s23.68 40.96 40.32 96h-80.64c16.64-55.04 40.32-96 40.32-96zm-71.36 13.76c-8.64 16-21.76 45.12-32.96 82.24h-61.76c22.08-37.12 54.08-66.24 94.72-82.24zm142.72.32c40.64 16 72.64 44.8 94.72 81.92h-61.76c-11.2-37.12-24.32-66.24-32.96-81.92zM194.88 288h71.36c-1.28 10.56-2.24 21.12-2.24 32s.96 21.44 2.24 32h-71.36c-1.92-10.56-2.88-21.12-2.88-32s.96-21.44 2.88-32zm135.36 0h107.52c1.28 10.56 2.24 21.12 2.24 32s-.96 21.44-2.24 32H330.24c-1.28-10.56-2.24-21.12-2.24-32s.96-21.44 2.24-32zm171.52 0h71.36c1.92 10.56 2.88 21.12 2.88 32s-.96 21.44-2.88 32h-71.36c1.28-10.56 2.24-21.12 2.24-32s-.96-21.44-2.24-32zM217.92 416h61.76c11.2 37.12 24.32 66.24 32.96 81.92-40.64-16-72.64-44.8-94.72-81.92zm125.76 0h80.64C407.68 471.04 384 512 384 512s-23.68-40.96-40.32-96zm144.64 0h61.76C528 453.12 496 482.24 455.36 498.24c8.64-16 21.76-45.12 32.96-82.24z"/></symbol><symbol id="keyboard" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0zm0 0h24v24H0V0z"/><path d="M22 5H2.01L2 19h20V5zM11 8h2v2h-2V8zm0 3h2v2h-2v-2zM8 8h2v2H8V8zm0 3h2v2H8v-2zm-1 2H5v-2h2v2zm0-3H5V8h2v2zm9 7H8v-2h8v2zm0-4h-2v-2h2v2zm0-3h-2V8h2v2zm3 3h-2v-2h2v2zm0-3h-2V8h2v2z"/></symbol><symbol id="keyboard_arrow_left" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M15.41 16.59 10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"/></symbol><symbol id="keyboard_arrow_right" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"/></symbol><symbol id="keyboard_hide_icon" viewBox="0 0 20 20"><g id="Client-IME" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><g id="11″-iPad-Pro--Client-IME---portrait---snackbar" transform="translate(-780 -613)"><g id="Components-/-Button-/-Contained-icon-/-Active-Copy" transform="translate(762 594)"><g id="keyboard_hide" transform="translate(16 16)"><path id="Path" d="M0 0h24v24H0z"/><path d="M22 3H2.01L2 17h20V3ZM11 6h2v2h-2V6Zm0 3h2v2h-2V9ZM8 6h2v2H8V6Zm0 3h2v2H8V9Zm-1 2H5V9h2v2Zm0-3H5V6h2v2Zm9 7H8v-2h8v2Zm0-4h-2V9h2v2Zm0-3h-2V6h2v2Zm3 3h-2V9h2v2Zm0-3h-2V6h2v2Zm-7 15 4-4H8l4 4Z" id="Shape" fill="#FFF"/></g></g></g></g></symbol><symbol id="laptop" viewBox="0 0 32 32"><path d="M3 26v-2.235h4.47v-1.118H5.236V7h22.353v15.647h-2.235v1.118h4.47V26H3Zm4.47-5.588h17.883V9.235H7.47v11.177Z" fill="currentColor"/></symbol><symbol id="launch" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M19 19H5V5h7V3H3v18h18v-9h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z"/></symbol><symbol id="link" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M17 7h-4v2h4c1.65 0 3 1.35 3 3s-1.35 3-3 3h-4v2h4c2.76 0 5-2.24 5-5s-2.24-5-5-5zm-6 8H7c-1.65 0-3-1.35-3-3s1.35-3 3-3h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-2zm-3-4h8v2H8zm9-4h-4v2h4c1.65 0 3 1.35 3 3s-1.35 3-3 3h-4v2h4c2.76 0 5-2.24 5-5s-2.24-5-5-5zm-6 8H7c-1.65 0-3-1.35-3-3s1.35-3 3-3h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-2zm-3-4h8v2H8z"/></symbol><symbol id="link_off" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M14.39 11 16 12.61V11zM17 7h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1 0 1.27-.77 2.37-1.87 2.84l1.4 1.4A4.986 4.986 0 0 0 22 12c0-2.76-2.24-5-5-5zM2 4.27l3.11 3.11A4.991 4.991 0 0 0 2 12c0 2.76 2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1 0-1.59 1.21-2.9 2.76-3.07L8.73 11H8v2h2.73L13 15.27V17h1.73l4.01 4.01 1.41-1.41L3.41 2.86 2 4.27z"/></symbol><symbol id="lock" viewBox="0 0 24 24"><g fill="none"><path d="M0 0h24v24H0V0z"/><path d="M0 0h24v24H0V0z" opacity=".87"/></g><path d="M20 8h-3V6.21c0-2.61-1.91-4.94-4.51-5.19A5.008 5.008 0 0 0 7 6v2H4v14h16V8zm-8 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zM9 8V6c0-1.66 1.34-3 3-3s3 1.34 3 3v2H9z"/></symbol><symbol id="logout" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M14.6 15.6 16 17l5-5-5-5-1.4 1.4 2.6 2.6H7.5v2h9.7l-2.6 2.6ZM3 21h18v-3.976h-2V19H5V5h14v2.031h2V3H3v18Z"/></symbol><symbol id="lt_arrow" viewBox="0 0 40 40"><g fill="none" fill-rule="evenodd"><rect width="39" height="39" x=".5" y=".5" fill="var(--lt-arrow-rect-fill,#000)" stroke="var(--lt-arrow-rect-stroke,#FFF)" stroke-opacity=".4" opacity=".601" rx="19.5"/><path fill="var(--lt-arrow-polygon-fill,#FFF)" d="m22 26 1.41-1.41L18.83 20l4.58-4.59L22 14l-6 6z"/></g></symbol><symbol id="maximize" viewBox="0 0 24 24"><path fill-rule="evenodd" clip-rule="evenodd" d="M4 4h16v16H4V4Zm2 4v10h12V8H6Z" fill="#fff" fill-opacity=".9"/></symbol><symbol id="medal" viewBox="0 0 24 24"><path d="M3.79 2h16.42v1.59H3.79zm0 3.18v11L12 22l8.21-5.82v-11H3.79Zm11.25 11.5L12 15.08l-3.04 1.6.58-3.39-2.46-2.4 3.4-.49L12 7.32l1.52 3.08 3.4.49-2.46 2.4.58 3.39Z"/></symbol><symbol id="memory" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M15 9H9v6h6V9zm-2 4h-2v-2h2v2zm8-2V9h-2V5h-4V3h-2v2h-2V3H9v2H5v4H3v2h2v2H3v2h2v4h4v2h2v-2h2v2h2v-2h4v-4h2v-2h-2v-2h2zm-4 6H7V7h10v10z"/></symbol><symbol id="menu" viewBox="0 0 24 24"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"/></symbol><symbol id="message" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M22 2H2.01L2 22l4-4h16V2zm-4 12H6v-2h12v2zm0-3H6V9h12v2zm0-3H6V6h12v2z"/></symbol><symbol id="mic" viewBox="0 0 24 24"><path d="M12 14c1.7 0 3-1.3 3-3V5c0-1.7-1.3-3-3-3S9 3.3 9 5v6c0 1.7 1.3 3 3 3zm5.3-3c0 3-2.5 5.1-5.3 5.1S6.7 14 6.7 11H5c0 3.4 2.7 6.2 6 6.7V21h2v-3.3c3.3-.5 6-3.3 6-6.7h-1.7z"/></symbol><symbol id="mic_off" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M15 10.6V5c0-1.66-1.34-3-3-3-1.54 0-2.79 1.16-2.96 2.65L15 10.6zm4 .4h-1.7c0 .58-.1 1.13-.27 1.64l1.27 1.27c.44-.88.7-1.87.7-2.91zM4.41 2.86 3 4.27l6 6V11c0 1.66 1.34 3 3 3 .23 0 .44-.03.65-.08l1.66 1.66c-.71.33-1.5.52-2.31.52-2.76 0-5.3-2.1-5.3-5.1H5c0 3.41 2.72 6.23 6 6.72V21h2v-3.28a7.13 7.13 0 0 0 2.55-.9l4.2 4.2 1.41-1.41L4.41 2.86z"/></symbol><symbol id="minimize" viewBox="0 0 25 24"><path fill-rule="evenodd" clip-rule="evenodd" d="M20.946 14h-16v-4h16" fill="#fff" fill-opacity=".9"/></symbol><symbol id="montage" viewBox="0 0 24 24"><path d="m5 4 2 4h3L8 4h2l2 4h3l-2-4h2l2 4h3l-2-4h4v16H2V4h3Zm4.5 7-1.1 2.4L6 14.5l2.4 1.1L9.5 18l1.1-2.4 2.4-1.1-2.4-1.1L9.5 11Zm6-1.5-.8 1.7-1.7.8 1.7.8.8 1.7.8-1.7L18 12l-1.7-.8-.8-1.7Z"/></symbol><symbol id="more_horiz" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"/></symbol><symbol id="more_vert" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"/></symbol><symbol id="movie" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="m18 4 2 4h-3l-2-4h-2l2 4h-3l-2-4H8l2 4H7L5 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4h-4z"/></symbol><symbol id="network_signal" viewBox="0 0 768 768"><path d="M611.875 130.56c139.852 140.084 139.852 367.028 0 506.88l-46.08-46.08c114.509-114.509 114.509-300.212 0-414.72l46.08-46.08zm-92.159 92.16c88.934 89.165 88.934 233.626 0 322.56l-46.08-46.08c63.59-63.59 63.59-166.81 0-230.4l46.08-46.08zM156.125 637.44c-139.853-140.083-139.853-367.027 0-506.88l46.08 46.08c-114.508 114.509-114.508 300.212 0 414.72l-46.08 46.08zm92.159-92.16c-88.934-89.164-88.934-233.626 0-322.56l46.08 46.08c-63.59 63.59-63.59 166.81 0 230.4l-46.08 46.08zM384 445.44c-33.932 0-61.44-27.508-61.44-61.44s27.508-61.44 61.44-61.44 61.44 27.508 61.44 61.44-27.508 61.44-61.44 61.44z"/></symbol><symbol id="no_scaling" viewBox="0 0 20 20"><path d="M5 13.334h10V6.667H5v6.667Zm-3.333 3.333V3.334h16.667v13.333H1.667Zm1.667-1.666h13.333V5H3.334v10Z"/></symbol><symbol id="nvidia-logo-horiz-rgb-wht-for-screen" viewBox="0 0 82 15.13"><path d="M8.53 4.52V3.15c.13 0 .27-.02.4-.02 3.74-.12 6.19 3.21 6.19 3.21s-2.65 3.68-5.49 3.68c-.41 0-.78-.07-1.11-.18V5.7c1.46.18 1.75.82 2.62 2.28l1.95-1.64s-1.42-1.86-3.82-1.86c-.26 0-.51.02-.75.04m0-4.52v2.04c.13-.01.27-.02.4-.02 5.2-.18 8.59 4.26 8.59 4.26s-3.89 4.73-7.94 4.73c-.37 0-.72-.03-1.05-.09v1.26c.28.04.57.06.87.06 3.77 0 6.5-1.93 9.14-4.21.44.35 2.23 1.2 2.6 1.58-2.51 2.1-8.36 3.8-11.68 3.8-.32 0-.63-.02-.93-.05v1.77h14.34V0H8.53zm0 9.84v1.08c-3.49-.62-4.46-4.25-4.46-4.25s1.67-1.86 4.46-2.16v1.18c-1.46-.18-2.6 1.19-2.6 1.19s.64 2.3 2.61 2.96M2.34 6.51s2.07-3.05 6.2-3.37V2.03C3.96 2.41 0 6.28 0 6.28s2.24 6.48 8.53 7.08v-1.18c-4.62-.58-6.2-5.67-6.2-5.67z" fill="#76b900"/><path d="M48.69 2.86v9.93h2.81V2.86zm-22.07-.01v9.94h2.83V5.24h2.19c.73 0 1.24.18 1.59.55.44.47.62 1.24.62 2.63v4.37h2.74V7.3c0-3.92-2.5-4.45-4.95-4.45H26.6m26.58.01v9.93h4.55c2.42 0 3.22-.4 4.07-1.31.6-.63 1-2.03 1-3.55 0-1.4-.33-2.64-.91-3.42-1.04-1.39-2.54-1.66-4.77-1.66h-3.94zm2.78 2.16h1.21c1.75 0 2.88.79 2.88 2.82s-1.13 2.83-2.88 2.83h-1.21zM44.62 2.86l-2.34 7.87-2.24-7.87h-3.03l3.2 9.93h4.04l3.23-9.93zm19.48 9.93h2.81V2.86H64.1zm7.86-9.93-3.92 9.93h2.77l.62-1.75h4.64l.59 1.75h3l-3.95-9.93zm1.82 1.81 1.7 4.65h-3.45zm7.34 8.42c-.48 0-.88-.39-.88-.88s.39-.88.88-.88.88.39.88.88-.39.88-.88.88zm0-1.58c-.39 0-.7.3-.7.71s.3.71.7.71.7-.3.7-.71-.3-.71-.7-.71zm.16 1.17-.17-.36h-.1v.36h-.21v-.93h.38c.19 0 .31.14.31.29 0 .13-.08.21-.17.25l.2.39zm-.12-.76h-.15v.24h.15c.08 0 .13-.06.13-.12s-.05-.12-.13-.12z" fill="#fff"/></symbol><symbol id="nvidia_logo_green" viewBox="0 0 44 44"><g fill="none"><path fill="#76B900" d="M7 37h30V7H7z"/><path fill="#FFF" d="M13.248 21.027s1.989-2.822 5.96-3.114v-1.024C14.81 17.229 11 20.811 11 20.811s2.157 5.999 8.208 6.548v-1.088c-4.44-.538-5.96-5.244-5.96-5.244Zm5.96 3.079v.997c-3.356-.576-4.287-3.93-4.287-3.93s1.611-1.717 4.287-1.996v1.094h-.005c-1.404-.162-2.501 1.1-2.501 1.1s.614 2.124 2.506 2.735Zm0-9.106v1.889c.13-.01.259-.018.389-.022 5.001-.162 8.26 3.944 8.26 3.944s-3.743 4.377-7.642 4.377c-.358 0-.692-.032-1.007-.085v1.168c.27.032.548.052.838.052 3.629 0 6.253-1.782 8.794-3.891.421.324 2.146 1.113 2.5 1.46-2.416 1.944-8.046 3.512-11.238 3.512-.307 0-.603-.018-.894-.045V29H33V15H19.208Zm0 4.177v-1.264c.128-.009.257-.015.389-.02 3.596-.108 5.956 2.972 5.956 2.972s-2.549 3.405-5.281 3.405c-.394 0-.746-.062-1.064-.164V20.27c1.4.163 1.682.758 2.524 2.107l1.872-1.518s-1.366-1.724-3.67-1.724c-.25 0-.49.017-.726.041Z"/></g></symbol><symbol id="nvidia_symbol" viewBox="0 0 768 768"><path d="M302.933 298.666v-38.4h12.8c106.667-4.267 174.933 89.6 174.933 89.6s-72.533 102.4-153.6 102.4c-12.8 0-21.333 0-29.866-4.267v-115.2c42.667 4.267 46.934 21.333 72.533 64l55.467-46.933s-38.4-51.2-106.667-51.2h-25.6zm0-127.999v55.467h12.8c145.066-4.267 238.934 123.733 238.934 123.733S443.734 482.134 332.801 482.134c-8.534 0-21.333 0-29.867-4.267V512h25.6c106.667 0 183.467-55.467 256-119.467 12.8 8.534 64 34.133 72.533 42.667C588.8 494.933 422.4 541.867 328.534 541.867h-25.6v55.467h401.067V170.667H302.934zm0 277.333v29.867C204.8 460.8 179.2 358.4 179.2 358.4s46.933-51.2 123.733-59.733V332.8c-42.667-4.267-72.533 34.133-72.533 34.133s17.067 64 72.533 81.067zM128 354.134s59.733-85.334 174.933-93.867V230.4C174.933 238.934 64 349.867 64 349.867s64 183.467 238.933 196.267v-34.133C174.933 499.201 128 354.134 128 354.134z"/></symbol><symbol id="open_in_full" viewBox="0 0 24 24"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M3 21v-8h2v4.6L17.6 5H13V3h8v8h-2V6.4L6.4 19H11v2H3Z"/></symbol><symbol id="open_in_new" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M19 19H5V5h7V3H3v18h18v-9h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z"/></symbol><symbol id="optimize_all" viewBox="0 0 32 32"><path fill-rule="evenodd" clip-rule="evenodd" d="M15.5 27C21.299 27 26 22.299 26 16.5S21.299 6 15.5 6 5 10.701 5 16.5 9.701 27 15.5 27ZM7.1 16.753l4.063 3.947 1.025-.978-4.063-3.947-1.025.978Zm4.063 0 4.064 3.947 7.623-7.405-1.007-.995-6.616 6.427-3.057-2.97-1.007.996Zm3.039-.978 1.025.978 3.56-3.458-1.025-.977-3.56 3.457Z"/></symbol><symbol id="pan_zoom" viewBox="0 0 24 24"><path d="M16.256 11.498h-1.072V6h-2.976v10.239l-4.007-.85L7 16.619 12.337 22h8.601L22 14.378zM11 6V2H7l1.645 1.645-5 5L2 7v4h4L4.355 9.355l5-5z" fill-rule="evenodd"/></symbol><symbol id="pause" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M6 19h4V5H6v14zm8-14v14h4V5h-4z"/></symbol><symbol id="perm_scan_wifi" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M12 3C6.95 3 3.15 4.85 0 7.23L12 22 24 7.25C20.85 4.87 17.05 3 12 3zm1 13h-2v-6h2v6zm-2-8V6h2v2h-2z"/></symbol><symbol id="person" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4Zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4Z"/></symbol><symbol id="phone_illustration" viewBox="0 0 116 204"><path clip-rule="evenodd" d="M.267.268h115.466v203.466H.267V.268ZM6 6v192h104V6H6Z"/><path clip-rule="evenodd" d="M36 187.134a2.866 2.866 0 0 1 2.867-2.866h40.266a2.866 2.866 0 1 1 0 5.733H38.867A2.867 2.867 0 0 1 36 187.134ZM76 88h-8c0-5.52-4.48-10-10-10s-10 4.48-10 10h-8v32h36V88Zm-18-6c3.32 0 6 2.68 6 6H52c0-3.32 2.68-6 6-6Zm0 20c-5.52 0-10-4.48-10-10h4c0 3.32 2.68 6 6 6s6-2.68 6-6h4c0 5.52-4.48 10-10 10Z"/></symbol><symbol id="photo_camera" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><circle cx="12" cy="12" r="3"/><path d="M9 2 7.17 4H2v16h20V4h-5.17L15 2H9zm3 15c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5z"/></symbol><symbol id="picture_in_picture" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M19 7h-8v6h8V7zm4-4H1v17.98h22V3zm-2 16.01H3V4.98h18v14.03z"/></symbol><symbol id="play_arrow" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M8 5v14l11-7L8 5z"/></symbol><symbol id="play_circle_filled" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 14.5v-9l6 4.5-6 4.5z"/></symbol><symbol id="play_circle_outline" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="m10 16.5 6-4.5-6-4.5v9zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"/></symbol><symbol id="power" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M16 7V3h-2v4h-4V3H8v4H6v7.5L9.5 18v3h5v-3l3.5-3.51V7h-2z"/></symbol><symbol id="quality_high" viewBox="0 0 24 24"><path d="M21 3H3v18h18V3ZM11 15H9.5v-2h-2v2H6V9h1.5v2.5h2V9H11v6Zm7-1a1 1 0 0 1-1 1h-.75v1.5h-1.5V15H14a1 1 0 0 1-1-1v-4a1 1 0 0 1 1-1h3a1 1 0 0 1 1 1v4Zm-3.5-.5h2v-3h-2v3Z"/></symbol><symbol id="quiet_mode" viewBox="0 0 24 24"><path d="M3 3h18v18H3V3Zm9.028 16.792c4.243 0 7.764-3.52 7.764-7.764 0-4.333-3.52-7.764-7.764-7.764-4.333 0-7.764 3.521-7.764 7.764 0 4.334 3.521 7.764 7.764 7.764Zm-5.326-8.486c-.542-.361-.723-1.083-.452-1.896.271-.813.722-1.625.722-1.625 0-.09.181-.09.271 0 .632.903 1.264 1.625 1.896 2.076.09.09.18.09.271.181-.361.542-.632 1.264-.632 1.986-.18 0-.361-.09-.542-.09-.541-.09-.993-.361-1.534-.632Zm3.701-2.077c-.09-.18-.18-.36-.09-.632-.18-.45-.18-.993-.18-1.625s.541-1.173 1.354-1.354c.812-.18 1.715-.18 1.715-.18.18 0 .27.18.18.27-.541.994-.812 1.896-.902 2.709v.361h-.452c-.632 0-1.173.18-1.625.451ZM9.05 13.292c.27.632.722 1.174 1.444 1.535-.09.18-.18.27-.36.451a5.26 5.26 0 0 1-1.355.993c-.451.271-1.264.09-1.806-.541-.541-.632-.993-1.445-.993-1.445-.09-.09-.09-.27.09-.27 1.084 0 1.987-.181 2.71-.542.09-.09.18-.09.27-.18Zm4.604 1.535c.09.09.09.27.09.632.181.451.181.993.181 1.625s-.542 1.174-1.354 1.354c-.813.18-1.715.18-1.715.18-.181 0-.271-.18-.181-.27.542-.993.813-1.896.903-2.709v-.36h.451c.632 0 1.174-.181 1.625-.452Zm4.514-5.056c.09.09 0 .271-.18.271-1.084 0-1.986.18-2.709.542-.09.09-.18.09-.27.18a3.187 3.187 0 0 0-1.355-1.535c.09-.18.18-.27.361-.45a5.26 5.26 0 0 1 1.355-.994c.451-.27 1.264-.09 1.805.542.542.632.993 1.444.993 1.444Zm-.812 2.98c.451.27.722 1.083.451 1.895-.27.813-.722 1.625-.722 1.625 0 .09-.18.09-.27 0-.633-.902-1.265-1.625-1.897-2.076-.09-.09-.18-.09-.27-.18.36-.542.631-1.265.631-1.987.18 0 .361 0 .542.09.542.09.993.362 1.535.632Zm-2.709-.723a2.618 2.618 0 1 1-5.236 0 2.618 2.618 0 0 1 5.236 0Z"/></symbol><symbol id="ram" viewBox="0 0 768 768"><path d="M64 256h640v256H64V256zm0-93.867h64v64H64v-64zm576 0h64v64h-64v-64zm-98.133 0h64v64h-64v-64zm-93.867 0h64v64h-64v-64zm-93.866 0h64v64h-64v-64zm-98.134 0h64v64h-64v-64zm-98.133 0h64v64h-64v-64zM64 546.134h64v64H64v-64zm576 0h64v64h-64v-64zm-98.133 0h64v64h-64v-64zm-93.867 0h64v64h-64v-64zm-93.866 0h64v64h-64v-64zm-98.134 0h64v64h-64v-64zm-98.133 0h64v64h-64v-64z"/></symbol><symbol id="ranking_gold" viewBox="0 0 768 768"><path d="M70.4 560V208L384 32l313.6 176zm627.2-243.2v70.4L230.4 649.6l-64-35.2zm-368 390.4L384 736l313.6-176v-60.8z"/></symbol><symbol id="ranking_silver" viewBox="0 0 768 768"><path d="M697.6 387.2V208L384 32 70.4 208v352l160 89.6zm-368 320L384 736l313.6-176v-60.8z"/></symbol><symbol id="ranking_titanium" viewBox="0 0 768 768"><path d="M697.6 316.8v70.4L230.4 649.6l-64-35.2zm-368 390.4L384 736l313.6-176v-60.8zm368-499.2L384 32 70.4 208v352l80-44.8V252.8L384 121.6l233.6 131.2z"/><path d="M262.4 454.4V313.6L384 246.4l121.6 67.2-243.2 140.8z"/></symbol><symbol id="ranking_token" viewBox="0 0 768 768"><path d="m288 438.4 96 54.4 96-54.4V329.6l-96-54.4-96 54.4v108.8z"/><path d="M697.6 208 384 32 70.4 208v352l80-44.8V252.8L384 121.6l233.6 131.2z"/><path d="M70.4 560 384 736l313.6-176V208l-80 44.8v262.4L384 646.4 150.4 515.2z"/></symbol><symbol id="ranking_xp" viewBox="0 0 768 768"><path d="M697.6 208 384 32 70.4 208v352l80-44.8V252.8L384 121.6l233.6 131.2z"/><path d="M70.4 560 384 736l313.6-176V208l-80 44.8v262.4L384 646.4 150.4 515.2z"/><path d="M345.6 278.4h44.8l-67.2 102.4 70.4 112h-51.2l-44.8-73.6-48 73.6h-44.8L275.2 384l-64-105.6h51.2l41.6 67.2 41.6-67.2zM572.8 368c0 19.2-16 35.2-35.2 35.2h-80v86.4H416V278.4h121.6c19.2 0 35.2 16 35.2 35.2V368zm-115.2-3.2h64c6.4 0 9.6-3.2 9.6-9.6v-28.8c0-6.4-3.2-9.6-9.6-9.6h-64v48z"/></symbol><symbol id="readiness_score" viewBox="0 -960 960 960"><path d="M295-119q-36-1-68.5-18.5T165-189q-40-48-62.5-114.5T80-440q0-83 31.5-156T197-723q54-54 127-85.5T480-840q83 0 156 32t127 87q54 55 85.5 129T880-433q0 77-25 144t-71 113q-28 28-59 42.5T662-119q-18 0-36-4.5T590-137l-56-28q-12-6-25.5-9t-28.5-3q-15 0-28.5 3t-25.5 9l-56 28q-19 10-37.5 14.5T295-119Zm2-80q9 0 18.5-2t18.5-7l56-28q21-11 43.5-16t45.5-5q23 0 46 5t44 16l57 28q9 5 18 7t18 2q19 0 36-10t34-30q32-38 50-91t18-109q0-134-93-227.5T480-760q-134 0-227 94t-93 228q0 57 18.5 111t51.5 91q17 20 33 28.5t34 8.5Zm183-281Zm0 120q33 0 56.5-23.5T560-440q0-8-1.5-16t-4.5-16l50-67q10 13 17.5 27.5T634-480h82q-15-88-81.5-144T480-680q-88 0-155 56.5T244-480h82q14-54 57-87t97-33q17 0 32 3t29 9l-51 69q-2 0-5-.5t-5-.5q-33 0-56.5 23.5T400-440q0 33 23.5 56.5T480-360Z"/></symbol><symbol id="record" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M15 12c0 1.7-1.3 3-3 3s-3-1.3-3-3 1.3-3 3-3 3 1.4 3 3z"/><path d="m23.3 11.9-2.3-.6C20.6 6.7 16.7 3 12 3c-5 0-9 4-9 9 0 4.4 3.1 8 7.2 8.8.3.7 1 1.2 1.8 1.2 1.1 0 2-.9 2-2s-.9-2-2-2c-.7 0-1.2.3-1.6.8C7.3 18.1 5 15.4 5 12c0-3.9 3.1-7 7-7s7 3.1 7 7c0 1-.2 2-.6 2.8l4.9-2.9z"/></symbol><symbol id="recordings" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M8.8 18.2C6.5 17 5 14.7 5 12c0-3.9 3.1-7 7-7l1.1.1L9 1v2.5C5.6 4.8 3 8.1 3 12c0 4.8 3.8 8.7 8.5 9l-2.7-2.8z"/><path d="M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0z"/><path d="M15.4 5.8c2.2 1.2 3.8 3.5 3.8 6.2 0 3.9-3.1 7-7 7l-1.2-.1 4.1 4.1v-2.5c3.5-1.2 6-4.6 6-8.5 0-4.8-3.8-8.7-8.5-9l2.8 2.8z"/><path d="M12 6c-3.3 0-6 2.7-6 6s2.7 6 6 6 6-2.7 6-6-2.7-6-6-6zm0 11c-2.8 0-5-2.2-5-5s2.2-5 5-5 5 2.2 5 5-2.2 5-5 5z"/></symbol><symbol id="record_disabled" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M9.76 5.42 8.24 3.9a8.89 8.89 0 0 1 3.83-.86c4.69 0 8.58 3.69 8.98 8.28l2.28.59-4.45 2.63-.23-.23c.26-.7.4-1.5.4-2.3 0-3.89-3.09-6.98-6.98-6.98-.82 0-1.59.14-2.31.39Zm2.31 9.59c-1.7 0-2.99-1.3-2.99-2.99 0-.47.1-.91.28-1.3L6.48 7.84a6.928 6.928 0 0 0-1.39 4.18c0 3.39 2.3 6.08 5.39 6.78.4-.5.9-.8 1.6-.8 1.1 0 2 .9 2 2s-.9 2-2 2c-.8 0-1.5-.5-1.8-1.2a8.903 8.903 0 0 1-7.18-8.78c0-2.13.73-4.08 1.95-5.61L3 4.36l1.42-1.42 16.71 16.71-1.42 1.42-6.34-6.34c-.39.18-.83.28-1.3.28Z"/></symbol><symbol id="remote" viewBox="0 0 24 24"><path d="M0 0h24v24H0z" fill="none"/><path d="M15 9H9c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h6c.55 0 1-.45 1-1V10c0-.55-.45-1-1-1zm-3 6c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zM7.05 6.05l1.41 1.41a5.022 5.022 0 0 1 7.08 0l1.41-1.41C15.68 4.78 13.93 4 12 4s-3.68.78-4.95 2.05zM12 0C8.96 0 6.21 1.23 4.22 3.22l1.41 1.41C7.26 3.01 9.51 2 12 2s4.74 1.01 6.36 2.64l1.41-1.41C17.79 1.23 15.04 0 12 0z"/></symbol><symbol id="remove_circle" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm5 11H7v-2h10v2z"/></symbol><symbol id="replay" viewBox="0 0 24 24"><path d="M8.8 18.2C6.5 17 5 14.7 5 12c0-3.9 3.1-7 7-7l1.1.1L9 1v2.5C5.6 4.8 3 8.1 3 12c0 4.8 3.8 8.7 8.5 9l-2.7-2.8z"/><path d="M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0z"/><path d="M15.4 5.8c2.2 1.2 3.8 3.5 3.8 6.2 0 3.9-3.1 7-7 7l-1.2-.1 4.1 4.1v-2.5c3.5-1.2 6-4.6 6-8.5 0-4.8-3.8-8.7-8.5-9l2.8 2.8z"/></symbol><symbol id="replay_disabled" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M19 12.02c0-3.29-2.29-6.05-5.35-6.8l-2.17-2.17c.17-.01.34-.03.51-.03 4.96 0 8.99 4.02 8.99 8.99 0 1.38-.31 2.69-.87 3.86l-1.52-1.52c.26-.73.41-1.51.41-2.33Zm-9.34-6.6L7.99 3.75V.98l4 4 .03.03h-.03c-.82 0-1.6.15-2.33.41Zm11.37 14.23-1.44 1.42-2.02-2.02c-.51.41-1.06.76-1.65 1.05v2.89l-4-4h.29c1.48-.05 2.82-.57 3.93-1.39l-2.88-2.88a3.039 3.039 0 0 1-4.05-4.05L6.38 7.84a6.973 6.973 0 0 0-1.4 4.17c0 3.29 2.28 6.05 5.34 6.8l2.17 2.17c-.17.01-.33.03-.5.03-4.96 0-8.99-4.02-8.99-8.99 0-2.12.73-4.06 1.95-5.6L2.89 4.36l1.42-1.42 16.72 16.71Z"/></symbol><symbol id="reset" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M13 3a9 9 0 0 0-9 9H1l4 3.99L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42A8.954 8.954 0 0 0 13 21a9 9 0 0 0 0-18Z"/></symbol><symbol id="restore_size" viewBox="0 0 24 24"><path d="M2 22V9h4V2h16v13h-4v7H2Zm2-2h12v-7H4v7Zm14-7h2V6H8v3h10v4Z" fill="#fff" fill-opacity=".9"/></symbol><symbol id="retry" viewBox="0 0 24 24"><path d="M12 4V0l5 5-5 5V6c-3.31 0-6 2.69-6 6s2.69 6 6 6 6-2.69 6-6h2c0 4.42-3.58 8-8 8s-8-3.58-8-8 3.58-8 8-8"/></symbol><symbol id="rewards" viewBox="0 0 768 768"><path d="M448 384v251.733l-64-64-64 64V384H96v320h576V384zm42.666-128C539.732 249.6 576 211.2 576 160c0-53.333-42.667-96-96-96-49.067 0-89.6 38.4-96 85.334-6.4-49.066-49.067-85.333-96-85.333-55.467 0-96 42.667-96 96 0 49.066 38.4 89.6 87.466 96H63.999v96h256v-96h128v96h256v-96H490.666zM320 192h-32c-19.2 0-32-14.933-32-32s17.067-32 32-32c19.2 0 32 17.067 32 32v32zm123.733 0v-32c0-19.2 17.067-32 32-32 19.2 0 32 17.067 32 32s-14.933 32-32 32h-32z"/></symbol><symbol id="rt_arrow" viewBox="0 0 40 40"><g fill="none" fill-rule="evenodd"><rect width="39" height="39" x=".5" y=".5" fill="var(--rt-arrow-rect-fill,#000)" stroke="var(--rt-arrow-rect-stroke,#FFF)" stroke-opacity=".4" opacity=".601" rx="19.5"/><path fill="var(--rt-arrow-polygon-fill,#FFF)" d="m18 14-1.41 1.41L21.17 20l-4.58 4.59L18 26l6-6z"/></g></symbol><symbol id="save" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M17 3H3v18h18V7l-4-4zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3zm3-10H5V5h10v4z"/></symbol><symbol id="score_graph_L0" viewBox="0 0 92 55"><path d="M0 45a45 45 0 0 1 13.18-31.82l4.773 4.773A38.25 38.25 0 0 0 6.75 45H0Zm76.82-31.82A45 45 0 0 1 90 45h-6.75a38.25 38.25 0 0 0-11.203-27.047l4.773-4.773Z" fill="#494949"/><path d="M45 0a45 45 0 0 1 31.82 13.18l-4.773 4.773A38.25 38.25 0 0 0 45 6.75V0ZM13.18 13.18A45 45 0 0 1 45 0v6.75a38.25 38.25 0 0 0-27.047 11.203L13.18 13.18Z" fill="#494949"/><path d="M0 45a45 45 0 0 1 13.18-31.82l4.773 4.773A38.25 38.25 0 0 0 6.75 45H0Z" fill="#FE1B0B"/></symbol><symbol id="score_graph_L1" viewBox="0 0 92 55"><path d="M0 45a45 45 0 0 1 13.18-31.82l4.773 4.773A38.25 38.25 0 0 0 6.75 45H0Zm76.82-31.82A45 45 0 0 1 90 45h-6.75a38.25 38.25 0 0 0-11.203-27.047l4.773-4.773Z" fill="#494949"/><path d="M45 0a45 45 0 0 1 31.82 13.18l-4.773 4.773A38.25 38.25 0 0 0 45 6.75V0ZM13.18 13.18A45 45 0 0 1 45 0v6.75a38.25 38.25 0 0 0-27.047 11.203L13.18 13.18Z" fill="#494949"/><path d="M13.18 13.18A45 45 0 0 1 45 0v6.75a38.25 38.25 0 0 0-27.046 11.203L13.18 13.18Z" fill="#FFB43E"/></symbol><symbol id="score_graph_L2" viewBox="0 0 92 55"><path d="M0 45a45 45 0 0 1 13.18-31.82l4.773 4.773A38.25 38.25 0 0 0 6.75 45H0Zm76.82-31.82A45 45 0 0 1 90 45h-6.75a38.25 38.25 0 0 0-11.203-27.047l4.773-4.773Z" fill="#494949"/><path d="M45 0a45 45 0 0 1 31.82 13.18l-4.773 4.773A38.25 38.25 0 0 0 45 6.75V0ZM13.18 13.18A45 45 0 0 1 45 0v6.75a38.25 38.25 0 0 0-27.047 11.203L13.18 13.18Z" fill="#494949"/><path d="M45 0a45 45 0 0 1 31.82 13.18l-4.773 4.773A38.25 38.25 0 0 0 45 6.75V0Z" fill="#A3DC2B"/></symbol><symbol id="score_graph_L3" viewBox="0 0 92 55"><path d="M0 45a45 45 0 0 1 13.18-31.82l4.773 4.773A38.25 38.25 0 0 0 6.75 45H0Zm76.82-31.82A45 45 0 0 1 90 45h-6.75a38.25 38.25 0 0 0-11.203-27.047l4.773-4.773Z" fill="#494949"/><path d="M45 0a45 45 0 0 1 31.82 13.18l-4.773 4.773A38.25 38.25 0 0 0 45 6.75V0ZM13.18 13.18A45 45 0 0 1 45 0v6.75a38.25 38.25 0 0 0-27.047 11.203L13.18 13.18Z" fill="#494949"/><path d="M76.82 13.18A45 45 0 0 1 90 45h-6.75a38.25 38.25 0 0 0-11.203-27.047l4.773-4.773Z" fill="#76B900"/></symbol><symbol id="search" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"/></symbol><symbol id="send" viewBox="0 0 24 24"><path d="M0 0h24v24H0z" fill="none"/><path d="M2.01 21 23 12 2.01 3 2 10l15 2-15 2z"/></symbol><symbol id="settings" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="m19.44 12.99-.01.02c.04-.33.08-.67.08-1.01 0-.34-.03-.66-.07-.99l.01.02 2.44-1.92-2.43-4.22-2.87 1.16.01.01c-.52-.4-1.09-.74-1.71-1h.01L14.44 2H9.57l-.44 3.07h.01c-.62.26-1.19.6-1.71 1l.01-.01-2.88-1.17-2.44 4.22 2.44 1.92.01-.02c-.04.33-.07.65-.07.99 0 .34.03.68.08 1.01l-.01-.02-2.1 1.65-.33.26 2.43 4.2 2.88-1.15-.02-.04c.53.41 1.1.75 1.73 1.01h-.03L9.58 22h4.85s.03-.18.06-.42l.38-2.65h-.01c.62-.26 1.2-.6 1.73-1.01l-.02.04 2.88 1.15 2.43-4.2s-.14-.12-.33-.26l-2.11-1.66zM12 15.5c-1.93 0-3.5-1.57-3.5-3.5s1.57-3.5 3.5-3.5 3.5 1.57 3.5 3.5-1.57 3.5-3.5 3.5z"/></symbol><symbol id="share" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M18 16.08c-.76 0-1.44.3-1.96.77L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81 1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.31 6.79 9 6 9c-1.66 0-3 1.34-3 3s1.34 3 3 3c.79 0 1.5-.31 2.04-.81l7.12 4.16c-.05.21-.08.43-.08.65 0 1.61 1.31 2.92 2.92 2.92s2.92-1.31 2.92-2.92-1.31-2.92-2.92-2.92z"/></symbol><symbol id="shield_tv" viewBox="0 0 768 768"><path d="M533.832 482.28 223.68 292.032 45.912 592.416h422.736zM723.84 161.232H56.448l489.624 300.312zM203.16 279.456 31.872 174.384v394.464zm363.456 194.688 169.872 104.184v-391.2zm-12.264 20.712-57.696 97.536H713.4l-159.048-97.536zm-6.12 73.392V537.72h39.456v30.528h-39.456z"/></symbol><symbol id="shopping" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M21 6h-4c0-2.76-2.24-5-5-5S7 3.24 7 6H3v16h18V6zm-9-3c1.66 0 3 1.34 3 3H9c0-1.66 1.34-3 3-3zm0 10c-2.76 0-5-2.24-5-5h2c0 1.66 1.34 3 3 3s3-1.34 3-3h2c0 2.76-2.24 5-5 5z"/></symbol><symbol id="signal_wifi_off" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M23.64 7c-.45-.34-4.93-4-11.64-4-1.32 0-2.55.14-3.69.38L18.43 13.5 23.64 7zM3.41 1.31 2 2.72l2.05 2.05C1.91 5.76.59 6.82.36 7L12 21.5l3.91-4.87 3.32 3.32 1.41-1.41L3.41 1.31z"/></symbol><symbol id="smartphone" viewBox="0 0 24 24"><path clip-rule="evenodd" d="M7 3h10v1H7V3Zm0 3v12h10V6H7Zm10 14H7v1h10v-1ZM5 1h14v22H5V1Z"/></symbol><symbol id="social_share" viewBox="0 0 16 16"><path d="M8.5 8.068c-.38 0-.72.15-.98.387L3.955 6.37A1.65 1.65 0 0 0 4 6.021c0-.121-.02-.237-.045-.352L7.48 3.605c.27.251.625.407 1.02.407.83 0 1.5-.673 1.5-1.506a1.501 1.501 0 1 0-3 0c0 .12.02.236.045.351L3.52 4.921a1.49 1.49 0 0 0-1.02-.407c-.83 0-1.5.673-1.5 1.506s.67 1.506 1.5 1.506c.395 0 .75-.156 1.02-.407l3.56 2.089a1.42 1.42 0 0 0-.04.326c0 .808.655 1.466 1.46 1.466.805 0 1.46-.658 1.46-1.466 0-.808-.655-1.466-1.46-1.466Z"/></symbol><symbol id="sort" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M3 18h6v-2H3v2zM3 6v2h18V6H3zm0 7h12v-2H3v2z"/></symbol><symbol id="space_bar" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M18 9v4H6V9H4v6h16V9z"/></symbol><symbol id="star_circle" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zm4.24 16L12 15.45 7.77 18l1.12-4.81-3.73-3.23 4.92-.42L12 5l1.92 4.53 4.92.42-3.73 3.23L16.23 18z"/></symbol><symbol id="star_filled" viewBox="0 0 24 24"><path d="m22 9.2-7.2-.6L12 2 9.2 8.6 2 9.2 7.5 14l-1.6 7 6.2-3.7 6.2 3.7-1.6-7L22 9.2z"/></symbol><symbol id="steam_logo_icon" viewBox="0 0 93 93"><path fill-rule="evenodd" d="M46.422 1C71.594 1 92 21.37 92 46.5 92 71.629 71.594 92 46.422 92 25.556 92 7.979 78 2.569 58.9l17.471 7.21c1.184 5.893 6.405 10.343 12.65 10.343 7.114 0 12.901-5.777 12.901-12.88 0-.203-.006-.408-.014-.61l15.494-11.037c.13.004.26.007.39.007 9.478 0 17.19-7.7 17.19-17.16 0-9.462-7.712-17.16-17.19-17.16-9.479 0-17.19 7.698-17.19 17.16l.003.222-10.865 15.719a12.834 12.834 0 0 0-7.98 2.22L1 42.85C2.864 19.43 22.479 1 46.422 1ZM29.263 54.515a9.665 9.665 0 0 1 7.136.108 9.612 9.612 0 0 1 5.229 5.243 9.585 9.585 0 0 1-.015 7.396c-2.054 4.92-7.735 7.255-12.66 5.206a9.639 9.639 0 0 1-4.99-4.737l5.6 2.309c3.634 1.512 7.808-.204 9.322-3.831a7.112 7.112 0 0 0-3.838-9.306Zm32.198-31.177c6.316 0 11.454 5.13 11.454 11.435 0 6.304-5.138 11.433-11.454 11.433-6.315 0-11.454-5.13-11.454-11.433 0-6.304 5.139-11.435 11.454-11.435Zm.02 2.827c-4.752 0-8.605 3.844-8.605 8.588 0 4.743 3.853 8.588 8.604 8.588 4.752 0 8.604-3.845 8.604-8.588 0-4.744-3.852-8.588-8.604-8.588Z"/></symbol><symbol id="stop" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M6 6h12v12H6V6z"/></symbol><symbol id="storage" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M2 20h20v-4H2v4zm2-3h2v2H4v-2zM2 4v4h20V4H2zm4 3H4V5h2v2zm-4 7h20v-4H2v4zm2-3h2v2H4v-2z"/></symbol><symbol id="sword" viewBox="0 0 24 24"><path d="m11.05 15.97 10.23-9.55L22 2l-4.42.72-9.55 10.23-1.6-1.59-1.31 1.31 6.21 6.21 1.31-1.31zm-8.04 5.02c-.83-.83-.83-2.19 0-3.02l2.65-2.65 3.02 3.02-2.65 2.65c-.83.83-2.18.83-3.02 0Z"/></symbol><symbol id="sync" viewBox="0 0 24 24"><path fill="none" d="M.01 0h24v24h-24V0z"/><path d="M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46A7.93 7.93 0 0 0 20 12c0-4.42-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8L5.24 7.74A7.93 7.93 0 0 0 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4v3z"/></symbol><symbol id="tablet" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0zm0 0h24v24H0V0z"/><path d="M21 0H3v24h18V0zm-7 22h-4v-1h4v1zm5.25-3H4.75V3h14.5v16z"/></symbol><symbol id="tag" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M22.83 12.99 11.83 2H2v9.83l10.99 10.99 9.84-9.83zM5.5 7C4.67 7 4 6.33 4 5.5S4.67 4 5.5 4 7 4.67 7 5.5 6.33 7 5.5 7z"/></symbol><symbol id="text_snippet" viewBox="0 -960 960 960"><path d="M200-200h560v-367L567-760H200v560Zm0 80q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h400l240 240v400q0 33-23.5 56.5T760-120H200Zm80-160h400v-80H280v80Zm0-160h400v-80H280v80Zm0-160h280v-80H280v80Zm-80 400v-560 560Z"/></symbol><symbol id="thick_arrow_dash_up" viewBox="0 0 24 24"><path d="M7.027 14.513H0L12.009 0 24 14.513h-6.995v3.44H7.027Zm-.001 5.803h9.978v3.495H7.026Z" fill="#fff"/></symbol><symbol id="thick_arrow_up" viewBox="0 0 24 24"><path fill="#fff" d="M7.027 14.513H0L12.009 0 24 14.513h-6.995V24H7.027v-9.487z"/></symbol><symbol id="time" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2ZM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8Zm.5-13H11v6l5.25 3.15.75-1.23-4.5-2.67V7Z"/></symbol><symbol id="touch2" viewBox="0 0 24 24"><path d="M20 22H9.027l-6.35-8.075 1.6-1.675L7.5 14.2V5h2.025v6H20v11ZM4.177 8.5A4.935 4.935 0 0 1 3.5 6c0-1.383.487-2.563 1.462-3.538C5.938 1.487 7.117 1 8.501 1c1.383 0 2.562.488 3.537 1.462.975.975 1.463 2.155 1.463 3.538a4.938 4.938 0 0 1-.675 2.5l-1.725-1c.133-.233.233-.47.3-.713.066-.241.1-.504.1-.787 0-.833-.292-1.542-.875-2.125A2.893 2.893 0 0 0 8.5 3c-.834 0-1.542.292-2.125.875A2.893 2.893 0 0 0 5.5 6c0 .283.033.546.1.787.066.242.166.48.3.713l-1.725 1Z" fill="#fff"/></symbol><symbol id="tune" viewBox="0 0 24 24"><path d="M3 17v2h6v-2H3ZM3 5v2h10V5H3Zm10 16v-2h8v-2h-8v-2h-2v6h2ZM7 9v2H3v2h4v2h2V9H7Zm14 4v-2H11v2h10Zm-6-4h2V7h4V5h-4V3h-2v6Z"/></symbol><symbol id="tv" viewBox="0 0 24 24"><path fill-rule="evenodd" clip-rule="evenodd" d="M4 5h16v12H4V5ZM2 19V3h20v16h-6v2H8v-2H2Z" fill="#fff" fill-opacity=".9"/></symbol><symbol id="tv_illustration" viewBox="0 0 238 163"><path clip-rule="evenodd" d="M.267.268h237.466v147.466H.267V.268ZM6 6v136h226V6H6Zm61 151.268h106v5.733H67v-5.733Z"/><path clip-rule="evenodd" d="M135.8 66.002c-.4-2-2.8-4-4.8-4 0-1.2-.8-2-2-2h-4c-1.2 0-2 .8-2 2h-8c0-1-1-2-2-2h-4c-1.2 0-2 .8-2 2-2 0-4.4 1.8-4.8 4-.4 2-3.2 14-3.2 18 0 2 2 4 4 4s4-2 6-4 2-2.2 4-4c2-2 2-2 4-2h4c2 0 2 0 4 2l4 4c2 2 4 4 6 4s4-2 4-4c0-3.8-2.8-16-3.2-18Zm-20.8 5.4h-2.6v2.6h-2.8v-2.6H107v-2.8h2.6v-2.6h2.8v2.6h2.6v2.8Zm12 2.6c-2.2 0-4-1.8-4-4s1.8-4 4-4 4 1.8 4 4-1.8 4-4 4Z"/></symbol><symbol id="upload" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M19 12V5H5v7H3V3h18v9h-2Zm-6-.67 2.59 2.58L17 12.5l-5-5-5 5 1.41 1.41L11 11.33V21h2v-9.67Z"/></symbol><symbol id="video" viewBox="0 0 24 24"><path d="m18 4 2 4h-3l-2-4h-2l2 4h-3l-2-4H8l2 4H7L5 4H2v16h20V4z"/></symbol><symbol id="videocam" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M17 10.5V6H3v12h14v-4.5l4 4v-11l-4 4z"/></symbol><symbol id="videocam_off" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M21 16.61V6.5l-4 4V6h-6.61zM3.41 1.86 2 3.27 4.73 6H3v12h13.73l3 3 1.41-1.41z"/></symbol><symbol id="video_off" viewBox="0 0 32 32"><path fill-rule="evenodd" clip-rule="evenodd" d="M28 22.147V8.667L22.667 14V8h-8.814L28 22.147ZM4.547 2.48l-1.88 1.88L6.307 8H4v16h18.307l4 4 1.88-1.88L4.547 2.48Z"/></symbol><symbol id="view_detailed" viewBox="0 0 768 768"><path d="M320 160v192h350.016V160zM128 576h160.992V160H128zm192 0h350.016V384H320v192z"/></symbol><symbol id="view_grid" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M4 11h5V5H4v6zm0 7h5v-6H4v6zm6 0h5v-6h-5v6zm6 0h5v-6h-5v6zm-6-7h5V5h-5v6zm6-6v6h5V5h-5z"/></symbol><symbol id="view_summary" viewBox="0 0 24 24"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M4 18h17v-6H4v6zM4 5v6h17V5H4z"/></symbol><symbol id="volume" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M3 9v6h4l5 5V4L7 9H3zm13.5 3A4.5 4.5 0 0 0 14 7.97v8.05c1.48-.73 2.5-2.25 2.5-4.02zM14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77s-2.99-7.86-7-8.77z"/></symbol><symbol id="volume_off" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M4.34 2.93 2.93 4.34 7.29 8.7 7 9H3v6h4l5 5v-6.59l4.18 4.18c-.65.49-1.38.88-2.18 1.11v2.06a8.94 8.94 0 0 0 3.61-1.75l2.05 2.05 1.41-1.41L4.34 2.93zM19 12c0 .82-.15 1.61-.41 2.34l1.53 1.53c.56-1.17.88-2.48.88-3.87 0-4.28-2.99-7.86-7-8.77v2.06c2.89.86 5 3.54 5 6.71zm-7-8-1.88 1.88L12 7.76zm4.5 8A4.5 4.5 0 0 0 14 7.97v1.79l2.48 2.48c.01-.08.02-.16.02-.24z"/></symbol><symbol id="vr" viewBox="0 0 24 24"><path d="M3 8.5v5l-1-1v-3l1-1zm18 0v5l1-1v-3l-1-1zm-3-1.6c-1.3-.3-2-.4-6-.4-3 0-4.7.1-6 .4-1 .3-2 .6-2 1.6v6c0 1 3 3 4 3 2 0 3-1 4-1s2 1 4 1c1 0 4-2 4-3v-6c0-1-1-1.3-2-1.6zm-9.5 6.6c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm7 0c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2z"/></symbol><symbol id="warning" viewBox="0 0 768 768"><path d="M416 448h-64V320h64zm0 128h-64v-64h64zM32 672h704L384 64 32 672z"/></symbol><symbol id="wifi" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0zm0 0h24v24H0V0z"/><path d="m1 9 2 2c4.97-4.97 13.03-4.97 18 0l2-2C16.93 2.93 7.08 2.93 1 9zm8 8 3 3 3-3a4.237 4.237 0 0 0-6 0zm-4-4 2 2a7.074 7.074 0 0 1 10 0l2-2C15.14 9.14 8.87 9.14 5 13z"/></symbol><symbol id="wrench" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M12.09 2.91C10.08.9 7.07.49 4.65 1.67l4.34 4.34-3 3-4.34-4.34C.48 7.1.89 10.09 2.9 12.1a6.507 6.507 0 0 0 6.89 1.48l9.82 9.82 3.71-3.71-9.78-9.79c.92-2.34.44-5.1-1.45-6.99z"/></symbol><symbol id="wrench_circle" viewBox="0 0 32 32"><path d="m12.7 14.566-3.133-3.133a5.704 5.704 0 0 0-.417 1.1c-.1.378-.15.756-.15 1.133 0 1.267.45 2.35 1.35 3.251.9.9 1.983 1.35 3.25 1.35A4.412 4.412 0 0 0 15.166 18l5.034 5 2.8-2.8-5-5.034c.089-.2.155-.428.2-.684.044-.255.067-.549.067-.882 0-1.267-.45-2.35-1.35-3.25-.9-.9-1.984-1.35-3.25-1.35-.378 0-.756.05-1.134.15-.378.1-.744.239-1.1.416l3.133 3.134-1.866 1.867ZM16 29.334c-1.845 0-3.578-.35-5.2-1.05a13.456 13.456 0 0 1-4.234-2.85c-1.2-1.2-2.15-2.61-2.849-4.233-.7-1.622-1.05-3.356-1.05-5.2 0-1.845.35-3.578 1.05-5.2a13.47 13.47 0 0 1 2.85-4.234c1.2-1.2 2.61-2.15 4.233-2.85 1.622-.7 3.355-1.05 5.2-1.05 1.844 0 3.578.35 5.2 1.05 1.622.7 3.033 1.65 4.233 2.85a13.47 13.47 0 0 1 2.85 4.234c.7 1.622 1.05 3.355 1.05 5.2 0 1.844-.35 3.578-1.05 5.2a13.456 13.456 0 0 1-2.85 4.233c-1.2 1.2-2.61 2.15-4.233 2.85-1.622.7-3.356 1.05-5.2 1.05Z" fill="currentColor"/></symbol></svg>')),Promise.resolve()}(ut,Pt)},deps:[P.tp,A.up],multi:!0},Nt={showDelay:0,hideDelay:0,touchendHideDelay:1500,disableTooltipInteractivity:!0};let en=(()=>{class ut{static{this.\u0275fac=function(rn){return new(rn||ut)}}static{this.\u0275mod=h.$C({type:ut})}static{this.\u0275inj=h.G2t({providers:[_t,{provide:S.di,useValue:{...new S.ru,restoreFocus:!1}},{provide:M.Ox,useValue:{...new M.J3,restoreFocus:!1}},{provide:Ae.sM,useValue:Nt}],imports:[i.MD,C.YF,n.q1,Wa,g.h,m.f,x.w,l.iI,ca.Cn,r.E9,ui,Ee.X,At,Vt.t,u.G,Qt.L,Ao.oV,Jt.w,ps._,Zt._,He,I,io,rs,Qa,Ma,ws,Yt,un,Ye]})}}return ut})();var vn=s(97363),Wn=(s(66253),s(16924),s(81336),s(94222));s(73318),s(14605);var rr=s(13090),Ki=s(36877),pr=s(43848),Ti=s(35146),Qi=s(17053),Gr=s(14714),vr=s(26875),Fi=s(20924),kr=Fi.Or.Common.Applicationinfo.ApplicationLifetimeEventType,cr=Fi.Or.Common.Applicationinfo.ShutdownReason,Kr=function(ut){return ut.ApplicationRequestedExit="APPLICATION_REQUESTED_EXIT",ut.IpcRequestedExit="IPC_REQUESTED_EXIT",ut}(Kr||{});class Wr{static{this.RegisteredApplicationLifetimeHandle=class{static{this.nextHandleId=0}constructor(Pt){this.parent=Pt,this.handleId=Wr.RegisteredApplicationLifetimeHandle.nextHandleId++}getId(){return this.handleId}remove(){this.parent.removeWork(this.handleId)}}}get isAppShuttingDown(){return this.isShuttingDown}constructor(Pt,Re){this.bridgeService=Re,this.isShuttingDown=!1,this.systemShutdownReasons=[cr.UserClosedWindow,cr.UserQuitWithShortcut,cr.UserLoggedOut,cr.Relaunch],this.unInterruptableShutdownReasons=[cr.UserLoggedOut,Kr.IpcRequestedExit,cr.SelfUpdate,cr.Relaunch,cr.BrowserExit,cr.ForceShutdown],this.logger=Pt.getLogger("libraries/application-lifetime.service"),this.logger.info("applicationLifetimeService created"),this.onShutdownRequestedFunctions=new Map,this.onShutdownFunctions=new Map,Re.executeCommand(Fi.Ts.Common.Applicationinfo.RegisterAppLifetimeEventsCallback).subscribe(rn=>{this.handleBridgeEvent(rn)}),(0,Ki.R)(window,"unload").subscribe(rn=>{})}shutdownApplication(Pt){this.systemShutdownReasons.some(Re=>Re===Pt)?this.logger.error("Cannot supply a system reason for shutting down from the application layer"):this.performShutdown(Pt)}addWorkOnShutdownRequested(Pt){return this.addWork(this.onShutdownRequestedFunctions,Pt)}addWorkOnShutdown(Pt){return this.addWork(this.onShutdownFunctions,Pt)}removeWork(Pt){if(this.onShutdownFunctions.has(Pt))this.onShutdownFunctions.delete(Pt);else{if(!this.onShutdownRequestedFunctions.has(Pt)){const Re=`Id (${Pt}) not contained in any registered work map, cannot remove`;throw this.logger.error(Re),new Error(Re)}this.onShutdownRequestedFunctions.delete(Pt)}}enumHasValue(Pt,Re){return Object.values(Pt).includes(Re)}handleBridgeEvent(Pt){(0,vr.isNil)(Pt)||(0,vr.isNil)(Pt.type)?this.logger.error("Nil event or event.type raised from bridge: ",Pt):this.enumHasValue(kr,Pt.type)?this.enumHasValue(Kr,Pt.reason)||this.enumHasValue(cr,Pt.reason)?this.performShutdown(Pt.reason):this.logger.info("Shutdown reason",Pt.reason,"not recognized, not handling"):this.logger.info("Event type",Pt.type,"not recognized, not handling")}isShutdownReasonInterruptable(Pt){return-1===this.unInterruptableShutdownReasons.indexOf(Pt)}addWork(Pt,Re){const rn=new Wr.RegisteredApplicationLifetimeHandle(this),an=rn.getId();if(this.onShutdownFunctions.has(an)||this.onShutdownRequestedFunctions.has(an))throw new Error("Dupliate work id found");return Pt.set(an,Re),rn}closeWindowIfNeeded(Pt){this.isShuttingDown=!1,Pt!==cr.BrowserExit&&this.bridgeService.executeCommand(Fi.Ts.Common.Windowcontrol.Close).subscribe(()=>{})}combineAndExecuteFunctions(Pt){const Re=[];return Pt.forEach(rn=>{let an;try{an=rn().pipe((0,Gr.W)(Hn=>(this.logger.error("Failed to execute scheduled func: ",Hn),(0,pr.of)(void 0))))}catch(Hn){this.logger.error(`Caught error ${Hn} from registered handler, not blocking shutdown`),an=(0,pr.of)(void 0)}Re.push(an)}),(0,Ti.yU)(...Re)}performShutdown(Pt){if(this.isShuttingDown)return void this.logger.info("performShutdown already called, ignoring");if(this.isShuttingDown=!0,0===this.onShutdownRequestedFunctions.size&&0===this.onShutdownFunctions.size)return this.logger.info("no pre-shutdown work, closing immediately"),void this.closeWindowIfNeeded(Pt);const Re=this.isShutdownReasonInterruptable(Pt);this.logger.info("starting pre-shutdown promises. shutdown ",Re?"is":"isn't"," interruptable"),new Qi.c(an=>{Re&&this.onShutdownRequestedFunctions.size>0?this.combineAndExecuteFunctions(this.onShutdownRequestedFunctions).subscribe({next:xi=>{an.next(xi.some(yr=>!0===yr)),an.complete()},error:xi=>{this.logger.error("OnShutdown work, error: ",xi),an.next(!1),an.complete()}}):(an.next(!1),an.complete())}).subscribe({next:an=>{an?(this.logger.info("shutdown was interrupted during onShutdownRequested"),this.isShuttingDown=!1):0===this.onShutdownFunctions.size?(this.logger.info("no OnShutdown work, closing"),this.closeWindowIfNeeded(Pt)):this.combineAndExecuteFunctions(this.onShutdownFunctions).subscribe({next:function(xi){this.logger.info("OnShutdown work completed, closing"),this.closeWindowIfNeeded(Pt)}.bind(this),error:function(xi){this.logger.error("OnShutdown work, error: ",xi),this.closeWindowIfNeeded(Pt)}.bind(this)})}})}static{this.\u0275fac=function(Re){return new(Re||Wr)(h.KVO(Mt.J6),h.KVO(Mt.NZ))}}static{this.\u0275prov=h.jDH({token:Wr,factory:Wr.\u0275fac,providedIn:"root"})}}s(71152);var Hr=s(6360),Wo=s(1119);s(13458),s(46964),s(80362)},68868:(St,z,s)=>{"use strict";s.d(z,{p:()=>T,M:()=>r});var i=s(80583),n=s(36877),h=s(43848),C=s(27731),S=s(16229),M=s(8619),P=s(72147),x=s(10174),A=s(73180),g=s(83915),m=s(55833),l=s(53461),r=function(R){return R.Keyboard="Keyboard",R.Gamepad="Gamepad",R.Mouse="Mouse",R.Touch="Touch",R}(r||{}),u=s(58527),v=s(92602),E=s(51040);let T=(()=>{class R{get lastFocusOrigin(){return this.focusOriginModality.focusOrigin}get lastInputModality(){return this.focusOriginModality.inputModality}get inputModalityChanged$(){return this.inputModalityChangedSubject.asObservable().pipe((0,M.p)(U=>this.monitoringActivated))}constructor(U,Y,ae){this.gamepadService=Y,this.ngZone=ae,this.focusOriginModality={},this.monitoringActivated=!1,this.inputModalityChangedSubject=new i.B7,this.logger=U.getLogger("InputModalityService"),this.ngZone.runOutsideAngular(()=>{const G=(0,n.R)(document,"keydown",{capture:!0}).pipe((0,P.n)(Q=>"GoBack"===Q.key?(0,h.of)(r.Touch):Q.isTrusted?(0,h.of)(r.Keyboard):C.t)),k=this.gamepadService.isAnyGamepadInUse$.pipe((0,M.p)(Q=>!0===Q),(0,x.u)(r.Gamepad)),X=(0,n.R)(document,"mousemove",{capture:!0}).pipe((0,A.c)(50),(0,x.u)(r.Mouse)),q=(0,n.R)(document,"pointerdown",{capture:!0}).pipe((0,M.p)(Q=>"mouse"===Q.pointerType||"touch"===Q.pointerType),(0,g.T)(Q=>"mouse"===Q.pointerType?r.Mouse:r.Touch));this.updateMonitoringActivationState(!0),(0,S.h)(G,k,q,X).pipe((0,m.t)(1),(0,l.F)()).subscribe(Q=>this.inputModalityChangedSubject.next(Q))})}startMonitoring(){this.logger.info("start monitoring"),this.focusOriginModalitySubscription?.unsubscribe(),this.focusOriginModalitySubscription=this.ngZone.runOutsideAngular(()=>this.inputModalityChanged$.pipe((0,g.T)(U=>{let Y;switch(U){case r.Keyboard:case r.Gamepad:Y="keyboard";break;case r.Mouse:Y="mouse";break;case r.Touch:Y="touch"}return{focusOrigin:Y,inputModality:U}})).subscribe(U=>this.focusOriginModality=U))}stopMonitoring(){this.logger.info("stop monitoring"),this.focusOriginModalitySubscription?.unsubscribe(),this.focusOriginModalitySubscription=void 0,this.focusOriginModality={}}updateMonitoringActivationState(U){this.monitoringActivated=U}static{this.\u0275fac=function(Y){return new(Y||R)(u.KVO(v.J6),u.KVO(E.bi),u.KVO(u.SKi))}}static{this.\u0275prov=u.jDH({token:R,factory:R.\u0275fac,providedIn:"root"})}}return R})()},78812:(St,z,s)=>{"use strict";s.d(z,{P6:()=>R,Rg:()=>l,XZ:()=>Ee,CV:()=>T,wx:()=>G,EU:()=>r,Op:()=>U,zK:()=>Ve,i1:()=>ct,YH:()=>B,H0:()=>Pe,oX:()=>v});var i=s(85735),n=s(3496),h=s(93181),C=s(43848),S=s(12532),M=s(75707),P=s(83915),x=s(14714),A=s(91384),g=s(26875),m=s(92602),l=function(J){return J.Full="Full",J.None="None",J.Temp="Temp",J}(l||{}),r=function(J){return J.Required="required",J.Functional="functional",J.Technical="technical",J.Behavioral="behavioral",J}(r||{}),u=function(J){return J.Anonymous="anonymous",J.DeviceOnly="deviceOnly",J.DevicePreferred="devicePreferred",J.UserPreferred="userPreferred",J.UserRequired="userRequired",J}(u||{}),v=function(J){return J.Undefined="undefined",J}(v||{}),E=function(J){return J.EventsCommonStore="eventsCommonStore",J.EventsDetailStore="eventsDetailStore",J.EventsDetailStoreRequired="eventsDetailStoreRequired",J.EventsDetailStoreTechnical="eventsDetailStoreTechnical",J.EventsDetailStoreBehavioral="eventsDetailStoreBehavioral",J.UserDataConsentStore="userDataConsentStore",J}(E||{}),T=function(J){return J.USER_ID="USER_ID",J.DEVICE_ID="DEVICE_ID",J.SESSION_ID="SESSION_ID",J}(T||{}),R=function(J){return J.SharedStorage="SharedStorage",J.LocalStorage="LocalStorage",J.AbHub="AbHub",J.IndexedDb="IndexedDb",J}(R||{});class B{constructor(vt){this.parameters=vt,this.ts=(new Date).toISOString()}}const U={server:"https://events.gfe.nvidia.com",version:"v1.0",schemaVersion:"1.0",defaultRetries:2,defaultTimeBetweenRetries:1e3,defaultTimeout:3e4,msBetweenSendRequest:5e3,maxEventsPerRequest:128,clientId:"",systemInfoEventDelay:1e4,productName:"GFN"},Y=new B({}),ae={clientId:"{CLIENTID}",clientVer:"{CLIENTVER}",eventSchemaVer:"{EVENTSCHEMAVER}",eventSysVer:"0.17.0",deviceId:v.Undefined,userId:v.Undefined,externalUserId:v.Undefined,idpId:v.Undefined,sessionId:v.Undefined,deviceOS:v.Undefined,deviceOSVersion:v.Undefined,deviceType:v.Undefined,deviceModel:v.Undefined,deviceMake:v.Undefined,clientType:v.Undefined,clientVariant:v.Undefined,sentTs:"",events:[Y],integrationId:v.Undefined,browserType:v.Undefined,productName:v.Undefined,productVersion:v.Undefined},G={required:l.None,functional:l.None,technical:l.None,behavioral:l.None};var ce=function(J){return J.Ok="OK",J.InvalidInfoForEventType="INVALID_INFO_FOR_EVENT_TYPE",J.UnknownEventType="UNKNOWN_EVENT_TYPE",J.UnProcessed="UNPROCESSED",J.ExperimentAlreadyActive="EXPERIMENT_ALREADY_ACTIVE",J.FunctionalConsentNotReceived="FUNCTIONAL_CONSENT_NOT_RECEIVED",J.LocaleSwitchInProgress="LOCALE_SWITCH_INPROGRESS",J}(ce||{});const Ee={userConsent:G,userId:"",externalUserId:"",idpId:""};var Qe=s(58527);let ct=(()=>{class J{static{this.\u0275fac=function(ue){return new(ue||J)}}static{this.\u0275prov=Qe.jDH({token:J,factory:J.\u0275fac})}}return J})();var Ge=s(76449),nt=s(5798);let Je=(()=>{class J{constructor(ve,ue,et){this.sdkConfig=ve,this.endpointFactory=ue,this.distributedTracingUtilService=et,this.eventServerEndpoint=this.endpointFactory.createEndpoint({headers:{"Content-Type":"application/json"},config:{timeout:this.sdkConfig.defaultTimeout,timeBetweenRetries:this.sdkConfig.defaultTimeBetweenRetries,maxRetries:this.sdkConfig.defaultRetries},reportRequest:!1})}generateUrl(ve){return this.sdkConfig.server+"/"+this.sdkConfig.version+ve}sendEvent(ve,ue,et,se){null!==ve&&ve.hasOwnProperty("sync")&&delete ve.sync;const be={body:ue,headers:{"Content-Type":"application/json"},params:{immediateRequest:JSON.stringify(et)}},rt=this.eventServerEndpoint.makeRequestEx("POST",this.generateUrl("/events/json"),be);return this.distributedTracingUtilService.handleHttpEndpointSpan(rt,be,Ge.pB.SendTelemetryEvent,se)}sendEventviaBeacon(ve,ue,et,se){ve?.hasOwnProperty("sync")&&delete ve.sync;const Ce=new Blob([ue],{type:"text/plain"});return navigator.sendBeacon(this.generateUrl("/events/json"),Ce),(0,C.of)(!0)}setServer(ve){return this.sdkConfig.server=ve,this.getServerLocale(null)}getServerLocale(ve){const ue=ve||this.sdkConfig.server;return ue&&""!==ue?ue.endsWith(".cn")?"china":"global":"unknown"}static{this.\u0275fac=function(ue){return new(ue||J)(Qe.KVO(ct),Qe.KVO(nt.t),Qe.KVO(Ge.Z1))}}static{this.\u0275prov=Qe.jDH({token:J,factory:J.\u0275fac,providedIn:"root"})}}return J})(),ze=(()=>{class J{constructor(){this.windowLocalStorage=null,m.zk.isBrowserPlatform()&&(this.windowLocalStorage=window.localStorage)}getWlsItem(ve,ue){return this.windowLocalStorage&&JSON.parse(this.windowLocalStorage.getItem(ve+ue))}setWlsItem(ve,ue,et){return this.windowLocalStorage&&this.windowLocalStorage.setItem(ve+ue,JSON.stringify(et))}removeWlsItem(ve,ue){return this.windowLocalStorage&&this.windowLocalStorage.removeItem(ve+ue)}getLength(){return this.windowLocalStorage&&this.windowLocalStorage.length}getKey(ve){return this.windowLocalStorage&&this.windowLocalStorage.key(ve)}clearall(ve){this.windowLocalStorage&&Object.keys(this.windowLocalStorage)?.forEach(ue=>{ue?.startsWith(ve)&&this.windowLocalStorage.removeItem(ue)})}static{this.\u0275fac=function(ue){return new(ue||J)}}static{this.\u0275prov=Qe.jDH({token:J,factory:J.\u0275fac,providedIn:"root"})}}return J})(),Ke=(()=>{class J{getCommonData$(){return this.commonDataSubject.asObservable()}get registeredErrorCallbackVal(){return this.registeredErrorCallback}get defaultErrorCallbackVal(){return this.defaultErrorCallback}get cleanUpBacklogEventsVal(){return this.cleanUpBacklogEvents}get currentUserConsentUpdatedVal(){return this.currentUserConsentUpdated}setDefaultConsentVal(ve){this.defaultConsent=ve,this.deviceConsent=ve}setSendEventsInProgressVal(ve){this.sendEventsInProgress=ve}constructor(ve,ue,et,se,Ce,be,rt){this.config=ve,this.eventSdkService=ue,this.logService=et,this.dbCacheService=se,this.dbService=Ce,this.networkStatusService=be,this.windowLocalStorage=rt,this.commonData=ae,this.defaultConsent=G,this.deviceConsent=G,this.deviceConsentUpdated=!1,this.currentUserConsent=G,this.currentUserConsentUpdated=!1,this.currentUserId=v.Undefined,this.syncedUserConsentInfo=!1,this.registeredErrorCallback=this.defaultErrorCallback,this.cleanUpBacklogEvents=!1,this.sendBacklogEventsInitiated=!1,this.sendEventsInProgress=!1,this.eventsInBatch=!1,this.newEventInDb=!1,this.sendBatchEventsInProgress={functional:!1,technical:!1,behavioral:!1,required:!1},this.cleanBacklogEventsInProgress=[],this.cleanWlsBacklogEventsInProgress=[],this.customParams={platform:!1},this.browserPlatform=!1,this.isTelemetryDisabled=!1,this.commonDataSubject=new i.m(1),this.serverLocale="unknown",this.purgeInitiated=!1,this.purgeInProgress={commonDbIsClear:!1,functionalDbIsClear:!1,technicalDbIsClear:!1,behavioralDbIsClear:!1,requiredDbIsClear:!1,wlsDbIsClear:!1},this.setErrorCallback=me=>{this.registeredErrorCallback=me},this.logger=this.logService.getLogger("JsEventsService"),this.commonData.clientId=this.config.clientId,this.commonData.eventSchemaVer=this.config.schemaVersion,this.sendInterval$=(0,n.O)(0,this.config.msBetweenSendRequest),this.logger.info("initialize",ve),this.networkStatusService.onlineStatusChanged.subscribe(this.onOnlineStateChanged.bind(this)),this.browserPlatform=m.zk.isBrowserPlatform(),this.serverLocale=this.eventSdkService.getServerLocale(null)}defaultErrorCallback(ve){this.logger.error("message:",ve&&ve.message?ve.message:"Unknown error")}updateServer(ve){const ue=this.eventSdkService.setServer(ve);this.onLocationStateChanged(ue)}sendToServerEndpoint(ve,ue){const et=ve.events.slice(0);ve.eventsToBeSent=ve.events.length;const se=[];for(;0!==ve.eventsToBeSent;){let Ce;this.logger.event("eventsToBeSent",ve.eventsToBeSent.toString()),ve.eventsToBeSent>this.config.maxEventsPerRequest?(Ce=et.slice(0,this.config.maxEventsPerRequest),et.splice(0,this.config.maxEventsPerRequest)):Ce=et,ve.eventsToBeSent=ve.eventsToBeSent-Ce.length;const be=ve.commonData;be.events=Ce,be.sentTs=(new Date).toISOString();const rt=JSON.stringify(be);this.logger.info("events request",rt),se.push(this.eventSdkService.sendEvent(this.customParams,rt,ue))}return(0,h.p)(se)}updateCleanupState(ve,ue,et){let se=!1,Ce=0;this.cleanBacklogEventsInProgress.forEach(be=>{be.recordKey===ve&&(se=!0,be.functionalDbIsClear=ue===r.Functional?et:be.functionalDbIsClear,be.technicalDbIsClear=ue===r.Technical?et:be.technicalDbIsClear,be.behavioralDbIsClear=ue===r.Behavioral?et:be.behavioralDbIsClear,be.requiredDbIsClear=ue===r.Required?et:be.requiredDbIsClear,be.functionalDbIsClear&&be.technicalDbIsClear&&be.behavioralDbIsClear&&be.requiredDbIsClear&&(this.dbService.getGlobalStore(E.EventsCommonStore).removeItem(ve).subscribe(),this.cleanBacklogEventsInProgress.splice(Ce,1)),Ce++)}),!1===se&&this.cleanBacklogEventsInProgress.push({recordKey:ve,functionalDbIsClear:ue===r.Functional&&et,technicalDbIsClear:ue===r.Technical&&et,behavioralDbIsClear:ue===r.Behavioral&&et,requiredDbIsClear:ue===r.Required&&et})}getConsentedEvents(ve,ue,et,se){const Ce=[];return se&&se.events&&se.events.length>0&&se.events.forEach(be=>{const rt=this.eventHasConsent(be.personalization,ve,ue,et);if(rt===l.Full||rt===l.Temp){const me=(0,g.extend)({},this.updatePersonalizationQualifiers(be));Ce.push(me)}else this.logger.event("Event excluded from send due to no consent (to be discarded later): ",be,ve)}),Ce}sendBacklogEventsDetailToServer(ve,ue,et,se,Ce,be){return this.logger.event("attempting to send backlog events for dbName:",et," userconsent: ",ue,"key: ",Ce),this.dbService.getGlobalStore(et).getItem(Ce).pipe((0,M.ZZ)(rt=>{let me={commonData:{},events:[],eventsToBeSent:0};const le=Se=>{if(this.logger.event("jsEvents backlog response",Se,me.eventsToBeSent),0===me.eventsToBeSent)return this.dbService.getGlobalStore(et).removeItem(Ce).subscribe(),(0,C.of)(!0)},Xe=Se=>{this.logger.error("Failed to send backlog events",Se.status),this.logger.event("Failed to send backlog events for :",Ce,et,".ErrorInfo: status",Se.status)};return me={commonData:(0,g.merge)({},be.common),events:this.getConsentedEvents(se,ve,ue,rt),eventsToBeSent:0},me.commonData&&me.events&&me.events.length>0?this.sendToServerEndpoint(me,!1).pipe((0,P.T)(Se=>{Se.forEach(fe=>{le(fe)})}),(0,x.W)(Se=>(Xe(Se),S.w))):(this.updateCleanupState(Ce,se,!0),this.dbService.getGlobalStore(et).removeItem(Ce).subscribe(),(0,C.of)(!0))}),(0,x.W)(rt=>(this.logger.event("detail data not available for backlog key",Ce),this.dbService.getGlobalStore(et).removeItem(Ce).subscribe(),(0,C.of)(!0))))}updateWlsCleanupState(ve,ue,et){let se=!1,Ce=0;this.cleanWlsBacklogEventsInProgress.forEach(be=>{be.recordKey===ve&&(se=!0,be.functionalDbIsClear=ue===r.Functional?et:be.functionalDbIsClear,be.technicalDbIsClear=ue===r.Technical?et:be.technicalDbIsClear,be.behavioralDbIsClear=ue===r.Behavioral?et:be.behavioralDbIsClear,be.requiredDbIsClear=ue===r.Required?et:be.requiredDbIsClear,be.functionalDbIsClear&&be.technicalDbIsClear&&be.behavioralDbIsClear&&be.requiredDbIsClear&&(this.windowLocalStorage.removeWlsItem(E.EventsCommonStore,ve),this.cleanWlsBacklogEventsInProgress.splice(Ce,1)),Ce++)}),!1===se&&this.cleanWlsBacklogEventsInProgress.push({recordKey:ve,functionalDbIsClear:ue===r.Functional&&et,technicalDbIsClear:ue===r.Technical&&et,behavioralDbIsClear:ue===r.Behavioral&&et,requiredDbIsClear:ue===r.Required&&et})}sendWlsBacklogEventsDetailToServer(ve,ue,et,se,Ce,be){this.logger.event("attempting to send wls backlog events for dbName:",et," userconsent: ",ue,"key: ",Ce);const rt=this.windowLocalStorage.getWlsItem(et,Ce);if(rt){let me={commonData:{},events:[],eventsToBeSent:0};const le=Se=>{if(this.logger.event("jsEvents wls backlog response",Se,me.eventsToBeSent),0===me.eventsToBeSent)return this.windowLocalStorage.removeWlsItem(et,Ce)},Xe=Se=>{this.logger.error("Failed to send wls backlog events :",Se.status),this.logger.event("Failed to send wls backlog events for :",Ce,et,".ErrorInfo: status",Se.status)};return me={commonData:(0,g.merge)({},be.common),events:this.getConsentedEvents(se,ve,ue,rt),eventsToBeSent:0},me.commonData&&me.events&&me.events.length>0?this.sendToServerEndpoint(me,!1).pipe((0,P.T)(Se=>{Se.forEach(fe=>{le(fe)})}),(0,x.W)(Se=>(Xe(Se),S.w))):(this.updateWlsCleanupState(Ce,se,!0),(0,C.of)(this.windowLocalStorage.removeWlsItem(et,Ce)))}return this.updateWlsCleanupState(Ce,se,!0),this.logger.event("detail data not available for wls backlog key",Ce),(0,C.of)(this.windowLocalStorage.removeWlsItem(et,Ce))}attemptSendFromAllEventStores(ve,ue,et,se,Ce){return(0,h.p)([ve.call(this,ue,et,E.EventsDetailStore,r.Functional,se,Ce),ve.call(this,ue,et,E.EventsDetailStoreTechnical,r.Technical,se,Ce),ve.call(this,ue,et,E.EventsDetailStoreBehavioral,r.Behavioral,se,Ce),ve.call(this,ue,et,E.EventsDetailStoreRequired,r.Required,se,Ce)])}sendBacklogEvents(ve){try{this.dbService.getGlobalStore(E.EventsCommonStore).getItem(ve).pipe((0,M.ZZ)(ue=>{if(this.logger.event("testCommonData",ue),ue&&ue.common){const et=JSON.parse(ve);return this.getUserConsentFromCache(et.userId||"undefined",!1).pipe((0,M.ZZ)(se=>(this.logger.event("userConsentFromCache",se),ue.common.gdprFuncOptIn=this.getString(se.functional),ue.common.gdprTechOptIn=this.getString(se.technical),ue.common.gdprBehOptIn=this.getString(se.behavioral),ue.common.deviceGdprFuncOptIn=this.getString(this.deviceConsent.functional),ue.common.deviceGdprTechOptIn=this.getString(this.deviceConsent.technical),ue.common.deviceGdprBehOptIn=this.getString(this.deviceConsent.behavioral),this.attemptSendFromAllEventStores(this.sendBacklogEventsDetailToServer,this.deviceConsent,se,ve,ue))))}return this.logger.event("common data not available for backlog key",ve),this.dbService.getGlobalStore(E.EventsCommonStore).removeItem(ve).subscribe(),(0,C.of)(!0)}),(0,x.W)(ue=>(this.logger.event("common data not available for backlog key",ve),this.dbService.getGlobalStore(E.EventsCommonStore).removeItem(ve).subscribe(),(0,C.of)(!0)))).subscribe()}catch(ue){this.logger.error("catch backlog::",ue)}}sendWlsBacklogEvents(ve){try{const ue=this.windowLocalStorage.getWlsItem(E.EventsCommonStore,ve);if(this.logger.event("wlsCommonData",ue),ue){const et=JSON.parse(ve);this.getUserConsentFromCache(et.userId||"undefined",!1).pipe((0,M.ZZ)(se=>{this.logger.event("userConsentFromCache",se);const Ce={common:ue};return Ce.common.gdprFuncOptIn=this.getString(se.functional),Ce.common.gdprTechOptIn=this.getString(se.technical),Ce.common.gdprBehOptIn=this.getString(se.behavioral),Ce.common.deviceGdprFuncOptIn=this.getString(this.deviceConsent.functional),Ce.common.deviceGdprTechOptIn=this.getString(this.deviceConsent.technical),Ce.common.deviceGdprBehOptIn=this.getString(this.deviceConsent.behavioral),this.attemptSendFromAllEventStores(this.sendWlsBacklogEventsDetailToServer,this.deviceConsent,se,ve,Ce)})).subscribe()}else this.logger.event("wls common data not available for backlog key",ve),this.windowLocalStorage.removeWlsItem(E.EventsCommonStore,ve)}catch(ue){this.logger.error("catch wls backlog:",ue)}}setInProgressState(ve,ue){this.sendBatchEventsInProgress.functional=ve===r.Functional?ue:this.sendBatchEventsInProgress.functional,this.sendBatchEventsInProgress.technical=ve===r.Technical?ue:this.sendBatchEventsInProgress.technical,this.sendBatchEventsInProgress.behavioral=ve===r.Behavioral?ue:this.sendBatchEventsInProgress.behavioral,this.sendBatchEventsInProgress.required=ve===r.Required?ue:this.sendBatchEventsInProgress.required,this.eventsInBatch=this.getInProgressState()}getInProgressState(){return this.sendBatchEventsInProgress.functional||this.sendBatchEventsInProgress.technical||this.sendBatchEventsInProgress.behavioral||this.sendBatchEventsInProgress.required}sendBatchedEventsDetailToServer(ve,ue,et,se,Ce,be){this.logger.event("attempting to send batched events for dbName:",et," userconsent: ",ue,"key: ",Ce);const rt=this.dbCacheService.getCachedGlobalItem(et,Ce);let me={commonData:{},events:[],eventsToBeSent:0};const le=Se=>{this.logger.event("jsEvents batched response",Se);const fe=JSON.parse(Se.config.data);this.cleanUpSentEvents(fe.events,et,Ce),this.setInProgressState(se,!1),this.sendEventsInProgress=!1},Xe=Se=>{this.setInProgressState(se,!1),this.sendEventsInProgress=!1,this.logger.error("Failed to send events for :",Ce,".ErrorInfo: status",Se.status)};return me={commonData:(0,g.merge)({},be.common),events:this.getConsentedEvents(se,ve,ue,rt),eventsToBeSent:0},me.commonData&&me.events&&me.events.length>0?(this.setInProgressState(se,!0),this.sendEventsInProgress=!0,this.sendToServerEndpoint(me,!1).subscribe(Se=>{Se.forEach(fe=>{le(fe)})},Se=>{Xe(Se)})):(rt&&rt.events&&(rt.events.splice(0,rt.events.length),rt.persist_().subscribe()),this.setInProgressState(se,!1),this.sendEventsInProgress=!1),S.w}sendEvents(){const ve=this.getRecordKey(),ue=this.dbCacheService.getCachedGlobalItem(E.EventsCommonStore,ve);if(ue&&ue.common)this.getUserConsentFromCache(this.currentUserId||v.Undefined,!0).pipe((0,M.ZZ)(et=>(ue.common.gdprFuncOptIn=this.getString(et.functional),ue.common.gdprTechOptIn=this.getString(et.technical),ue.common.gdprBehOptIn=this.getString(et.behavioral),ue.common.deviceGdprFuncOptIn=this.getString(this.deviceConsent.functional),ue.common.deviceGdprTechOptIn=this.getString(this.deviceConsent.technical),ue.common.deviceGdprBehOptIn=this.getString(this.deviceConsent.behavioral),this.attemptSendFromAllEventStores(this.sendBatchedEventsDetailToServer,this.deviceConsent,et,ve,ue)))).subscribe();else{if(this.logger.event("common data not available for key",ve),ue&&(0,g.isUndefined)(ue.common))try{this.registeredErrorCallback("common data not set before starting to send events")}catch(et){this.logger.error(et),this.defaultErrorCallback("Invalid callback. Original Error: common data not set before starting to send events")}this.sendEventsInProgress=!1}}startTimeBasedSendToServer(){this.stopTimeBasedSendToServer(),this.sendEventSubscription=this.sendInterval$.subscribe(()=>{this.logger.event("events in batch:",this.eventsInBatch),this.logger.event("new event in db:",this.newEventInDb),(!0===this.eventsInBatch||!0===this.newEventInDb)&&!1===this.sendEventsInProgress&&!1===this.getInProgressState()&&!1===this.getPurgeInProgressState()&&(this.newEventInDb=!1,this.sendEventsInProgress=!0,this.sendEvents())}),this.logger.event("send interval request made")}stopTimeBasedSendToServer(){this.sendEventSubscription&&(this.sendEventSubscription.unsubscribe(),this.sendEventSubscription=null,this.logger.event("send interval stopped"))}onOnlineStateChanged(ve){this.isOnline=ve,this.isOnline?this.deviceConsent!==G&&(this.logger.info("jsEvents turns into online"),this.startTimeBasedSendToServer()):(this.logger.info("jsEvents turns into offline"),this.stopTimeBasedSendToServer())}onLocationStateChanged(ve){"unknown"!==this.serverLocale&&this.serverLocale!==ve&&(this.logger.info("purge stored events"),this.purgeInitiated=!0,this.purgeEventStoreRecords()),this.serverLocale=ve}purgeEventStoreRecords(){this.purgeInProgress={commonDbIsClear:!1,functionalDbIsClear:!1,technicalDbIsClear:!1,behavioralDbIsClear:!1,requiredDbIsClear:!1,wlsDbIsClear:!1},this.dbService.getGlobalStore(E.EventsDetailStore).clear().subscribe(()=>{this.purgeInProgress.functionalDbIsClear=!0}),this.dbService.getGlobalStore(E.EventsDetailStoreTechnical).clear().subscribe(()=>{this.purgeInProgress.technicalDbIsClear=!0}),this.dbService.getGlobalStore(E.EventsDetailStoreBehavioral).clear().subscribe(()=>{this.purgeInProgress.behavioralDbIsClear=!0}),this.dbService.getGlobalStore(E.EventsDetailStoreRequired).clear().subscribe(()=>{this.purgeInProgress.requiredDbIsClear=!0}),this.dbService.getGlobalStore(E.EventsCommonStore).clear().subscribe(()=>{this.purgeInProgress.commonDbIsClear=!0}),this.windowLocalStorage.clearall(E.EventsDetailStore),this.windowLocalStorage.clearall(E.EventsDetailStoreTechnical),this.windowLocalStorage.clearall(E.EventsDetailStoreBehavioral),this.windowLocalStorage.clearall(E.EventsDetailStoreRequired),this.windowLocalStorage.clearall(E.EventsCommonStore),this.purgeInProgress.wlsDbIsClear=!0}getPurgeInProgressState(){let ve=!1;return this.purgeInitiated&&(ve=!(this.purgeInProgress.wlsDbIsClear&&this.purgeInProgress.functionalDbIsClear&&this.purgeInProgress.technicalDbIsClear&&this.purgeInProgress.behavioralDbIsClear&&this.purgeInProgress.requiredDbIsClear&&this.purgeInProgress.commonDbIsClear),this.purgeInitiated=ve),ve}getUserConsentFromCache(ve,ue){const se={required:this.deviceConsent.required,functional:this.deviceConsent.functional,technical:l.None,behavioral:l.None},Ce=this.dbCacheService.getOrCreateCachedGlobalItem(E.UserDataConsentStore,ve||v.Undefined);return Ce?Ce.sync_().pipe((0,P.T)(()=>{const be=Ce&&Ce.userConsent;return!0===ue&&((0,g.isNil)(be)?this.currentUserId===v.Undefined&&(this.currentUserConsent=se,this.currentUserConsentUpdated=!0):(this.currentUserConsent=be,this.currentUserConsentUpdated=!0)),be||se}),(0,x.W)(be=>(0,C.of)(se))):(0,C.of)(se)}syncUserConsentInfo(ve){const ue=ve.find(et=>et.userId===this.currentUserId);ue&&(this.currentUserConsent=ue.userConsent,this.currentUserConsentUpdated=!0),ve.forEach(et=>{const se=this.dbCacheService.getOrCreateCachedGlobalItem(E.UserDataConsentStore,et.userId);this.logger.event("previously cached consent",se.userConsent),se.userConsent=et.userConsent,se.persist_().subscribe(),this.logger.event("updated consent",et.userConsent)}),this.syncedUserConsentInfo=!0,this.startSendingEvents()}setDefaultConsent(ve){this.defaultConsent=ve,this.deviceConsent=ve,(this.currentUserId===v.Undefined||(0,g.isUndefined)(this.currentUserId))&&(this.currentUserConsent={required:this.deviceConsent.required,functional:this.deviceConsent.functional,technical:l.None,behavioral:l.None},this.currentUserConsentUpdated=!0),this.startSendingEvents()}setDeviceConsent(ve){this.deviceConsent=ve,this.deviceConsentUpdated=!0,this.logger.event("device consent",ve),this.startSendingEvents()}eventHasConsent(ve,ue,et,se){let Ce;return Ce=ve===u.Anonymous||ve===u.DeviceOnly||ve===u.DevicePreferred?et:ve===u.UserRequired?this.currentUserId===v.Undefined||(0,g.isUndefined)(this.currentUserId)?G:se:this.currentUserId===v.Undefined||(0,g.isUndefined)(this.currentUserId)?{required:this.deviceConsent.required,functional:this.deviceConsent.functional,technical:l.None,behavioral:l.None}:se,ue===r.Required?Ce.required:ue===r.Functional?Ce.functional:ue===r.Technical?Ce.technical:ue===r.Behavioral?Ce.behavioral:l.None}cleanUpDbStore(){if(this.isTelemetryDisabled)return;const ve=this;if(this.commonData.sessionId===v.Undefined)return void ve.logger.info("Cleanup cannot proceed, this.commonData.sessionId is undefined");this.sendBacklogEventsInitiated=!0;const ue=JSON.parse(this.getRecordKey());this.logger.info("cleanUpDbStore excluding session for",ue);try{ve.dbService.getGlobalStore(E.EventsCommonStore).keys().pipe((0,A.M)(et=>{et.forEach((se,Ce)=>{try{if(ve.logger.event("Key#",Ce,"key ",se),"_version"===se)ve.logger.info("_version to be skipped",se);else{const be=JSON.parse(se);""===be.sessionId||be.sessionId===ue.sessionId?ve.logger.info("key not to be processed",be):ve.sendBacklogEvents(se)}}catch(be){ve.logger.error("Json parsing failed for key:",se,"error:",be?.message)}})})).subscribe()}catch(et){ve.logger.error("encountered failure, error:",et?.message)}}cleanUpWlsStore(){this.sendBacklogEventsInitiated=!0;const ve=JSON.parse(this.getRecordKey());this.logger.info("cleanUpWlsStore excluding session for",ve);for(let ue=0;ue<this.windowLocalStorage.getLength();++ue){const et=this.windowLocalStorage.getKey(ue);if(et.match("^"+E.EventsCommonStore)){this.logger.event("Key#",ue,"key ",et);const se=JSON.parse(et.replace(E.EventsCommonStore,""));""===se.sessionId||se.sessionId===ve.sessionId?this.logger.event("key not to be processed",se):this.sendWlsBacklogEvents(JSON.stringify(se))}}}cleanUpSentEvents(ve,ue,et){this.logger.event("cleanUpSentEvents for",et);const se=this.dbCacheService.getCachedGlobalItem(ue,et);ve.forEach(Ce=>{if(se&&se.events.length>0){const be=se.events.find(rt=>rt.ts===Ce.ts);if(be&&(0,g.isEqual)(be.parameters,Ce.parameters)){const rt=se.events.indexOf(be);this.logger.event("matching event found",Ce),se.events.splice(rt,1),se.persist_().subscribe()}else this.logger.event("matching event not found")}else this.logger.event("events seem to be already cleared")}),se.persist_().subscribe()}startSendingEvents(){this.isOnline&&this.deviceConsent!==G&&"unknown"!==this.serverLocale?(this.startTimeBasedSendToServer(),!1===this.sendBacklogEventsInitiated&&(this.cleanUpDbStore(),this.cleanUpBacklogEvents=!1)):this.logger.info("Device offline or No Functional consent. No clean job happened.",this.deviceConsent)}updateGdprQualifiers(ve){return(0,g.omit)(ve,"gdprLevel")}updatePersonalizationQualifiers(ve){return(0,g.omit)(ve,"personalization")}updateGdprAndPersonalizationQualifiers(ve){return(0,g.omit)(ve,["gdprLevel","personalization"])}getString(ve){return ve&&"string"!=typeof ve?JSON.stringify(ve):ve||""}getRecordKey(){return JSON.stringify({sessionId:this.commonData.sessionId||v.Undefined,userId:this.currentUserId||v.Undefined})}getFormattedInputData(ve,ue){const et=(0,g.extend)({},this.commonData);!0===ue.anonymize&&(et.deviceId="undefined",et.userId="undefined",et.sessionId="undefined",et.externalUserId="undefined",et.idpId="undefined");const se=(0,g.extend)({},this.updateGdprAndPersonalizationQualifiers(ve));this.logger.event("eventDetail",se);const Ce=[];return Ce.push(se),et.events=Ce,et.sentTs=(new Date).toISOString(),et.gdprFuncOptIn=this.getString(this.currentUserConsent.functional),et.gdprTechOptIn=this.getString(this.currentUserConsent.technical),et.gdprBehOptIn=this.getString(this.currentUserConsent.behavioral),et.deviceGdprFuncOptIn=this.getString(this.deviceConsent.functional),et.deviceGdprTechOptIn=this.getString(this.deviceConsent.technical),et.deviceGdprBehOptIn=this.getString(this.deviceConsent.behavioral),JSON.stringify(et)}setFormattedEventsDetailData(ve,ue,et){const se=this.getRecordKey();let be,Ce=E.EventsDetailStore;if(ve.gdprLevel===r.Technical&&(Ce=E.EventsDetailStoreTechnical),ve.gdprLevel===r.Behavioral&&(Ce=E.EventsDetailStoreBehavioral),ve.gdprLevel===r.Required&&(Ce=E.EventsDetailStoreRequired),ue){be=this.windowLocalStorage.getWlsItem(Ce,se)||{},be.events=be.events||[];const rt=(0,g.extend)({},this.updateGdprQualifiers(ve));this.logger.event("eventDetail wls",rt),be.events.push(rt),this.logger.event("details list wls",be.events),this.windowLocalStorage.setWlsItem(Ce,se,be),(0,g.isFunction)(et)&&et(),this.logger.event("request to batch an exit time event")}else{be=this.dbCacheService.getOrCreateCachedGlobalItem(Ce,se);let rt=be.events;const me=(0,g.extend)({},this.updateGdprQualifiers(ve));if(this.logger.event("eventDetail IDb",me),rt)rt.push(me);else{const le=[];le.push(me),rt=le}this.logger.event("details list indexed db",rt),be.events=rt,be.persist_().subscribe(()=>{(0,g.isFunction)(et)&&et(),this.logger.event("request to batch an event"),this.newEventInDb=!0})}}storeEventDetail(ve,ue){this.setFormattedEventsDetailData(ve,this.browserPlatform&&ue.appExit||!1,ue.afterDone||null)}checkIfEventIsSendable(ve,ue){return(0,g.isEqual)(this.deviceConsent,G)||ve&&(0,g.isUndefined)(ve.gdprLevel)?(this.logger.info("No consent available, discarding event",ve.name,ve.gdprLevel),(0,g.isFunction)(ue.afterDone)&&ue.afterDone(),ce.FunctionalConsentNotReceived):this.getPurgeInProgressState()?ce.LocaleSwitchInProgress:ce.Ok}sendEventDetail(ve,ue){if(ve){ue=(0,g.merge)({},ue),this.isValidPersonalization(ve.personalization)||(ve.personalization=u.UserPreferred);const et=this.checkIfEventIsSendable(ve,ue);if(et!==ce.Ok)return et;if("unknown"===this.serverLocale||!0!==ue.immediateRequest&&!0!==ue.useBeacon||!0!==this.isOnline)this.storeEventDetail(ve,ue);else{const se=this.eventHasConsent(ve.personalization,ve.gdprLevel,this.deviceConsent,this.currentUserConsent);if(this.logger.event("attempting to send immediate event for userId:",this.currentUserId," userconsent: ",this.currentUserConsent,"deviceconsent: ",this.deviceConsent),se!==l.Full&&se!==l.Temp)return this.currentUserId&&this.currentUserId!==v.Undefined&&!1===this.currentUserConsentUpdated?(this.storeEventDetail(ve,ue),this.logger.event("Event stored as userConsent not synced yet",se,this.currentUserConsentUpdated)):((0,g.isFunction)(ue.afterDone)&&ue.afterDone(),this.logger.error("Event cannot be sent due to consent level:",se)),se;{const Ce=this.getFormattedInputData(ve,ue);this.logger.info("jsonString request to send:",Ce);let be=this.eventSdkService.sendEvent,rt=!0;ue.useBeacon&&(be=this.eventSdkService.sendEventviaBeacon,rt=!1),be.call(this.eventSdkService,this.customParams,Ce,rt).subscribe(me=>{this.logger.event("jsevents response",me),(0,g.isFunction)(ue.afterDone)&&ue.afterDone()},me=>{this.logger.error("Failed to send eventdata for:",ve.name,".ErrorInfo: status",me.status,", data",me.config&&me.config.data),this.storeEventDetail(ve,ue)})}}return ce.Ok}return this.logger.error("Empty request"),ce.UnProcessed}sendEventDetailWithPromise(ve,ue){return new Promise((et,se)=>{if(ve){if(ue=(0,g.merge)({},ue),(0,g.isEqual)(this.deviceConsent,G)||ve&&(0,g.isUndefined)(ve.gdprLevel))return this.logger.info("Functional consent not received, discarding event",ve.name,ve.gdprLevel),(0,g.isFunction)(ue.afterDone)&&ue.afterDone(),void se(ce.FunctionalConsentNotReceived);if(this.getPurgeInProgressState())return void se(ce.LocaleSwitchInProgress);if("unknown"===this.serverLocale||!0!==ue.immediateRequest&&!0!==ue.useBeacon||!0!==this.isOnline)this.storeEventDetail(ve,ue),et(ce.Ok);else{const Ce=this.eventHasConsent(ve.personalization,ve.gdprLevel,this.deviceConsent,this.currentUserConsent);if(this.logger.event("attempting to send immediate event for userId:",this.currentUserId," userconsent: ",this.currentUserConsent,"deviceconsent: ",this.deviceConsent),Ce===l.Full||Ce===l.Temp){const be=this.getFormattedInputData(ve,ue);let rt=this.eventSdkService.sendEvent,me=!0;ue.useBeacon&&(rt=this.eventSdkService.sendEventviaBeacon,me=!1),rt.call(this.eventSdkService,this.customParams,be,me).subscribe(le=>{this.logger.event("jsevents response",le),(0,g.isFunction)(ue.afterDone)&&ue.afterDone(),et(ce.Ok)},le=>{this.logger.error("Failed to send eventdata for:",ve.name,".ErrorInfo: status",le.status,", data",le.config&&le.config.data),this.storeEventDetail(ve,ue),et(ce.UnProcessed)})}else this.currentUserId&&this.currentUserId!==v.Undefined&&!1===this.currentUserConsentUpdated?(this.storeEventDetail(ve,ue),this.logger.event("Event stored as userConsent not synced yet",Ce,this.currentUserConsentUpdated)):((0,g.isFunction)(ue.afterDone)&&ue.afterDone(),this.logger.error("Event cannot be sent due to consent level:",Ce)),et(Ce)}}else this.logger.error("Empty request"),et(ce.Ok)})}isValidPersonalization(ve){return ve===u.Anonymous||ve===u.DeviceOnly||ve===u.DevicePreferred||ve===u.UserPreferred||ve===u.UserRequired}setEventsCommonData(ve){if(!ve)return this.logger.error("Undefined common data sent by client"),(0,C.of)(void 0);this.cleanUpBacklogEvents=!1,this.commonData.sessionId===v.Undefined&&ve.sessionId&&(this.cleanUpBacklogEvents=!0),this.commonData=(0,g.merge)({},this.commonData,ve),this.logger.info("client user data",ve.userId,ve.externalUserId,ve.idpId),this.logger.info("this.commonData user data",this.commonData.userId,this.commonData.externalUserId,this.commonData.idpId),this.commonData.eventProtocol="1.5",this.currentUserId=this.commonData.idpId!==v.Undefined?this.commonData.userId:this.commonData.externalUserId,this.currentUserConsentUpdated=!1,this.logger.info("Device Id:",this.commonData.deviceId,"set for client:",this.commonData.clientId);const ue=this.getUserConsentFromCache(this.currentUserId,!0);this.logger.event(this.commonData);const et=this.getRecordKey(),se=this.dbCacheService.getOrCreateCachedGlobalItem(E.EventsCommonStore,et);if(se.common=this.commonData,se.persist_().subscribe(),this.browserPlatform){let Ce=this.windowLocalStorage.getWlsItem(E.EventsCommonStore,et)||{};Ce=this.commonData,this.windowLocalStorage.setWlsItem(E.EventsCommonStore,et,Ce)}return this.isOnline&&this.deviceConsent!==G&&"unknown"!==this.serverLocale?(this.startTimeBasedSendToServer(),this.cleanUpBacklogEvents&&!1===this.sendBacklogEventsInitiated&&(this.cleanUpDbStore(),this.cleanUpBacklogEvents=!1),this.browserPlatform&&this.cleanUpWlsStore()):this.logger.info("Device offline or No Functional consent. No clean job happened.",this.deviceConsent),this.commonDataSubject.next(this.commonData),ue}setOverrideToolTelemetryState(ve){this.isTelemetryDisabled=ve}ngOnDestroy(){this.sendEventSubscription&&(this.sendEventSubscription.unsubscribe(),this.sendEventSubscription=void 0)}static{this.\u0275fac=function(ue){return new(ue||J)(Qe.KVO(ct),Qe.KVO(Je),Qe.KVO(m.J6),Qe.KVO(m.sc),Qe.KVO(m.at),Qe.KVO(m.CF),Qe.KVO(ze))}}static{this.\u0275prov=Qe.jDH({token:J,factory:J.\u0275fac,providedIn:"root"})}}return J})(),Ve=(()=>{class J{static forRoot(ve){return{ngModule:J,providers:[{provide:ct,useValue:ve||U}]}}static{this.\u0275fac=function(ue){return new(ue||J)}}static{this.\u0275mod=Qe.$C({type:J})}static{this.\u0275inj=Qe.G2t({})}}return J})();var $e=s(20924),dt=s(99047);let Pe=(()=>{class J{constructor(ve,ue,et){this.loggingService=ve,this.bridgeService=ue,this.jsEventsService=et,this.clientVersion="undefined",this.currentScreen="",this.deviceId="undefined",this.isUIRefreshed=!1,this.launchUiEventSent=!1,this.sessionId="undefined",this.sync=!1,this.userId="undefined",this.externalUserId="undefined",this.idpId="undefined",this.deviceOS=null,this.deviceOSVersion=null,this.deviceType=null,this.deviceModel=null,this.deviceMake=null,this.clientType=null,this.clientVariant=null,this.integrationId=null,this.browserType=null,this.productName=null,this.productVersion=null,this.isTelemetryDisabled=!1,this.defaultConsentListener$=new i.m(1),this.deviceConsentListener$=new i.m(1),this.commonDataListener$=new i.m(1),this.validUserIdResetListener$=new i.m(1),this.consentUpdatedPromise=new Promise(se=>{se(null)}),this.logEvaluatorCallback=se=>!0,this.logger=this.loggingService.getLogger("telemetryService"),this.getUIRefreshState(),this.sessionId=this.generateSessionId()}updateTelemetrySessionId(ve){this.sessionId=ve}initialize(ve){this.isTelemetryDisabled=ve,this.jsEventsService.setOverrideToolTelemetryState(this.isTelemetryDisabled)}getCommonData$(){return this.jsEventsService.getCommonData$()}setLaunchUiEventSent(ve){this.launchUiEventSent=ve,this.logger.info("Launch UI event sent: ",this.launchUiEventSent)}getLaunchUiEventSent(){return this.launchUiEventSent}setLoggingEvaluator(ve){this.logEvaluatorCallback=ve}getUIRefreshState(){this.logger.info("Getting UI Refreshed state"),this.bridgeService.executeCommand($e.Ts.Common.Applicationinfo.GetIsUIRefreshed).subscribe(ve=>{this.isUIRefreshed=ve,this.logger.info("Refreshed state",this.isUIRefreshed)},()=>{this.logger.error("Failed to get UI Refreshed state")})}generateSessionId(){let ve=Date.now();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(et){const se=(ve+16*Math.random())%16|0;return ve=Math.floor(ve/16),("x"===et?se:3&se|8).toString(16)})}get telemetrySessionId(){return this.sessionId}setEventsCommonData(ve,ue=!1,et=!1){this.logger.info("telemetry sessionId is ",this.sessionId),!this.deviceId&&ve&&ve.deviceId&&this.logger.info("telemetry deviceId",ve.deviceId),(ue&&ve&&ve.userId||ve&&ve.externalUserId)&&(this.logger.info("telemetry userId ",ve.userId),this.logger.info("telemetry externalUserId ",ve.externalUserId),this.logger.info("telemetry idpId ",ve.idpId)),this.deviceId=ve&&ve.deviceId?ve.deviceId:this.deviceId,this.clientVersion=ve&&ve.clientVer||this.clientVersion,ue&&(this.userId=ve.userId||"undefined",this.externalUserId=ve.externalUserId||"undefined",this.idpId=ve.idpId||"undefined"),this.deviceOS=this.deviceOS||ve.deviceOS,this.deviceOSVersion=this.deviceOSVersion||ve.deviceOSVersion,this.deviceType=this.deviceType||ve.deviceType,this.deviceModel=this.deviceModel||ve.deviceModel,this.deviceMake=this.deviceMake||ve.deviceMake,this.clientType=this.clientType||ve.clientType,this.clientVariant=this.clientVariant||ve.clientVariant,this.integrationId=this.integrationId||ve.integrationId,this.browserType=this.browserType||ve.browserType,this.productName=this.productName||ve.productName,this.productVersion=this.productVersion||ve.productVersion,et&&(this.integrationId=ve.integrationId||"undefined"),this.logger.info("Setting common events data: ",{clientVer:this.clientVersion,sessionId:this.sessionId,deviceId:this.deviceId,userId:this.userId,externalUserId:this.externalUserId,idpId:this.idpId,deviceOS:this.deviceOS,deviceOSVersion:this.deviceOSVersion,deviceType:this.deviceType,deviceModel:this.deviceModel,deviceMake:this.deviceMake,clientType:this.clientType,clientVariant:this.clientVariant,integrationId:this.integrationId,browserType:this.browserType,productName:this.productName,productVersion:this.productVersion}),this.consentUpdatedPromise=this.jsEventsService.setEventsCommonData({clientVer:this.clientVersion,sessionId:this.sessionId,deviceId:this.deviceId,userId:this.userId,externalUserId:this.externalUserId,idpId:this.idpId,deviceOS:this.deviceOS||v.Undefined,deviceOSVersion:this.deviceOSVersion||v.Undefined,deviceType:this.deviceType||v.Undefined,deviceModel:this.deviceModel||v.Undefined,deviceMake:this.deviceMake||v.Undefined,clientType:this.clientType||v.Undefined,clientVariant:this.clientVariant||v.Undefined,integrationId:this.integrationId||v.Undefined,browserType:this.browserType||v.Undefined,productName:this.productName||v.Undefined,productVersion:this.productVersion||v.Undefined}).toPromise(),this.userId&&this.deviceId&&this.deviceId!==v.Undefined&&this.commonDataListener$.next(!0),this.validUserIdResetListener$.next(ue&&this.userId&&this.userId!==v.Undefined)}setScreen(ve){this.currentScreen=ve}getScreen(){return this.currentScreen}changeSync(ve){this.sync=ve}setDefaultClientConsent(ve){this.logger.event("Set client consent: ",ve),this.jsEventsService.setDefaultConsent(ve),this.defaultConsentListener$.next(!0)}setDeviceConsent(ve){this.logger.event("Set device consent: ",ve),this.jsEventsService.setDeviceConsent(ve),this.defaultConsentListener$.next(!0),this.deviceConsentListener$.next(!0)}setUserConsent(ve){this.logger.event("Set user consent: ",ve),this.jsEventsService.syncUserConsentInfo(ve)}getDefaultClientConsentObserable(){return this.defaultConsentListener$.pipe((0,dt.$)())}getDeviceConsentObservable(){return this.deviceConsentListener$.pipe((0,dt.$)())}getCommonDataObservable(){return this.commonDataListener$.pipe((0,dt.$)())}getValidUserIdResetObservable(){return this.validUserIdResetListener$.asObservable()}setServerConfig(ve){this.jsEventsService.updateServer(ve)}push(ve,ue,et){if(this.isUIRefreshed||this.isTelemetryDisabled)this.logger.info("Disabled telemetry",ve.name);else if(ve){if(et=(0,g.merge)({},et),et=(0,g.extend)(et,{appExit:this.sync}),ue&&ve.parameters.hasOwnProperty("totalMs")){const se=Date.now(),Ce=se-ue;this.logger.info("Started ",ve.name,"at ",ue,"and ended at ",se,"Time elapsed(ms)",Ce),ve.parameters=(0,g.merge)(ve.parameters,{totalMs:Ce})}this.logEvaluatorCallback(ve)&&this.logger.event("Event detail: ",ve),this.consentUpdatedPromise.then(()=>{this.logger.info("Sending event "+ve.name),this.jsEventsService.sendEventDetail(ve,et)})}else this.logger.error("Empty event.")}pushWithPromise(ve,ue,et){if(this.isUIRefreshed||this.isTelemetryDisabled)return this.logger.info("Disabled telemetry",ve.name),new Promise((se,Ce)=>{se("Disabled telemetry")});if(ve){if(et=(0,g.merge)({},et),et=(0,g.extend)(et,{appExit:this.sync}),ue&&ve.parameters.hasOwnProperty("totalMs")){const se=Date.now(),Ce=se-ue;this.logger.info("Started ",ve.name,"at ",ue,"and ended at ",se,"Time elapsed(ms)",Ce),ve.parameters=(0,g.merge)(ve.parameters,{totalMs:Ce})}return this.logEvaluatorCallback(ve)&&this.logger.event("Event detail: ",ve),new Promise(se=>{this.consentUpdatedPromise.then(()=>this.jsEventsService.sendEventDetailWithPromise(ve,et)).then(Ce=>{se(Ce)})})}return this.logger.error("Empty event."),new Promise((se,Ce)=>{Ce("Empty event.")})}static{this.\u0275fac=function(ue){return new(ue||J)(Qe.KVO(m.J6),Qe.KVO(m.NZ),Qe.KVO(Ke))}}static{this.\u0275prov=Qe.jDH({token:J,factory:J.\u0275fac,providedIn:"root"})}}return J})()},55808:(St,z,s)=>{"use strict";s.d(z,{W:()=>r});var i=s(80583),n=s(59859),h=s(43848),C=s(65706),S=s(91384),M=s(10174),P=s(14714),x=s(83915),A=s(20924),g=s(58527),m=s(92602),l=s(20812);let r=(()=>{class u{constructor(E,T,R){this.bridgeService=T,this.config=R,this.userIdChanged$=new i.B7,this.userConsentChanged$=new i.B7,this.privacySettingsConsentInfoChanged$=new i.B7,this.privacySettingsChanged$=new i.B7,this.logger=E.getLogger("nvapp/NvAccountInterfaceService"),this.initializeListenersForNvaccount()}updateUserInNvAccount(E,T){let R;if(E.isAuthenticated){const B={tokens:{accessToken:T.accessToken??"",clientToken:T.clientToken??"",identityToken:T.idToken??"",accessTokenExpiry:this.getDateInIsoFormat(T.accessTokenExpiry),clientTokenExpiry:this.getDateInIsoFormat(T.clientTokenExpiry),identityTokenExpiry:this.getDateInIsoFormat(T.idTokenExpiry),clientTokenValidityDurationMilliseconds:T.clientTokenExpiryLength},userAccount:{userId:{userId:E.sub,externalUserId:E.external_id,identityProviderId:E.idp_id},preferredUsername:E.preferred_username,consentLevel:{hasBehavioralConsent:E.consent.trackBehavioralData,hasFunctionalConsent:!0,hasTechnicalConsent:E.consent.trackTechnicalData}}};R=this.bridgeService.executeCommand(A.Ts.Common.Nvaccount.OnLogin,B)}else R=this.bridgeService.executeCommand(A.Ts.Common.Nvaccount.OnLogout,{});return R.pipe((0,C.s)(1),(0,S.M)(B=>{this.logger.info("NvAccount Update successful")}),(0,M.u)(!0),(0,P.W)(B=>{const U="Some error occurred while updating Nvaccount";return this.logger.error(U,B.message??""),(0,n.$)(U,B.message??"")}))}readUserFromNvAccount(){return this.bridgeService.executeCommand(A.Ts.Common.Nvaccount.GetUserAccount).pipe((0,x.T)(E=>(this.logger.info("Reading from nvaccount successful"),E)),(0,P.W)(E=>(this.logger.error("Some error occurred while reading from Nvaccount. ",E),(0,h.of)({}))))}getUserIdChangeNotification(){return this.userIdChanged$.asObservable()}getUserConsentChangeNotification(){return this.userConsentChanged$.asObservable()}getPrivacySettingsConsentInfoChangeNotification(){return this.privacySettingsConsentInfoChanged$.asObservable()}getPrivacySettingsChangedNotification(){return this.privacySettingsChanged$.asObservable()}initializeListenersForNvaccount(){this.registerPrivacySettingsConsentInfoChangedNotification(),this.registerPrivacySettingsChangedNotification(),this.config?.useNvAccountForUserConsent?(this.logger.info("Initialize Nvaccount"),this.registerForUserConsentChangeNotification(),this.registerForUserIdChangeNotification()):this.logger.info("The NvAccount plugin is currently disabled for the current client.")}getDateInIsoFormat(E){return new Date(E).toISOString().split(".")[0]+"Z"}registerForUserIdChangeNotification(){this.bridgeService.executeCommand(A.Ts.Common.Nvaccount.UserIdChangedNotification).subscribe(E=>{this.logger.info("Received UserId Change Notification"),this.userIdChanged$.next(E)},E=>{this.logger.error("Failed to get userId change response",E.message??"")})}registerForUserConsentChangeNotification(){this.bridgeService.executeCommand(A.Ts.Common.Nvaccount.UserConsentChangedNotification).subscribe(E=>{this.logger.info("Received UserConsent Change Notification"),this.userConsentChanged$.next(E)},E=>{this.logger.error("Failed to get userConsent change response",E.message??"")})}setAcceptedEULA(E){return this.bridgeService.executeCommand(A.Ts.Common.Nvaccount.SetEULAAccepted,{eulaText:E})}getEulaAccepted(E){return this.logger.info("Get EULA Acceptance status from NvAccount"),this.bridgeService.executeCommand(A.Ts.Common.Nvaccount.GetEULAAccepted,{eulaText:E})}setPrivacySettings(E){return this.logger.info("Setting privacy settings ",E),this.bridgeService.executeCommand(A.Ts.Common.Nvaccount.SetPrivacySettings,{privacySettings:E})}getPrivacySettings(){return this.logger.info("Getting privacy settings "),this.bridgeService.executeCommand(A.Ts.Common.Nvaccount.GetPrivacySettings)}getPrivacySettingsConsentInfo(){return this.logger.info("Getting privacy settings consent Info"),this.bridgeService.executeCommand(A.Ts.Common.Nvaccount.GetPrivacySettingsConsentInformation)}getUserAccountAndDeviceConsent(){return this.logger.info("Getting use account and device consent"),this.bridgeService.executeCommand(A.Ts.Common.Nvaccount.GetUserAccountAndDeviceConsent)}registerPrivacySettingsConsentInfoChangedNotification(){this.bridgeService.executeCommand(A.Ts.Common.Nvaccount.PrivacySettingsConsentInformationChangedNotification).subscribe(E=>{this.logger.info("Privacy settings consent info changed ",E),this.privacySettingsConsentInfoChanged$.next(E)},E=>{this.logger.error("Failed to get privacy settings consent info change response",E.message??"")})}registerPrivacySettingsChangedNotification(){this.bridgeService.executeCommand(A.Ts.Common.Nvaccount.PrivacySettingsChangedNotification).subscribe(E=>{this.logger.info("Privacy settings changed ",E),this.privacySettingsChanged$.next(E)},E=>{this.logger.error("Failed to get privacy settings change response",E.message??"")})}static{this.\u0275fac=function(T){return new(T||u)(g.KVO(m.J6),g.KVO(m.NZ),g.KVO(l.X$))}}static{this.\u0275prov=g.jDH({token:u,factory:u.\u0275fac,providedIn:"root"})}}return u})()},5798:(St,z,s)=>{"use strict";s.d(z,{fu:()=>u,SA:()=>E,sl:()=>B,t:()=>Y,jm:()=>r});var i=s(94485),n=s(40198),h=s(75707),C=s(83915),S=s(86447),M=s(80583),P=s(59859),x=s(3496),A=s(26875);const g={timeBetweenRetries:0,maxRetries:0,retryOnTimeout:!1,exponentialBackoffMaxDelay:3e4},m="TimeoutError";var r=function(ae){return ae[ae.UnknownError=0]="UnknownError",ae[ae.RequestTimeout=-100]="RequestTimeout",ae[ae.RequestCancelled=-101]="RequestCancelled",ae[ae.NetworkStatusOffline=-102]="NetworkStatusOffline",ae[ae.DNSLookupFailed=-103]="DNSLookupFailed",ae}(r||{});const u=36e5;var v=s(71152);const E={authorization:"Authorization",xRequestId:"x-request-id"};class B{static{this.httpErrorEventsSubject=new M.B7}static{this.httpSuccessEventsSubject=new M.B7}static{this.httpStartEventsSubject=new M.B7}static httpErrorEvents$(){return B.httpErrorEventsSubject.asObservable()}static httpSuccessEvents$(){return B.httpSuccessEventsSubject.asObservable()}static httpStartEvents$(){return B.httpStartEventsSubject.asObservable()}constructor(G,k,X={}){this.http=G,this.networkStatusService=k,this.configOptions=X,(0,A.isNil)(this.configOptions.config)&&(this.configOptions.config=g),(0,A.isNil)(this.configOptions.config.retryOnTimeout)&&(this.configOptions.config.retryOnTimeout=g.retryOnTimeout),(0,A.isNil)(this.configOptions.config.exponentialBackoffMaxDelay)&&(this.configOptions.config.exponentialBackoffMaxDelay=g.exponentialBackoffMaxDelay)}static replaceTemplateKey(G,k,X,q){let Q=G;if("string"==typeof X){const ce=":"+k;-1!==G.indexOf(ce)&&(Q=G.replace(new RegExp(ce,"g"),encodeURIComponent(X)),q(k))}return Q}static formatUrl(G,k){let X=G;return X=Object.keys(k).reduce((q,Q)=>B.replaceTemplateKey(q,Q,k[Q],ce=>delete k[ce]),X),X}static isRetryableError(G,k,X){let q=!0;return G instanceof i.yz?0!==G.status||X.isOnline?429===G.status?q=!0:0!==G.status&&(G.status<500||G.status>=600)&&(q=!1):q=!1:G instanceof Error&&G.name===m&&!k.retryOnTimeout&&(q=!1),q}static formatError(G,k,X,q){const Q=B.getFullUrl(G,k);let ce,te;X instanceof i.yz?(ce=X,te=X.status):X&&X.name===m&&(te=r.RequestTimeout);const Ee={url:Q,status:te,rawResponse:ce};return(0,A.isNil)(q.headers[E.xRequestId])||(Ee.xRequestId=q.headers[E.xRequestId]),Ee}static getFullUrl(G,k){const X=Object.keys(k);if(X.length>0){G+="?";for(const q of X)G+=`${q}=${k[q]}&`;G=G.substring(0,G.length-1)}return G}static applyTimeout(G,k){return(0,A.isNil)(k.timeout)?G:G.pipe((0,n.w)(k.timeout))}static isReportRequest(G){return(0,A.isNil)(G.reportRequest)||!0===G.reportRequest}genericRetryStrategy(G,k,X){return X.pipe((0,h.ZZ)((q,Q)=>{const ce=Q+1,te=B.formatError(G,k.params,q,k);if(B.isReportRequest(k)&&(k.reportRequestData={...k.reportRequestData,retryCount:String(ce)},B.httpErrorEventsSubject.next({response:te,options:k})),ce>k.config.maxRetries||!B.isRetryableError(q,k.config,this.networkStatusService))return(0,P.$)(te);let Ee;if(k.config.timeBetweenRetries)Ee=k.config.timeBetweenRetries;else{const it=k.config?.exponentialBackoffMaxDelay;Ee=1e3,ce>1&&(Ee=Math.min(1e3*Math.pow(2,ce-1),it))}if(q instanceof i.yz&&(429===q.status||503===q.status)){const it=+(q.headers.get("retry-after")||0);isNaN(it)||(Ee=Math.max(Ee,1e3*it))}return(0,x.O)(Ee)}))}initRequest(G,k){const X=k;return X.params={...this.configOptions.params,...k.params},X.headers={...this.configOptions.headers,...k.headers},X.config={...this.configOptions.config,...k.config},X.reportRequestData={...this.configOptions.reportRequestData,...k.reportRequestData},X.reportRequest=this.configOptions.reportRequest&&k.reportRequest,X.includeRequestId&&(X.headers[E.xRequestId]=(0,v.bz)()),[X,B.formatUrl(G,X.params)]}makeRequest(G,k,X={}){return this.makeRequestEx(G,k,X).pipe((0,C.T)(q=>X?.includeFullResponse?q:q.body))}get(G,k={}){return this.makeRequest("GET",G,k)}delete(G,k={}){return this.makeRequest("DELETE",G,k)}post(G,k={}){return this.makeRequest("POST",G,k)}patch(G,k={}){return this.makeRequest("PATCH",G,k)}put(G,k={}){return this.makeRequest("PUT",G,k)}makeRequestEx(G,k,X={}){const[q,Q]=this.initRequest(k,X);B.isReportRequest(q)&&B.httpStartEventsSubject.next({method:G,url:Q,options:q}),q.reportRequestData.requestStartTime=Date.now().toString();const ce=this.http.request(G,Q,{body:q.body,params:q.params,headers:q.headers,responseType:q.responseType,observe:"response",withCredentials:!!q.withCredentials&&q.withCredentials});return B.applyTimeout(ce,this.configOptions.config).pipe((0,S.l)(te=>this.genericRetryStrategy(Q,q,te)),(0,C.T)(te=>{const Ee=(0,A.extend)(te,{config:{data:q.body}});return q.reportRequestData.requestEndTime=Date.now().toString(),B.isReportRequest(q)&&"false"!==q.reportRequestData.reportSuccessTelemetry&&B.httpSuccessEventsSubject.next({response:Ee,options:q}),Ee}))}getResponse(G,k={}){return this.makeRequestEx("GET",G,k)}}var U=s(58527);let Y=(()=>{class ae{constructor(k,X){this.http=k,this.networkStatusService=X}createEndpoint(k){return new B(this.http,this.networkStatusService,k)}static{this.\u0275fac=function(X){return new(X||ae)(U.KVO(i.Qq),U.KVO(v.A5))}}static{this.\u0275prov=U.jDH({token:ae,factory:ae.\u0275fac,providedIn:"root"})}}return ae})()},17669:(St,z,s)=>{"use strict";s.d(z,{FY:()=>h,PK:()=>i,qW:()=>n});var i=function(S){return S.Space="Space",S.CapsLock="CapsLock",S.Backspace="Backspace",S.ArrowLeft="ArrowLeft",S.ArrowRight="ArrowRight",S.Enter="Enter",S.Escape="Escape",S.PrimaryType="abc",S.SecondaryType="*&$",S}(i||{}),n=function(S){return S[S.Off=0]="Off",S[S.Once=1]="Once",S[S.Always=2]="Always",S}(n||{});const h=new Map([[["0",")"],"Digit0"],[["1","!"],"Digit1"],[["2","@"],"Digit2"],[["3","#"],"Digit3"],[["4","$"],"Digit4"],[["5","%"],"Digit5"],[["6","^"],"Digit6"],[["7","&"],"Digit7"],[["8","*"],"Digit8"],[["9","("],"Digit9"],[[";",":"],"Semicolon"],[["/","?"],"Slash"],[["`","~"],"Backquote"],[["[","{"],"BracketLeft"],[["\\","|"],"Backslash"],[["]","}"],"BracketRight"],[["'",'"'],"Quote"],[[".",">"],"Period"],[[",","<"],"Comma"],[["-","_"],"Minus"],[["=","+"],"Equal"]])},56315:(St,z,s)=>{"use strict";s.d(z,{i1:()=>ye,PK:()=>l.PK,v$:()=>dn,RF:()=>Y});var i=s(61142),n=s(47973),h=s(29370),C=s(80583),S=s(16229),M=s(36877),P=s(28653),x=s(83915),A=s(4208),g=s(58108),m=s(51040),l=s(17669),r=s(58527),u=s(61904),v=s(76614),E=s(51006),T=s(96542),R=s(3457);let B=(()=>{class yn{static{this.\u0275fac=function(Qt){return new(Qt||yn)}}static{this.\u0275cmp=r.VBU({type:yn,selectors:[["nv-keyboard-hint"]],standalone:!0,features:[r.aNF],decls:6,vars:3,consts:[["fxLayout","row","fxLayoutAlign","start center"],[1,"fab-hint"]],template:function(Qt,Jt){1&Qt&&(r.j41(0,"div",0)(1,"div",1),r.EFF(2,"Y"),r.k0s(),r.j41(3,"p"),r.EFF(4),r.nI1(5,"translate"),r.k0s()()),2&Qt&&(r.R7$(4),r.JRh(r.bMT(5,1,Jt.hint)))},dependencies:[E.YF,R.DJ,R.sA,T.h,T.D9],styles:[".fab-hint[_ngcontent-%COMP%]{--font-header-font-size: 18px;--font-header-line-height: 64px;font-family:NVIDIA,sans-serif;color:var(--hig-ui-text-primary-color);font-style:normal;text-transform:none;font-size:var(--font-header-font-size);line-height:var(--font-header-line-height);letter-spacing:0;font-weight:700;display:flex;background-color:#0b8abc;border-radius:50%;color:#fff;justify-content:center;align-items:center;width:64px;height:64px}.tv-view[_ngcontent-%COMP%] .fab-hint[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .fab-hint[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .fab-hint[_ngcontent-%COMP%]{--font-header-font-size: 36px;--font-header-line-height: 128px}.isLtr[_nghost-%COMP%] .fab-hint[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .fab-hint[_ngcontent-%COMP%]{margin-right:16px}html[dir=ltr][_ngcontent-%COMP%] .fab-hint[_ngcontent-%COMP%]{--dummy4: 0;margin-right:16px}.isRtl[_nghost-%COMP%] .fab-hint[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .fab-hint[_ngcontent-%COMP%]{margin-left:16px}html[dir=rtl][_ngcontent-%COMP%] .fab-hint[_ngcontent-%COMP%]{--dummy4: 0;margin-left:16px}p[_ngcontent-%COMP%]{--font-header-font-size: 20px;--font-header-line-height: 23px;font-family:NVIDIA,sans-serif;color:var(--hig-ui-text-primary-color);font-style:normal;text-transform:none;font-size:var(--font-header-font-size);line-height:var(--font-header-line-height);letter-spacing:0;font-weight:400;white-space:nowrap;margin:0}.tv-view[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] p[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] p[_ngcontent-%COMP%]{--font-header-font-size: 40px;--font-header-line-height: 46px}"]})}}return yn})();var U=s(16490);let Y=(()=>{class yn{get enabled(){return this._enabled}set enabled(Vt){this._enabled=Vt}get onInput$(){return this.onInput.asObservable()}constructor(Vt,Qt){this.matBottomSheet=Vt,this.overlay=Qt,this.onInput=new C.B7,this.shiftKeyPressed=!1,this._enabled=!1}open(){if(!this.enabled)throw new Error("NvKeyboard is not enabled");return this.matBottomSheet.open(fe,{panelClass:["nv-hig","nv-keyboard"],hasBackdrop:!1,disableClose:!1,autoFocus:!1,restoreFocus:!1})}sendShiftKeyEvent(Vt,Qt){this.onInput.next(new KeyboardEvent(Vt,{key:"Shift",code:"ShiftLeft",shiftKey:Qt,view:window,bubbles:!0,cancelable:!0}))}needShiftKey(Vt){return'!@#$%^&*()~_+{}|:"<>?'.includes(Vt)}sendInput(Vt){if(!this.enabled)throw new Error("NvKeyboard is not enabled");const Qt=this.needShiftKey(Vt.key);Qt&&!this.shiftKeyPressed&&"keydown"===Vt.type&&(this.shiftKeyPressed=!0,this.sendShiftKeyEvent(Vt.type,!0)),this.onInput.next(Vt),Qt&&this.shiftKeyPressed&&"keyup"===Vt.type&&(this.shiftKeyPressed=!1,this.sendShiftKeyEvent(Vt.type,!1))}createHintOverlay(Vt){const Jt=this.overlay.position().flexibleConnectedTo(Vt).withPositions([{originX:"center",originY:"bottom",overlayX:"center",overlayY:"top",offsetY:24}]),Zt=this.overlay.create(new u.rR({positionStrategy:Jt})),nn=Zt.attach(new v.A8(B)).instance;return{updateHint:Xt=>nn.hint=Xt,dispose:()=>Zt.dispose()}}static{this.\u0275fac=function(Qt){return new(Qt||yn)(r.KVO(U.VK),r.KVO(u.hJ))}}static{this.\u0275prov=r.jDH({token:yn,factory:yn.\u0275fac,providedIn:"root"})}}return yn})();const ae=["container"],G=(yn,At)=>({"caps-lock-always":yn,"caps-lock-once":At}),k=()=>["1","2","3","4","5","6","7","8","9","0"],X=yn=>({keys:yn}),q=()=>["q","w","e","r","t","y","u","i","o","p"],Q=()=>["a","s","d","f","g","h","j","k","l","@"],ce=()=>["z","x","c","v","b","n","m",",",".","?"],te=yn=>({text:yn}),Ee=()=>["`","~","!","@","#","$","%","^","&","*"],it=()=>["=","+","(",")","[","]","{","}","-","_"],Fe=()=>["\xa3","\u20ac","'",'"',"|",";",":",",",".","?"],Qe=()=>["\u2122","\xa9","\xa2","\xa5","\xa1","\xbf","<",">","\\","/"],ct=yn=>({name:yn,svgIcon:"space_bar"}),Ge=(yn,At)=>({text:yn,key:At,class:"text-capitalize"}),nt=(yn,At,Vt)=>({key:yn,class:"caps-lock-button",name:At,svgIcon:Vt}),Je=yn=>({name:yn,svgIcon:"keyboard_arrow_left"}),ze=yn=>({name:yn,svgIcon:"keyboard_arrow_right"}),Ke=(yn,At)=>({name:yn,key:At,svgIcon:"backspace"}),Ve=yn=>({name:yn,text:"Hide",class:"text-capitalize"}),$e=(yn,At)=>({text:yn,key:At,class:"text-lower-case"});function dt(yn,At){if(1&yn&&(r.qex(0),r.j41(1,"tr",null,11),r.eu8(3,14),r.j41(4,"td",15),r.eu8(5,16),r.k0s()(),r.j41(6,"tr"),r.eu8(7,14),r.j41(8,"td",17),r.eu8(9,16),r.k0s(),r.j41(10,"td",17),r.eu8(11,16),r.k0s()(),r.j41(12,"tr"),r.eu8(13,14),r.j41(14,"td",18),r.eu8(15,16),r.k0s()(),r.j41(16,"tr"),r.eu8(17,14),r.k0s(),r.j41(18,"tr")(19,"td",17),r.eu8(20,16),r.k0s(),r.j41(21,"td",19),r.eu8(22,16),r.k0s(),r.j41(23,"td",17),r.eu8(24,14),r.k0s(),r.j41(25,"td",20),r.eu8(26,16),r.k0s()(),r.bVm()),2&yn){const Vt=r.XpG(),Qt=r.sdS(5),Jt=r.sdS(9),Zt=r.sdS(11),nn=r.sdS(13),Xt=r.sdS(15),lt=r.sdS(17),Ue=r.sdS(19),wt=r.sdS(21),gt=r.sdS(23);r.R7$(3),r.Y8G("ngTemplateOutlet",Qt)("ngTemplateOutletContext",r.eq3(18,X,r.lJ4(17,k))),r.R7$(2),r.Y8G("ngTemplateOutlet",Ue),r.R7$(2),r.Y8G("ngTemplateOutlet",Qt)("ngTemplateOutletContext",r.eq3(21,X,r.lJ4(20,q))),r.R7$(2),r.Y8G("ngTemplateOutlet",Xt),r.R7$(2),r.Y8G("ngTemplateOutlet",lt),r.R7$(2),r.Y8G("ngTemplateOutlet",Qt)("ngTemplateOutletContext",r.eq3(24,X,r.lJ4(23,Q))),r.R7$(2),r.Y8G("ngTemplateOutlet",Zt),r.R7$(2),r.Y8G("ngTemplateOutlet",Qt)("ngTemplateOutletContext",r.eq3(27,X,r.lJ4(26,ce))),r.R7$(3),r.Y8G("ngTemplateOutlet",nn),r.R7$(2),r.Y8G("ngTemplateOutlet",Jt),r.R7$(2),r.Y8G("ngTemplateOutlet",gt)("ngTemplateOutletContext",r.eq3(29,te,Vt.inputSymbol.SecondaryType)),r.R7$(2),r.Y8G("ngTemplateOutlet",wt)}}function Pe(yn,At){if(1&yn&&(r.qex(0),r.j41(1,"tr"),r.eu8(2,14),r.j41(3,"td",15),r.eu8(4,16),r.k0s()(),r.j41(5,"tr"),r.eu8(6,14),r.j41(7,"td",17),r.eu8(8,16),r.k0s(),r.j41(9,"td",17),r.eu8(10,16),r.k0s()(),r.j41(11,"tr"),r.eu8(12,14),r.j41(13,"td",18),r.eu8(14,16),r.k0s()(),r.j41(15,"tr"),r.eu8(16,14),r.k0s(),r.j41(17,"tr")(18,"td",17),r.eu8(19,16),r.k0s(),r.j41(20,"td",19),r.eu8(21,16),r.k0s(),r.j41(22,"td",17),r.eu8(23,14),r.k0s(),r.j41(24,"td",20),r.eu8(25,16),r.k0s()(),r.bVm()),2&yn){const Vt=r.XpG(),Qt=r.sdS(5),Jt=r.sdS(9),Zt=r.sdS(11),nn=r.sdS(13),Xt=r.sdS(15),lt=r.sdS(17),Ue=r.sdS(19),wt=r.sdS(21),gt=r.sdS(23);r.R7$(2),r.Y8G("ngTemplateOutlet",Qt)("ngTemplateOutletContext",r.eq3(18,X,r.lJ4(17,Ee))),r.R7$(2),r.Y8G("ngTemplateOutlet",Ue),r.R7$(2),r.Y8G("ngTemplateOutlet",Qt)("ngTemplateOutletContext",r.eq3(21,X,r.lJ4(20,it))),r.R7$(2),r.Y8G("ngTemplateOutlet",Xt),r.R7$(2),r.Y8G("ngTemplateOutlet",lt),r.R7$(2),r.Y8G("ngTemplateOutlet",Qt)("ngTemplateOutletContext",r.eq3(24,X,r.lJ4(23,Fe))),r.R7$(2),r.Y8G("ngTemplateOutlet",Zt),r.R7$(2),r.Y8G("ngTemplateOutlet",Qt)("ngTemplateOutletContext",r.eq3(27,X,r.lJ4(26,Qe))),r.R7$(3),r.Y8G("ngTemplateOutlet",nn),r.R7$(2),r.Y8G("ngTemplateOutlet",Jt),r.R7$(2),r.Y8G("ngTemplateOutlet",gt)("ngTemplateOutletContext",r.eq3(29,te,Vt.inputSymbol.PrimaryType)),r.R7$(2),r.Y8G("ngTemplateOutlet",wt)}}function J(yn,At){if(1&yn&&(r.qex(0),r.j41(1,"td")(2,"button",22),r.EFF(3),r.k0s()(),r.bVm()),2&yn){const Vt=At.$implicit;r.R7$(2),r.FS9("name",Vt),r.R7$(),r.JRh(Vt)}}function vt(yn,At){1&yn&&r.DNE(0,J,4,2,"ng-container",21),2&yn&&r.Y8G("ngForOf",At.keys)}function ve(yn,At){if(1&yn&&(r.j41(0,"div",26),r.EFF(1),r.k0s()),2&yn){const Vt=r.XpG().key;r.R7$(),r.JRh(Vt)}}function ue(yn,At){if(1&yn&&r.nrm(0,"mat-icon",27),2&yn){const Vt=r.XpG().svgIcon;r.Y8G("svgIcon",Vt)}}function et(yn,At){if(1&yn&&(r.j41(0,"div",23),r.DNE(1,ve,2,1,"div",24),r.j41(2,"button",22),r.EFF(3),r.DNE(4,ue,1,1,"mat-icon",25),r.k0s()()),2&yn){let Vt;const Qt=At.key,Jt=At.svgIcon,Zt=At.text,nn=At.name,Xt=At.class;r.R7$(),r.Y8G("ngIf",Qt),r.R7$(),r.HbH(Xt),r.FS9("name",null!==(Vt=nn)&&void 0!==Vt?Vt:Zt),r.R7$(),r.SpI(" ",Zt," "),r.R7$(),r.Y8G("ngIf",Jt)}}function se(yn,At){if(1&yn&&r.eu8(0,14),2&yn){const Vt=r.XpG(),Qt=r.sdS(7);r.Y8G("ngTemplateOutlet",Qt)("ngTemplateOutletContext",r.eq3(2,ct,Vt.inputSymbol.Space))}}function Ce(yn,At){if(1&yn&&r.eu8(0,14),2&yn){const Vt=r.XpG(),Qt=r.sdS(7);r.Y8G("ngTemplateOutlet",Qt)("ngTemplateOutletContext",r.l_i(2,Ge,Vt.inputSymbol.Enter,Vt.gamepadKey.LT))}}function be(yn,At){if(1&yn&&r.eu8(0,14),2&yn){const Vt=r.XpG(),Qt=r.sdS(7);r.Y8G("ngTemplateOutlet",Qt)("ngTemplateOutletContext",r.sMw(2,nt,Vt.gamepadKey.LB,Vt.inputSymbol.CapsLock,Vt.capsLockOff?"thick_arrow_up":"thick_arrow_dash_up"))}}function rt(yn,At){if(1&yn&&r.eu8(0,14),2&yn){const Vt=r.XpG(),Qt=r.sdS(7);r.Y8G("ngTemplateOutlet",Qt)("ngTemplateOutletContext",r.eq3(2,Je,Vt.inputSymbol.ArrowLeft))}}function me(yn,At){if(1&yn&&r.eu8(0,14),2&yn){const Vt=r.XpG(),Qt=r.sdS(7);r.Y8G("ngTemplateOutlet",Qt)("ngTemplateOutletContext",r.eq3(2,ze,Vt.inputSymbol.ArrowRight))}}function le(yn,At){if(1&yn&&r.eu8(0,14),2&yn){const Vt=r.XpG(),Qt=r.sdS(7);r.Y8G("ngTemplateOutlet",Qt)("ngTemplateOutletContext",r.l_i(2,Ke,Vt.inputSymbol.Backspace,Vt.gamepadKey.X))}}function Xe(yn,At){if(1&yn&&r.eu8(0,14),2&yn){const Vt=r.XpG(),Qt=r.sdS(7);r.Y8G("ngTemplateOutlet",Qt)("ngTemplateOutletContext",r.eq3(2,Ve,Vt.inputSymbol.Escape))}}function Se(yn,At){if(1&yn&&r.eu8(0,14),2&yn){const Vt=At.text,Qt=r.XpG(),Jt=r.sdS(7);r.Y8G("ngTemplateOutlet",Jt)("ngTemplateOutletContext",r.l_i(2,$e,Vt,Qt.gamepadKey.RB))}}let fe=(()=>{class yn{get capsLockAlways(){return this.capsLockState===l.qW.Always}get capsLockOnce(){return this.capsLockState===l.qW.Once}get capsLockOff(){return this.capsLockState===l.qW.Off}constructor(Vt,Qt,Jt){this.focusManager=Vt,this.nvKeyboardService=Qt,this.gamepadService=Jt,this.primaryType=!0,this.inputSymbol=l.PK,this.gamepadKey={X:"X",LT:"LT",LB:"LB",RB:"RB"},this.capsLockState=l.qW.Off,this.destroy$=new C.B7,this.pressedKeys=new Set}ngAfterViewInit(){const Vt=(Jt,Zt,nn)=>this.gamepadService.onButtonPressed$(Jt,nn).pipe((0,P.j)(Xt=>!Xt),(0,x.T)(Xt=>[Zt,Xt]));let Qt;(0,S.h)(Vt(m.dt.X,l.PK.Backspace,{repeat:!0}),Vt(m.dt.LeftTrigger,l.PK.Enter,{repeat:!0}),Vt(m.dt.LeftBumper,l.PK.CapsLock),Vt(m.dt.RightBumper,l.PK.PrimaryType),Vt(m.dt.B,l.PK.Escape)).pipe((0,A.Q)(this.destroy$)).subscribe(([Jt,Zt])=>{this.processEvent(this.newKeyboardEvent(Zt?"keydown":"keyup",Jt))}),(0,S.h)((0,M.R)(this.container.nativeElement,"mousedown"),(0,M.R)(this.container.nativeElement,"mouseup")).pipe((0,A.Q)(this.destroy$)).subscribe(Jt=>{if(Jt.target instanceof HTMLButtonElement){const Zt="mousedown"===Jt.type?"keydown":"keyup";Jt.preventDefault(),("keydown"===Zt||Jt.target===Qt)&&this.processEvent(this.newKeyboardEvent(Zt,Jt.target.name)),Qt=Jt.target}}),this.focusCentralButton()}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}toggleKeyboardType(){this.primaryType=!this.primaryType,this.focusCentralButton()}focusCentralButton(){setTimeout(()=>{const Vt=this.container.nativeElement,Qt=Vt.rows[Math.floor(Vt.rows.length/2)],Jt=Qt.cells[Math.floor(Qt.cells.length/2)];this.focusManager.focusChild(Jt,"initial")})}toggleCapsLock(){this.capsLockState=this.capsLockOff?l.qW.Once:this.capsLockOnce?l.qW.Always:l.qW.Off}escapeKeyDown(Vt){Vt.stopPropagation()}keyDown(Vt){Vt.isTrusted?(this.nvKeyboardService.sendInput(Vt),(Vt.key.includes("Arrow")||"Tab"===Vt.key)&&Vt.preventDefault()):Vt.target instanceof HTMLButtonElement&&"Enter"===Vt.key&&(this.processEvent(Vt,Vt.target.name),this.lastKeydownEvent=Vt)}keyUp(Vt){Vt.isTrusted?this.nvKeyboardService.sendInput(Vt):Vt.target instanceof HTMLButtonElement&&"Enter"===Vt.key&&(this.processEvent(Vt,Vt.target.name),this.lastKeydownEvent?.target===Vt.target&&(this.lastKeydownEvent=void 0))}focusOut(){this.lastKeydownEvent?.target instanceof HTMLButtonElement&&(this.processEvent(this.lastKeydownEvent,this.lastKeydownEvent.target.name,"keyup"),this.lastKeydownEvent=void 0)}processEvent(Vt,Qt,Jt){const Zt=Qt??Vt.key,nn=this.newKeyboardEvent(Jt??Vt.type,Zt),Xt=1===Zt.length,lt="keyup"===nn.type;Zt===l.PK.PrimaryType||Zt===l.PK.SecondaryType?lt&&this.toggleKeyboardType():Zt===l.PK.CapsLock?lt&&this.toggleCapsLock():Xt?(this.nvKeyboardService.sendInput(nn),this.capsLockOnce&&(this.capsLockState=l.qW.Off)):this.nvKeyboardService.sendInput(nn)}getKeyCode(Vt){for(const[Jt,Zt]of l.FY.entries())if(Jt.includes(Vt))return Zt;return[l.PK.Escape,l.PK.Backspace,l.PK.ArrowLeft,l.PK.ArrowRight,l.PK.Enter,l.PK.Space,l.PK.CapsLock].includes(Vt)?Vt:1===Vt.length&&/^[A-Za-z]+$/.test(Vt)?"Key"+Vt.toUpperCase():void 0}newKeyboardEvent(Vt,Qt){const Jt=this.nvKeyboardService.needShiftKey(Qt);let Zt=!1;const nn=this.pressedKeys.has(Qt);return"keydown"===Vt?(nn||this.pressedKeys.add(Qt),Zt="Shift"!==Qt&&nn):"keyup"===Vt&&nn&&this.pressedKeys.delete(Qt),new KeyboardEvent(Vt,{key:Qt,code:this.getKeyCode(Qt),shiftKey:Jt,repeat:Zt,modifierCapsLock:!this.capsLockOff,view:window,bubbles:!0,cancelable:!0})}static{this.\u0275fac=function(Qt){return new(Qt||yn)(r.rXU(g.c_),r.rXU(Y),r.rXU(m.bi))}}static{this.\u0275cmp=r.VBU({type:yn,selectors:[["nv-keyboard"]],viewQuery:function(Qt,Jt){if(1&Qt&&r.GBs(ae,5),2&Qt){let Zt;r.mGM(Zt=r.lsd())&&(Jt.container=Zt.first)}},hostBindings:function(Qt,Jt){1&Qt&&r.bIt("keydown.escape",function(nn){return Jt.escapeKeyDown(nn)})("keydown",function(nn){return Jt.keyDown(nn)})("keyup",function(nn){return Jt.keyUp(nn)})("focusout",function(){return Jt.focusOut()})},standalone:!0,features:[r.aNF],decls:24,vars:6,consts:[["container",""],["keyList",""],["composite",""],["spaceBar",""],["enter",""],["capsLock",""],["arrowLeft",""],["arrowRight",""],["backspace",""],["hide",""],["keyboardType",""],["row1",""],["nvTrapFocus","","nvSpatialNavigationContainer","",3,"ngClass"],[4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["colspan","4",1,"top-right-cell"],[3,"ngTemplateOutlet"],["colspan","2"],["rowspan","2","colspan","4"],["colspan","6"],["colspan","4"],[4,"ngFor","ngForOf"],["mat-button","",3,"name"],[1,"key-container"],["class","keypad-circle",4,"ngIf"],[3,"svgIcon",4,"ngIf"],[1,"keypad-circle"],[3,"svgIcon"]],template:function(Qt,Jt){1&Qt&&(r.j41(0,"table",12,0),r.DNE(2,dt,27,31,"ng-container",13)(3,Pe,26,31,"ng-container",13),r.k0s(),r.DNE(4,vt,1,1,"ng-template",null,1,r.C5r)(6,et,5,7,"ng-template",null,2,r.C5r)(8,se,1,4,"ng-template",null,3,r.C5r)(10,Ce,1,5,"ng-template",null,4,r.C5r)(12,be,1,6,"ng-template",null,5,r.C5r)(14,rt,1,4,"ng-template",null,6,r.C5r)(16,me,1,4,"ng-template",null,7,r.C5r)(18,le,1,5,"ng-template",null,8,r.C5r)(20,Xe,1,4,"ng-template",null,9,r.C5r)(22,Se,1,5,"ng-template",null,10,r.C5r)),2&Qt&&(r.Y8G("ngClass",r.l_i(3,G,Jt.capsLockAlways,Jt.capsLockOnce)),r.R7$(2),r.Y8G("ngIf",Jt.primaryType),r.R7$(),r.Y8G("ngIf",!Jt.primaryType))},dependencies:[i.bT,i.YU,i.T3,n.wG,n.iV,h.m_,h.An,g.D2,g.RM],styles:['table[_ngcontent-%COMP%]{width:100vw;height:23.4vw;border-spacing:0;direction:ltr}table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{height:20%}table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:0}table[_ngcontent-%COMP%] td.top-right-cell[_ngcontent-%COMP%]{width:20%}table[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{display:flex;width:100%;height:100%;font-size:max(1.5vw,14px);font-weight:400;text-transform:lowercase;place-content:center;align-items:center;border:1px solid rgba(0,0,0,.5);background-color:#29292980}table[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{display:flex;width:unset;height:unset;font-size:max(1.5vw,14px)}table[_ngcontent-%COMP%] button.text-capitalize[_ngcontent-%COMP%]{text-transform:capitalize}table[_ngcontent-%COMP%] button.cdk-keyboard-focused[_ngcontent-%COMP%], table[_ngcontent-%COMP%] button.cdk-program-focused[_ngcontent-%COMP%]{border:1px solid #ffffff}table[_ngcontent-%COMP%] .key-container[_ngcontent-%COMP%]{position:relative;height:100%}table[_ngcontent-%COMP%] .key-container[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{width:max(1.5vw,14px)}table[_ngcontent-%COMP%] .key-container[_ngcontent-%COMP%] .caps-lock-button[_ngcontent-%COMP%]:before{position:absolute;background-color:#fff;border-radius:50%;width:calc(max(1.5vw,14px)/2);height:calc(max(1.5vw,14px)/2);top:10px;left:10px;content:""}table[_ngcontent-%COMP%] .key-container[_ngcontent-%COMP%] .keypad-circle[_ngcontent-%COMP%]{display:table-cell;position:absolute;background-color:#0b8abc;width:max(1.5vw,14px);height:max(1.5vw,14px);border-radius:50%;line-height:max(1.5vw,14px);font-size:max(.8vw,6px);color:#fff;text-align:center;vertical-align:middle;top:calc(50% - (max(1.5vw,14px)/2));right:10px;z-index:1;pointer-events:none}table.caps-lock-always[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:not(.text-capitalize):not(.text-lower-case), table.caps-lock-once[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:not(.text-capitalize):not(.text-lower-case){text-transform:uppercase}table.caps-lock-always[_ngcontent-%COMP%]:not(.caps-lock-once) .key-container[_ngcontent-%COMP%] .caps-lock-button[_ngcontent-%COMP%]:before, table.caps-lock-once[_ngcontent-%COMP%]:not(.caps-lock-once) .key-container[_ngcontent-%COMP%] .caps-lock-button[_ngcontent-%COMP%]:before{background-color:#76b900}']})}}return yn})();var ye=function(yn){return yn.SystemKeyboard="keyboardType.system",yn.AppKeyboard="keyboardType.app",yn}(ye||{}),Ot=s(6364),sn=s(92602);let dn=(()=>{class yn{get caretEnabled(){return this._caretEnabled}set caretEnabled(Vt){this._caretEnabled=(0,Ot.he)(Vt),this._caretEnabled?(this.initCaret(),setTimeout(()=>this.moveCaret())):this.stopCaret()}constructor(Vt,Qt,Jt){this.render=Qt,this.localeService=Jt,this._caretEnabled=!1,this.destroy$=new C.B7,this.blinkingInterval=1e3,this.inputElement=Vt.nativeElement}initCaret(){const Vt=getComputedStyle(this.inputElement),Qt=Vt.getPropertyValue("font-size"),Jt=Vt.getPropertyValue("padding-left"),Zt=Vt.getPropertyValue("caret-color"),nn=parseInt(Jt,10),Xt=parseInt(Qt,10)+nn;this.subTextElement=this.render.createElement("div"),this.render.setStyle(this.subTextElement,"visibility","hidden"),this.render.setStyle(this.subTextElement,"width","fit-content"),this.render.setStyle(this.subTextElement,"position","fixed"),this.render.setStyle(this.subTextElement,"font-size",Qt),this.inputElementParent=this.inputElement.parentElement,this.inputElementParent.appendChild(this.subTextElement),this.caretElement=this.render.createElement("div"),this.render.setStyle(this.caretElement,"position","absolute"),this.render.setStyle(this.caretElement,"width","1px"),this.render.setStyle(this.caretElement,"height",`${Xt}px`),this.render.setStyle(this.caretElement,this.localeService.isRTLLayoutEnabled?"border-right":"border-left",`1px solid ${Zt}`),this.render.setStyle(this.caretElement,"opacity","0"),this.inputElementParent.appendChild(this.caretElement);const Ue=this.inputElement.getBoundingClientRect(),wt=this.inputElementParent.getBoundingClientRect();this.caretOffset={x:(this.localeService.isRTLLayoutEnabled?Ue.right:Ue.left)-(this.localeService.isRTLLayoutEnabled?wt.right:wt.left)+nn,y:(Ue.height-Xt)/2},this.caretAnimation=this.caretElement.animate([{opacity:"0"},{opacity:"1"}],{duration:this.blinkingInterval,iterations:1/0,easing:"steps(2, end)"});const bn=this.inputElement.value.length;this.inputElement.setSelectionRange(bn,bn),(0,S.h)((0,M.R)(this.inputElement,"input"),(0,M.R)(window,"resize")).pipe((0,A.Q)(this.destroy$)).subscribe(()=>{this.moveCaret()})}moveCaret(){this.subTextElement&&(this.subTextElement.innerHTML=this.inputElement.value.substring(0,this.inputElement.selectionStart).replace(/\s/g,"\xa0"),this.animateCaret(this.subTextElement.clientWidth<this.inputElement.getBoundingClientRect().width),this.render.setStyle(this.caretElement,"transform",`translate(${this.subTextElement.clientWidth*(this.localeService.isRTLLayoutEnabled?-1:1)+this.caretOffset.x}px, ${this.caretOffset.y}px)`))}animateCaret(Vt){"running"===this.caretAnimation.playState!==Vt&&(Vt?this.caretAnimation.play():this.caretAnimation.cancel())}stopCaret(){this.caretAnimation?.cancel(),this.subTextElement&&(this.inputElementParent.removeChild(this.subTextElement),this.subTextElement=void 0),this.caretElement&&(this.inputElementParent.removeChild(this.caretElement),this.caretElement=void 0)}ngOnDestroy(){this.stopCaret(),this.destroy$.next(!0),this.destroy$.complete()}static{this.\u0275fac=function(Qt){return new(Qt||yn)(r.rXU(r.aKT),r.rXU(r.sFG),r.rXU(sn.iH))}}static{this.\u0275dir=r.FsC({type:yn,selectors:[["input","nvCaret",""]],inputs:{caretEnabled:[r.Mj6.None,"nvCaret","caretEnabled"]},standalone:!0})}}return yn})()},3135:(St,z,s)=>{"use strict";s.d(z,{T:()=>u});var i=s(70650),n=s(26513),h=s(19392),C=s(8619),S=s(65706),M=s(26875),x=s(78812),A=s(92602),g=s(80732),m=s(50088),l=s(58527),r=s(89463);let u=(()=>{class v{constructor(T,R,B,U,Y){this.config=R,this.systemInfoService=B,this.localeService=U,this.injector=Y,this.logger=T.getLogger("crimson/sdk/gfwsl/GfwslParamsService"),this.config.includedParams=this.config.includedParams||g.Pg,this.params={gcV:this.config.appVersion},this.hasGeneralSystemInfo=!1,this.hasGenericSystemInfo=!1,this.hasGpuInfo=!1,this.hasLocaleInfo=!1,this.hasUserInfo=!1,this.hasGeoInfo=!1,this.gfwslParamsUpdated$=new n.t(this.getParamEventData(g.dp.Init))}digestMessage(T){return(0,i.A)(function*(){const R=(new TextEncoder).encode(T),B=yield crypto.subtle.digest("SHA-256",R);return Array.from(new Uint8Array(B)).map(ae=>ae.toString(16).padStart(2,"0")).join("")})()}getParamEventData(T){return{type:T,hasSystemInfo:this.isSystemInfoComplete(),hasLocaleInfo:this.hasLocaleInfo,hasUserInfo:this.hasUserInfo,hasGeoInfo:this.hasGeoInfo,params:this.params}}isSystemInfoComplete(){return this.hasGeneralSystemInfo&&this.config.includedParams.additionalHwInfo===this.hasGenericSystemInfo&&this.config.includedParams.additionalHwInfo===this.hasGpuInfo}get gfwslParamsUpdated(){return this.gfwslParamsUpdated$}initialize(){this.processSystemInfo(),this.processLocaleInfo(),this.config.includedParams.additionalHwInfo&&(this.hardwareService=this.injector.get(A.SQ),this.hardwareService||this.logger.error("ERROR:: Failed to obtain HardwareInformationService"),this.processGenericInfo(),this.processGpuInfo()),this.config.includedParams.geo&&this.initGeoService(),(0,h.H)(this.digestMessage(this.config.userAgent+"/"+this.params.gcV)).subscribe(T=>{this.params.aiD=T})}onAccountStatusChanged(T,R,B,U,Y){this.params.jUid=R?btoa(T):T,this.hasUserInfo=R,this.params.uCst=[B===x.Rg.Full?g.Hr.Enabled:g.Hr.Disabled,U===x.Rg.Full?g.Hr.Enabled:g.Hr.Disabled,Y===x.Rg.Full?g.Hr.Enabled:g.Hr.Disabled],this.gfwslParamsUpdated$.next(this.getParamEventData(g.dp.User))}onGfwslParamsReady(T=g.sP){return this.gfwslParamsUpdated$.pipe((0,C.p)(R=>this.checkAvailableGfwslParams(T,R)),(0,S.s)(1))}initGeoService(){this.processGeoInfo()}checkAvailableGfwslParams(T,R){for(const B of Object.keys(T))if(T[B]!==R[B])return!1;return!0}processSystemInfo(){this.systemInfoService.getSystemInfo([A.Lu.OSName,A.Lu.OSVersion,A.Lu.ProcessorArchitecture,A.Lu.UserDefaultUILanguage,A.Lu.PhysicalMemoryCapacity]).subscribe(T=>{this.params.is6=T.ProcessorArchitecture===g.el?g.Hr.Enabled:g.Hr.Disabled,({ProcessorArchitecture:this.params.pArch,CPUName:this.params.cID}=T),[this.params.osC,this.params.osB]=this.getOSInfo(T.OSName,T.OSVersion),this.params.sM=this.computeMemory(T),this.params.IsB=g.Hr.Disabled,this.params.gIsB=g.Hr.Disabled,this.params.apRT="802.11a",this.userDefaultUILanguage=T.UserDefaultUILanguage,this.params.sdWmfp=g.Hr.Enabled,this.params.O=`${this.params.pArch}/${this.params.osC}`,this.hasGeneralSystemInfo=!0,this.gfwslParamsUpdated$.next(this.getParamEventData(g.dp.SystemInfo))},T=>{this.logger.error("System info errored out",T)})}processGenericInfo(){this.hardwareService.getGenericInfo(!1).subscribe(T=>{(0,M.isEqual)(T,this.genericInfo)||(this.genericInfo=T,this.params.iLp=g.ef.includes(T.MoboType?.toLowerCase())?g.Hr.Enabled:g.Hr.Disabled,this.params.isCRD=(T.DriverType?T.DriverType:m.u.GameReadyDriver).toString(),this.params.sM=this.computeMemory(T),({DriverVersion:this.params.GFPV,CurrentResolution:this.params.cSR,IsDCHDriverInstalled:this.params.dch}=T),this.params.GFPV=this.params.GFPV?this.params.GFPV:"0.00",this.hasGenericSystemInfo=!0,this.gfwslParamsUpdated$.next(this.getParamEventData(g.dp.SystemInfo)))},T=>{this.logger.error("Generic info errored out",T)})}computeMemory(T){const R=T.TotalPhysicalMemory&&parseInt(T.TotalPhysicalMemory,10)>.1?T.TotalPhysicalMemory:T.PhysicalMemoryCapacity;return`${(parseInt(R,10)/1024**3).toFixed()}GB`}getOSInfo(T,R){const B=R?.split(".");let U="";return T?.match(/windows/i)&&(U=B?.pop()),[B?.join("."),U]}processGpuInfo(){this.hardwareService.getGpuInfo(!1).subscribe(T=>{if(0===(0,M.size)(T.GPU))return void this.logger.error("Empty GPU list in gpu hardware info",T);const R=T.GPU.find(B=>B.IsPrimary===g.Hr.Enabled)||T.GPU[0];this.params.IsQ=R.IsQuadro,this.params.D=JSON.parse(`{"VEN_${R.VendorId}&DEV_${R.DeviceId}":"DISPLAY"}`),this.params.dIDa=this.getGpuDeviceIdArray(T),this.params.dFma=this.getGpuDeviceFamilyArray(T),this.params.isO=T.IsOptimus,this.params.isSLI=this.computeSliStatus(T.SLI),this.params.pgpuId=this.getPrimaryGpuId(T),this.hasGpuInfo=!0,this.gfwslParamsUpdated$.next(this.getParamEventData(g.dp.SystemInfo))},T=>{this.logger.error("GPU info errored out",T)})}getPrimaryGpuId(T){let R=null;return T.GPU.every(B=>!B.IsPrimary||(R=B.GpuHandle,!1)),R}getGpuDeviceIdArray(T){return Array.from(this.getSortedGpuArray(T),(R,B)=>this.buildGpuDeviceId(R,B))}getSortedGpuArray(T){return Array.from(T.GPU).sort(R=>R.IsPrimary===g.Hr.Enabled?-1:1)}buildGpuDeviceId(T,R){let B="";return T.DeviceId&&T.VendorId?(B=`${T.DeviceId}_${T.VendorId}`,B=T.SubSystemId&&T.SubVendorId?`${B}_${T.SubSystemId}_${T.SubVendorId}`:`${B}_FFFF_FFFF`):(this.logger.error("GPU info has invalid DeviceId and/or VendorId",T),B="FFFF_FFFF_FFFF_FFFF"),`${B}_${++R}`}getGpuDeviceFamilyArray(T){return Array.from(this.getSortedGpuArray(T),R=>parseInt(R.GPUArchitecture,10).toString(16))}computeSliStatus(T){return T.SLISupported===g.Hr.Enabled&&T.HasActiveSLITopology===g.Hr.Enabled?T.ActiveTopologyGPUCount:T.SLISupported}processGeoInfo(){this.params.go="",this.hasGeoInfo=!0,this.gfwslParamsUpdated$.next(this.getParamEventData(g.dp.Geo))}onUserConsentUpdated(T){this.params.uCst=[this.getFunctionalConsent(T),this.getGfwslConsent(T,"trackTechnicalData"),this.getGfwslConsent(T,"trackBehavioralData")]}getFunctionalConsent(T){return this.formatConsentForGfwsl(T.consentSettings?T.consentSettings.trackFunctionalData:{level:x.Rg.None})}formatConsentForGfwsl(T){return T.level===x.Rg.Full?g.Hr.Enabled:g.Hr.Disabled}getGfwslConsent(T,R){return T.consentSettings?this.formatConsentForGfwsl(T.consentSettings[R]):T.privacySettings&&T.privacySettings.dataTracking?this.formatConsentForGfwsl(T.privacySettings.dataTracking[R]):g.Hr.Unknown}processLocaleInfo(){this.localeService.localeChanged.subscribe(T=>{this.setGfwslLocaleParams(T),this.hasLocaleInfo=!0,this.gfwslParamsUpdated$.next(this.getParamEventData(g.dp.Locale))},T=>{this.logger.error("Locale info errored out",T)})}setGfwslLocaleParams(T){const R=g.GS.find(U=>U.code===(T??this.userDefaultUILanguage)?.replace("_","-")||U.cmsCode===T),B=R?.LCID[0].toString();this.params.gLg=R?.code,this.params.lg=B,this.params.L={CC:R?.isoThreeLetter,LCID:B}}getParams(T={},R){T=(0,M.omitBy)(T,U=>"string"==typeof U&&"CTP_"===U.slice(0,4));let B=(0,M.assignIn)({},this.params,T);return R&&(B=(0,M.pick)(B,R)),B}getServer(){return this.config.server}static{this.\u0275fac=function(R){return new(R||v)(l.KVO(A.J6),l.KVO(r.E),l.KVO(A.zW),l.KVO(A.iH),l.KVO(l.zZn))}}static{this.\u0275prov=l.jDH({token:v,factory:v.\u0275fac,providedIn:"root"})}}return v})()},89463:(St,z,s)=>{"use strict";s.d(z,{E:()=>n});var i=s(58527);let n=(()=>{class h{static{this.\u0275fac=function(M){return new(M||h)}}static{this.\u0275prov=i.jDH({token:h,factory:h.\u0275fac})}}return h})()},80732:(St,z,s)=>{"use strict";s.d(z,{GS:()=>x,GU:()=>S,Hr:()=>h,Pg:()=>P,dp:()=>C,ef:()=>i,el:()=>n,sP:()=>M});const i=["portable","laptop","sub notebook","convertible","detachable","notebook"],n="x86_64";var h=function(A){return A.Unknown="-1",A.Disabled="0",A.Enabled="1",A}(h||{}),C=function(A){return A.Locale="Locale",A.SystemInfo="SystemInfo",A.User="User",A.Init="Init",A.Geo="Geo",A}(C||{}),S=function(A){return A.GfeContent="nvidia_web_services/controller.gfeclientcontent.NG.php",A.Installer="nvidia_web_services/controller.driverinstallercontent.NG.php",A.Profile="nvidia_web_services/controller.gfeclientaffinity.php",A.Vrs="nvidia_web_services/controller.gfeclientvrs.php",A}(S||{});const M={hasGeoInfo:!0,hasLocaleInfo:!0,hasSystemInfo:!0,hasUserInfo:!1},P={additionalHwInfo:!1,geo:!1},x=[{LCID:[1029],code:"cs-CZ",name:"\u010ce\u0161tina (Czech)",isoThreeLetter:"ces",countryCode:"CZ"},{LCID:[1030],code:"da-DK",name:"Dansk (Danish)",isoThreeLetter:"dan",countryCode:"DK"},{LCID:[1031,3079,5127,4103,2055],code:"de-DE",name:"Deutsch (German)",isoThreeLetter:"deu",countryCode:"DE"},{LCID:[1032],code:"el-GR",name:"\u0395\u03bb\u03bb\u03b7\u03bd\u03b9\u03ba\u03ac (Greek)",isoThreeLetter:"ell",countryCode:"GR"},{LCID:[1033],code:"en-US",name:"English - United States",isoThreeLetter:"eng",countryCode:"US"},{LCID:[2057,1078,1052,1118,1067,1101,1068,5146,1026,1109,1050,4122,1125,2067,1126,3081,10249,6153,5129,7177,12297,1061,1127,1071,2108,1084,1079,1129,1039,1136,1137,2144,1120,1087,1153,2128,2068,1048,2074,1091,1093,2117,16393,1081,1121,2145,1094,2118,1113,2137,1115,2080,3081,15369,14345,17417,5129,13321,18441],code:"en-GB",name:"English - United Kingdom",isoThreeLetter:"eng",countryCode:"GB"},{LCID:[3082,1069,1027,1034],code:"es-ES",name:"Espa\xf1ol - Espa\xf1a (Spanish - Spain)",isoThreeLetter:"spa",countryCode:"ES"},{LCID:[2058,11274,16394,13322,9226,5130,7178,12298,17418,4106,18442,58378,19466,6154,15370,10250,20490,21514,14346,8202],code:"es-MX",name:"Espa\xf1ol - M\xe9xico (Spanish - Mexico)",isoThreeLetter:"spa",countryCode:"MX"},{LCID:[1035],code:"fi-FI",name:"Suomi (Finnish)",isoThreeLetter:"fin",countryCode:"FI"},{LCID:[1036,2060,11276,3084,9228,12300,15372,5132,13324,6156,14348,58380,8204,10252,4108,7180,1122],code:"fr-FR",name:"Fran\xe7ais (French)",isoThreeLetter:"fra",countryCode:"FR"},{LCID:[1038],code:"hu-HU",name:"Magyar (Hungarian)",isoThreeLetter:"hun",countryCode:"HU"},{LCID:[1040,2064],code:"it-IT",name:"Italiano (Italian)",isoThreeLetter:"ita",countryCode:"IT"},{LCID:[1041],code:"ja-JP",name:"\u65e5\u672c\u8a9e (Japanese)",isoThreeLetter:"jpn",countryCode:"JP"},{LCID:[1042],code:"ko-KR",name:"\ud55c\uad6d\uc5b4 (Korean)",isoThreeLetter:"kor",countryCode:"KR"},{LCID:[1043],code:"nl-NL",name:"Nederlands (Dutch)",isoThreeLetter:"nld",countryCode:"NL"},{LCID:[1044,14],code:"nb-NO",name:"Norsk (Norwegian)",isoThreeLetter:"nor",countryCode:"NO"},{LCID:[1045],code:"pl-PL",name:"Polski (Polish)",isoThreeLetter:"pol",countryCode:"PL"},{LCID:[2070],code:"pt-PT",name:"Portugu\xeas - Portugal (Portuguese - Portugal)",isoThreeLetter:"por",countryCode:"PT"},{LCID:[1046,2070],code:"pt-BR",name:"Portugu\xeas - Brasil (Portuguese - Brazil)",isoThreeLetter:"por",countryCode:"BR"},{LCID:[1049,2092,1059,1088,1104,2073,3098,2115],code:"ru-RU",name:"\u0420\u0443\u0441\u0441\u043a\u0438\u0439 (Russian)",isoThreeLetter:"rus",countryCode:"RU"},{LCID:[1051],code:"sk-SK",name:"Sloven\u010dina (Slovak)",isoThreeLetter:"slk",countryCode:"SK"},{LCID:[1060],code:"sl-SI",name:"Sloven\u0161\u010dina (Slovenian)",isoThreeLetter:"slv",countryCode:"SI"},{LCID:[1053],code:"sv-SE",name:"Svenska (Swedish)",isoThreeLetter:"swe",countryCode:"SE"},{LCID:[1054],code:"th-TH",name:"\u0e44\u0e17\u0e22 (Thai)",isoThreeLetter:"tha",countryCode:"TH"},{LCID:[1055],code:"tr-TR",name:"T\xfcrk\xe7e (Turkish)",isoThreeLetter:"tur",countryCode:"TR"},{LCID:[1058],code:"uk-UA",name:"Ukrainian (Ukraine)",isoThreeLetter:"ukr",countryCode:"UA"},{LCID:[2052,804,4],code:"zh-CHS",cmsCode:"zh_CN",name:"\u7b80\u4f53\u4e2d\u6587 (Chinese - Simplified)",isoThreeLetter:"zho",countryCode:"CN"},{LCID:[3076,1028,4100,404,5124,31748],code:"zh-CHT",cmsCode:"zh_TW",name:"\u7e41\u9ad4\u4e2d\u6587 (Chinese - Traditional)",isoThreeLetter:"zho",countryCode:"CN"}]},50088:(St,z,s)=>{"use strict";s.d(z,{u:()=>n});var n=s(20924).Or.Nvapp.Driverupdaterecommendation.DriverTypeEnum},35965:(St,z,s)=>{"use strict";s.d(z,{cK:()=>E,bq:()=>T,Kq:()=>u,PZ:()=>v,GS:()=>m.GS,Ev:()=>x.E,GU:()=>m.GU,Hr:()=>m.Hr,Tg:()=>i.T,XB:()=>g,Xt:()=>B,XU:()=>R});var i=s(3135),n=s(59859),h=s(91384),C=s(71152),S=s(76449),M=s(58527),P=s(92602),x=s(89463),A=s(5798);let g=(()=>{class U{constructor(ae,G,k,X,q){this.config=G,this.endpointFactory=k,this.gfwslParamsService=X,this.distributedTracingUtilService=q,this.logger=ae.getLogger("crimson/sdk/gfwsl/GfwslService"),this.endpointDefinitionMap=new Map,this.endpointMap=new Map,this.endpointRetryConfig={},({defaultRetries:this.endpointRetryConfig.maxRetries,defaultTimeBetweenRetries:this.endpointRetryConfig.timeBetweenRetries,defaultTimeout:this.endpointRetryConfig.timeout}=this.config)}initialize(ae){this.gfwslParamsService.initialize(),this.addEndpointDefinitions(ae||[])}addEndpointDefinitions(ae){ae.forEach(G=>{const k=G.name;this.endpointDefinitionMap.set(k,G),this.endpointMap.set(k,this.endpointFactory.createEndpoint(G))})}callEndpoint(ae,G,k={},X={},q={},Q=S.pB.GetGfwslInformation,ce){const te=this.endpointMap.get(ae),Ee=this.endpointDefinitionMap.get(ae);if(!te)return(0,n.$)(`No endpoint found for ${ae}. Add this definition with the initialize call.`);G=this.gfwslParamsService.getParams(G,Ee.paramMask);const it=this.generateEndpointUrl(this.config.server,Ee,G);this.logger.info("Going to call GFWSL URL:",it,"with body:",k,"and dynamic headers:",X);const Fe={config:this.endpointRetryConfig,body:k,headers:{...Ee.headers,...X},reportRequestData:{...Ee.reportRequestData,...q},includeRequestId:!1,withCredentials:!0},Qe=te.makeRequestEx(Ee.method,it,Fe);return this.distributedTracingUtilService.handleHttpEndpointSpan(Qe,Fe,Q,ce).pipe((0,h.M)(ct=>this.logger.info("gfwsl returned successfully with response ",ct)))}onGfwslParamsReady(ae){return this.gfwslParamsService.onGfwslParamsReady(ae)}setConfigServer(ae){this.config.server=ae}generateEndpointUrl(ae,G,k){const X=JSON.stringify(this.gfwslParamsService.getParams(k,G.paramMask));return(0,C.l2)([ae,G.controller,G.endpointPath,X])}static{this.\u0275fac=function(G){return new(G||U)(M.KVO(P.J6),M.KVO(x.E),M.KVO(A.t),M.KVO(i.T),M.KVO(S.Z1))}}static{this.\u0275prov=M.jDH({token:U,factory:U.\u0275fac,providedIn:"root"})}}return U})();var m=s(80732),r=(s(50088),s(26875));let u=(()=>{class U{static{this.\u0275fac=function(G){return new(G||U)}}static{this.\u0275prov=M.jDH({token:U,factory:U.\u0275fac})}}return U})(),v=(()=>{class U{constructor(ae,G,k,X,q){this.endpointFactory=G,this.gfwslParamsService=k,this.config=X,this.distributedtracingUtilService=q,this.logger=ae.getLogger("crimson/sdk/aem/AemService"),this.endpointMap=new Map,this.endpointDefinitionMap=new Map,this.endpointRetryConfig={},({defaultRetries:this.endpointRetryConfig.maxRetries,defaultTimeBetweenRetries:this.endpointRetryConfig.timeBetweenRetries,defaultTimeout:this.endpointRetryConfig.timeout}=this.config)}setUrlGenerator(ae,G,k){let X;const q=JSON.stringify(this.gfwslParamsService.getParams(k,G.paramMask));return X=(0,C.l2)([ae,G.classPath,G.clientPath,G.endpointPath]),(0,r.isEmpty)(q)||(X=X+"?"+q),X}addEndpointDefinitions(ae){ae.forEach(G=>{const k=G.name;this.endpointDefinitionMap.set(k,G),this.endpointMap.set(k,this.endpointFactory.createEndpoint(G))})}callAemEndpoint(ae,G,k,X={},q={},Q){const ce=this.endpointMap.get(ae),te=this.endpointDefinitionMap.get(ae);if(!ce)return(0,n.$)(`No endpoint found for ${ae}. Add this definition with the initialize call.`);G=this.gfwslParamsService.getParams(G,te.paramMask);const Ee=this.setUrlGenerator(this.config.server,te,G);this.logger.info("Going to call AEM URL:",Ee,"with dynamic headers:",q);const it={config:this.endpointRetryConfig,body:X,headers:{...te.headers,...q},includeRequestId:!1,reportRequestData:(0,r.isNil)(k)?{}:{...k}},Fe=ce.makeRequestEx(te.method,Ee,it);return this.distributedtracingUtilService.handleHttpEndpointSpan(Fe,it,S.pB.GetAemReleaseHighlights,Q)}setConfigServer(ae){this.config.server=ae}static{this.\u0275fac=function(G){return new(G||U)(M.KVO(P.J6),M.KVO(A.t),M.KVO(i.T),M.KVO(u),M.KVO(S.Z1))}}static{this.\u0275prov=M.jDH({token:U,factory:U.\u0275fac,providedIn:"root"})}}return U})();var E=function(U){return U.services="services/com.nvidia.services/",U}(E||{}),T=function(U){return U.GfeClient="AEMGFEClientContent",U}(T||{});let R=(()=>{class U{static forRoot(ae){return{ngModule:U,providers:[{provide:x.E,useValue:ae.gfwsl},{provide:u,useValue:ae.aem}]}}static{this.\u0275fac=function(G){return new(G||U)}}static{this.\u0275mod=M.$C({type:U})}static{this.\u0275inj=M.G2t({})}}return U})();var B=function(U){return U.Get="GET",U.Post="POST",U}(B||{})},25172:(St,z,s)=>{"use strict";s.d(z,{YQ:()=>S,ds:()=>h,ry:()=>C});var i=s(20924),n=s(58527),h=i.Or.Common.Applicationcontrol.State1;let C=(()=>{class M{static{this.\u0275fac=function(A){return new(A||M)}}static{this.\u0275prov=n.jDH({token:M,factory:M.\u0275fac})}}return M})();const S=i.Ts.Common.Systeminfo.GetSystemInfo.module},21172:(St,z,s)=>{"use strict";s.d(z,{P:()=>l});var i=s(85735),n=s(43848),h=s(16229),C=s(3496),S=s(25172),M=s(43187),P=s(53461),x=s(10174),A=s(92602),g=s(58527),m=s(3678);let l=(()=>{class r{constructor(v,E){this.plugins=E,this.defualtMandatoryPluginTimeout=3e4,this.pluginsActivationMap=new Map,this.hasMandatoryPluginActivationNotificationTimedOut=new i.m(1),this.pluginsLoadInfo=[],this.pluginsLoadInfoSub$=new i.m(1),this.mandatoryPluginNames=[],this.optionalPluginNames=[],this.logger=v.getLogger("PluginsNotificationService"),this.mandatoryPluginsLoaded=new i.m(1),this.optionalPluginLoaded=new i.m(1),this.mandatoryPluginNames=E.mandatoryModuleNames.map(T=>T.toLowerCase())??[],this.optionalPluginNames=E.optionalModulesNames.map(T=>T.toLowerCase())??[],this.logger.info(`Mandatory plugins list ${this.mandatoryPluginNames} \n optional plugins list ${this.optionalPluginNames}`)}isMandatoryPlugin(v){const E=v.toLowerCase();return!!this.mandatoryPluginNames?.find(T=>T===E)}isOptionalPlugin(v){const E=v.toLowerCase();return!!this.optionalPluginNames?.find(T=>T===E)}getCurrentPluginsLoadinfo(){return this.pluginsLoadInfo}getPluginsLoadInfo$(){return this.pluginsLoadInfoSub$.asObservable().pipe((0,P.F)())}handleModuleActivationNotification(v){let E=new Set,T=new Set,R=new Set;for(const U of v.modules){const Y=U.module,ae=this.isMandatoryPlugin(Y),G=this.isOptionalPlugin(Y),k=U.state===S.ds.active,X=Y.toLowerCase();this.pluginsActivationMap.has(X)||this.pluginsActivationMap.set(X,new i.m(1)),this.pluginsActivationMap.get(X).next(k);const q=this.pluginsLoadInfo.find(Q=>Q.pluginName===Y);(!q||q&&!q.isLoaded&&k)&&(this.pluginsLoadInfo=this.pluginsLoadInfo.filter(Q=>Q.pluginName!==Y),this.pluginsLoadInfo.push({pluginName:Y,isLoaded:k,loadDurationMs:Date.now()-this.pluginLoadStartTime})),ae?k?E.add(Y):(this.mandatoryPluginsLoaded.next({loaded:!1,name:Y}),this.timerSub&&this.timerSub.unsubscribe()):G&&(k?T.add(Y):R.add(Y))}if(E.size!==this.plugins.mandatoryModuleNames.length)return;this.mandatoryPluginsLoaded.next({loaded:!0}),this.timerSub&&this.timerSub.unsubscribe();const B=T.size+R.size;if(T.size===this.plugins.optionalModulesNames.length)this.optionalPluginLoaded.next({loaded:!0});else if(R.size>0)if(1===R.size){const[U]=R;this.optionalPluginLoaded.next({loaded:!1,name:U})}else this.optionalPluginLoaded.next({loaded:!1});B+E.size===this.plugins.mandatoryModuleNames.length+this.plugins.optionalModulesNames.length&&this.pluginsLoadInfoSub$.next(this.pluginsLoadInfo)}get mandatoryPluginsLoaded$(){return this.mandatoryPluginsLoaded.asObservable().pipe((0,P.F)())}get optionalPluginsLoaded$(){return this.optionalPluginLoaded.asObservable().pipe((0,P.F)())}registerForModulesActiveNotification(){this.modulesActivationNotificationSub=this.bridgeCommandCefExecuteCommand(M.T.Common.Applicationcontrol.ModulesActiveNotification).subscribe(v=>{this.logger.info("ModuleActiveNotification state ",v),v.modules.length>0&&(this.handleModuleActivationNotification(v),this.logger.info("plugins loaded",v.modules))},v=>{this.logger.error("MandatoryPluginsHandlerService failed with error: ",v),this.mandatoryPluginsLoaded.next({loaded:!1,name:""}),this.modulesActivationNotificationSub.unsubscribe()})}isPluginLoaded$(v){if(!A.zk.isCefPlatform())return(0,n.of)(!0);const E=v.toLocaleLowerCase();return this.pluginsActivationMap.has(E)||this.pluginsActivationMap.set(E,new i.m(1)),this.isMandatoryPlugin(E)?(0,h.h)(this.pluginsActivationMap.get(E).asObservable(),this.hasMandatoryPluginActivationNotificationTimedOut.asObservable().pipe((0,x.u)(!1))).pipe((0,P.F)()):this.pluginsActivationMap.get(E).asObservable().pipe((0,P.F)())}init(v){this.bridgeCommandCefExecuteCommand=v,this.pluginLoadStartTime=Date.now(),this.registerForModulesActiveNotification(),this.plugins.mandatoryPluginTimeout&&this.triggerLoadingIndicator(!0)}triggerLoadingIndicator(v){v?(this.timerSub&&this.timerSub.unsubscribe(),this.timerSub=(0,C.O)(this.plugins.mandatoryPluginTimeout??this.defualtMandatoryPluginTimeout).subscribe(()=>{this.mandatoryPluginsLoaded.next({loaded:!1}),this.hasMandatoryPluginActivationNotificationTimedOut.next(!0),this.modulesActivationNotificationSub.unsubscribe(),this.timerSub.unsubscribe(),this.timerSub=null})):this.timerSub&&this.timerSub.unsubscribe()}static{this.\u0275fac=function(E){return new(E||r)(g.KVO(m.J6),g.KVO(S.ry))}}static{this.\u0275prov=g.jDH({token:r,factory:r.\u0275fac,providedIn:"root"})}}return r})()},98456:(St,z,s)=>{"use strict";s.d(z,{S:()=>me});var i=s(58527),n=s(76706),h=s(44224),C=s(47973),S=s(56106),M=s(29370),P=s(61142),x=s(51006),A=s(43848),g=s(26513),m=s(80583),l=s(16229),r=s(36877),u=s(12532),v=s(27731),E=s(15652),T=s(91384),R=s(4208),B=s(10174),U=s(62931),Y=s(8619),ae=s(72147),G=s(65706),k=s(75707),X=s(83915),q=s(43615),Q=s(14749),ce=s(26875),te=s(56315),Ee=s(51040),it=s(58108),Fe=s(68868),Qe=s(71152),ct=s(81262),Ge=s(76438);const Je=new i.nKC("NV_SEARCH_CONFIG");var ze=s(92602),Ke=s(55269),Ve=s(8427),$e=s(26537),dt=s(96542),Pe=s(3457);const J=["inputContainer"],vt=["inputElement"];function ve(le,Xe){1&le&&(i.j41(0,"mat-icon",10),i.EFF(1," search "),i.k0s())}function ue(le,Xe){if(1&le){const Se=i.RV6();i.j41(0,"button",11),i.bIt("click",function(Ne){i.eBV(Se);const ye=i.XpG();return i.Njj(ye.clearSearchInput(Ne))})("focus",function(){i.eBV(Se);const Ne=i.XpG();return i.Njj(Ne.clearTextButtonFocused=!0)})("blur",function(){i.eBV(Se);const Ne=i.XpG();return i.Njj(Ne.clearTextButtonFocused=!1)}),i.j41(1,"mat-icon",12),i.EFF(2,"close"),i.k0s()()}if(2&le){const Se=i.XpG();i.BMQ("tabindex",Se.activated?null:-1)}}function et(le,Xe){1&le&&i.nrm(0,"mat-divider")}var Ce=function(le){return le.Init="Init",le.InvokeInput="InvokeInput",le.DeactivateSearch="DeactivateSearch",le.InvokeNvKeyboard="InvokeNvKeyboard",le.CommitSearch="CommitSearch",le.StopSearch="StopSearch",le}(Ce||{}),be=function(le){return le.Start="Start",le.Stop="Stop",le.Initialized="Initialized",le.InputSearch="InputSearch",le.NvKeyboardSearch="NvKeyboardSearch",le.CommittingSearch="CommittingSearch",le}(be||{});const rt={action:Ce.Init};let me=(()=>{class le{set activated(Se){this._inputFieldActivated!==Se&&(this._inputFieldActivated=Se,this.activatedChange.emit(this.activated))}get activated(){return this._inputFieldActivated}set searchDebounceTime(Se){this._searchDebounceTime=Se}get searchDebounceTime(){return this._searchDebounceTime}get nvKeyboardOpened(){return this.nvKeyboardOpenedSubject?.getValue()??!1}get nvKeyboardOpened$(){return this.nvKeyboardOpenedSubject?.asObservable()??(0,A.of)(!1)}get systemKeyboardOpened$(){return this.systemKeyboardOpenedSubject.asObservable()}get systemKeyboardOpened(){return this.systemKeyboardOpenedSubject.getValue()}get currentSearchAction(){return this.searchActivationSubject.getValue().action}get searchActivation$(){return this.searchActivationSubject.asObservable()}get searchCommitted$(){return this.commitSearchSubject.asObservable()}constructor(Se,fe,Ne,ye,Ot,sn,dn,yn,At,Vt,Qt,Jt,Zt,nn,Xt){this.searchService=Ne,this.indexService=ye,this.ngZone=Ot,this.windowService=sn,this.nvKeyboardService=dn,this.matDialogService=yn,this.injector=At,this.focusManager=Vt,this.inputModalityService=Jt,this.translateService=Zt,this.systemVirtualKeyboardService=nn,this.breakpointObserver=Xt,this.autoFocusOnInputContainer=!1,this.displayClearIcon=!0,this.inputType="text",this._inputFieldActivated=!1,this.activatedChange=new i.bkB,this.searchInputInteraction=new i.bkB,this.searchInputFocusOut=new i.bkB,this.useNvKeyboard=!1,this.query="",this.clearTextButtonFocused=!1,this.searchResultState=ct.z1.None,this.categorizedResult=null,this.currentCategory="",this.recentSearchesCache=[],this.searchActivationSubject=new g.t(rt),this.systemKeyboardOpenedSubject=new g.t(!1),this.destroy$=new m.B7,this.commitSearchSubject=new m.B7,this._searchDebounceTime=200,this.searchStateMachine=new Qe.Z3({tag:"SearchStateMachine",states:{[be.Start]:{},[be.Stop]:{},[be.Initialized]:{onEnter:lt=>(0,A.of)(lt).pipe((0,T.M)(Ue=>{this.onSearchStateChanged(Ue),this.disposeGamepadHintIfNeeded()}))},[be.InputSearch]:{onEnter:lt=>(0,A.of)(lt).pipe((0,T.M)(Ue=>{this.onSearchStateChanged(Ue),this.handleKeyboardSearchIfNeeded()})),onExit:lt=>this.onExitSearch(lt)},[be.NvKeyboardSearch]:{onEnter:lt=>(0,A.of)(lt).pipe((0,T.M)(Ue=>{this.onSearchStateChanged(Ue),this.activateNvKeyboard(!0),this.handleKeyboardSearchIfNeeded()})),onExit:lt=>this.onExitSearch(lt)},[be.CommittingSearch]:{onEnter:lt=>(0,A.of)(lt).pipe((0,T.M)(Ue=>{this.onSearchStateChanged(Ue),this.handleSearchCommitted(Ue)}))}},transitions:{[Ce.Init]:[{from:be.Start,to:be.Initialized}],[Ce.InvokeInput]:[{from:be.Initialized,to:be.InputSearch},{from:be.NvKeyboardSearch,to:be.InputSearch},{from:be.CommittingSearch,to:be.InputSearch}],[Ce.InvokeNvKeyboard]:[{from:be.Initialized,to:be.NvKeyboardSearch},{from:be.InputSearch,to:be.NvKeyboardSearch}],[Ce.CommitSearch]:[{from:be.InputSearch,to:be.CommittingSearch},{from:be.NvKeyboardSearch,to:be.CommittingSearch},{from:be.CommittingSearch,to:be.CommittingSearch}],[Ce.DeactivateSearch]:[{from:be.InputSearch,to:be.Initialized},{from:be.NvKeyboardSearch,to:be.Initialized},{from:be.CommittingSearch,to:be.Initialized}],[Ce.StopSearch]:[{from:Qe.cL,to:be.Stop}]},startState:be.Start,endState:be.Stop}),this.logger=Se.getLogger("SearchComponent"),fe?.searchInputType&&(this.inputType=fe.searchInputType),this.useNvKeyboard=dn.enabled&&!!fe?.useNvKeyboardForSearch,this.isWebSearch||this.indexService.isConnectedToServer().pipe((0,R.Q)(this.destroy$)).subscribe(lt=>{this.serverConnectivityStatus=lt,this.serverConnectivityStatus||this.updateSearchResultState(ct.z1.FailedToConnect)}),this.activateSearch=Qt.guard(it.HK.Input,this.activateSearch.bind(this),"search.requireTapOnSearchBar")}getInputPlaceholder(){return this.inputPlaceholder||this.translateService.instant("search.searchGames")}ngOnInit(){this.breakpointObserver.observe([n.Rp.Handset]).pipe((0,R.Q)(this.destroy$)).subscribe(Se=>{this.isHandSet=Se.matches}),this.isWebSearch||(this.indexService.getSearchIndexAvailability().pipe((0,R.Q)(this.destroy$)).subscribe(Se=>{this.isSearchIndexAvailable=Se,this.isSearchIndexAvailable?(this.updateSearchResultState(ct.z1.None),this.performSearch()):this.updateSearchResultState(ct.z1.IndexNotAvailable)}),this.indexService.getRecentSearches().pipe((0,R.Q)(this.destroy$)).subscribe(Se=>{this.recentSearchesCache=Se})),this.indexService.onSearchTriggered.pipe((0,R.Q)(this.destroy$)).subscribe(()=>{this.performSearch()}),this.useNvKeyboard&&(this.gamepadService=this.injector.get(Ee.bi),this.nvKeyboardOpenedSubject=new g.t(!1)),this.systemVirtualKeyboardService.keyboardVisible$.pipe((0,R.Q)(this.destroy$)).subscribe(Se=>{this.systemKeyboardOpenedSubject.next(Se)}),this.indexService.onClearSearchQuery().pipe((0,R.Q)(this.destroy$)).subscribe(Se=>{this.query="",this.inputField?.nativeElement&&(this.inputField.nativeElement.value="")})}ngAfterViewInit(){this.startSearchStateMachine(),this.inputField&&(0,l.h)((0,r.R)(this.inputField.nativeElement,"input").pipe((0,B.u)(!1)),this.searchCommitted$.pipe((0,B.u)(!0))).pipe((0,U.B)(this.searchDebounceTime),(0,Y.p)(Se=>this.activated),(0,R.Q)(this.destroy$)).subscribe(Se=>{this.query!==this.inputField.nativeElement.value?(this.query=this.inputField.nativeElement.value,""===this.query&&this.updateSearchResultState(ct.z1.EmptyQuery),this.searchInputInteraction.emit({currentQuery:this.query,interactionType:ct.BE.Input}),this.performSearch(Se)):Se&&this.searchActivationSubject.next({action:Ce.CommitSearch})}),this.indexService.onAutoSearchTriggered$.pipe((0,R.Q)(this.destroy$)).subscribe(Se=>{this.indexService.savedSearchQuery&&setTimeout(()=>{this.query=this.indexService.savedSearchQuery,this.inputField.nativeElement.value=this.query,this.indexService.savedSearchQuery=""},0)}),this.ngZone.runOutsideAngular(()=>{this.windowService.getKeydownEvent().pipe((0,Y.p)(Se=>(Se.metaKey||Se.ctrlKey)&&("f"===Se.key||"F"===Se.key)),(0,R.Q)(this.destroy$)).subscribe(Se=>{0===this.matDialogService?.openDialogs?.length&&this.onInputContainerClick(Se)}),(0,r.R)(document,"touchstart").pipe((0,R.Q)(this.destroy$)).subscribe(Se=>{Se.target!==this.inputField.nativeElement&&this.activated&&this.isInputFocused&&this.inputField.nativeElement.blur()})}),!this.isWebSearch&&!this.indexService.wasSearchIndexingTriggered&&this.indexService.isLazySearchIndexingEnabled().pipe((0,ae.n)(Se=>Se?this.activatedChange.pipe((0,Y.p)(fe=>!0===fe)):u.w),(0,G.s)(1)).subscribe(()=>{this.indexService.triggerBuildingSearchIndex()})}startSearchStateMachine(){this.searchActivation$.pipe((0,k.ZZ)(Se=>this.searchStateMachine.on(Se.action,Se.data)),(0,R.Q)(this.destroy$)).subscribe()}onSearchStateChanged(Se){switch(this.searchStateMachine.currentState){case be.InputSearch:case be.NvKeyboardSearch:this.activated=!0;break;default:this.activated=!1}if(Se?.focusAction)switch(Se.focusAction){case"inputField":this.focusInputField();break;case"inputContainer":this.focusInputContainer();break;case"firstTile":this.indexService.focusFirstTile()}}onExitSearch(Se){if(this.currentSearchAction===Ce.CommitSearch){const Ne=this.query.length>0?"firstTile":this.nvKeyboardOpened||this.systemKeyboardOpened?"inputContainer":"inputField";return this.nvKeyboardOpened?(this.activateNvKeyboard(!1),this.nvKeyboardOpened$.pipe((0,Y.p)(ye=>!ye),(0,X.T)(ye=>({...Se,isCommittedFromNvKeyboard:!0,focusAction:Ne})))):(0,A.of)({...Se,focusAction:Ne})}return(0,A.of)(Se)}openNvKeyboard(){this.nvKeyboardRef=this.nvKeyboardService.open(),(0,l.h)(this.nvKeyboardRef.afterOpened().pipe((0,G.s)(1),(0,B.u)(!0)),this.nvKeyboardRef.afterDismissed().pipe((0,G.s)(1),(0,B.u)(!1))).pipe((0,T.M)(Se=>{this.nvKeyboardOpenedSubject.next(Se)}),(0,ae.n)(Se=>Se?this.nvKeyboardService.onInput$:u.w),(0,R.Q)(this.destroy$),(0,q.j)(()=>{this.nvKeyboardOpened&&this.nvKeyboardOpenedSubject.next(!1)})).subscribe(Se=>{this.sendNvKeyboardEventToInputField(Se)})}handleKeyboardSearchIfNeeded(){const Se=this.searchStateMachine.currentState===be.NvKeyboardSearch,fe=this.useNvKeyboard?this.gamepadService.onButtonPressed$(Ee.dt.Y).pipe((0,Y.p)(Ot=>!0===Ot)):v.t,Ne=this.keyboardClosedObservable(Se);this.useNvKeyboard&&(this.displayGamepadHint(Se?te.i1.SystemKeyboard:te.i1.AppKeyboard),fe.pipe((0,G.s)(1),(0,R.Q)((0,E.O4)(Ne,this.destroy$))).subscribe(sn=>{this.handleKeyboardSwitch(Se)}));const ye=(0,E.O4)(fe,this.searchCommitted$,this.searchActivation$.pipe((0,Y.p)(Ot=>Ot.action===Ce.DeactivateSearch)),this.destroy$);Ne.pipe((0,G.s)(1),(0,R.Q)(ye)).subscribe(Ot=>{this.searchActivationSubject.next({action:Ce.DeactivateSearch,data:{focusAction:"inputContainer"}})})}handleKeyboardSwitch(Se){const fe=this.keyboardClosedObservable(Se),Ne=Se?Ce.InvokeInput:Ce.InvokeNvKeyboard,ye=Se?{focusAction:"inputField"}:void 0;Se?this.activateNvKeyboard(!1):this.inputField?.nativeElement.blur(),fe.pipe((0,G.s)(1),(0,R.Q)(this.destroy$)).subscribe(Ot=>{this.searchActivationSubject.next({action:Ne,data:ye})})}keyboardClosedObservable(Se){return(Se?this.nvKeyboardOpened$:this.systemKeyboardOpened$).pipe((0,Q.J)(),(0,Y.p)(([Ne,ye])=>!0===Ne&&!1===ye),(0,X.T)(Ne=>{}))}handleSearchCommitted(Se){if(0===this.query.length&&this.isInputFocused)this.searchActivationSubject.next({action:Ce.InvokeInput});else if(this.isInputFocused||Se?.isCommittedFromNvKeyboard){const fe=this.isInputFocused||document.activeElement===document.body;this.searchActivationSubject.next({action:Ce.DeactivateSearch,data:{focusAction:fe?"inputContainer":void 0}})}}displayGamepadHint(Se){this.gamepadHintOverlay=this.gamepadHintOverlay??this.nvKeyboardService.createHintOverlay(this.inputContainer.nativeElement),this.gamepadHintOverlay.updateHint(Se)}disposeGamepadHintIfNeeded(){this.gamepadHintOverlay&&(this.gamepadHintOverlay.dispose(),this.gamepadHintOverlay=void 0)}activateNvKeyboard(Se){Se&&!this.nvKeyboardOpened?this.openNvKeyboard():!Se&&this.nvKeyboardOpened&&this.nvKeyboardRef.dismiss()}sendNvKeyboardEventToInputField(Se){const fe=this.inputField.nativeElement;if("keydown"===Se.type){switch(Se.key){case"Backspace":fe.selectionStart===fe.selectionEnd?fe.selectionStart>0&&fe.setRangeText("",fe.selectionStart-1,fe.selectionStart):fe.setRangeText("",fe.selectionStart,fe.selectionEnd);break;case"ArrowLeft":fe.selectionStart>0&&(fe.selectionEnd=--fe.selectionStart);break;case"ArrowRight":fe.selectionStart<fe.value.length&&(fe.selectionEnd=++fe.selectionStart);break;case"Space":this.inputCharacter(fe,Se);break;default:1===Se.key.length&&this.inputCharacter(fe,Se)}fe.dispatchEvent(new Event("input"))}else"Enter"===Se.key?this.commitSearchSubject.next():"Escape"===Se.key&&this.activateNvKeyboard(!1)}inputCharacter(Se,fe){Se.setRangeText("Space"===fe.key?" ":fe.getModifierState("CapsLock")?fe.key.toUpperCase():fe.key,Se.selectionStart,Se.selectionEnd,Se.selectionStart===Se.selectionEnd?"end":"select"),Se.setSelectionRange(Se.selectionEnd,Se.selectionEnd)}onInputContainerClick(Se){this.searchInputInteraction.emit({currentQuery:this.query,interactionType:ct.BE.Click}),this.activated||(this.logger.trace(Qe.N_.UserGesture,Qe.YD.Search,Qe.PC.open," search operation."),this.activateSearch(Se))}activateSearch(Se){let ye,Ot;this.useNvKeyboard&&this.inputModalityService.lastInputModality===Fe.M.Gamepad?ye=Ce.InvokeNvKeyboard:(ye=Ce.InvokeInput,Ot="inputField"),this.searchActivationSubject.next({action:ye,data:{focusAction:Ot}})}clearSearchInput(Se){this.logger.trace(Qe.N_.UserGesture,Qe.YD.Search,Qe.PC.close),this.isWebSearch||this.indexService.sendTextSearchTelemetry({searchType:Ge.nX.AbandonedSearch,searchQuery:this.query},this.categorizedResult&&this.categorizedResult[this.currentCategory]||[]),this.query="",this.updateSearchResultState(ct.z1.EmptyQuery),this.categorizedResult=null,this.searchInputInteraction.emit({currentQuery:this.query,interactionType:ct.BE.Clear}),this.performSearch()}get isInputFocused(){return document.activeElement===this.inputField?.nativeElement}performSearch(Se=!1){this.indexService.savedSearchQuery&&(this.query=this.indexService.savedSearchQuery,this.indexService.savedSearchQuery=""),this.isWebSearch?this.indexService.performWebSearchOperation(this.query):this.serverConnectivityStatus?this.isSearchIndexAvailable?0!==this.query.length&&(this.logger.trace(Qe.N_.UserGesture,"Searched for game with keyword "+this.query),this.categorizedResult={},this.searchService.performSearch(this.query).pipe((0,k.ZZ)(fe=>this.indexService.processSearchedResultsCallback(fe)),(0,R.Q)(this.destroy$)).subscribe(fe=>{fe.resultsLength>0?(this.categorizedResult=fe.categorizedResult,this.categories=Object.keys(this.categorizedResult),this.currentCategory=this.categories?.length>0?this.categories[0]:"",this.updateSearchResultState(ct.z1.ResultAvailable)):(this.categorizedResult=null,this.updateSearchResultState(ct.z1.ResultNotAvailable)),this.notifySearchResultChanged(fe),Se&&this.searchActivationSubject.next({action:Ce.CommitSearch})},fe=>{this.logger.error("Error in processing search Results"+fe)})):this.updateSearchResultState(ct.z1.IndexNotAvailable):this.updateSearchResultState(ct.z1.FailedToConnect)}updateSearchResultState(Se){this.searchResultState=Se,this.indexService.notifySearchResultStateChanged(this.searchResultState)}notifySearchResultChanged(Se){this.indexService.notifySearchResultChanged({processedSearchResult:Se,query:this.query})}onKeydownInputField(Se){let fe=!1;const Ne="Enter"===Se.key||Se.keyCode===Qe.O4.Done;(0,Qe.Nw)(Se)&&this.activated?(this.searchActivationSubject.next({action:Ce.DeactivateSearch,data:{focusAction:"inputContainer"}}),fe=!0):Ne&&(this.commitSearchSubject.next(),fe=!0),fe&&(Se.stopPropagation(),Se.preventDefault())}focusInputContainer(){document.activeElement!==this.inputContainer.nativeElement&&this.focusManager.focusViaLastOrigin(this.inputContainer.nativeElement)}focusInputField(){this.isInputFocused||this.focusManager.focusViaLastOrigin(this.inputField.nativeElement)}onInputBlur(Se){(0,ce.isNil)(Se.relatedTarget)&&!this.isWebSearch&&this.indexService.sendTextSearchTelemetry({searchType:Ge.nX.PausedSearch,searchQuery:this.query},this.categorizedResult&&this.categorizedResult[this.currentCategory]||[]),this.searchInputFocusOut.emit({currentQuery:this.query}),(!this.systemKeyboardOpened&&this.searchStateMachine.currentState===be.InputSearch||this.searchStateMachine.currentState===be.CommittingSearch)&&this.searchActivationSubject.next({action:Ce.DeactivateSearch})}setQueryAndSelectText(Se){this.query=Se,this.inputField&&this.inputField.nativeElement?(this.inputField.nativeElement.value=Se,this.inputField.nativeElement.select(),this.inputField.nativeElement.focus()):this.logger.warn("Cannot set query text - input field not available")}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete(),this.activated=!1,this.activateNvKeyboard(!1),this.disposeGamepadHintIfNeeded(),this.commitSearchSubject.complete(),this.nvKeyboardOpenedSubject?.complete(),this.systemKeyboardOpenedSubject?.complete(),this.searchActivationSubject.next({action:Ce.StopSearch}),this.searchActivationSubject.complete(),this.indexService.savedSearchQuery=this.query}static{this.\u0275fac=function(fe){return new(fe||le)(i.rXU(ze.J6),i.rXU(Je,8),i.rXU(Ke.S),i.rXU(Ve.G),i.rXU(i.SKi),i.rXU(ze.s7),i.rXU(te.RF),i.rXU($e.bZ),i.rXU(i.zZn),i.rXU(it.c_),i.rXU(it.gE),i.rXU(Fe.p),i.rXU(dt.c$),i.rXU(ze.zH),i.rXU(n.QP))}}static{this.\u0275cmp=i.VBU({type:le,selectors:[["nv-search"]],viewQuery:function(fe,Ne){if(1&fe&&(i.GBs(J,5),i.GBs(vt,5)),2&fe){let ye;i.mGM(ye=i.lsd())&&(Ne.inputContainer=ye.first),i.mGM(ye=i.lsd())&&(Ne.inputField=ye.first)}},inputs:{smallWidthMode:"smallWidthMode",autoFocusOnInputContainer:"autoFocusOnInputContainer",displayClearIcon:"displayClearIcon",inputType:"inputType",isWebSearch:"isWebSearch",inputPlaceholder:"inputPlaceholder",searchDebounceTime:"searchDebounceTime"},outputs:{activatedChange:"activatedChange",searchInputInteraction:"searchInputInteraction",searchInputFocusOut:"searchInputFocusOut"},standalone:!0,features:[i.aNF],decls:12,vars:21,consts:[["inputContainer",""],["inputElement",""],[1,"search-container"],["fxLayout","column"],["fxLayout","row"],["nvAddKeyboardActivate","",1,"search-input-container",3,"click","tabindex","nvAutoFocus"],["class","material-icons search-icon",4,"ngIf"],["maxlength","80","autocomplete","off","spellcheck","false",1,"search-input",3,"blur","keydown","ngModel","type","nvCaret"],["mat-icon-button","","class","clear-icon-button",3,"click","focus","blur",4,"ngIf"],[4,"ngIf"],[1,"material-icons","search-icon"],["mat-icon-button","",1,"clear-icon-button",3,"click","focus","blur"],[1,"material-icons"]],template:function(fe,Ne){if(1&fe){const ye=i.RV6();i.j41(0,"div",2),i.nI1(1,"async"),i.j41(2,"div",3)(3,"div",4)(4,"div",5,0),i.bIt("click",function(sn){return i.eBV(ye),i.Njj(Ne.onInputContainerClick(sn))}),i.DNE(6,ve,2,0,"mat-icon",6),i.j41(7,"input",7,1),i.nI1(9,"async"),i.bIt("blur",function(sn){return i.eBV(ye),i.Njj(Ne.onInputBlur(sn))})("keydown",function(sn){return i.eBV(ye),i.Njj(Ne.onKeydownInputField(sn))}),i.k0s(),i.DNE(10,ue,3,1,"button",8),i.k0s()(),i.DNE(11,et,1,0,"mat-divider",9),i.k0s()()}2&fe&&(i.AVh("handset",Ne.isHandSet)("nv-keyboard",i.bMT(1,17,Ne.nvKeyboardOpened$)),i.R7$(4),i.Y8G("tabindex",Ne.activated?-1:0)("nvAutoFocus",Ne.autoFocusOnInputContainer),i.R7$(2),i.Y8G("ngIf",!Ne.smallWidthMode),i.R7$(),i.HbH(Ne.smallWidthMode?"font-body1":"font-body2"),i.FS9("type",Ne.inputType),i.Y8G("ngModel",Ne.query)("nvCaret",i.bMT(9,19,Ne.nvKeyboardOpened$)&&!Ne.isInputFocused),i.BMQ("inputmode","text")("placeholder",Ne.getInputPlaceholder())("tabindex",Ne.activated||Ne.clearTextButtonFocused?null:-1),i.R7$(3),i.Y8G("ngIf",Ne.displayClearIcon&&Ne.query.length>0),i.R7$(),i.Y8G("ngIf",Ne.smallWidthMode))},dependencies:[x.YF,Pe.DJ,P.bT,P.Jj,M.m_,M.An,S.YN,S.me,S.BC,S.tU,S.vS,te.v$,C.wG,C.iV,h.w,h.q,it.tG,it.N5],styles:['.isRtl[_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{transform:scaleX(-1)}html[dir=rtl][_ngcontent-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{--dummy: 0;transform:scaleX(-1)}.hotkey-border[_ngcontent-%COMP%]{border:1px solid #ffffff;padding:4px 8px;font-weight:500;line-height:32px;margin:4px}.constants-position-relative[_ngcontent-%COMP%]{position:relative}.constants-display-none[_ngcontent-%COMP%]{display:none}.search-container[_ngcontent-%COMP%]{position:relative;z-index:100;white-space:initial;min-width:320px}.isLtr[_nghost-%COMP%] .search-container[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .search-container[_ngcontent-%COMP%]{margin-left:auto}html[dir=ltr][_ngcontent-%COMP%] .search-container[_ngcontent-%COMP%]{--dummy3: 0;margin-left:auto}.isRtl[_nghost-%COMP%] .search-container[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .search-container[_ngcontent-%COMP%]{margin-right:auto}html[dir=rtl][_ngcontent-%COMP%] .search-container[_ngcontent-%COMP%]{--dummy3: 0;margin-right:auto}.isLtr[_nghost-%COMP%] .search-container[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .search-container[_ngcontent-%COMP%]{margin-right:auto}html[dir=ltr][_ngcontent-%COMP%] .search-container[_ngcontent-%COMP%]{--dummy4: 0;margin-right:auto}.isRtl[_nghost-%COMP%] .search-container[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .search-container[_ngcontent-%COMP%]{margin-left:auto}html[dir=rtl][_ngcontent-%COMP%] .search-container[_ngcontent-%COMP%]{--dummy4: 0;margin-left:auto}.search-container[_ngcontent-%COMP%] .no-focus-outline[_ngcontent-%COMP%]:focus{outline:0;border:0}.search-container[_ngcontent-%COMP%] .search-input-container[_ngcontent-%COMP%]{display:flex;position:relative;padding:0!important;height:42px;background-color:#292929;margin:auto}.search-container[_ngcontent-%COMP%] .search-input-container[_ngcontent-%COMP%]:before{position:absolute;width:100%;height:100%;border-radius:0;border-style:solid;border-color:#fff3;border-width:1px;box-sizing:border-box;pointer-events:none;z-index:1;content:""}mat-icon[_ngcontent-%COMP%]{color:#fff9;font-size:18px}.search-container[_ngcontent-%COMP%] .search-input-container[_ngcontent-%COMP%] .search-icon[_ngcontent-%COMP%]{color:#fff9;background-color:#292929;transition:opacity .2s ease-in-out;padding:0;min-width:0;width:40px;flex-shrink:0;line-height:40px;display:flex;justify-content:center;align-items:center}.search-container[_ngcontent-%COMP%] .search-input-container[_ngcontent-%COMP%] .search-icon[_ngcontent-%COMP%], .search-container[_ngcontent-%COMP%] .search-input-container[_ngcontent-%COMP%] .clear-icon-button[_ngcontent-%COMP%]{height:auto}.search-container[_ngcontent-%COMP%] .search-input-container[_ngcontent-%COMP%] .active-search-icon[_ngcontent-%COMP%]{color:#fffc}.search-container[_ngcontent-%COMP%] .search-input-container[_ngcontent-%COMP%]{visibility:visible;opacity:1;width:100%;transition:width .2s ease-in-out;max-width:484px;min-width:320px;border-color:#fff3}.search-container[_ngcontent-%COMP%] .search-input-container[_ngcontent-%COMP%] .search-icon[_ngcontent-%COMP%]{opacity:1}.search-container[_ngcontent-%COMP%] .search-input-container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{text-shadow:none;border-radius:0;border-style:solid;border-width:0;width:100%;background-color:#292929;padding-top:2px;padding-bottom:2px;margin:0;outline:none;color:#fffc}.search-container[_ngcontent-%COMP%] .search-input-container[_ngcontent-%COMP%]:focus{outline:none}.search-container[_ngcontent-%COMP%]:not(.nv-keyboard) .search-input-container[_ngcontent-%COMP%]:hover:not(:focus-within){outline:none}.search-container[_ngcontent-%COMP%] .search-input-container[_ngcontent-%COMP%]:focus input[_ngcontent-%COMP%], .search-container[_ngcontent-%COMP%] .search-input-container[_ngcontent-%COMP%]:focus .search-icon[_ngcontent-%COMP%], .search-container[_ngcontent-%COMP%] .search-input-container[_ngcontent-%COMP%]:focus .clear-icon-button[_ngcontent-%COMP%]{background-color:#ffffff52;transition:background-color .75s ease}.search-container[_ngcontent-%COMP%] .search-input-container[_ngcontent-%COMP%]:hover:not(:focus-within) input[_ngcontent-%COMP%], .search-container[_ngcontent-%COMP%] .search-input-container[_ngcontent-%COMP%]:hover:not(:focus-within) .search-icon[_ngcontent-%COMP%], .search-container[_ngcontent-%COMP%] .search-input-container[_ngcontent-%COMP%]:hover:not(:focus-within) .clear-icon-button[_ngcontent-%COMP%]{background-color:#ffffff14}.search-container[_ngcontent-%COMP%] .search-input-container[_ngcontent-%COMP%]:active input[_ngcontent-%COMP%], .search-container[_ngcontent-%COMP%] .search-input-container[_ngcontent-%COMP%]:active .search-icon[_ngcontent-%COMP%], .search-container[_ngcontent-%COMP%] .search-input-container[_ngcontent-%COMP%]:active .clear-icon-button[_ngcontent-%COMP%]{background-color:#fff6}.search-container[_ngcontent-%COMP%]:not(.nv-keyboard) .search-input-container[_ngcontent-%COMP%]:not(:focus):focus-within:after, .search-container.nv-keyboard[_ngcontent-%COMP%] .search-input-container[_ngcontent-%COMP%]:after{position:absolute;width:100%;height:100%;border-bottom:2px solid #76b900;background-clip:padding-box;box-sizing:border-box;pointer-events:none;content:""}.search-container[_ngcontent-%COMP%] .search-input-container[_ngcontent-%COMP%] .search-input[_ngcontent-%COMP%]{caret-color:#fff}.search-container[_ngcontent-%COMP%] .search-input-container[_ngcontent-%COMP%] .search-input[_ngcontent-%COMP%]::placeholder{color:#fff9}.search-container[_ngcontent-%COMP%] .search-input-container[_ngcontent-%COMP%] .clear-icon-button[_ngcontent-%COMP%]{color:#fff9;background-color:#292929}.search-container[_ngcontent-%COMP%] .search-input-container[_ngcontent-%COMP%] input[type=search][_ngcontent-%COMP%]::-webkit-search-cancel-button{display:none}.search-container[_ngcontent-%COMP%] .search-input-toggle-button[_ngcontent-%COMP%]{width:40px}.isLtr[_nghost-%COMP%] .search-container[_ngcontent-%COMP%] .search-input-toggle-button[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .search-container[_ngcontent-%COMP%] .search-input-toggle-button[_ngcontent-%COMP%]{padding-left:8px}html[dir=ltr][_ngcontent-%COMP%] .search-container[_ngcontent-%COMP%] .search-input-toggle-button[_ngcontent-%COMP%]{--dummy1: 0;padding-left:8px}.isRtl[_nghost-%COMP%] .search-container[_ngcontent-%COMP%] .search-input-toggle-button[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .search-container[_ngcontent-%COMP%] .search-input-toggle-button[_ngcontent-%COMP%]{padding-right:8px}html[dir=rtl][_ngcontent-%COMP%] .search-container[_ngcontent-%COMP%] .search-input-toggle-button[_ngcontent-%COMP%]{--dummy1: 0;padding-right:8px}.isLtr[_nghost-%COMP%] .search-container[_ngcontent-%COMP%] .search-input-toggle-button[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .search-container[_ngcontent-%COMP%] .search-input-toggle-button[_ngcontent-%COMP%]{padding-right:8px}html[dir=ltr][_ngcontent-%COMP%] .search-container[_ngcontent-%COMP%] .search-input-toggle-button[_ngcontent-%COMP%]{--dummy2: 0;padding-right:8px}.isRtl[_nghost-%COMP%] .search-container[_ngcontent-%COMP%] .search-input-toggle-button[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .search-container[_ngcontent-%COMP%] .search-input-toggle-button[_ngcontent-%COMP%]{padding-left:8px}html[dir=rtl][_ngcontent-%COMP%] .search-container[_ngcontent-%COMP%] .search-input-toggle-button[_ngcontent-%COMP%]{--dummy2: 0;padding-left:8px}.selected-search-item[_ngcontent-%COMP%]{background-color:#282828cc!important}.search-container.handset[_ngcontent-%COMP%]{min-width:0}.isLtr[_nghost-%COMP%] .search-container.handset[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .search-container.handset[_ngcontent-%COMP%]{margin-left:8px}html[dir=ltr][_ngcontent-%COMP%] .search-container.handset[_ngcontent-%COMP%]{--dummy3: 0;margin-left:8px}.isRtl[_nghost-%COMP%] .search-container.handset[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .search-container.handset[_ngcontent-%COMP%]{margin-right:8px}html[dir=rtl][_ngcontent-%COMP%] .search-container.handset[_ngcontent-%COMP%]{--dummy3: 0;margin-right:8px}.isLtr[_nghost-%COMP%] .search-container.handset[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .search-container.handset[_ngcontent-%COMP%]{margin-right:16px}html[dir=ltr][_ngcontent-%COMP%] .search-container.handset[_ngcontent-%COMP%]{--dummy4: 0;margin-right:16px}.isRtl[_nghost-%COMP%] .search-container.handset[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .search-container.handset[_ngcontent-%COMP%]{margin-left:16px}html[dir=rtl][_ngcontent-%COMP%] .search-container.handset[_ngcontent-%COMP%]{--dummy4: 0;margin-left:16px}.search-container.handset[_ngcontent-%COMP%] .search-input-container[_ngcontent-%COMP%]{max-width:none;min-width:0;background-color:transparent;border-width:0}.search-container.handset[_ngcontent-%COMP%] .search-input-container[_ngcontent-%COMP%]:hover:not(:focus-within), .search-container.handset[_ngcontent-%COMP%] .search-input-container[_ngcontent-%COMP%]:hover:not(:focus-within) input[_ngcontent-%COMP%], .search-container.handset[_ngcontent-%COMP%] .search-input-container[_ngcontent-%COMP%]:hover:not(:focus-within) .clear-icon-button[_ngcontent-%COMP%], .search-container.handset[_ngcontent-%COMP%] .search-input-container[_ngcontent-%COMP%]:focus .clear-icon-button[_ngcontent-%COMP%]{background-color:transparent}.search-container.handset[_ngcontent-%COMP%] .search-input-container[_ngcontent-%COMP%]:focus{background-color:#ffffff52;transition:background-color .75s ease}.search-container.handset[_ngcontent-%COMP%] .search-input-container[_ngcontent-%COMP%] .search-input[_ngcontent-%COMP%]{caret-color:#ffffffb3}.isLtr[_nghost-%COMP%] .search-container.handset[_ngcontent-%COMP%] .search-input-container[_ngcontent-%COMP%] .search-input[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .search-container.handset[_ngcontent-%COMP%] .search-input-container[_ngcontent-%COMP%] .search-input[_ngcontent-%COMP%]{margin-left:8px}html[dir=ltr][_ngcontent-%COMP%] .search-container.handset[_ngcontent-%COMP%] .search-input-container[_ngcontent-%COMP%] .search-input[_ngcontent-%COMP%]{--dummy3: 0;margin-left:8px}.isRtl[_nghost-%COMP%] .search-container.handset[_ngcontent-%COMP%] .search-input-container[_ngcontent-%COMP%] .search-input[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .search-container.handset[_ngcontent-%COMP%] .search-input-container[_ngcontent-%COMP%] .search-input[_ngcontent-%COMP%]{margin-right:8px}html[dir=rtl][_ngcontent-%COMP%] .search-container.handset[_ngcontent-%COMP%] .search-input-container[_ngcontent-%COMP%] .search-input[_ngcontent-%COMP%]{--dummy3: 0;margin-right:8px}.search-container.handset[_ngcontent-%COMP%] .search-input-container[_ngcontent-%COMP%] .search-input[_ngcontent-%COMP%]::placeholder{color:#ffffffb3}.search-container.handset[_ngcontent-%COMP%] .search-input-container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{border:none;color:#ffffff4d;background-color:transparent}.search-container.handset[_ngcontent-%COMP%] .search-input-container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus{color:#ffffffe6}.search-container.handset[_ngcontent-%COMP%] .search-input-container[_ngcontent-%COMP%] input.search-input[_ngcontent-%COMP%]::placeholder{color:#ffffff4d}.search-container.handset[_ngcontent-%COMP%] .search-input-container[_ngcontent-%COMP%] .clear-icon-button[_ngcontent-%COMP%]{background-color:transparent}.search-container.handset[_ngcontent-%COMP%] .search-input-container[_ngcontent-%COMP%] .clear-icon-button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:#ffffffb3}.search-container.handset[_ngcontent-%COMP%] mat-divider[_ngcontent-%COMP%]{border-top-width:2px;border-top-color:#76b900}.tv-view[_nghost-%COMP%] .search-container[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .search-container[_ngcontent-%COMP%]{width:-moz-fit-content;width:fit-content;margin-top:56px;margin-bottom:32px}.tv-view[_nghost-%COMP%] .search-container[_ngcontent-%COMP%] .search-input-container[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .search-container[_ngcontent-%COMP%] .search-input-container[_ngcontent-%COMP%]{height:64px;width:800px;max-width:800px}.tv-view[_nghost-%COMP%] .search-container[_ngcontent-%COMP%] .search-input-container[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .search-container[_ngcontent-%COMP%] .search-input-container[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .search-container[_ngcontent-%COMP%] .search-input-container[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .search-container[_ngcontent-%COMP%] .search-input-container[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{font-size:32px;height:32px;width:32px}.tv-view[_nghost-%COMP%] .search-container[_ngcontent-%COMP%] .search-input-container[_ngcontent-%COMP%]:before, .tv-view [_nghost-%COMP%] .search-container[_ngcontent-%COMP%] .search-input-container[_ngcontent-%COMP%]:before{border-width:2px}.tv-view[_nghost-%COMP%] .search-container[_ngcontent-%COMP%] .search-input-container[_ngcontent-%COMP%] .search-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .search-container[_ngcontent-%COMP%] .search-input-container[_ngcontent-%COMP%] .search-icon[_ngcontent-%COMP%]{height:inherit}.isLtr.tv-view[_nghost-%COMP%] .search-container[_ngcontent-%COMP%] .search-input-container[_ngcontent-%COMP%] .search-icon[_ngcontent-%COMP%], .isLtr.tv-view [_nghost-%COMP%] .search-container[_ngcontent-%COMP%] .search-input-container[_ngcontent-%COMP%] .search-icon[_ngcontent-%COMP%], .isLtr .tv-view[_nghost-%COMP%] .search-container[_ngcontent-%COMP%] .search-input-container[_ngcontent-%COMP%] .search-icon[_ngcontent-%COMP%], .isLtr .tv-view [_nghost-%COMP%] .search-container[_ngcontent-%COMP%] .search-input-container[_ngcontent-%COMP%] .search-icon[_ngcontent-%COMP%], .tv-view .isLtr[_nghost-%COMP%] .search-container[_ngcontent-%COMP%] .search-input-container[_ngcontent-%COMP%] .search-icon[_ngcontent-%COMP%], .tv-view .isLtr [_nghost-%COMP%] .search-container[_ngcontent-%COMP%] .search-input-container[_ngcontent-%COMP%] .search-icon[_ngcontent-%COMP%]{padding-right:16px}html[dir=ltr] .tv-view[_nghost-%COMP%] .search-container[_ngcontent-%COMP%] .search-input-container[_ngcontent-%COMP%] .search-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .search-container[_ngcontent-%COMP%] .search-input-container[_ngcontent-%COMP%] .search-icon[_ngcontent-%COMP%]{--dummy2: 0;padding-right:16px}.isRtl.tv-view[_nghost-%COMP%] .search-container[_ngcontent-%COMP%] .search-input-container[_ngcontent-%COMP%] .search-icon[_ngcontent-%COMP%], .isRtl.tv-view [_nghost-%COMP%] .search-container[_ngcontent-%COMP%] .search-input-container[_ngcontent-%COMP%] .search-icon[_ngcontent-%COMP%], .isRtl .tv-view[_nghost-%COMP%] .search-container[_ngcontent-%COMP%] .search-input-container[_ngcontent-%COMP%] .search-icon[_ngcontent-%COMP%], .isRtl .tv-view [_nghost-%COMP%] .search-container[_ngcontent-%COMP%] .search-input-container[_ngcontent-%COMP%] .search-icon[_ngcontent-%COMP%], .tv-view .isRtl[_nghost-%COMP%] .search-container[_ngcontent-%COMP%] .search-input-container[_ngcontent-%COMP%] .search-icon[_ngcontent-%COMP%], .tv-view .isRtl [_nghost-%COMP%] .search-container[_ngcontent-%COMP%] .search-input-container[_ngcontent-%COMP%] .search-icon[_ngcontent-%COMP%]{padding-left:16px}html[dir=rtl] .tv-view[_nghost-%COMP%] .search-container[_ngcontent-%COMP%] .search-input-container[_ngcontent-%COMP%] .search-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .search-container[_ngcontent-%COMP%] .search-input-container[_ngcontent-%COMP%] .search-icon[_ngcontent-%COMP%]{--dummy2: 0;padding-left:16px}.isLtr.tv-view[_nghost-%COMP%] .search-container[_ngcontent-%COMP%] .search-input-container[_ngcontent-%COMP%] .search-icon[_ngcontent-%COMP%], .isLtr.tv-view [_nghost-%COMP%] .search-container[_ngcontent-%COMP%] .search-input-container[_ngcontent-%COMP%] .search-icon[_ngcontent-%COMP%], .isLtr .tv-view[_nghost-%COMP%] .search-container[_ngcontent-%COMP%] .search-input-container[_ngcontent-%COMP%] .search-icon[_ngcontent-%COMP%], .isLtr .tv-view [_nghost-%COMP%] .search-container[_ngcontent-%COMP%] .search-input-container[_ngcontent-%COMP%] .search-icon[_ngcontent-%COMP%], .tv-view .isLtr[_nghost-%COMP%] .search-container[_ngcontent-%COMP%] .search-input-container[_ngcontent-%COMP%] .search-icon[_ngcontent-%COMP%], .tv-view .isLtr [_nghost-%COMP%] .search-container[_ngcontent-%COMP%] .search-input-container[_ngcontent-%COMP%] .search-icon[_ngcontent-%COMP%]{padding-left:24px}html[dir=ltr] .tv-view[_nghost-%COMP%] .search-container[_ngcontent-%COMP%] .search-input-container[_ngcontent-%COMP%] .search-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .search-container[_ngcontent-%COMP%] .search-input-container[_ngcontent-%COMP%] .search-icon[_ngcontent-%COMP%]{--dummy1: 0;padding-left:24px}.isRtl.tv-view[_nghost-%COMP%] .search-container[_ngcontent-%COMP%] .search-input-container[_ngcontent-%COMP%] .search-icon[_ngcontent-%COMP%], .isRtl.tv-view [_nghost-%COMP%] .search-container[_ngcontent-%COMP%] .search-input-container[_ngcontent-%COMP%] .search-icon[_ngcontent-%COMP%], .isRtl .tv-view[_nghost-%COMP%] .search-container[_ngcontent-%COMP%] .search-input-container[_ngcontent-%COMP%] .search-icon[_ngcontent-%COMP%], .isRtl .tv-view [_nghost-%COMP%] .search-container[_ngcontent-%COMP%] .search-input-container[_ngcontent-%COMP%] .search-icon[_ngcontent-%COMP%], .tv-view .isRtl[_nghost-%COMP%] .search-container[_ngcontent-%COMP%] .search-input-container[_ngcontent-%COMP%] .search-icon[_ngcontent-%COMP%], .tv-view .isRtl [_nghost-%COMP%] .search-container[_ngcontent-%COMP%] .search-input-container[_ngcontent-%COMP%] .search-icon[_ngcontent-%COMP%]{padding-right:24px}html[dir=rtl] .tv-view[_nghost-%COMP%] .search-container[_ngcontent-%COMP%] .search-input-container[_ngcontent-%COMP%] .search-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .search-container[_ngcontent-%COMP%] .search-input-container[_ngcontent-%COMP%] .search-icon[_ngcontent-%COMP%]{--dummy1: 0;padding-right:24px}.tv-view[_nghost-%COMP%] .search-container[_ngcontent-%COMP%] .search-input-container[_ngcontent-%COMP%] .clear-icon-button[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .search-container[_ngcontent-%COMP%] .search-input-container[_ngcontent-%COMP%] .clear-icon-button[_ngcontent-%COMP%]{width:64px}.tv-view[_nghost-%COMP%] .search-container[_ngcontent-%COMP%] .search-input-container[_ngcontent-%COMP%] .clear-icon-button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .search-container[_ngcontent-%COMP%] .search-input-container[_ngcontent-%COMP%] .clear-icon-button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{height:inherit}']})}}return le})()},76438:(St,z,s)=>{"use strict";s.d(z,{Z6:()=>M,bv:()=>P,nX:()=>C});var i=s(78812);const n={Click:{name:"Click",gdprLevel:i.EU.Technical},TextSearch:{name:"TextSearch",gdprLevel:i.EU.Behavioral}};var C=function(x){return x.RecentSearchResult="RecentSearchResult",x.NewSearchResult="NewSearchResult",x.AbandonedSearch="AbandonedSearch",x.PausedSearch="PausedSearch",x}(C||{});class M extends i.YH{constructor(A){super(A),this.name=n.TextSearch.name,this.gdprLevel=n.TextSearch.gdprLevel}}const P=1e3},81262:(St,z,s)=>{"use strict";s.d(z,{BE:()=>n,JM:()=>h,dJ:()=>A,z1:()=>i});var i=function(m){return m[m.None=0]="None",m[m.RecentSearches=1]="RecentSearches",m[m.ResultAvailable=2]="ResultAvailable",m[m.ResultNotAvailable=3]="ResultNotAvailable",m[m.FailedToConnect=4]="FailedToConnect",m[m.IndexNotAvailable=5]="IndexNotAvailable",m[m.EmptyQuery=6]="EmptyQuery",m}(i||{}),n=function(m){return m[m.Click=0]="Click",m[m.Input=1]="Input",m[m.Clear=2]="Clear",m}(n||{}),h=function(m){return m.RecentSearchesStore="recentSearchesStore",m}(h||{});const A="all_locales";!function x(m){for(const l of Object.keys(m)){const r=l.split(/\|/g),u=m[l];delete m[l],r.forEach(v=>{m[v]=u})}}({"en_US|en_GB|da_DK|de_DE|es_ES|es_MX|fi_FI|fr_FR|hu_HU|it_IT|nb_NO|nl_NL|pl_PL|pt_BR|pt_PT|sk_SK|sl_SI|sv_SE|tr_TR|ro_RO|cs_CZ|hr_HR":"Latin","ru_RU|bg_BG|uk_UA":"Cyrillic",th_TH:"Thai",el_GR:"Greek",ko_KR:"Hangul","zh_CHT|zh_CHS|zh_CN|zh_TW":"Chinese",ja_JP:"Japanese",[A]:"AllSupportedLocales"})},8427:(St,z,s)=>{"use strict";s.d(z,{G:()=>ae});var i=s(92602),n=s(81262),h=s(76438),C=s(26513),S=s(85735),M=s(80583),P=s(31315),x=s(43848),A=s(56237),g=s(63997),m=s(26875),r=s(72147),u=s(91384),v=s(14714),E=s(10174),T=s(75707),R=s(65706),B=s(58527),U=s(55269),Y=s(78812);let ae=(()=>{class G{constructor(X,q,Q,ce){this.searchService=q,this.dbCacheService=Q,this.telemetryService=ce,this.searchIndexAvailableSubject=new C.t(!1),this.serverConnectivityStatusSubject=new S.m(1),this.lazySearchIndexingEnabledSubject=new S.m(1),this.maxRecentSearchesCount=5,this.recentSearchesSubject=new S.m(1),this.recentSearches=null,this.recentSearchesStore=null,this.searchResultChangedSubject=new S.m(1),this.searchResultStateChangedSubject=new S.m(1),this.strSearch="SEARCH",this.strRecent="RECENT",this.strNew="NEW",this.clearSearchSub=new M.B7,this.autoSearchTriggerSubject$=new S.m(1),this.logger=X.getLogger("IndexService"),this.triggerSearch$=new M.B7,this.triggerRecentSearchUpdate$=new M.B7,this.triggerBuildSearchIndex$=new M.B7,this.searchActiveState$=new M.B7,this.focusFirstTile$=new M.B7,this._savedSearchQuery="",this._wasSearchIndexingTriggered=!1}get onSearchTriggered(){return this.triggerSearch$.asObservable()}get savedSearchQuery(){return this._savedSearchQuery}set savedSearchQuery(X){this._savedSearchQuery=X}get localSearchResultState(){return this.searchResultState}get wasSearchIndexingTriggered(){return this._wasSearchIndexingTriggered}get onSearchActiveStateChanged(){return this.searchActiveState$.asObservable()}get onFocusFirstTile$(){return this.focusFirstTile$.asObservable()}get onAutoSearchTriggered$(){return this.autoSearchTriggerSubject$.asObservable()}getSearchHierarchy(){return`${this.strSearch}/${this.localSearchResultState===n.z1.RecentSearches?this.strRecent:this.strNew}`}isSearchHierarchy(X){return X?.startsWith(this.strSearch)||!1}init(X,q,Q){return this.searchIndexAvailableSubject.next(!1),this.serverConnectivityStatusSubject.next(!0),this.lazySearchIndexingEnabledSubject.next(Q),this.lazySearchIndexingEnabledSubject.complete(),this.searchService.initialize(X,q)}triggerSearch(){this.triggerSearch$.next(!0)}triggerRecentSearchesUpdateIfSearching(X){this.triggerRecentSearchUpdate$.next(X)}focusFirstTile(){this.focusFirstTile$.next()}triggerAutoSearch(X){this.savedSearchQuery=X,this.autoSearchTriggerSubject$.next()}get onRecentSearchesUpdateTriggered(){return this.triggerRecentSearchUpdate$.asObservable()}updateSearchActiveState(X){this.searchActiveState$.next(X)}setLocalSearchConfig(X){return this.searchService.setSearchConfig(X)}buildStateIndex(X,q,Q){return this.searchService.buildStateIndex(X,q,Q)}setWebSearchCallback(X){this.performWebSearch=X}performWebSearchOperation(X){this.performWebSearch&&this.performWebSearch(X)}setCallbacks(X,q){this.processSearchedResultsCallback=X,this.processRecentResultsCallback=q}setSearchIndexAvailable(X){this.searchIndexAvailableSubject.next(X)}getSearchIndexAvailability(){return this.searchIndexAvailableSubject.asObservable()}isSearchIndexAvailable(){return this.searchIndexAvailableSubject.value}setServerConnectivityStatus(X){this.serverConnectivityStatusSubject.next(X)}isConnectedToServer(){return this.serverConnectivityStatusSubject.asObservable()}isLazySearchIndexingEnabled(){return this.lazySearchIndexingEnabledSubject.asObservable()}isDBUpgradeRequired(X){return!!(X.length>0&&(0,m.isNil)(X[0].telemetryTitle))}loadRecentSearchesCacheFromDB(X){return this.recentSearchesStore=this.dbCacheService.getOrCreateCachedGlobalItem(n.JM.RecentSearchesStore,X),this.recentSearchesStore.sync_().pipe((0,r.n)(()=>{const q=this.recentSearchesStore.recentSearches||[],Q=this.isDBUpgradeRequired(q);return(0,P.zV)([this.processRecentResultsCallback(q),(0,x.of)(Q)])}),(0,u.M)(([q,Q])=>{this.recentSearches=q,this.recentSearchesSubject.next(this.recentSearches)}),(0,r.n)(([q,Q])=>Q&&this.recentSearchesStore.status_===i.tO.Saved?(this.recentSearchesStore.recentSearches=q,this.recentSearchesStore.persist_()):(0,x.of)(!0)),(0,v.W)(q=>(this.logger.error("Error in getting recent searches"+q),this.resetRecentSearches(),(0,x.of)(!1))),(0,E.u)(!0))}getRecentSearches(){return this.recentSearchesSubject.asObservable()}onSearchResultChanged(){return this.searchResultChangedSubject.asObservable()}notifySearchResultChanged(X){this.searchResultChangedSubject.next(X)}onSearchResultStateChanged(){return this.searchResultStateChangedSubject.asObservable()}notifySearchResultStateChanged(X){this.searchResultState=X,this.searchResultStateChangedSubject.next(X)}onTriggerBuildingSearchIndex(){return this.triggerBuildSearchIndex$.asObservable()}triggerBuildingSearchIndex(){return this._wasSearchIndexingTriggered=!0,this.triggerBuildSearchIndex$.next(!0)}resetRecentSearches(){this.recentSearchesSubject.next([]),this.recentSearches=null}loadCurrentUserRecentSearches(X){return X?this.loadRecentSearchesCacheFromDB(X).pipe((0,T.ZZ)(q=>(0,A.T)(()=>!!this.pendingRecentSearchUpdate$,(0,g.v)(()=>this.pendingRecentSearchUpdate$.pipe((0,E.u)(q))),(0,x.of)(q)))):(0,x.of)(!1)}updateCurrentUserRecentSearches(X){if(!this.recentSearches)return void(this.pendingRecentSearchUpdate$=(0,g.v)(()=>this.updateCurrentUserRecentSearches(X)));this.pendingRecentSearchUpdate$=void 0;let q=[];X.isRecentSearch=!0,q=(0,m.filter)(this.recentSearches,function(Q){return Q.ref!==X.ref}),q.unshift(X),q.length>this.maxRecentSearchesCount&&q.pop(),this.recentSearches=q,this.recentSearchesSubject.next(this.recentSearches),this.recentSearchesStore&&this.recentSearchesStore.status_===i.tO.Saved&&(this.recentSearchesStore.recentSearches=q,this.recentSearchesStore.persist_().subscribe())}onUserLoggedOut(){this.recentSearchesSubject.pipe((0,R.s)(1)).subscribe(()=>{setTimeout(()=>this.triggerSearch())}),this.resetRecentSearches()}onUserLoggedIn(X){return this.loadCurrentUserRecentSearches(X)}sendTextSearchTelemetry(X,q){this.initializeTextSearchInfo(X),this.updateTextSearchInfoTopResults(q),this.telemetryService.push(new h.Z6(this.textSearchInfo))}updateRecentSearchesAndSendTelemetry(X,q,Q){const ce={searchType:X.isRecentSearch?h.nX.RecentSearchResult:h.nX.NewSearchResult,searchQuery:Q,selectedResult:X.telemetryTitle,selectedPreview:"",selectedRank:X.indexInCategory};this.updateCurrentUserRecentSearches(X),this.sendTextSearchTelemetry(ce,q)}initializeTextSearchInfo(X){this.textSearchInfo={searchType:"",searchQuery:"",selectedResult:"",selectedPreview:"",selectedRank:0,aggregatedPreviews:"",rank0Result:"",rank1Result:"",rank2Result:"",rank3Result:"",rank4Result:""},this.textSearchInfo=(0,m.merge)(this.textSearchInfo,X)}updateTextSearchInfoTopResults(X){let q=[];(0,m.each)((0,m.range)(0,5),Q=>{X[Q]&&(this.textSearchInfo["rank"+Q+"Result"]=X[Q].telemetryTitle,q.push.apply(q,(0,m.keys)(X[Q].preview)))}),q=(0,m.uniq)(q),this.textSearchInfo.aggregatedPreviews=this.formatAggregatedPreviews(q)}formatAggregatedPreviews(X){let q="";for(const Q of X){const ce=Q+", "+q;if(!(ce.length<h.bv))break;q=ce}return q.slice(0,-2)}clearSearchQuery(){this.savedSearchQuery="",this.clearSearchSub.next()}onClearSearchQuery(){return this.clearSearchSub.asObservable()}static{this.\u0275fac=function(q){return new(q||G)(B.KVO(i.J6),B.KVO(U.S),B.KVO(i.sc),B.KVO(Y.H0))}}static{this.\u0275prov=B.jDH({token:G,factory:G.\u0275fac,providedIn:"root"})}}return G})()},55269:(St,z,s)=>{"use strict";s.d(z,{S:()=>M});var i=s(19392),n=s(75707),h=s(10174),C=s(58527),S=s(92602);let M=(()=>{class P{constructor(A){this.workerLoggingService=A}initialize(A,g){const m=this.workerLoggingService.getLoggerSettings();return this.searchHelper=g,this.initialize$=(0,i.H)(this.searchHelper.initialize(A,m)),this.initialize$}setSearchConfig(A){return this.initialize$.pipe((0,n.ZZ)(()=>this.searchHelper.setSearchConfig(A)),(0,h.u)(!0))}applyPipeline(A){return this.initialize$.pipe((0,n.ZZ)(()=>this.searchHelper.applyPipeline(A)))}buildStateIndex(A,g,m){return this.initialize$.pipe((0,n.ZZ)(()=>this.searchHelper.buildStateIndex(A,g,m)))}performSearch(A){return this.initialize$.pipe((0,n.ZZ)(()=>this.searchHelper.performSearch(A)))}static{this.\u0275fac=function(g){return new(g||P)(C.KVO(S.To))}}static{this.\u0275prov=C.jDH({token:P,factory:P.\u0275fac,providedIn:"root"})}}return P})()},70521:(St,z,s)=>{"use strict";s.d(z,{tD:()=>T,fR:()=>ct,th:()=>dt,lS:()=>X,oY:()=>R});var i=s(80583),n=s(16229),h=s(43848),C=s(19392),S=s(55833),M=s(72147),P=s(10174),x=s(65706),A=s(83915),g=s(75707),m=s(8619),l=s(14714);s(57643);var v=function(Pe){return Pe.Gfn="geforcenow",Pe.Nvapp="nvidiaapplication",Pe}(v||{}),E=function(Pe){return Pe.FetchSuccess="SW_FETCH_SUCCESS",Pe.RuntimeCacheUpdated="SW_RUNTIME_CACHE_UPDATED",Pe}(E||{}),T=function(Pe){return Pe.ETag="etag",Pe.SwCacheBypass="x-sw-cachebypass",Pe.XRequestId="x-request-id",Pe.SwCacheKeyAppendString="sw-cache-key-append-string",Pe.SwCache="sw-cache",Pe.SwNotifyFetch="sw-notify-fetch",Pe.SwNoDataUpdate="sw-no-data-update",Pe}(T||{}),R=function(Pe){return Pe.SkipWaiting="SKIP_WAITING",Pe.GameLaunched="GAME_LAUNCHED",Pe.GameExit="GAME_EXIT",Pe.CloseStreamerSession="CLOSE_STREAM_SESSION",Pe.PushNotification="BROWSER_PUSH_NOTIFICATION",Pe.IpcPushNotification="IPC_PUSH_NOTIFICATION",Pe.PushNotificationTelemetry="PUSH_NOTIFICATION_TELEMETRY",Pe.UiPushNotification="BROWSER_VISIBLE_PUSH_NOTIFICATION",Pe.PushNotificationTracing="PUSH_NOTIFICATION_TRACING",Pe.SharedStorageUpdate="SHARED_STORAGE_UPDATE",Pe.LoggerNotification="LOGGER_NOTIFICATION",Pe.GetClientVersion="GET_CLIENT_VERSION",Pe.SetLoggerSettings="SET_LOGGING_SETTINGS",Pe.GetClientVersionWaitingSW="GET_CLIENT_VERSION_FROM_WAITING_SW",Pe}(R||{}),B=function(Pe){return Pe.INSTALLING="installing",Pe.INSTALLED="installed",Pe.ACTIVATING="activating",Pe.ACTIVATED="activated",Pe.REDUNDANT="redundant",Pe}(B||{}),G=s(58527),k=s(92602);let X=(()=>{class Pe{constructor(vt){this.swSharedStorageUpdate=new i.B7,this.swLoggingUpdate=new i.B7,this.swActivationRequested$=new i.B7,this.swClientVersion=new i.B7,this.logger=vt.getLogger("libraries/service-worker.service"),this.swCacheUpdate$=new i.B7,this.networkFetchSucceeded$=new i.B7,this.swActivated$=new i.B7,this.swUpdateReady$=new i.B7,this.resetSwUpdateCache$=new i.B7,this.swNotifyListener$=new i.B7,this.swPushNotificationListener$=new i.B7,this.swPushNotificationTelemetryListener$=new i.B7,this.swPushNotificationTracing=new i.B7,this.swUpdateReadyCached$=(0,n.h)(this.swUpdateReady$.asObservable(),this.resetSwUpdateCache$).pipe((0,S.t)(1))}get swCacheUpdated(){return this.swCacheUpdate$.asObservable()}get networkResponseReceived(){return this.networkFetchSucceeded$.asObservable()}get swUpdateReady(){return this.swUpdateReady$.asObservable()}get swUpdateReadyCached(){return this.swUpdateReadyCached$}get swActivated(){return this.swActivated$.asObservable()}get swNotifyListener(){return this.swNotifyListener$.asObservable()}get swPushNotificationListener(){return this.swPushNotificationListener$.asObservable()}get swPushNotificationTelemetryListener(){return this.swPushNotificationTelemetryListener$.asObservable()}get swPushNotificationTracingListener(){return this.swPushNotificationTracing.asObservable()}get swSharedStorageUpdate$(){return this.swSharedStorageUpdate.asObservable()}get swLoggingUpdate$(){return this.swLoggingUpdate.asObservable()}get swAssociatedClientVersion(){return this.swClientVersion.asObservable()}initialize(){this.serviceWorkerSupported()?(this.swHandleMessages(),this.swHandleControllerChanges(),this.swHandleUpdates()):this.logger.info("Service worker not supported")}willGFNServiceWorkerHandleRequest(vt,ve){if(ve&&ve===JSON.stringify(!0))return!1;for(const ue in ct.staleWhileRevalidate)if(ct.staleWhileRevalidate.hasOwnProperty(ue)&&ct.staleWhileRevalidate[ue].routePattern.test(vt))return!0;return!1}serviceWorkerSupported(){return"serviceWorker"in navigator}getSWRegistrationInfo(){return this.serviceWorkerSupported()?{isSuccess:window?.SWRegistrationInfo?.isSuccess,error:window?.SWRegistrationInfo?.error}:null}clearSwUpdateCache(){this.logger.info("SW Update Cache: Cleared"),this.resetSwUpdateCache$.next(null)}checkForUpdates(){return this.serviceWorkerSupported()?navigator.serviceWorker.getRegistration().then(vt=>vt?this.swHasUpdate(vt)?(this.logger.info(`Update available. SW in installing state = ${vt.installing}, SW in waiting state = ${vt.waiting}`),vt):(this.logger.info("Explicitly checking for SW update at same location"),vt.update()):Promise.reject("Registration does not exist")).then(vt=>{const ve={updateAvailable:this.swHasUpdate(vt),error:null};return this.logger.info(`SW updateAvailable: ${ve.updateAvailable}`),ve}).catch(vt=>(this.logger.error("SW Update Check: Error",vt.toString()),Promise.resolve({updateAvailable:!1,error:vt}))):Promise.reject("SW Update Check: Browser does not support service workers")}activateServiceWorker(){return this.serviceWorkerSupported()?(0,C.H)(navigator.serviceWorker.getRegistration()).pipe((0,M.n)(vt=>vt?this.swHasUpdate(vt)?vt.installing?(this.logger.info("SW Activate: Waiting for new service worker to be installed"),this.swUpdateReady.pipe((0,P.u)(vt),(0,x.s)(1))):(0,h.of)(vt):(this.logger.info("SW Activate: Nothing to activate"),(0,h.of)(null)):(this.logger.info("SW Activate: No service worker registration"),(0,h.of)(null))),(0,A.T)(vt=>vt?.waiting?(this.logger.info("SW Activate: Requested to activate."),vt.waiting.postMessage({type:R.SkipWaiting}),this.swActivationRequested$.next(),!0):(this.logger.info("SW Activate: No service worker waiting."),!1)),(0,x.s)(1)):(this.logger.info("SW Activate: Browser does not support service workers"),(0,h.of)(!1))}get swActivationRequested(){return this.swActivationRequested$.asObservable()}postMessageSw(vt){this.serviceWorkerSupported()?navigator.serviceWorker.ready.then(ve=>{vt.type===R.SharedStorageUpdate?this.logger.verbose("Calling SW postMessage with: ",vt):this.logger.info("Calling SW postMessage with: ",vt),ve.active?.postMessage({type:vt.type,content:vt.content})}):this.logger.info("SW PostMsg: Browser does not support service workers")}swHasUpdate(vt){return!(!vt.installing&&!vt.waiting)}swHandleMessages(){navigator.serviceWorker.addEventListener("message",vt=>{if(vt.data.type===E.RuntimeCacheUpdated){this.logger.info("CacheUpdated event received from Service Worker: ",vt.data.payload?.requestUrl);const{cacheName:ve,requestUrl:ue,noDataUpdate:et}=vt.data.payload;(0,C.H)(caches.open(ve)).pipe((0,g.ZZ)(se=>se.match(ue)),(0,m.p)(se=>!!se),(0,g.ZZ)(se=>se.json()),(0,l.W)(se=>(this.logger.info("error while checking for cache update",se.toString()),(0,h.of)(null)))).subscribe(se=>{se&&(this.logger.info("SW cache updated",ve),this.swCacheUpdate$.next({name:ve,url:ue,data:se,noDataUpdate:et}))})}else vt?.data.type===R.CloseStreamerSession?(this.logger.info("Msg received from another tab: ",vt.data.type),this.swNotifyListener$.next(vt.data)):vt?.data.type===R.PushNotification?(this.logger.info("Firebase Token received from Service Worker: ",vt.data.type),this.swPushNotificationListener$.next(vt.data)):vt?.data.type===R.PushNotificationTelemetry?(this.logger.info("Telemetry Event received from Service Worker: ",vt.data.type),this.swPushNotificationTelemetryListener$.next(vt.data)):vt?.data.type===R.PushNotificationTracing?(this.logger.info("Telemetry Event received from Service Worker: ",vt.data.type),this.swPushNotificationTracing.next(vt.data)):vt?.data.type===R.SharedStorageUpdate?(this.logger.info("SharedStorageUpdate event received from Service Worker: ",vt.data.type),this.swSharedStorageUpdate.next(vt.data)):vt?.data.type===E.FetchSuccess?(this.logger.info("FetchSuccess event received from Service Worker: ",vt.data.payload?.requestUrl),this.networkFetchSucceeded$.next(vt.data.payload)):vt?.data.type===R.LoggerNotification?(this.logger.info("Logger event received from Service Worker: ",vt.data.type),this.swLoggingUpdate.next(vt.data)):vt?.data.type===R.GetClientVersion?(this.logger.info("Received client version is ",vt.data),this.swClientVersion.next(vt.data.content)):this.logger.info("Unhandled event received from Service Worker ",vt.data)})}swHandleUpdates(){return this.serviceWorkerSupported()?(this.logger.info("SW Updates: Init"),navigator.serviceWorker.getRegistration().then(vt=>{if(!vt)return Promise.reject("SW Updates: Registration does not exist");let ve=this.swIsActive();return this.logger.info(`SW Updates: Registration Exists, First Installation: ${!ve}`),this.swOnUpdateInstalled(vt,ue=>{this.logger.info("SW Updates: Update installed"),this.logger.info("SW Updates: Notifying"),ue.firstInstallation=!ve,this.swUpdateReady$.next(ue),ve=!0}),Promise.resolve()}).catch(vt=>this.logger.error("SW Updates: Error",vt.toString()))):Promise.reject("SW Updates: Browser does not support service workers")}swOnUpdateInstalled(vt,ve){const ue=se=>{se.state===B.INSTALLED&&ve({state:se.state,ts:Date.now()})},et=se=>{se&&(this.logger.info("SW Update Listener: Update found"),ue(se),se.addEventListener("statechange",()=>{this.logger.info("SW Update Listener: New worker state change:",se.state),ue(se)}))};this.logger.info(`SW registration state: active = ${vt.active}, waiting = ${vt.waiting}, installed = ${vt.installing}`),vt?(vt.waiting?(this.logger.info("SW Update Listener: An update is ready"),ve({state:B.INSTALLED,ts:Date.now()})):vt.installing&&et(vt.installing),vt.onupdatefound||(this.logger.info("SW Update Listener: Waiting for any updates to current worker"),vt.addEventListener("updatefound",()=>et(vt.installing)))):this.logger.info("SW Update Listener: No service worker registration")}swIsActive(){return!!navigator.serviceWorker?.controller}swHandleControllerChanges(){if(!this.serviceWorkerSupported()||navigator.serviceWorker.oncontrollerchange)return;this.logger.info("SW Ctrl Change: Init");let vt=this.swIsActive();this.logger.info("SW Ctrl Change: has active service worker -",vt),navigator.serviceWorker.addEventListener("controllerchange",()=>{if(this.logger.info("SW Ctrl Change: New service worker activated"),this.swActivated$.next({firstInstallation:!vt,ts:Date.now()}),!vt)return this.logger.info("SW Ctrl Change: First activation"),void(vt=!0)})}static{this.\u0275fac=function(ve){return new(ve||Pe)(G.KVO(k.J6))}}static{this.\u0275prov=G.jDH({token:Pe,factory:Pe.\u0275fac,providedIn:"root"})}}return Pe})();const q=v.Gfn,Q=1440,ce=60*Q;var Ee=function(Pe){return Pe.LCARS="lcars",Pe.LCARSStatic="lcarsStatic",Pe.LCARSUserAccount="lcarsUserAccount",Pe.LCARSClientStrings="lcarsClientStrings",Pe.ServiceUrls="service",Pe.ServerInfo="server",Pe.RConfig="rconfig",Pe.GxTarget="gxtarget",Pe.Subscriptions="subscriptions",Pe.Telemetry="telemetry",Pe.Offline="offline",Pe.GfcFeedbacks="gfcFeedbacks",Pe.PNSNotifications="pnsNotifications",Pe.LoginWallData="loginwalldata",Pe.LoginWallStrings="loginwallstrings",Pe.OverallGfnSupportedLanguages="overallGfnSupportedLanguages",Pe.RootAndMall="rootAndMall",Pe}(Ee||{});const ct={redirectSanitizer:{rootAndMall:{name:Ee.RootAndMall,cacheName:`${q}-${Ee.RootAndMall}-v1`,routePattern:new RegExp("^/(mall/)?$")}},staleWhileRevalidate:{lcars:{name:Ee.LCARS,cacheName:`${q}-${Ee.LCARS}-v1`,routePattern:/https:\/\/([a-zA-Z0-9_.-])+\/graphql\?requestType=panels/,expiry:{maxEntries:10,maxAgeSeconds:14*ce,purgeOnQuotaError:!0}},lcarsStatic:{name:Ee.LCARSStatic,cacheName:`${q}-${Ee.LCARSStatic}-v1`,routePattern:/https:\/\/([a-zA-Z0-9_.-])+\/graphql\?requestType=staticAppData/,expiry:{maxEntries:5,maxAgeSeconds:14*ce,purgeOnQuotaError:!0}},lcarsUserAccount:{name:Ee.LCARSUserAccount,cacheName:`${q}-${Ee.LCARSUserAccount}-v1`,routePattern:/https:\/\/([a-zA-Z0-9_.-])+\/graphql\?requestType=userAccount/,expiry:{maxEntries:2,maxAgeSeconds:14*ce,purgeOnQuotaError:!0}},lcarsClientStrings:{name:Ee.LCARSClientStrings,cacheName:`${q}-${Ee.LCARSClientStrings}-v1`,routePattern:/https:\/\/([a-zA-Z0-9_.-])+\/graphql\?requestType=clientStrings/,expiry:{maxEntries:2,maxAgeSeconds:14*ce,purgeOnQuotaError:!0}},serviceUrls:{name:Ee.ServiceUrls,cacheName:`${q}-${Ee.ServiceUrls}-v1`,routePattern:/https:\/\/([a-zA-Z0-9_.-])+(\/v1\/serviceUrls)/,expiry:{maxEntries:10,maxAgeSeconds:14*ce,purgeOnQuotaError:!0}},server:{name:Ee.ServerInfo,cacheName:`${q}-${Ee.ServerInfo}-v1`,routePattern:/https:\/\/([a-zA-Z0-9_.-])+(\/v2\/serverInfo)/,expiry:{maxEntries:10,maxAgeSeconds:14*ce,purgeOnQuotaError:!0}},subscriptions:{name:Ee.Subscriptions,cacheName:`${q}-${Ee.Subscriptions}-v1`,routePattern:/https:\/\/([a-zA-Z0-9_.-])+(\/v4\/subscriptions)/,expiry:{maxEntries:20,maxAgeSeconds:7*ce,purgeOnQuotaError:!0},flushCacheOnResponseCodes:[404]},loginwall:{name:Ee.LoginWallData,cacheName:`${q}-${Ee.LoginWallData}-v1`,routePattern:/https:\/\/([a-zA-Z0-9_.-])+\/graphql\?requestType=loginWallData/,expiry:{maxEntries:2,maxAgeSeconds:7*ce,purgeOnQuotaError:!0}},loginwallstrings:{name:Ee.LoginWallStrings,cacheName:`${q}-${Ee.LoginWallStrings}-v1`,routePattern:/https:\/\/([a-zA-Z0-9_.-])+\/graphql\?requestType=loginWallStrings/,expiry:{maxEntries:2,maxAgeSeconds:7*ce,purgeOnQuotaError:!0}},overallGfnSupportedLanguages:{name:Ee.OverallGfnSupportedLanguages,cacheName:`${q}-${Ee.OverallGfnSupportedLanguages}-v1`,routePattern:/https:\/\/([a-zA-Z0-9_.-])+\/graphql\?requestType=overallGfnSupportedLanguages/,expiry:{maxEntries:1,maxAgeSeconds:14*ce,purgeOnQuotaError:!0}}},networkFirst:{},networkOnly:{telemetry:{name:Ee.Telemetry,cacheName:`${q}-${Ee.Telemetry}-v1`,routePattern:/https:\/\/events\.gfe(stage)?\.nvidia\.com\/v1\.0\/events\/json\?immediateRequest=true/,maxRetentionTime:Q},gfcFeedbacks:{name:Ee.GfcFeedbacks,cacheName:`${q}-${Ee.GfcFeedbacks}-v1`,routePattern:/https:\/\/telemetry\.gfe(stage)?\.nvidia\.com\/gfc\/v4\.0\//,maxRetentionTime:Q},pnsNotifications:{name:Ee.PNSNotifications,cacheName:`${q}-${Ee.PNSNotifications}-v1`,routePattern:/https:\/\/(stg.pns.nvidiagrid.net)?(pns.geforcenow.com)?\/v1\/unregister/,maxRetentionTime:Q}}},Ge=v.Nvapp,Je=86400;var Ke=function(Pe){return Pe.LCARS="lcars",Pe.GFWSLDriverContent="gfwslDriverContent",Pe.GFWSLArticleContent="gfwslArticleContent",Pe.GFWSLInstaller="gfwslInstaller",Pe.GFWSLProfile="gfwslProfile",Pe.Telemetry="telemetry",Pe.Offline="offline",Pe.AllAppsMetaData="allAppsMetaData",Pe}(Ke||{});const dt={staleWhileRevalidate:{lcars:{name:Ke.LCARS,cacheName:`${Ge}-${Ke.LCARS}-v1`,routePattern:/https:\/\/([a-zA-Z0-9_.-])+\/graphql\?requestType=panels/,expiry:{maxEntries:10,maxAgeSeconds:14*Je,purgeOnQuotaError:!0}},gfwslDriverContent:{name:Ke.GFWSLDriverContent,cacheName:`${Ge}-${Ke.GFWSLDriverContent}-v1`,routePattern:/https:\/\/gfwsl[a-zA-Z0-9_.-\/]+getDispDrvrDtlsByDevid\//,expiry:{maxEntries:10,maxAgeSeconds:14*Je,purgeOnQuotaError:!0}},gfwslProfile:{name:Ke.GFWSLProfile,cacheName:`${Ge}-${Ke.GFWSLProfile}-v1`,routePattern:/https:\/\/gfwsl[a-zA-Z0-9_.-\/]+targetGfeAchievements\//,expiry:{maxEntries:10,maxAgeSeconds:14*Je,purgeOnQuotaError:!0}},gfwslInstaller:{name:Ke.GFWSLInstaller,cacheName:`${Ge}-${Ke.GFWSLInstaller}-v1`,routePattern:/https:\/\/gfwsl[a-zA-Z0-9_.-\/]+getCurrentGFEClientHtmlDefault\//,expiry:{maxEntries:10,maxAgeSeconds:14*Je,purgeOnQuotaError:!0}},gfwslArticleContent:{name:Ke.GFWSLArticleContent,cacheName:`${Ge}-${Ke.GFWSLArticleContent}-v1`,routePattern:/https:\/\/gfwsl[a-zA-Z0-9_.-\/]+getGfeCntntNode\//,expiry:{maxEntries:30,maxAgeSeconds:14*Je,purgeOnQuotaError:!0}},appMetadata:{name:Ke.AllAppsMetaData,cacheName:`${Ge}-${Ke.AllAppsMetaData}-v1`,routePattern:/https:\/\/([a-zA-Z0-9_.-])+\/graphql\?requestType=allAppsMetaData/,expiry:{maxEntries:10,maxAgeSeconds:14*Je,purgeOnQuotaError:!0}}},networkFirst:{},networkOnly:{}}},81111:(St,z,s)=>{"use strict";s.d(z,{Il:()=>C,lO:()=>S});var i=s(58527),C=function(M){return M.NOT_ATTEMPTED="NOT_ATTEMPTED",M.NOT_APPLICABLE="NOT_APPLICABLE",M.SUCCESS="SUCCESS",M.FAILED="FAILED",M}(C||{});const S=new i.nKC("StorageConfig")},56197:(St,z,s)=>{"use strict";s.d(z,{y:()=>k});var i=s(26875),n=s(85735),h=s(26513),C=s(43848),S=s(93181),M=s(31315),P=s(59859),x=s(14714),A=s(65706),g=s(8619),m=s(75707),l=s(83915),r=s(72147),u=s(91384),v=s(10174),E=s(92602),T=s(20924),R=s(81111),B=s(58527),U=T.Or.Common.Sharedstorage.OperationType;const Y="sharedStore";let ae=(()=>{class X{constructor(Q,ce){this.dbService=Q,this.bridgeService=ce}readFromSharedStorage(Q){return this.dbService.getGlobalStore(Y).getItem(Q[0]).pipe((0,m.ZZ)(ce=>{if(!ce)return this.makeError(204,"Data not found");if(1===Q.length)return(0,C.of)(ce);{const te=(0,i.get)(ce,Q.slice(1),null);return null!==te?(0,C.of)(te):this.makeError(204,"Data not found")}}),(0,x.W)(ce=>this.makeError(500,"IndexedDB Error: "+JSON.stringify(ce))))}writeToSharedStorage(Q,ce){return this.dbService.getGlobalStore(Y).getItem(Q[0]).pipe((0,l.T)(te=>1===Q.length?ce:(0,i.setWith)(te||{},Q.slice(1),ce,Object)),(0,m.ZZ)(te=>this.executePostCacheUpdateCommand(U.Write,Q,te).pipe((0,l.T)(()=>te))),(0,m.ZZ)(te=>this.dbService.getGlobalStore(Y).setItem(Q[0],te)),(0,m.ZZ)(()=>(0,C.of)(!0)),(0,x.W)(te=>this.makeError(500,"IndexedDB Error during write: "+JSON.stringify(te))))}removeFromSharedStorage(Q){return this.dbService.getGlobalStore(Y).getItem(Q[0]).pipe((0,m.ZZ)(ce=>{let Ee,te=ce||{};return 1===Q.length?Ee=this.dbService.getGlobalStore(Y).removeItem(Q[0]):(te=(0,i.unset)(te,Q.slice(1)),Ee=this.dbService.getGlobalStore(Y).setItem(Q[0],te)),Ee}),(0,m.ZZ)(()=>this.executePostCacheUpdateCommand(U.Remove,Q)),(0,x.W)(ce=>this.makeError(500,"IndexedDB Error during remove: "+JSON.stringify(ce))))}getCacheOfSharedStorage(){return this.dbService.getGlobalStore(Y).getAllItemsByCursor().pipe((0,m.ZZ)(Q=>this.executePostCacheUpdateCommand(U.Cache,[],Q).pipe((0,l.T)(()=>Q))),(0,x.W)(Q=>this.makeError(500,"IndexedDB Error during cache operation: "+JSON.stringify(Q))))}executePostCacheUpdateCommand(Q,ce,te){return E.zk.isBrowserPlatform()?this.bridgeService.executeCommand(T.Ts.Common.Sharedstorage.PostCacheUpdate,{operationType:Q,path:ce,cacheUpdateData:te??{}}).pipe((0,A.s)(1),(0,v.u)(!0),(0,x.W)(Ee=>this.makeError(500,"Error during execution of post-cache update command"+JSON.stringify(Ee)))):(0,C.of)(!0)}makeError(Q,ce){return(0,P.$)({success:!1,code:Q,error:ce})}static{this.\u0275fac=function(ce){return new(ce||X)(B.KVO(E.at),B.KVO(E.NZ))}}static{this.\u0275prov=B.jDH({token:X,factory:X.\u0275fac,providedIn:"root"})}}return X})();const G=["migrationState"];let k=(()=>{class X{constructor(Q,ce,te,Ee,it){this.bridgeService=Q,this.nativeEventService=te,this.indexedDBUtilService=Ee,this.persistToJSONKeys=[],this.shouldUseJSON=!1,this.migrationStateSubject=new n.m(1),this.initialReadDoneSubject=new h.t(!1),this.logger=ce.getLogger("libraries/shared-storage"),this.cachedSharedStorage$=new n.m(1),this.isInitialized=!1,this.isCEFPlatform=E.zk.isCefPlatform(),this.isCEFPlatform?(this.shouldUseJSON=it?.shouldUseJSON,this.persistToJSONKeys=it?.keysToPersistInJSON):this.setMigrationState(R.Il.NOT_APPLICABLE)}initialize(){this.logger.info("init");const Q=this.indexedDBUtilService.getCacheOfSharedStorage().pipe((0,x.W)(te=>(this.logger.error(`Error while reading IndexedDB, ${te}`),(0,C.of)({})))),ce=this.isCEFPlatform?this.bridgeService.executeCommand(T.Ts.Common.Sharedstorage.Cache).pipe((0,x.W)(te=>(this.logger.error("Error getting cached JSON data",te),(0,C.of)({})))):(0,C.of)({});this.isCEFPlatform?(0,S.p)([ce,Q]).subscribe(([te,Ee])=>{this.cachedSharedStorage$.next(this.mergeStorageData(te,Ee)),this.initialReadDoneSubject.next(!0)}):Q.pipe((0,A.s)(1)).subscribe(te=>{this.cachedSharedStorage$.next(te),this.initialReadDoneSubject.next(!0)}),this.initialReadDoneSubject.asObservable().pipe((0,g.p)(te=>te),(0,m.ZZ)(te=>this.nativeEventService.get$(E.D4.SharedStorageUpdate,E.Jm.Types.HandlerEventType.StructuredWindowEvent)),(0,l.T)(te=>JSON.parse(te)),(0,r.n)(te=>this.isCEFPlatform?(0,M.zV)([(0,C.of)(te),Q]).pipe((0,l.T)(([Ee,it])=>this.mergeStorageData(Ee,it))):(0,C.of)(te)),(0,x.W)(te=>(this.logger.error("error receiving native event",te),this.cachedSharedStorage$.pipe((0,A.s)(1))))).subscribe(te=>{this.logger.info("shared storage cache updated"),this.cachedSharedStorage$.next(te)}),this.isInitialized=!0}mergeStorageData(Q,ce){let te=Q??{};return ce?.migrationState?.state===R.Il.SUCCESS&&(te={...te,...ce}),te}setMigrationState(Q){this.migrationStateSubject.next(Q)}getMigrationState$(){return this.migrationStateSubject.asObservable()}readBlock(Q){return this.isInitialized||this.initialize(),this.cachedSharedStorage$.pipe((0,A.s)(1),(0,m.ZZ)(ce=>{const te=(0,i.get)(ce,Q.split("/"));return te?(0,C.of)(te):(0,P.$)({code:204})}),(0,x.W)(ce=>(this.logReadError(Q,ce),(0,C.of)({}))))}logReadError(Q,ce){switch(ce.code){case 404:this.logger.info("No shared storage file found, creating a new one.");break;case 204:this.logger.info(`No entry for ${Q} exists. Defaulting to empty object.`);break;default:this.logger.error(`Error (${ce.code}) ${ce.message}. Defaulting to empty object for path ${Q}.`)}}writeBlock(Q,ce,te){const Ee=this.writeBlockInternal(Q,ce).pipe((0,A.s)(1),(0,u.M)(it=>{this.logger.info("write status to shared storage for path",Q,it)}),(0,x.W)(it=>(this.logger.error("error writing to shared storage for path",Q,it),(0,C.of)(!1))));return this.isInitialized||this.initialize(),this.cachedSharedStorage$.pipe((0,A.s)(1),(0,m.ZZ)(it=>(this.cachedSharedStorage$.next((0,i.setWith)(it,Q.split("/"),ce,Object)),te?Ee:(Ee.subscribe(),(0,C.of)(!0)))))}writeBlockInternal(Q,ce){return this.getMigrationState$().pipe((0,A.s)(1),(0,m.ZZ)(te=>{const Ee=Q.split("/");return this.shouldUseJSONStorage(Ee,te)?this.bridgeService.executeCommand(T.Ts.Common.Sharedstorage.Write,{path:Ee,data:ce}):this.indexedDBUtilService.writeToSharedStorage(Ee,ce)}))}removeBlock(Q){return this.isInitialized||this.initialize(),this.cachedSharedStorage$.pipe((0,A.s)(1),(0,l.T)(ce=>{const te=(0,i.unset)(ce,Q);return this.cachedSharedStorage$.next(ce),this.removeBlockInternal(Q).subscribe(),te}))}removeBlockInternal(Q){return this.getMigrationState$().pipe((0,A.s)(1),(0,m.ZZ)(ce=>{const te=Q.split("/");return this.shouldUseJSONStorage(te,ce)?this.executeRemoveFromJSONSharedStore(Q):this.indexedDBUtilService.removeFromSharedStorage(te)}))}executeRemoveFromJSONSharedStore(Q){return this.bridgeService.executeCommand(T.Ts.Common.Sharedstorage.Remove,{path:Q.split("/")}).pipe((0,v.u)(!0),(0,x.W)(ce=>(204===ce.code?this.logger.warn(`No entry for ${Q} exists. Removal failed.`):this.logger.error(`Error (${ce.code}) ${ce.message}.`),(0,C.of)(!1))))}getSharedStorageKeys(){return this.isInitialized||this.initialize(),this.cachedSharedStorage$.pipe((0,A.s)(1),(0,l.T)(Q=>Object.keys(Q)))}loadMigrationState(){return this.indexedDBUtilService.readFromSharedStorage(G).pipe((0,l.T)(Q=>Q&&Q.state?Q.state:R.Il.NOT_ATTEMPTED),(0,x.W)(Q=>(this.logger.error("Error loading migration state",Q),(0,C.of)(R.Il.NOT_ATTEMPTED))))}saveMigrationStateToIndexedDB(Q){return this.indexedDBUtilService.writeToSharedStorage(G,{state:Q}).pipe((0,x.W)(ce=>(this.logger.error("Error saving migration state",ce),(0,C.of)(!1))))}initializeMigration(Q=!1){return this.isCEFPlatform?Q?(this.logger.info("Skipping shared storage migration as requested and setting migration state to NOT_ATTEMPTED"),this.setMigrationState(R.Il.NOT_ATTEMPTED),(0,C.of)(void 0)):this.loadMigrationState().pipe((0,r.n)(ce=>ce===R.Il.NOT_ATTEMPTED||ce===R.Il.FAILED?this.performMigration():(this.setMigrationState(ce),(0,C.of)(void 0)))):(this.logger.info("Skipping shared storage migration as its not applicable for NON-CEF platforms"),this.setMigrationState(R.Il.NOT_APPLICABLE),(0,C.of)(void 0))}performMigration(){return this.logger.info("Running Shared Storage Migration ..."),this.migrateKeys().pipe((0,r.n)(Q=>{const ce=Q?R.Il.SUCCESS:R.Il.FAILED;return Q||this.logger.error("Migration failed. Continuing with JSON file for shared storage..."),this.setMigrationState(ce),this.saveMigrationStateToIndexedDB(ce)}),(0,x.W)(Q=>(this.logger.error("Error during shared storage migration",Q),this.setMigrationState(R.Il.FAILED),this.saveMigrationStateToIndexedDB(R.Il.FAILED))),(0,l.T)(()=>{}))}migrateKeys(){const Q=Date.now();return this.bridgeService.executeCommand(T.Ts.Common.Sharedstorage.Cache).pipe((0,r.n)(ce=>{const te=[];return Object.keys(ce).forEach(Ee=>{this.persistToJSONKeys.includes(Ee)||te.push(this.indexedDBUtilService.writeToSharedStorage(Ee.split("/"),ce[Ee]).pipe((0,l.T)(it=>({key:Ee,result:it})),(0,x.W)(it=>(this.logger.error(`Failed writing key '${Ee}' to IndexedDB`,it),(0,C.of)({key:Ee,result:!1})))))}),0===te.length?(0,C.of)(!0):(0,M.zV)(te).pipe((0,A.s)(1),(0,l.T)(Ee=>{const it=Ee.every(Fe=>!0===Fe.result);return it&&Ee.forEach(({key:Fe})=>{this.executeRemoveFromJSONSharedStore(Fe).subscribe()}),this.logger.info("Execution time for migration script (ms): ",Date.now()-Q),this.isInitialized=!1,it}))}),(0,x.W)(ce=>(this.logger.error("Error migrating shared storage to IndexedDB",ce),(0,C.of)(!1))))}shouldUseJSONStorage(Q,ce){return this.shouldUseJSON&&(ce===R.Il.FAILED||ce===R.Il.NOT_ATTEMPTED||ce===R.Il.SUCCESS&&this.persistToJSONKeys.includes(Q[0]))}static{this.\u0275fac=function(ce){return new(ce||X)(B.KVO(E.NZ),B.KVO(E.J6),B.KVO(E.dU),B.KVO(ae),B.KVO(R.lO,8))}}static{this.\u0275prov=B.jDH({token:X,factory:X.\u0275fac,providedIn:"root"})}}return X})()},72945:(St,z,s)=>{"use strict";s.d(z,{yQ:()=>i.y});var i=s(56197);s(20924),s(81111)},20812:(St,z,s)=>{"use strict";s.d(z,{ie:()=>Je,X$:()=>h,BF:()=>nn,hr:()=>i,l4:()=>C});class i{constructor(){}}var n=s(58527);let h=(()=>{class Ue{static{this.\u0275fac=function(Ht){return new(Ht||Ue)}}static{this.\u0275prov=n.jDH({token:Ue,factory:Ue.\u0275fac})}}return Ue})();var C=function(Ue){return Ue.LoginAlreadyInProgress="Login Already In Progress",Ue.OpenOAuthUrlStarted="Open OAuth url started",Ue.OpenOAuthUrlCompleted="Open OAuth url completed",Ue.LoginStarted="Login Started",Ue.LoginCompleted="Login Completed",Ue.LoginRedirectCompleted="Login redirect completed",Ue.LoginAbortedByUser="Login Aborted: User Cancelled Login",Ue.LoginAbortedAlreadyLoggedIn="Login Aborted: Already Logged In",Ue.LoginFailed="Login Failed",Ue.LoginFailedNoRetry="Login Failed No Retry",Ue.LoginFailedToStart="Login failed to Start",Ue.LogoutStarted="Logout Started",Ue.LogoutCompleted="Logout Completed",Ue.LogoutFailed="Logout Failed",Ue.LoginInProgressNeedDisplayCode="Login Started Need Display Code",Ue.LoginNotReturningFromLoginPage="Login not returning from login page",Ue}(C||{}),S=function(Ue){return Ue.NOT_LOGGED_IN="Not Logged In, Must login",Ue.USER_OFFLINE="User is Offline",Ue.ALREADY_LOGGED_IN="Already logged in",Ue.AUTH_ERROR="Auth Error",Ue.AGE_RESTRICTED="age_restricted",Ue.ACCOUNT_LOCKED="account_locked",Ue.HTTP_START_FAILED="Http Server start failed",Ue.CLIENT_TOKEN_FAIL="Client token url access failed",Ue.OAUTH_DATA_EMPTY="JSON parsing fialed for OAUTH Data",Ue.STARFLEET_REDIRECT_FAIL="Failure on Starfleet Redirect Page",Ue.REDEEM_AUTHCODE_FAILED="Failuer in redeeming auth code",Ue.NONCE_VALIDATION_FAILED="Nonce validation failed",Ue.ACCOUNT_INACTIVE="account_inactive",Ue.LOGIN_CANCELLED_BY_USER="User pressed back from login page",Ue.LOGOUT_NOT_SUPPORTED="logout_not_supported",Ue.LOGOUT_GENERIC_ERROR="logout_generic_error",Ue.LOGIN_SILENT_LOGIN_FAILED="silent_login_failed",Ue}(S||{}),M=function(Ue){return Ue.Browser="Browser",Ue.Cef="Cef",Ue.Android="Android",Ue}(M||{}),P=s(61142),x=s(94485),A=s(85735),g=s(43848),m=s(59859),l=s(36466),r=s(3496),u=s(91384),v=s(75707),E=s(65706),T=s(83915),R=s(99047),B=s(14714),U=s(55833),Y=s(86447),ae=s(8619),G=s(43615),k=s(26875),X=s(20924),q=s(92602),Q=s(71152);const Qe={clientToken:null,accessToken:null,idToken:null,user:{sub:"",idp_name:"",idp_id:"",external_id:"",preferred_username:"",consent:{trackTechnicalData:!1,trackBehavioralData:!1},isAuthenticated:!1},clientTokenExpiry:null,accessTokenExpiry:null,idTokenExpiry:null},ct="starfleet";var Ge=function(Ue){return Ue.DBName="starfleet",Ue.DBKey="starfleetSession",Ue}(Ge||{}),nt=function(Ue){return Ue.SharedStorage="sharedStorage",Ue.IndexedDB="indexedDB",Ue}(nt||{}),Je=function(Ue){return Ue[Ue.Failure=0]="Failure",Ue[Ue.Success=1]="Success",Ue[Ue.Cancel=2]="Cancel",Ue[Ue.CloseOnFailure=3]="CloseOnFailure",Ue}(Je||{}),ze=s(56197);class Ke{static encode(wt){const gt=new Ke;return gt.data=window.btoa(encodeURIComponent(JSON.stringify(wt))),gt.authProvider=ct,gt}static decode(wt){return JSON.parse(decodeURIComponent(window.atob(wt.data)))}}class Ve{constructor(wt,gt,Ht=nt.SharedStorage){this.idTokenRefreshUnderDuration=wt,this.data=(0,k.isNil)(gt)?Object.assign({},Qe):gt,this.setStorageType(Ht)}static loadFrom(wt,gt){let bn;return bn=wt?wt instanceof ze.y?nt.SharedStorage:nt.IndexedDB:nt.SharedStorage,(bn===nt.IndexedDB?wt.getItem(Ge.DBKey):wt.readBlock("starfleetSession")).pipe((0,v.ZZ)(Bt=>{const Le=Bt?.authProvider===ct?Ke.decode(Bt):null,V=new Ve(gt,Le,bn);return(0,k.isEmpty)(Le)?bn===nt.IndexedDB?V.writeToDb(wt):V.writeTo(wt):(0,g.of)(V)}))}setStorageType(wt){this.storageType=wt===nt.IndexedDB?nt.IndexedDB:nt.SharedStorage}writeTo(wt){return this.storageType===nt.IndexedDB?this.writeToDb(wt):wt.writeBlock("starfleetSession",Ke.encode(this.data),!0).pipe((0,T.T)(()=>this))}writeToDb(wt){return wt.setItem(Ge.DBKey,Ke.encode(this.data)).subscribe(),(0,g.of)(this)}hasClientToken(){return!(0,k.isNil)(this.data.clientToken)}isClientTokenValid(){return this.hasClientToken()&&this.data.clientTokenExpiry>Date.now()}hasClientTokenExpired(){return this.hasClientToken()&&this.data.clientTokenExpiry<=Date.now()}hasAccessToken(){return!(0,k.isNil)(this.data.accessToken)}isAccessTokenValid(){return this.hasClientToken()&&this.data.accessTokenExpiry>Date.now()}isIdTokenValid(){return 0===this.data.idTokenExpiry||this.hasClientToken()&&this.data.idTokenExpiry>Date.now()+this.idTokenRefreshUnderDuration}}var $e=s(5798),dt=s(76449),Pe=s(14709);const J="Starfleet",vt="KVStore",ve=3e4,ue=2,et=1e3;let se=(()=>{class Ue{constructor(gt,Ht,bn,Ut,Bt,Le,V){this.starfleetConfig=gt,this.endpointFactory=Ht,this.bridgeService=bn,this.systemInfoService=Ut,this.appConfig=Bt,this.distributedtracingUtilService=V;const{defaultRetries:de=ue,defaultTimeBetweenRetries:ge=et,defaultTimeout:Ft=ve}=gt,Kt={config:{maxRetries:de,timeout:Ft,timeBetweenRetries:ge}};this.endpointAccessToken=this.endpointFactory.createEndpoint(Kt),this.endpointClientToken=this.endpointFactory.createEndpoint(Kt),this.endpointUserInfo=this.endpointFactory.createEndpoint(Kt),this.endpointKVStore=this.endpointFactory.createEndpoint(Kt),this.logger=Le.getLogger("libraries/starfleet-http.service")}requestDeviceAuthorize(gt,Ht,bn,Ut){let Bt=(new x.Nl).set("client_id",this.starfleetConfig.clientId).set("scope",this.starfleetConfig.scope).set("device_id",gt).set("display_name",Ht);bn&&(Bt=Bt.set("idp_id",bn));const Le={headers:{"Content-Type":"application/x-www-form-urlencoded; charset=utf-8"},body:Bt.toString(),reportRequestData:{originalService:J,serviceUseCase:"Device_Authorization"}},de=this.endpointAccessToken.post(`${this.starfleetConfig.url}/device/authorize`,Le);return this.distributedtracingUtilService.handleHttpEndpointSpan(de,Le,dt.pB.StarfleetGetAccessToken,Ut)}getAccessToken(gt,Ht,bn){if((0,k.isNil)(gt)||0===gt.trim().length)return(0,m.$)(new Error("invalid or missing clientToken parameter"));if((0,k.isNil)(Ht)||0===Ht.trim().length)return(0,m.$)(new Error("invalid or missing sub parameter"));const Bt={headers:{"Content-Type":"application/x-www-form-urlencoded; charset=utf-8"},body:(new x.Nl).set("grant_type","urn:ietf:params:oauth:grant-type:client_token").set("client_token",gt).set("client_id",this.starfleetConfig.clientId).set("sub",Ht).toString(),reportRequestData:{originalService:J,serviceUseCase:"Get_Access_Token"}},Le=this.endpointAccessToken.post(`${this.starfleetConfig.url}/token`,Bt);return this.distributedtracingUtilService.handleHttpEndpointSpan(Le,Bt,dt.pB.StarfleetGetAccessToken,bn)}getAccessTokenFromDeviceCode(gt,Ht){if((0,k.isNil)(gt)||0===gt.trim().length)return(0,m.$)(new Error("invalid or missing clientToken parameter"));const Ut={headers:{"Content-Type":"application/x-www-form-urlencoded; charset=utf-8"},body:(new x.Nl).set("grant_type","urn:ietf:params:oauth:grant-type:device_code").set("device_code",gt).set("client_id",this.starfleetConfig.clientId).toString(),reportRequestData:{originalService:J,serviceUseCase:"Get_Access_Token"}},Bt=this.endpointAccessToken.post(`${this.starfleetConfig.url}/token`,Ut);return this.distributedtracingUtilService.handleHttpEndpointSpan(Bt,Ut,dt.pB.StarfleetGetAccessToken,Ht)}getUserInfo(gt,Ht){if((0,k.isNil)(gt)||0===gt.trim().length)return(0,m.$)(new Error("invalid or missing accessToken parameter"));const bn={headers:this.getStarfleetAuthorizeHeaders(gt),reportRequestData:{originalService:J,serviceUseCase:"Get_User_Info"}},Ut=this.endpointUserInfo.get(`${this.starfleetConfig.url}/userinfo`,bn);return this.distributedtracingUtilService.handleHttpEndpointSpan(Ut,bn,dt.pB.StarfleetGetUserInfo,Ht)}getClientToken(gt,Ht){if((0,k.isNil)(gt)||0===gt.trim().length)return(0,m.$)(new Error("invalid or missing accessToken parameter"));const bn={headers:this.getStarfleetAuthorizeHeaders(gt),reportRequestData:{originalService:J,serviceUseCase:"Get_Client_Token"}},Ut=this.endpointClientToken.get(`${this.starfleetConfig.url}/client_token`,bn);return this.distributedtracingUtilService.handleHttpEndpointSpan(Ut,bn,dt.pB.StarfleetGetClientToken,Ht)}redeemAuthCode(gt,Ht,bn,Ut){if(!gt?.trim()?.length)return(0,m.$)(new Error("invalid or missing auth code parameter"));if(!Ht?.trim()?.length)return(0,m.$)(new Error("invalid or missing redirectUri parameter"));if(!bn?.trim()?.length)return(0,m.$)(new Error("invalid or missing codeVerifier parameter"));const Le={headers:{"Content-Type":"application/x-www-form-urlencoded; charset=utf-8"},body:(new x.Nl).set("grant_type","authorization_code").set("code",gt).set("redirect_uri",Ht).set("code_verifier",bn).toString(),reportRequestData:{originalService:J,serviceUseCase:"Get_Access_Token"}},V=this.endpointAccessToken.post(`${this.starfleetConfig.url}/token`,Le);return this.distributedtracingUtilService.handleHttpEndpointSpan(V,Le,dt.pB.StarfleetGetAccessToken,Ut)}deleteClientTokens(gt,Ht){if((0,k.isNil)(gt)||0===gt.trim().length)return(0,m.$)(new Error("invalid or missing accessToken parameter"));const bn={params:{level:"client"},headers:this.getStarfleetAuthorizeHeaders(gt),reportRequestData:{originalService:J,serviceUseCase:"Delete_Client_Data"}},Ut=this.endpointClientToken.delete(`${this.starfleetConfig.url}/assets/v2/Tokens`,bn);return this.distributedtracingUtilService.handleHttpEndpointSpan(Ut,bn,dt.pB.StarfleetDeleteClientToken,Ht)}getStarfleetAuthorizeHeaders(gt){return{[$e.SA.authorization]:`Bearer ${gt}`}}getClientData(gt,Ht,bn){if((0,k.isNil)(gt)||0===gt.trim().length)return(0,m.$)(new Error("invalid or missing idToken parameter"));const Ut={headers:this.getKVStoreAuthorizeHeaders(gt),reportRequestData:{originalService:vt,serviceUseCase:"Get_Client_Data"}},Bt=this.formatKeyValStoreUrl(`${this.starfleetConfig.keyValueServiceUrl}/clientData`,Ht),Le=this.endpointKVStore.get(Bt,Ut);return this.distributedtracingUtilService.handleHttpEndpointSpan(Le,Ut,dt.pB.KVStoreGetClientData,bn)}deleteClientData(gt,Ht,bn,Ut){if((0,k.isNil)(gt)||0===gt.trim().length)return(0,m.$)(new Error("invalid or missing idToken parameter"));const Bt={headers:this.getKVStoreAuthorizeHeaders(gt),reportRequestData:{originalService:vt,serviceUseCase:"Delete_Client_Data"}},Le=this.formatKeyValStoreUrl(`${this.starfleetConfig.keyValueServiceUrl}/clientData`,[Ht],bn),V=this.endpointKVStore.delete(Le,Bt);return this.distributedtracingUtilService.handleHttpEndpointSpan(V,Bt,dt.pB.KVStoreDeleteClientData,Ut)}setClientData(gt,Ht,bn,Ut){if((0,k.isNil)(gt)||0===gt.trim().length)return(0,m.$)(new Error("invalid or missing idToken parameter"));const Bt={headers:this.getKVStoreAuthorizeHeaders(gt),reportRequestData:{originalService:vt,serviceUseCase:"Set_Client_Data"},body:{key:Ht,value:bn}},Le=this.endpointKVStore.post(`${this.starfleetConfig.keyValueServiceUrl}/clientData`,Bt);return this.distributedtracingUtilService.handleHttpEndpointSpan(Le,Bt,dt.pB.KVStoreSetClientData,Ut)}appendClientData(gt,Ht,bn,Ut){if((0,k.isNil)(gt)||0===gt.trim().length)return(0,m.$)(new Error("invalid or missing idToken parameter"));const Bt={headers:this.getKVStoreAuthorizeHeaders(gt),reportRequestData:{originalService:vt,serviceUseCase:"Set_Client_Data"},body:{key:Ht,value:bn}},Le=this.endpointKVStore.put(`${this.starfleetConfig.keyValueServiceUrl}/clientData`,Bt);return this.distributedtracingUtilService.handleHttpEndpointSpan(Le,Bt,dt.pB.KVStoreAppendClientData,Ut)}formatKeyValStoreUrl(gt,Ht,bn){if((0,k.isEmpty)(Ht))return gt;const Ut=[];return Ht.forEach(Bt=>{Ut.push(`key=${Bt}`)}),bn&&bn.forEach(Bt=>{Ut.push(`value=${Bt}`)}),encodeURI(`${gt}?${Ut.join("&")}`)}getKVStoreAuthorizeHeaders(gt){return{[$e.SA.authorization]:`GFNJWT ${gt}`}}static{this.\u0275fac=function(Ht){return new(Ht||Ue)(n.KVO(h),n.KVO($e.t),n.KVO(q.NZ),n.KVO(q.zW),n.KVO(Pe.oO),n.KVO(q.J6),n.KVO(dt.Z1))}}static{this.\u0275prov=n.jDH({token:Ue,factory:Ue.\u0275fac,providedIn:"root"})}}return Ue})();var Ce=s(36877),be=s(56237),rt=s(80583),me=s(19392),le=s(10174),Xe=s(40198);const Ne="GfnOauthUrlData";let ye=(()=>{class Ue{constructor(gt,Ht,bn,Ut){this.bridgeService=Ht,this.distributedTracingUtilService=Ut,this.isBrowserPlatform=!1,this.httpSubscription=null,this.authWindow=null,this.isSameTabLoginFeatureEnabled=!1,this.authSaveDataNotifySubject=new A.m(1),this.logger=bn.getLogger("starfleet/o-auth"),this.isBrowserPlatform=q.zk.isBrowserPlatform(),this.isSameTabLoginFeatureEnabled=gt.sameTabLogin}sameTabAuthStarted(){return this.authSaveDataNotifySubject.asObservable()}emitAuthStartNotification(gt){this.authSaveDataNotifySubject.next(gt)}oAuthLogin(gt,Ht,bn,Ut,Bt,Le,V,de,ge){if(this.isBrowserPlatform)return this.browserClientOAuthLogin(gt,Ht,bn,Ut,Bt,Le,V,de,ge);let Ft,Wt;if(ge)Ft=(0,g.of)(ge.url),Wt=ge.observable;else{let Kt;[Kt,Wt]=this.startHttpServer(gt,Ht),Ft=Kt.pipe((0,T.T)(cn=>gt.redirectUrl.replace("{portnumber}",cn.toString())))}return Ft.pipe((0,v.ZZ)(Kt=>this.openOAuthUrl(gt,Ht,bn,Ut,Kt,Bt,null,null,de)),(0,v.ZZ)(Kt=>Wt.pipe((0,T.T)(cn=>this.handleHttpRequest(cn)),(0,T.T)(cn=>(cn.oAuthUrl=Kt,cn)))),(0,u.M)(Kt=>{this.closeHttpSpan(Kt,Kt.oAuthUrl.span,Kt.oAuthUrl.url)}))}browserClientOAuthLogin(gt,Ht,bn,Ut,Bt,Le,V,de,ge){const Ft=!(!de||!de.silentLoginHelperInstance),Wt=this.openOAuthUrl(gt,Ht,bn,Ut,null,Bt,Le,V,de);return this.isSameTabLoginFeatureEnabled&&!Ft?Wt.pipe((0,le.u)(null)):Wt.pipe((0,v.ZZ)(Kt=>{this.logger.info("Received response");const cn=(0,Ce.R)(window,"message");return(0,be.T)(()=>Ft,cn.pipe((0,Xe.w)(gt.maxWaitTimeSSO)),cn).pipe((0,T.T)(En=>({event:En,oAuthUrl:Kt})),(0,B.W)(En=>(this.logger.info("Error occurred during silent login:",En),(0,m.$)(En))))}),(0,ae.p)(Kt=>this.validateMessageEvent(Kt.event)),(0,T.T)(Kt=>{const cn=this.getOAuthLoginData(Kt.event);if(!cn)throw this.logger.error("oAuthLoing Data is null ",cn),S.OAUTH_DATA_EMPTY;if(cn.oAuthUrl=Kt.oAuthUrl,this.logger.info("Captured OAuth data via post message: ",cn.error),this.closeHttpSpan(cn,Kt.oAuthUrl.span,Kt.oAuthUrl.url),Ft)de.silentLoginHelperInstance.closeIframe(cn.oAuthUrl.ifrmEl);else if(!ge?.skipSuccessRedirect){const En=new URL(gt.onCompleteRedirectUrl);gt.redirectParams&>.redirectParams.forEach(kn=>{kn in cn&&En.searchParams.append(kn,cn[kn])}),Kt.oAuthUrl.oAuthWindow.location.href=En.href}return cn}),(0,E.s)(1))}openOAuthUrl(gt,Ht,bn,Ut,Bt,Le,V,de,ge){const Ft=!(!ge||!ge.silentLoginHelperInstance);let Wt=(0,g.of)(null);return this.buildStarfleetUrl(gt,Ht,bn,Bt,Le,ge).pipe((0,v.ZZ)(Kt=>{let cn;const En=this.distributedTracingUtilService.startSpan(dt.pB.StarfleetOAuth);return cn=gt.addLogintracer?this.distributedTracingUtilService.getFormattedUrlForHttpPopupSpan(Kt.url,En):Kt.url,V?(this.authWindow=V,this.authWindow.location.href=cn):!Ft&&this.isSameTabLoginFeatureEnabled?(de||this.logger.error("returnLocationUrl Argument is empty ",this.isSameTabLoginFeatureEnabled,de),this.logger.info("overwriting login URL"),this.emitAuthStartNotification(C.LoginStarted),this.authSaveDataNotifySubject.pipe((0,E.s)(1)).subscribe(kn=>{this.logger.info("Received notification for ",kn),Kt.returnUrl=de,window.sessionStorage.setItem(Ne,JSON.stringify(Kt)),window.open(cn,"_self")})):Ft?Wt=ge.silentLoginHelperInstance.openIframe(cn):gt.useNativeAuthCommands?this.bridgeService.executeCommand(X.Ts.Common.Nativeauth.initiateLogIn,{url:cn}).pipe((0,E.s)(1)).subscribe():this.authWindow=window.open(cn,"_blank"),this.logger.info("login window opened with url",cn),Ut&&Ut.next(C.OpenOAuthUrlCompleted),Kt.url=cn,Kt.span=En,Kt.oAuthWindow=this.authWindow,Ft?Wt.pipe((0,T.T)(kn=>(Kt.ifrmEl=kn,Kt))):(0,g.of)(Kt)}))}closeHttpSpan(gt,Ht,bn){gt&>.error?this.distributedTracingUtilService.closeHttpPopupSpan(Ht,!0,{errorCode:gt.error,errorText:gt.error,failedUrl:bn}):this.distributedTracingUtilService.closeHttpPopupSpan(Ht,!1,{errorCode:"",errorText:"",failedUrl:bn})}startHttpServer(gt,Ht,bn=[]){const Ut=new rt.B7,Bt=new rt.B7;return this.httpSubscription=this.bridgeService.executeCommand(X.Ts.Common.Httpserver.StartHttpServer,{ports:gt.portNumbers,redirectUrl:gt.onCompleteRedirectUrl,redirectParams:this.getRedirectParams(bn,gt.redirectParams,Ht)}).subscribe(Le=>{switch(this.logger.info("httpresponse recieved"),(0,k.get)(Le,"callbackReason")){case"serverCreated":Ut.next((0,k.get)(Le,"portNumber")),Ut.complete();break;case"httpRequest":Bt.next(Le.url),Bt.complete(),this.stopHttpServer();break;case"httpRequestAborted":Bt.error(S.LOGIN_CANCELLED_BY_USER),this.stopHttpServer()}},Le=>{this.logger.error("error starting httpserver",Le),Ut.error(S.HTTP_START_FAILED),Bt.error(S.HTTP_START_FAILED)}),[Ut,Bt]}getRedirectParams(gt,Ht,bn){const Ut=gt,Bt=[];return gt.forEach(Le=>Bt.push(Le.split("=")[0])),Ht.forEach(Le=>{Le.split("=")[0]in Bt||Ut.push(Le)}),Ut.push(`ui_locales=${bn}`),Ut}handleHttpRequest(gt){const Ht={};return gt&&new URL(gt).searchParams.forEach((Ut,Bt)=>{Ht[Bt]=Ut}),Ht}b64url(gt){return btoa(String.fromCharCode.apply(null,gt)).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}buildStarfleetUrl(gt,Ht,bn,Ut,Bt,Le){let V=gt.useAuthorizationCodeFlow?":server/authorize?response_type=code&device_id=:deviceId&scope=:scope&client_id=:clientId&redirect_uri=:redirectUri&ui_locales=:locale&nonce=:nonce&prompt=select_account&code_challenge=:codeChallenge&code_challenge_method=S256":":server/authorize?response_mode=query&response_type=id_token+token&device_id=:deviceId&scope=:scope&client_id=:clientId&redirect_uri=:redirectUri&ui_locales=:locale&nonce=:nonce&prompt=select_account";V=V.replace(":server",gt.url),V=V.replace(":clientId",gt.clientId),V=V.replace(":scope",encodeURIComponent(gt.scope));let de="";de=Ut||gt.redirectUrl,V=V.replace(":redirectUri",encodeURIComponent(de)),V=V.replace(":locale",Ht),V=V.replace(":deviceId",bn);const ge=this.generateNonce();if(V=V.replace(":nonce",ge),Le){if(!Le.ssoSharedPageData?.idp_id||!Le.ssoSharedPageData?.login_hint)return this.logger.error("Missing login hints for silent login"),(0,m.$)("Missing login hints for silent login");Le.silentLoginHelperInstance&&(V=V.replace("select_account","none")),V+="&idp_id="+encodeURIComponent(Le.ssoSharedPageData.idp_id),V+="&login_hint="+encodeURIComponent(Le.ssoSharedPageData.login_hint)}let Ft=null,Wt=null;if(gt.useAuthorizationCodeFlow){const Kt=window.crypto.getRandomValues(new Uint8Array(32));Wt=this.b64url(Kt);const cn=(new TextEncoder).encode(Wt);Ft=(0,me.H)(window.crypto.subtle.digest("SHA-256",cn)).pipe((0,T.T)(En=>{const kn=this.b64url(new Uint8Array(En));return V=V.replace(":codeChallenge",kn),V}))}else Ft=(0,g.of)(V);return Ft.pipe((0,T.T)(Kt=>(!(0,k.isNil)(Bt)&&!V.includes("idp_id")&&(V=V+"&idp_id="+Bt),{url:V,codeVerifier:Wt,redirectUrl:de,nonce:ge})))}generateNonce(){let gt=Date.now();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(bn){const Ut=(gt+16*Math.random())%16|0;return gt=Math.floor(gt/16),("x"===bn?Ut:3&Ut|8).toString(16)})}cancelOAuthLogin(gt,Ht,bn){let Ut=null,Bt=null;return bn?(this.stopHttpServer(),Bt=(0,g.of)("")):[Ut,Bt]=this.startHttpServer(gt,Ht,["error=cancelled"]),this.authWindow&&(this.authWindow.close(),this.authWindow=null),Bt.pipe((0,T.T)(Le=>this.handleHttpRequest(Le)))}stopHttpServer(){this.httpSubscription&&(this.httpSubscription.unsubscribe(),this.httpSubscription=null,this.bridgeService.executeCommand(X.Ts.Common.Httpserver.StopHttpServer).subscribe(gt=>this.logger.info("success stopping httpserver",gt),gt=>this.logger.error("error stopping httpserver",gt)))}validateMessageEvent(gt){if("no_localstorage_supported"===gt.data.key)throw this.logger.error("Starfleet Redirect page failure ",gt),S.STARFLEET_REDIRECT_FAIL;return!(!gt||!gt.data||"oauth"!==gt.data.key||gt.origin!==window.location.origin)}getOAuthLoginData(gt){const Ht=this.isSameTabLoginFeatureEnabled?"oauth":(0,k.get)(gt,"data.key"),bn=window.localStorage.getItem(Ht);if(window.localStorage.removeItem(Ht),this.logger.info("Extracted key for reading oAuthLogin data ",Ht),!bn)return null;try{return JSON.parse(bn).data}catch{return this.logger.error("malformed access code object",bn),null}}readAndValidateoAuthLoginData(){const gt=this.getOAuthLoginData();if(gt){const Ht=window.sessionStorage.getItem(Ne);if(window.sessionStorage.removeItem(Ne),Ht)try{gt.oAuthUrl=JSON.parse(Ht)}catch{this.logger.error("malformed access code object",Ht)}}return this.logger.info("Received oAuth Data on return from login ",gt),gt}static{this.\u0275fac=function(Ht){return new(Ht||Ue)(n.KVO(h),n.KVO(q.NZ),n.KVO(q.J6),n.KVO(dt.Z1))}}static{this.\u0275prov=n.jDH({token:Ue,factory:Ue.\u0275fac,providedIn:"root"})}}return Ue})();var Ot=s(72945);const sn="markLogoutInitiated",dn="Logout Initiated",yn="logoutNotSupportedUrl";let At=(()=>{class Ue extends i{constructor(gt,Ht,bn,Ut,Bt,Le,V,de,ge,Ft,Wt,Kt){super(),this.config=gt,this.starfleetHttpService=bn,this.oAuthService=Ut,this.sharedStorage=Bt,this.localeService=Le,this.networkStatus=de,this.systemInfoService=ge,this.errorHandler=Ft,this.bridgeService=Wt,this.dbService=Kt,this.storageType=nt.SharedStorage,this.SAFE_RETRY_COUNT=5,this.initSub=new A.m(1),this.authStatusSubject=new A.m(1),this.loginSubscription=null,this.deviceIdSub=null,this.useCachedUser=!1,this.firstRefreshDone=!1,this.errorInfo={error_code:"",error_description:"",error_uri:""},this.isSessionRefreshable=!0,this.isNextClientTokenRefreshAllowed=!0,this.deviceDisplayCode=null,this.skipOpeningLogoutUrl=!1,this.isSameTabLoginFeatureEnabled=!1,this.idTokenRefreshUnderDuration=0,this.logger=Ht.getLogger("starfleet/desktop"),this.logger.info("constructing"),this.useDeviceAuthLogin=!!gt?.useDeviceAuthLogin,this.skipOpeningLogoutUrl=!!gt?.skipOpeningLogoutUrl,this.starfleetUserSubscription=V.createStream(this.getCurrentUser.bind(this)),this.isSameTabLoginFeatureEnabled=this.config.sameTabLogin,this.idTokenRefreshUnderDuration=this.config.idTokenRefreshUnderDuration??0,this.storageType=this.config.storageType??nt.SharedStorage,this.idTokenRefreshUnderDuration<0&&(this.idTokenRefreshUnderDuration=0),this.storageType===nt.IndexedDB&&(this.globalStore=this.dbService.getGlobalStore(Ge.DBName))}getAuthStatus(){return this.authStatusSubject.asObservable()}initialize(gt=!1,Ht=!1,bn){this.logger.info(`initializing session: ${gt}, user: ${Ht}, id_token?: ${!!bn}`),this.useCachedUser=Ht;const Ut=this.oAuthService.readAndValidateoAuthLoginData();Ut?this.attemptLoginAtInit(Ut):this.loadSessionFromStorage().pipe((0,u.M)(()=>this.initSub.next(!0)),(0,v.ZZ)(()=>this.getOrRefreshSession(!gt,!0,bn))).subscribe(()=>this.logger.info("initialized success")),this.checkIfReturnFromLogout(),this.deviceIdSub=this.getDeviceId(),this.deviceIdSub.subscribe(),this.accountStatusChanged.pipe((0,E.s)(1)).subscribe()}getDeviceId(){return this.systemInfoService.getSystemInfo([q.Lu.DeviceId]).pipe((0,T.T)(gt=>gt.DeviceId),(0,R.$)(),(0,B.W)(gt=>(this.logger.error("failed to get deviceId",gt),(0,g.of)(""))),(0,U.t)())}handleLoginError(gt){switch(gt){case S.ALREADY_LOGGED_IN:this.logger.info("user already logged in"),this.loginSubject.next(C.LoginAbortedAlreadyLoggedIn),this.loginSubject.complete();break;case S.AUTH_ERROR:this.logger.info("Auth error in login"),this.loginSubject.next(C.LoginFailed),this.loginSubject.complete();break;case S.ACCOUNT_LOCKED:case S.AGE_RESTRICTED:this.logger.info("Auth error in login: ",gt),this.loginSubject.next(C.LoginFailedNoRetry),this.loginSubject.complete();break;case S.HTTP_START_FAILED:this.logger.info("Http Start in error Login"),this.loginSubject.next(C.LoginFailedToStart),this.loginSubject.complete();break;case S.CLIENT_TOKEN_FAIL:this.logger.info("Client token url access failed"),this.errorInfo.error_description=S.CLIENT_TOKEN_FAIL,this.loginSubject.next(C.LoginFailed),this.loginSubject.complete();break;case S.OAUTH_DATA_EMPTY:this.logger.info("JSON parsing fialed for OAUTH Data"),this.errorInfo.error_description=S.OAUTH_DATA_EMPTY,this.loginSubject.next(C.LoginFailed),this.loginSubject.complete();break;case S.STARFLEET_REDIRECT_FAIL:this.logger.info("JSON parsing fialed for OAUTH Data"),this.errorInfo.error_description=S.STARFLEET_REDIRECT_FAIL,this.loginSubject.next(C.LoginFailed),this.loginSubject.complete();break;case S.LOGIN_CANCELLED_BY_USER:this.logger.info("canceled by user"),this.errorInfo.error_description=S.LOGIN_CANCELLED_BY_USER,this.loginSubject.next(C.LoginAbortedByUser),this.loginSubject.complete();break;default:this.logger.info("unknown error in login",gt),this.loginSubject.next(C.LoginFailed),this.loginSubject.complete()}}cancelLogin(gt=!0){return this.logger.info("cancelling login"),this.loginSubject&&!1===this.loginSubject.isStopped&&(this.loginSubject.next(C.LoginAbortedByUser),this.loginSubject.complete()),this.loginSubscription&&(this.loginSubscription.unsubscribe(),this.loginSubscription=null),this.oAuthService.cancelOAuthLogin(this.config,this.localeService.getLocale(),gt)}sameTabAuthStarted(){return this.oAuthService.sameTabAuthStarted()}login(gt){return this.loginSubject&&!this.loginSubject.isStopped?(0,m.$)(C.LoginAlreadyInProgress):(this.loginSubject=new A.m(1),this.logger.info("login started"),this.loginSubject.next(C.LoginStarted),this.loginSubscription=this.getOrRefreshSession().pipe((0,v.ZZ)(Ht=>!gt.force&&Ht.isAccessTokenValid()?(0,m.$)(S.ALREADY_LOGGED_IN):this.deviceIdSub),(0,v.ZZ)(Ht=>this.useDeviceAuthLogin?(gt.deviceName||(this.logger.error("Missing device name in off-device login flow, falling back to default value"),gt.deviceName="unknown"),this.performDeviceLogin(Ht,gt.deviceName,gt.idpId)):(this.loginSubject.next(C.OpenOAuthUrlStarted),this.oAuthService.oAuthLogin(this.config,this.localeService.getLocale(),Ht,this.loginSubject,gt.idpId,gt.preCreatedWindow,gt.returnLocationUrl,gt.silentLoginInfo,gt.redirect))),(0,R.$)(),(0,v.ZZ)(Ht=>!Ht||(0,k.isEmpty)(Ht)?(this.logger.info("received empty oauth login data ",this.isSameTabLoginFeatureEnabled),(0,g.of)(null)):(this.loginSubject.next(C.LoginRedirectCompleted),this.logger.info("OAuth login complete, starting to retrive token"),this.loginSubject.next(C.LoginStarted),this.attemptLogin(Ht))),(0,v.ZZ)(Ht=>Ht?this.refreshUser():(0,g.of)(Ht)),(0,u.M)(Ht=>{Ht?this.loginSubject.next(C.LoginCompleted):this.isSameTabLoginFeatureEnabled||this.logger.error("session is null"),this.loginSubject.complete()})).subscribe(l.l,this.handleLoginError.bind(this)),this.loginSubject.asObservable())}updatePiplConfigUrls(gt){this.logger.info("Updating PIPL config urls: ",gt),Object.assign(this.config,gt)}checkIfReturnFromLogout(){let Ht,gt=null;if(window.sessionStorage.getItem(sn)===dn){window.sessionStorage.removeItem(sn),this.logger.info("Returning from logout");const bn=new URL(window.location.href).searchParams.get("error");Ht=window.sessionStorage.getItem(yn),window.sessionStorage.removeItem(yn),bn&&(this.logger.info("Logout failed with error ",bn),gt=bn===S.LOGOUT_NOT_SUPPORTED?S.LOGOUT_NOT_SUPPORTED:S.LOGOUT_GENERIC_ERROR),this.authStatusSubject.next({authReturnState:C.LogoutCompleted,error:gt,logoutNotSupportedRedirectUrl:Ht})}else this.logger.info("Not returning from logout")}completeLoginAtInit(gt,Ht){gt===C.LoginFailed&&(this.session=new Ve(this.idTokenRefreshUnderDuration,null,this.storageType)),this.initSub.next(!0),this.authStatusSubject.next({authReturnState:gt,error:Ht}),this.refreshUser(),this.loginSubject.next(gt),this.loginSubject.complete()}attemptLoginAtInit(gt){!this.loginSubject||this.loginSubject.isStopped?(this.loginSubject=new A.m(1),this.logger.info("OAuth login complete, starting to retrive token"),this.loginSubject.next(C.LoginStarted),this.attemptLogin(gt).pipe((0,u.M)(Ht=>{this.completeLoginAtInit(C.LoginCompleted,null)},Ht=>{this.completeLoginAtInit(C.LoginFailed,Ht)})).subscribe()):this.logger.info("Login already in progress")}retryDeviceLogin(gt,Ht,bn){return bn.pipe((0,v.ZZ)((Ut,Bt)=>{const Le=Bt+1;return console.log("attempt number: ",Le),Le>gt?(0,m.$)(Ut):"authorization_pending"===Ut?.rawResponse?.error?.error?(0,r.O)(1e3*Ht):"slow_down"===Ut?.rawResponse?.error?.error?(0,r.O)(1e3*(Ht+5)):(0,m.$)(Ut)}))}waitForDeviceLogin(gt){const Ht=Math.max(1,Math.floor(gt.expires_in/gt.interval)-1);return(0,r.O)(1e3*gt.interval).pipe((0,v.ZZ)(()=>this.starfleetHttpService.getAccessTokenFromDeviceCode(gt.device_code)),(0,Y.l)(bn=>this.retryDeviceLogin(Ht,gt.interval,bn)),(0,T.T)(bn=>({error:"",error_description:"",access_token:bn.access_token,token_type:bn.token_type,expires_in:bn.expires_in,id_token:bn.id_token})))}performDeviceLogin(gt,Ht,bn){return this.starfleetHttpService.requestDeviceAuthorize(gt,Ht,bn).pipe((0,R.$)(),(0,v.ZZ)(Ut=>(this.deviceDisplayCode={url:Ut.verification_uri,url_complete:Ut.verification_uri_complete,user_code:Ut.user_code},this.loginSubject.next(C.LoginInProgressNeedDisplayCode),(!Ut.interval||Ut.interval<=0)&&(Ut.interval=5),this.waitForDeviceLogin(Ut))))}getStarfleetLogoutURL(gt,Ht){return":server/logout?id_token_hint=:idToken&ui_locales=:locale".replace(":server",this.config.url).replace(":idToken",gt).replace(":locale",Ht)}getStarfleetLogoutURLSameTab(gt,Ht,bn){return":server/logout?id_token_hint=:idToken&ui_locales=:locale&post_logout_redirect_uri=:redirect_uri".replace(":server",this.config.logoutUrl).replace(":idToken",gt).replace(":locale",Ht).replace(":redirect_uri",bn)}saveRequiredDataAndOpenLogoutUrl(gt,Ht,bn){return this.oAuthService.sameTabAuthStarted().subscribe(Ut=>{this.logger.info("Received notification for ",Ut),window.sessionStorage.setItem(sn,dn),window.sessionStorage.setItem(yn,Ht),window.open(this.getStarfleetLogoutURLSameTab(gt,this.localeService.getLocale(),bn),"_self")}),this.oAuthService.emitAuthStartNotification(C.LogoutStarted),(0,g.of)(!0)}logout(gt,Ht,bn,Ut=!1){if(!1===this.session.isClientTokenValid())return this.logger.info("already logged out, completing the logout process"),(0,g.of)(C.LogoutCompleted);if(this.logoutSubject&&!this.logoutSubject.isStopped)return this.logger.info("logout already in progress"),this.logoutSubject.asObservable();this.logoutSubject=new A.m(1),this.logger.info("Logging out user."),this.logoutSubject.next(C.LogoutStarted);const Bt=this.session?.data?.idToken;if(!(gt||this.skipOpeningLogoutUrl||this.isSameTabLoginFeatureEnabled||Ut)){const de=this.getStarfleetLogoutURL(Bt,this.localeService.getLocale());this.config.useNativeAuthCommands?this.bridgeService.executeCommand(X.Ts.Common.Nativeauth.initiateLogOut,{url:de}).pipe((0,E.s)(1)).subscribe():window.open(de,"_blank")}return this.deleteClientToken(!1,gt).pipe((0,B.W)(de=>(this.logger.error("delete token failed with error: ",de),(0,g.of)(null))),(0,v.ZZ)(()=>this.storeSession(new Ve(this.idTokenRefreshUnderDuration,null,this.storageType))),(0,v.ZZ)(()=>this.skipOpeningLogoutUrl||Ut||!this.isSameTabLoginFeatureEnabled?this.refreshUser():this.saveRequiredDataAndOpenLogoutUrl(Bt,Ht,bn))).subscribe(()=>{this.logger.info("log out complete."),this.logoutSubject.next(C.LogoutCompleted),this.logoutSubject.complete()},de=>{this.logger.error("log out failed with error:",de),this.logoutSubject.next(C.LogoutFailed),this.logoutSubject.complete(),this.skipOpeningLogoutUrl||Ut||!this.isSameTabLoginFeatureEnabled?this.refreshUser():this.saveRequiredDataAndOpenLogoutUrl(Bt,Ht,bn)}),this.logoutSubject.asObservable()}deleteClientToken(gt=!1,Ht){return(Ht?(0,g.of)(Ht):this.getAccessToken(gt)).pipe((0,v.ZZ)(bn=>this.starfleetHttpService.deleteClientTokens(bn)),(0,B.W)(bn=>(this.logger.error("Got error while deleting client token.",bn),this.handleAuthError(bn,gt,this.deleteClientToken.bind(this)))))}refreshUser(){return this.firstRefreshDone=!0,this.starfleetUserSubscription.refresh()}get accountStatusChanged(){let gt;return this.starfleetUserSubscription.get$().pipe((0,ae.p)(Ht=>(0,k.isNil)(gt)||!(0,k.isEqual)(gt.sub,Ht.sub)||!(0,k.isEqual)(gt.consent?.trackBehavioralData,Ht.consent?.trackBehavioralData)||!(0,k.isEqual)(gt.consent?.trackTechnicalData,Ht.consent?.trackTechnicalData)||!(0,k.isEqual)(gt.consent?.targetedAdsOptIn,Ht.consent?.targetedAdsOptIn)||!(0,k.isNil)(Ht?.age)),(0,u.M)(Ht=>{gt=Ht}))}getStarfleetSession(){return this.sessionSubject.asObservable()}get isUserLoggedIn(){return this.initSub.pipe((0,T.T)(()=>this.session.isClientTokenValid()))}attemptLogin(gt){if(this.errorInfo.error_code=gt.error?gt.error:"",this.errorInfo.error_description=gt.error_description?gt.error_description:"",this.errorInfo.error_uri=gt.error_uri?gt.error_uri:"",gt.error||gt.error_description)return this.logger.error("failed to login user with error",gt.error,gt.error_description),(0,m.$)(gt.error);let Ht=null;return Ht=gt.code&>.oAuthUrl.codeVerifier?this.starfleetHttpService.redeemAuthCode(gt.code,gt.oAuthUrl.redirectUrl,gt.oAuthUrl.codeVerifier).pipe((0,T.T)(bn=>(gt.access_token=bn.access_token,gt.id_token=bn.id_token,gt.expires_in=bn.expires_in,gt.token_type=bn.token_type,gt)),(0,B.W)(bn=>{throw this.logger.error("error in redeeming auth code",bn),S.REDEEM_AUTHCODE_FAILED})):(0,g.of)(gt),Ht.pipe((0,v.ZZ)(bn=>this.completeLogin(gt)))}validateRedirectResponse(gt){if(this.useDeviceAuthLogin)return!0;const Ht=this.parseIdToken(gt.id_token);if(Ht&&Ht.nonce!==gt.oAuthUrl.nonce)throw S.NONCE_VALIDATION_FAILED;return!0}completeLogin(gt){const Ht=new Ve(this.idTokenRefreshUnderDuration,null,this.storageType);return this.starfleetHttpService.getClientToken(gt.access_token).pipe((0,B.W)(bn=>{throw this.logger.error("Client Token url failure ",bn),S.CLIENT_TOKEN_FAIL}),(0,T.T)(bn=>(Ht.data.accessToken=gt.access_token,Ht.data.accessTokenExpiry=Date.now()+1e3*gt.expires_in,Ht.data.idToken=gt.id_token,Ht.data.clientToken=bn.client_token,Ht.data.clientTokenExpiry=Date.now()+1e3*bn.expires_in,Ht.data.clientTokenExpiryLength=1e3*bn.expires_in,Ht.data.idTokenExpiry=this.getIdTokenExpiry(Ht.data.idToken),this.session=Ht,this.session)))}syncSession(gt){return gt?.isClientTokenValid()?this.session?.isClientTokenValid()?this.updateUserTokens(gt):this.migrateUser(gt):(0,g.of)(this.session)}migrateUser(gt){return this.session=gt,this.logger.info("migrateUser"),this.refreshUser().pipe((0,T.T)(Ht=>this.session))}updateUserTokens(gt){return this.session.data.idTokenExpiry=gt.data.idTokenExpiry,this.session.data.clientTokenExpiry=gt.data.clientTokenExpiry,this.session.data.accessTokenExpiry=gt.data.accessTokenExpiry,this.session.data.idToken=gt.data.idToken,this.session.data.clientToken=gt.data.clientToken,this.session.data.accessToken=gt.data.accessToken,(0,g.of)(this.session)}getIdTokenExpiry(gt){let Ht=0;const bn=this.parseIdToken(gt);return bn&&(Ht=Date.now()+1e3*(+bn.exp-+bn.iat)),Ht}parseIdToken(gt){try{const bn=gt.split(".")[1].replace(/-/g,"+").replace(/_/g,"/");return JSON.parse(decodeURIComponent(escape(atob(bn))))}catch(Ht){return this.errorHandler.handleError(new Error(`idToken parse failed with error '${Ht}'`)),this.logger.error("failed to parse idToken",Ht),null}}isClientTokenRefreshRequired(){let gt=!1;if(this.session.isClientTokenValid()){const Ht=this.session.data.clientTokenExpiry-Date.now();gt=this.session.data.clientTokenExpiryLength?Ht<this.config.clientTokenRefreshDurationInPercentage/100*this.session.data.clientTokenExpiryLength:Ht<this.config.clientTokenRefreshDuration}return gt}fetchSession(gt,Ht){return this.starfleetHttpService.getAccessToken(this.session.data.clientToken,this.session.data.user.sub,Ht).pipe((0,v.ZZ)(bn=>(this.session.data.accessToken=bn.access_token,this.session.data.clientToken=bn.client_token,this.session.data.idToken=bn.id_token,this.session.data.accessTokenExpiry=Date.now()+1e3*bn.expires_in,this.session.data.idTokenExpiry=this.getIdTokenExpiry(this.session.data.idToken),this.isSessionRefreshable=!0,(0,g.of)(this.session))),(0,v.ZZ)(()=>{const bn=this.session.data.clientTokenExpiry-Date.now();return this.isClientTokenRefreshRequired()&&this.isNextClientTokenRefreshAllowed?(this.logger.info("Refreshing Client Token"),this.starfleetHttpService.getClientToken(this.session.data.accessToken,Ht).pipe((0,T.T)(Ut=>(this.logger.info("Client Token refreshed Successfully"),this.session.data.clientToken=Ut.client_token,this.session.data.clientTokenExpiry=Date.now()+1e3*Ut.expires_in,this.session.data.clientTokenExpiryLength=1e3*Ut.expires_in,this.isNextClientTokenRefreshAllowed=bn<this.session.data.clientTokenExpiryLength,this.session)))):(0,g.of)(this.session)}),(0,B.W)(bn=>(this.logger.info("Error refreshing access token with starfleet:",bn),(0,Q.gX)(bn)?(this.logger.info("The session refresh failed due to timeout or connection issues. So, will not log out the user"),(0,g.of)(this.session)):(this.logger.info("Error thrown from server. Hence, logging the user out"),this.storeSession(new Ve(this.idTokenRefreshUnderDuration,null,this.storageType))))),(0,G.j)(()=>{gt||this.refreshUser()}))}getCurrentUser(gt=!1){return this.getOrRefreshSession(gt,!0).pipe((0,v.ZZ)(Ht=>(this.logger.info("Getting current user"),this.useCachedUser?(this.useCachedUser=!1,(0,m.$)("using cached user at initialize")):!this.networkStatus.isOnline&&Ht.isClientTokenValid()?(this.logger.info("User is offline and session has client token. So returning cached user"),(0,m.$)(S.USER_OFFLINE)):Ht.isAccessTokenValid()?Ht.data.user&&!this.firstRefreshDone?(this.firstRefreshDone=!0,this.refreshUser(),(0,m.$)("using deferred refresh for user")):this.starfleetHttpService.getUserInfo(Ht.data.accessToken).pipe((0,T.T)(bn=>(bn.isNetworkCall=!0,bn))):(0,m.$)(S.NOT_LOGGED_IN))),(0,v.ZZ)(Ht=>(Ht.isAuthenticated=!0,this.session.data.user=Ht,this.storeSession(this.session))),(0,T.T)(()=>this.session.data.user),(0,B.W)(Ht=>this.handleAuthError(Ht,gt,this.getCurrentUser.bind(this))),(0,B.W)(Ht=>(this.logger.error("Error fetching userInfo from starfleet:",Ht.toString()),(0,Q.gX)(Ht)&&this.logger.info("UserInfo refresh failed due to timeout or connection issue"),(0,g.of)(this.session.data.user))))}createNewSessionFromIdToken(gt){return this.getOrRefreshSession(!1,!1,gt).pipe((0,u.M)(()=>this.refreshUser()))}getOrRefreshSession(gt,Ht,bn,Ut){return this.sessionSubject&&!1===this.sessionSubject.isStopped||(this.sessionSubject=new A.m(1),this.initSub.pipe((0,v.ZZ)(()=>{const Bt=this.session.isClientTokenValid();return(gt||!this.session.isAccessTokenValid())&&Bt&&this.networkStatus.isOnline&&this.isSessionRefreshable?(this.logger.info("refreshing session. Force Refresh: ",gt),this.fetchSession(Ht,Ut)):Bt?(this.logger.info("Using existing client token "),(0,g.of)(this.session)):bn&&0!==bn.length?this.createSessionFromIdToken(bn):(this.logger.info(`Loading session from ${this.storageType}`),this.loadSessionFromStorage())})).subscribe(Bt=>{this.sessionSubject.next(Bt),this.sessionSubject.complete()},Bt=>{this.sessionSubject.error(Bt),this.logger.error("failed to refersh session",Bt)})),this.sessionSubject.asObservable()}createSessionFromIdToken(gt){let Ht;this.logger.info("Building session from sdk id token");try{let Ut=gt.split(".")[1];Ut=JSON.parse(window.atob(Ut)),Ht={sub:Ut.sub,idp_name:Ut.idp_name,idp_id:Ut.idp_id,external_id:Ut.external_id,preferred_username:Ut.preferred_username,consent:Ut.consent,isAuthenticated:!0}}catch{return this.logger.error("Failed to parse id token to get expiry"),this.logger.info(`Loading session from ${this.storageType}`),this.loadSessionFromStorage()}const bn={clientToken:"This is required for the session object to validate, but is not used",accessToken:"This is required for the session object to validate, but is not used",idToken:gt,user:Ht,clientTokenExpiry:Date.now()+1728e5,accessTokenExpiry:Date.now()+1728e5,idTokenExpiry:this.getIdTokenExpiry(gt)};return this.isSessionRefreshable=!1,this.session=new Ve(this.idTokenRefreshUnderDuration,bn,this.storageType),(0,g.of)(this.session)}loadSessionFromStorage(){return Ve.loadFrom(this.storageType===nt.SharedStorage?this.sharedStorage:this.globalStore,this.idTokenRefreshUnderDuration).pipe((0,v.ZZ)(Ht=>(this.logger.info(`Loaded session successfully from ${this.storageType}`),this.session=Ht,Ht.isClientTokenValid()?(0,g.of)(Ht):(this.logger.info("Stored session does not have user token. Hence, logging the user out"),this.session=new Ve(this.idTokenRefreshUnderDuration,null,this.storageType),this.isSessionRefreshable=!0,(0,g.of)(this.session)))),(0,B.W)(Ht=>(this.logger.info(`Error loading session from ${this.storageType}. Hence logging out the user.`,Ht),this.session=new Ve(this.idTokenRefreshUnderDuration,null,this.storageType),(0,g.of)(this.session))))}storeSession(gt){return this.session=(0,k.cloneDeep)(gt),delete gt.data.user?.age,delete gt.data.user?.isNetworkCall,gt.writeTo(this.storageType===nt.SharedStorage?this.sharedStorage:this.globalStore).pipe((0,v.ZZ)(()=>(0,g.of)(gt)),(0,B.W)(bn=>(this.logger.info(`Error saving session to ${this.storageType}:`,bn),(0,m.$)(bn))))}getAuthToken(gt,Ht){return this.initSub.pipe((0,v.ZZ)(bn=>gt||!this.session.isIdTokenValid()?this.session.hasClientTokenExpired()?(this.refreshUser(),(0,g.of)(new Ve(this.idTokenRefreshUnderDuration,null,this.storageType))):this.getOrRefreshSession(!0,null,null,Ht):(0,g.of)(this.session)),(0,T.T)(bn=>bn.data.idToken))}getAccessToken(gt,Ht){return this.initSub.pipe((0,v.ZZ)(bn=>gt||!this.session.isAccessTokenValid()?this.getOrRefreshSession(!0,null,null,Ht):(0,g.of)(this.session)),(0,T.T)(bn=>bn.data.accessToken))}getClientData(gt,Ht,bn=!1){return this.getAuthToken(bn,Ht).pipe((0,v.ZZ)(Ut=>this.starfleetHttpService.getClientData(Ut,gt,Ht)),(0,B.W)(Ut=>this.handleAuthError(Ut,bn,this.getClientData.bind(this),gt)))}setClientData(gt,Ht,bn,Ut=!1){return this.getAuthToken(Ut,bn).pipe((0,v.ZZ)(Bt=>this.starfleetHttpService.setClientData(Bt,gt,Ht,bn)),(0,B.W)(Bt=>this.handleAuthError(Bt,Ut,this.setClientData.bind(this),gt,Ht)))}appendClientData(gt,Ht,bn,Ut=!1){return this.getAuthToken(Ut,bn).pipe((0,v.ZZ)(Bt=>this.starfleetHttpService.appendClientData(Bt,gt,Ht,bn)),(0,B.W)(Bt=>this.handleAuthError(Bt,Ut,this.appendClientData.bind(this),gt,Ht)))}deleteClientData(gt,Ht,bn,Ut=!1){return this.getAuthToken(Ut,bn).pipe((0,v.ZZ)(Bt=>this.starfleetHttpService.deleteClientData(Bt,gt,Ht,bn)),(0,B.W)(Bt=>this.handleAuthError(Bt,Ut,this.deleteClientData.bind(this),gt)))}handleAuthError(gt,Ht,bn,...Ut){return 401===gt.status?Ht?(0,m.$)(S.NOT_LOGGED_IN):(this.logger.info("refershing auth token for fn: ",bn?.name),Ut.push(!0),bn(...Ut)):(0,m.$)(gt)}get lastError(){return this.errorInfo}getDeviceDisplayCode(){return this.deviceDisplayCode}cancel(){!1===this.loginSubject?.isStopped&&this.loginSubject.complete(),this.loginSubscription?.unsubscribe(),this.loginSubscription=null}static{this.\u0275fac=function(Ht){return new(Ht||Ue)(n.KVO(h),n.KVO(q.J6),n.KVO(se),n.KVO(ye),n.KVO(Ot.yQ),n.KVO(q.iH),n.KVO(Q.mZ),n.KVO(q.CF),n.KVO(q.zW),n.KVO(n.zcH),n.KVO(q.NZ),n.KVO(q.at))}}static{this.\u0275prov=n.jDH({token:Ue,factory:Ue.\u0275fac,providedIn:"root"})}}return Ue})();const Qt={provide:i,useFactory:function Vt(Ue,wt,gt,Ht,bn,Ut,Bt,Le,V,de,ge,Ft){switch(Ue.platformType){case M.Browser:case M.Cef:return Ue.redirectUrl=Ue.redirectUrlIsRelative?window.location.origin+Ue.redirectUrl:Ue.redirectUrl,new At(Ue,wt,gt,Ht,bn,Ut,Bt,Le,V,de,ge,Ft);default:return void wt.getLogger("starfleetServiceCreator").error("Cannot create StarfleetService for unknown platform type: "+Ue.platformType)}},deps:[h,q.J6,se,ye,Ot.yQ,q.iH,Q.mZ,q.CF,q.zW,n.zcH,q.NZ,q.at]};var Jt=s(99204);const Zt=[Jt.D6];let nn=(()=>{class Ue{static configure(gt){return{ngModule:Ue,providers:[{provide:h,useValue:gt},Qt,ye]}}static{this.\u0275fac=function(Ht){return new(Ht||Ue)}}static{this.\u0275mod=n.$C({type:Ue})}static{this.\u0275inj=n.G2t({providers:[Qt],imports:[x.q1,P.MD,Zt,Jt.D6]})}}return Ue})();s(40859)},52299:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A9:()=>flattenObjectToDotNotation,KA:()=>base64Encode,RL:()=>invalidPipeArgumentError,T7:()=>toLowerCaseOrEmpty,VP:()=>mapScrimRGBToFontColor,ab:()=>shallowCompare,bz:()=>generateUuid,c2:()=>evalCss,gX:()=>isTimeoutOrConnectivityError,iN:()=>hexToRGB,l2:()=>normalizeUrl,tO:()=>formatLogString});var lodash__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(26875),lodash__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_0__);function normalizeUrl(St){let z="";return St.forEach((s,i)=>{!s.startsWith("/")&&0!==i&&(z+="/"),s.endsWith("/")?z+=s.slice(0,s.length-1):z+=s}),z}function toLowerCaseOrEmpty(St){return St&&St.toLowerCase()||""}let CachedUuid=(()=>{class St{static{this.uuid=null}static getUuid(){return St.uuid}static refreshUuid(){St.uuid=generateUuidInternal()}}return St})();function generateUuidInternal(){let St=Date.now();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(s){const i=(St+16*Math.random())%16|0;return St=Math.floor(St/16),("x"===s?i:3&i|8).toString(16)})}function generateUuid(St=!1){return St?CachedUuid.getUuid():generateUuidInternal()}function invalidPipeArgumentError(St,z){return Error(`InvalidPipeArgument: '${z}' for pipe '${St.toString()}'`)}function getString(St,z){let s=St&&"string"!=typeof St?JSON.stringify(St):St||"";return z&&(s=s.substr(0,z)),s}function isTimeoutOrConnectivityError(St){return!((0,lodash__WEBPACK_IMPORTED_MODULE_0__.isNil)(St)||(0,lodash__WEBPACK_IMPORTED_MODULE_0__.isNil)(St.status)||0!==St.status&&-100!==St.status)}function formatLogString(St,z,s,i){let n="";for(const S of i)try{n+="string"==typeof S?S:JSON.stringify(S,null,"\t"),n+=" "}catch{}return`${s.transform(new Date,"yyyy-MM-dd HH:mm:ss.SSS")} ${[z]} ${St} ${n}`}function base64Encode(St,z,s){return s&&(St=window.encodeURIComponent(St)),z&&(St=window.unescape(St)),window.btoa(St)}function isBase64(St){if(""===St||""===St.trim())return!1;try{return btoa(atob(St))===St}catch{return!1}}function isValidType4UUID(St){return!!/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-4[a-f0-9]{3}\b-[89aAbB][a-f0-9]{3}\b-[0-9a-fA-F]{12}$/gi.test(St)}function cloneOrNull(St){return St?{...St}:null}function pick(St,...z){const s={};for(const i of z)i in St&&(s[i]=St[i]);return s}function evalCss(expr){return eval(expr.trim().replace(/calc/g,"").replace(/px/g,"").replace(/100vw/g,window.innerWidth.toString()).replace(/100vh/g,window.innerHeight.toString()).replace(/[^-()\d/*+.]/g,""))}function shallowCompare(St,z){const s=Object.keys(St),i=Object.keys(z);if(s.length!==i.length)return!1;for(const n of s)if(St[n]!==z[n])return!1;return!0}function getDomainWithProtocol(St){try{return`${new URL(St).origin}`}catch{return""}}function mapScrimRGBToFontColor(St){return St?.299*St.r+.587*St.g+.114*St.b>150?"black":"white":null}function hexToRGB(St){if(!new RegExp("^#(([0-9a-fA-F]{2}){3}|([0-9a-fA-F]){3})$").test(St))return null;let z,s,i;return 4===St.length?(z=parseInt(St[1]+St[1],16),s=parseInt(St[2]+St[2],16),i=parseInt(St[3]+St[3],16)):(z=parseInt(St.substring(1,3),16),s=parseInt(St.substring(3,5),16),i=parseInt(St.substring(5,7),16)),{r:z,g:s,b:i}}function convertMapToObject(St){const z={};return St.forEach((s,i)=>{z[i]=s}),z}function flattenObjectToDotNotation(St,z=""){const s=new Map;for(const i in St)if(St.hasOwnProperty(i)){const n=St[i],h=z?`${z}.${i}`:i;null===n||"object"!=typeof n||Array.isArray(n)?s.set(h,String(n)):flattenObjectToDotNotation(n,h).forEach((S,M)=>{s.set(M,S)})}return s}CachedUuid.refreshUuid()},99066:(St,z,s)=>{"use strict";s.d(z,{T:()=>x,V:()=>A});var i=s(85735),n=s(43848),h=s(63997),C=s(3496),S=s(35146),M=s(91384);class P extends i.m{constructor(m){super(m),this.lastValue=null}getValue(){return this.lastValue}setValue(m){this.lastValue=m}next(m){this.lastValue=m,super.next(m)}clear(){this.lastValue=null}}class x{constructor(m,l=!0,r=!0,u=!0,v=-1){this.workerFn=m,this.cacheLastResult=r,this.clearCacheOnRefresh=u,this.cacheLifeTime=v,this.internalSubject=null,this.subscription=null,l||this.get$()}refresh(){const m=new i.m(1);this.cacheLastResult&&this.internalSubject instanceof P&&this.clearCacheOnRefresh&&this.internalSubject.clear();const l=this.ensureEntryIsInitialized(!0);return l&&this.pipeNewDataToReplaySubject(l,m),m.asObservable()}setData(m,l=!1){this.internalSubject instanceof P&&this.internalSubject.setValue(m),l&&(this.ensureEntryIsInitialized(!1),this.pipeNewDataToReplaySubject((0,n.of)(m),null))}getData(){return this.internalSubject instanceof P?this.internalSubject.getValue():null}get$(){const m=this.ensureEntryIsInitialized(!1);return m&&this.pipeNewDataToReplaySubject(m,null),this.internalSubject.asObservable()}getRefreshObservable(){return(0,h.v)(()=>this.refresh())}pipeNewDataToReplaySubject(m,l){(0,C.O)(0).pipe((0,M.M)(r=>this.subscription=m.subscribe(u=>{l&&l.next(u),this.internalSubject&&this.internalSubject.next(u),this.cacheLastResult&&this.cacheLifeTime>=0&&(0,C.O)(this.cacheLifeTime).subscribe(()=>{this.internalSubject=null})},u=>{const v=this.internalSubject;this.subscription&&this.subscription.unsubscribe(),this.internalSubject=null,l&&l.error(u),v&&v.error(u)}))).subscribe()}ensureEntryIsInitialized(m){if(m||!this.internalSubject)return this.subscription&&this.subscription.unsubscribe(),this.internalSubject||(this.internalSubject=this.createNewSubject()),this.workerFn()}createNewSubject(){return this.cacheLastResult?new P(1):new i.m(1)}}class A{constructor(m,l=!0,r=!0,u=!0,v=-1){this.workerFn=m,this.lazyInit=l,this.cacheLastResult=r,this.clearCacheOnRefresh=u,this.cacheLifeTime=v,this.eventStreamMap=new Map}refresh(m){return this.ensureMapEntryExists(m),this.eventStreamMap.get(m).refresh()}refreshAll(){const m=[];return this.eventStreamMap.forEach((l,r)=>{m.push(l.refresh())}),(0,S.yU)(...m)}setData(m,l,r=!1){this.ensureMapEntryExists(m),this.eventStreamMap.get(m).setData(l,r)}getData(m){return this.ensureMapEntryExists(m),this.eventStreamMap.get(m).getData()}get$(m){return this.ensureMapEntryExists(m),this.eventStreamMap.get(m).get$()}ensureMapEntryExists(m){this.eventStreamMap.has(m)||this.eventStreamMap.set(m,new x(()=>this.workerFn(m),this.lazyInit,this.cacheLastResult,this.clearCacheOnRefresh,this.cacheLifeTime))}}},71152:(St,z,s)=>{"use strict";s.d(z,{EU:()=>C,F0:()=>fe,PC:()=>B,YD:()=>R,N_:()=>U,V$:()=>i.V,A5:()=>u,_4:()=>Qt,TE:()=>i.T,mZ:()=>M,Z3:()=>et,O4:()=>Y,cL:()=>ue,KA:()=>x.KA,Ms:()=>sn,c2:()=>x.c2,A9:()=>x.A9,tO:()=>x.tO,pQ:()=>T,qU:()=>Ot,bz:()=>x.bz,EL:()=>At,iN:()=>x.iN,RL:()=>x.RL,Nw:()=>Ne,Ls:()=>le,gX:()=>x.gX,mI:()=>k,VP:()=>x.VP,l2:()=>x.l2,ab:()=>x.ab,T7:()=>x.T7});var i=s(99066),n=s(72653);const h=(0,n.BQ)({passive:!0,capture:!0});class C{constructor(){this._events=new Map,this._delegateEventHandler=Zt=>{const nn=(0,n.Fb)(Zt);nn&&this._events.get(Zt.type)?.forEach((Xt,lt)=>{(lt===nn||lt.contains(nn))&&Xt.forEach(Ue=>Ue.handleEvent(Zt))})}}addHandler(Zt,nn,Xt,lt){const Ue=this._events.get(nn);if(Ue){const wt=Ue.get(Xt);wt?wt.add(lt):Ue.set(Xt,new Set([lt]))}else this._events.set(nn,new Map([[Xt,new Set([lt])]])),Zt.runOutsideAngular(()=>{document.addEventListener(nn,this._delegateEventHandler,h)})}removeHandler(Zt,nn,Xt){const lt=this._events.get(Zt);if(!lt)return;const Ue=lt.get(nn);Ue&&(Ue.delete(Xt),0===Ue.size&<.delete(nn),0===lt.size&&(this._events.delete(Zt),document.removeEventListener(Zt,this._delegateEventHandler,h)))}}var S=s(58527);let M=(()=>{class Jt{createStream(nn,Xt=!0,lt=!0,Ue=!0,wt=-1){return new i.T(nn,Xt,lt,Ue,wt)}static{this.\u0275fac=function(Xt){return new(Xt||Jt)}}static{this.\u0275prov=S.jDH({token:Jt,factory:Jt.\u0275fac,providedIn:"root"})}}return Jt})();var x=s(52299),A=s(36877),g=s(16229),m=s(10174),l=s(34593),r=s(53461);let u=(()=>{class Jt{constructor(){}onlineStatusChanged(){const nn=(0,A.R)(window,"online").pipe((0,m.u)(!0)),Xt=(0,A.R)(window,"offline").pipe((0,m.u)(!1));return(0,g.h)(nn,Xt).pipe((0,l.Z)(window.navigator.onLine),(0,r.F)())}isOnline(){return window.navigator.onLine}static{this.\u0275fac=function(Xt){return new(Xt||Jt)}}static{this.\u0275prov=S.jDH({token:Jt,factory:Jt.\u0275fac,providedIn:"root"})}}return Jt})();const v=[];function E(Jt,Zt,nn){for(;0!==v.length;){const Xt=`${Zt.transform(new Date,"yyyy-MM-dd HH:mm:ss.SSS")} ${[Jt]} ${nn[0]} ${v[v.length-1]} ${B.close}`;console.log(Xt),v.pop()}}function T(Jt,Zt,nn,Xt){if(Xt.length>=3&&Xt[1].toString().includes("Tracer"))if(v[v.length-1]!==Xt[1]){if(Xt[2]===B.close){const Ue=`${nn.transform(new Date,"yyyy-MM-dd HH:mm:ss.SSS")} ${[Zt]} ${Xt[0]} ${v[v.length-1]} ${Xt[2]}`;v.pop(),console.log(Ue),v.length&&v.pop()}else Xt[2]===B.open&&v.includes(Xt[1])&&E(Zt,nn,Xt);v.push(Xt[1])}else v[v.length-1]===Xt[1]&&v.pop();else if("Clicked on Back button"===Xt[1])return void E(Zt,nn,Xt);return(0,x.tO)(Jt,Zt,nn,Xt)}var R=function(Jt){return Jt.EvidencePanel="EvidencePanelTracer",Jt.Search="SearchTracer",Jt.SeeMore="SeeMoreTracer",Jt.UserInfo="UserDetails",Jt.Login="LoginTracer",Jt.Settings="SettingsTracer",Jt.Feedback="FeedbackTracer",Jt}(R||{}),B=function(Jt){return Jt.open="Opened",Jt.close="Closed",Jt}(B||{}),U=function(Jt){return Jt.UserGesture="UserGesture",Jt.Endpoint="EndPoint",Jt.Errormessage="ErrorMessage",Jt.PushNotification="PushNotification",Jt.UserDetails="UserDetails",Jt}(U||{});const Y={Done:65376};function k(){return"tizen"in window}var Ge=s(80583),nt=s(63997),Je=s(85735),ze=s(59859),Ke=s(43848),Ve=s(65706),$e=s(91384),dt=s(79539),Pe=s(14714),J=s(4208),vt=function(Jt){return Jt.InvalidStates="InvalidStates",Jt.InvalidTransitions="InvalidTransitions",Jt.InvalidStartState="InvalidStartState",Jt.InvalidEndState="InvalidEndState",Jt.InvalidWildcardState="InvalidWildcardState",Jt.TransitionFromEndState="TransitionFromEndState",Jt.TransitionNotFound="TransitionNotFound",Jt.TransitionError="TransitionError",Jt.UnreachableState="UnreachableState",Jt.InvalidStateName="InvalidStateName",Jt.AmbiguousTransition="AmbiguousTransition",Jt.WildcardTargetState="WildcardTargetState",Jt.MultipleWildcardTransitions="MultipleWildcardTransitions",Jt}(vt||{});class ve extends Error{constructor(Zt,nn,Xt,lt){super(`${Zt} - ${nn} - ${Xt}`),this.name="StateMachineError",this.tag=Zt,this.code=nn,this.data=lt}}const ue="**";class et{get currentState(){return this._currentState}constructor(Zt,nn){this._serializer=new Ge.B7,this._reset=new Ge.B7,this.setupStateMachine(Zt),nn&&this.validateStateMachine(),this.setupSerializer()}on(Zt,nn){return(0,nt.v)(()=>{const Xt={action:Zt,stateData:nn,response:new Je.m(1)};return this._serializer.next(Xt),Xt.response.asObservable()})}reset(){this._reset.next(),this._currentState=this._startState,this.setupSerializer()}executeTransition(Zt,nn){if(this._currentState===this._endState)return(0,ze.$)(this.createStateMachineError(vt.TransitionFromEndState,"Cannot transition from end state"));const Xt=this._transitions[Zt]?.find(Ht=>Ht.from===this._currentState||Ht.from===ue)?.to;if(!Xt)return(0,ze.$)(this.createStateMachineError(vt.TransitionNotFound,`Could not find a valid targetState from currentState ${this.currentState} on action ${Zt}`));const lt=this._states[this._currentState],Ue=this._states[Xt],wt=lt?.onExit??(Ht=>(0,Ke.of)(Ht)),gt=Ue?.onEnter??(Ht=>(0,Ke.of)(Ht));return wt(nn).pipe((0,Ve.s)(1),(0,$e.M)(()=>this._currentState=Xt),(0,dt.H)(Ht=>gt(Ht)),(0,Ve.s)(1),(0,Pe.W)(Ht=>(0,ze.$)(this.createStateMachineError(vt.TransitionError,`Error transitioning to ${Xt}`,Ht))))}setupStateMachine(Zt){if(this._tag=Zt.tag,this._states=Zt.states,!this._states)throw this.createStateMachineError(vt.InvalidStates,"State list cannot be nullish");if(this._transitions=Zt.transitions,!this._transitions)throw this.createStateMachineError(vt.InvalidTransitions,"Transitions list cannot be nullish");if(this._startState=Object.keys(this._states).find(nn=>nn===Zt.startState),!this._startState)throw this.createStateMachineError(vt.InvalidStartState,`Could not find valid start state with name ${Zt.startState}`);if(this._endState=Object.keys(this._states).find(nn=>nn===Zt.endState),!this._endState)throw this.createStateMachineError(vt.InvalidEndState,`Could not find valid end state with name ${Zt.endState}`);if(Object.keys(this._states).includes(ue))throw this.createStateMachineError(vt.InvalidWildcardState,"Wildcard state name cannot be specified manually in state definitions");this._currentState=Zt.startState}setupSerializer(){this._serializer.pipe((0,dt.H)(Zt=>this.executeTransition(Zt.action,Zt.stateData).pipe((0,dt.H)(nn=>(Zt.response.next(nn),Zt.response.complete(),(0,Ke.of)(nn))),(0,Pe.W)(nn=>(Zt.response.error(nn),(0,Ke.of)(nn))))),(0,J.Q)(this._reset)).subscribe()}createStateMachineError(Zt,nn,Xt){return new ve(this._tag,Zt,nn,Xt)}validateStateMachine(){const Zt=new Map;Object.keys(this._states).forEach(nn=>Zt.set(nn,!1)),Zt.set(this._startState,!0),Object.keys(this._transitions).forEach(nn=>{const Xt=new Map;Object.keys(this._states).forEach(lt=>Xt.set(lt,0)),this._transitions[nn].forEach(lt=>{if(lt.from===this._endState)throw this.createStateMachineError(vt.TransitionFromEndState,"Cannot transition from end state");if(lt.to===ue)throw this.createStateMachineError(vt.WildcardTargetState,`Wildcard state cannot be targetState on action ${nn}`);if(lt.from===ue&&1!==this._transitions[nn].length)throw this.createStateMachineError(vt.MultipleWildcardTransitions,`Cannot specify multiple transitions on action ${nn} if one of them is a Wildcard`);if(![...Object.keys(this._states),ue].includes(lt.from))throw this.createStateMachineError(vt.InvalidStateName,`Invalid currentState ${lt.from} on action ${nn} to state ${lt.to}`);if(!Object.keys(this._states).includes(lt.to))throw this.createStateMachineError(vt.InvalidStateName,`Invalid targetState ${lt.to} on action ${nn} from state ${lt.from}`);Xt.set(lt.from,Xt.get(lt.from)+1),Zt.set(lt.to,!0)}),Xt.forEach((lt,Ue)=>{if(lt>1)throw this.createStateMachineError(vt.AmbiguousTransition,`Ambiguous transition on action ${nn} from state ${Ue}`)})}),Zt.forEach((nn,Xt)=>{if(!nn)throw this.createStateMachineError(vt.UnreachableState,`State ${Xt} is unreachable`)})}}function le(Jt){return Jt?.isTrusted}var Xe=s(8619),fe=function(Jt){return Jt.ArrowUp="ArrowUp",Jt.ArrowDown="ArrowDown",Jt.ArrowLeft="ArrowLeft",Jt.ArrowRight="ArrowRight",Jt}(fe||{});function Ne(Jt){return"Escape"===Jt.key||"GoBack"===Jt.key}function Ot(Jt,Zt,nn){const Xt=(0,A.R)(Jt,Zt);return nn?Xt.pipe((0,Xe.p)(lt=>lt.key===nn)):Xt}function sn(Jt,Zt){const nn=(0,A.R)(Jt,"keyup",{capture:!0}).pipe((0,Xe.p)(Xt=>Xt.key===Zt),(0,Ve.s)(1));return(0,A.R)(Jt,"keydown",{capture:!0}).pipe((0,Xe.p)(Xt=>Xt.key===Zt),(0,$e.M)(Xt=>{Xt.stopPropagation(),Xt.preventDefault()}),(0,J.Q)(nn))}function At(Jt,Zt,nn){const Xt=document.elementFromPoint(Jt,Zt)||void 0;if(!Xt)return;const lt=wt=>wt instanceof HTMLElement&&(!nn||nn(wt));return lt(Xt)?Xt:document.elementsFromPoint(Jt,Zt).slice(1).find(wt=>lt(wt))}var Vt=s(17053);class Qt{static resizeObserver(Zt,nn){let Xt=null;return new Vt.c(Ue=>{let wt=!0;return Xt=new ResizeObserver(gt=>{const Ht=gt[0].contentRect.width;wt&&Ue.next(gt[0].contentRect.height<=nn.maxHeight&&Ht<=nn.maxWidth&&Ht>nn.minWidth)}),Xt.observe(Zt),()=>{wt=!1,Xt?.unobserve(Zt)}})}static onResize(Zt){return new Vt.c(nn=>{let Xt=!0;const lt=new ResizeObserver(Ue=>{Xt&&nn.next(Ue[0])});return lt.observe(Zt),()=>{Xt=!1,lt?.unobserve(Zt)}})}}},31627:(St,z,s)=>{"use strict";s.d(z,{I8:()=>E,Jx:()=>T,P4:()=>u,Pf:()=>v,RT:()=>h,T5:()=>P,Vq:()=>S,WV:()=>C,eb:()=>n,gd:()=>R,hx:()=>i,kA:()=>r,pl:()=>M,sb:()=>m});const i=5e3,n=200,h=2e3,C=50,S=100,M=.5,P=400,m={};var r=function(B){return B.Global="Global",B.Program="Program",B.Discover="Discover",B.Drivers="Drivers",B.Settings="Settings",B.Redeem="Redeem",B.System="System",B.Overview="Overview",B.Performance="Performance",B.Video="Video",B.Display="Display",B.None="None",B}(r||{}),u=function(B){return B.Common="Common",B}(u||{}),v=function(B){return B[B.Loading=0]="Loading",B[B.Ready=1]="Ready",B[B.ReadyWithEmptyResults=2]="ReadyWithEmptyResults",B[B.ReadyWithEmptyQuery=3]="ReadyWithEmptyQuery",B[B.Error=4]="Error",B}(v||{}),E=function(B){return B.All="search.all",B.Home="menu.home",B.Drivers="drivers.title",B.Graphics="layout.features.manage3dsettings.title",B.System="preferences.system",B.Settings="toolbar.settings",B.Redeem="rewards.redeem",B}(E||{});const T=Object.values(E),R={[u.Common]:{fields:["title","subtitle","description","displayName","param","keywords"],fieldsBoost:{title:80,subtitle:5,description:5,displayName:5,keywords:5},fullPreviewFields:["displayName","keywords","params"],wildcard:2,boostPhrase:100,boostFirstTitle:10}}},61519:(St,z,s)=>{"use strict";s.d(z,{u:()=>n});var i=s(58527);let n=(()=>{class h{constructor(){this.searchParamsMap=new Map}addSearchParams(S){const M=S.getId();this.searchParamsMap.set(M,S)}getSearchParams(S){return this.searchParamsMap.get(S)}removeSearchParams(S){this.searchParamsMap.delete(S)}clearAllSearchParams(){this.searchParamsMap.clear()}static{this.\u0275fac=function(M){return new(M||h)}}static{this.\u0275prov=i.jDH({token:h,factory:h.\u0275fac,providedIn:"root"})}}return h})()},58431:(St,z,s)=>{"use strict";s.d(z,{Ft:()=>S,Mr:()=>i,Nd:()=>P,X5:()=>A,_2:()=>M,f9:()=>g,rB:()=>x,w:()=>h,wj:()=>n,yX:()=>C});const i={Youtube:"youtube",Local:"local"};var n=function(m){return m.Display="display",m.Laptop="laptop",m.Gpu="gpu",m.Ops="ops",m.Game="game",m.App="app",m.Hardware="hardware",m.WhatsNew="whats_new",m.WhatsFixed="whats_fixed",m}(n||{}),h=function(m){return m.Display="desktop_windows",m.Laptop="laptop",m.Gpu="gpu",m.Ops="check_circle",m.Game="game_controller",m.App="app",m.Hardware="memory",m.WhatsNew="star_filled",m.WhatsFixed="wrench_nvapp",m}(h||{}),C=function(m){return m[m.NvExtractionFatal=2]="NvExtractionFatal",m[m.NvExtractionCommandLine=7]="NvExtractionCommandLine",m[m.NvExtractionMemory=8]="NvExtractionMemory",m}(C||{});const S="_delimit_",M=1e3,P="assets/img/grd_marquee_fallback.png",x="assets/img/nsd_marquee_fallback.png",A="assets/img/nwd_marquee_fallback.png",g=34200},56302:(St,z,s)=>{"use strict";s.d(z,{$7:()=>A,BN:()=>M,Fd:()=>S,OB:()=>C,Qr:()=>x,ed:()=>P});var i=s(35965),n=s(42578),h=s(1242);const C={name:"driverInformation",controller:i.GU.GfeContent,method:i.Xt.Get,endpointPath:"/com.nvidia.services.GFEClientContent_NG.getDispDrvrDtlsByDevid/",paramMask:["gcV","lg","gLg","dIDa","osC","dch","osB","is6","GFPV","gIsB","iLp","isB","isO","go","prvMd","cSR","IsQ","uCst","upCRD","isCRD","isInst"],reportRequestData:{originalService:h.Uu.Gfwsl,serviceUseCase:h.OO.GetDriverInformation}},S={name:"driverInstallData",controller:i.GU.Installer,method:i.Xt.Get,endpointPath:"/com.nvidia.services.DriverInstallerContent_NG.getCurrentGFEClientHtmlDefault/",paramMask:["O","D","L","cSR","uCst","dch","upCRD","isCRD","isInst","IsQ"],reportRequestData:{originalService:h.Uu.Gfwsl,serviceUseCase:h.OO.GetInstallationBillBoards}},M={name:"isCRDSupported",controller:i.GU.Profile,method:i.Xt.Get,endpointPath:"/com.nvidia.services.GFEClientAffinity.targetGfeAchievements/",paramMask:["cmID","cID","gcV","sM","IsB","dIDa","dFma","osC","dch","osB","is6","lg","gLg","GFPV","IsQ","iLp","isSLI","go","cSR","uCst"],reportRequestData:{originalService:h.Uu.Gfwsl,serviceUseCase:h.OO.TargetGfeAchievements}},P="GFE-CRD-GRD-ENABLEMENT",x="https://www.youtube.com/embed/VIDEO_ID?wmode=transparent&controls=1&showinfo=0&autoplay=1",A=n.wY.NvApp+"://"},72053:(St,z,s)=>{"use strict";s.d(z,{QK:()=>C,Rk:()=>i,Zu:()=>n,hN:()=>h,sT:()=>S});var i=function(M){return M[M.Cancel=0]="Cancel",M[M.Install=1]="Install",M[M.Close=2]="Close",M[M.TryAgain=3]="TryAgain",M[M.RestartNow=4]="RestartNow",M[M.RestartLater=5]="RestartLater",M[M.Next=6]="Next",M}(i||{});const n=1,h="releaseDateTime",C=[{failedConstraintId:"SetupSupportedPlatformCheck",constrainText:"drivers.constraints.operatingSystemInUseNotSupported"},{failedConstraintId:"SetupPackagesToInstallCheck",constrainText:"drivers.constraints.noComponentToInstall"},{failedConstraintId:"SetupMissingFilesCheck",constrainText:"drivers.constraints.requireFilesAreMissing"},{failedConstraintId:"SetupMissingPackagesCheck",constrainText:"drivers.constraints.requireComponentMissing"},{failedConstraintId:"SetupAlreadyRunningCheck",constrainText:"drivers.constraints.otherInstallationIsRunning"},{failedConstraintId:"SetupNeedRebootCheck",constrainText:"drivers.constraints.systemRestartIsRequired"},{failedConstraintId:"SetupPackageCorruptCheck",constrainText:"drivers.constraints.installPackageCorrupt"},{failedConstraintId:"SetupNeedsDiskSpaceCheck",constrainText:"drivers.constraints.diskSpaceConstraint"},{failedConstraintId:"SetupPnpRunningCheck",constrainText:"drivers.constraints.foundNewWizardIsOpen"},{failedConstraintId:"IntelDriverPresentCheck",constrainText:"drivers.constraints.installIntelDriverFirst"},{failedConstraintId:"CheckNotSafeMode",constrainText:"drivers.constraints.packageCannotBeInstalledInSafeMode"},{failedConstraintId:"InfPlatformCheck",constrainText:"drivers.constraints.driverIsNotCompatible"},{failedConstraintId:"HardwarePresentCheck",constrainText:"drivers.constraints.graphicsHardwareNotCompatible"},{failedConstraintId:"3DVisionControllerInstalledCheck",constrainText:"drivers.constraints.3dVisionDriverNotCompatible"},{failedConstraintId:"ExternalGraphicsDowngradeCheck",constrainText:"drivers.constraints.installingOlderDriverVersion"},{failedConstraintId:"BlockTH1Install",constrainText:"drivers.constraints.driverIsNotCompatible"},{failedConstraintId:"AllowInstallCheck",constrainText:"drivers.constraints.graphicsHardwareNotCompatible"},{failedConstraintId:"CriticalBsodIssueCheck",constrainText:"drivers.constraints.systemRestartIsRequired"},{failedConstraintId:"osVersionCheck",constrainText:"drivers.constraints.virtualAudioIsNotCompatible"}];var S=function(M){return M.SetupSupportedPlatformCheck="SetupSupportedPlatformCheck",M.SetupPackagesToInstallCheck="SetupPackagesToInstallCheck",M.SetupMissingFilesCheck="SetupMissingFilesCheck",M.SetupMissingPackagesCheck="SetupMissingPackagesCheck",M.osVersionCheck="osVersionCheck",M.CriticalBsodIssueCheck="CriticalBsodIssueCheck",M.AllowInstallCheck="AllowInstallCheck",M.BlockTH1Install="BlockTH1Install",M.ExternalGraphicsDowngradeCheck="ExternalGraphicsDowngradeCheck",M.ThreeDVisionControllerInstalledCheck="3DVisionControllerInstalledCheck",M.HardwarePresentCheck="HardwarePresentCheck",M.InfPlatformCheck="InfPlatformCheck",M.CheckNotSafeMode="CheckNotSafeMode",M.IntelDriverPresentCheck="IntelDriverPresentCheck",M.SetupPnpRunningCheck="SetupPnpRunningCheck",M.SetupNeedsDiskSpaceCheck="SetupNeedsDiskSpaceCheck",M.SetupPackageCorruptCheck="SetupPackageCorruptCheck",M.SetupNeedRebootCheck="SetupNeedRebootCheck",M.SetupAlreadyRunningCheck="SetupAlreadyRunningCheck",M}(S||{})},2216:(St,z,s)=>{"use strict";s.d(z,{O6:()=>S,WZ:()=>M,ZN:()=>P,eS:()=>h,hs:()=>C,uj:()=>n});var i=s(20924),n=i.Or.Nvapp.Driverupdaterecommendation.DriverTypeEnum,h=i.Or.Nvapp.Driverupdaterecommendation.UpdateStrategyEnum,C=i.Or.Nvapp.Driverupdaterecommendation.DriverUpdateCheckProgress;const S=[{id:n.GameReadyDriver,title:"drivers.preferences.gameReadyDrivers",subtitle:"drivers.preferences.recommendedForGameUpdates"},{id:n.CreatorReadyDriver,title:"drivers.preferences.studioDrivers",subtitle:"drivers.preferences.recommendedForCreativeApp"}],M=[{id:h.WsRecommendedDriver,title:"drivers.preferences.workstationRecommendedDrivers",subtitle:"drivers.preferences.recommendedForWorkstation"},{id:h.WsLeadingEdgeDriver,title:"drivers.preferences.workstationLeadingEdgeDrivers",subtitle:"drivers.preferences.recommendedForLeadingEdge"},{id:h.WsConservativeDriver,title:"drivers.preferences.workstationConservativeDrivers",subtitle:"drivers.preferences.recommendedForConservative"}];var P=function(x){return x.WRD="wrd",x.WLD="wld",x.WCD="wcd",x}(P||{})},99929:(St,z,s)=>{"use strict";s.d(z,{p:()=>M});var i=s(26875),h=s(56302),C=s(58527),S=s(92602);let M=(()=>{class P{constructor(A){this.logger=A.getLogger("nvapp/DriverContentService")}processDriverContentDetails(A){const g=A?.DriverAttributes.clientUX??null,m=(0,i.isEmpty)(g?.DriverTypeArticle),l=(0,i.isEmpty)(g?.ReleaseHighlight),r=(0,i.isEmpty)(g?.MarqueeBanner),u=g?.ReleaseNotesAbstract;if((0,i.isEmpty)(g)||m&&l&&r)return(0,i.isEmpty)(u)?null:{releaseNotesAbstract:u};{const v=m?null:g.DriverTypeArticle;let E=l?null:g.ReleaseHighlight;const T=r?[]:this.processMarquee(g?.MarqueeBanner);return this.isReleaseHighlightObjectType(E)&&(E=Object.keys(E).map(R=>({title:`drivers.${R}`,elements:E[R]}))),{driverTypeArticle:v,marqueeBanner:T,releaseHighlight:E,releaseNotesAbstract:u}}}isReleaseHighlightObjectType(A){return!!A&&"object"==typeof A&&!(0,i.isArray)(A)}processMarquee(A){return A.map(g=>{const m=(0,i.isEmpty)(g.video?.url)?g.gfeLoadUrl:g.video?.url,l={uri:h.$7+m,label:g?.actionLabel},r=(0,i.isEmpty)(m)&&(0,i.isEmpty)(g?.actionLabel)?null:l;return{title:g.name,body:g?.description,image:g?.image,linksTo:g?.linksTo,action:r}})}static{this.\u0275fac=function(g){return new(g||P)(C.KVO(S.J6))}}static{this.\u0275prov=C.jDH({token:P,factory:P.\u0275fac,providedIn:"root"})}}return P})()},72482:(St,z,s)=>{"use strict";s.d(z,{u:()=>X});var i=s(43848),n=s(59859),h=s(31315),C=s(65706),S=s(75707),M=s(72147),P=s(14714),x=s(83915),A=s(8619),g=s(26875),m=s(20924),l=s(35965),r=s(70521),u=s(71152),v=s(56302),E=s(2216),T=s(58431),R=s(5498),B=s(58527),U=s(1242),Y=s(92602);let ae=(()=>{class q{constructor(ce,te){this.gfwslService=ce,this.gfwslService.addEndpointDefinitions([v.OB,v.Fd,v.BN]),this.logger=te.getLogger("nvapp/DriverGfwslService")}getDriverInformation(ce,te,Ee,it,Fe){return this.logger.info("getDriverInformation"),this.gfwslService.onGfwslParamsReady({hasGeoInfo:!0,hasLocaleInfo:!0,hasSystemInfo:!0}).pipe((0,S.ZZ)(Qe=>{const ct={GFPV:ce,upCRD:te.toString(),isInst:this.toParamStatus(Ee),prvMd:this.toParamStatus(it)};return this.gfwslService.callEndpoint(v.OB.name,ct,null,null,{serviceSubUseCase:Ee?U.LG.GetInstalledDriver:U.LG.GetRecommendedDriver},R.I.GfwslDriverReleaseHighlight,Fe)}),(0,x.T)(Qe=>Qe.body))}getInstallationDriverData(ce,te,Ee){return this.logger.info("getInstallationDriverData"),this.gfwslService.onGfwslParamsReady({hasSystemInfo:!0,hasLocaleInfo:!0}).pipe((0,S.ZZ)(it=>{if(!it.params.dIDa)return(0,n.$)("hardware system info provided insufficient primary gpu information");const Fe={isInst:this.toParamStatus(te),upCRD:ce.toString()};return this.gfwslService.callEndpoint(v.Fd.name,Fe,null,null,null,R.I.GfwslInstallationBillboardData,Ee)}),(0,x.T)(it=>it.body))}getIsCRDSupported(ce){return this.logger.info("getIsCRDSupported"),this.gfwslService.onGfwslParamsReady({hasSystemInfo:!0,hasLocaleInfo:!0}).pipe((0,S.ZZ)(te=>te.params.dIDa?this.gfwslService.callEndpoint(v.BN.name,{cmID:v.ed},null,null,null,R.I.GfwslGfeTargetAchievementData,ce):(0,n.$)("hardware system info provided insufficient primary gpu information")),(0,x.T)(te=>te.body?.html?.body))}toParamStatus(ce){return ce?l.Hr.Enabled:l.Hr.Disabled}static{this.\u0275fac=function(te){return new(te||q)(B.KVO(l.XB),B.KVO(Y.J6))}}static{this.\u0275prov=B.jDH({token:q,factory:q.\u0275fac,providedIn:"root"})}}return q})();var G=s(47847),k=s(99929);let X=(()=>{class q{constructor(ce,te,Ee,it,Fe,Qe,ct,Ge){this.driverGfwslService=ce,this.hardwareService=te,this.serviceWorkerService=Ee,this.bridgeService=it,this.appConfig=Fe,this.driverContentService=Qe,this.localeService=ct,this.logger=Ge.getLogger("nvapp/DriverInformationService"),this.parentSpanCache=new Map,this.cacheRefreshTime=this.appConfig?.gfwsl?.cacheRefreshTime,this.driverContentEventStream=new u.V$(nt=>this.fetchDriverInformation(nt),!0,!0,!0,this.cacheRefreshTime),this.installationDataEventStream=new u.V$(nt=>this.fetchInstallationDriverData(nt),!0,!0,!0,this.cacheRefreshTime),this.targetAchievementEventStream=new u.TE(()=>this.fetchIsCRDSupported(),!0,!0,!0,this.cacheRefreshTime),this.initServiceWorkerNotifications()}getDriverInformation(ce,te,Ee){const it=this.driverCacheKey(ce,te.toString());return this.setParentSpan(it,R.I.GfwslDriverReleaseHighlight,Ee),this.driverContentEventStream.get$(it).pipe((0,C.s)(1))}getInstallationDriverData(ce,te,Ee){return this.isInstalledDriver(ce,te).pipe((0,S.ZZ)(it=>{const Fe=te.toString(),ct=this.driverCacheKey(Fe,it?l.Hr.Enabled:l.Hr.Disabled);return this.setParentSpan(ct,R.I.GfwslInstallationBillboardData,Ee),this.installationDataEventStream.get$(ct)}),(0,C.s)(1))}getIsCRDSupported(ce){return this.setParentSpan(null,R.I.GfwslGfeTargetAchievementData,ce),this.targetAchievementEventStream.get$().pipe((0,M.n)(te=>{const Ee=te?.Achievements;if(Ee){const it=Ee.find(Fe=>Fe.ID===v.ed);if(it){const Fe="true"===it?.overallState;return this.logger.info("CRD feature state ",Fe),(0,i.of)(Fe)}return(0,n.$)("CRD id not found in Achievements")}return(0,n.$)("Invalid response for GFWSL targetGfeAchievements")}),(0,P.W)(te=>(this.logger.error("getIsCRDSupported failed with the response",te),(0,i.of)(!1))))}isInstalledDriver(ce,te){return this.hardwareService.getGenericInfo(!1).pipe((0,C.s)(1),(0,x.T)(Ee=>Ee.DriverVersion===ce&&Ee.DriverType===te),(0,P.W)(Ee=>(0,i.of)(!1)))}fetchDriverInstallInfo(){return this.hardwareService.getGenericInfo(!1).pipe((0,x.T)(ce=>(this.driverInstallInfo={isDriverInstalled:!!ce?.DriverVersion,isMinimumDriverInstalled:ce?.DriverVersion>=ce?.MinimumDriverVersion},this.driverInstallInfo)),(0,P.W)(ce=>(this.logger.error("failed to fetch driver install info",ce),(0,n.$)(ce))))}getDriverInstallInfo(){return this.driverInstallInfo}getDriverDetails(ce,te,Ee,it){let Fe=te===E.uj.CreatorReadyDriver?"drivers.fallbackGeforceCrdDriverName":"drivers.fallbackGeforceGrdDriverName";it&&(Fe="drivers.preferences.workstationDrivers");let Qe={version:ce,name:Fe,releaseDateTime:"",downloadURL:"",driverType:te};return this.logger.info("fetch driver Information"),this.getDriverInformation(ce,te,Ee).pipe((0,C.s)(1),(0,x.T)(ct=>{this.logger.info("driver Information response :",ct);const Ge=this.driverContentService.processDriverContentDetails(ct);return Qe={...Qe,name:ct?.DriverAttributes?.Name,releaseDateTime:ct?.DriverAttributes?.ReleaseDateTime,downloadURL:ct?.DriverAttributes?.DownloadURL,content:Ge},Qe}),(0,P.W)(ct=>(this.logger.error("getDriverDetails failed with Error :",ct),(0,i.of)({...Qe,isFallbackResponse:!0}))))}fetchEditorPreviewState(){return this.bridgeService.executeCommand(m.Ts.Nvapp.Driverupdaterecommendation.GetGRDEditorPreviewMode).pipe((0,x.T)(ce=>ce?.isEnabled??!1),(0,P.W)(ce=>(0,i.of)(!1)))}fetchIsCRDSupported(){const ce=this.getParentSpan(null,R.I.GfwslGfeTargetAchievementData);return this.driverGfwslService.getIsCRDSupported(ce)}fetchDriverInformation(ce){const[te,Ee]=this.driverDetailsFromCacheKey(ce),it=+Ee,Fe=this.getParentSpan(ce,R.I.GfwslDriverReleaseHighlight),Qe=this.fetchEditorPreviewState(),ct=this.isInstalledDriver(te,it);return(0,h.zV)([Qe,ct]).pipe((0,M.n)(([Ge,nt])=>this.driverGfwslService.getDriverInformation(te,it,nt,Ge,Fe)))}fetchInstallationDriverData(ce){const[te,Ee]=this.driverDetailsFromCacheKey(ce),it=this.getParentSpan(ce,R.I.GfwslInstallationBillboardData);return this.driverGfwslService.getInstallationDriverData(+te,!!+Ee,it)}driverCacheKey(...ce){const te=this.localeService.getLocale().replace("_","-");return ce.push(te),ce.join(T.Ft)}driverDetailsFromCacheKey(ce){const te=ce?.split(T.Ft);return te.length>1?te:[]}ensureParentSpanEntryExists(ce,te){!this.parentSpanCache.has(ce)&&te&&this.parentSpanCache.set(ce,te)}setParentSpan(ce,te,Ee){this.ensureParentSpanEntryExists((ce??"")+T.Ft+te,Ee)}getParentSpan(ce,te){return this.parentSpanCache.get((ce??"")+T.Ft+te)}initServiceWorkerNotifications(){this.logger.info("Initializing Service Worker Update Notifications");const ce=r.th.staleWhileRevalidate?.gfwslDriverContent,te=r.th.staleWhileRevalidate?.gfwslInstaller,Ee=r.th.staleWhileRevalidate?.gfwslProfile,it=[ce?.cacheName,te?.cacheName,Ee?.cacheName];this.serviceWorkerSubscription=this.serviceWorkerService.swCacheUpdated.pipe((0,A.p)(Fe=>it.includes(Fe.name)&&Fe.data)).subscribe(Fe=>{let Qe=null;switch(this.logger.info("Received SW notification",Fe),Fe.name){case ce?.cacheName:this.logger.info("Received updated data SW notification for Driver content",Fe.data),Qe=this.getCacheKeyFromGfwslParams(Fe.url,ce?.routePattern,["GFPV","upCRD"]),this.updateStreamData(Fe,this.driverContentEventStream,Qe);break;case te?.cacheName:this.logger.info("Received updated data SW notification for Installer Billboards",Fe.data),Qe=this.getCacheKeyFromGfwslParams(Fe.url,te?.routePattern,["upCRD","isInst"]),this.updateStreamData(Fe,this.installationDataEventStream,Qe);break;case Ee?.cacheName:this.logger.info("Received updated data SW notification for targetGFEAchievement",Fe.data),Fe={...Fe,data:Fe?.data?.html?.body},this.updateStreamData(Fe,this.targetAchievementEventStream)}})}updateStreamData(ce,te,Ee){const it=ce.data;let Fe=!1;if(Ee){const Qe=te,ct=Qe.getData(Ee);!(0,g.isEqual)(it,ct)&&it?Qe.setData(Ee,it,!0):Fe=!0}else{const Qe=te,ct=Qe.getData();!(0,g.isEqual)(it,ct)&&it?Qe.setData(it,!0):Fe=!0}Fe&&this.logger.info("Received data is same as previously fetched data")}getCacheKeyFromGfwslParams(ce,te,Ee){const it=decodeURI(ce)?.split(te)?.join("");if(Ee.every(Fe=>it.includes(Fe))){const Fe=JSON.parse(it),Qe=Object.values((0,g.pick)(Fe,Ee));return this.driverCacheKey(...Qe)}return""}ngOnDestroy(){this.serviceWorkerSubscription?.unsubscribe()}static{this.\u0275fac=function(te){return new(te||q)(B.KVO(ae),B.KVO(Y.SQ),B.KVO(r.lS),B.KVO(Y.NZ),B.KVO(G.Vk),B.KVO(k.p),B.KVO(Y.iH),B.KVO(Y.J6))}}static{this.\u0275prov=B.jDH({token:q,factory:q.\u0275fac,providedIn:"root"})}}return q})()},48334:(St,z,s)=>{"use strict";s.d(z,{T:()=>B});var i=s(75707),n=s(83915),h=s(14714),C=s(72147),S=s(65706),M=s(91384),P=s(26875),A=s(72053),g=s(94645),m=s(26513),l=s(43848),r=s(31315),u=s(58527),v=s(92602),E=s(72482),T=s(62929),R=s(47847);let B=(()=>{class U{constructor(ae,G,k,X,q,Q){this.loggingService=ae,this.hardwareService=G,this.dbService=k,this.driverInfoService=X,this.driverUtilsService=q,this.appConfig=Q,this.previouslyInstalledDrivers$=new m.t(null),this.isPreviouslyInstalledDriverUpdateInProgress=!1,this.logger=this.loggingService.getLogger("nvapp/DriverInstallHistoryService"),this.globalStore=this.dbService.getGlobalStore(g.xI.GlobalStore)}initializePreviouslyInstalledDrivers(){return this.fetchPreviouslyInstalledDriverFromDB().pipe((0,i.ZZ)(ae=>this.getPreviouslyInstalledDriversDetails(ae)),(0,i.ZZ)(({mergedDriverInfo:ae,isPurged:G})=>{if(G){const k=this.mapDriversToDBFormat(ae);return this.saveDriverInfoInDB(k).pipe((0,n.T)(()=>(this.logger.info("Successfully saved the Purged list of previously installed driver info in the DB"),this.setDriverDetails(ae),this.previouslyInstalledDrivers)))}return this.setDriverDetails(ae),(0,l.of)(this.previouslyInstalledDrivers)}),(0,h.W)(ae=>(this.previouslyInstalledDrivers$.next(this.previouslyInstalledDrivers),this.logger.error("Some issue while setting previously installed driver info ",ae),(0,l.of)(this.previouslyInstalledDrivers))))}handlePostInstallation(ae){this.getMaxDriverDisplayCount().pipe((0,C.n)(G=>{this.addDriverToHistory(ae),this.previouslyInstalledDrivers.length>G+1&&(this.previouslyInstalledDrivers=this.getTopDriversByReleaseDate(this.previouslyInstalledDrivers,G+1)),this.previouslyInstalledDrivers$.next(this.previouslyInstalledDrivers);const k=this.mapDriversToDBFormat(this.previouslyInstalledDrivers);return this.saveDriverInfoInDB(k)}),(0,S.s)(1)).subscribe(G=>{this.initializePreviouslyInstalledDrivers(),this.logger.info("Successfully saved the previously installed driver info in the DB ",G)},G=>{this.logger.error("Error while saving the previously installed driver info in the DB ",G)})}getMaxDriverDisplayCount(){return this.hardwareService.getQuadroSystemFlag().pipe((0,S.s)(1),(0,n.T)(ae=>{const G=this.appConfig.previouslyInstalledDriversConfig?.maxDisplayCount,k=G?.quadro,X=G?.default;return ae?k:X}))}get isPreviouslyInstalledDriverFeatureEnabled(){return this.appConfig.featureEnablement?.previouslyInstalledDrivers?.enabled}getTopDriversByReleaseDate(ae,G){const k=ae?.sort((X,q)=>new Date(q[A.hN]).getTime()-new Date(X[A.hN]).getTime());return G&&k&&(ae=k.slice(0,G)),ae}getPreviouslyInstalledDriversInfo(){return this.previouslyInstalledDrivers$.asObservable()}setPreviouslyInstalledDriversInfo(ae){this.previouslyInstalledDrivers$.next(ae),this.previouslyInstalledDrivers=ae}setPreviouslyInstalledDriverState(ae){this.isPreviouslyInstalledDriverUpdateInProgress=ae}getPreviouslyInstalledDriverState(){return this.isPreviouslyInstalledDriverUpdateInProgress}getPreviouslyInstalledDriversDetails(ae){const G={};return ae&&ae.length>0?(this.previouslyInstalledDrivers=ae,(0,r.zV)(ae.map(k=>this.driverInfoService.getDriverDetails(k.version,k.driverType).pipe((0,n.T)(X=>(!X.isFallbackResponse&&!X.downloadURL&&(G[k.version]=k.driverType),X))))).pipe((0,i.ZZ)(k=>this.driverUtilsService.setDownloadAndProcessingStatus(k)),(0,i.ZZ)(k=>{if((0,P.isEmpty)(G))return(0,l.of)({mergedDriverInfo:k,isPurged:!1});{this.logger.info("purgeDrivers: ",G);const X=k.filter(q=>G[q.version]!==q.driverType);return this.logger.info("filteredMergedDriverInfo: ",X),(0,l.of)({mergedDriverInfo:X,isPurged:!0})}}))):(0,l.of)({mergedDriverInfo:[],isPurged:!1})}setDriverDetails(ae){this.previouslyInstalledDrivers$.next(ae),this.previouslyInstalledDrivers=ae}addDriverToHistory(ae){this.previouslyInstalledDrivers.some(k=>k.driverType===ae.driverType&&k.version==ae.version)?this.logger.info("Cannot add driver to Driver history list. Driver entry already present in the List."):(this.logger.info("Adding driver to the history list."),this.previouslyInstalledDrivers?.push(ae))}mapDriversToDBFormat(ae){return ae?.map(({name:G,version:k,releaseDateTime:X,downloadURL:q,driverType:Q})=>({name:G,version:k,releaseDateTime:X,downloadURL:q,driverType:Q}))}saveDriverInfoInDB(ae){return this.globalStore.setItem(g.QC.previouslyInstalledDrivers,ae).pipe((0,M.M)(G=>this.isCachedDBDriverData=!1))}fetchPreviouslyInstalledDriverFromDB(){return this.isCachedDBDriverData?(0,l.of)(this.previouslyInstalledDrivers):this.globalStore.getItem(g.QC.previouslyInstalledDrivers).pipe((0,M.M)(ae=>this.isCachedDBDriverData=!0))}static{this.\u0275fac=function(G){return new(G||U)(u.KVO(v.J6),u.KVO(v.SQ),u.KVO(v.at),u.KVO(E.u),u.KVO(T.r),u.KVO(R.Vk))}}static{this.\u0275prov=u.jDH({token:U,factory:U.\u0275fac,providedIn:"root"})}}return U})()},82102:(St,z,s)=>{"use strict";s.d(z,{f:()=>Ve});var i=s(26513),n=s(80583),h=s(43848),C=s(59859),S=s(31315),M=s(12532),P=s(36466),x=s(35146),A=s(3496),g=s(72147),m=s(83915),l=s(14714),r=s(65770),u=s(91384),v=s(65706),E=s(8619),T=s(75707),R=s(43615),B=s(62931),U=s(26875),Y=s(20924),ae=s(76449),G=s(53698),k=s(5498),X=s(2216),q=s(1242),Q=s(58431),ce=s(58527),te=s(92602),Ee=s(86088),it=s(4760),Fe=s(72482),Qe=s(79027),ct=s(62929),Ge=s(96306),nt=s(47847);let Je=(()=>{class $e{constructor(Pe,J,vt,ve,ue){this.errorHandlerService=Pe,this.windowService=J,this.bytesPipe=vt,this.loggingService=ve,this.appConfig=ue,this.logger=this.loggingService.getLogger("nvapp/DriverErrorService")}handleDownloadError(Pe){const{downloadStatus:J,downloadedLocation:vt,totalBytes:ve}=Pe??{},ue={text:"common.close"};let et="",se="",Ce=null;switch(J){case G.hF.NetworkErrorRetryPaused:this.showToastMessage("drivers.downloadPausedUnableToReachNvidia");break;case G.hF.ChecksumVerificationFailed:case G.hF.SignatureVerificationFailed:this.showToastMessage("drivers.driverDownloadFailed");break;case G.hF.Error:this.showToastMessage("drivers.unableToConnectToNvidia");break;case G.hF.DiskWriteFail:se="drivers.downloadDiskSpace",Ce={value:this.bytesPipe.transform(ve),drive:vt?.split(":")?.[0]?.toUpperCase()??""},et="drivers.driverDownloadFailed";const me={headerText:this.getHigText(et),bodyText:this.getHigText(se,Ce),primaryButton:ue};this.errorHandlerService.showErrorDialog(me);break;case G.hF.Prohibited:this.logger.info("driver Prohibited"),se="drivers.downloadProhibited",et="drivers.driverDownloadFailed";const le={text:"drivers.getLatestDriverLink",linkClickedCallback:this.errorDialogExternalLink.bind(this,this.appConfig?.driver?.driverDownloadPage)},Xe={headerText:this.getHigText(et),bodyText:this.getHigText(se),link:le,primaryButton:ue};this.errorHandlerService.showErrorDialog(Xe)}}handlePostProcessErrors(Pe){const{postProcessingStatus:J,actions:vt}=Pe??{},{FailedRetryPending:ve,Failed:ue}=G.sb,et=vt?.[0],se={text:"common.close"};let be="";if(J===G.Mo.Failed&&[ve,ue].includes(et.actionStatus)){switch(+et?.output){case Q.yX.NvExtractionFatal:be="drivers.extractionErrorNotEnoughSpace";break;case Q.yX.NvExtractionCommandLine:be="drivers.extractionError";break;case Q.yX.NvExtractionMemory:be="drivers.insufficientMemory";break;default:be="drivers.extractionError"}const me={headerText:this.getHigText("drivers.anErrorOccurred"),bodyText:this.getHigText(be),primaryButton:se};this.errorHandlerService.showErrorDialog(me)}}showToastMessage(Pe,J,vt){const ve=this.getHigText(Pe,J,vt);this.errorHandlerService.showToastMessage(ve).subscribe()}getHigText(Pe,J,vt){return{text:Pe,placeholders:J,translated:!!(0,U.isEmpty)(J)&&!!vt}}errorDialogExternalLink(Pe){this.windowService.window.open(Pe,"_blank")}static{this.\u0275fac=function(J){return new(J||$e)(ce.KVO(Ge.c),ce.KVO(te.s7),ce.KVO(te.cr),ce.KVO(te.J6),ce.KVO(nt.Vk))}}static{this.\u0275prov=ce.jDH({token:$e,factory:$e.\u0275fac,providedIn:"root"})}}return $e})();var ze=s(48334),Ke=s(99929);let Ve=(()=>{class $e{constructor(Pe,J,vt,ve,ue,et,se,Ce,be,rt,me,le,Xe,Se){this.bridgeService=Pe,this.nvAppBridgeService=J,this.loggingService=vt,this.downloaderService=ve,this.hardwareService=ue,this.driverInformationService=et,this.distributedTracingUtilService=se,this.downloadProgressPipe=Ce,this.driverUtilsService=be,this.telemetryUtilsService=rt,this.driverErrorService=me,this.windowService=le,this.driverInstallHistoryService=Xe,this.driverContentService=Se,this.recommendedDriver=null,this.previouslyInstalledDrivers=[],this.updateCheckProgressStatus$=new i.t(X.hs.finished),this.recommendedDriver$=new i.t(null),this.availableDriverRecommendation$=new i.t(null),this.installedDriver$=new i.t(null),this.previouslyInstalledDriverInfo$=new i.t(null),this.installationDone$=new n.B7,this.disableDownloadButton$=new i.t(!1),this.disableReinstallButton$=new i.t(!1),this.disableUpdateCheck$=new i.t(!0),this.driverTypePreference$=new i.t(void 0),this.updateStrategyPreference$=new i.t(void 0),this.manualCheckForUpdate=!1,this.fetchOnlyDriverRecommendation=!0,this.isDriverTypeChanged=!1,this.logger=this.loggingService.getLogger("nvapp/DriverUpdatesService")}initialize(){this.logger.info("Initialize"),this.registerDriverUpdateCheckProgressNotification(),this.fetchRecommendedDriverOnLoad(),this.driverInstallHistoryService.isPreviouslyInstalledDriverFeatureEnabled&&this.driverInstallHistoryService.getPreviouslyInstalledDriversInfo().subscribe(Pe=>{this.previouslyInstalledDrivers=Pe})}initializeListenersForDrivers(){this.listenForDownloadNotification(),this.listenForPostProcessingNotification(),this.refreshDriverInfo()}getRecommendedDriver(){return this.recommendedDriver$.asObservable()}getPreviouslyInstalledDriverInfo(){return this.previouslyInstalledDriverInfo$.asObservable()}getAvailableDriverRecommendation(){return this.availableDriverRecommendation$.asObservable()}getInstalledDriver(){return this.installedDriver$.asObservable()}getInstallationDone(){return this.installationDone$.asObservable()}getDisableDownloadButtonCheck(){return this.disableDownloadButton$.asObservable()}getDisableReinstallButtonCheck(){return this.disableReinstallButton$.asObservable()}getDisableUpdateCheck(){return this.disableUpdateCheck$.asObservable()}updateDisableUpdateCheck(){this.disableUpdateCheck$.next(this.isCheckForUpdatePossible())}getUpdateCheckProgressStatus(){return this.updateCheckProgressStatus$.asObservable()}getDownloadingProgressStateArray(){return[G.dJ.DownloadStarted,G.dJ.DownloadStatusPaused,G.dJ.DownloadTriggered]}getDriverTypePreference(){return this.driverTypePreference$.asObservable()}getUpdateStrategyPreference(){return this.updateStrategyPreference$.asObservable()}getIsDriverTypeChanged(){return this.isDriverTypeChanged}getDriverInstallInfo(){return this.driverInformationService.getDriverInstallInfo()}sendInstallationDoneNotification(){this.installationDone$.next()}updateDriver(Pe,J){const vt=!!Pe,ve=Pe??J;let Ce,ue=!1,et=!1,se=!1;if(vt){const{version:be,downloadUrl:rt}=ve;ue=this.installedDriver?.version===be&&this.installedDriver?.downloadURL===rt,et=this.recommendedDriver?.version===be&&this.recommendedDriver?.downloadURL===rt,Ce=this.previouslyInstalledDrivers?.filter(me=>me.version===be&&me.downloadURL===rt)[0]}else{const be=this.installedDriver?.downloadProgressStatus?.taskId,rt=this.recommendedDriver?.downloadProgressStatus?.taskId;Ce=this.previouslyInstalledDrivers?.filter(me=>me.downloadProgressStatus?.taskId===ve.taskId)[0],ue=be===ve?.taskId,et=rt===ve?.taskId}if(se=!!Ce,et&&se){const be=this.driverInstallHistoryService.getPreviouslyInstalledDriverState();(Pe?.downloadStatus===G.hF.Finished||J?.postProcessingStatus===G.Mo.Completed)&&(be?(this.recommendedDriver={...this.recommendedDriver,...vt?{downloadProgressStatus:Pe}:{postProcessingStatusInfo:J}},this.recommendedDriver$.next(this.recommendedDriver)):this.updatePreviouslyInstalledDriverStatus(Ce,vt,Pe,J)),se=be}this.installedDriver&&ue?(this.logger.info(`Installed Driver ${vt?"downloadProgressStatus":"postProcessingStatusInfo"}:`,ve),this.installedDriver={...this.installedDriver,...vt?{downloadProgressStatus:Pe}:{postProcessingStatusInfo:J}},this.installedDriver$.next(this.installedDriver)):Ce&&se?(this.logger.info(`Previously installed Driver ${vt?"downloadProgressStatus":"postProcessingStatusInfo"}:`,ve),this.updatePreviouslyInstalledDriverStatus(Ce,vt,Pe,J)):this.recommendedDriver&&et&&(this.logger.info(`Recommended Driver ${vt?"downloadProgressStatus":"postProcessingStatusInfo"}:`,ve),this.recommendedDriver={...this.recommendedDriver,...vt?{downloadProgressStatus:Pe}:{postProcessingStatusInfo:J}},this.recommendedDriver$.next(this.recommendedDriver))}fetchDriverTypePreference(Pe){let J=this.driverTypePreference$.getValue();if(void 0!==J&&!Pe)return(0,h.of)(J);const vt=Y.Ts.Nvapp.Driverupdaterecommendation.GetUserDriverTypePreference,ve=vt.method,ue=vt.module;return this.bridgeService.executeCommand(vt).pipe((0,g.n)(et=>et?(0,h.of)(et):(0,C.$)("GetUserDriverTypePreference response is null")),(0,m.T)(et=>(this.logger.info("getUserDriverTypePreference response: ",et),J=et?.driverType,this.driverTypePreference$.next(J),this.telemetryUtilsService.sendPluginApiStatusTelemetry({apiName:ve,pluginName:ue,status:q.L1.Success}),J)),(0,l.W)(et=>(this.logger.error("Failed to getUserDriverTypePreference with Error : ",et),this.telemetryUtilsService.sendPluginApiStatusTelemetry({apiName:ve,pluginName:ue,status:q.L1.Failure,errorMessage:JSON.stringify(et)}),(0,h.of)(null))),(0,r.u)())}fetchUpdateStrategyPreference(Pe){let J=this.updateStrategyPreference$.getValue();if(void 0!==J&&!Pe)return(0,h.of)(J);const vt=Y.Ts.Nvapp.Driverupdaterecommendation.GetUpdateStrategyPreference,ve=vt.method,ue=vt.module;return this.bridgeService.executeCommand(vt).pipe((0,g.n)(et=>et?(0,h.of)(et):(0,C.$)("fetchUpdateStrategyPreference response is null")),(0,m.T)(et=>(this.logger.info("fetchUpdateStrategyPreference response: ",et),J=et?.updateStrategy,this.updateStrategyPreference$.next(J),this.telemetryUtilsService.sendPluginApiStatusTelemetry({apiName:ve,pluginName:ue,status:q.L1.Success}),J)),(0,l.W)(et=>(this.logger.error("Failed to getUserDriverTypePreference with Error : ",et),this.telemetryUtilsService.sendPluginApiStatusTelemetry({apiName:ve,pluginName:ue,status:q.L1.Failure,errorMessage:JSON.stringify(et)}),(0,h.of)(null))),(0,r.u)())}setDriverTypePreference(Pe){const J=this.driverTypePreference$.getValue();this.driverTypePreference$.next(Pe);const vt=Y.Ts.Nvapp.Driverupdaterecommendation.SetUserDriverTypePreference,ve=vt.method,ue=vt.module;return this.bridgeService.executeCommand(vt,{driverType:Pe}).pipe((0,u.M)(et=>{this.telemetryUtilsService.sendPluginApiStatusTelemetry({apiName:ve,pluginName:ue,status:q.L1.Success,params:Pe.toString()})}),(0,l.W)(et=>(this.telemetryUtilsService.sendPluginApiStatusTelemetry({apiName:ve,pluginName:ue,errorMessage:et&&et.message?et.message:"Error while setting driver type preference",status:q.L1.Failure,params:Pe.toString()}),this.driverTypePreference$.next(J),(0,C.$)(et))))}setUpdateStrategyPreference(Pe){const J=this.updateStrategyPreference$.getValue();return this.updateStrategyPreference$.next(Pe),this.nvAppBridgeService.executeWithPluginStatusTelemetry(Y.Ts.Nvapp.Driverupdaterecommendation.SetUpdateStrategyPreference,{updateStrategy:Pe},{params:Pe.toString()},!0,!1,"Error while setting update strategy preference").pipe((0,l.W)(ve=>(this.updateStrategyPreference$.next(J),(0,C.$)(ve))))}validateEnumValue(Pe,J,vt){return Object.values(Pe)?.includes(J)?J:vt}updateDriverTypePreference(Pe){this.updateDriverTypePreferenceDriverType(X.O6.find(J=>J.id===Pe))}updateDriverTypePreferenceDriverType(Pe){const J=this.validateEnumValue(X.uj,Pe.id,X.uj.GameReadyDriver),vt=this.validateEnumValue(X.eS,Pe.id,X.eS.WsRecommendedDriver);this.driverCheckForUpdateEvent(X.hs.started),this.disableDownloadAndReinstall(),this.isDriverTypeChanged=!0,(0,S.zV)([this.setUpdateStrategyPreference(vt),this.setDriverTypePreference(J)]).pipe((0,v.s)(1)).subscribe(ve=>{this.triggerDriverCheckForUpdate(!1),this.logger.info("successfully set UserDriverTypePreference with response",ve),this.telemetryUtilsService.sendSettingChangeEvent(q.iZ,this.driverUtilsService.getDownloaderCandidate(J),null,!0),this.telemetryUtilsService.sendSettingChangeEvent(q.iZ,this.getUpdateStrategyTag(vt),null,!0)},ve=>{this.logger.error("setUserDriverTypePreference failed with Error: ",ve),this.driverCheckForUpdateEvent(X.hs.failed),this.disableDownloadAndReinstall(),this.driverErrorService.showToastMessage("drivers.unableToConnectToNvidia"),this.telemetryUtilsService.sendSettingChangeEvent(q.iZ,Pe.toString(),null,!0,ve?.message??"failed to set user driver type preference")})}fetchInstalledDriver(){this.logger.info("Fetch installedDriverDetails");const Pe=this.distributedTracingUtilService.startSpan(k.I.InstalledDriverDetails);return(0,S.zV)([this.hardwareService.getGenericInfo(!1),this.hardwareService.getQuadroSystemFlag()]).pipe((0,v.s)(1),(0,g.n)(([J,vt])=>(0,U.isEmpty)(J.DriverVersion)?(0,C.$)("getGenericInfo returned empty installed driver version"):this.driverInformationService.getDriverDetails(J.DriverVersion,J.DriverType,Pe,vt)),(0,g.n)(J=>(this.installedDriver=J,this.installedDriver$?.next(this.installedDriver),this.driverUtilsService.getDownloadStatus(this.installedDriver))),(0,g.n)(J=>(this.driverUtilsService.setReinstallButtonClicked(J?.downloadStatus,null),this.driverUtilsService.getPostProcessingStatus(J,this.installedDriver))),(0,m.T)(()=>{this.driverUtilsService.setReinstallButtonClicked(this.installedDriver?.downloadProgressStatus?.downloadStatus,this.installedDriver?.postProcessingStatusInfo?.postProcessingStatus),this.installedDriver$?.next(this.installedDriver),this.distributedTracingUtilService.setSpanAttribute(Pe,ae.NS.Error,!1),this.distributedTracingUtilService.closeSpan(Pe)}),(0,l.W)(J=>(this.logger.error("Failed to getInstalledDriverDetails with Error :",J),this.distributedTracingUtilService.setSpanAttribute(Pe,ae.NS.Error,!0),this.distributedTracingUtilService.closeSpan(Pe),this.installedDriver$.next(this.installedDriver),(0,h.of)(null))),(0,r.u)())}fetchPreviouslyInstalledDriver(){if(this.driverInstallHistoryService.isPreviouslyInstalledDriverFeatureEnabled){const Pe=this.distributedTracingUtilService.startSpan(k.I.PreviouslyInstalledDriverDetails);return this.driverInstallHistoryService.getPreviouslyInstalledDriversInfo().pipe((0,E.p)(J=>null!==J),(0,v.s)(1),(0,T.ZZ)(J=>this.driverUtilsService.setDownloadAndProcessingStatus(J)),(0,m.T)(J=>{this.driverInstallHistoryService.setPreviouslyInstalledDriversInfo(J),this.distributedTracingUtilService.setSpanAttribute(Pe,ae.NS.Error,!1),this.distributedTracingUtilService.closeSpan(Pe)}),(0,l.W)(J=>(this.logger.error("Failed to getPreviouslyInstalledDriverDetails with Error :",J),this.distributedTracingUtilService.setSpanAttribute(Pe,ae.NS.Error,!0),this.distributedTracingUtilService.closeSpan(Pe),(0,h.of)(null))),(0,r.u)())}return(0,h.of)(void 0)}refreshDriversOnInstallation(){this.driverUtilsService.overrideReinstallButtonClicked(!1),this.sendInstallationDoneNotification(),(0,S.zV)([this.hardwareService.getGenericInfo(!0),this.hardwareService.getGpuInfo(!0)]).pipe((0,v.s)(1)).subscribe(()=>{this.logger.info("hardware info refresh successfully after driver installation finish")},Pe=>{this.logger.error("failed to refresh generic info or GPU info on driver installation",Pe)})}disableDownloadAndReinstall(){const Pe=this.updateCheckProgressStatus$.getValue()===X.hs.started,J=this.downloadProgressPipe.transform(this.installedDriver?.downloadProgressStatus?.downloadStatus),vt=this.downloadProgressPipe.transform(this.recommendedDriver?.downloadProgressStatus?.downloadStatus),ve=this.getDownloadingProgressStateArray(),ue=ve.includes(J),et=ve.includes(vt);this.disableDownloadButton$.next(ue||Pe),this.disableReinstallButton$.next(et||Pe)}fetchRecommendedDriver(Pe=!1){this.logger.info("fetch recommended driver details");const J=this.distributedTracingUtilService.startSpan(k.I.RecommendedDriverDetails);return this.getDriverUpdateRecommendation(Pe).pipe((0,g.n)(vt=>(this.recommendedDriver=vt,vt?this.driverInformationService.getDriverInformation(this.recommendedDriver.version,this.recommendedDriver?.driverType,J).pipe((0,v.s)(1),(0,l.W)(ve=>(this.logger.error("failed to get driver information for recommended driver with error",ve),(0,h.of)(null)))):(0,C.$)("No Driver Found"))),(0,g.n)(vt=>(this.recommendedDriver={...this.recommendedDriver,content:this.driverContentService.processDriverContentDetails(vt)},this.recommendedDriver$?.next(this.recommendedDriver),this.driverUtilsService.getDownloadStatus(this.recommendedDriver))),(0,g.n)(vt=>this.driverUtilsService.getPostProcessingStatus(vt,this.recommendedDriver)),(0,m.T)(()=>{this.recommendedDriver$?.next(this.recommendedDriver),this.distributedTracingUtilService.setSpanAttribute(J,ae.NS.Error,!1),this.distributedTracingUtilService.closeSpan(J)}),(0,l.W)(vt=>(this.logger.error("Failed to getRecommendedDriverDetails with Error :",vt),this.distributedTracingUtilService.setSpanAttribute(J,ae.NS.Error,!0),this.distributedTracingUtilService.closeSpan(J),this.recommendedDriver$.next(this.recommendedDriver),(0,h.of)(null))),(0,R.j)(()=>{this.disableDownloadAndReinstall(),this.updateDisableUpdateCheck()}),(0,r.u)())}isCheckForUpdatePossible(){const Pe=this.recommendedDriver?.downloadProgressStatus?.downloadStatus,{Paused:J,Downloading:vt,NetworkErrorRetrying:ve,DownloadTriggered:ue}=G.hF;return![J,vt,ve,ue].includes(Pe)}triggerDriverCheckForUpdate(Pe){(!Pe||this.isCheckForUpdatePossible())&&(this.manualCheckForUpdate=Pe,this.logger.info("driver update scan starting.."),this.bridgeService.executeCommand(Y.Ts.Nvapp.Driverupdaterecommendation.StartDriverUpdateCheck).subscribe(J=>{this.logger.info("check for driver update started with response",J)},J=>{this.logger.error("driver update scan failed with Error :",J)}))}getUpdateStrategyTag(Pe){return{[X.eS.WsRecommendedDriver]:X.ZN.WRD,[X.eS.WsLeadingEdgeDriver]:X.ZN.WLD,[X.eS.WsConservativeDriver]:X.ZN.WCD}[Pe]}getInstallationDriverData(Pe,J){return this.driverInformationService.getInstallationDriverData(Pe,J).pipe((0,m.T)(vt=>vt?.html?.head?.response?.url))}getIsCRDSupported(Pe){return this.driverInformationService.getIsCRDSupported(Pe)}updateDriverOnGenericInfoUpdate(){this.updateDriverOnGenericInfoUpdateSubscription&&this.updateDriverOnGenericInfoUpdateSubscription.unsubscribe(),this.updateDriverOnGenericInfoUpdateSubscription=this.hardwareService.getGenericInfo(!1).pipe((0,g.n)(Pe=>{const J=this.installedDriver?.driverType!==Pe?.DriverType;return this.installedDriver&&(Pe?.DriverVersion!==this.installedDriver?.version||J)||!this.installedDriver&&Pe?.DriverVersion?(this.logger.info("update driver on generic info update"),this.fetchDriversData(!this.installedDriver||J,!0)):M.w})).subscribe(P.l,Pe=>{this.logger.error("failed to update driver on generic info update",Pe)})}fetchDriversData(Pe,J){return this.fetchOnlyDriverRecommendation?(0,x.yU)(this.fetchDriverTypePreference(J),this.getDriverUpdateRecommendation(J)):(0,x.yU)(this.fetchDriverTypePreference(J),this.fetchInstalledDriver(),this.fetchPreviouslyInstalledDriver(),this.fetchLatestDrvrOrTriggerCheckForUpdate(Pe,J))}refreshDriverInfo(){this.unsubscribeRefreshDriverInfoSubscription(),this.refreshDriverInfoSubs=this.windowService.getFocusEvent().pipe((0,B.B)(Q._2),(0,g.n)(()=>(0,S.zV)([this.fetchInstalledDriverInfo(),this.fetchRecommendedDriverInfo(),this.fetchPreviouslyInstalledDriverInfo(),this.getIsCRDSupported()]).pipe((0,v.s)(1)))).subscribe()}unsubscribeRefreshDriverInfoSubscription(){this.refreshDriverInfoSubs?.unsubscribe()}fetchRecommendedDriverOnLoad(){(0,A.O)(0).pipe((0,g.n)(()=>this.getDriverUpdateRecommendation(!0)),(0,R.j)(()=>{this.triggerDriverCheckForUpdate()}),(0,v.s)(1)).subscribe(Pe=>{this.logger.info("fetched driver update information on the app load",Pe)},Pe=>{this.logger.error("failed to fetch driver update information on the app load",Pe)})}fetchLatestDrvrOrTriggerCheckForUpdate(Pe,J){return Pe?(0,h.of)(this.triggerDriverCheckForUpdate()):this.fetchRecommendedDriver(J)}fetchRecommendedDriverInfo(){return this.getRecommendedDriver().pipe((0,v.s)(1),(0,E.p)(Pe=>!(0,U.isEmpty)(Pe)),(0,g.n)(Pe=>this.driverInformationService.getDriverInformation(Pe?.version,Pe?.driverType)),(0,E.p)(Pe=>!!Pe),(0,u.M)(Pe=>{const J=this.driverContentService.processDriverContentDetails(Pe);(0,U.isEqual)(this.recommendedDriver?.content,J)||(this.recommendedDriver={...this.recommendedDriver,content:J},this.recommendedDriver$.next(this.recommendedDriver))}),(0,l.W)(Pe=>(this.logger.error("failed to refresh recommended driver info with error:",Pe),(0,h.of)(null))))}fetchInstalledDriverInfo(){return this.getInstalledDriver().pipe((0,v.s)(1),(0,E.p)(Pe=>!(0,U.isEmpty)(Pe)),(0,g.n)(Pe=>this.driverInformationService.getDriverInformation(Pe.version,Pe.driverType)),(0,E.p)(Pe=>!!Pe),(0,u.M)(Pe=>{const J=this.driverContentService.processDriverContentDetails(Pe);(0,U.isEqual)(this.installedDriver?.content,J)||(this.installedDriver={...this.installedDriver,content:J},this.installedDriver$.next(this.installedDriver))}),(0,l.W)(Pe=>(this.logger.error("failed to refresh installed driver info with error:",Pe),(0,h.of)(null))))}fetchPreviouslyInstalledDriverInfo(){return this.driverInstallHistoryService.isPreviouslyInstalledDriverFeatureEnabled?this.driverInstallHistoryService.getPreviouslyInstalledDriversDetails(this.previouslyInstalledDrivers).pipe((0,v.s)(1),(0,u.M)(({mergedDriverInfo:Pe})=>{let J=!1;this.previouslyInstalledDrivers?.length>0&&(J=!this.previouslyInstalledDrivers?.every(vt=>Pe?.some(ve=>ve.downloadURL===vt.downloadURL&&ve.version===vt.version&&ve.driverType===vt.driverType&&(0,U.isEqual)(ve.content,vt.content)))),J&&this.driverInstallHistoryService.setPreviouslyInstalledDriversInfo(Pe)}),(0,l.W)(Pe=>(this.logger.error("Failed to refresh previously installed driver info with error: ",Pe),(0,h.of)(null)))):(0,h.of)(null)}driverCheckForUpdateEvent(Pe){this.updateCheckProgressStatus$.next(Pe??X.hs.failed)}getDriverUpdateRecommendation(Pe=!1){return null===this.recommendedDriver||Pe?this.bridgeService.executeCommand(Y.Ts.Nvapp.Driverupdaterecommendation.GetDriverUpdateRecommendation).pipe((0,m.T)(J=>J?.result),(0,u.M)(J=>{this.logger.info("recommended driver response",J),this.recommendedDriver=J,this.availableDriverRecommendation$.next(J)})):(this.logger.info("Recommended driver returned with cached response",Pe),(0,h.of)(this.recommendedDriver))}updateFetchOnlyDriverUpdateRecommendation(Pe){this.fetchOnlyDriverRecommendation=Pe}registerDriverUpdateCheckProgressNotification(){this.bridgeService.executeCommand(Y.Ts.Nvapp.Driverupdaterecommendation.RegisterDriverUpdateCheckProgressNotifications).pipe((0,g.n)(Pe=>{this.logger.info("DriverUpdateCheckProgressNotification received with status :",Pe);const J=Pe?.status;this.driverCheckForUpdateEvent(Pe?.status);const{started:vt,failed:ve,finished:ue}=X.hs,et=`Driver update scan ${J}`;switch(this.disableDownloadAndReinstall(),J){case vt:return this.logger.info(et),M.w;case ve:return this.logger.error(et),this.manualCheckForUpdate&&(this.driverErrorService.showToastMessage("drivers.unableToReachNvidia"),this.manualCheckForUpdate=!1),this.fetchOnlyDriverRecommendation?this.getDriverUpdateRecommendation(!0):this.fetchRecommendedDriver(!0);case ue:return this.logger.info(et),this.manualCheckForUpdate=!1,this.fetchOnlyDriverRecommendation?this.getDriverUpdateRecommendation(!0):this.fetchRecommendedDriver(!0);default:return M.w}})).subscribe(P.l,Pe=>{this.logger.error("Failed to registerDriverUpdateCheckProgressNotification with Error :",Pe),this.driverCheckForUpdateEvent(X.hs.failed)})}listenForDownloadNotification(){this.downloaderService.getDownloadProgressNotification().pipe((0,E.p)(Pe=>[G.ZX.CRD,G.ZX.GRD].includes(Pe?.downloadTypeInfo?.componentName)),(0,E.p)(Pe=>{const{downloadUrl:J,version:vt}=Pe;return[this.installedDriver,this.recommendedDriver,...this.previouslyInstalledDrivers].some(ve=>ve?.downloadURL===J&&ve?.version===vt)})).subscribe(Pe=>{this.updateDriver(Pe,null),this.driverErrorService.handleDownloadError(Pe),(Pe.downloadStatus===G.hF.Finished||Pe.downloadStatus===G.hF.DownloadTriggered)&&(this.updateDisableUpdateCheck(),this.disableDownloadAndReinstall())},Pe=>{this.logger.error("Failed to getDriverDownloadProgressNotification with Error:",Pe)})}listenForPostProcessingNotification(){this.downloaderService.getPostProcessingProgressNotification().pipe((0,E.p)(Pe=>[this.installedDriver,this.recommendedDriver,...this.previouslyInstalledDrivers].some(J=>J?.downloadProgressStatus?.taskId===Pe?.taskId))).subscribe(Pe=>{this.updateDriver(null,Pe),this.driverErrorService.handlePostProcessErrors(Pe)},Pe=>{this.logger.error("Failed to listenForPostProcessingNotification with Error:",Pe)})}updatePreviouslyInstalledDriverStatus(Pe,J,vt,ve){Pe={...Pe,...J?{downloadProgressStatus:vt}:{postProcessingStatusInfo:ve}},this.previouslyInstalledDrivers=this.previouslyInstalledDrivers.map(ue=>ue.version===Pe.version&&ue.downloadURL===Pe.downloadURL?Pe:ue),this.driverInstallHistoryService.setPreviouslyInstalledDriversInfo(this.previouslyInstalledDrivers)}static{this.\u0275fac=function(J){return new(J||$e)(ce.KVO(te.NZ),ce.KVO(Ee.S),ce.KVO(te.J6),ce.KVO(it.z),ce.KVO(te.SQ),ce.KVO(Fe.u),ce.KVO(ae.Z1),ce.KVO(Qe.F),ce.KVO(ct.r),ce.KVO(q.AY),ce.KVO(Je),ce.KVO(te.s7),ce.KVO(ze.T),ce.KVO(Ke.p))}}static{this.\u0275prov=ce.jDH({token:$e,factory:$e.\u0275fac,providedIn:"root"})}}return $e})()},62929:(St,z,s)=>{"use strict";s.d(z,{r:()=>E});var i=s(26875),h=s(31315),C=s(43848),S=s(59859),M=s(65706),P=s(75707),x=s(14714),A=s(91384),g=s(53698),m=s(2216),l=s(58527),r=s(79027),u=s(4760),v=s(92602);let E=(()=>{class T{constructor(B,U,Y){this.downloadProgressPipe=B,this.downloaderService=U,this.reinstallButtonClicked=!1,this.logger=Y.getLogger("DriverUtilsService")}setDownloadAndProcessingStatus(B){return B.length>0?(0,h.zV)(B.map(U=>this.getDownloadStatus(U).pipe((0,M.s)(1),(0,P.ZZ)(Y=>this.getPostProcessingStatus(Y,U)),(0,P.ZZ)(Y=>(this.setReinstallButtonClicked(U?.downloadProgressStatus?.downloadStatus,U?.postProcessingStatusInfo?.postProcessingStatus),(0,C.of)(U))),(0,x.W)(Y=>(this.logger.error("Error in driver processing",Y),(0,C.of)(null)))))):(0,C.of)([])}setReinstallButtonClicked(B,U){this.reinstallButtonClicked=this.downloadProgressPipe.transform(B)!==g.dJ.DownloadStatusPending&&U!==g.Mo.Completed}overrideReinstallButtonClicked(B){this.reinstallButtonClicked=B}getReinstallButtonClicked(){return this.reinstallButtonClicked}getDownloadStatus(B){if((0,i.isEmpty)(B))return(0,S.$)("No Driver found");const{driverType:U,version:Y,downloadURL:ae}=B;return this.downloaderService.getDownloadStatus(this.getDownloaderCandidate(U),Y??"",ae??"").pipe((0,A.M)(G=>{this.logger.info("downloadStatusResponse",G),B.downloadProgressStatus=G}))}getDownloaderCandidate(B){return B===m.uj.GameReadyDriver?g.ZX.GRD:g.ZX.CRD}getPostProcessingStatus(B,U){return B.downloadStatus!==g.hF.Finished?(0,C.of)(void 0):this.downloaderService.getPostProcessingStatus(this.getDownloaderCandidate(U?.driverType),B.taskId).pipe((0,A.M)(Y=>{this.logger.info("PostProcessingStatus",Y),U.postProcessingStatusInfo=Y}))}fetchDriverHeaderText(B,U,Y){return!B?.isDriverInstalled&&(0,i.isEmpty)(Y)?"drivers.noDriverInstalled":B?.isMinimumDriverInstalled?U?"drivers.driverUpdateAvailable":"drivers.driverUpToDate":"drivers.driverUpdateRequired"}static{this.\u0275fac=function(U){return new(U||T)(l.KVO(r.F),l.KVO(u.z),l.KVO(v.J6))}}static{this.\u0275prov=l.jDH({token:T,factory:T.\u0275fac,providedIn:"root"})}}return T})()},75919:(St,z,s)=>{"use strict";s.d(z,{Gg:()=>C,IQ:()=>h,iW:()=>S,we:()=>n,zN:()=>i});const i="assets/img/fallback-app-icon.svg",n=75,h=650,C="4dbb1cfe-554f-4959-a558-3011ec502633",S="580.00"},76062:(St,z,s)=>{"use strict";s.d(z,{I$:()=>C,Py:()=>n,h$:()=>h,rc:()=>S});var i=s(20924),n=i.Or.Nvapp.Appdiscovery.Status,h=i.Or.Nvapp.Appdiscovery.ExeLaunchStatusEnum,C=i.Or.Nvapp.Appdiscovery.ActionStatusEnum,S=i.Or.Nvapp.Appdiscovery.Action},87801:(St,z,s)=>{"use strict";s.d(z,{N:()=>te});var i=s(80583),n=s(12532),h=s(59859),C=s(43848),S=s(91384),M=s(14714),P=s(4208),x=s(10174),A=s(8619),g=s(72147),m=s(20924),l=s(53698),r=s(1242),u=s(76062),v=s(42578),E=s(75919),T=s(58527),R=s(92602),B=s(4760),U=s(47847),Y=s(79027),ae=s(26513),G=s(168);let k=(()=>{class Ee{constructor(Fe){this.loggingService=Fe,this.installationInProgressUpdated$=new ae.t(!1),this.logger=this.loggingService.getLogger("QueueService"),this.installationQueue=new G.f}getInstallationQueue(){return this.installationQueue}getInstallationInProgressObservable(){return this.installationInProgressUpdated$.asObservable().pipe((0,A.p)(Fe=>!this.getInstallationInProgressValue()),(0,g.n)(Fe=>{const Qe=this.getInstallationQueue().peek();return this.logger.info("App to be installed",Qe?.componentName),(0,C.of)(Qe)}),(0,A.p)(Fe=>void 0!==Fe))}getInstallationInProgressValue(){return this.installationInProgressUpdated$.getValue()}updateInstallationInProgressFlag(Fe){this.logger.info("Updating installation progress flag",Fe),this.installationInProgressUpdated$.next(Fe)}static{this.\u0275fac=function(Qe){return new(Qe||Ee)(T.KVO(R.J6))}}static{this.\u0275prov=T.jDH({token:Ee,factory:Ee.\u0275fac,providedIn:"root"})}}return Ee})();var X=s(78812),q=s(96306),Q=s(86088),ce=s(38132);let te=(()=>{class Ee{constructor(Fe,Qe,ct,Ge,nt,Je,ze,Ke,Ve,$e,dt,Pe){this.loggingService=Fe,this.downloaderService=Qe,this.appConfig=ct,this.downloadProgressPipe=Ge,this.queueService=nt,this.telemetryService=Je,this.nvAppTelemetryUtilService=ze,this.windowService=Ke,this.errorHandlerService=Ve,this.nvAppBridgeService=$e,this.bridgeService=dt,this.overlayService=Pe,this.unsubscribe$=new i.B7,this.appDownloadProgress$=new i.B7,this.appActionProgress$=new i.B7,this.appActionFinished$=new i.B7,this.enqueued$=new i.B7,this.dequeued$=new i.B7,this.appToBeInstalled$=new i.B7,this.logger=this.loggingService.getLogger("nvapp/AppCardService"),this.appCardStatus=new Map,this.appDownloadFinishMap=new Map,this.appActionStatus=new Map,this.initAppToBeInstalledNotification()}initialize(Fe){this.listenForDownloadNotification(Fe),this.listenForAppToBeInstalledNotification(Fe),this.listenForAppStatus(Fe)}getIsDownloadStatusRequestTimeout(){return this.downloaderService.getIsDownloadStatusRequestTimedOut()}getAppDownloadProgress(){return this.appDownloadProgress$.asObservable()}getEnqueuedObservable(){return this.enqueued$.asObservable()}getDequeuedObservable(){return this.dequeued$.asObservable()}getListenerInitialized(){return this.isListenerInitialized}setListenerInitialized(){this.isListenerInitialized=!0}getAppActionObservable(){return this.appActionProgress$.asObservable()}getAppActionFinishedObservable(){return this.appActionFinished$.asObservable()}getTriggerScreen(){return this.triggerScreenName}createProfile(Fe){let Qe="";return Qe=Fe.checksum?.length>0?Fe.checksum.filter(nt=>nt.type===v.y9.SHA512)?.length?v.y9.SHA512:v.y9.MD5:v.y9.NONE,this.logger.info(`checksumType for ${Fe.componentName}`,Qe),this.downloaderService.createProfile(Fe.componentName,Fe.sourceComponentName,Qe,!0,Fe.registryPath).pipe((0,S.M)(Ge=>{Ge?.createProfileStatus===l.ZQ.Failure||Ge?.createProfileStatus===l.ZQ.FailureNoSourceProfile?this.logger.error(`Error while creating profile for ${Fe.componentName} with ${Fe.sourceComponentName}`):this.logger.info(`Profile Created succesfully for ${Fe.componentName}`)}),(0,M.W)(Ge=>(this.logger.error("Error while creating profile",Ge),n.w)))}startDownload(Fe){this.logger.info("Start Download for",Fe.title),this.appDownloadFinishMap.set(Fe.componentName,!1),this.downloaderService.startDownload(Fe.version||this.appConfig.lcars.defaultVersion,Fe.downloadUrl,{componentName:Fe.componentName,updateChannel:l.nC.Official,updateType:l.Ur.Full,invokeType:l.TZ.Manual}).pipe((0,P.Q)(this.unsubscribe$)).subscribe(Ge=>{this.logger.info(`App download for ${Fe.title}`,Ge),this.updateAppDownloadProgress(Fe,Ge)},Ge=>{this.logger.error(`App download error for ${Fe.title}`,Ge)})}stopDownload(Fe,Qe){return this.logger.info("Stop Download for",Fe.componentName),this.sendStartTelemetryEvent(r.nx.CancelDownload,Fe),this.downloaderService.stopDownload(Fe.componentName,Qe).pipe((0,S.M)(()=>{this.sendEndTelemetryEvent(r.nx.CancelDownload,Fe.componentName,Fe.version,!0)},(0,M.W)(ct=>(this.sendEndTelemetryEvent(r.nx.CancelDownload,Fe.componentName,Fe.version,!1,`Error while cancel download for uuid ${Fe.id} and ${Qe}`),n.w))))}getInstalledStatusForApps(Fe){const Qe=Fe.map(nt=>({name:nt.componentName,registryPath:nt.registryPath})),ct={apps:Qe};this.logger.info("get app statuses for ",Qe);const Ge="Error while receiving apps status";return this.nvAppBridgeService.executeWithPluginStatusTelemetry(m.Ts.Nvapp.Appdiscovery.GetAppsStatus,ct,{},!0,!0,Ge).pipe((0,S.M)(nt=>{this.logger.info("Install statuses for apps",nt)}),(0,M.W)(nt=>(this.logger.error(Ge,nt),(0,h.$)(nt))))}launchApp(Fe){return this.logger.info("Launching app for ",Fe.title),this.sendStartTelemetryEvent(r.nx.Launch,Fe),Fe.componentName===E.Gg?(this.launchGAssist(Fe),(0,C.of)(!0)):this.nvAppBridgeService.executeCommandWithTimeout(m.Ts.Nvapp.Appdiscovery.LaunchApp,{name:Fe.componentName,registryPath:Fe.registryPath,exePath:Fe.applicationPath}).pipe((0,S.M)(ct=>{if(this.isExecutionFailure(ct.launchStatus)){const Ge=`Launch error for ${Fe.id}`;this.logger.error(Ge,ct),this.showErrorMessage("layout.apps.openError",Fe),this.sendEndTelemetryEvent(r.nx.Launch,Fe.componentName,Fe.version,!1,Ge)}else this.logger.info(`Launch success for ${Fe.title}`,ct),this.sendEndTelemetryEvent(r.nx.Launch,Fe.componentName,Fe.version,!0)}),(0,x.u)(!0),(0,M.W)(ct=>{const Ge=`App Launch failed for ${Fe.id}`;return this.logger.error(Ge,ct),this.sendEndTelemetryEvent(r.nx.Launch,Fe.componentName,Fe.version,!1,Ge),(0,C.of)(!1)}))}launchGAssist(Fe){this.overlayService.launchGAssist().subscribe(Qe=>{this.logger.info(`Launch success for ${Fe.title}`,Qe),this.sendEndTelemetryEvent(r.nx.Launch,Fe.componentName,Fe.version,!!Qe)},Qe=>{const ct=`App Launch failed for ${Fe.id}`;this.logger.error(ct,Qe),this.showErrorMessage("layout.apps.openError",Fe),this.sendEndTelemetryEvent(r.nx.Launch,Fe.componentName,Fe.version,!1,ct)})}removeApp(Fe){this.logger.info("Remove App for ",Fe.title),this.setAppActionStatus(Fe.componentName,r.nx.Uninstall,Fe.version),this.sendStartTelemetryEvent(r.nx.Uninstall,Fe),this.bridgeService.executeCommand(m.Ts.Nvapp.Appdiscovery.UninstallApp,{name:Fe.componentName,registryPath:Fe.registryPath}).pipe((0,P.Q)(this.unsubscribe$)).subscribe(ct=>{if(this.isExecutionFailure(ct.executionStatus)){const Ge=`Uninstallation error for ${Fe.id}`;this.logger.error(Ge,ct),this.sendEndTelemetryEvent(r.nx.Uninstall,Fe.componentName,Fe.version,!1,Ge)}else this.logger.info(`${Fe.title} Uninstall finished`,ct);this.appActionFinished$.next(Fe),this.updateAppCardStatusFlags(Fe,!1,!1,!1)},ct=>{const Ge=`Error occurred while removing app ${Fe.id}`;this.logger.error(Ge,ct),this.showErrorMessage("layout.apps.removeError",Fe),this.updateAppCardStatusFlags(Fe,!1,!1,!1),this.sendEndTelemetryEvent(r.nx.Uninstall,Fe.componentName,Fe.version,!1,Ge)})}isUpdateAvailable(Fe,Qe){const ct=Fe.split(/\./g),Ge=Qe.split(/\./g);for(;ct.length||Ge.length;){const nt=Number(ct.shift()),Je=Number(Ge.shift());if(nt!==Je)return nt>Je}return!1}listenForDownloadNotification(Fe){this.downloaderService.getDownloadProgressNotification().pipe((0,A.p)(Qe=>![l.ZX.CRD,l.ZX.GRD].includes(Qe?.downloadTypeInfo?.componentName)),(0,A.p)(Qe=>Qe&&Qe.downloadTypeInfo.componentName===Fe.componentName),(0,S.M)(Qe=>{this.updateAppDownloadProgress(Fe,Qe)}),(0,A.p)(Qe=>this.getDownloadProgressState(Qe)===l.dJ.DownloadFinished),(0,P.Q)(this.unsubscribe$)).subscribe(Qe=>{this.appDownloadFinishMap.get(Fe.componentName)||(this.logger.info(`Download Finished for ${Fe.title} with taskId ${Qe?.taskId}`),this.appDownloadFinishMap.set(Fe.componentName,!0),this.triggerScreenName!==r.f3.OOTB&&this.triggerInstallationProcess(Fe,Qe?.downloadedLocation,Qe?.taskId))},Qe=>{this.logger.error(`Error while listening download progress for ${Fe.title}`,Qe)})}listenForAppActionNotification(){this.logger.info("registering for app action notification"),this.bridgeService.executeCommand(m.Ts.Nvapp.Appdiscovery.AppActionNotification).pipe((0,P.Q)(this.unsubscribe$)).subscribe(Fe=>{switch(this.logger.info("Received AppActionNotification"),this.appActionProgress$.next(Fe),Fe.actionStatus){case u.I$.ActionSuccess:case u.I$.ActionFailure:this.updateAppActionNotification(Fe.appName,Fe)}},Fe=>{this.logger.error("Error while listening action notification listener",Fe)})}updateAppActionNotification(Fe,Qe){const ct=this.fetchAppActionStatus(Fe),Ge=this.mapActionToTelemetryAction(Qe.action),nt=ct?.actionName||Ge,Je=ct?.version;if(Qe.actionStatus===u.I$.ActionFailure){const ze=`Error while ${nt} for ${Fe}`;this.logger.error(ze,Fe),this.sendEndTelemetryEvent(nt,Fe,Je,!1,ze)}else this.logger.info(`${nt} Finished for `,Fe),this.sendEndTelemetryEvent(nt,Fe,Je,!0)}getDownloadStatus(Fe){return this.downloaderService.getDownloadStatus(Fe.componentName,Fe.version||this.appConfig.lcars.defaultVersion,Fe.downloadUrl)}showErrorMessage(Fe,Qe,ct=!1){this.errorHandlerService.showToastMessage({text:Fe,placeholders:{appName:Qe.title},translated:ct}).subscribe()}updateAppCardStatus(Fe,Qe){this.logger.info(`Updating App Card Status for ${Fe}`,Qe),this.appCardStatus.set(Fe,Qe)}getAppCardStatus(Fe){return this.logger.info(`Get App Card Status for ${Fe}`),this.appCardStatus.get(Fe)}getInstallationInProgressValue(){return this.queueService.getInstallationInProgressValue()}initAppToBeInstalledNotification(){this.queueService.getInstallationInProgressObservable().pipe((0,P.Q)(this.unsubscribe$)).subscribe(Fe=>{this.appToBeInstalled$.next(Fe)})}listenForAppToBeInstalledNotification(Fe){this.appToBeInstalled$.pipe((0,A.p)(Qe=>Fe.componentName===Qe.componentName),(0,g.n)(Qe=>(this.logger.info("Previous installation is complete, triggering installation for queued app ",Fe.title),this.updateAppCardStatusFlags(Fe,!0,!1,!1),this.appToBeInstalled=this.removeFromInstallationQueue(),this.updateInstallationInProgressFlag(!0),this.getDownloadStatus(this.appToBeInstalled))),(0,P.Q)(this.unsubscribe$)).subscribe(Qe=>{this.dequeued$.next(Fe),this.installApp(this.appToBeInstalled,Qe?.downloadedLocation,Qe?.taskId)},Qe=>{this.logger.error("Error occured while listening appToBeInstalled notification ",Qe)})}getDownloadProgressState(Fe){return this.downloadProgressPipe.transform(Fe?.downloadStatus)}isNetworkErrorRetryPaused(Fe){return Fe?.downloadStatus===l.hF.NetworkErrorRetryPaused}isInvalidPackage(Fe){return Fe.downloadStatus===l.hF.ChecksumVerificationFailed||Fe.downloadStatus===l.hF.SignatureVerificationFailed||Fe.downloadStatus===l.hF.Prohibited||Fe.downloadStatus===l.hF.Error}triggerGetState(Fe,Qe,ct){const Ge=Fe.isUpdateAvailable?r.nx.Update:r.nx.Get;this.setAppActionStatus(Fe.componentName,Ge,Fe.version),this.triggerScreenName=ct,this.sendStartTelemetryEvent(Ge,Fe,ct),Qe?.downloadStatus===l.hF.Finished?this.triggerInstallationProcess(Fe,Qe.downloadedLocation,Qe.taskId):this.isNetworkErrorRetryPaused(Qe)||this.isDownloadPaused(Qe)?this.resumeDownload(Fe,Qe.taskId):this.startDownload(Fe)}showOptionalPluginErrorToastOnButton(){this.errorHandlerService.showOptionalPluginFailErrorToast()}isDownloadPaused(Fe){return Fe?.downloadStatus===l.hF.Paused}isDownloadCancelled(Fe){return Fe.downloadStatus===l.hF.Cancelled}onAppLinks(Fe,Qe,ct){this.sendStartTelemetryEvent(Qe,ct),this.windowService.window.open(Fe,"_blank"),this.logger.info(`Opening link for ${ct.id}`,Fe),this.sendEndTelemetryEvent(Qe,ct.componentName,ct.version,!0)}handleResourceLoadError(Fe,Qe){this.nvAppTelemetryUtilService.sendResourceLoadErrorEvent(r.vt.Image,Fe,Qe,"",r.f3.Apps)}updateInstallationInProgressFlag(Fe){this.queueService.updateInstallationInProgressFlag(Fe)}listenForAppStatus(Fe){this.logger.info("get app status for ",Fe.title),this.bridgeService.executeCommand(m.Ts.Nvapp.Appdiscovery.GetAppStatus,{name:Fe.componentName,registryPath:Fe.registryPath}).pipe((0,P.Q)(this.unsubscribe$)).subscribe(ct=>{this.appActionFinished$.next(Fe),this.updateAppCardStatusFlags(Fe,!1,!1,!1),this.updateInstallationInProgressFlag(!1),this.logger.info(`Finished appStatus for ${Fe.title}`,ct)},ct=>{this.logger.error(`Error while getting app status for ${Fe.title}`,ct)})}sendStartTelemetryEvent(Fe,Qe,ct){const Ge=new r.Nw({actionName:Fe,actionType:r.Uf.Start,appId:Qe.id,appVersion:Qe.version||"",status:r.fb.Success,triggerScreenName:ct||r.f3.Apps,errorMessage:""});this.telemetryService.push(Ge,null)}sendEndTelemetryEvent(Fe,Qe,ct,Ge,nt){const Je=new r.Nw({actionName:Fe,actionType:r.Uf.End,appId:Qe,appVersion:ct||"",status:Ge?r.fb.Success:r.fb.Failure,triggerScreenName:r.f3.Apps,errorMessage:nt||""});this.telemetryService.push(Je,null)}addToInstallationQueue(Fe){this.queueService.getInstallationQueue().enqueue(Fe)}removeFromInstallationQueue(){return this.queueService.getInstallationQueue().dequeue()}installApp(Fe,Qe,ct){this.logger.info(`Install App for ${Fe.id} with taskId ${ct}`);const Ge=this.fetchAppActionStatus(Fe.componentName);this.bridgeService.executeCommand(m.Ts.Nvapp.Appdiscovery.InstallApp,{name:Fe.componentName,registryPath:Fe.registryPath,exePath:Qe}).pipe((0,P.Q)(this.unsubscribe$)).subscribe(Je=>{if(this.isExecutionFailure(Je.executionStatus)){const ze=`Installation error for ${Fe.id} with taskId ${ct}`;this.logger.error(ze,Je);const Ke=this.mapActionToTelemetryAction(u.rc.Install);this.sendEndTelemetryEvent(Ge?.actionName||Ke,Fe.componentName,Fe.version,!1,ze)}else this.logger.info(`${Fe.title} installer finished with taskId ${ct}`,Je);this.updateInstallationInProgressFlag(!1),this.appActionFinished$.next(Fe),this.updateAppCardStatusFlags(Fe,!1,!1,!1)},Je=>{const ze=`Error occurred while installing app for ${Fe.id} with taskId ${ct}`;this.logger.error(ze,Je),this.showErrorMessage("layout.apps.installError",Fe),this.updateAppCardStatusFlags(Fe,!1,!1,!1),this.updateInstallationInProgressFlag(!1),this.sendEndTelemetryEvent(Ge.actionName,Fe.componentName,Fe.version,!1,ze)})}updateAppDownloadProgress(Fe,Qe){this.appDownloadProgress$.next({appMetadata:Fe,downloadProgressStatus:Qe})}resumeDownload(Fe,Qe){this.logger.info(`Resuming Download for taskId ${Qe}`,Fe.title),this.appDownloadFinishMap.set(Fe.componentName,!1),this.downloaderService.resumeDownload(Fe.componentName,Qe).pipe((0,P.Q)(this.unsubscribe$)).subscribe(ct=>{this.logger.info(`Resume download for ${Fe.title}`,ct),this.updateAppDownloadProgress(Fe,ct)},ct=>{this.logger.error(`Resume download error for ${Fe.title}`,ct)})}triggerInstallationProcess(Fe,Qe,ct){this.getInstallationInProgressValue()?(this.logger.info(`Queued installation for ${Fe.title} with taskId ${ct}`),this.addToInstallationQueue(Fe),this.enqueued$.next(Fe),this.updateAppCardStatusFlags(Fe,!0,!0,!1)):(this.logger.info(`No installation is in progress, triggering installation for, ${Fe.title} with taskId ${ct}`),this.updateInstallationInProgressFlag(!0),this.installApp(Fe,Qe,ct),this.updateAppCardStatusFlags(Fe,!0,!1,!1))}updateAppCardStatusFlags(Fe,Qe,ct,Ge){this.updateAppCardStatus(Fe.componentName,{downloadOrInstallTriggered:Qe,isInstallationQueued:ct,isUnInstallationTriggered:Ge})}isExecutionFailure(Fe){return Fe===u.h$.Failure}setAppActionStatus(Fe,Qe,ct){this.appActionStatus.set(Fe,{actionName:Qe,version:ct})}fetchAppActionStatus(Fe){return this.appActionStatus.get(Fe)}mapActionToTelemetryAction(Fe){return Fe===u.rc.Install?r.nx.Get:r.nx.Uninstall}ngOnDestroy(){this.unsubscribe$.next(),this.unsubscribe$.complete()}static{this.\u0275fac=function(Qe){return new(Qe||Ee)(T.KVO(R.J6),T.KVO(B.z),T.KVO(U.Vk),T.KVO(Y.F),T.KVO(k),T.KVO(X.H0),T.KVO(r.AY),T.KVO(R.s7),T.KVO(q.c),T.KVO(Q.S),T.KVO(R.NZ),T.KVO(ce.s))}}static{this.\u0275prov=T.jDH({token:Ee,factory:Ee.\u0275fac,providedIn:"root"})}}return Ee})()},30081:(St,z,s)=>{"use strict";s.d(z,{Y:()=>Ee});var i=s(26513),n=s(85735),h=s(31315),C=s(59859),S=s(43848),M=s(35146),P=s(36466),x=s(19392),A=s(62931),g=s(72147),m=s(14714),l=s(83915),r=s(91384),u=s(8619),v=s(65706),E=s(79539),T=s(25577),R=s(92602),B=s(26772),U=s(25864),Y=s(42578),ae=s(76062),G=s(75919),k=s(58527),X=s(87801),q=s(73796),Q=s(60213),ce=s(82102),te=s(38132);let Ee=(()=>{class it{constructor(Qe,ct,Ge,nt,Je,ze,Ke,Ve,$e){this.loggingService=Qe,this.appCardService=ct,this.lcarsService=Ge,this.windowService=nt,this.opsService=Je,this.driverUpdateService=ze,this.imageFormatService=Ke,this.overlayService=Ve,this.hardwareInformationService=$e,this.appMetadata$=new i.t([]),this.layoutItemsSubject=new n.m(1),this.layoutItems$=this.layoutItemsSubject.asObservable(),this.gameAssistInstallStatusSubject=new n.m(1),this.logger=this.loggingService.getLogger("nvapp/LayoutService")}initialize(){this.opsService.initialize(),this.fetchDriverTypePreference(),this.listenToPanelUpdates(),this.listenForGAssistStatus()}autoRefreshApps(){return(0,h.zV)([this.appMetadata$.asObservable(),this.windowService.getFocusEvent().pipe((0,A.B)(B.CL))]).pipe((0,g.n)(([Qe,ct])=>this.getInstalledStatusForApps(Qe)),(0,m.W)(Qe=>(this.logger.error("Error occurred while refreshing apps",Qe),(0,C.$)(Qe))))}getInstalledStatusForApps(Qe){return this.appCardService.getInstalledStatusForApps(Qe).pipe((0,l.T)(ct=>this.processAppInstallStatus(Qe,ct)),(0,r.M)(ct=>{const Ge=this.getGAssistMetadata(ct);Ge&&this.gameAssistInstallStatusSubject.next(Ge)}),(0,m.W)(ct=>(this.logger.error("Error while getting all apps status",ct),(0,S.of)(null))))}getGAssistMetadata(Qe){return Qe.find(ct=>ct.componentName===G.Gg)}formatImages(Qe,ct){if(!Qe)return Qe;const Ge={f:R.Ff.webp,q:G.we};return ct&&(Ge.w=ct),this.imageFormatService.formatImageServiceUrl(Qe,Ge)}listenToPanelUpdates(){(0,h.zV)([this.lcarsService.getPanelItems(),this.driverUpdateService.getDriverTypePreference().pipe((0,u.p)(Qe=>null!=Qe))]).pipe((0,g.n)(([Qe,ct])=>(0,M.yU)((0,S.of)(Qe),(0,S.of)(ct),this.hardwareInformationService.getIsLaptopSystem(),this.hardwareInformationService.getGenericInfo(!1))),(0,l.T)(([Qe,ct,Ge,nt])=>this.processPanels(Qe,ct,Ge,nt)),(0,g.n)(Qe=>(0,M.yU)((0,S.of)(Qe),this.getInstalledStatusForApps(Qe.appMetadata))),(0,l.T)(([Qe,ct])=>({appsTitle:Qe.appsTitle,marqueeItems:Qe.marqueeItems,appMetadata:ct??Qe.appMetadata})),(0,r.M)(Qe=>{this.logger.info("Updating profiles for all apps"),this.initProfileSub?.unsubscribe(),this.initProfileSub=this.initCreateProfiles(Qe).subscribe(),this.appCardService.getListenerInitialized()||(this.appCardService.setListenerInitialized(),this.appCardService.listenForAppActionNotification(),this.initAppCardListeners(Qe.appMetadata))})).subscribe(Qe=>{this.layoutItemsSubject.next(Qe)},Qe=>{this.logger.error("Error occurred while getting LayoutItems",Qe),this.layoutItemsSubject.error(Qe)})}isGAssistInstalled(){return this.gameAssistInstallStatusSubject.asObservable().pipe((0,l.T)(Qe=>{const ct=(Qe.installStatus.status===ae.Py.Installed||Qe.installStatus.status===ae.Py.PartiallyInstalled)&&Qe.supported;return this.logger.info(`Install status for ${G.Gg} is`,ct),ct}))}listenForGAssistStatus(){this.appCardService.getAppActionObservable().pipe((0,u.p)(Qe=>Qe.appName===G.Gg&&Qe.actionStatus===ae.I$.ActionStarted||Qe.actionStatus===ae.I$.ActionSuccess||Qe.actionStatus===ae.I$.ActionFailure),(0,g.n)(Qe=>{const ct=this.appMetadata$.getValue(),Ge=this.getGAssistMetadata(ct);return(0,M.yU)((0,S.of)(Qe),this.getInstalledStatusForApps([Ge]),this.overlayService.getOverlayState().pipe((0,v.s)(1)))}),(0,g.n)(([Qe,ct,Ge])=>{const nt=Ge?.feature?.overallState,Je=Ge?.feature?.toggle?.value;if(this.logger.info("Overlay Status",nt,Je),!nt||!Je)return this.logger.info("Skipping GAssist Install status due to overlay status"),(0,S.of)(!1);const ze=Qe.actionStatus,Ke=Qe.action;return this.isInstallCompletedOrUninstallCancelled(ze,Ke)?(this.logger.info("Setting GAssist Install status for actionStatus and action",ze,Ke),this.overlayService.setGAssistInstallStatus(!0)):this.isUninstallStarted(ze,Ke)?(this.logger.info("Setting GAssist Install status for UnInstall"),this.overlayService.setGAssistInstallStatus(!1)):(this.logger.info("Skipping setting Install status for action status",ze),(0,S.of)(!1))}),(0,m.W)(Qe=>(this.logger.error(`Error while finding install status for ${G.Gg}`,Qe),(0,S.of)(!1)))).subscribe(P.l,P.l)}isInstallCompletedOrUninstallCancelled(Qe,ct){return Qe===ae.I$.ActionSuccess&&ct===ae.rc.Install||Qe===ae.I$.ActionFailure&&ct===ae.rc.Uninstall}isUninstallStarted(Qe,ct){return Qe===ae.I$.ActionStarted&&ct===ae.rc.Uninstall}processAppInstallStatus(Qe,ct){return Qe.map(Ge=>{const nt=ct?.apps.find(Je=>Je.name===Ge.componentName);return nt?{...Ge,installStatus:nt}:Ge})}initAppCardListeners(Qe){Qe.forEach(ct=>{this.appCardService.initialize(ct)})}processPanels(Qe,ct,Ge,nt){this.logger.info("Processing layout panels");const Je=ct===U.uj.GameReadyDriver?Y.HP.Home_Marquee:Y.HP.Home_Marquee_Nsd,ze=Qe?.filter(Pe=>Pe.name===Je)?.[0];this.logger.info("resolved panel type ",Je);const Ke=ze?.sections?.[0]?.items,Ve=Qe?.filter(Pe=>Pe.name===Y.HP.Apps)?.[0],$e=[];return Ve?.sections?.[0]?.items?.forEach(Pe=>{const J={...Pe.app,componentName:Pe.app.id,images:{...Pe?.app?.images??{},HERO_IMAGE:this.formatImages(Pe?.app?.images?.HERO_IMAGE,G.IQ),GAME_ICON:this.formatImages(Pe?.app?.images?.GAME_ICON)}};$e.push(J),J.componentName===G.Gg&&Ge&&!(+nt?.DriverVersion>=+G.iW)&&(this.logger.info("GAssist is not supported on laptop system with driver version",nt?.DriverVersion),J.supported=!1)}),this.appMetadata$.next($e),{appsTitle:Ve?.sections?.[0]?.title,marqueeItems:Ke,appMetadata:$e}}initCreateProfiles(Qe){return 0===Qe.appMetadata.length?(0,S.of)(Qe):(0,x.H)(Qe.appMetadata).pipe((0,E.H)(ct=>this.appCardService.createProfile(ct)),(0,T.H)(),(0,l.T)(()=>Qe),(0,m.W)(ct=>(this.logger.error("Error while creating profiles",ct),(0,S.of)(Qe))))}fetchDriverTypePreference(){(0,h.zV)([this.driverUpdateService.fetchDriverTypePreference(),this.driverUpdateService.fetchUpdateStrategyPreference()]).pipe((0,v.s)(1)).subscribe()}static{this.\u0275fac=function(ct){return new(ct||it)(k.KVO(R.J6),k.KVO(X.N),k.KVO(q.B),k.KVO(R.s7),k.KVO(Q.s),k.KVO(ce.f),k.KVO(R.Pl),k.KVO(te.s),k.KVO(R.SQ))}}static{this.\u0275prov=k.jDH({token:it,factory:it.\u0275fac,providedIn:"root"})}}return it})()},6953:(St,z,s)=>{"use strict";s.d(z,{DA:()=>E,FO:()=>T,GA:()=>P,Gk:()=>v,W6:()=>R,ZC:()=>M,el:()=>A,hB:()=>x,l3:()=>g,wW:()=>i});const i={Manage3dSettings:"/manage-3d-settings",SystemInfo:"/system-info",Settings:"/settings",ChangeResolution:"/change-resolution"},M={minValue:30,maxValue:60,stepValue:5,defaultFrameRate:30},P={minValue:1,maxValue:3,stepValue:1,defaultValue:1},x={minValue:0,maxValue:100,sharpen:50,stepValue:1},A={minValue:0,maxValue:100,stepValue:5,defaultIntensity:25},g={minValue:0,maxValue:100,stepValue:5,defaultSaturation:50},v="auto",E="cpu",T=new Map([[v,"manage3dSettings.PhysX.auto"],[E,"manage3dSettings.PhysX.cpu"]]),R=new Map([[v,"manage3dSettings.PhysX.autoDescription"],[E,"manage3dSettings.PhysX.cpu"]])},72639:(St,z,s)=>{"use strict";s.d(z,{$k:()=>dt,Ar:()=>Q,Be:()=>Je,D9:()=>k,DV:()=>m,FY:()=>ae,G8:()=>q,Hm:()=>r,IR:()=>B,K2:()=>Y,L4:()=>Fe,Lo:()=>ce,Ow:()=>it,TE:()=>Ke,TV:()=>E,Tw:()=>Qe,Uj:()=>R,Zm:()=>Ve,_i:()=>ct,aR:()=>Ee,ai:()=>J,bC:()=>A,bd:()=>Ge,dy:()=>G,e5:()=>U,gl:()=>ze,i7:()=>S,iN:()=>u,i_:()=>l,j2:()=>v,kv:()=>Pe,l4:()=>g,mJ:()=>x,mS:()=>vt,nZ:()=>$e,qp:()=>M,v9:()=>P,wO:()=>C,zZ:()=>nt});var i=s(28220),n=s(63407),h=s(98207);const C={minValue:"33",maxValue:"100",defaultValue:"67",stepValue:1},S="572.72",M="580.97",P="manage3dSettings.DLSSMF.values.OFF",x=[[h.DefaultGlobalEnum.UseGlobalValue,"manage3dSettings.useProfile"],[n.VJ.Default,P],[n.VJ.Dlaa,"dlssOverrides.performanceModes.dlaa"],[n.VJ.Quality,"dlssOverrides.performanceModes.quality"],[n.VJ.Balanced,"dlssOverrides.performanceModes.balanced"],[n.VJ.Performance,"dlssOverrides.performanceModes.performance"],[n.VJ.UltraPerformance,"dlssOverrides.performanceModes.ultraPerformance"],[n.VJ.Custom,"dlssOverrides.performanceModes.custom"]],A=new Map(x),g=[[h.DefaultGlobalEnum.UseGlobalValue,"manage3dSettings.useProfile"],[n.LM.Default,P],[n.LM.Latest,"dlssOverrides.models.latest"]],m=new Map(g),l=new Map(g),r=[[h.DefaultGlobalEnum.UseGlobalValue,"manage3dSettings.useProfile"],[n.LM.Default,P],[n.LM.Latest,"dlssOverrides.models.latest"],[n.LM.PresetA,"dlssOverrides.models.presetA"],[n.LM.PresetB,"dlssOverrides.models.presetB"],[n.LM.PresetC,"dlssOverrides.models.presetC"],[n.LM.PresetD,"dlssOverrides.models.presetD"],[n.LM.PresetE,"dlssOverrides.models.presetE"],[n.LM.PresetF,"dlssOverrides.models.presetF"],[n.LM.PresetJ,"dlssOverrides.models.presetJ"],[n.LM.PresetK,"dlssOverrides.models.presetK"]],u=new Map(r),v=new Map([[n.LM.Default,P],[n.LM.Latest,"dlssOverrides.models.latest"]]),E=new Map([[n.VJ.Quality,"67"],[n.VJ.Balanced,"58"],[n.VJ.Performance,"50"],[n.VJ.UltraPerformance,"33"],[n.VJ.Custom,"67"],[n.VJ.Default,"-"],[n.VJ.Dlaa,"100"]]),R=new Map([[h.DefaultGlobalEnum.UseGlobalValue,"manage3dSettings.useProfile"],[i.h4.Default,P],[i.h4.Latest,"dlssOverrides.models.latest"],[i.h4.Custom,"common.custom"]]),B={[i.yq.DLLLoadFailure]:"dlssOverrides.error.dllDownload",[i.uF.DriverUnsupported]:"dlssOverrides.error.driverUnsupported",[i.uF.HardwareSchedulingUnavailable]:"dlssOverrides.error.hardwareSchedulingUnavailable",[i.uF.DenyListed]:"dlssOverrides.error.denyListError",[i.uF.x86Unsupported]:"dlssOverrides.error.denyListError"},U={[i.CQ.DX9]:"dlssOverrides.graphicsApi.DX9",[i.CQ.DX10]:"dlssOverrides.graphicsApi.DX10",[i.CQ.DX10_1]:"dlssOverrides.graphicsApi.DX10_1",[i.CQ.DX11]:"dlssOverrides.graphicsApi.DX11",[i.CQ.DX12]:"dlssOverrides.graphicsApi.DX12",[i.CQ.Vulkan]:"dlssOverrides.graphicsApi.Vulkan",[i.CQ.OpenCL]:"dlssOverrides.graphicsApi.OpenCL",[i.CQ.OpenGL]:"dlssOverrides.graphicsApi.OpenGL"},Y={[n.$Y.ScanDetectUnknown]:"dlssOverrides.compatibilityMessageSupportNotFound",[n.$Y.ScanDetectSupported]:"dlssOverrides.compatibilityMessageSupportFound"},ae="DLSSModels",G="manage3dSettings.DLSSModels.values.custom",k="dlssOverrides.models.latest",q="dlssOverrides.compatibilityMessageCommon",Q="dlssOverrides.commonNotes",ce="dlssOverrides.commonCompatibleMessage",Ee="dlssOverrides.scanSupportUnknown",it="dlssOverrides.scanSupportNotTested",Fe="dlssOverrides.error.denyListErrorSingleTech",Qe="dlssOverrides.error.denyListErrorMultipleTech",ct="dlssOverrides.error.gpuUnsupportedForSingleTech",Ge="dlssOverrides.error.gpuUnsupportedForSRAndRR",nt="dlssOverrides.error.graphicsApiSingleErrorMessage",Je="dlssOverrides.error.graphicsApiMultipleErrorMessage",ze="dlssOverrides.error.graphicsApiGenericErrorMessage",Ke="dlssOverrides.error.gpuUnsupported",Ve="dlssOverrides.error.gpuUnsupported40Series",$e="dlssOverrides.error.gpuUnsupportedForSR",dt="common.unsupported",Pe="dlssOverrides.error.modeValidationMessage",J="dlssOverrides.error.gpuUnsupportedFGModel",vt="dlssOverrides.modelsDisplayText"},28220:(St,z,s)=>{"use strict";s.d(z,{CQ:()=>h,D3:()=>P,IF:()=>M,TI:()=>x,h4:()=>C,uF:()=>n,yq:()=>S});var i=s(20924),n=i.Or.Nvapp.Nvcplplugin.ConstraintType,h=i.Or.Nvapp.Nvcplplugin.GraphicsApi,C=i.Or.Nvapp.Nvcplplugin.DlssModelPresetProfileTypeEnum,S=function(A){return A[A.Failed=65536]="Failed",A[A.Denied=131072]="Denied",A[A.Drs=262144]="Drs",A[A.NotFound=524288]="NotFound",A[A.DLLLoadFailure=1048576]="DLLLoadFailure",A}(S||{}),M=function(A){return A[A.DLSSSR=65542]="DLSSSR",A[A.DLSSRR=65543]="DLSSRR",A[A.DLSSFG=65544]="DLSSFG",A[A.FGX=65545]="FGX",A[A.DLSSModelPresetProfile=65546]="DLSSModelPresetProfile",A[A.DLSSMF=999999]="DLSSMF",A}(M||{}),P=function(A){return A[A.Same=0]="Same",A[A.Custom=1]="Custom",A}(P||{}),x=function(A){return A[A.ScanDetectNotNeeded=0]="ScanDetectNotNeeded",A[A.ScanDetectNotTested=1]="ScanDetectNotTested",A[A.ScanDetectUnknown=2]="ScanDetectUnknown",A[A.ScanDetectSupported=3]="ScanDetectSupported",A}(x||{})},98207:(St,z,s)=>{"use strict";s.r(z),s.d(z,{AIDVCValue:()=>Xt,AIDVCValueDisplayEnum:()=>nn,AIHDRValue:()=>wt,AIHDRValueDisplayEnum:()=>Ue,AnisotropicFilteringValue:()=>it,AntialiasingModeValue:()=>Y,AntialiasingSettingValue:()=>Q,AntialiasingTransparencyValue:()=>q,AutoDisplaySwitchingValue:()=>v,BackgroundAppMaxFrameRateValue:()=>ue,BatteryBoostValue:()=>At,BatteryBoostValueDisplayEnum:()=>yn,BatteryBoostVersionEnum:()=>ct,CudaGpusValue:()=>Pe,CuratedGlobalSettings:()=>Se,CuratedProgramSettings:()=>Xe,DLSSFGValue:()=>be,DLSSMFValue:()=>Ke,DLSSRRValue:()=>me,DLSSSRValue:()=>rt,DSRFactorValue:()=>Ht,DeepColorFor3DApplicationsValue:()=>ce,DefaultGlobalEnum:()=>ye,DependentSettingsList:()=>fe,DisabledEditSettings:()=>le,DoublePrecisionValue:()=>vt,DriverSettingsHardConstraints:()=>Le,DriverSettingsSoftConstraints:()=>Bt,DynamicSettings:()=>$e,EnableOverlayValue:()=>S,ExportedpixeltypesValue:()=>M,FGXValue:()=>lt,GlobalOnlyFeatures:()=>sn,ImageScalingValue:()=>Zt,ImageScalingValueDisplayEnum:()=>Jt,ImageSharpeningAllowValue:()=>U,ImageSharpeningAllowValueDisplayEnum:()=>Ce,ImageSharpeningToggleValue:()=>B,ImageSharpeningToggleValueDisplayEnum:()=>se,JsonTypeSettings:()=>Ot,LegacySettings:()=>dn,LowLatencyModeValue:()=>l,MaxFrameRateValue:()=>ve,MaxFrameRateValueDisplayEnum:()=>et,MaxqDynamicBoostValue:()=>u,MonitorTechnologyKeys:()=>Ut,MonitorTechnologyValue:()=>T,MultiFrameEnum:()=>ze,OpenGLRenderingGPUValue:()=>J,OpenGlGdiCompatibilityValue:()=>Ee,OpenGlVulkanPresentMethodValue:()=>te,PhysXValue:()=>de,PowerManagementModeGpuWiseKeys:()=>bn,PowerManagementModeValue:()=>A,PowerManagementPanelValue:()=>R,PreferredRefreshRateValue:()=>x,ProfileNames:()=>Ne,SLIMultiGPURenderingModeValue:()=>nt,SettingsIcon:()=>V,SettingsTempCacheSuffix:()=>gt,ShaderCacheValue:()=>P,SilkSmoothnessValue:()=>m,StaticSliderSettings:()=>dt,StereoDisplayModeValue:()=>k,StereoEnableValue:()=>ae,StereoSwapEyeValue:()=>G,StereoSwapModeValue:()=>X,TextureFilteringNegativeMethodValue:()=>Fe,TextureFilteringQualityValue:()=>Qe,TextureFilteringTrilinearValue:()=>n,ThreadedOptimizationValue:()=>C,VerticalSyncValue:()=>h,VirtualRealityPreRenderedFramesValue:()=>Je,VirtualRealityVrssValue:()=>r,WhisperModeGlobalValue:()=>E,WhisperModeProgramValue:()=>g,WhisperModeValue:()=>Qt,WhisperModeValueDisplayEnum:()=>Vt,WhisperModeVersionEnum:()=>Ge,boolEnum:()=>Ve});var i=s(20924),n=i.Or.Nvapp.Nvcplplugin.TextureFilteringTrilinearValue,h=i.Or.Nvapp.Nvcplplugin.VerticalSyncValue,C=i.Or.Nvapp.Nvcplplugin.ThreadedOptimizationValue,S=i.Or.Nvapp.Nvcplplugin.EnableOverlayValue,M=i.Or.Nvapp.Nvcplplugin.ExportedpixeltypesValue,P=i.Or.Nvapp.Nvcplplugin.ShaderCacheValue,x=i.Or.Nvapp.Nvcplplugin.PreferredRefreshRateValue,A=i.Or.Nvapp.Nvcplplugin.PowerManagementModeValue,g=i.Or.Nvapp.Nvcplplugin.WhisperModeProgramValue,m=i.Or.Nvapp.Nvcplplugin.SilkSmoothnessValue,l=i.Or.Nvapp.Nvcplplugin.LowLatencyModeValue,r=i.Or.Nvapp.Nvcplplugin.VirtualRealityVrssValue,u=i.Or.Nvapp.Nvcplplugin.MaxqDynamicBoostValue,v=i.Or.Nvapp.Nvcplplugin.AutoDisplaySwitchingValue,E=i.Or.Nvapp.Nvcplplugin.WhisperModeGlobalValue,T=i.Or.Nvapp.Nvcplplugin.MonitorTechnologyValue,R=i.Or.Nvapp.Nvcplplugin.PowerManagementPanelValue,B=i.Or.Nvapp.Nvcplplugin.ImageSharpeningToggleValue,U=i.Or.Nvapp.Nvcplplugin.ImageSharpeningAllowValue,Y=i.Or.Nvapp.Nvcplplugin.AntialiasingModeValue,ae=i.Or.Nvapp.Nvcplplugin.StereoEnableValue,G=i.Or.Nvapp.Nvcplplugin.StereoSwapEyeValue,k=i.Or.Nvapp.Nvcplplugin.StereoDisplayModeValue,X=i.Or.Nvapp.Nvcplplugin.StereoSwapModeValue,q=i.Or.Nvapp.Nvcplplugin.AntialiasingTransparencyValue,Q=i.Or.Nvapp.Nvcplplugin.AntialiasingSettingValue,ce=i.Or.Nvapp.Nvcplplugin.DeepColorFor3DApplicationsValue,te=i.Or.Nvapp.Nvcplplugin.OpenGlVulkanPresentMethodValue,Ee=i.Or.Nvapp.Nvcplplugin.OpenGlGdiCompatibilityValue,it=i.Or.Nvapp.Nvcplplugin.AnisotropicFilteringValue,Fe=i.Or.Nvapp.Nvcplplugin.TextureFilteringNegativeMethodValue,Qe=i.Or.Nvapp.Nvcplplugin.TextureFilteringQualityValue,ct=i.Or.Nvapp.Nvcplplugin.BatteryBoostVersionEnum,Ge=i.Or.Nvapp.Nvcplplugin.WhisperModeVersionEnum,nt=i.Or.Nvapp.Nvcplplugin.SliMultiGpuRenderingModeValue,Je=i.Or.Nvapp.Nvcplplugin.VirtualRealityPreRenderedFramesValue,ze=i.Or.Nvapp.Nvcplplugin.MultiFrameEnum,Ke=function(ge){return ge[ge.OFF=1]="OFF",ge[ge.VALUE_3X=2]="VALUE_3X",ge[ge.VALUE_4X=3]="VALUE_4X",ge}(Ke||{}),Ve=function(ge){return ge[ge.Off=0]="Off",ge[ge.On=1]="On",ge}(Ve||{}),$e=function(ge){return ge.CudaGpus="CudaGpus",ge.DoublePrecision="DoublePrecision",ge.OpenGlRenderingGpu="OpenGLRenderingGPU",ge.LowLatencyMode="LowLatencyMode",ge.PowerManagementMode="PowerManagementMode",ge.VerticalSync="VerticalSync",ge.DSRFactor="DSRFactor",ge.PhysX="PhysX",ge}($e||{}),dt=function(ge){return ge.MaxFrameRate="MaxFrameRate",ge.ImageSharpeningToggle="ImageSharpeningToggle",ge.ImageSharpening="ImageSharpening",ge.ImageSharpeningAllow="ImageSharpeningAllow",ge.ImageSharpeningNoiseGrain="ImageSharpeningNoiseGrain",ge.DSRSmoothness="DSRSmoothness",ge.WhisperModeProgram="WhisperModeProgram",ge.BatteryBoost="BatteryBoost",ge.BackgroundAppMaxFrameRate="BackgroundAppMaxFrameRate",ge}(dt||{}),Pe=function(ge){return ge.NVCPLAPI_VALUE_EXCLUDED_CUDA_GPUS_NONE="none",ge.NVCPLAPI_VALUE_EXCLUDED_CUDA_GPUS_ALL="all",ge}(Pe||{}),J=function(ge){return ge.NVCPLAPI_VALUE_PREFERRED_OGL_GPU_AUTOSELECT="AUTOSELECT",ge}(J||{}),vt=function(ge){return ge.NVCPLAPI_VALUE_EXCLUDED_CUDA_GPUS_NONE="none",ge}(vt||{}),ve=function(ge){return ge[ge.Off=0]="Off",ge[ge.On=1]="On",ge}(ve||{}),ue=function(ge){return ge[ge.Off=0]="Off",ge[ge.On=1]="On",ge}(ue||{}),et=function(ge){return ge.Off="Off",ge.On="On",ge}(et||{}),se=function(ge){return ge.NVCPLAPI_VALUE_SHARPENING_TOGGLE_DISABLED="NVCPLAPI_VALUE_IMAGE_SHARPENING_TOGGLE_DISABLED",ge.NVCPLAPI_VALUE_SHARPENING_TOGGLE_ENABLED="NVCPLAPI_VALUE_IMAGE_SHARPENING_TOGGLE_ENABLED",ge}(se||{}),Ce=function(ge){return ge.NVCPLAPI_VALUE_SHARPENING_ALLOW_DISABLED="NVCPLAPI_VALUE_SHARPENING_ALLOW_DISABLED",ge.NVCPLAPI_VALUE_SHARPENING_ALLOW_ENABLED="NVCPLAPI_VALUE_SHARPENING_ALLOW_ENABLED",ge}(Ce||{}),be=function(ge){return ge[ge.NVAPPAPI_VALUE_FRAME_GENERATION_OFF=0]="NVAPPAPI_VALUE_FRAME_GENERATION_OFF",ge[ge.NVAPPAPI_VALUE_FRAME_GENERATION_ON=1]="NVAPPAPI_VALUE_FRAME_GENERATION_ON",ge}(be||{}),rt=function(ge){return ge.Off="Off",ge.On="On",ge}(rt||{}),me=function(ge){return ge.Off="Off",ge.On="On",ge}(me||{}),le=function(ge){return ge[ge.WhisperModeGlobal=0]="WhisperModeGlobal",ge}(le||{}),Xe=function(ge){return ge.WhisperModeGlobal="WhisperModeGlobal",ge.MaxFrameRateFPS="MaxFrameRateFPS",ge.ImageSharpening="ImageSharpening",ge.ImageSharpeningNoiseGrain="ImageSharpeningNoiseGrain",ge.GpuScaling="GpuScaling",ge.BackgroundAppMaxFrameRateFPS="BackgroundAppMaxFrameRateFPS",ge.DSRSmoothness="DSRSmoothness",ge.ShaderCache="ShaderCache",ge.ImageSharpeningAllow="ImageSharpeningAllow",ge.PhysX="PhysX",ge}(Xe||{}),Se=function(ge){return ge.WhisperModeProgram="WhisperModeProgram",ge.MaxFrameRateFPS="MaxFrameRateFPS",ge.ImageSharpening="ImageSharpening",ge.ImageSharpeningNoiseGrain="ImageSharpeningNoiseGrain",ge.GpuScaling="GpuScaling",ge.BackgroundAppMaxFrameRateFPS="BackgroundAppMaxFrameRateFPS",ge.WhisperModeGlobal="WhisperModeGlobal",ge.ImageSharpeningAllow="ImageSharpeningAllow",ge.DSRSmoothness="DSRSmoothness",ge}(Se||{}),fe=function(ge){return ge.PowerManagementPanel="PowerManagementPanel",ge.StereoEnable="StereoEnable",ge.MonitorTechnology="MonitorTechnology",ge.AntialiasingSetting="AntialiasingSetting",ge.AntialiasingMode="AntialiasingMode",ge.AntialiasingTransparency="AntialiasingTransparency",ge.FGX="FGX",ge.LowLatencyMode="LowLatencyMode",ge.AutoDisplaySwitching="AutoDisplaySwitching",ge}(fe||{}),Ne=function(ge){return ge.BaseProfile="Base Profile",ge}(Ne||{}),ye=function(ge){return ge.UseGlobalKey="UseGlobal",ge[ge.UseGlobalValue=136314880]="UseGlobalValue",ge}(ye||{}),Ot=function(ge){return ge.BatteryBoost="BatteryBoost",ge.WhisperMode="WhisperMode",ge.ImageScaling="ImageScaling",ge.AIDVC="AIDVC",ge.AIHDR="AIHDR",ge.DSRFactor="DSRFactor",ge.DLSSSR="DLSSSR",ge.DLSSFG="DLSSFG",ge.DLSSMF="DLSSMF",ge.DLSSRR="DLSSRR",ge.PhysX="PhysX",ge.FGX="FGX",ge.DLSSModelPresetProfile="DLSSModelPresetProfile",ge}(Ot||{});const sn=[fe.PowerManagementPanel,$e.DSRFactor,Xe.ShaderCache,Ot.PhysX];var dn=function(ge){return ge.AnisotropicFiltering="AnisotropicFiltering",ge.AntialiasingFXAA="AntialiasingFXAA",ge.MultiFrameSampleAA="MultiFrameSampleAA",ge.TexturefilteringAnisotropicSampleOpt="TexturefilteringAnisotropicSampleOpt",ge.TextureFilteringQuality="TextureFilteringQuality",ge.TextureFilteringTrilinear="TextureFilteringTrilinear",ge.AntialiasingTransparency="AntialiasingTransparency",ge.TextureFilteringNegativeMethod="TextureFilteringNegativeMethod",ge.BackgroundAppMaxFrameRate="BackgroundAppMaxFrameRate",ge.PhysX="PhysX",ge}(dn||{}),yn=function(ge){return ge.Off="Off",ge.On="On",ge}(yn||{}),At=function(ge){return ge[ge.Off=0]="Off",ge[ge.On=1]="On",ge}(At||{}),Vt=function(ge){return ge.Off="Off",ge.On="On",ge}(Vt||{}),Qt=function(ge){return ge[ge.Off=0]="Off",ge[ge.On=1]="On",ge}(Qt||{}),Jt=function(ge){return ge.Off="Off",ge.On="On",ge}(Jt||{}),Zt=function(ge){return ge[ge.Off=0]="Off",ge[ge.On=1]="On",ge}(Zt||{}),nn=function(ge){return ge.Off="Off",ge.On="On",ge}(nn||{}),Xt=function(ge){return ge[ge.Off=0]="Off",ge[ge.On=1]="On",ge}(Xt||{}),lt=function(ge){return ge[ge.Off=0]="Off",ge[ge.On=1]="On",ge}(lt||{}),Ue=function(ge){return ge.Off="Off",ge.On="On",ge}(Ue||{}),wt=function(ge){return ge[ge.Off=0]="Off",ge[ge.On=1]="On",ge}(wt||{}),gt=function(ge){return ge.Settings=" Settings",ge.SupportingSettings=" SupportingSettings",ge}(gt||{}),Ht=function(ge){return ge.Off="Off",ge.On="On",ge}(Ht||{}),bn=function(ge){return ge.OptimalPower="NVCPLAPI_VALUE_POWER_MANAGEMENT_MODE_OPTIMAL_POWER",ge.Normal="NVCPLAPI_VALUE_POWER_MANAGEMENT_MODE_NORMAL",ge}(bn||{}),Ut=function(ge){return ge.GsyncOn="NVCPLAPI_VALUE_MT_GSYNC_ON",ge}(Ut||{}),Bt=function(ge){return ge[ge.MultiMonDetected=8]="MultiMonDetected",ge[ge.HdrDisabled=16]="HdrDisabled",ge[ge.SocFeatureEnabled=32]="SocFeatureEnabled",ge[ge.SliEnabled=64]="SliEnabled",ge[ge.SurroundEnabled=128]="SurroundEnabled",ge[ge.MSHybridEnabledDDSIGPU=512]="MSHybridEnabledDDSIGPU",ge[ge.NoDisplayConnectedToNvGPU=2048]="NoDisplayConnectedToNvGPU",ge[ge.MinimumDriverVersionNotMet=1048576]="MinimumDriverVersionNotMet",ge[ge.GameDisallowed=2097152]="GameDisallowed",ge[ge.PlatformEnabled=4194304]="PlatformEnabled",ge}(Bt||{}),Le=function(ge){return ge[ge.GpuIncompatible=1]="GpuIncompatible",ge[ge.ClientVirtualizationEnabled=2]="ClientVirtualizationEnabled",ge[ge.OsIncompatible=4]="OsIncompatible",ge[ge.MsHybridEnabled=256]="MsHybridEnabled",ge[ge.DisplayIncompatible=1024]="DisplayIncompatible",ge}(Le||{}),V=function(ge){return ge.Edit="edit_settings",ge.ArrowDropDown="carrot_down",ge}(V||{}),de=function(ge){return ge[ge.Auto=0]="Auto",ge[ge.NVIDIA_GPU=1]="NVIDIA_GPU",ge[ge.CPU=2]="CPU",ge}(de||{})},63407:(St,z,s)=>{"use strict";s.d(z,{$F:()=>te,$Y:()=>ae,Dn:()=>l,Jn:()=>Ge,K4:()=>Je,L$:()=>A,LM:()=>Y,Lr:()=>P,M5:()=>X,Me:()=>m,NE:()=>E,SF:()=>r,Sl:()=>q,UY:()=>ct,VJ:()=>U,Vo:()=>ce,i1:()=>Q,ig:()=>M,k_:()=>u,lz:()=>T,oC:()=>x,op:()=>Fe,q:()=>v,qn:()=>R,uf:()=>it,vF:()=>C,vR:()=>B,vp:()=>nt,zD:()=>S});var i=s(20924),n=s(98207);const C=i.Ts.Nvapp.Nvcplplugin.GetProfileSettingsInfo,S=i.Ts.Nvapp.Nvcplplugin.GetProfileSettingValue,M=i.Ts.Nvapp.Nvcplplugin.GetProfileInfo,P=i.Ts.Nvapp.Nvcplplugin.SetProfileSettingValue,x=i.Ts.Nvapp.Nvcplplugin.GetProfileStringSettingPossibleValues,A=i.Ts.Nvapp.Nvcplplugin.GetProfileScalarSettingPossibleValues,m=i.Ts.Nvapp.Nvcplplugin.RestoreDefaultForAllProfiles,l=i.Ts.Nvapp.Nvcplplugin.GetProfilesAndApplicationsInfo,r=i.Ts.Nvapp.Nvcplplugin.RestoreDefaultForProfile,u=i.Ts.Nvapp.Nvcplplugin.CreateNewProfile,v=i.Ts.Nvapp.Localgames.AddManualApplication,E=i.Ts.Nvapp.Nvcpldisplayplugin.RegisterDisplayChangeNotification,T="Value";var R=i.Or.Nvapp.Nvcplplugin.ProfileSettingType,B=i.Or.Nvapp.Nvcplplugin.FanVolume,U=i.Or.Nvapp.Nvcplplugin.PerformanceModeOverrideEnum,Y=i.Or.Nvapp.Nvcplplugin.ModelOverrideEnum,ae=i.Or.Nvapp.Nvcplplugin.DlssSupportState;const X="unlocalized",q={minValue:20,maxValue:1e3,defaultValue:58,stepValue:1},Q={minValue:20,maxValue:200,defaultValue:30,stepValue:1},ce={minValue:0,maxValue:1,noiseGrain:.17,sharpen:.5,stepValue:.01},te={minValue:0,maxValue:100,defaultValue:33,stepValue:1},it=3e3,Fe=700,ct={10954:"1.20",12247:"1.50",13333:"1.78",14142:"2.00",15e3:"2.25",17320:"3.00",2e4:"4.00",24494:"6.00",3e4:"9.00"},Ge=new RegExp(/[^a-zA-Z0-9\.:]/g),nt=(ze,Ke)=>!!ze.replace(Ge,"").match(Ke),Je={[n.DriverSettingsHardConstraints.GpuIncompatible]:"manage3dSettings.AIHDR.error.gpuNotSupported",[n.DriverSettingsHardConstraints.OsIncompatible]:"manage3dSettings.AIHDR.error.osInCompatible",[n.DriverSettingsSoftConstraints.MultiMonDetected]:"manage3dSettings.AIHDR.error.multiMonitor",[n.DriverSettingsSoftConstraints.HdrDisabled]:"manage3dSettings.AIHDR.error.osAndAutoHdrAndGameHdr",[n.DriverSettingsSoftConstraints.SocFeatureEnabled]:"manage3dSettings.AIHDR.error.socFeatures",[n.DriverSettingsSoftConstraints.SliEnabled]:"manage3dSettings.AIHDR.error.sli",[n.DriverSettingsSoftConstraints.SurroundEnabled]:"manage3dSettings.AIHDR.error.surround",[n.DriverSettingsSoftConstraints.MSHybridEnabledDDSIGPU]:"manage3dSettings.AIHDR.error.msHybridDDS",[n.DriverSettingsSoftConstraints.NoDisplayConnectedToNvGPU]:"manage3dSettings.AIHDR.error.msHybridDDS",[n.DriverSettingsSoftConstraints.MinimumDriverVersionNotMet]:"manage3dSettings.AIHDR.error.minDriver",[n.DriverSettingsSoftConstraints.GameDisallowed]:"manage3dSettings.AIHDR.error.gameDisallowed",[n.DriverSettingsSoftConstraints.PlatformEnabled]:"manage3dSettings.WhisperMode.error.platformEnabled"}},74541:(St,z,s)=>{"use strict";s.d(z,{_:()=>ae});var i=s(85735),n=s(80583),h=s(59859),C=s(43848),S=s(93181),M=s(65706),P=s(91384),x=s(14714),A=s(43615),g=s(83915),m=s(26875),r=s(63407),u=s(98207),v=s(1242),E=s(58527),T=s(92602),R=s(96277),B=s(26990),U=s(93818),Y=s(52238);let ae=(()=>{class G{constructor(X,q,Q,ce,te){this.loggingService=X,this.manage3dSettingsService=q,this.manage3dSettingsUtilService=Q,this.manage3dSettingsTelemetryService=ce,this.dlssSettingsUtilService=te,this.profileSettingsInfoArray=[],this.featureSettingObjectsForSave=[],this.featureSettingList=[],this.profileSettingsInfoSubject=new i.m(1),this.appWiseSettings={},this.applyInProgess$=new n.B7}getProfileSettingsInfo(){return this.profileSettingsInfoSubject.asObservable()}applySingleSetting(X){this.applyInProgess$.next(!0),this.manage3dSettingsUtilService.updateLastApplied(X.settingName),this.logger.info(`Applying single setting value ${X.selectedFeatureValue} for ${this.selectedProfileInfo.profileName}`);const q=this.profileSettingsInfoArray.find(Q=>Q.settingName===X.settingName)?.settingValue;if(!q){this.logger.info(`Feature Name ${X.settingName} not found in main array ${this.profileSettingsInfoArray}`);const Q=`${X.settingName} value not found in main array.`;return this.logger.error(Q),(0,h.$)(Q)}return this.manage3dSettingsUtilService.setProfileSettingValue(q,X,this.selectedProfileInfo).pipe((0,M.s)(1),(0,P.M)(Q=>{this.logger.info(`SET api success for ${X.settingName}\n and profile ${this.selectedProfileInfo.profileName} with value ${X.selectedFeatureValue} with response `,Q),this.updateUseProfileTelemetry(X)}),(0,x.W)(Q=>(this.logger.error(`Error while SET api call for for ${X.settingName}\n and profile ${this.selectedProfileInfo.profileName} with value ${X.selectedFeatureValue} : `,Q),this.sendErrorTelemetry(Q,X))),(0,A.j)(()=>{this.applyInProgess$.next(!1)}))}refreshSingleSetting(X){return this.manage3dSettingsService.getProfileSettingValue(X,this.selectedProfileInfo).pipe((0,M.s)(1))}updateUseProfileTelemetry(X){if(!this.isGlobalContext){this.logger.info("Sending telemetry for ",X.settingName);const q=u.DefaultGlobalEnum.UseGlobalValue===X.selectedFeatureValue?v.T8.TRUE:v.T8.FALSE;this.manage3dSettingsTelemetryService.send3DSettingUseProfileEvent(v.NU.ProgramSettings,this.selectedProfileInfo.profileName,X.settingName,X.selectedFeatureValue.toString(),q)}}sendErrorTelemetry(X,q){return this.manage3dSettingsTelemetryService.send3DSettingApplyFailedEvent(this.isGlobalContext?v.NU.GlobalSettings:v.NU.ProgramSettings,this.selectedProfileInfo.profileName,q.settingName,q.selectedFeatureValue.toString(),X.message??JSON.stringify(X)),(0,h.$)(X)}getApplyInProgress(){return this.applyInProgess$.asObservable()}filterCuratedSettings(X){let q,Q,ce,te,Ee,it,Fe,Qe,ct,Ge;return X.forEach(nt=>{switch(nt.settingName){case u.CuratedGlobalSettings.ImageSharpening:q=nt;break;case u.CuratedGlobalSettings.ImageSharpeningNoiseGrain:Q=nt;break;case u.CuratedGlobalSettings.MaxFrameRateFPS:ce=nt;break;case u.CuratedGlobalSettings.BackgroundAppMaxFrameRateFPS:ct=nt;break;case u.JsonTypeSettings.DLSSSR:te=nt;break;case u.JsonTypeSettings.DLSSRR:Ee=nt;break;case u.JsonTypeSettings.DLSSFG:it=nt;break;case u.DynamicSettings.LowLatencyMode:Fe=nt;break;case u.JsonTypeSettings.FGX:Qe=nt;break;case u.JsonTypeSettings.DLSSModelPresetProfile:Ge=nt}}),[q,Q,ce,ct,Fe,te,Ee,it,Qe,Ge]}clearAndNotify(X){this.logger.info("Update main array ",X),this.profileSettingsInfoArray=(0,m.cloneDeep)(X),this.profileSettingsInfoSubject.next((0,m.cloneDeep)(X))}scrollSettingIntoView(){this.featureSettingToScroll&&setTimeout(()=>{const X=document.getElementById(this.featureSettingToScroll);X?X.scrollIntoView({behavior:"smooth",block:"start"}):this.logger.warn(`Could not scroll to view for setting ${this.featureSettingToScroll}`),this.featureSettingToScroll=""},r.op)}restoreJsonTypeSettings(X=!0){const q=this.profileSettingsInfoArray.filter(Q=>Q.settingValue.SettingInfo.SettingType===r.qn.type_json_string&&Q.settingValue.SettingInfo.isSupported&&Q.settingName!==u.DynamicSettings.DSRFactor&&Q.settingName!==u.JsonTypeSettings.DLSSMF&&Q.settingName!==u.JsonTypeSettings.PhysX&&!(this.dlssSettingsUtilService.isDLSSModelPresetProfileSetting(Q.settingName)&&!this.dlssSettingsUtilService.getIsDLSSSupportedGlobally())&&!this.ignoreRestoreForSetting(Q)&&!(Q.settingName===u.JsonTypeSettings.WhisperMode&&Q.settingValue.isGreyedOut)&&!(Q.settingName===u.JsonTypeSettings.ImageScaling&&Q.settingValue.isGreyedOut));if((0,m.isEmpty)(q))return(0,C.of)(!0);{const Q=q.map(ce=>{let te="";if(X)te=ce.settingValue.settingDefaultValue;else{const it=JSON.parse(ce.settingValue.settingDefaultValue);this.dlssSettingsUtilService.getIsDLSSSupportedGlobally()||delete it.useGlobal,te=this.dlssSettingsUtilService.isDLSSSetting(ce.settingName)||this.dlssSettingsUtilService.isDLSSModelPresetProfileSetting(ce.settingName)?JSON.stringify(it):JSON.stringify({useGlobal:!0})}const Ee=this.getSelectedFeatureValue(ce.settingName,te);return this.applySingleSetting(Ee)});return(0,S.p)(Q).pipe((0,M.s)(1),(0,g.T)(ce=>(this.manage3dSettingsUtilService.updateLastApplied(null),!0)),(0,x.W)(ce=>(0,h.$)(ce)))}}ignoreRestoreForSetting(X){const q=X?.settingName+r.lz,Q=JSON.stringify({useGlobal:!0});switch(X?.settingName){case u.JsonTypeSettings.BatteryBoost:case u.JsonTypeSettings.WhisperMode:return X?.settingValue?.[q]===u.DefaultGlobalEnum.UseGlobalValue;default:return X?.settingValue?.[q]===Q}}getSelectedFeatureValue(X,q){const Q={};return Q.settingName=X,Q.selectedFeatureValue=q,Q.isDirty=!0,Q}selectiveSettingUpdate(X,q){return X.length===q.length&&this.manage3dSettingsUtilService.lastSettingApplied?X.forEach((Q,ce)=>{const te=q.find(Ee=>Ee.settingName===Q.settingName);te&&(te.settingValue[te.settingName+r.lz]!==Q.settingValue[te.settingName+r.lz]||this.manage3dSettingsUtilService.lastSettingApplied===te.settingName||this.isSpecialSettingToRefresh(te.settingName))&&(X[ce]=te)}):X=q.slice(),X}isSpecialSettingToRefresh(X){return!!u.DependentSettingsList[X]||X===u.StaticSliderSettings.ImageSharpeningToggle||X===u.JsonTypeSettings.AIHDR||X===u.JsonTypeSettings.DLSSSR||X===u.JsonTypeSettings.DLSSRR||X===u.JsonTypeSettings.DLSSFG||X===u.JsonTypeSettings.DLSSMF}getCachedSettings(X){if(this.appWiseSettings[X+u.SettingsTempCacheSuffix.Settings])return[this.appWiseSettings[X+u.SettingsTempCacheSuffix.Settings].slice(),this.appWiseSettings[X+u.SettingsTempCacheSuffix.SupportingSettings].slice()]}updateCachedSettings(X,q,Q){this.appWiseSettings[X+u.SettingsTempCacheSuffix.Settings]=q.slice(),this.appWiseSettings[X+u.SettingsTempCacheSuffix.SupportingSettings]=Q.slice()}static{this.\u0275fac=function(q){return new(q||G)(E.KVO(T.J6),E.KVO(R.F),E.KVO(B.f),E.KVO(U._),E.KVO(Y.$))}}static{this.\u0275prov=E.jDH({token:G,factory:G.\u0275fac,providedIn:"root"})}}return G})()},52238:(St,z,s)=>{"use strict";s.d(z,{$:()=>m});var i=s(26875),h=s(63407),C=s(98207),S=s(72639),M=s(28220),P=s(58527),x=s(92602),A=s(96542),g=s(96306);let m=(()=>{class l{constructor(u,v,E,T){this.loggingService=u,this.translateService=v,this.errorHandlerService=E,this.hardwareInformationService=T,this.isDLSSSupportedGlobally=!0,this.isDLSSModelPresetProfileSupportedGlobally=!0,this.cachedDriverVersion=null,this.logger=this.loggingService.getLogger("nvapp/DLSSSettingsUtilService"),this.initializeDriverVersion()}initializeDriverVersion(){this.hardwareInformationService.getGenericInfo(!1).subscribe(u=>{this.cachedDriverVersion=u?.DriverVersion,this.logger.info("Driver version cached:",this.cachedDriverVersion)},u=>{this.logger.error("Failed to fetch driver version",u)})}isFrameGenerationValueChanged(u,v,E,T){let R=!1,B="";E=E===C.MultiFrameEnum.OFF?C.MultiFrameEnum.REMOVE:E;const U=JSON.parse(u?.toString()??null),Y=E===C.DefaultGlobalEnum.UseGlobalValue;let ae=U.enabled;!ae&&(E===C.MultiFrameEnum.VALUE_3X||E===C.MultiFrameEnum.VALUE_4X)&&(ae=!0);const G={...U,multiFrameCount:E,useGlobal:Y,enabled:ae};return(T||!this.getIsDLSSSupportedGlobally())&&delete G.useGlobal,Y&&this.getIsDLSSSupportedGlobally()&&(G.enabled=!1,G.multiFrameCount=U.multiFrameCount),(0,i.isNil)(U)||(R=!(0,i.isEqual)(U,G),B=JSON.stringify(G)),[R,B]}isOverrideValueChanged(u,v,E,T){const R=JSON.parse(u?.toString()),B=JSON.parse(v?.toString()),U={};let Y=!1,ae="";const G=B.modelOverride!==h.LM.Default||B.performanceModeOverride!==h.VJ.Default;return U.enabled=G,U.modelOverride=B?.modelOverride===h.LM.Default&&G&&!T?h.LM.Latest:B?.modelOverride,U.performanceModeOverride=B?.performanceModeOverride,U.scaling=B?.scaling,U.supportState=R.supportState,this.getIsDLSSSupportedGlobally()&&(U.useGlobal=B?.useGlobal),Y=!(0,i.isEqual)(R,U),ae=JSON.stringify(U),[Y,ae]}isFGXValueChanged(u,v,E){const R=1==+v;let B={};+v===C.DefaultGlobalEnum.UseGlobalValue?B={useGlobal:!0,enabled:JSON.parse(E?.toString()??null).enabled}:B.enabled=R;let U=!1,Y="";const ae=JSON.parse(u?.toString()??null);return U=!(0,i.isEqual)(ae,B),Y=JSON.stringify(B),[U,Y]}isDLSSSetting(u){switch(u){case C.JsonTypeSettings.DLSSSR:case C.JsonTypeSettings.DLSSRR:case C.JsonTypeSettings.DLSSFG:case C.JsonTypeSettings.DLSSMF:case S.FY:return!0;default:return!1}}isDriverFrameGenerationSetting(u){return u===C.JsonTypeSettings.FGX}isDLSSModelPresetProfileSetting(u){return u===C.JsonTypeSettings.DLSSModelPresetProfile}getSROverrideProgramDisplayValue(u){return this.isDenyListedConstraint(u)?this.translateService.instant(S.$k):u?.filter(R=>![M.uF.SRModelDenyListed,M.uF.RRModelDenyListed].includes(R))?.length>0?this.translateService.instant(S.v9):this.translateService.instant("common.UseGlobal")}getSROverrideDisplayValue(u,v,E,T,R){if(this.isDenyListedConstraint(v))return this.translateService.instant(S.$k);const U=u.supportState,ae=v?.filter(ce=>![M.uF.SRModelDenyListed,M.uF.RRModelDenyListed].includes(ce))?.length>0,G=this.isScanSupportNotTestedAndManuallyAdded(U,ae,E,T),X=this.isDLSSModelPresetProfileSupportedGlobally?!u.useGlobal:u.performanceModeOverride===h.VJ.Default;if(G&&!X&&!T)return this.translateService.instant(S.Ow);if(this.isScanSupportUnknownAndManuallyAdded(U,ae,E,T)&&!X&&!T)return this.translateService.instant(S.aR);if(ae)return this.translateService.instant(S.v9);if(R===C.DefaultGlobalEnum.UseGlobalKey)return this.translateService.instant("common.UseGlobal");const Q=u.performanceModeOverride!==h.VJ.Default&&u.enabled?`${this.translateService.instant(S.bC.get(u.performanceModeOverride))} (${u.scaling}%)`:`${this.translateService.instant(S.v9)}`;return this.translateService.instant("dlssOverrides.displayText",{mode:Q})}getMultiFrameDisplayValue(u,v,E,T,R){if(this.isDenyListedConstraint(E))return this.translateService.instant(S.$k);const U=u.supportState,Y=E.length>0,G=this.isDLSSModelPresetProfileSupportedGlobally?!u.useGlobal:u.multiFrameCount===C.MultiFrameEnum.OFF||u.multiFrameCount===C.MultiFrameEnum.REMOVE;return this.isScanSupportNotTestedAndManuallyAdded(U,Y,T,R)&&!G?this.translateService.instant(S.Ow):this.isScanSupportUnknownAndManuallyAdded(U,Y,T,R)&&!G?this.translateService.instant(S.aR):this.translateService.instant("manage3dSettings."+C.JsonTypeSettings.DLSSMF+".values."+v)}getFGXDisplayValue(u,v,E){return this.isDenyListedConstraint(E)?this.translateService.instant(S.$k):this.translateService.instant("manage3dSettings."+C.JsonTypeSettings.FGX+".values."+v)}isDenyListedConstraint(u){return u?.some(v=>v===M.uF.DenyListed||v===M.uF.x86Unsupported)}isScanSupportUnknown(u,v){let E,T=!1;switch(u){case C.JsonTypeSettings.DLSSSR:case C.JsonTypeSettings.DLSSRR:case C.JsonTypeSettings.DLSSFG:case C.JsonTypeSettings.DLSSMF:E=JSON.parse(v.toString()).supportState,T=this.isScanOrNgxSupportUnknown(E);break;default:return!1}return T}isScanOrNgxSupportUnknown(u){return u===h.$Y.ScanDetectUnknown||u===h.$Y.NGXDetectUnknown}isScanSupportNotTested(u){return u===h.$Y.ScanDetectSupported||u===h.$Y.NGXDetectSupported}isScanSupportDetected(u,v){let E;switch(u){case C.JsonTypeSettings.DLSSSR:case C.JsonTypeSettings.DLSSRR:case C.JsonTypeSettings.DLSSFG:case C.JsonTypeSettings.DLSSMF:E=JSON.parse(v.toString()).supportState;break;default:return!1}return E===h.$Y.ScanDetectSupported||E===h.$Y.NGXDetectSupported}getGraphicsApiErrorMessage(u,v){const E=JSON.parse(u.toString());if(!E.allowedGfxApi)return this.logger.info("No Graphics API returned for profile",v),null;const R=E.allowedGfxApi?.filter(Y=>Y!==M.CQ.Unknown),B=R?R.length:0;if(0===B)return this.logger.info("No Graphics API found for profile",v),{text:S.gl,doTranslate:!0};let U="";if(1===B){const Y=S.zZ,ae=R[0],G=S.e5[ae];if(G){const te=this.translateService.instant(G);U=this.translateService.instant(Y,{supportedApi:te})}else this.logger.info("single api is not found in defined APIs",ae),U=this.translateService.instant(S.gl);return{text:U,doTranslate:!1}}{const k=R.find(te=>!Object.values(M.CQ).includes(te));if(k)return this.logger.info("api is not found in defined APIs",k),{text:S.gl,doTranslate:!0};const X=S.Be,q=R.slice(0,B-1).map(te=>{const Ee=S.e5[te];return Ee?this.translateService.instant(Ee):null}).filter(te=>null!==te).join(", "),ce=R.slice(-1).map(te=>{const Ee=S.e5[te];return Ee?this.translateService.instant(Ee):null}).filter(te=>null!==te);return U=this.translateService.instant(X,{supportedApiFirst:q,supportedApiLast:ce}),{text:U,doTranslate:!1}}}getErrorInformation(u,v,E,T,R,B){this.logger.info(`Constraints for profileName ${T} and settingName ${u}`,E);const U=E?.filter(ce=>![M.uF.SRModelDenyListed,M.uF.RRModelDenyListed].includes(ce)),Y=U?.length>0,ae=this.isScanSupportUnknown(u,v),G=this.isScanSupportDetected(u,v);let k=!1,q=[];const Q=[];if(Y?(U?.every(ce=>{if(ce===M.uF.DenyListed||ce===M.uF.x86Unsupported){const Ee=this.translateService.instant(S.IR[ce],{program:T});return q=[],q.push({text:Ee,doTranslate:!1}),!1}if(ce===M.uF.GpuUnsupported||ce===M.uF.FGMultiFrameCountUnsupported)if(ce===M.uF.GpuUnsupported&&u===C.JsonTypeSettings.DLSSMF)this.logger.info("Ignoring GPUConstraint Error for MFG");else{const te=this.getGpuMessagePerTech(u);q.push(te)}else q.push({text:S.IR[ce],doTranslate:!0});return!0}),k=!0):G||this.isDLSSSetting(u)&&(B||R)?(q.push({text:this.getScanSupportErrorMessage(h.$Y.ScanDetectSupported),doTranslate:!0}),q.push({text:S.G8,doTranslate:!0}),Q.push(S.Lo),Q.push(S.Ar),Q.push("manage3dSettings."+u+".notes"),u===C.JsonTypeSettings.DLSSMF&&Q.push("manage3dSettings."+u+".dependentSettingNotes"),this.logger.info("Scan support detected for fingerprint detected program",T)):ae&&q.push({text:this.getScanSupportErrorMessage(h.$Y.ScanDetectUnknown),doTranslate:!0}),!R&&u===C.JsonTypeSettings.FGX&&!k){const ce=this.getGraphicsApiErrorMessage(v,T);ce&&q.push(ce)}return[q,k,!0,Q]}getGpuMessagePerTech(u){switch(u){case C.JsonTypeSettings.DLSSSR:case C.JsonTypeSettings.DLSSRR:return{text:S.nZ,doTranslate:!0};case C.JsonTypeSettings.DLSSFG:case C.JsonTypeSettings.DLSSMF:return{text:S.TE,doTranslate:!0};case C.JsonTypeSettings.FGX:const v=+this.cachedDriverVersion>=+S.qp;return this.logger.info("isDriver580",v),{text:v?S.Zm:S.TE,doTranslate:!0}}}getScanSupportErrorMessage(u){return S.K2[u]}isDefaultValue(u){return u===h.VJ.Default}applyRROnSROverride(u,v,E){const T=JSON.parse(u),R=JSON.parse(v);R.performanceModeOverride=T.performanceModeOverride,R.scaling=T.scaling,R.useGlobal=T.useGlobal,R.enabled=R.enabled?R.enabled:R.performanceModeOverride!==h.VJ.Default;const[B,U]=this.isOverrideValueChanged(v,JSON.stringify(R),C.JsonTypeSettings.DLSSRR,E);return{settingName:C.JsonTypeSettings.DLSSRR,isDirty:B,selectedFeatureValue:U}}showToastForFGSetting(u,v,E){const T=JSON.parse(u.toString()),R=JSON.parse(v.toString());let B=T.enabled!==R.enabled&&R.multiFrameCount!==C.MultiFrameEnum.OFF&&R.multiFrameCount!==C.MultiFrameEnum.REMOVE;!E&&this.isDLSSModelPresetProfileSupportedGlobally&&(B=B||T.useGlobal!==R.useGlobal),B&&this.showToastMessage([C.JsonTypeSettings.DLSSMF,S.FY])}showToastForSRSetting(u,v,E,T){const R=JSON.parse(u.toString()),B=JSON.parse(v.toString());let U=R.enabled!==B.enabled&&!E;!T&&this.isDLSSModelPresetProfileSupportedGlobally&&(U=U||R.useGlobal!==B.useGlobal),U&&this.showToastMessage([C.JsonTypeSettings.DLSSSR,S.FY])}showToastForAIModels(u,v,E,T,R,B,U){const Y=JSON.parse(u.toString()),ae=JSON.parse(E.toString()),G=JSON.parse(v.toString()),k=JSON.parse(T.toString()),X=[];X.push(S.FY);let q=ae.enabled!==Y.enabled&&ae.multiFrameCount!==C.MultiFrameEnum.OFF&&ae.multiFrameCount!==C.MultiFrameEnum.REMOVE;!B&&this.isDLSSModelPresetProfileSupportedGlobally&&(q=q||ae.useGlobal!==Y.useGlobal);let Q=G.enabled!==k.enabled&&k.performanceModeOverride!==h.VJ.Default;!B&&this.isDLSSModelPresetProfileSupportedGlobally&&(Q=Q||G.useGlobal!==k.useGlobal),U&&U===C.DefaultGlobalEnum.UseGlobalValue&&this.isDLSSModelPresetProfileSupportedGlobally&&(q=!0,Q=!0),q&&!R.fgDisabled&&X.push(C.JsonTypeSettings.DLSSMF),Q&&!R.srDisabled&&X.push(C.JsonTypeSettings.DLSSSR),X.length>1&&this.showToastMessage(X)}showToastMessage(u){if(u.length>0){const E=u.slice(0,u.length-1).map(U=>this.translateService.instant(`manage3dSettings.${U}.name`)).join(", "),R=u.slice(-1).map(U=>this.translateService.instant(`manage3dSettings.${U}.name`));this.errorHandlerService.showToastMessage({text:"manage3dSettings.dependentSettingsUpdated",placeholders:{primaryText:E,lastSetting:R},translated:!1}).subscribe(),u=[]}}isScanSupportNotTestedAndManuallyAdded(u,v,E,T){return!T&&this.isScanSupportNotTested(u)&&!v&&!E?.isFingerprintDetected&&E?.isManuallyAdded}isScanSupportUnknownAndManuallyAdded(u,v,E,T){return!T&&this.isScanOrNgxSupportUnknown(u)&&!v&&!E?.isFingerprintDetected&&E?.isManuallyAdded}setIsDLSSSupportedGlobally(u){this.isDLSSSupportedGlobally=u}getIsDLSSSupportedGlobally(){return this.isDLSSSupportedGlobally}setIsDLSSModelPresetProfileSupportedGlobally(u){this.isDLSSModelPresetProfileSupportedGlobally=u}getIsDLSSModelPresetProfileSupportedGlobally(){return this.isDLSSModelPresetProfileSupportedGlobally}isUseGlobalKey(u){return u===C.DefaultGlobalEnum.UseGlobalValue}isDefaultKey(u){return u===h.VJ.Default}isDefaultKeyForModel(u){return u===h.LM.Default}isDefaultKeyForModelPresetProfile(u){return u===M.h4.Default}shouldRemoveUseGlobalOption(u){return u||!u&&!this.getIsDLSSSupportedGlobally()}shouldShowUseGlobalWithDetails(u){return!u&&this.getIsDLSSSupportedGlobally()}shouldShowDefaultWithSpecialText(u){return u||!u&&!this.getIsDLSSSupportedGlobally()}formatDefaultDisplayText(){const u=this.translateService.instant("common.default");return`${this.translateService.instant(S.v9)} (${u})`}formatUseGlobalDisplayText(u,v){const E=this.translateService.instant("common.default");return`${this.translateService.instant("manage3dSettings.useProfile")} - ${this.translateService.instant(`${u.get(v)}`)} (${E})`}formatUseGlobalModelDisplayText(u,v){const E=this.translateService.instant("common.default");return`${this.translateService.instant("manage3dSettings.useProfile")} - ${this.translateService.instant(`${u.get(v)}`)} (${E})`}shouldExcludeCustomMode(u,v,E,T){return v.includes(u)&&E<T}shouldSetGlobalTransValToNull(u,v,E,T,R){if(this.isDenyListedConstraint(u))return!0;if(!this.isDLSSSetting(v))return!1;if(!this.getIsDLSSSupportedGlobally())return!0;let ae;try{switch(v){case C.JsonTypeSettings.DLSSSR:case C.JsonTypeSettings.DLSSRR:case C.JsonTypeSettings.DLSSFG:case C.JsonTypeSettings.DLSSMF:ae=JSON.parse(E.toString()).supportState;break;default:return!1}}catch(Q){return this.logger.error("Failed to parse feature value for support state",Q),!1}const k=u?.filter(Q=>![M.uF.SRModelDenyListed,M.uF.RRModelDenyListed].includes(Q))?.length>0,X=this.isScanSupportNotTestedAndManuallyAdded(ae,k,T,R),q=this.isScanSupportUnknownAndManuallyAdded(ae,k,T,R);return X||q}static{this.\u0275fac=function(v){return new(v||l)(P.KVO(x.J6),P.KVO(A.c$),P.KVO(g.c),P.KVO(x.SQ))}}static{this.\u0275prov=P.jDH({token:l,factory:l.\u0275fac,providedIn:"root"})}}return l})()},56068:(St,z,s)=>{"use strict";s.d(z,{R:()=>g});var i=s(98207),n=s(63407),h=s(74541),C=s(58527),S=s(92602),M=s(96277),P=s(26990),x=s(93818),A=s(52238);let g=(()=>{class m extends h._{constructor(r,u,v,E,T){super(r,u,v,E,T),this.batteryBoostSettingKey=`${i.JsonTypeSettings.BatteryBoost}${n.lz}`,this.whisperModeSettingKey=`${i.JsonTypeSettings.WhisperMode}${n.lz}`,this.nis2SettingKey=`${i.JsonTypeSettings.ImageScaling}${n.lz}`,this.logger=this.loggingService.getLogger("nvapp/Global3dSettingsService"),this.initGlobalSettingsListener(),this.isGlobalContext=!0}initGlobalSettingsListener(){this.getSettingsSubscription&&this.getSettingsSubscription.unsubscribe(),this.getSettingsSubscription=this.manage3dSettingsUtilService.getGlobalSettings().subscribe(r=>{this.clearAndNotify(r)},r=>{this.logger.error("Error fetching Global settings:",r),this.profileSettingsInfoSubject.error(r)})}refreshGlobalSettings(r=!0,u=!1){return this.selectedProfileInfo={profileName:i.ProfileNames.BaseProfile,applicationId:0,cmsId:0},this.manage3dSettingsUtilService.refreshGlobalSettings(this.selectedProfileInfo,r,u)}getVisibleProfileSettings(r){return r.filter(u=>!(u.settingName in i.CuratedGlobalSettings))}getBatteryBoostValue(r){let u={};const v=r.find(E=>E.settingName===i.JsonTypeSettings.BatteryBoost&&E.settingValue?.[this.batteryBoostSettingKey]);return v&&(u=JSON.parse(v?.settingValue.BatteryBoostValue)),u}getWhisperModeValue(r){let u={};const v=r.find(E=>E.settingName===i.JsonTypeSettings.WhisperMode&&E.settingValue?.[this.whisperModeSettingKey]);return v&&(u=JSON.parse(v?.settingValue.WhisperModeValue)),u}getNIS2Value(r){let u={};const v=r.find(E=>E.settingName===i.JsonTypeSettings.ImageScaling&&E.settingValue?.[this.nis2SettingKey]);return v&&(u=JSON.parse(v?.settingValue.ImageScalingValue)),u}ngOnDestroy(){this.getSettingsSubscription&&this.getSettingsSubscription.unsubscribe(),this.refreshSettingsSub&&this.refreshSettingsSub.unsubscribe()}static{this.\u0275fac=function(u){return new(u||m)(C.KVO(S.J6),C.KVO(M.F),C.KVO(P.f),C.KVO(x._),C.KVO(A.$))}}static{this.\u0275prov=C.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}}return m})()},88502:(St,z,s)=>{"use strict";s.d(z,{v:()=>C});var i=s(98207),n=s(58527),h=s(92602);let C=(()=>{class S{constructor(P){this.loggingService=P,this.logger=this.loggingService.getLogger("nvapp/JsonSettingsUtilService")}getFeatureCurrentValue(P,x){switch(P){case i.JsonTypeSettings.BatteryBoost:return this.getCurrentValueForJsonTypeSetting(x,i.BatteryBoostValue.On,i.BatteryBoostValue.Off);case i.JsonTypeSettings.WhisperMode:return this.getCurrentValueForJsonTypeSetting(x,i.WhisperModeValue.On,i.WhisperModeValue.Off);case i.JsonTypeSettings.ImageScaling:return this.getCurrentValueForJsonTypeSetting(x,i.ImageScalingValue.On,i.ImageScalingValue.Off);case i.JsonTypeSettings.AIDVC:return this.getCurrentValueForJsonTypeSetting(x,i.AIDVCValue.On,i.AIDVCValue.Off);case i.JsonTypeSettings.AIHDR:return this.getCurrentValueForJsonTypeSetting(x,i.AIHDRValue.On,i.AIHDRValue.Off);case i.JsonTypeSettings.DLSSFG:return this.getCurrentValueForJsonTypeSetting(x,i.DLSSFGValue.NVAPPAPI_VALUE_FRAME_GENERATION_ON,i.DLSSFGValue.NVAPPAPI_VALUE_FRAME_GENERATION_OFF);case i.JsonTypeSettings.DLSSMF:const A=JSON.parse(x?.featureCurrentValue.toString());if(A.useGlobal)return i.DefaultGlobalEnum.UseGlobalValue;const g=A.multiFrameCount===i.MultiFrameEnum.REMOVE?i.DLSSMFValue.OFF:A.multiFrameCount;return A?.enabled?g:i.DLSSMFValue.OFF;case i.JsonTypeSettings.FGX:return this.getCurrentValueForJsonTypeSetting(x,i.FGXValue.On,i.FGXValue.Off);case i.JsonTypeSettings.PhysX:return x?.isGlobalContext?x?.featureCurrentValue:i.DefaultGlobalEnum.UseGlobalValue;case i.JsonTypeSettings.DLSSSR:return this.getCurrentValueForJsonTypeSetting(x,i.DLSSSRValue.On,i.DLSSSRValue.Off);default:return x?.featureCurrentValue}}getCurrentValueForJsonTypeSetting(P,x,A){let g;const m=JSON.parse(P?.featureCurrentValue.toString());return g=P?.isGlobalContext?m?.enabled?x:A:m?.useGlobal||P.featureName===i.JsonTypeSettings.BatteryBoost||P.featureName===i.JsonTypeSettings.WhisperMode?i.DefaultGlobalEnum.UseGlobalValue:m?.enabled?x:A,g}isJsonTypeSetting(P){switch(P){case i.JsonTypeSettings.AIDVC:case i.JsonTypeSettings.AIHDR:case i.JsonTypeSettings.WhisperMode:return!0;default:return!1}}static{this.\u0275fac=function(x){return new(x||S)(n.KVO(h.J6))}}static{this.\u0275prov=n.jDH({token:S,factory:S.\u0275fac,providedIn:"root"})}}return S})()},96277:(St,z,s)=>{"use strict";s.d(z,{F:()=>T});var i=s(26875),h=s(43848),C=s(59859),S=s(83915),M=s(55833),P=s(14714),x=s(10174),A=s(91384),g=s(65706),m=s(125),l=s(63407),r=s(98207),u=s(28220),v=s(58527),E=s(92602);let T=(()=>{class R{set baseProfileSettingsInfoCache(U){this._baseProfileSettingsInfoCache=U}constructor(U,Y){this.loggingService=U,this.bridgeService=Y,this.logger=this.loggingService.getLogger("nvapp/Manage3dSettingsAPIService")}getBaseSettings(U=!1){return this._baseProfileSettingsInfoCache?(0,h.of)((0,i.cloneDeep)(this._baseProfileSettingsInfoCache)):(this.logger.info("Calling GetProfileSettingsInfo api"),this.bridgeService.executeCommand(l.vF,{clearCache:U}).pipe((0,S.T)(ae=>{this.logger.info("Success Calling GetProfileSettingsInfo api",ae),delete ae._return_code,delete ae._return_status,delete ae._return_internal,this.addMultiFrameSetting(ae);let G=(0,i.map)(ae,(k,X)=>({settingName:X,settingValue:k})).sort((k,X)=>k.settingName.localeCompare(X.settingName));return G=G.filter(k=>k.settingValue.SettingInfo.isSupported||k.settingName===r.JsonTypeSettings.AIHDR||k.settingName===r.JsonTypeSettings.AIDVC||k.settingName===r.JsonTypeSettings.WhisperMode||k.settingName===r.JsonTypeSettings.DLSSSR||k.settingName===r.JsonTypeSettings.DLSSRR||k.settingName===r.JsonTypeSettings.DLSSFG||k.settingName===r.JsonTypeSettings.DLSSMF||k.settingName===r.JsonTypeSettings.FGX||k.settingName===r.JsonTypeSettings.DLSSModelPresetProfile),this._baseProfileSettingsInfoCache=(0,i.cloneDeep)(G),G}),(0,M.t)(1),(0,P.W)(ae=>(this.logger.error("Error Calling GetProfileSettingsInfo api ",JSON.stringify(ae)),(0,C.$)(ae)))))}addMultiFrameSetting(U){U.DLSSFG&&(U.DLSSMF=(0,i.cloneDeep)(U.DLSSFG),U.DLSSMF.SettingInfo.enumId=u.IF.DLSSMF)}setProfileSetting(U){return this.logger.info("Attempting SET for ",U),this.bridgeService.executeCommand(l.Lr,U).pipe((0,S.T)(Y=>Y,(0,P.W)(Y=>(this.logger.error("Error during SetProfileSettingValue - ",Y),(0,C.$)(Y)))))}getProfileSettingValue(U,Y){return this.bridgeService.executeCommand(l.zD,{ProfileName:Y.profileName,ProfileSettingEnum:U,ApplicationId:Y.applicationId,CmsId:Y.cmsId}).pipe((0,S.T)(G=>G.SettingValue),(0,P.W)(G=>(this.logger.error("Error during getProfileSettingValue api call - ",G),(0,C.$)(G))))}getAllSettingsForProfile(U,Y){const ae={ProfileName:U.profileName,ApplicationId:U.applicationId,CmsId:U.cmsId,refreshSupportInfo:Y};return this.logger.info("calling GetProfileInfo API with params : ",JSON.stringify(ae)),this.bridgeService.executeCommand(l.ig,ae).pipe((0,S.T)(G=>(this.logger.info("Success calling GetProfileInfo API"),G)),(0,S.T)(G=>{const k=this.getMultiFrameSettingValue(G);return k&&G.profileSettingInfo.push(k),G}),(0,P.W)(G=>(this.logger.error("Error during getProfileSettingValue api call - ",G),(0,C.$)(G))))}getMultiFrameSettingValue(U){const Y=U.profileSettingInfo.find(G=>G.SettingEnum===u.IF.DLSSFG);let ae;return Y&&(ae=(0,i.cloneDeep)(Y),ae.SettingEnum=u.IF.DLSSMF),ae}getProfileStringSettingPossibleValues(U){return this.bridgeService.executeCommand(l.oC,U).pipe((0,S.T)(Y=>Y),(0,P.W)(Y=>(this.logger.error("Error occured while fetching getProfileStringSettingPossibleValues ",Y),(0,C.$)(Y))))}getProfileScalarSettingPossibleValuesParameters(U){return this.bridgeService.executeCommand(l.L$,U).pipe((0,S.T)(Y=>Y),(0,P.W)(Y=>(this.logger.error("Error occured while fetching getProfileScalarSettingPossibleValuesParameters ",Y),(0,C.$)(Y))))}executeRestoreAllProfiles(){return this.bridgeService.executeCommand(l.Me).pipe((0,P.W)(U=>(this.logger.error("Some error occured while restore ",U),(0,C.$)(U))),(0,x.u)(!0))}getProfilesAndApplicationsInfo(){return this.bridgeService.executeCommand(l.Dn).pipe((0,S.T)(U=>U,(0,P.W)(U=>(this.logger.error("Error during GetProfilesAndApplicationsInfo - ",U),(0,C.$)(U)))))}restoreDefaultForProfile(U){return this.bridgeService.executeCommand(l.SF,{ProfileName:U}).pipe((0,S.T)(ae=>(this.logger.info(`Profile ${U} successfuly restored, `,ae),ae),(0,P.W)(ae=>(this.logger.error(`Error during RestoreDefaultForProfile - ${U} `,ae),(0,C.$)(ae)))))}openFile(){return this.bridgeService.executeCommand(m.fs,{includeFiles:!0,filter:{"Programs and shortcuts":"*.exe; *.lnk; *.bat; *.url"}}).pipe((0,A.M)(Y=>{this.logger.info("selected program exe is",Y)}),(0,P.W)(Y=>(this.logger.error("select program failure:",Y),Y.isCancelled?(0,h.of)("isCancelled"):(0,C.$)(Y))))}createNewProfile(U,Y){return this.bridgeService.executeCommand(l.k_,{ProfileName:Y,Applications:[U]}).pipe((0,S.T)(G=>(this.logger.info("New profile created in DRS",G),G)),(0,x.u)(!0),(0,P.W)(G=>(this.logger.error("Error while creating new profile ",G),(0,C.$)(G))))}openFolder(U){return this.bridgeService.executeCommand(m.Eb,{name:U}).pipe((0,P.W)(ae=>(this.logger.error(`Error while opening a folder at ${U} `,ae),(0,C.$)(ae))))}addManualApplication(U,Y){return this.bridgeService.executeCommand(l.q,{applicationImagePath:U}).pipe((0,S.T)(G=>(this.logger.info("Manual app added ",Y),G)),(0,x.u)(!0),(0,P.W)(G=>(this.logger.error("Error while manual app add ",G),(0,C.$)(G))))}deleteDrsProfile(U){return this.bridgeService.executeCommand(m.$q,{ProfileName:U}).pipe((0,g.s)(1),(0,S.T)(ae=>(this.logger.info(`Removed DRS profile for ${U}, response: ${ae}`),ae)),(0,x.u)(!0),(0,P.W)(ae=>(this.logger.error(`Error while removing DRS profile for ${U}, ${ae?.message}`),(0,C.$)(ae))))}static{this.\u0275fac=function(Y){return new(Y||R)(v.KVO(E.J6),v.KVO(E.NZ))}}static{this.\u0275prov=v.jDH({token:R,factory:R.\u0275fac,providedIn:"root"})}}return R})()},93818:(St,z,s)=>{"use strict";s.d(z,{_:()=>S});var i=s(92602),n=s(1242),h=s(58527),C=s(78812);let S=(()=>{class M{constructor(x,A,g){this.loggingService=x,this.telemetryService=A,this.nvAppTelemetryUtilService=g,this.logger=this.loggingService.getLogger("nvapp/Manage3dSettingsTelemetryService")}send3DSettingUseProfileEvent(x,A,g,m,l){const r=new n.c4({hierarchy:this.nvAppTelemetryUtilService.getHierarchy(!0,x)||i.Qe,profileName:A||i.Qe,settingName:g||i.Qe,settingValue:m||i.Qe,useProfile:l||n.T8.TRUE});this.telemetryService.push(r)}sendRestoreTelemetry(x,A,g){const l=new n.SF({hierarchy:this.nvAppTelemetryUtilService.getHierarchy(!0,x?n.NU.GlobalSettings:n.NU.ProgramSettings)||i.Qe,restoreAll:A?n.T8.TRUE:n.T8.FALSE,profileName:g.join(";")||i.Qe});this.telemetryService.push(l)}send3DSettingsLoadErrorTelemetry(x,A,g,m){const r=new n.Ch({hierarchy:this.nvAppTelemetryUtilService.getHierarchy(!0,x?n.NU.GlobalSettings:n.NU.ProgramSettings)||i.Qe,profileName:g?.profileName||i.Qe,drsSubPath:m||i.Qe,errorDetails:JSON.stringify(A)||i.Qe});this.telemetryService.push(r)}send3DSettingApplyFailedEvent(x,A,g,m,l){const r=new n.iI({hierarchy:this.nvAppTelemetryUtilService.getHierarchy(!0,x)||i.Qe,profileName:A||i.Qe,settingName:g||i.Qe,settingValue:m||i.Qe,errorDetails:l||i.Qe});this.telemetryService.push(r)}static{this.\u0275fac=function(A){return new(A||M)(h.KVO(i.J6),h.KVO(C.H0),h.KVO(n.AY))}}static{this.\u0275prov=h.jDH({token:M,factory:M.\u0275fac,providedIn:"root"})}}return M})()},26990:(St,z,s)=>{"use strict";s.d(z,{f:()=>Ut});var i=s(80583),n=s(85735),h=s(26513),C=s(59859),S=s(43848),M=s(93181),P=s(69917),x=s(19392),A=s(16229),g=s(12532),m=s(72147),l=s(83915),r=s(91384),u=s(14714),v=s(65706),E=s(79539),T=s(93702),R=s(10174),B=s(26875),U=s(98207),Y=s(63407),ae=s(94645),G=s(26537),k=s(58527),X=s(92602),q=s(96542),Q=s(61142),ce=s(47973),te=s(4418),Ee=s(97888),it=s(54676),Fe=s(98504),Qe=s(49678),ct=s(28139),Ge=s(75723);function nt(Bt,Le){if(1&Bt){const V=k.RV6();k.j41(0,"div",7)(1,"div")(2,"mat-checkbox",8),k.bIt("change",function(){const ge=k.eBV(V),Ft=ge.$implicit,Wt=ge.index,Kt=k.XpG(2);return k.Njj(Kt.deriveFinalCudaGpuVal(Ft,Wt))}),k.j41(3,"div",9),k.EFF(4),k.k0s()()()()}if(2&Bt){const V=Le.$implicit;k.R7$(2),k.Y8G("checked",V.checked)("nvAppAnnouncer",V.checked)("associatedMessage",V.possibleValue),k.R7$(2),k.SpI(" ",V.possibleValue," ")}}function Je(Bt,Le){if(1&Bt&&(k.qex(0),k.DNE(1,nt,5,4,"div",6),k.bVm()),2&Bt){const V=k.XpG();k.R7$(),k.Y8G("ngForOf",V.featureDisplayOptions)}}function ze(Bt,Le){if(1&Bt&&(k.j41(0,"div",15)(1,"div")(2,"mat-checkbox",16)(3,"div",9),k.EFF(4),k.k0s()()()()),2&Bt){const V=Le.$implicit;k.R7$(2),k.Y8G("checked",V.checked)("disabled",V.disabled)("nvAppAnnouncer",V.checked)("associatedMessage",V.possibleValue),k.R7$(2),k.SpI(" ",V.possibleValue," ")}}function Ke(Bt,Le){if(1&Bt){const V=k.RV6();k.j41(0,"div",15)(1,"div")(2,"mat-checkbox",17),k.bIt("change",function(){const ge=k.eBV(V),Ft=ge.$implicit,Wt=ge.index,Kt=k.XpG(2);return k.Njj(Kt.deriveFinalCudaGpuVal(Ft,Wt))}),k.j41(3,"div",9),k.EFF(4),k.k0s()()()()}if(2&Bt){const V=Le.$implicit;k.R7$(2),k.Y8G("checked",V.checked)("disabled",V.disabled)("nvAppAnnouncer",V.checked)("associatedMessage",V.possibleValue),k.R7$(2),k.SpI(" ",V.possibleValue," ")}}function Ve(Bt,Le){if(1&Bt){const V=k.RV6();k.j41(0,"mat-radio-group")(1,"mat-radio-button",10),k.bIt("change",function(){k.eBV(V);const ge=k.XpG();return k.Njj(ge.onUseProfileSelection(!0))}),k.j41(2,"div",11)(3,"div",12),k.EFF(4),k.nI1(5,"translate"),k.k0s()()(),k.DNE(6,ze,5,5,"div",13),k.j41(7,"mat-radio-button",14),k.bIt("change",function(){k.eBV(V);const ge=k.XpG();return k.Njj(ge.onUseProfileSelection(!1))}),k.j41(8,"div",11)(9,"div",12),k.EFF(10),k.nI1(11,"translate"),k.k0s()()(),k.DNE(12,Ke,5,5,"div",13),k.k0s()}if(2&Bt){const V=k.XpG();k.R7$(),k.FS9("value",V.profileSelectOption.possibleValue),k.Y8G("disabled",null==V.profileSelectOption?null:V.profileSelectOption.disabled)("checked",null==V.profileSelectOption?null:V.profileSelectOption.checked),k.R7$(2),k.Y8G("ngClass",null!=V.profileSelectOption&&V.profileSelectOption.checked?"selected":""),k.R7$(),k.SpI(" ",k.bMT(5,12,V.profileSelectOption.possibleValue)," "),k.R7$(2),k.Y8G("ngForOf",V.featureDisplayOptionsGlobal),k.R7$(),k.FS9("value",V.programSelectOption.possibleValue),k.Y8G("disabled",null==V.programSelectOption?null:V.programSelectOption.disabled)("checked",null==V.programSelectOption?null:V.programSelectOption.checked),k.R7$(2),k.Y8G("ngClass",null!=V.programSelectOption&&V.programSelectOption.checked?"selected":""),k.R7$(),k.SpI(" ",k.bMT(11,14,V.programSelectOption.possibleValue)," "),k.R7$(2),k.Y8G("ngForOf",V.featureDisplayOptions)}}function $e(Bt,Le){if(1&Bt){const V=k.RV6();k.j41(0,"mat-dialog-actions",18)(1,"button",19),k.bIt("click",function(){k.eBV(V);const ge=k.XpG();return k.Njj(ge.onCancelClick())}),k.EFF(2),k.nI1(3,"translate"),k.k0s(),k.j41(4,"button",20),k.bIt("click",function(){k.eBV(V);const ge=k.XpG();return k.Njj(ge.onApplyClick())}),k.EFF(5),k.nI1(6,"translate"),k.k0s()()}if(2&Bt){const V=k.XpG();k.R7$(2),k.SpI(" ",k.bMT(3,3,"save.cancel")," "),k.R7$(2),k.Y8G("disabled",!V.isDirty),k.R7$(),k.SpI(" ",k.bMT(6,5,"save.apply")," ")}}let dt=(()=>{class Bt{constructor(V,de,ge,Ft){this.loggingService=V,this.translateService=de,this.dialogData=ge,this.dialogRef=Ft,this.settingData={},this.featureDisplayOptions=[],this.featureDisplayOptionsGlobal=[],this.selectedFeatureValueArray=[],this.patt=new RegExp(Y.M5),this.cudaGpusValue=U.CudaGpusValue,this.isDirty=!1,this.showBtn=!0,this.profileSelectOption={checked:!0,disabled:!1,possibleValue:"manage3dSettings.useProfile"},this.programSelectOption={checked:!1,disabled:!1,possibleValue:"manage3dSettings.useGpus"},this.logger=this.loggingService.getLogger("nvapp/FeatureCudagpuUIComponent"),this.settingData=this.dialogData.settingData,this.globalTransVal=this.dialogData.globalTransVal}ngOnInit(){this.initCudaGpuVars()}initCudaGpuVars(){this.selectedFeatureValue=this.settingData.featureCurrentValue,this.selectedFeatureValueArray=this.selectedFeatureValue.toString().split(";"),this.featureDisplayOptions=[],this.settingData.isGlobalContext||this.updateProfileOptions(),this.getGpuListToSelectFrom(this.settingData,!1).forEach(de=>{const ge={possibleValue:de,checked:!1,disabled:!1};this.selectedFeatureValue===U.DefaultGlobalEnum.UseGlobalValue?(ge.checked=!1,ge.disabled=!0):this.selectedFeatureValue===U.CudaGpusValue.NVCPLAPI_VALUE_EXCLUDED_CUDA_GPUS_NONE?ge.checked=!0:this.selectedFeatureValue===U.CudaGpusValue.NVCPLAPI_VALUE_EXCLUDED_CUDA_GPUS_ALL?ge.checked=!1:this.selectedFeatureValueArray.includes(de)||(ge.checked=!0),this.featureDisplayOptions.push(ge)})}getGpuListToSelectFrom(V,de){return de?V.featureGlobalValue.featureEnumKeys.filter(ge=>this.patt.test(ge)).map(ge=>V.featureEnum[ge]).reverse():V.featureEnumKeys.filter(ge=>this.patt.test(ge)).map(ge=>V.featureEnum[ge]).reverse()}updateProgramOptions(){this.userSelectionData.selectedKeyOrValue===U.DefaultGlobalEnum.UseGlobalValue.toString()&&this.featureDisplayOptions.forEach((V,de)=>{this.featureDisplayOptions[de].disabled=!0})}updateProfileOptions(){this.selectedFeatureValue===U.DefaultGlobalEnum.UseGlobalValue?(this.profileSelectOption.checked=!0,this.programSelectOption.checked=!1):(this.profileSelectOption.checked=!1,this.programSelectOption.checked=!0);const V=this.settingData.featureGlobalValue.CudaGpusValue.toString().split(";");this.getGpuListToSelectFrom(this.settingData,!0).forEach(ge=>{const Ft={possibleValue:ge,checked:!1,disabled:!0};this.settingData.featureGlobalValue.CudaGpusValue===U.CudaGpusValue.NVCPLAPI_VALUE_EXCLUDED_CUDA_GPUS_NONE?Ft.checked=!0:this.settingData.featureGlobalValue.CudaGpusValue===U.CudaGpusValue.NVCPLAPI_VALUE_EXCLUDED_CUDA_GPUS_ALL?Ft.checked=!1:V.includes(ge)||(Ft.checked=!0),this.featureDisplayOptionsGlobal.push(Ft)})}deriveFinalCudaGpuVal(V,de){this.featureDisplayOptions[de].checked=!V.checked,this.updateUserSelectedOption(!1)}updateUserSelectedOption(V){this.userSelectionData={selectedKeyOrValue:"",displayValue:""};let de="",ge=0;this.featureDisplayOptions.forEach((Ft,Wt)=>{Ft.checked&&(ge+=1),V&&(Ft.disabled=!1)}),0===ge?(this.userSelectionData.selectedKeyOrValue="NVCPLAPI_VALUE_EXCLUDED_CUDA_GPUS_ALL",this.userSelectionData.displayValue=this.translateService.instant("manage3dSettings.CudaGpus.values.NVCPLAPI_VALUE_EXCLUDED_CUDA_GPUS_ALL")):ge===this.featureDisplayOptions.length?(this.userSelectionData.displayValue=1===ge?this.concatGpuStrings(this.featureDisplayOptions,!0):this.translateService.instant("manage3dSettings.CudaGpus.values.NVCPLAPI_VALUE_EXCLUDED_CUDA_GPUS_NONE"),this.userSelectionData.selectedKeyOrValue="NVCPLAPI_VALUE_EXCLUDED_CUDA_GPUS_NONE"):(de=this.concatGpuStrings(this.featureDisplayOptions,!0),this.userSelectionData.selectedKeyOrValue=this.concatGpuStrings(this.featureDisplayOptions,!1),this.userSelectionData.displayValue=de),this.checkDirty()}concatGpuStrings(V,de){return V.filter(ge=>de?ge.checked:!ge.checked).map(ge=>ge.possibleValue).join(";")}updateUserSelectedForUseProfile(){this.userSelectionData={selectedKeyOrValue:U.DefaultGlobalEnum.UseGlobalValue.toString(),displayValue:this.translateService.instant("manage3dSettings.CudaGpus.values.UseGlobal")+" - "};let V="",de=0;this.featureDisplayOptionsGlobal.forEach((ge,Ft)=>{ge.checked&&(de+=1)}),0===de?this.userSelectionData.displayValue+=this.translateService.instant("manage3dSettings.CudaGpus.values.NVCPLAPI_VALUE_EXCLUDED_CUDA_GPUS_ALL"):de===this.featureDisplayOptionsGlobal.length?this.userSelectionData.displayValue+=1===de?this.concatGpuStrings(this.featureDisplayOptionsGlobal,!0):this.translateService.instant("manage3dSettings.CudaGpus.values.NVCPLAPI_VALUE_EXCLUDED_CUDA_GPUS_NONE"):(V=this.concatGpuStrings(this.featureDisplayOptionsGlobal,!0),this.userSelectionData.displayValue+=V)}onUseProfileSelection(V){this.profileSelectOption.checked=V,this.programSelectOption.checked=!V,V?(this.updateUserSelectedForUseProfile(),this.updateProgramOptions(),this.checkDirty()):this.updateUserSelectedOption(!0)}checkDirty(){this.isDirty=this.selectedFeatureValue!==U.CudaGpusValue[this.userSelectionData.selectedKeyOrValue]&&this.selectedFeatureValue.toString()!==this.userSelectionData.selectedKeyOrValue}onCancelClick(){this.dialogRef.close(!1)}onApplyClick(){this.dialogRef.close(this.userSelectionData)}static{this.\u0275fac=function(de){return new(de||Bt)(k.rXU(X.J6),k.rXU(q.c$),k.rXU(G.Vh),k.rXU(G.CP))}}static{this.\u0275cmp=k.VBU({type:Bt,selectors:[["nv-app-feature-cudagpu-ui"]],decls:9,vars:6,consts:[["programCudaOptions",""],[1,"common-modal"],["mat-dialog-title","",1,"font-header6","title"],[1,"content","cuda-content"],[4,"ngIf","ngIfElse"],["align","end","class","actions",4,"ngIf"],["class","profile-cuda-container",4,"ngFor","ngForOf"],[1,"profile-cuda-container"],[3,"change","checked","nvAppAnnouncer","associatedMessage"],[1,"font-body2"],[1,"option-content-container",3,"change","disabled","checked","value"],[1,"option-content"],[1,"font-body2","option-text",3,"ngClass"],["class","program-cuda-container",4,"ngFor","ngForOf"],[1,"option-content-container","program-select-section",3,"change","disabled","checked","value"],[1,"program-cuda-container"],[3,"checked","disabled","nvAppAnnouncer","associatedMessage"],[3,"change","checked","disabled","nvAppAnnouncer","associatedMessage"],["align","end",1,"actions"],["mat-button","",1,"cancel-button","font-button2",3,"click"],["mat-raised-button","",1,"apply-button","font-button2","mat-accent",3,"click","disabled"]],template:function(de,ge){if(1&de&&(k.j41(0,"div",1)(1,"p",2),k.EFF(2),k.nI1(3,"translate"),k.k0s(),k.j41(4,"mat-dialog-content",3),k.DNE(5,Je,2,1,"ng-container",4)(6,Ve,13,16,"ng-template",null,0,k.C5r),k.k0s(),k.DNE(8,$e,7,7,"mat-dialog-actions",5),k.k0s()),2&de){const Ft=k.sdS(7);k.R7$(2),k.SpI(" ",k.bMT(3,4,"manage3dSettings."+(null==ge.settingData?null:ge.settingData.featureName)+".name")," "),k.R7$(3),k.Y8G("ngIf",ge.settingData.isGlobalContext)("ngIfElse",Ft),k.R7$(3),k.Y8G("ngIf",ge.showBtn)}},dependencies:[Q.YU,Q.Sq,Q.bT,ce.iV,te.So,G.BI,G.Yi,G.E7,Ee.Aq,it.tG,Fe.nM,Qe.VT,Qe._g,ct.PW,Ge.L,q.D9],styles:[".profile-cuda-container[_ngcontent-%COMP%]{padding:8px 16px 0}.program-cuda-container[_ngcontent-%COMP%]{padding:0 24px}.program-select-section[_ngcontent-%COMP%]{margin-top:12px}.option-content[_ngcontent-%COMP%]{padding-left:12px}.mat-mdc-radio-group[_ngcontent-%COMP%]{padding:8px 16px 0;display:flex;flex-direction:column;align-items:flex-start}"]})}}return Bt})();var Pe=s(5428);function J(Bt,Le){if(1&Bt&&(k.j41(0,"div",7),k.EFF(1),k.nI1(2,"translate"),k.k0s()),2&Bt){const V=k.XpG();k.R7$(),k.SpI(" ",k.bMT(2,1,"manage3dSettings."+(null==V.settingData?null:V.settingData.featureName)+".values.DLScalingHeader")," ")}}function vt(Bt,Le){if(1&Bt){const V=k.RV6();k.j41(0,"div",12)(1,"mat-checkbox",13),k.nI1(2,"translate"),k.bIt("change",function(){const ge=k.eBV(V).index,Ft=k.XpG();return k.Njj(Ft.updateSelectedDSRFactor(ge,!0))}),k.j41(3,"div",14),k.EFF(4),k.k0s()()()}if(2&Bt){const V=Le.$implicit,de=k.XpG();k.R7$(),k.Y8G("checked",V.isSelected)("disabled",V.isDisabled)("nvAppAnnouncer",V.isSelected)("associatedMessage","manage3dSettings."+(null==de.settingData?null:de.settingData.featureName)+".values.DLScalingHeader"),k.BMQ("aria-label",k.bMT(2,6,"manage3dSettings."+(null==de.settingData?null:de.settingData.featureName)+".values.DLScalingHeader")),k.R7$(3),k.SpI(" ",V.factorDisplayValue+" ("+V.resolution+")"," ")}}function ve(Bt,Le){if(1&Bt&&(k.j41(0,"div",15),k.EFF(1),k.nI1(2,"translate"),k.k0s()),2&Bt){const V=k.XpG();k.R7$(),k.SpI(" ",k.bMT(2,1,"manage3dSettings."+(null==V.settingData?null:V.settingData.featureName)+".values.LegacyScalingHeader")," ")}}function ue(Bt,Le){if(1&Bt){const V=k.RV6();k.j41(0,"div",12)(1,"mat-checkbox",13),k.nI1(2,"translate"),k.bIt("change",function(){const ge=k.eBV(V).index,Ft=k.XpG();return k.Njj(Ft.updateSelectedDSRFactor(ge,!1))}),k.j41(3,"div",14),k.EFF(4),k.k0s()()()}if(2&Bt){const V=Le.$implicit,de=k.XpG();k.R7$(),k.Y8G("checked",V.isSelected)("disabled",V.isDisabled)("nvAppAnnouncer",V.isSelected)("associatedMessage","manage3dSettings."+(null==de.settingData?null:de.settingData.featureName)+".values.LegacyScalingHeader"),k.BMQ("aria-label",k.bMT(2,6,"manage3dSettings."+(null==de.settingData?null:de.settingData.featureName)+".values.LegacyScalingHeader")),k.R7$(3),k.SpI(" ",V.factorDisplayValue+" ("+V.resolution+")"," ")}}function et(Bt,Le){if(1&Bt){const V=k.RV6();k.j41(0,"mat-dialog-actions",16)(1,"button",17),k.bIt("click",function(){k.eBV(V);const ge=k.XpG();return k.Njj(ge.onCancelClick())}),k.EFF(2),k.nI1(3,"translate"),k.k0s(),k.j41(4,"button",18),k.bIt("click",function(){k.eBV(V);const ge=k.XpG();return k.Njj(ge.onApplyClick())}),k.EFF(5),k.nI1(6,"translate"),k.k0s()()}if(2&Bt){const V=k.XpG();k.R7$(2),k.SpI(" ",k.bMT(3,3,"save.cancel")," "),k.R7$(2),k.Y8G("disabled",!V.isDirty),k.R7$(),k.SpI(" ",k.bMT(6,5,"save.apply")," ")}}let se=(()=>{class Bt{constructor(V,de,ge,Ft){this.loggingService=V,this.dialogData=de,this.dialogRef=ge,this.manage3dSettingsUtilService=Ft,this.settingData={},this.selectedFeatureJsonInit={},this.selectedFeatureJsonPossibleValues={},this.selectedFeatureJsonUpdated={},this.dLDSRFactors=[],this.legacyDSRFactors=[],this.patt=new RegExp(Y.M5),this.userSelectionData={},this.isDirty=!1,this.showBtn=!0,this.isSliderDisabled=!1,this.minValue=Y.$F.minValue,this.maxValue=Y.$F.maxValue,this.stepValue=Y.$F.stepValue,this.sliderValue=Y.$F.defaultValue,this.logger=this.loggingService.getLogger("nvapp/FeatureDSRFactorsComponent"),this.settingData=this.dialogData.settingData,this.globalTransVal=this.dialogData.globalTransVal}ngOnInit(){this.initDSRVars()}initDSRVars(){this.selectedFeatureValue=this.settingData.featureCurrentValue;const V=this.settingData.featureEnumKeys.find(de=>this.patt.test(de));this.selectedFeatureJsonInit=JSON.parse(this.selectedFeatureValue.toString()),this.selectedFeatureJsonPossibleValues=JSON.parse(this.settingData.featureEnum[V]),this.sliderValue=this.selectedFeatureJsonInit?.smoothness??this.sliderValue,this.dLDSRFactors=this.selectedFeatureJsonPossibleValues.factorInformation.filter(de=>de.isDLDSRFactor).map(de=>this.getFactorDisplayInfo(de)),this.legacyDSRFactors=this.selectedFeatureJsonPossibleValues.factorInformation.filter(de=>!de.isDLDSRFactor).map(de=>this.getFactorDisplayInfo(de)),this.updateSliderDisable()}getFactorDisplayInfo(V){const de=this.selectedFeatureJsonInit.factorInformation.find(Ft=>Ft.factorValue===V.factorValue&&Ft.isDLDSRFactor===V.isDLDSRFactor),ge=this.selectedFeatureJsonInit.factorInformation.find(Ft=>Ft.factorValue===V.factorValue&&Ft.isDLDSRFactor===!V.isDLDSRFactor);return V.isSelected=!!de,{...V,factorDisplayValue:Y.UY[V.factorValue],isDisabled:!!ge}}onSliderValueChanged(V){this.updateSelectedDisplayValue()}updateSliderDisable(){this.isSliderDisabled=0===[...this.dLDSRFactors,...this.legacyDSRFactors].filter(V=>V.isSelected).length,this.isSliderDisabled&&(this.sliderValue=Y.$F.defaultValue)}updateSelectedDisplayValue(){this.selectedFeatureJsonUpdated.smoothness=this.sliderValue,this.selectedFeatureJsonUpdated.factorInformation=this.legacyDSRFactors.concat(this.dLDSRFactors).filter(V=>V.isSelected).map(V=>({factorValue:V.factorValue,isDLDSRFactor:V.isDLDSRFactor,isSelected:V.isSelected,resolution:V.resolution})),this.updateSliderDisable(),this.selectedFeatureDisplayValue=this.manage3dSettingsUtilService.getDSRDisplayText(this.settingData.featureName,JSON.stringify(this.selectedFeatureJsonUpdated)),this.checkDirty(),this.userSelectionData.displayValue=this.selectedFeatureDisplayValue,this.userSelectionData.selectedKeyOrValue=JSON.stringify(this.selectedFeatureJsonUpdated)}updateSelectedDSRFactor(V,de){if(de){this.dLDSRFactors[V].isSelected=!this.dLDSRFactors[V].isSelected;const ge=this.legacyDSRFactors.findIndex(Ft=>Ft.factorValue===this.dLDSRFactors[V].factorValue);ge>=0&&(this.legacyDSRFactors[ge].isDisabled=this.dLDSRFactors[V].isSelected,this.legacyDSRFactors[ge].isDisabled&&(this.legacyDSRFactors[ge].isSelected=!1))}else{this.legacyDSRFactors[V].isSelected=!this.legacyDSRFactors[V].isSelected;const ge=this.dLDSRFactors.findIndex(Ft=>Ft.factorValue===this.legacyDSRFactors[V].factorValue);ge>=0&&(this.dLDSRFactors[ge].isDisabled=this.legacyDSRFactors[V].isSelected,this.dLDSRFactors[ge].isDisabled&&(this.dLDSRFactors[ge].isSelected=!1))}this.updateSelectedDisplayValue()}checkDirty(){this.isDirty=!(0,B.isEqual)(this.selectedFeatureJsonUpdated,this.selectedFeatureJsonInit)}onCancelClick(){this.dialogRef.close(!1)}onApplyClick(){this.dialogRef.close(this.userSelectionData)}static{this.\u0275fac=function(de){return new(de||Bt)(k.rXU(X.J6),k.rXU(G.Vh),k.rXU(G.CP),k.rXU(Ut))}}static{this.\u0275cmp=k.VBU({type:Bt,selectors:[["nv-app-feature-dsr-factors"]],decls:18,vars:21,consts:[[1,"common-modal"],["mat-dialog-title","",1,"font-header6","title"],[1,"dsr-content","content"],["class","font-sub1 font-color-primary",4,"ngIf"],["class","profile-dsr-container",4,"ngFor","ngForOf"],["class","font-sub1 font-color-primary legacy-header",4,"ngIf"],[1,"content-details"],[1,"font-sub1","font-color-primary"],[1,"slider-content"],[1,"smoothness-slider"],["formatTextAs","Integer","valueEntry","true",1,"common-slider",3,"valueChange","value","min","max","step","disabled","nvAppAnnouncer","associatedMessage"],["align","end","class","actions",4,"ngIf"],[1,"profile-dsr-container"],[3,"change","checked","disabled","nvAppAnnouncer","associatedMessage"],[1,"font-body2"],[1,"font-sub1","font-color-primary","legacy-header"],["align","end",1,"actions"],["mat-button","",1,"cancel-button","font-button2",3,"click"],["mat-raised-button","",1,"apply-button","font-button2","mat-accent",3,"click","disabled"]],template:function(de,ge){1&de&&(k.j41(0,"div",0)(1,"p",1),k.EFF(2),k.nI1(3,"translate"),k.k0s(),k.j41(4,"mat-dialog-content",2),k.DNE(5,J,3,3,"div",3)(6,vt,5,8,"div",4)(7,ve,3,3,"div",5)(8,ue,5,8,"div",4),k.j41(9,"div",6)(10,"div",7),k.EFF(11),k.nI1(12,"translate"),k.k0s(),k.j41(13,"div",8)(14,"div",9)(15,"nv-hig-slider",10),k.nI1(16,"translate"),k.mxI("valueChange",function(Wt){return k.DH7(ge.sliderValue,Wt)||(ge.sliderValue=Wt),Wt}),k.bIt("valueChange",function(Wt){return ge.onSliderValueChanged(Wt)}),k.k0s()()()()(),k.DNE(17,et,7,7,"mat-dialog-actions",11),k.k0s()),2&de&&(k.R7$(2),k.SpI(" ",k.bMT(3,15,"manage3dSettings."+(null==ge.settingData?null:ge.settingData.featureName)+".name")," "),k.R7$(3),k.Y8G("ngIf",ge.dLDSRFactors.length>0),k.R7$(),k.Y8G("ngForOf",ge.dLDSRFactors),k.R7$(),k.Y8G("ngIf",ge.legacyDSRFactors.length>0),k.R7$(),k.Y8G("ngForOf",ge.legacyDSRFactors),k.R7$(3),k.JRh(k.bMT(12,17,"manage3dSettings.DSRSmoothness.name")),k.R7$(4),k.R50("value",ge.sliderValue),k.Y8G("min",ge.minValue)("max",ge.maxValue)("step",ge.stepValue)("disabled",ge.isSliderDisabled)("nvAppAnnouncer",ge.sliderValue)("associatedMessage","manage3dSettings.DSRSmoothness.name"),k.BMQ("aria-label",k.bMT(16,19,"manage3dSettings.DSRSmoothness.name")),k.R7$(2),k.Y8G("ngIf",ge.showBtn))},dependencies:[Q.Sq,Q.bT,ce.iV,te.So,G.BI,G.Yi,G.E7,Pe.t,Ee.Aq,it.tG,Fe.nM,Ge.L,q.D9],styles:[".content-details[_ngcontent-%COMP%]{padding:10px 0 0}.common-modal[_ngcontent-%COMP%] .dsr-content[_ngcontent-%COMP%]{padding-left:24px}.common-modal[_ngcontent-%COMP%] .legacy-header[_ngcontent-%COMP%]{padding-top:10px}.profile-dsr-container[_ngcontent-%COMP%]{margin-left:4px}.option-content-container[_ngcontent-%COMP%]:nth-of-type(2){margin-top:16px}.slider-content[_ngcontent-%COMP%]{margin-left:16px;margin-right:16px}.slider-indicators[_ngcontent-%COMP%] .max-value[_ngcontent-%COMP%]{margin-right:60px}mat-checkbox[_ngcontent-%COMP%]{line-height:48px}.smoothness-slider[_ngcontent-%COMP%]{display:flex}.dsr-content[_ngcontent-%COMP%]{margin-top:14px}","[_ngcontent-%COMP%]:root{--hig-marquee-ratio: .3229;--hig-marquee-parent-container-width: 100vw;--hig-marquee-container-height: calc(var(--hig-marquee-ratio) * 100vw);--hig-marquee-corner-column: 56px;--hig-marquee-text-column: 14vw;--hig-marquee-padded-image-first-row: calc(var(--hig-marquee-ratio) * (100vw - var(--hig-marquee-corner-column) - var(--hig-marquee-text-column)));--hig-marquee-padded-image-second-row: calc(var(--hig-marquee-container-height) - var(--hig-marquee-padded-image-first-row))}.ellipsified-text-with-tooltip[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden}.ellipsified-text-with-tooltip.multi-line-ellipsis[_ngcontent-%COMP%]{display:-webkit-box;-webkit-box-orient:vertical;white-space:wrap}.ellipsified-text-with-tooltip.single-line-ellipsis[_ngcontent-%COMP%]{white-space:nowrap}[_ngcontent-%COMP%]:root{--rwd-column-count: 4;--rwd-gutter-count: 3 ;--rwd-gutter-size: 8px;--rwd-container-side-spacing: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 3 ) / 4);--rwd-sidebar-width: 0px;--rwd-container-width: 100vw}@media screen and (min-width: 480px){[_ngcontent-%COMP%]:root{--rwd-column-count: 6;--rwd-gutter-count: 5 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 5 ) / 6)}}@media screen and (min-width: 720px){[_ngcontent-%COMP%]:root{--rwd-column-count: 8;--rwd-gutter-count: 7 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 7 ) / 8)}}@media screen and (min-width: 960px){[_ngcontent-%COMP%]:root{--rwd-column-count: 12;--rwd-gutter-count: 11 ;--rwd-container-side-spacing: 24px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 8px * 11 ) / 12)}}@media screen and (min-width: 1440px){[_ngcontent-%COMP%]:root{--rwd-gutter-size: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 16px * 11 ) / 12)}}.ellipsis[_ngcontent-%COMP%], .feature-expansion-panel-container[_ngcontent-%COMP%] .setting-value[_ngcontent-%COMP%], .feature-expansion-panel-container[_ngcontent-%COMP%] .header-title-text[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden}.feature-expansion-panel-container[_ngcontent-%COMP%] .mat-menu-header[_ngcontent-%COMP%]{height:48px;background-color:var(--primary-900);padding:0 16px}.feature-expansion-panel-container[_ngcontent-%COMP%] .mat-menu-header[_ngcontent-%COMP%]:hover{background-color:var(--feature-expansion-panel-menu-header-hover-bg-color)}.feature-expansion-panel-container[_ngcontent-%COMP%] .setting-drop-down[_ngcontent-%COMP%]{display:flex;align-items:center;height:inherit;flex:1;padding:0 8px}.feature-expansion-panel-container[_ngcontent-%COMP%] .setting-value[_ngcontent-%COMP%]{white-space:nowrap;width:100%;text-align:left}.feature-expansion-panel-container[_ngcontent-%COMP%] .setting-value.is-loading[_ngcontent-%COMP%]{color:var(--primary-500)}.feature-expansion-panel-container[_ngcontent-%COMP%] .header-title-text[_ngcontent-%COMP%]{white-space:nowrap;width:auto;text-align:left}.feature-expansion-panel-container[_ngcontent-%COMP%] .loading-indicator-container[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:inherit;position:relative}.feature-expansion-panel-container[_ngcontent-%COMP%] .loading-indicator-container[_ngcontent-%COMP%] mat-progress-spinner[_ngcontent-%COMP%]{position:absolute}.feature-expansion-panel-container[_ngcontent-%COMP%] .color-unset[_ngcontent-%COMP%]{color:unset}.feature-expansion-panel-container[_ngcontent-%COMP%]:focus{outline-offset:-2px}"]})}}return Bt})();var Ce=s(25864),be=s(12949),rt=s(72639),me=s(52238),le=s(56106),Xe=s(51635),Se=s(54504);const fe=(Bt,Le)=>({min:Bt,max:Le});function Ne(Bt,Le){if(1&Bt&&(k.qex(0),k.j41(1,"mat-option",19),k.EFF(2),k.nI1(3,"translate"),k.k0s(),k.bVm()),2&Bt){const V=Le.$implicit;k.R7$(),k.Y8G("value",V[0]),k.R7$(),k.SpI(" ",k.bMT(3,2,V[1])," ")}}function ye(Bt,Le){if(1&Bt){const V=k.RV6();k.j41(0,"button",20),k.bIt("click",function(){k.eBV(V);const ge=k.XpG();return k.Njj(ge.onCancelClick())}),k.EFF(1),k.nI1(2,"translate"),k.k0s()}2&Bt&&(k.R7$(),k.SpI(" ",k.bMT(2,1,"save.cancel")," "))}function Ot(Bt,Le){if(1&Bt){const V=k.RV6();k.j41(0,"button",21),k.bIt("click",function(){k.eBV(V);const ge=k.XpG();return k.Njj(ge.onApplyClick())}),k.EFF(1),k.nI1(2,"translate"),k.k0s()}if(2&Bt){const V=k.XpG();k.Y8G("disabled",!V.isDirty),k.R7$(),k.SpI(" ",k.bMT(2,2,"save.apply")," ")}}let sn=(()=>{class Bt{constructor(V,de,ge,Ft,Wt){this.loggingService=V,this.dlssSettingsUtilService=de,this.dialogData=ge,this.dialogRef=Ft,this.translateService=Wt,this.settingData={},this.minValue=rt.wO.minValue,this.maxValue=rt.wO.maxValue,this.stepValue=rt.wO.stepValue,this.isDirty=!1,this.scalingDisabled=!1,this.isDefaultValue=!1,this.modeValidationMessage=rt.kv,this.isGlobalContext=!1,this.scalingRatioMap=rt.TV,this.textValueValidation="",this.performanceModesMap=new Map(rt.mJ),this.logger=this.loggingService.getLogger("nvapp/FeatureDLSSSuperResolutionModalComponent"),this.settingData=this.dialogData.settingData,this.isGlobalContext=this.settingData.isGlobalContext}ngOnInit(){this.dlSSSRCurrentValue=JSON.parse(this.settingData.featureCurrentValue.toString()),this.isGlobalContext||(this.dlSSSRGlobalValue=JSON.parse(this.settingData.featureGlobalValue[this.settingData.featureName+Y.lz])),this.performanceModes=Array.from(this.processModes().entries()),this.performanceModeValue=this.dlSSSRCurrentValue.useGlobal?U.DefaultGlobalEnum.UseGlobalValue:this.dlSSSRCurrentValue.enabled?this.dlSSSRCurrentValue.performanceModeOverride:Y.VJ.Default,this.performanceModeSelectedValue=this.performanceModesMap.get(this.performanceModeValue),this.isDefaultValue=this.isDefault(),this.updateShowScaling(),setTimeout(()=>{this.showBtn=!0},0)}performanceModeChanged(){this.updateShowScaling(),this.isDefaultValue=this.isDefault(),this.performanceModeSelectedValue=this.performanceModesMap.get(this.performanceModeValue),this.updateFeatureState(this.isDefaultValue?0:+this.scalingValue,this.performanceModeValue)}processModes(){const V=+this.dialogData.driverVersion,de=+rt.i7,ge=[Y.VJ.Custom];for(const[Ft,Wt]of this.performanceModesMap)this.dlssSettingsUtilService.shouldExcludeCustomMode(Ft,ge,V,de)?this.performanceModesMap.delete(Ft):this.dlssSettingsUtilService.isUseGlobalKey(Ft)?this.handleUseGlobalOption(Ft):this.dlssSettingsUtilService.isDefaultKey(Ft)&&this.handleDefaultOption(Ft);return this.performanceModesMap}handleUseGlobalOption(V){if(this.dlssSettingsUtilService.shouldRemoveUseGlobalOption(this.isGlobalContext))this.performanceModesMap.delete(V);else if(this.dlssSettingsUtilService.shouldShowUseGlobalWithDetails(this.isGlobalContext)){const de=this.dlssSettingsUtilService.formatUseGlobalDisplayText(this.performanceModesMap,this.dlSSSRGlobalValue.performanceModeOverride);this.performanceModesMap.set(V,de)}}handleDefaultOption(V){if(this.dlssSettingsUtilService.shouldShowDefaultWithSpecialText(this.isGlobalContext)){const de=this.dlssSettingsUtilService.formatDefaultDisplayText();this.performanceModesMap.set(V,de)}}isDefault(){return this.dlssSettingsUtilService.isDefaultValue(this.performanceModeValue)}onSliderValueChanged(){this.resetValues(),this.updateFeatureState(+this.scalingValue,this.performanceModeValue)}updateShowScaling(){const V=Y.VJ.Custom===this.performanceModeValue;this.scalingDisabled=!V;const de=Y.VJ.Custom===this.dlSSSRCurrentValue.performanceModeOverride;this.scalingValue=this.performanceModeValue===U.DefaultGlobalEnum.UseGlobalValue?this.dlSSSRGlobalValue.scaling.toString():V&&de?this.dlSSSRCurrentValue.scaling.toString():this.scalingRatioMap.get(this.performanceModeValue)}onCancelClick(){this.dialogRef.close(!1)}onApplyClick(){this.dialogRef.close(this.userSelectionData)}onTextBlur(){this.resetValues()}resetValues(){+this.scalingValue<+this.minValue?this.scalingValue=this.minValue:+this.scalingValue>+this.maxValue&&(this.scalingValue=this.maxValue)}textInput(V){const ge=V.target;ge&&!/^-?\d*$/.test(ge.value)?ge.value=this.textValueValidation:this.textValueValidation=ge.value,V.stopImmediatePropagation()}updateFeatureState(V,de){const ge=this.dlSSSRCurrentValue;let Ft={};de===U.DefaultGlobalEnum.UseGlobalValue?Ft={...ge,useGlobal:!0}:(Ft.enabled=ge.enabled?ge.enabled:de!==Y.VJ.Default,Ft.performanceModeOverride=de,Ft.scaling=V,Ft.modelOverride=ge.modelOverride,Ft.supportState=ge.supportState,this.isGlobalContext||(Ft.useGlobal=!1)),this.isDirty=!(0,B.isEqual)(Ft,ge),this.userSelectionData={selectedKeyOrValue:JSON.stringify(Ft),displayValue:this.dlssSettingsUtilService.getSROverrideDisplayValue(Ft,this.settingData.constraints,this.settingData.localApplication,this.settingData.isGlobalContext)}}static{this.\u0275fac=function(de){return new(de||Bt)(k.rXU(X.J6),k.rXU(me.$),k.rXU(G.Vh),k.rXU(G.CP),k.rXU(q.c$))}}static{this.\u0275cmp=k.VBU({type:Bt,selectors:[["nv-app-feature-dlss-super-resolution-modal"]],features:[k.Jv_([{provide:be.JO,useValue:{overlayPanelClass:"nvapp-setting-select-panel-overlay"}}])],decls:33,vars:36,consts:[[1,"common-modal"],["mat-dialog-title","",1,"font-header6","title"],[1,"content"],[1,"performance-modes"],[1,"font-body2","performance-mode-title"],["panelClass","mat-select-font-body2","disableOptionCentering","true",1,"performance-mode-select","mat-mdc-select-dark-background","mat-select-font-body2",3,"ngModelChange","selectionChange","ngModel"],[1,"dropdown-trigger"],["nvEllipsifiedTextWithTooltip","","tooltipClass","mat-tooltip-font-body3"],[4,"ngFor","ngForOf"],[1,"downscale-resolution-slider"],[1,"font-body2","slider-title"],[1,"text-entry-container"],[1,"input-text-container"],["type","text",1,"slider-text-entry","font-body2","geometry-rounded-md",3,"ngModelChange","change","input","blur","placeholder","disabled","ngModel"],[1,"font-body3","font-color-secondary",3,"ngClass"],[1,"percentage"],["align","end",1,"actions"],["mat-button","","class","cancel-button font-button2",3,"click",4,"ngIf"],["mat-raised-button","","class","apply-button font-button2 mat-accent",3,"disabled","click",4,"ngIf"],[1,"nvapp-mat-select-option","performance-mode-select-option",3,"value"],["mat-button","",1,"cancel-button","font-button2",3,"click"],["mat-raised-button","",1,"apply-button","font-button2","mat-accent",3,"click","disabled"]],template:function(de,ge){1&de&&(k.j41(0,"div",0)(1,"p",1),k.EFF(2),k.nI1(3,"translate"),k.k0s(),k.j41(4,"mat-dialog-content",2)(5,"div",3)(6,"span",4),k.EFF(7),k.nI1(8,"translate"),k.k0s(),k.j41(9,"mat-select",5),k.mxI("ngModelChange",function(Wt){return k.DH7(ge.performanceModeValue,Wt)||(ge.performanceModeValue=Wt),Wt}),k.bIt("selectionChange",function(){return ge.performanceModeChanged()}),k.j41(10,"mat-select-trigger",6)(11,"div",7),k.EFF(12),k.nI1(13,"translate"),k.k0s()(),k.DNE(14,Ne,4,4,"ng-container",8),k.k0s()(),k.j41(15,"div",9)(16,"div",10),k.EFF(17),k.nI1(18,"translate"),k.k0s(),k.j41(19,"div",11)(20,"div",12)(21,"input",13),k.nI1(22,"translate"),k.nI1(23,"translate"),k.nI1(24,"translate"),k.mxI("ngModelChange",function(Wt){return k.DH7(ge.scalingValue,Wt)||(ge.scalingValue=Wt),Wt}),k.bIt("change",function(){return ge.onSliderValueChanged()})("input",function(Wt){return ge.textInput(Wt)})("blur",function(){return ge.onTextBlur()}),k.k0s(),k.j41(25,"label",14),k.EFF(26),k.nI1(27,"translate"),k.k0s()(),k.j41(28,"div",15),k.EFF(29,"%"),k.k0s()()()(),k.j41(30,"mat-dialog-actions",16),k.DNE(31,ye,3,3,"button",17)(32,Ot,3,4,"button",18),k.k0s()()),2&de&&(k.R7$(2),k.SpI(" ",k.bMT(3,16,"manage3dSettings."+(null==ge.settingData?null:ge.settingData.featureName)+".name")," "),k.R7$(5),k.SpI(" ",k.bMT(8,18,"dlssOverrides.peformanceModeTitle")," "),k.R7$(2),k.R50("ngModel",ge.performanceModeValue),k.R7$(3),k.SpI(" ",k.bMT(13,20,ge.performanceModeSelectedValue)," "),k.R7$(2),k.Y8G("ngForOf",ge.performanceModes),k.R7$(3),k.SpI(" ",k.bMT(18,22,"dlssOverrides.scalingTitle")," "),k.R7$(4),k.qtP("aria-label","",k.bMT(22,24,"dlssOverrides.scalingTitle")," ",k.bMT(23,26,"dlssOverrides.scalingPlaceHolder"),""),k.FS9("placeholder",k.bMT(24,28,"dlssOverrides.scalingPlaceHolder")),k.Y8G("disabled",ge.scalingDisabled),k.R50("ngModel",ge.scalingValue),k.R7$(4),k.Y8G("ngClass",ge.scalingDisabled?"hide-validation-message":"show-validation-message"),k.R7$(),k.JRh(k.i5U(27,30,ge.modeValidationMessage,k.l_i(33,fe,ge.minValue,ge.maxValue))),k.R7$(5),k.Y8G("ngIf",ge.showBtn),k.R7$(),k.Y8G("ngIf",ge.showBtn))},dependencies:[Q.YU,Q.Sq,Q.bT,le.me,le.BC,le.vS,ce.iV,be.VO,be.$2,Xe.wT,G.BI,G.Yi,G.E7,Ee.Aq,Se.a,ct.PW,q.D9],styles:["[_ngcontent-%COMP%]:root{--hig-marquee-ratio: .3229;--hig-marquee-parent-container-width: 100vw;--hig-marquee-container-height: calc(var(--hig-marquee-ratio) * 100vw);--hig-marquee-corner-column: 56px;--hig-marquee-text-column: 14vw;--hig-marquee-padded-image-first-row: calc(var(--hig-marquee-ratio) * (100vw - var(--hig-marquee-corner-column) - var(--hig-marquee-text-column)));--hig-marquee-padded-image-second-row: calc(var(--hig-marquee-container-height) - var(--hig-marquee-padded-image-first-row))}.ellipsified-text-with-tooltip[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden}.ellipsified-text-with-tooltip.multi-line-ellipsis[_ngcontent-%COMP%]{display:-webkit-box;-webkit-box-orient:vertical;white-space:wrap}.ellipsified-text-with-tooltip.single-line-ellipsis[_ngcontent-%COMP%]{white-space:nowrap}[_ngcontent-%COMP%]:root{--rwd-column-count: 4;--rwd-gutter-count: 3 ;--rwd-gutter-size: 8px;--rwd-container-side-spacing: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 3 ) / 4);--rwd-sidebar-width: 0px;--rwd-container-width: 100vw}@media screen and (min-width: 480px){[_ngcontent-%COMP%]:root{--rwd-column-count: 6;--rwd-gutter-count: 5 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 5 ) / 6)}}@media screen and (min-width: 720px){[_ngcontent-%COMP%]:root{--rwd-column-count: 8;--rwd-gutter-count: 7 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 7 ) / 8)}}@media screen and (min-width: 960px){[_ngcontent-%COMP%]:root{--rwd-column-count: 12;--rwd-gutter-count: 11 ;--rwd-container-side-spacing: 24px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 8px * 11 ) / 12)}}@media screen and (min-width: 1440px){[_ngcontent-%COMP%]:root{--rwd-gutter-size: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 16px * 11 ) / 12)}}.ellipsis[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden}.performance-modes[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:0 24px 0 16px}.performance-modes[_ngcontent-%COMP%] .performance-mode-select[_ngcontent-%COMP%]{display:flex;width:310px;height:48px}.performance-modes[_ngcontent-%COMP%] .performance-mode-select[_ngcontent-%COMP%], .performance-modes[_ngcontent-%COMP%] .performance-mode-select-option[_ngcontent-%COMP%]{background:var(--primary-600)}.performance-modes[_ngcontent-%COMP%] .performance-mode-title[_ngcontent-%COMP%]{display:block;margin-bottom:16px}.performance-modes[_ngcontent-%COMP%] .mat-mdc-select.cdk-keyboard-focused[_ngcontent-%COMP%]{background-color:#ffffff3d}.performance-modes[_ngcontent-%COMP%] .mat-mdc-select[_ngcontent-%COMP%]:hover{background-color:#ffffff14}.performance-modes[_ngcontent-%COMP%] .mat-mdc-select[_ngcontent-%COMP%]:active{background-color:#ffffff52}.performance-modes[_ngcontent-%COMP%] .mat-mdc-select[_ngcontent-%COMP%]:focus{background-color:#ffffff3d}body.light-theme[_ngcontent-%COMP%] .performance-modes[_ngcontent-%COMP%] .mat-mdc-select.cdk-keyboard-focused[_ngcontent-%COMP%]{background-color:#0000003d}body.light-theme[_ngcontent-%COMP%] .performance-modes[_ngcontent-%COMP%] .mat-mdc-select[_ngcontent-%COMP%]:hover{background-color:#00000014}body.light-theme[_ngcontent-%COMP%] .performance-modes[_ngcontent-%COMP%] .mat-mdc-select[_ngcontent-%COMP%]:active{background-color:#00000052}body.light-theme[_ngcontent-%COMP%] .performance-modes[_ngcontent-%COMP%] .mat-mdc-select[_ngcontent-%COMP%]:focus{background-color:#0000003d}.downscale-resolution-slider[_ngcontent-%COMP%]{display:flex;flex-direction:column}.downscale-resolution-slider[_ngcontent-%COMP%] .slider-title[_ngcontent-%COMP%]{margin-bottom:16px}.model-override[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:24px 16px 0;margin-right:8px}.model-override[_ngcontent-%COMP%] .model-override-title[_ngcontent-%COMP%]{padding-bottom:16px}.content[_ngcontent-%COMP%], .text-entry-container[_ngcontent-%COMP%]{display:flex}.text-entry-container[_ngcontent-%COMP%] .input-text-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}.text-entry-container[_ngcontent-%COMP%] .percentage[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;height:48px}.text-entry-container[_ngcontent-%COMP%] .show-validation-message[_ngcontent-%COMP%]{visibility:visible}.text-entry-container[_ngcontent-%COMP%] .hide-validation-message[_ngcontent-%COMP%]{visibility:hidden}.slider-text-entry[_ngcontent-%COMP%]{width:148px;height:48px;box-sizing:border-box;background-color:var(--input-in-modal-background-color);border:var(--input-border);border-bottom:var(--input-border-bottom-width) solid var(--input-border-bottom-color);text-align:center;caret-color:var(--accent-500);padding:0;margin-right:16px;margin-bottom:5px}.slider-text-entry[_ngcontent-%COMP%]::selection{background-color:var(--accent-500)}.slider-text-entry[_ngcontent-%COMP%]:hover{background-color:var(--input-background-hover-color);border-bottom-color:var(--input-border-bottom-hover-color)}.slider-text-entry[_ngcontent-%COMP%]:focus, .mat-slider[_ngcontent-%COMP%]:not(.mat-slider-disabled).cdk-focused ~ .slider-text-entry[_ngcontent-%COMP%]{padding-bottom:1px;background-color:var(--input-background-focus-color);border-bottom-color:var(--input-border-bottom-focus-color);border-bottom-width:2px;outline:none}.slider-text-entry[_ngcontent-%COMP%]:disabled{background-color:var(--input-in-modal-background-color);opacity:.38}","[_ngcontent-%COMP%]:root{--hig-marquee-ratio: .3229;--hig-marquee-parent-container-width: 100vw;--hig-marquee-container-height: calc(var(--hig-marquee-ratio) * 100vw);--hig-marquee-corner-column: 56px;--hig-marquee-text-column: 14vw;--hig-marquee-padded-image-first-row: calc(var(--hig-marquee-ratio) * (100vw - var(--hig-marquee-corner-column) - var(--hig-marquee-text-column)));--hig-marquee-padded-image-second-row: calc(var(--hig-marquee-container-height) - var(--hig-marquee-padded-image-first-row))}.ellipsified-text-with-tooltip[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden}.ellipsified-text-with-tooltip.multi-line-ellipsis[_ngcontent-%COMP%]{display:-webkit-box;-webkit-box-orient:vertical;white-space:wrap}.ellipsified-text-with-tooltip.single-line-ellipsis[_ngcontent-%COMP%]{white-space:nowrap}[_ngcontent-%COMP%]:root{--rwd-column-count: 4;--rwd-gutter-count: 3 ;--rwd-gutter-size: 8px;--rwd-container-side-spacing: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 3 ) / 4);--rwd-sidebar-width: 0px;--rwd-container-width: 100vw}@media screen and (min-width: 480px){[_ngcontent-%COMP%]:root{--rwd-column-count: 6;--rwd-gutter-count: 5 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 5 ) / 6)}}@media screen and (min-width: 720px){[_ngcontent-%COMP%]:root{--rwd-column-count: 8;--rwd-gutter-count: 7 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 7 ) / 8)}}@media screen and (min-width: 960px){[_ngcontent-%COMP%]:root{--rwd-column-count: 12;--rwd-gutter-count: 11 ;--rwd-container-side-spacing: 24px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 8px * 11 ) / 12)}}@media screen and (min-width: 1440px){[_ngcontent-%COMP%]:root{--rwd-gutter-size: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 16px * 11 ) / 12)}}.ellipsis[_ngcontent-%COMP%], .feature-expansion-panel-container[_ngcontent-%COMP%] .setting-value[_ngcontent-%COMP%], .feature-expansion-panel-container[_ngcontent-%COMP%] .header-title-text[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden}.feature-expansion-panel-container[_ngcontent-%COMP%] .mat-menu-header[_ngcontent-%COMP%]{height:48px;background-color:var(--primary-900);padding:0 16px}.feature-expansion-panel-container[_ngcontent-%COMP%] .mat-menu-header[_ngcontent-%COMP%]:hover{background-color:var(--feature-expansion-panel-menu-header-hover-bg-color)}.feature-expansion-panel-container[_ngcontent-%COMP%] .setting-drop-down[_ngcontent-%COMP%]{display:flex;align-items:center;height:inherit;flex:1;padding:0 8px}.feature-expansion-panel-container[_ngcontent-%COMP%] .setting-value[_ngcontent-%COMP%]{white-space:nowrap;width:100%;text-align:left}.feature-expansion-panel-container[_ngcontent-%COMP%] .setting-value.is-loading[_ngcontent-%COMP%]{color:var(--primary-500)}.feature-expansion-panel-container[_ngcontent-%COMP%] .header-title-text[_ngcontent-%COMP%]{white-space:nowrap;width:auto;text-align:left}.feature-expansion-panel-container[_ngcontent-%COMP%] .loading-indicator-container[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:inherit;position:relative}.feature-expansion-panel-container[_ngcontent-%COMP%] .loading-indicator-container[_ngcontent-%COMP%] mat-progress-spinner[_ngcontent-%COMP%]{position:absolute}.feature-expansion-panel-container[_ngcontent-%COMP%] .color-unset[_ngcontent-%COMP%]{color:unset}.feature-expansion-panel-container[_ngcontent-%COMP%]:focus{outline-offset:-2px}"]})}}return Bt})();var dn=s(28220),yn=s(26772),At=s(6953),Vt=s(29370);function Qt(Bt,Le){if(1&Bt&&(k.j41(0,"mat-option",18),k.EFF(1),k.k0s()),2&Bt){const V=Le.$implicit;k.Y8G("value",V),k.R7$(),k.SpI(" ",V.display," ")}}function Jt(Bt,Le){if(1&Bt){const V=k.RV6();k.qex(0),k.j41(1,"mat-checkbox",19),k.mxI("ngModelChange",function(ge){k.eBV(V);const Ft=k.XpG();return k.DH7(Ft.selectedProcessor.dedicateToPhysx,ge)||(Ft.selectedProcessor.dedicateToPhysx=ge),k.Njj(ge)}),k.bIt("change",function(ge){k.eBV(V);const Ft=k.XpG();return k.Njj(Ft.onDedicateToPhysxChange(ge))}),k.j41(2,"div",12),k.EFF(3),k.nI1(4,"translate"),k.k0s()(),k.bVm()}if(2&Bt){const V=k.XpG();k.R7$(),k.Y8G("disabled",V.dedicateCheckboxDisabled),k.R50("ngModel",V.selectedProcessor.dedicateToPhysx),k.Y8G("nvAppAnnouncer",V.selectedProcessor.dedicateToPhysx)("associatedMessage",V.selectedProcessor.display),k.R7$(2),k.SpI(" ",k.bMT(4,5,"manage3dSettings.PhysX.dedicateToPhysx")," ")}}let Zt=(()=>{class Bt{get gpuCount(){return this.physxOptions.filter(V=>{const de=V.value.toLowerCase();return!de.includes(At.Gk)&&!de.includes(At.DA)}).length}get showDedicateCheckbox(){return this.gpuCount>=2}get dedicateCheckboxDisabled(){const V=this.selectedProcessor?.value?.toLowerCase();return V===At.Gk||V===At.DA}constructor(V,de,ge,Ft){this.dialogRef=V,this.data=de,this.translateService=ge,this.loggingService=Ft,this.physxOptions=[],this.showIndicator=!1,this.infoMessage="",this.isDirty=!1,this.logger=this.loggingService.getLogger("nvapp/FeaturePhysxModalComponent"),this.initializePhysxOptions(),this.physxCurrentValue=JSON.parse(de?.settingData?.featureCurrentValue),this.buildState(),this.storeOriginalValues()}onCancel(){this.dialogRef.close()}onApply(){const de={selectedKeyOrValue:JSON.stringify({physXGpu:[{gpuName:this.selectedProcessor.value,dedicatedPhysX:this.selectedProcessor.dedicateToPhysx||!1}],physXIndicator:this.showIndicator}),displayValue:this.selectedProcessor.display};this.dialogRef.close(de)}onProcessorChange(V){this.selectedProcessor=V,this.logger.info("onProcessorChange",this.selectedProcessor),this.updateInfoMessage(),this.updateDirtyState()}onDedicateToPhysxChange(V){this.selectedProcessor.dedicateToPhysx=V.checked,V.checked&&this.physxOptions.forEach(de=>{de.value!==this.selectedProcessor.value&&(de.dedicateToPhysx=!1)}),this.updateDirtyState()}onShowIndicatorChange(V){this.showIndicator=V.checked,this.updateDirtyState()}buildState(){this.showIndicator=this.physxCurrentValue?.physXIndicator||!1,this.selectedProcessor=this.physxOptions.find(V=>V.value===this.physxCurrentValue?.physXGpu[0].gpuName)||this.physxOptions[0],this.selectedProcessor.dedicateToPhysx=this.physxCurrentValue?.physXGpu[0]?.dedicatedPhysX,this.updateInfoMessage()}initializePhysxOptions(){const V=this.data?.settingData?.featureEnum;if(V&&"object"==typeof V){this.physxOptions=[];let de=null,ge=null;const Ft=[];Object.entries(V).forEach(([Wt,Kt])=>{if("string"==typeof Kt){let cn=Kt;const En=Kt.toLowerCase();At.W6.has(En)&&(cn=this.translateService.instant(At.W6.get(En)));const kn={value:Kt,display:cn,dedicateToPhysx:this.getDedicatedPhysxDefault(Kt)};En.includes(At.Gk)?de=kn:En.includes(At.DA)?ge=kn:Ft.push(kn)}}),de&&this.physxOptions.push(de),this.physxOptions.push(...Ft),ge&&this.physxOptions.push(ge)}}getDedicatedPhysxDefault(V){const de=V.toLowerCase();return de.includes(At.Gk)||de.includes(At.DA),!1}updateInfoMessage(){this.infoMessage=this.selectedProcessor.value.toLowerCase()===At.Gk?this.translateService.instant("manage3dSettings.PhysX.infoMessage",{gpuName:this.physxCurrentValue?.recommendedGpu}):this.translateService.instant("manage3dSettings.PhysX.infoMessage",{gpuName:this.selectedProcessor.display})}storeOriginalValues(){this.originalSelectedProcessor=this.selectedProcessor?.value,this.originalDedicatedPhysX=this.selectedProcessor?.dedicateToPhysx||!1,this.originalShowIndicator=this.showIndicator}updateDirtyState(){const V=this.selectedProcessor?.value;this.isDirty=V!==this.originalSelectedProcessor||(this.selectedProcessor?.dedicateToPhysx||!1)!==this.originalDedicatedPhysX||this.showIndicator!==this.originalShowIndicator}static{this.\u0275fac=function(de){return new(de||Bt)(k.rXU(G.CP),k.rXU(G.Vh),k.rXU(q.c$),k.rXU(X.J6))}}static{this.\u0275cmp=k.VBU({type:Bt,selectors:[["nv-app-feature-physx-modal"]],decls:32,vars:29,consts:[["physxSelect",""],[1,"common-modal"],["mat-dialog-title","",1,"font-header6","title"],[1,"content","physx-content"],[1,"processor-select-field"],[1,"font-body2","font-color-primary"],["panelClass","mat-select-font-body2",1,"processor-select","model-select","mat-mdc-select-dark-background","mat-select-font-body2",3,"selectionChange","value"],[1,"dropdown-trigger","font-body2"],["nvEllipsifiedTextWithTooltip","","tooltipClass","mat-tooltip-font-body3"],[3,"value",4,"ngFor","ngForOf"],[4,"ngIf"],[1,"indicator-checkbox","font-color-secondary",3,"ngModelChange","change","ngModel","nvAppAnnouncer","associatedMessage"],[1,"font-body2"],[1,"info-icon-container"],["svgIcon","info","tabindex","0","role","img",1,"font-body2","info-icon"],["align","end",1,"actions"],["mat-button","",1,"cancel-button","font-button2",3,"click"],["mat-raised-button","",1,"apply-button","font-button2","mat-accent",3,"click","disabled"],[3,"value"],[1,"dedicate-physx-checkbox","font-color-secondary",3,"ngModelChange","change","disabled","ngModel","nvAppAnnouncer","associatedMessage"]],template:function(de,ge){if(1&de){const Ft=k.RV6();k.j41(0,"div",1)(1,"p",2),k.EFF(2),k.nI1(3,"translate"),k.k0s(),k.j41(4,"mat-dialog-content",3)(5,"div",4)(6,"div",5),k.EFF(7),k.nI1(8,"translate"),k.k0s(),k.j41(9,"mat-select",6,0),k.bIt("selectionChange",function(Kt){return k.eBV(Ft),k.Njj(ge.onProcessorChange(Kt.value))}),k.j41(11,"mat-select-trigger",7)(12,"div",8),k.EFF(13),k.k0s()(),k.DNE(14,Qt,2,2,"mat-option",9),k.k0s()(),k.DNE(15,Jt,5,7,"ng-container",10),k.j41(16,"mat-checkbox",11),k.mxI("ngModelChange",function(Kt){return k.eBV(Ft),k.DH7(ge.showIndicator,Kt)||(ge.showIndicator=Kt),k.Njj(Kt)}),k.bIt("change",function(Kt){return k.eBV(Ft),k.Njj(ge.onShowIndicatorChange(Kt))}),k.j41(17,"div",12),k.EFF(18),k.nI1(19,"translate"),k.k0s()(),k.j41(20,"div",13),k.nrm(21,"mat-icon",14),k.nI1(22,"translate"),k.j41(23,"span",12),k.EFF(24),k.k0s()()(),k.j41(25,"mat-dialog-actions",15)(26,"button",16),k.bIt("click",function(){return k.eBV(Ft),k.Njj(ge.onCancel())}),k.EFF(27),k.nI1(28,"translate"),k.k0s(),k.j41(29,"button",17),k.bIt("click",function(){return k.eBV(Ft),k.Njj(ge.onApply())}),k.EFF(30),k.nI1(31,"translate"),k.k0s()()()}2&de&&(k.R7$(2),k.SpI(" ",k.bMT(3,17,"manage3dSettings.PhysX.name")," "),k.R7$(5),k.JRh(k.bMT(8,19,"manage3dSettings.PhysX.processorLabel")),k.R7$(2),k.Y8G("value",ge.selectedProcessor),k.R7$(4),k.SpI(" ",ge.selectedProcessor.display," "),k.R7$(),k.Y8G("ngForOf",ge.physxOptions),k.R7$(),k.Y8G("ngIf",ge.showDedicateCheckbox),k.R7$(),k.R50("ngModel",ge.showIndicator),k.Y8G("nvAppAnnouncer",ge.showIndicator)("associatedMessage","common.showIndicator"),k.R7$(2),k.SpI(" ",k.bMT(19,21,"common.showIndicator")," "),k.R7$(3),k.qtP("aria-label","",ge.infoMessage," ",k.bMT(22,23,"common.info"),""),k.R7$(3),k.SpI(" ",ge.infoMessage,""),k.R7$(3),k.SpI(" ",k.bMT(28,25,"save.cancel")," "),k.R7$(2),k.Y8G("disabled",!ge.isDirty),k.R7$(),k.SpI(" ",k.bMT(31,27,"save.apply")," "))},dependencies:[Q.Sq,Q.bT,le.BC,le.vS,ce.iV,Vt.An,be.VO,be.$2,Xe.wT,te.So,G.BI,G.Yi,G.E7,Ee.Aq,it.tG,Fe.nM,Se.a,Ge.L,q.D9],styles:["[_ngcontent-%COMP%]:root{--hig-marquee-ratio: .3229;--hig-marquee-parent-container-width: 100vw;--hig-marquee-container-height: calc(var(--hig-marquee-ratio) * 100vw);--hig-marquee-corner-column: 56px;--hig-marquee-text-column: 14vw;--hig-marquee-padded-image-first-row: calc(var(--hig-marquee-ratio) * (100vw - var(--hig-marquee-corner-column) - var(--hig-marquee-text-column)));--hig-marquee-padded-image-second-row: calc(var(--hig-marquee-container-height) - var(--hig-marquee-padded-image-first-row))}.ellipsified-text-with-tooltip[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden}.ellipsified-text-with-tooltip.multi-line-ellipsis[_ngcontent-%COMP%]{display:-webkit-box;-webkit-box-orient:vertical;white-space:wrap}.ellipsified-text-with-tooltip.single-line-ellipsis[_ngcontent-%COMP%]{white-space:nowrap}[_ngcontent-%COMP%]:root{--rwd-column-count: 4;--rwd-gutter-count: 3 ;--rwd-gutter-size: 8px;--rwd-container-side-spacing: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 3 ) / 4);--rwd-sidebar-width: 0px;--rwd-container-width: 100vw}@media screen and (min-width: 480px){[_ngcontent-%COMP%]:root{--rwd-column-count: 6;--rwd-gutter-count: 5 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 5 ) / 6)}}@media screen and (min-width: 720px){[_ngcontent-%COMP%]:root{--rwd-column-count: 8;--rwd-gutter-count: 7 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 7 ) / 8)}}@media screen and (min-width: 960px){[_ngcontent-%COMP%]:root{--rwd-column-count: 12;--rwd-gutter-count: 11 ;--rwd-container-side-spacing: 24px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 8px * 11 ) / 12)}}@media screen and (min-width: 1440px){[_ngcontent-%COMP%]:root{--rwd-gutter-size: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 16px * 11 ) / 12)}}.ellipsis[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden}[_nghost-%COMP%]{display:block}.common-modal[_ngcontent-%COMP%] .physx-content[_ngcontent-%COMP%]{margin-top:14px}.indicator-checkbox[_ngcontent-%COMP%], .dedicate-physx-checkbox[_ngcontent-%COMP%]{margin-left:5px;display:flex}.model-select[_ngcontent-%COMP%], .model-select-option[_ngcontent-%COMP%]{background:var(--primary-600)}.info-icon-container[_ngcontent-%COMP%]{align-items:center;display:flex;margin-left:16px;gap:10px;margin-top:12px}.info-icon-container[_ngcontent-%COMP%] .info-icon[_ngcontent-%COMP%]{width:16px;height:16px}.processor-select[_ngcontent-%COMP%]{width:310px}.processor-select[_ngcontent-%COMP%], .processor-select-option[_ngcontent-%COMP%]{background:var(--primary-600)}.processor-select-field[_ngcontent-%COMP%]{margin-left:16px;margin-bottom:16px;display:flex;flex-direction:column;gap:16px}"]})}}return Bt})();var nn=s(96277),Xt=s(96306),lt=s(93818),Ue=s(88502),wt=s(58108),gt=s(30627),Ht=s(40018);let bn=(()=>{class Bt{constructor(V,de,ge){this.loggingService=V,this.multiDisplaysSupportService=de,this.translateService=ge,this.logger=this.loggingService.getLogger("nvapp/Manage3dSettingsSubUtilService")}getGsyncInfoString(V){return this.multiDisplaysSupportService.surfaces$.pipe((0,l.T)(de=>{const ge=(0,B.flatMap)(de,Kt=>Kt?.displayItems[0]),Wt=ge.filter(Kt=>Kt.gsyncState.gsyncType===gt.rc.GSyncCompatible||Kt.gsyncState.gsyncType===gt.rc.GSyncCapable||Kt.gsyncState.gsyncType===gt.rc.VRR).map(Kt=>Kt.gsyncState.gsyncType);return this.logger.info("Displays with gsync states - ",ge.map(Kt=>Kt.gsyncState.gsyncType).join(":")),Wt.includes(gt.rc.GSyncCapable)&&(Wt.includes(gt.rc.GSyncCompatible)||Wt.includes(gt.rc.VRR))?V="gsyncMix":Wt.includes(gt.rc.GSyncCompatible)||Wt.includes(gt.rc.VRR)?V="gsyncCompatible":Wt.includes(gt.rc.GSyncCapable)&&(V="gsync"),"manage3dSettings.MonitorTechnology.values."+V}))}getPhysxDisplayText(V,de){if(de===U.DefaultGlobalEnum.UseGlobalValue)return de.toString();let ge,Ft;try{if(ge=JSON.parse(de.toString()),ge?.physXGpu&&0!==ge?.physXGpu.length){Ft=ge?.physXGpu[0].gpuName;const Wt=Ft.toLowerCase();At.FO.has(Wt)&&(Ft=this.translateService.instant(At.FO.get(Wt)))}else this.logger.info(`The PhysX value from source not does not have required physXGpu property , ${de.toString()}, setting value to Off `)}catch{this.logger.info(`The PhysX from source not in json format, ${de.toString()}, setting value to Off `)}return Ft}static{this.\u0275fac=function(de){return new(de||Bt)(k.KVO(X.J6),k.KVO(Ht.b),k.KVO(q.c$))}}static{this.\u0275prov=k.jDH({token:Bt,factory:Bt.\u0275fac,providedIn:"root"})}}return Bt})(),Ut=(()=>{class Bt{constructor(V,de,ge,Ft,Wt,Kt,cn,En,kn,Ai,Gi,bt){this.translateService=V,this.loggingService=de,this.manage3dSettingsAPIService=ge,this.dbService=Ft,this.errorHandlerService=Wt,this.matDialog=Kt,this.hardwareInformationService=cn,this.manage3dSettingsTelemetryService=En,this.dlssSettingsUtilService=kn,this.jsonSettingsUtilService=Ai,this.genericDialog=Gi,this.manage3dSettingsSubUtilService=bt,this.globalSettingsInfoObjArraySubject=new i.B7,this.profileSettingsInfoObjArraySubject=new n.m(1),this.globalPreferredProcessorSubject=new n.m(1),this.globalPreferredProcessor$=this.globalPreferredProcessorSubject.asObservable(),this.globalJsonSettingsSupportSubject=new h.t(null),this.gpuArchitectureInfo=null,this.dialogData={},this.unlocalisedKeyCheck=new RegExp(Y.M5),this.settingsDisableNotification$=new i.B7,this.allSettingsLoaded$=new i.B7,this.dependentMessageArr=[],this.refreshAppList$=new i.B7,this.nvcplApiError$=new n.m(1),this.graphicsSettingsTabChanged$=new i.B7,this.showRTXHdrToast=!1,this.legacySettingsExpanded$=new i.B7,this.logger=this.loggingService.getLogger("nvapp/Manage3dSettingsUtilService"),this.globalStore=this.dbService.getGlobalStore(ae.xI.GlobalStore)}getGlobalSettings(){return this.globalSettingsInfoObjArraySubject.asObservable()}getProfileSettings(){return this.profileSettingsInfoObjArraySubject.asObservable()}getGlobalJsonSettingsSupport(){return this.globalJsonSettingsSupportSubject.asObservable()}getGpuArchitectureInfo(){return this.gpuArchitectureInfo}getGraphicsSettingsTabChange(){return this.graphicsSettingsTabChanged$.asObservable()}emitGraphicsSettingsTabChanged(){this.graphicsSettingsTabChanged$.next()}getShowRTXHdrToast(){return this.showRTXHdrToast}setShowRTXHdrToast(V){this.showRTXHdrToast=V}getLegacySettingsExpanded(){return this.legacySettingsExpanded$.asObservable()}setLegacySettingsExpanded(V){this.legacySettingsExpanded$.next(V)}refreshProfileSettingsInfo(V,de,ge,Ft){return this.logger.info(`Calling refreshAllProfileSettings for profile ${V.profileName}`),this.manage3dSettingsAPIService.getBaseSettings(Ft).pipe((0,m.n)(Wt=>this.refreshAllProfileSettings(Wt,V,de,ge)),(0,l.T)(Wt=>this.checkIsDisableDependent(Wt,de)),(0,r.M)(Wt=>{this.logger.info(`Received settings for profile ${V.profileName} `,Wt)}),(0,u.W)(Wt=>(this.logger.error(`Error encountered during refreshAllProfileSettings for profile ${V.profileName}`,JSON.stringify(Wt)),this.nvcplApiError$.next(!0),this.manage3dSettingsTelemetryService.send3DSettingsLoadErrorTelemetry(!0,Wt,V,V.profileName),(0,C.$)(Wt))))}resolveUseGlobalValue(V,de,ge,Ft,Wt,Kt,cn,En){const kn=this.getUnderLyingGlobalValue(Ft,Wt);if(kn)return(0,S.of)(kn);const Ai=this.resolveCorrespondingGlobalVal(Ft,ge,Kt,cn,En);let Gi="";if(V){for(const bt in de)if(bt&&de[bt]===Ai){Gi=bt;break}switch(Ft){case U.JsonTypeSettings.DSRFactor:return(0,S.of)(Ai.toString());case U.DynamicSettings.CudaGpus:const bt=this.resolveCudaGpuDisplayText(Ai,de);if(bt)return(0,S.of)(bt);break;case U.JsonTypeSettings.PhysX:case U.JsonTypeSettings.DLSSSR:return(0,S.of)(Ai.toString())}if(this.unlocalisedKeyCheck.test(Gi)&&1===ge.SettingInfo.SettingType)return(0,S.of)(Ai?.toString())}else if(Gi=de[Ai],!Gi)return(0,S.of)(Ai?.toString());return this.getSettingTranslatedText(Ft,Gi)}resolveCudaGpuDisplayText(V,de){return V===U.CudaGpusValue.NVCPLAPI_VALUE_EXCLUDED_CUDA_GPUS_NONE?this.checkSpecialCaseForSettings(de):this.resolveExcludedGpus(V,de)}resolveExcludedGpus(V,de){if(V&&de&&V!==U.CudaGpusValue.NVCPLAPI_VALUE_EXCLUDED_CUDA_GPUS_NONE&&V!==U.CudaGpusValue.NVCPLAPI_VALUE_EXCLUDED_CUDA_GPUS_ALL&&V!==U.DefaultGlobalEnum.UseGlobalValue){const ge=V.toString().split(";"),Wt=Object.keys(de).filter(cn=>!!cn.match(this.unlocalisedKeyCheck))??null,Kt=[];return Wt.forEach(cn=>{ge.includes(de[cn])||Kt.push(de[cn])}),Kt.join(";")}}getUnderLyingGlobalValue(V,de){switch(V){case U.StaticSliderSettings.ImageSharpeningToggle:case U.StaticSliderSettings.MaxFrameRate:case U.JsonTypeSettings.AIDVC:case U.JsonTypeSettings.AIHDR:case U.JsonTypeSettings.ImageScaling:case U.JsonTypeSettings.FGX:case U.JsonTypeSettings.DLSSMF:case U.JsonTypeSettings.DLSSSR:return de}}resolveCorrespondingGlobalVal(V,de,ge,Ft,Wt){let Kt=de[V+Y.lz];switch(V){case U.JsonTypeSettings.BatteryBoost:Kt=JSON.parse(Kt)?.enabled?U.BatteryBoostValue.On:U.BatteryBoostValue.Off;break;case U.JsonTypeSettings.WhisperMode:Kt=JSON.parse(Kt)?.enabled?U.WhisperModeValue.On:U.WhisperModeValue.Off;break;case U.JsonTypeSettings.ImageScaling:Kt=JSON.parse(Kt)?.enabled?U.ImageScalingValue.On:U.ImageScalingValue.Off;break;case U.JsonTypeSettings.AIHDR:Kt=JSON.parse(Kt)?.enabled?U.AIHDRValue.On:U.AIHDRValue.Off;break;case U.JsonTypeSettings.AIDVC:Kt=JSON.parse(Kt)?.enabled?U.AIDVCValue.On:U.AIDVCValue.Off;break;case U.JsonTypeSettings.FGX:Kt=JSON.parse(Kt)?.enabled?U.FGXValue.On:U.FGXValue.Off;break;case U.JsonTypeSettings.DLSSFG:case U.JsonTypeSettings.DLSSMF:const cn=JSON.parse(Kt);Kt=cn?.enabled?cn.multiFrameCount===U.MultiFrameEnum.REMOVE?U.MultiFrameEnum.OFF:cn.multiFrameCount:U.MultiFrameEnum.OFF;break;case U.JsonTypeSettings.DSRFactor:Kt=this.getDSRDisplayText(V,Kt);break;case U.JsonTypeSettings.PhysX:Kt=this.manage3dSettingsSubUtilService.getPhysxDisplayText(V,Kt);break;case U.JsonTypeSettings.DLSSSR:const En=JSON.parse(Kt);Kt=this.dlssSettingsUtilService.getSROverrideDisplayValue(En,ge,Ft,Wt)}return Kt}refreshGlobalSettings(V,de=!0,ge=!1){return this.refreshProfileSettingsInfo(V,!0,de,ge).pipe((0,v.s)(1),(0,l.T)(Ft=>(this.globalSettingsInfoObjArraySubject.next(Ft),Ft)),(0,u.W)(Ft=>(this.globalSettingsInfoObjArraySubject.error(Ft),this.logger.error(`Error refreshing global settings for profile ${V.profileName} `,Ft),(0,C.$)(Ft))))}refreshProfileSettings(V,de=!0){return this.refreshProfileSettingsInfo(V,!1,de,!1).pipe((0,v.s)(1),(0,l.T)(ge=>(this.profileSettingsInfoObjArraySubject.next(ge),ge)),(0,u.W)(ge=>(this.profileSettingsInfoObjArraySubject.error(ge),this.logger.error(`Error refreshing profile settings for profile ${V.profileName} `,ge),(0,C.$)(ge))))}refreshAllProfileSettings(V,de,ge,Ft){const Wt=[],Kt=V.slice();return this.manage3dSettingsAPIService.getAllSettingsForProfile(de,Ft).pipe((0,l.T)(cn=>(this.logger.info(`allSettingsInfo for cmsId = ${de.cmsId} localId = ${de.applicationId}`,cn),Kt.forEach((En,kn)=>{const Ai=cn.profileSettingInfo.find(Gi=>Gi.SettingEnum===En.settingValue.SettingInfo.enumId);if(Ai){const Gi=this.getFeatureValue(Ai.SettingValue.SettingType,Ai.SettingValue),bt=En.settingName;if(Kt[kn].settingValue[bt+Y.lz]=Gi,Kt[kn].settingValue.isUserModified=1===Ai.SettingValue.IsUserModified,Kt[kn].settingValue.isGreyedOut=!ge&&Ai.SettingValue.IsDisabled,Kt[kn].settingValue.constraints=Ai.SettingValue?.constraints,this.jsonSettingsUtilService.isJsonTypeSetting(bt)){const ir=this.getErrorCodes(Ai.SettingValue.errorCode);Kt[kn].settingValue.SettingInfo.isSupported=!Ai.SettingValue.IsDisabled;const Ir=[];let hr=!1;const Ms=[];hr=ir?.some(Pr=>this.isHardConstraint(Pr)),hr?bt===U.JsonTypeSettings.AIHDR&&(ir.includes(U.DriverSettingsHardConstraints.GpuIncompatible)||ir.includes(U.DriverSettingsHardConstraints.OsIncompatible))&&(Kt[kn].settingValue.SettingInfo.isSupported=!0,Kt[kn].settingValue.isGreyedOut=!0,ir.includes(U.DriverSettingsHardConstraints.GpuIncompatible)&&Ms.push({text:Y.K4[U.DriverSettingsHardConstraints.GpuIncompatible],doTranslate:!0}),ir.includes(U.DriverSettingsHardConstraints.OsIncompatible)&&Ms.push({text:Y.K4[U.DriverSettingsHardConstraints.OsIncompatible],doTranslate:!0})):ir?.forEach(Pr=>{this.isSoftConstraint(Pr)&&(Ir.push(Y.K4[Pr]),Kt[kn].settingValue.SettingInfo.isSupported=!0,Kt[kn].settingValue.isGreyedOut=Ai.SettingValue.IsDisabled)}),Kt[kn].settingValue.errorMessages=Ir,Kt[kn].settingValue.importantInfo=Ms.length>0?Ms:void 0}this.dlssSettingsUtilService.isDLSSModelPresetProfileSetting(bt)&&ge&&(Ai.SettingValue.constraints?.includes(dn.uF.DriverUnsupported)?(this.logger.info(`Driver constraint for setting ${bt} and cmsId ${de.cmsId}`),this.dlssSettingsUtilService.setIsDLSSModelPresetProfileSupportedGlobally(!1)):(this.logger.info(`No Driver constraint for setting ${bt} and cmsId ${de.cmsId}`),this.dlssSettingsUtilService.setIsDLSSModelPresetProfileSupportedGlobally(!0))),this.dlssSettingsUtilService.isDLSSSetting(bt)&&(ge&&(Ai.SettingValue.constraints?.includes(dn.uF.DriverUnsupported)?(this.logger.info(`Driver constraint for setting ${bt} and cmsId ${de.cmsId}`),this.dlssSettingsUtilService.setIsDLSSSupportedGlobally(!1)):(this.logger.info(`No Driver constraint for setting ${bt} and cmsId ${de.cmsId}`),this.dlssSettingsUtilService.setIsDLSSSupportedGlobally(!0))),this.updateErrorInformation(Kt,kn,bt,Gi,Ai.SettingValue.constraints,de.displayName||de.profileName,ge,de.isFingerprintDetected)),this.dlssSettingsUtilService.isDriverFrameGenerationSetting(bt)&&this.updateErrorInformation(Kt,kn,bt,Gi,Ai.SettingValue.constraints,de.displayName||de.profileName,ge,de.isFingerprintDetected);const Rn=this.getFeatureValue(Ai.SettingValue.SettingType,Ai.SettingDefaultValue);Kt[kn].settingValue.settingDefaultValue=Rn;const Gn=Kt[kn].settingValue,Kn=this.getFeatureDefaultValue(Gn?.SettingInfo?.enumId,Gn,ge),Ni=this.resolveFeatureEnum(Gn,bt,Kn,ge).pipe((0,r.M)(({featureEnum:ir,featureEnumKeys:Ir,featureDefaultValue:hr})=>{ir&&(Kt[kn].settingValue.featureEnum=ir,Kt[kn].settingValue.featureEnumKeys=Ir,Kt[kn].settingValue.settingDefaultKey=hr)}));Wt.push(Ni)}else En.settingValue.SettingInfo.isSupported?(this.logger.error(En.settingName," not found even when isSupported true from getprofilesettingsinfo, skipping this setting to avoid UI crash"),Kt[kn].settingValue.SettingInfo.isSupported=!1):this.logger.error(En.settingName," not found")}),Wt)),(0,m.n)(cn=>(0,M.p)([(0,P.x)(...cn)]).pipe((0,l.T)(()=>Kt))))}updateErrorInformation(V,de,ge,Ft,Wt,Kt,cn,En){const[kn,Ai,Gi,bt]=this.dlssSettingsUtilService.getErrorInformation(ge,Ft,Wt,Kt,cn,En);V[de].settingValue.SettingInfo.isSupported=Gi,V[de].settingValue.isGreyedOut=Ai,V[de].settingValue.notes=bt,V[de].settingValue.importantInfo=kn}getErrorCodes(V){const de=V.toString(2),ge=[];for(let Ft=0;Ft<de.length;Ft++)"1"===de[Ft]&&ge.push(Math.pow(2,de.length-1-Ft));return this.logger.info("Error Codes from number ",ge),ge}resolveFeatureEnum(V,de,ge,Ft){return this.getFeatureEnum(V,de,Ft).pipe((0,l.T)(Wt=>{if(Wt){const Kt=this.extractFeatureEnumKeys(Wt);let cn;return cn=V.SettingInfo.isDynamic||de in U.StaticSliderSettings?Object.keys(Wt).find(En=>ge===Wt[En]):Wt[ge],Ft&&this.emitJsonTypeSetting(V,de),{featureEnum:Wt,featureEnumKeys:Kt,featureDefaultValue:cn}}return this.logger.error(`featureEnum for ${de} missing `),{featureEnum:null,featureEnumKeys:[],featureDefaultValue:""}}),(0,u.W)(Wt=>(0,C.$)(Wt)))}getFeatureValue(V,de){let ge="";switch(V){case 0:case 2:ge=de.IntegerValue;break;case 1:ge=de.StringValue;break;case 3:ge=de.JsonStringValue;break;default:this.logger.info("Invalid setting type received ",de.SettingType)}return ge}getFeatureDefaultValue(V,de,ge){let Ft;switch(V){case 65537:Ft=U.BatteryBoostValue.On;break;case 65538:Ft=U.WhisperModeValue.Off;break;case 65539:Ft=U.ImageScalingValue.Off;break;case 65540:Ft=ge?U.AIHDRValue.Off:U.DefaultGlobalEnum.UseGlobalValue;break;case 65541:Ft=U.AIDVCValue.Off;break;case dn.IF.DLSSRR:Ft=ge?U.DLSSRRValue.Off:this.dlssSettingsUtilService.getIsDLSSSupportedGlobally()?U.DefaultGlobalEnum.UseGlobalValue:U.DLSSRRValue.Off;break;case dn.IF.DLSSSR:Ft=ge?U.DLSSSRValue.Off:this.dlssSettingsUtilService.getIsDLSSSupportedGlobally()?U.DefaultGlobalEnum.UseGlobalValue:U.DLSSSRValue.Off;break;case dn.IF.DLSSMF:Ft=ge?U.DLSSMFValue.OFF:this.dlssSettingsUtilService.getIsDLSSSupportedGlobally()?U.DefaultGlobalEnum.UseGlobalValue:U.DLSSMFValue.OFF;break;case dn.IF.FGX:Ft=ge?U.FGXValue.Off:U.DefaultGlobalEnum.UseGlobalValue;break;case dn.IF.DLSSModelPresetProfile:Ft=ge?dn.h4.Default:this.dlssSettingsUtilService.getIsDLSSSupportedGlobally()?U.DefaultGlobalEnum.UseGlobalValue:dn.h4.Default;break;default:Ft=de.settingDefaultValue}return Ft}isSoftConstraint(V){return!!U.DriverSettingsSoftConstraints[V]}isHardConstraint(V){return!!U.DriverSettingsHardConstraints[V]}emitJsonTypeSetting(V,de){if(de===U.JsonTypeSettings.BatteryBoost||de===U.JsonTypeSettings.WhisperMode||de===U.JsonTypeSettings.ImageScaling){let ge=null,Ft=null,Wt=null;const Kt=this.globalJsonSettingsSupportSubject.getValue();if(de===U.JsonTypeSettings.BatteryBoost){const Gi=JSON.parse(V?.BatteryBoostValue);ge={isSupported:V.SettingInfo.isSupported,isEnabled:Gi.enabled,version:Gi.version},this.logger.info("batteryBoost Criteria",ge)}if(de===U.JsonTypeSettings.WhisperMode){const Gi=JSON.parse(V?.WhisperModeValue);Ft={isSupported:V.SettingInfo.isSupported,isEnabled:Gi.enabled,version:Gi.version},this.logger.info("whisperMode Criteria",Ft)}if(de===U.JsonTypeSettings.ImageScaling){const Gi=JSON.parse(V?.ImageScalingValue);Wt={isSupported:V.SettingInfo.isSupported,isEnabled:Gi.enabled,version:2},this.logger.info("imageScaling Criteria",Wt)}const Ai={BatteryBoost:{...ge||Kt?.BatteryBoost,applyOps:!1},WhisperMode:{...Ft||Kt?.WhisperMode,applyOps:!1},NIS:{...Wt||Kt?.NIS,applyOps:!1}};this.globalJsonSettingsSupportSubject.next(Ai)}}handleToggleChangedForJsonSettings(V,de=!1,ge,Ft){this.logger.info("Sending event When toggle changed for feature ",V);const Wt=this.globalJsonSettingsSupportSubject.getValue();V===U.JsonTypeSettings.BatteryBoost?(Wt.BatteryBoost.applyOps=!0,Wt.BatteryBoost.isEnabled=de):Wt.BatteryBoost.applyOps=!1,V===U.JsonTypeSettings.WhisperMode?(Wt.WhisperMode.applyOps=!0,Wt.WhisperMode.isEnabled=de):Wt.WhisperMode.applyOps=!1,Wt.NIS.isGlobalContext=ge,Wt.NIS.localId=Ft,V===U.JsonTypeSettings.ImageScaling?(Wt.NIS.applyOps=!0,Wt.NIS.isEnabled=de):Wt.NIS.applyOps=!1,this.globalJsonSettingsSupportSubject.next({...Wt})}getFeatureEnumForDynamicSettings(V,de,ge){const Ft=ge+Y.lz;switch(V){case Y.qn.type_string:return this.featureEnumForStringTypeSettings(de,Ft);case Y.qn.type_integer:return this.manage3dSettingsAPIService.getProfileScalarSettingPossibleValuesParameters({ProfileSettingEnum:de}).pipe((0,m.n)(Kt=>this.deriveFeatureEnumObject(Ft,Kt.values)));case Y.qn.type_json_string:return this.getJsonTypeFeatureEnum(ge,Ft,de)}return(0,S.of)(void 0)}featureEnumForStringTypeSettings(V,de){return this.manage3dSettingsAPIService.getProfileStringSettingPossibleValues({ProfileSettingEnum:V}).pipe((0,m.n)(Ft=>this.deriveFeatureEnumObject(de,Ft.values)))}getFeatureEnumForStaticSettings(V,de){const ge=de+Y.lz;switch(V){case Y.qn.type_boolean:return(0,S.of)(U.boolEnum);case Y.qn.type_string:return this.logger.info(`String type setting is expected to be dynamic, something incorrect for featureName ${de} .`),(0,S.of)(void 0);case Y.qn.type_integer:case Y.qn.type_json_string:return(0,S.of)(U[ge]);default:return this.logger.info(`Invalid feature type ${V} Ideally shouldn't come here`),(0,S.of)(void 0)}}deriveFeatureEnumObject(V,de){const ge=U[V];if(!ge)return(0,C.$)(`FeatureEnums does not have ${V} defined as key`);const Ft=Object.keys(ge),Wt={};return de.forEach((Kt,cn)=>{const En=Ft.find(kn=>Kt===ge[kn]);En?Wt[En]=ge[En]:Wt[Y.M5+cn]=Kt}),(0,S.of)(Wt)}getFeatureEnum(V,de,ge){return this.getFeatureEnumSettings(V,de).pipe((0,l.T)(Ft=>{const Wt=this.dlssSettingsUtilService.isDLSSSetting(de),Kt=this.dlssSettingsUtilService.getIsDLSSSupportedGlobally();return ge||Wt?!ge&&Wt&&Kt&&(Ft=Object.assign({UseGlobal:U.DefaultGlobalEnum.UseGlobalValue},Ft)):Ft=Object.assign({UseGlobal:U.DefaultGlobalEnum.UseGlobalValue},Ft),Ft}))}getFeatureEnumSettings(V,de){return V.SettingInfo.isDynamic?this.getFeatureEnumForDynamicSettings(V.SettingInfo.SettingType,V.SettingInfo.enumId,de):this.getFeatureEnumForStaticSettings(V.SettingInfo.SettingType,de)}extractFeatureEnumKeys(V){return Object.keys(V).filter(ge=>(0,B.isNaN)(Number(ge)))}setProfileSettingValue(V,de,ge){const Ft={ProfileName:ge.profileName,ProfileSettingEnum:V.SettingInfo.enumId,ApplicationId:ge.applicationId,CmsId:ge.cmsId},Wt={};if(de.selectedFeatureValue.toString()===U.DefaultGlobalEnum.UseGlobalValue.toString())Wt.IntegerValue=+de.selectedFeatureValue,Wt.StringValue="",Wt.SettingType=0;else switch(V.SettingInfo.SettingType){case 0:case 2:Wt.IntegerValue=+de.selectedFeatureValue,Wt.StringValue="",Wt.SettingType=0;break;case 1:Wt.StringValue=de.selectedFeatureValue.toString(),Wt.IntegerValue=0,Wt.SettingType=V.SettingInfo.SettingType;break;case 3:Wt.JsonStringValue=de.selectedFeatureValue.toString(),Wt.IntegerValue=0,Wt.StringValue="",Wt.SettingType=V.SettingInfo.SettingType;break;default:return this.logger.error("Invalid feature ",de.settingName),(0,S.of)(void 0)}return Ft.SettingValue=Wt,this.manage3dSettingsAPIService.setProfileSetting(Ft)}updateProgramFeatureEdit(V){this.globalPreferredProcessorSubject.next(V)}getJsonTypeFeatureEnum(V,de,ge){switch(V){case U.JsonTypeSettings.BatteryBoost:case U.JsonTypeSettings.WhisperMode:case U.JsonTypeSettings.ImageScaling:case U.JsonTypeSettings.AIHDR:case U.JsonTypeSettings.AIDVC:case U.JsonTypeSettings.DLSSSR:case U.JsonTypeSettings.DLSSRR:case U.JsonTypeSettings.DLSSFG:case U.JsonTypeSettings.DLSSMF:case U.JsonTypeSettings.FGX:return(0,S.of)(U[de]);case U.JsonTypeSettings.DSRFactor:case U.JsonTypeSettings.PhysX:return this.featureEnumForStringTypeSettings(ge,de);default:return this.logger.info("Feature details not found for ",V),(0,S.of)(void 0)}}addManualApplication(V){const ge=V.replace(/^.*[\\\/]/,"");return this.manage3dSettingsAPIService.addManualApplication(V,ge).pipe((0,u.W)(Ft=>(this.errorHandlerService.showToastMessage({text:Ft?.message??Ft}).subscribe(),this.logger.error(Ft),(0,S.of)(!1))))}prepareRestoreDialogConfig(V,de,ge){let Ft="";Ft=V?ge?"restoreParentProfile.all":"restoreProgram.all":ge?"restoreParentProfile.single":"restoreProgram";const Wt=(0,x.H)(de).pipe((0,E.H)(cn=>this.manage3dSettingsAPIService.restoreDefaultForProfile(cn)),(0,T.o)(1)),Kt={};return this.dialogData={showSpinner:!1,headerText:{text:`manage3dSettings.${Ft}.headerText`},bodyText:{text:`manage3dSettings.${Ft}.bodyText`,translated:!1,placeholders:{profile:de[0]}},translateValues:{profile:de[0]},primaryButton:{text:"manage3dSettings.restoreParentProfile.primaryButton"},secondaryButton:{text:"manage3dSettings.restoreParentProfile.secondaryButton"},autoFocusOnPrimaryButton:yn.X6},Kt.panelClass=["dialogPaddingRemove"],Kt.disableClose=!0,Kt.autoFocus=!0,Kt.data=this.dialogData,[Ft,Kt,Wt]}confirmAndRestoreProfiles(V,de,ge){const[Ft,Wt,Kt]=this.prepareRestoreDialogConfig(V,de,ge);this.restoreDialogRef=this.genericDialog.open(Wt);const cn=this.restoreDialogRef.primaryButtonClick.pipe((0,v.s)(1),(0,R.u)(!0)),En=this.restoreDialogRef.secondaryButtonClick.pipe((0,v.s)(1),(0,R.u)(!1));return(0,A.h)(cn,En).pipe((0,m.n)(kn=>kn?(this.dialogData.primaryButton.spinnerOverlay=!0,this.dialogData.secondaryButton.isDisabled=!0,this.dialogData.primaryButton.removeButtonTextOnClick=!0,this.manage3dSettingsTelemetryService.sendRestoreTelemetry(ge,V,de),Kt.pipe((0,v.s)(1),(0,u.W)(Ai=>(this.dialogData.primaryButton.spinnerOverlay=!1,this.dialogData.primaryButton.isDisabled=!1,this.dialogData.primaryButton.removeButtonTextOnClick=!0,this.restoreDialogRef.close(),(0,C.$)(Ai))))):(this.restoreDialogRef.close(),(0,S.of)(!1))))}closeRestoreDialog(){this.restoreDialogRef&&this.restoreDialogRef.close()}clearProgramSettingsBuffer(){this.profileSettingsInfoObjArraySubject.next([])}showApplyErrorToastMessage(V){this.errorHandlerService.showToastMessage({text:"manage3dSettings.anErrorOccurred",placeholders:{errorText:V.message??""},translated:!1}).subscribe()}getSettingsDisableNotification(){return this.settingsDisableNotification$.asObservable()}checkIsDisableDependent(V,de){const ge=V.find(Gi=>Gi.settingName===U.DependentSettingsList.MonitorTechnology),Ft=V.find(Gi=>Gi.settingName===U.DependentSettingsList.AntialiasingMode),Wt=V.find(Gi=>Gi.settingName===U.DependentSettingsList.FGX),Kt=V.find(Gi=>Gi.settingName===U.LegacySettings.TextureFilteringQuality);if(!(ge||Ft||Wt||Kt))return this.logger.error("Monitor technology, Antialiasing mode, FGX and Texture Filtering Quality settings are not available, cannot update disable dependent settings"),V;const cn=ge?.settingValue[U.DependentSettingsList.MonitorTechnology+Y.lz],En=Ft?.settingValue[U.DependentSettingsList.AntialiasingMode+Y.lz],kn=Wt?.settingValue[U.DependentSettingsList.FGX+Y.lz],Ai=Kt?.settingValue[U.LegacySettings.TextureFilteringQuality+Y.lz];return V.forEach((Gi,bt)=>{const Zi=V[bt];switch(Zi.settingValue.isDisableDueToDependent=!1,Gi.settingName){case U.DependentSettingsList.PowerManagementPanel:cn&&(Zi.settingValue.isDisableDueToDependent=0!==cn);break;case U.DependentSettingsList.StereoEnable:cn&&(Zi.settingValue.isDisableDueToDependent=0===cn);break;case U.DependentSettingsList.AntialiasingSetting:En&&(Zi.settingValue.isDisableDueToDependent=1===En||3===En);break;case U.DependentSettingsList.AntialiasingTransparency:En&&(Zi.settingValue.isDisableDueToDependent=3===En);break;case U.DependentSettingsList.LowLatencyMode:if(kn&&Zi){const Rn=JSON.parse(kn),Gn=Wt?.settingValue?.constraints,Kn=this.dlssSettingsUtilService.isDenyListedConstraint(Gn),Ni=Rn.enabled&&!Kn;Zi.settingValue.isDisableDueToDependent=Ni,Zi.settingValue.importantInfo=Ni?[{text:`manage3dSettings.${Gi.settingName}.FGXDependentErrorMessage`,doTranslate:!0}]:[]}break;case U.LegacySettings.TextureFilteringTrilinear:case U.LegacySettings.TexturefilteringAnisotropicSampleOpt:de&&void 0!==Ai&&(Zi.settingValue.isDisableDueToDependent=0===Ai)}}),V}checkForSettingDisable(V,de,ge){const Ft={disableNotification:[],isGlobalContext:de},Wt=V.selectedFeatureValue;switch(Ft.isGlobalContext=de,V.settingName){case U.DependentSettingsList.MonitorTechnology:Ft.disableNotification.push({settingName:U.DependentSettingsList.PowerManagementPanel,isDisabled:0!==Wt}),Ft.disableNotification.push({settingName:U.DependentSettingsList.StereoEnable,isDisabled:0===Wt});break;case U.DependentSettingsList.AntialiasingMode:Ft.disableNotification.push({settingName:U.DependentSettingsList.AntialiasingSetting,isDisabled:1===Wt||3===Wt}),Ft.disableNotification.push({settingName:U.DependentSettingsList.AntialiasingTransparency,isDisabled:3===Wt});break;case U.DependentSettingsList.FGX:const Kt=JSON.parse(Wt.toString()),cn=JSON.parse(ge.toString()),En=Kt.enabled;Kt.useGlobal&&(delete Kt.enabled,V.selectedFeatureValue=JSON.stringify(Kt)),En!==cn.enabled&&Ft.disableNotification.push({settingName:U.DependentSettingsList.LowLatencyMode,isDisabled:Kt.enabled});break;case U.LegacySettings.TextureFilteringQuality:de&&(Ft.disableNotification.push({settingName:U.LegacySettings.TextureFilteringTrilinear,isDisabled:0===Wt}),Ft.disableNotification.push({settingName:U.LegacySettings.TexturefilteringAnisotropicSampleOpt,isDisabled:0===Wt}))}Ft.disableNotification.length>0&&(this.dependentMessageArr=Ft.disableNotification.map(Kt=>Kt.settingName),this.dependentMessageArr.unshift(V.settingName),this.settingsDisableNotification$.next(Ft))}showToastForDependentSetting(){if(this.dependentMessageArr.length>0){const de=this.dependentMessageArr.slice(0,this.dependentMessageArr.length-1).map(Kt=>this.translateService.instant(`manage3dSettings.${Kt}.name`)).join(", "),Ft=this.dependentMessageArr.slice(-1).map(Kt=>this.translateService.instant(`manage3dSettings.${Kt}.name`));this.errorHandlerService.showToastMessage({text:"manage3dSettings.dependentSettingsUpdated",placeholders:{primaryText:de,lastSetting:Ft},translated:!1}).subscribe(),this.dependentMessageArr=[]}}allSettingsLoaded(){return this.allSettingsLoaded$.asObservable()}notifySettingsLoaded(){this.allSettingsLoaded$.next(!0)}saveHideStatusAndRefresh(V){return this.saveFingerPrintDbAppHideStatus(V).pipe((0,v.s)(1),(0,r.M)(()=>{this.refreshAppList$.next(V),this.logger.info(`App ${V.displayName} updated with hide status as ${V.isHidden}`)}),(0,u.W)(de=>(this.logger.error(`Some error occured while saving hide status of ${V.displayName}`,de),(0,C.$)(de))))}getAppHideStatus(){return this.refreshAppList$.asObservable()}saveFingerPrintDbAppHideStatus(V){return this.globalStore.getItem(ae.xI.HiddenApps).pipe((0,m.n)(de=>{const ge=de??[];if(0===ge.length)V.isHidden&&ge.push(V);else{let Ft=-1;const Wt=new RegExp((V.installDirectory+V.displayName).replace(Y.Jn,""),"gi");ge.every((Kt,cn)=>!(0,Y.vp)(Kt.installDirectory+Kt.displayName,Wt)||(Ft=cn,!1)),Ft>=0?V.isHidden||ge.splice(Ft,1):V.isHidden&&ge.push(V)}return this.globalStore.setItem(ae.xI.HiddenApps,ge)}),(0,R.u)(!0))}updateLastApplied(V){this.lastSettingApplied=V}updateBoldEffectForSetting(V,de){switch(""===V.settingDefaultValue&&(V.settingDefaultValue=V.isGlobalContext?0:U.DefaultGlobalEnum.UseGlobalValue),V.featureName){case U.DynamicSettings.DSRFactor:(de=this.getDSRDisplayText(V.featureName,de))===U.DSRFactorValue.Off&&(de=0);break;case U.JsonTypeSettings.AIDVC:return!1!==JSON.parse(de.toString())?.enabled;case U.JsonTypeSettings.AIHDR:const Ft=JSON.parse(de.toString());return V?.isGlobalContext?!1!==Ft?.enabled:!0!==Ft?.useGlobal;case U.JsonTypeSettings.BatteryBoost:return!0!==JSON.parse(de.toString())?.enabled;case U.JsonTypeSettings.WhisperMode:case U.JsonTypeSettings.ImageScaling:return!1!==JSON.parse(de.toString())?.enabled;case U.JsonTypeSettings.DLSSSR:const En=JSON.parse(de.toString()),kn=En?.performanceModeOverride!==Y.VJ.Default;return V?.isGlobalContext?kn:this.dlssSettingsUtilService.getIsDLSSSupportedGlobally()?!0!==En?.useGlobal:kn;case U.JsonTypeSettings.DLSSMF:const Ai=JSON.parse(de.toString()),Gi=!1!==Ai?.enabled&&Ai.multiFrameCount!==U.MultiFrameEnum.OFF&&Ai.multiFrameCount!==U.MultiFrameEnum.REMOVE;return V?.isGlobalContext?Gi:this.dlssSettingsUtilService.getIsDLSSSupportedGlobally()?!0!==Ai?.useGlobal:Gi;case U.JsonTypeSettings.FGX:const bt=JSON.parse(de.toString());return V?.isGlobalContext?!1!==bt?.enabled:!0!==bt?.useGlobal;case U.DynamicSettings.PhysX:const Zi=JSON.parse(de.toString()),Rn=JSON.parse(V.settingDefaultValue.toString());return Zi?.physXGpu?.[0]?.gpuName!==Rn?.physXGpu?.[0]?.gpuName}return V.settingDefaultValue!==de}updateBoldForProfile(V){const de=V.featureName+Y.lz;switch(V?.featureName){case U.JsonTypeSettings.AIHDR:case U.JsonTypeSettings.FGX:return!1!==JSON.parse(V?.featureGlobalValue[de].toString())?.enabled;case U.JsonTypeSettings.DLSSMF:const Ft=JSON.parse(V?.featureGlobalValue[de].toString());return!1!==Ft?.enabled&&Ft.multiFrameCount!==U.MultiFrameEnum.OFF&&Ft.multiFrameCount!==U.MultiFrameEnum.REMOVE;case U.JsonTypeSettings.DLSSSR:return JSON.parse(V?.featureGlobalValue[de].toString())?.performanceModeOverride!==Y.VJ.Default;default:return V.featureGlobalValue[de]!==V.featureGlobalValue.settingDefaultValue}}expandSettingOptions(V,de,ge){const Ft={};switch(V.featureName){case U.DynamicSettings.CudaGpus:case U.DynamicSettings.DSRFactor:case U.DynamicSettings.PhysX:case U.JsonTypeSettings.DLSSSR:de.closeMenu(),Ft.panelClass=["graphics-setting-modal-container","common-dialog"],Ft.disableClose=!1,Ft.autoFocus=!0,Ft.restoreFocus=!0,Ft.data={settingData:V,globalTransVal:ge}}switch(V.featureName){case U.JsonTypeSettings.DLSSSR:return Ft.autoFocus=!1,this.hardwareInformationService.getGenericInfo(!1).pipe((0,v.s)(1),(0,l.T)(Wt=>Wt.DriverVersion),(0,m.n)(Wt=>(Ft.data.driverVersion=Wt,this.matDialog.open(sn,Ft).afterClosed().pipe((0,v.s)(1)))));case U.DynamicSettings.CudaGpus:return this.matDialog.open(dt,Ft).afterClosed().pipe((0,v.s)(1));case U.DynamicSettings.DSRFactor:return this.matDialog.open(se,Ft).afterClosed().pipe((0,v.s)(1));case U.DynamicSettings.PhysX:return this.matDialog.open(Zt,Ft).afterClosed().pipe((0,v.s)(1));default:return g.w}}getSettingDisplayText(V,de,ge,Ft,Wt,Kt,cn){switch(V){case U.DynamicSettings.DSRFactor:return(0,S.of)(ge===U.DefaultGlobalEnum.UseGlobalKey||de===U.DefaultGlobalEnum.UseGlobalValue?this.translateService.instant("manage3dSettings."+V+".values.UseGlobal"):this.getDSRDisplayText(V,de));case U.DynamicSettings.PhysX:return(0,S.of)(ge===U.DefaultGlobalEnum.UseGlobalKey||de===U.DefaultGlobalEnum.UseGlobalValue?this.translateService.instant("manage3dSettings."+V+".values.UseGlobal"):this.manage3dSettingsSubUtilService.getPhysxDisplayText(V,de));case U.DynamicSettings.CudaGpus:if("NVCPLAPI_VALUE_EXCLUDED_CUDA_GPUS_NONE"===ge){const Gi=this.checkSpecialCaseForSettings(Ft);if(Gi)return(0,S.of)(Gi)}return this.getSettingTranslatedText(V,ge,de,Ft);case U.JsonTypeSettings.DLSSSR:const En=JSON.parse(de.toString());return(0,S.of)(this.dlssSettingsUtilService.getSROverrideDisplayValue(En,Wt,Kt,cn,ge));case U.JsonTypeSettings.DLSSMF:const kn=JSON.parse(de.toString());return(0,S.of)(this.dlssSettingsUtilService.getMultiFrameDisplayValue(kn,ge,Wt,Kt,cn));case U.JsonTypeSettings.FGX:const Ai=JSON.parse(de.toString());return(0,S.of)(this.dlssSettingsUtilService.getFGXDisplayValue(Ai,ge,Wt));default:return this.getDefaultSettingsDisplayText(ge,V,de)}}getDefaultSettingsDisplayText(V,de,ge){return V?.match(this.unlocalisedKeyCheck)?(this.logger.info("Found unlocalised value at key = ",V),(0,S.of)(ge.toString())):this.getSettingTranslatedText(de,V)}checkSpecialCaseForSettings(V){const ge=Object.keys(V).filter(Ft=>!!Ft.match(this.unlocalisedKeyCheck))??null;return 1===ge.length?V[ge[0]]:null}getSettingTranslatedText(V,de,ge,Ft){switch(V){case U.DynamicSettings.PowerManagementMode:this.gpuArchitectureInfo?.isAmperePlus&&de===U.PowerManagementModeGpuWiseKeys.OptimalPower&&(de=U.PowerManagementModeGpuWiseKeys.Normal);break;case U.DynamicSettings.CudaGpus:const Wt=this.resolveExcludedGpus(ge,Ft);if(Wt)return(0,S.of)(Wt);break;case U.DependentSettingsList.MonitorTechnology:if(de===U.MonitorTechnologyKeys.GsyncOn)return this.manage3dSettingsSubUtilService.getGsyncInfoString(de).pipe((0,v.s)(1),(0,l.T)(Kt=>{if(Kt)return this.translateService.instant(Kt)}))}return(0,S.of)(this.translateService.instant("manage3dSettings."+V+".values."+de))}getDSRDisplayText(V,de){if(!de)return this.getMissingGlobalValueDisplay();if(de===U.DefaultGlobalEnum.UseGlobalValue)return de.toString();let ge,Ft;try{ge=JSON.parse(de.toString()),ge?.factorInformation?Ft=ge?.factorInformation.map(Wt=>(Y.UY[Wt.factorValue]??"NA")+"x").join("; "):this.logger.info(`The DSR factor value from source not does not have required factorInformation property , ${de.toString()}, setting value to Off `)}catch{this.logger.info(`The DSR factor value from source not in json format, ${de.toString()}, setting value to Off `)}return Ft?this.translateService.instant("manage3dSettings."+V+".displayValue",{factors:Ft,smoothness:ge.smoothness}):this.translateService.instant("manage3dSettings."+V+".values.Off")}fetchGpuArchitectureInfo(){this.hardwareInformationService.getGpuInfo(!1).pipe((0,v.s)(1),(0,l.T)(V=>{const de=V?.GPU?.find(kn=>kn.IsPrimary),ge=de?.GPUArchitecture>=Ce.tb.Ampere100,Ft=de?.GPUArchitecture>=Ce.tb.Turing100,Wt=de?.GPUArchitecture>=Ce.tb.Ada100,Kt=de?.GPUArchitecture>=Ce.tb.Blackwell;return{isAmperePlus:ge,isTuringPlus:Ft,isAdaPlus:Wt,isQuadro:1==+de?.IsQuadro,isOptimus:1==+V?.IsOptimus,isBlackwellPlus:Kt}})).subscribe(V=>{this.gpuArchitectureInfo=V},V=>{this.logger.error("failed to fetch Gpu architecture info",V)})}nvcplApiErrorObservable(){return this.nvcplApiError$.asObservable()}openFolder(V){this.manage3dSettingsAPIService.openFolder(V).pipe((0,v.s)(1)).subscribe(de=>{this.logger.info(`Folder ${V} opened `)},de=>{this.logger.error(`Some error occured while opening the folder ${V}`),this.logger.error(de),this.errorHandlerService.showToastMessage({text:"common.somethingWentWrong",translated:!1}).subscribe()})}getCommonDialogConfig(){return{panelClass:["graphics-setting-modal-container","common-dialog"],disableClose:!1,autoFocus:!0,restoreFocus:!0}}isGlobalValueMissing(V,de){return!V||void 0===V?.[de+Y.lz]}getMissingGlobalValueDisplay(){return"-"}showMissingGlobalValueDialog(V,de){this.errorHandlerService.showFeatureNotAvailableDialog(`manage3dSettings.${V}.name`,"manage3dSettings.settingLoadError",{text:"common.okay"}).afterClosed().pipe((0,m.n)(()=>this.refreshGraphicsSettingsAfterDialog(de))).subscribe(Ft=>{this.logger.info("Graphics settings refreshed")},Ft=>{this.logger.error("Error refreshing graphics settings after dialog",Ft)})}refreshGraphicsSettingsAfterDialog(V){return this.refreshGlobalSettings({profileName:U.ProfileNames.BaseProfile,applicationId:0,cmsId:0},!0,!0).pipe((0,m.n)(()=>this.refreshProfileSettings(V)))}static{this.\u0275fac=function(de){return new(de||Bt)(k.KVO(q.c$),k.KVO(X.J6),k.KVO(nn.F),k.KVO(X.at),k.KVO(Xt.c),k.KVO(G.bZ),k.KVO(X.SQ),k.KVO(lt._),k.KVO(me.$),k.KVO(Ue.v),k.KVO(wt.uh),k.KVO(bn))}}static{this.\u0275prov=k.jDH({token:Bt,factory:Bt.\u0275fac,providedIn:"root"})}}return Bt})()},54569:(St,z,s)=>{"use strict";s.d(z,{g:()=>r});var i=s(31315),n=s(43848),h=s(72147),C=s(63407),S=s(98207),M=s(74541),P=s(58527),x=s(92602),A=s(96277),g=s(26990),m=s(93818),l=s(52238);let r=(()=>{class u extends M._{constructor(E,T,R,B,U){super(E,T,R,B,U),this.logger=E.getLogger("nvapp/ProgramSettingsService"),this.initProgramSettingsListener(),this.isGlobalContext=!1}getSelectedProfileInfo(){return this.selectedProfileInfo}initProgramSettingsListener(){this.getSettingsSubscription&&this.getSettingsSubscription.unsubscribe(),this.getSettingsSubscription=this.manage3dSettingsUtilService.getGlobalSettings().pipe((0,h.n)(E=>(0,i.zV)([(0,n.of)(E),this.manage3dSettingsUtilService.getProfileSettings()]))).subscribe(([E,T])=>{const R=this.updateDefaultGlobalValue(T),B=this.updateGlobalValue(E,R);this.clearAndNotify(B)},E=>{this.logger.error("Error fetching Program settings:",E),this.profileSettingsInfoSubject.error(E)})}refreshProgramSettings(E,T,R=!0){if(E?.profileName)this.selectedProfileInfo=E;else if(!this.selectedProfileInfo?.profileName){const B="DRS Profile name is blank, settings will not be loaded";return this.logger.error(B),this.manage3dSettingsTelemetryService.send3DSettingsLoadErrorTelemetry(!1,B,this.selectedProfileInfo,T),(0,n.of)(null)}return this.manage3dSettingsUtilService.refreshProfileSettings(this.selectedProfileInfo,R)}updateDefaultGlobalValue(E){return E.forEach(T=>{const R=T.settingName+C.lz;switch(T.settingName){case S.JsonTypeSettings.BatteryBoost:case S.JsonTypeSettings.WhisperMode:T.settingValue[R]=S.DefaultGlobalEnum.UseGlobalValue;break;default:""===T.settingValue[R]&&(T.settingValue[R]=S.DefaultGlobalEnum.UseGlobalValue)}}),E}updateGlobalValue(E,T){return T.forEach(R=>{const B=E.find(U=>U.settingName===R.settingName);B?(R.settingValue.settingGlobalValue=B.settingValue,this.handleExceptionalSettingsCase(B,R)):this.logger.error("No corresponding global value found for ",R.settingName)}),T}handleExceptionalSettingsCase(E,T){if(E.settingName===S.JsonTypeSettings.DSRFactor){const R=T.settingName+C.lz;T.settingValue[R]=E.settingValue[R]}}getVisibleProfileSettings(E){return E.filter(T=>!(T.settingName in S.CuratedProgramSettings))}getLegacySettings(E){return E.filter(T=>{if(T.settingName in S.LegacySettings)return!0})}ngOnDestroy(){this.getSettingsSubscription&&this.getSettingsSubscription.unsubscribe(),this.refreshSettingsSub&&this.refreshSettingsSub.unsubscribe()}static{this.\u0275fac=function(T){return new(T||u)(P.KVO(x.J6),P.KVO(A.F),P.KVO(g.f),P.KVO(m._),P.KVO(l.$))}}static{this.\u0275prov=P.jDH({token:u,factory:u.\u0275fac,providedIn:"root"})}}return u})()},17076:(St,z,s)=>{"use strict";s.d(z,{i:()=>Wt});var i=s(31308),n=s(64409),h=s(56106),C=s(47973),S=s(29370),M=s(58527),P=s(51635);let u=(()=>{class Kt{static{this.\u0275fac=function(kn){return new(kn||Kt)}}static{this.\u0275mod=M.$C({type:Kt})}static{this.\u0275inj=M.G2t({imports:[P.yE,P.yE]})}}return Kt})();var v=s(44186),E=s(99204),T=s(20288),R=s(49678),B=s(44224),U=s(4418),Y=s(44296),ae=s(74150),G=s(43848);const q={provide:M.hnV,useFactory:function X(Kt,cn){return()=>function k(Kt,cn){return Kt.addSvgIcon("driver",cn.bypassSecurityTrustResourceUrl("./assets/img/driver.svg")),Kt.addSvgIcon("overlayUtilityIcon",cn.bypassSecurityTrustResourceUrl("./assets/img/overlay.svg")),Kt.addSvgIcon("nvidiaBranding",cn.bypassSecurityTrustResourceUrl("./assets/img/nvapp-logo.svg")),Kt.addSvgIcon("wrench_nvapp",cn.bypassSecurityTrustResourceUrl("./assets/img/wrench_icon.svg")),Kt.addSvgIcon("icon_laptop",cn.bypassSecurityTrustResourceUrl("./assets/img/icon_laptop.svg")),Kt.addSvgIcon("icon_monitor",cn.bypassSecurityTrustResourceUrl("./assets/img/icon_monitor.svg")),Kt.addSvgIcon("icon_tv",cn.bypassSecurityTrustResourceUrl("./assets/img/icon_tv.svg")),Kt.addSvgIcon("icon_connector_vga",cn.bypassSecurityTrustResourceUrl("./assets/img/VGA.svg")),Kt.addSvgIcon("icon_connector_displayPort",cn.bypassSecurityTrustResourceUrl("./assets/img/display_Port.svg")),Kt.addSvgIcon("icon_connector_hdmi",cn.bypassSecurityTrustResourceUrl("./assets/img/HDMI.svg")),Kt.addSvgIcon("icon_connector_laptop_display",cn.bypassSecurityTrustResourceUrl("./assets/img/laptop_Display.svg")),Kt.addSvgIcon("icon_connector_dvi",cn.bypassSecurityTrustResourceUrl("./assets/img/DVI.svg")),Kt.addSvgIcon("icon_connector_tv",cn.bypassSecurityTrustResourceUrl("./assets/img/TV.svg")),Kt.addSvgIcon("icon_connector_usb",cn.bypassSecurityTrustResourceUrl("./assets/img/USB.svg")),Kt.addSvgIcon("icon_landscape",cn.bypassSecurityTrustResourceUrl("./assets/img/landscape.svg")),Kt.addSvgIcon("icon_portrait",cn.bypassSecurityTrustResourceUrl("./assets/img/portrait.svg")),Kt.addSvgIcon("icon_landscapeFlipped",cn.bypassSecurityTrustResourceUrl("./assets/img/landscape_flipped.svg")),Kt.addSvgIcon("icon_portraitFlipped",cn.bypassSecurityTrustResourceUrl("./assets/img/portrait_flipped.svg")),Kt.addSvgIcon("icon_auto_displayMode",cn.bypassSecurityTrustResourceUrl("./assets/img/auto_display_mode.svg")),Kt.addSvgIcon("icon_nv_gpu_displayMode",cn.bypassSecurityTrustResourceUrl("./assets/img/nv-gpu.svg")),Kt.addSvgIcon("icon_optimus_displayMode",cn.bypassSecurityTrustResourceUrl("./assets/img/optimus.svg")),Kt.addSvgIcon("icon_avatar",cn.bypassSecurityTrustResourceUrl("./assets/img/avatar_generic_118.svg")),(0,G.of)()}(Kt,cn)},deps:[S.tp,ae.up],multi:!0};let ue=(()=>{class Kt{static{this.\u0275fac=function(kn){return new(kn||Kt)}}static{this.\u0275mod=M.$C({type:Kt})}static{this.\u0275inj=M.G2t({imports:[P.yE,P.yE]})}}return Kt})();var et=s(26537),se=s(26945),Ce=s(50599),be=s(12949),rt=s(62141),me=s(65597),le=s(68477),Xe=s(61142);s(40262);let Le=(()=>{class Kt{static{this.\u0275fac=function(kn){return new(kn||Kt)}}static{this.\u0275mod=M.$C({type:Kt})}static{this.\u0275inj=M.G2t({imports:[Xe.MD,P.yE,n.Gj,n.Gj,P.yE]})}}return Kt})();var V=s(58108),de=s(13186),ge=s(46906);const Ft=[h.YN,C.wG,S.m_,u,v.uc,ue,Y.bB,E.D6,T.PO,B.w,be.Ve,rt.jm,Ce.fS,n.E9,se.MY,U.g7,et.hM,me._T,P.pZ,le.RI,i.Pd,V.bm,R.Wk,Le,de.Lq,ge.l2];let Wt=(()=>{class Kt{static{this.\u0275fac=function(kn){return new(kn||Kt)}}static{this.\u0275mod=M.$C({type:Kt})}static{this.\u0275inj=M.G2t({providers:[q,{provide:et.di,useValue:{exitAnimationDuration:"0ms",enterAnimationDuration:"0ms",restoreFocus:!0,autoFocus:!0}}],imports:[Ft,h.YN,C.wG,S.m_,u,v.uc,ue,Y.bB,E.D6,T.PO,B.w,be.Ve,rt.jm,Ce.fS,n.E9,se.MY,U.g7,et.hM,me._T,P.pZ,le.RI,i.Pd,V.bm,R.Wk,Le,de.Lq,ge.l2]})}}return Kt})()},18553:(St,z,s)=>{"use strict";s.d(z,{j:()=>l});var i=s(58527),n=s(45768),h=s(58832),C=s(92602),S=s(45032);function M(r,u){if(1&r){const v=i.RV6();i.j41(0,"nv-app-ootb-driver",8),i.bIt("driverTypeSelected",function(T){i.eBV(v);const R=i.XpG(2);return i.Njj(R.onDriverTypeUpdate(T))})("skipDriverExperience",function(){i.eBV(v);const T=i.XpG(2);return i.Njj(T.onSkipExperience())}),i.k0s()}if(2&r){const v=i.XpG(2);i.Y8G("selectedDriverType",v.selectedDriverType)}}function P(r,u){if(1&r){const v=i.RV6();i.j41(0,"nv-app-ootb-optimize",9),i.bIt("optimizeChanged",function(T){i.eBV(v);const R=i.XpG(2);return i.Njj(R.onOptimizeToggled(T))})("skipExperience",function(){i.eBV(v);const T=i.XpG(2);return i.Njj(T.onSkipExperience())})("piplComplianceFailed",function(T){i.eBV(v);const R=i.XpG(2);return i.Njj(R.onPiplComplianceFailure(T))})("noRewardsAvailable",function(T){i.eBV(v);const R=i.XpG(2);return i.Njj(R.onNoRewardsAvailable(T))}),i.k0s()}if(2&r){const v=i.XpG(2);i.Y8G("selectedDriverType",v.selectedDriverType)("isOptimized",v.isOptimized)}}function x(r,u){if(1&r){const v=i.RV6();i.j41(0,"nv-app-ootb-igo",10),i.bIt("piplComplianceFailed",function(T){i.eBV(v);const R=i.XpG(2);return i.Njj(R.onPiplComplianceFailure(T))})("noRewardsAvailable",function(T){i.eBV(v);const R=i.XpG(2);return i.Njj(R.onNoRewardsAvailable(T))})("skipExperience",function(){i.eBV(v);const T=i.XpG(2);return i.Njj(T.onSkipExperience())}),i.k0s()}if(2&r){const v=i.XpG(2);i.Y8G("selectedDriverType",v.selectedDriverType)}}function A(r,u){if(1&r){const v=i.RV6();i.j41(0,"nv-app-ootb-login",11),i.bIt("loggedIn",function(T){i.eBV(v);const R=i.XpG(2);return i.Njj(R.onLoginCheck(T))}),i.k0s()}if(2&r){const v=i.XpG(2);i.Y8G("selectedDriverType",v.selectedDriverType)}}function g(r,u){if(1&r){const v=i.RV6();i.j41(0,"nv-app-ootb-action",12),i.bIt("prevBtnClicked",function(){i.eBV(v);const T=i.XpG(2);return i.Njj(T.handlePrevBtnClick())})("skipToAppBtnClicked",function(){i.eBV(v);const T=i.XpG(2);return i.Njj(T.handleSkipToAppBtnClick())})("actionBtnClicked",function(T){i.eBV(v);const R=i.XpG(2);return i.Njj(R.handleActionBtnClick(T))}),i.k0s()}if(2&r){const v=i.XpG(2);i.Y8G("isPrevEnabled",null==v.currentOotbExperience?null:v.currentOotbExperience.isPrevEnabled)("isSkipToAppEnabled",null==v.currentOotbExperience?null:v.currentOotbExperience.isSkipToAppEnabled)("ootbActionState",null==v.currentOotbExperience?null:v.currentOotbExperience.action)}}function m(r,u){if(1&r&&(i.j41(0,"div",1)(1,"div",2),i.DNE(2,M,1,1,"nv-app-ootb-driver",3)(3,P,1,2,"nv-app-ootb-optimize",4)(4,x,1,1,"nv-app-ootb-igo",5)(5,A,1,1,"nv-app-ootb-login",6),i.k0s(),i.DNE(6,g,1,3,"nv-app-ootb-action",7),i.nI1(7,"async"),i.k0s()),2&r){const v=i.XpG();i.R7$(),i.Y8G("ngSwitch",v.currentOotbExperience.ootbView),i.R7$(),i.Y8G("ngSwitchCase",v.ootbView.DriverExperience),i.R7$(),i.Y8G("ngSwitchCase",v.ootbView.OptimizeExperience),i.R7$(),i.Y8G("ngSwitchCase",v.ootbView.OverlayExperience),i.R7$(),i.Y8G("ngSwitchCase",v.ootbView.LoginExperience),i.R7$(),i.Y8G("ngIf",!1===i.bMT(7,6,v.isLoading$))}}let l=(()=>{class r{constructor(v,E){this.loggingService=v,this.ootbService=E,this.isLoading$=this.ootbService.loading,this.destroyRef=(0,i.WQX)(i.abz),this.logger=this.loggingService.getLogger("nvapp/OotbModalComponent")}ngOnInit(){this.listenToOotbState()}get ootbView(){return h.Bc}handlePrevBtnClick(){this.ootbService.handlePrevBtnClick(this.currentOotbState)}handleSkipToAppBtnClick(){this.ootbService.handleSkipToAppBtnClick(this.currentOotbState)}handleActionBtnClick(v){this.logger.info("Action Button Clicked",v);let E=this.currentOotbState.ootbData;this.selectedDriverType?.id!==E?.driverType?.id&&(E={...E,appMetadata:void 0}),this.currentOotbState={...this.currentOotbState,ootbData:E},this.ootbService.handleOotbAction(v,this.currentOotbState)}onDriverTypeUpdate(v){this.logger.info("Preferred DriverType",v);let E=this.currentOotbState.ootbData;E={...E,driverType:v},this.currentOotbState={...this.currentOotbState,ootbData:E}}onAppsSelected(v){this.logger.info("Selected Apps",v);let E=this.currentOotbState.ootbData;E={...E,appMetadata:v},this.currentOotbState={...this.currentOotbState,ootbData:E}}onSkipExperience(){this.ootbService.onSkipExperience(this.currentOotbState)}onLoginCheck(v){this.markSkipToApp(v),this.ootbService.updateLoading(!1)}onOptimizeToggled(v){this.logger.info("Optimize Flag",v);let E=this.currentOotbState.ootbData;E={...E,isOptimized:v},this.currentOotbState={...this.currentOotbState,ootbData:E}}onPiplComplianceFailure(v){v&&(this.currentOotbExperience.action=h.GO.Done)}onNoRewardsAvailable(v){v&&(this.currentOotbExperience.action=h.GO.Done)}markSkipToApp(v=!1){v&&(this.currentOotbExperience.action=h.GO.Done,this.currentOotbExperience.isSkipToAppEnabled=!1)}listenToOotbState(){this.ootbService.ootbState.pipe((0,n.pQ)(this.destroyRef)).subscribe(v=>{this.currentOotbState=v,this.currentOotbExperience=this.currentOotbState.ootbExperience,this.selectedDriverType=this.currentOotbState.ootbData?.driverType,this.selectedApps=this.currentOotbState.ootbData?.appMetadata,this.isOptimized=this.currentOotbState.ootbData?.isOptimized},v=>{this.logger.error("Error occurred while fetching OOTB state",v)})}static{this.\u0275fac=function(E){return new(E||r)(i.rXU(C.J6),i.rXU(S.Q))}}static{this.\u0275cmp=i.VBU({type:r,selectors:[["nv-app-ootb-modal"]],decls:1,vars:1,consts:[["class","ootb-modal","fxLayout","column",4,"ngIf"],["fxLayout","column",1,"ootb-modal"],["fxFlex","",3,"ngSwitch"],[3,"selectedDriverType","driverTypeSelected","skipDriverExperience",4,"ngSwitchCase"],[3,"selectedDriverType","isOptimized","optimizeChanged","skipExperience","piplComplianceFailed","noRewardsAvailable",4,"ngSwitchCase"],[3,"selectedDriverType","piplComplianceFailed","noRewardsAvailable","skipExperience",4,"ngSwitchCase"],[3,"selectedDriverType","loggedIn",4,"ngSwitchCase"],[3,"isPrevEnabled","isSkipToAppEnabled","ootbActionState","prevBtnClicked","skipToAppBtnClicked","actionBtnClicked",4,"ngIf"],[3,"driverTypeSelected","skipDriverExperience","selectedDriverType"],[3,"optimizeChanged","skipExperience","piplComplianceFailed","noRewardsAvailable","selectedDriverType","isOptimized"],[3,"piplComplianceFailed","noRewardsAvailable","skipExperience","selectedDriverType"],[3,"loggedIn","selectedDriverType"],[3,"prevBtnClicked","skipToAppBtnClicked","actionBtnClicked","isPrevEnabled","isSkipToAppEnabled","ootbActionState"]],template:function(E,T){1&E&&i.DNE(0,m,8,8,"div",0),2&E&&i.Y8G("ngIf",null==T.currentOotbExperience?null:T.currentOotbExperience.ootbView)},styles:[".ootb-modal[_ngcontent-%COMP%]{height:100%}"]})}}return r})()},70445:(St,z,s)=>{"use strict";s.d(z,{Ik:()=>C,MA:()=>x,Wx:()=>M,cB:()=>P,ys:()=>S});var i=s(2216),n=s(58832);const C=5,S=!0,M=[{order:0,ootbView:n.Bc.DriverExperience,isPrevEnabled:!1,isSkipToAppEnabled:!1,action:n.GO.Next},{order:1,ootbView:n.Bc.OptimizeExperience,isPrevEnabled:!0,isSkipToAppEnabled:!1,action:n.GO.Next},{order:2,ootbView:n.Bc.OverlayExperience,isPrevEnabled:!0,isSkipToAppEnabled:!1,action:n.GO.Next},{order:3,ootbView:n.Bc.LoginExperience,isPrevEnabled:!0,isSkipToAppEnabled:!0,action:n.GO.LoginToRedeem}],P=[{id:i.uj.GameReadyDriver,title:"ootb.gameReadyDriver",subtitle:"ootb.forGamers",isInstalled:!1,isSelected:!1},{id:i.uj.CreatorReadyDriver,title:"ootb.nvidiaStudioDriver",subtitle:"ootb.forCreators",isInstalled:!1,isSelected:!1}],x=[{id:i.eS.WsRecommendedDriver,title:"drivers.preferences.workstationRecommendedDrivers",subtitle:"drivers.preferences.recommendedForWorkstation",isInstalled:!1,isSelected:!1},{id:i.eS.WsLeadingEdgeDriver,title:"drivers.preferences.workstationLeadingEdgeDrivers",subtitle:"drivers.preferences.recommendedForLeadingEdge",isInstalled:!1,isSelected:!1},{id:i.eS.WsConservativeDriver,title:"drivers.preferences.workstationConservativeDrivers",subtitle:"drivers.preferences.recommendedForConservative",isInstalled:!1,isSelected:!1}]},58832:(St,z,s)=>{"use strict";s.d(z,{Bc:()=>h,GO:()=>C,TO:()=>n});var n=s(20924).Or.Nvapp.Localgames.OotbStatus,h=function(S){return S.DriverExperience="driverExperience",S.OptimizeExperience="optimizeExperience",S.OverlayExperience="overlayExperience",S.AppDiscoveryExperience="appDiscoveryExperience",S.LoginExperience="loginExperience",S.CompletedAll="completedAll",S.Skipped="skipped",S}(h||{}),C=function(S){return S.Next="ootb.next",S.Done="ootb.done",S.LoginToRedeem="rewards.loginToRedeem",S}(C||{})},45032:(St,z,s)=>{"use strict";s.d(z,{Q:()=>Ke});var i=s(26513),n=s(80583),h=s(85735),C=s(59859),S=s(43848),M=s(36466),P=s(8619),x=s(72147),A=s(14714),g=s(83915),m=s(65706),l=s(4208),r=s(65726),u=s(43615),v=s(20924),E=s(2216),T=s(76062),R=s(26772),B=s(94645),U=s(10404),Y=s(1242),ae=s(18553),G=s(70445),k=s(58832),X=s(58527),q=s(26537),Q=s(92602),ce=s(82102),te=s(87801),Ee=s(30081),it=s(78812),Fe=s(44272),Qe=s(59085),ct=s(72482),Ge=s(14354),nt=s(38132),Je=s(83983),ze=s(60213);let Ke=(()=>{class Ve{get isOotbCompletedOrSkipped(){return this._isOotbCompletedOrSkipped.asObservable()}constructor(dt,Pe,J,vt,ve,ue,et,se,Ce,be,rt,me,le,Xe,Se,fe){this.matDialog=dt,this.loggingService=Pe,this.dbService=J,this.loginService=vt,this.driverUpdateService=ve,this.appCardService=ue,this.layoutService=et,this.telemetryService=se,this.appListService=Ce,this.bridgeService=be,this.preferenceService=rt,this.driverInfoService=me,this.router=le,this.overlayService=Xe,this.eulaService=Se,this.opsService=fe,this.supportedExperiences=G.Wx,this.ootbState$=new i.t(null),this.loading$=new n.B7,this.unsubscribe$=new n.B7,this._isOotbCompletedOrSkipped=new h.m(1),this.logger=this.loggingService.getLogger("nvapp/OotbService"),this.globalStore=this.dbService.getGlobalStore(B.xI.GlobalStore)}loadOotbExperience(){this.logger.info("Loading OOTB Data and OOTB Experience from Db"),this.eulaService.getEulaAccepted().pipe((0,P.p)(dt=>dt),(0,x.n)(dt=>this.globalStore.getItem(B.xI.OotbState)),(0,A.W)(dt=>(this.logger.error("Error occurred while getting OOTB state from db ",dt),(0,C.$)(dt))),(0,x.n)(dt=>(this.ootbStateInDb=dt,this.driverInfoService.fetchDriverInstallInfo())),(0,P.p)(({isDriverInstalled:dt,isMinimumDriverInstalled:Pe})=>dt&&Pe),(0,g.T)(()=>this.ootbStateInDb),(0,m.s)(1)).subscribe(dt=>{this.logger.info("OotbState in db ",dt),this.initializeOotbState(dt)},dt=>{this.logger.error("Error occurred while getting OOTB state",dt)})}get ootbState(){return this.ootbState$.asObservable()}get loading(){return this.loading$.asObservable()}startLogin(dt){this.logger.info("OOTB Login Started"),this.loginService.startLogin(!1,U.fx.OOTB).pipe((0,m.s)(1)).subscribe(Pe=>{this.downloadSelectedApps(dt)},Pe=>{this.logger.error("Error occurred while processing login ",Pe),this.downloadSelectedApps(dt)})}saveOotbState(dt){this.globalStore.setItem(B.xI.OotbState,dt).pipe((0,l.Q)(this.unsubscribe$)).subscribe(Pe=>{this.logger.info("OOTB State has been saved to Db",Pe)},Pe=>{this.logger.error("Error occurred while saving OOTB State to Db",Pe)})}handleOotbAction(dt,Pe){let J=Pe.ootbExperience,vt="";const ve=Pe.ootbExperienceStack,ue=Pe.ootbExperience.ootbView;switch(dt){case k.GO.Next:vt=Y.aw.Next,J.ootbView===k.Bc.OptimizeExperience&&this.overlayService.initializeOverlayToggle(),ve.push(Pe.ootbExperience),J=this.supportedExperiences[J.order+1],this.ootbState$.next({...Pe,ootbExperience:J,ootbExperienceStack:ve}),this.saveOotbState(this.ootbState$.getValue());break;case k.GO.LoginToRedeem:vt=Y.aw.Login,J.ootbView=k.Bc.CompletedAll,this.closeOotbDialog(Pe.ootbData,k.Bc.CompletedAll),this.startLogin(Pe.ootbData);break;case k.GO.Done:vt=Y.aw.Done,J.ootbView=k.Bc.CompletedAll,this.closeOotbDialog(Pe.ootbData,k.Bc.CompletedAll),this.downloadSelectedApps(Pe.ootbData);break;default:this.closeOotbDialog(Pe.ootbData,ue),this.downloadSelectedApps(Pe.ootbData)}this.sendOotbProgressEvent(vt,ue)}handlePrevBtnClick(dt){const Pe=dt.ootbExperienceStack;this.sendOotbProgressEvent(Y.aw.Previous,dt.ootbExperience.ootbView);const J=Pe.pop();this.ootbState$.next({...dt,ootbExperience:J,ootbExperienceStack:Pe}),this.saveOotbState(this.ootbState$.getValue())}handleSkipToAppBtnClick(dt){const Pe=dt.ootbExperience.ootbView;let J="";0===dt.ootbExperience.order?(J=Y.aw.Skip,this.overlayService.initializeOverlayToggle()):J=Y.aw.Exit,this.sendOotbProgressEvent(J,Pe),this.closeOotbDialog(dt.ootbData,k.Bc.Skipped),this.downloadSelectedApps(dt.ootbData)}onSkipExperience(dt){let Pe=dt.ootbExperience;const J=Pe.order;let vt=this.supportedExperiences.filter(ue=>ue.order!==Pe.order);vt=vt.map((ue,et)=>(0===et&&(ue.isPrevEnabled=!1),{...ue,order:et})),this.supportedExperiences=vt,Pe=this.supportedExperiences[J];const ve={...dt,supportedExperiences:this.supportedExperiences,ootbExperience:Pe};(0,S.of)(!0).pipe((0,r.c)(0),(0,m.s)(1)).subscribe(()=>this.ootbState$.next(ve)),this.saveOotbState(ve)}updateLoading(dt){(0,S.of)(!0).pipe((0,r.c)(0),(0,m.s)(1)).subscribe(()=>this.loading$.next(dt))}isGameReadyDriver(dt){return dt?.id===E.uj.GameReadyDriver}isCreatorReadyDriver(dt){return dt?.id===E.uj.CreatorReadyDriver}isWorkstationDriver(dt){switch(dt?.id){case E.eS.WsRecommendedDriver:case E.eS.WsLeadingEdgeDriver:case E.eS.WsConservativeDriver:return!0;default:return!1}}getAutoOptimizeValue(){return this.preferenceService.getAutoOptimizeEnabled()}setAutoOptimizeEnabled(dt){return this.preferenceService.setAutoOptimizeEnabled(dt)}sendOotbProgressEvent(dt,Pe){const J=new Y.dE({actionName:dt,status:Y.fb.Success,currentScreen:Pe,errorDetails:""});this.telemetryService.push(J,null)}openOotbDialog(){this.logger.info("Open OOTB dialog box"),this.ootbDialogRef=this.matDialog.open(ae.j,{disableClose:!0,autoFocus:!1,backdropClass:"ootb-modal-backdrop",panelClass:["ootb-modal-container","common-dialog"]}),this._isOotbCompletedOrSkipped.next(!1)}initializeOotbState(dt){this.logger.info("Initializing OOTB");const Pe=dt?.ootbExperience?dt.ootbExperience:this.supportedExperiences[0],J=Pe.ootbView,vt=dt?.visitedExperiences?dt?.visitedExperiences:[],ve=vt.length<G.Wx.length;if(J!==k.Bc.CompletedAll&&J!==k.Bc.Skipped){this.router.navigate([R.f.Home]),this.setOotbStatus(k.TO.STARTED).subscribe(M.l,Ce=>{this.logger.error("Error occurred while setting ootb status ",Ce)}),this.opsService.sendOpsEventsOnOotbFinish(!1),this.preferenceService.initializePreferencesState(),this.initiateTraditionalScan(),this.supportedExperiences=dt?.supportedExperiences?dt.supportedExperiences:G.Wx;const ue=dt?.ootbData;this.ootbState$.next({supportedExperiences:this.supportedExperiences,ootbExperience:Pe,ootbData:ue,ootbExperienceStack:dt?.ootbExperienceStack?dt.ootbExperienceStack:[],visitedExperiences:vt}),this.openOotbDialog()}else ve?(this.logger.info("Re triggering OOTB flow"),this.setupOOTB(dt),this.opsService.sendOpsEventsOnOotbFinish(!1),this.preferenceService.initializePreferencesState(),this.initiateTraditionalScan(),this.openOotbDialog()):(this.opsService.sendOpsEventsOnOotbFinish(!0),this._isOotbCompletedOrSkipped.next(!0))}closeOotbDialog(dt,Pe){this.logger.info("Close OOTB dialog box"),this.ootbDialogRef.close(),this.processOotbData(dt);const vt={};vt.ootbView=Pe,this.saveOotbState({ootbExperience:vt,ootbData:dt,visitedExperiences:G.Wx}),this._isOotbCompletedOrSkipped.next(!0)}processOotbData(dt){this.logger.info("Processing OOTB Data",dt);const Pe=dt?.driverType;Pe&&!Pe.isInstalled&&this.setDriverTypePreference(Pe),this.processOps(void 0===dt?.isOptimized?G.ys:dt?.isOptimized)}downloadSelectedApps(dt){const Pe=dt?.appMetadata;Pe&&Pe.length>0&&this.triggerDownloadsForApps(Pe)}setDriverTypePreference(dt){this.driverUpdateService.updateDriverTypePreferenceDriverType(dt)}triggerDownloadsForApps(dt){let Pe=dt;this.layoutService.getInstalledStatusForApps(dt).pipe((0,m.s)(1),(0,g.T)(J=>Pe=J.filter(vt=>vt?.installStatus.status===T.Py.NotInstalled)),(0,u.j)(()=>{this.logger.info("Triggering download for uninstalled apps on OOTB Finish");const J={};Pe.forEach(vt=>this.appCardService.triggerGetState(vt,J,Y.f3.OOTB))})).subscribe()}initiateTraditionalScan(){this.appListService.initiateTraditionalScan().pipe((0,m.s)(1)).subscribe(M.l,M.l)}processOps(dt){this.logger.info("Setting Auto Optimized Value",dt),this.setAutoOptimizeEnabled(dt).pipe((0,x.n)(()=>(this.logger.info("Setting OOTB Finish after Fast Scan"),this.opsService.sendOpsEventsOnOotbFinish(!0),this.setOotbStatus(k.TO.FINISHED))),(0,m.s)(1)).subscribe(M.l,Pe=>{this.logger.error("Error while initiate fast scan",Pe)})}setOotbStatus(dt){return this.logger.info("Setting OOTB Status ",dt),this.bridgeService.executeCommand(v.Ts.Nvapp.Localgames.SetOOTBStatus,{ootbStatus:dt}).pipe((0,m.s)(1))}setupOOTB(dt){const Pe=dt?.visitedExperiences?dt?.visitedExperiences:[];this.supportedExperiences=G.Wx.filter(ve=>!Pe.some(ue=>ue.ootbView===ve.ootbView));const J=this.supportedExperiences.length;this.supportedExperiences=this.supportedExperiences.map((ve,ue)=>{const et=0!==ue,Ce=ue===J-1,be=J>1&&Ce,rt=ve.ootbView===k.Bc.LoginExperience?k.GO.LoginToRedeem:Ce?k.GO.Done:k.GO.Next;return{...ve,order:ue,isSkipToAppEnabled:be,isPrevEnabled:et,action:rt}});const vt={supportedExperiences:this.supportedExperiences,ootbExperience:this.supportedExperiences[0],ootbData:dt?.ootbData,ootbExperienceStack:[],visitedExperiences:[]};this.logger.info("Ootb state after re trigger ",vt),this.ootbState$.next(vt)}ngOnDestroy(){this.unsubscribe$.next(!0),this.unsubscribe$.complete()}static{this.\u0275fac=function(Pe){return new(Pe||Ve)(X.KVO(q.bZ),X.KVO(Q.J6),X.KVO(Q.at),X.KVO(U.HF),X.KVO(ce.f),X.KVO(te.N),X.KVO(Ee.Y),X.KVO(it.H0),X.KVO(Fe.n),X.KVO(Q.NZ),X.KVO(Qe.N),X.KVO(ct.u),X.KVO(Ge.Ix),X.KVO(nt.s),X.KVO(Je.h),X.KVO(ze.s))}}static{this.\u0275prov=X.jDH({token:Ve,factory:Ve.\u0275fac,providedIn:"root"})}}return Ve})()},85539:(St,z,s)=>{"use strict";s.d(z,{$I:()=>nt,Cs:()=>it,H1:()=>Ee,H4:()=>M,Kl:()=>x,LD:()=>ct,M8:()=>m,NZ:()=>C,PA:()=>l,Ql:()=>T,Sj:()=>Je,Td:()=>Ge,Ue:()=>k,Uj:()=>Qe,bg:()=>ce,cm:()=>Q,e4:()=>X,f$:()=>Fe,g1:()=>R,ir:()=>r,lL:()=>A,qh:()=>te,s6:()=>ze,tO:()=>v,vH:()=>ae,vy:()=>S,wU:()=>u,wi:()=>g,xz:()=>P,y7:()=>E});var i=s(20924),n=s(1242),C=i.Or.Nvapp.Nvoc.ProfileType,S=i.Or.Nvapp.Overclockingnvc.Type;const M=i.Ts.Nvapp.Nvoc.GetGpuInfo,P=i.Ts.Share.Nvperfmon.EnablePerfStatsNotification,x=i.Ts.Share.Nvperfmon.RegisterPerfStatsNotifications,A=i.Ts.Nvapp.Nvoc.GetOCConfig,g=i.Ts.Nvapp.Nvoc.GetLastOcScanResults,m=i.Ts.Nvapp.Nvoc.OcScanStatusUpdatesNotifications,l=i.Ts.Nvapp.Nvoc.powerStatusNotification,r=i.Ts.Nvapp.Nvoc.GetOCAdminConsent,u=i.Ts.Nvapp.Nvoc.SetOCAdminConsent,v=i.Ts.Nvapp.Overclockingnvc.EnableBackgroundOcScan,E=i.Ts.Nvapp.Overclockingnvc.StartOcManualScan,T=i.Ts.Nvapp.Overclockingnvc.StopOcManualScan,R=i.Ts.Nvapp.Overclockingnvc.RestoreOcDefault,ae=i.Ts.Nvapp.Overclockingnvc.SetPerfProfile,k=i.Ts.Nvapp.Nvoc.GetPerfProfiles,X={featureSupported:[n.KD.PerformanceMonitoring],appliedStatus:n.T8.FALSE,automaticTuningEnabled:n.T8.FALSE,disclaimerPromptOptionSelected:n.vr.NotPresented,restoredDefaults:n.T8.FALSE,isProfileTypeToggled:n.T8.FALSE,profileType:n.E6.None,perfLimits:{temperatureLimit:0,powerLimit:0,voltageLimit:0,fanSpeedTarget:0},voltageChanged:n.T8.FALSE,powerChanged:n.T8.FALSE,temperatureChanged:n.T8.FALSE,fanSpeedChanged:n.T8.FALSE,gpuChanged:n.T8.FALSE,gpuCount:0,gpu1:"",gpu2:""},q="...",Q=[{key:"gpuClock",name:"performance.gpuClock",unit:"performance.megaHertz",value:q},{key:"gpuPower",name:"performance.gpuPower",unit:"performance.watt",value:q},{key:"gpuTemp",name:"performance.gpuTemp",unit:"performance.degreeCelcius",value:q},{key:"gpuVoltage",name:"performance.gpuVoltage",unit:"performance.volts",value:q},{key:"vramClock",name:"performance.vramClock",unit:"performance.megaHertz",value:q},{key:"gpuUtil",name:"performance.gpuUtil",unit:"performance.percentage",value:q},{key:"cpuUtil",name:"performance.cpuUtil",unit:"performance.percentage",value:q},{key:"gpuFanSpeed",name:"performance.gpuFanSpeed",unit:"performance.rpm",value:q}],ce=500;var te=function(Ke){return Ke.gpusPerfStats="gpusPerfStats",Ke.gpuIndex="gpuIndex",Ke.gSyncLamp="gSyncLamp",Ke.gpuFanSpeed="gpuFanSpeed",Ke.fanSpeed="fanSpeed",Ke}(te||{}),Ee=function(Ke){return Ke[Ke.scanInProgress=0]="scanInProgress",Ke[Ke.scanNotRunning=1]="scanNotRunning",Ke[Ke.completedSuccessfully=4]="completedSuccessfully",Ke[Ke.cancelledUserRequested=64]="cancelledUserRequested",Ke[Ke.cancelledGpuBusy=128]="cancelledGpuBusy",Ke[Ke.noResultButValid=32]="noResultButValid",Ke[Ke.cancelledPowerSwitchToDc=512]="cancelledPowerSwitchToDc",Ke}(Ee||{}),it=function(Ke){return Ke[Ke.AC=0]="AC",Ke[Ke.DC=1]="DC",Ke[Ke.UPS_LIKE=2]="UPS_LIKE",Ke[Ke.Unknown=3]="Unknown",Ke}(it||{});const Fe=new Map([[1,"performance.perfLimiters.gpuClockOffset"],[2,"performance.perfLimiters.memoryClockOffset"],[3,"performance.perfLimiters.voltageMax"],[4,"performance.perfLimiters.powerMax"],[5,"performance.perfLimiters.tempTarget"],[6,"performance.perfLimiters.fanSpeedTarget"]]);var Qe=function(Ke){return Ke[Ke.tuneDisabled=0]="tuneDisabled",Ke[Ke.tuneEnabled=1]="tuneEnabled",Ke[Ke.consentGiven=2]="consentGiven",Ke[Ke.consentNotGiven=3]="consentNotGiven",Ke[Ke.consentSaved=4]="consentSaved",Ke[Ke.consentNotSaved=5]="consentNotSaved",Ke}(Qe||{});const ct=100,Ge=1e3,nt=1e4,Je="performance.autoTune.title",ze="performance.autoTune.desc"},52960:(St,z,s)=>{"use strict";s.d(z,{u:()=>G});var i=s(91384),n=s(8619),h=s(72147),C=s(65706),S=s(14714),M=s(10174),P=s(83915),x=s(80583),A=s(26513),g=s(43848),m=s(59859),l=s(15652),r=s(26875),v=s(85539),E=s(26772),T=s(58527),R=s(58108),B=s(92602),U=s(7428),Y=s(86088),ae=s(88484);let G=(()=>{class k{constructor(q,Q,ce,te,Ee){this.genericDialog=q,this.loggingService=Q,this.perfSharedService=ce,this.nvAppBridgeService=te,this.perfTuningService=Ee,this.manualOcLimits$=new x.B7,this.selectedProfileDetails={},this.originalPerfLimits=[],this.originalFanSettings=[],this._selectedOcProfile=v.NZ.Default,this.ocProfileMap=new Map,this.perfLimitersHeadersSubject=new A.t([]),this.perfLimitersHeaders$=this.perfLimitersHeadersSubject.asObservable(),this.perfProfilesSubject=new A.t(null),this.logger=this.loggingService.getLogger("nvapp/PerfLimitersService")}refreshPerfLimitersHeadersForSearch(q=!1){return this.perfTuningService.isAutoTuneSupported().pipe((0,i.M)(Q=>{Q||this.perfLimitersHeadersSubject.next([])}),(0,n.p)(Q=>Q),(0,h.n)(()=>this.perfProfilesSubject.pipe((0,C.s)(1))),(0,n.p)(Q=>q||!Q),(0,h.n)(()=>this.getManualOCLimits()),(0,i.M)(Q=>{this.perfProfilesSubject.next(Q),this.processPerfProfiles(Q)}),(0,S.W)(Q=>(this.logger.error("Error refreshing perf limiters headers for search:",Q),this.perfProfilesSubject.next(null),this.perfLimitersHeadersSubject.next([]),(0,g.of)(void 0))),(0,M.u)(void 0))}getManualOCLimits(){const q={uiGpuId:this.perfSharedService.selectedGpu},Q=this.perfSharedService.getTelemetryParams();return this.nvAppBridgeService.executeWithPluginStatusTelemetry(v.Ue,q,Q,!1,!1).pipe((0,i.M)(ce=>{this.logger.info("Success GetPerfProfiles ",ce)}),(0,S.W)(ce=>(this.logger.error("Error during GetPerfProfiles api call - ",ce),(0,m.$)(ce))))}updateLimitsToApply(){return[(0,r.cloneDeep)(this.originalPerfLimits.map(ce=>({...ce,sliderName:v.f$.get(ce.type)})).filter(ce=>ce.isSupported)),(0,r.cloneDeep)(this.originalFanSettings.filter(ce=>ce.sliderSetting.isSupported))]}notifyPerfLimits(){const q=this.updateLimitsToApply();this.perfSharedService.setSliderCurrentValues(...q),this.perfSharedService.setProfileValue(this._selectedOcProfile),this.manualOcLimits$.next([...q,this._selectedOcProfile,this.isRestoreDisabled()])}resetPerfLimits(q){void 0!==q&&(this._selectedOcProfile=q),this.selectedProfileDetails=this.ocProfileMap.get(this._selectedOcProfile),this.originalPerfLimits=(0,r.cloneDeep)(this.selectedProfileDetails.sliders.filter(Q=>Q.type!==v.vy.GpuClock&&Q.type!==v.vy.MemoryClock)),this.originalFanSettings=[],this.originalFanSettings=(0,r.cloneDeep)(this.selectedProfileDetails.fanSettings)}updateManualOcLimitsSliders(){return this.getManualOCLimits().pipe((0,C.s)(1),(0,i.M)(q=>{this.logger.info("Received perf profiles ",q),q.profiles.forEach(Q=>{this.ocProfileMap.set(Q.profile,Q)}),this.resetPerfLimits(v.NZ.Custom),this.notifyPerfLimits()}),(0,S.W)(q=>(this.logger.error("Some error occured while updateManualOcLimitsSliders ",q),(0,m.$)(q))),(0,M.u)(!0))}isRestoreDisabled(){let q=this.ocProfileMap.get(this._selectedOcProfile);const Q=q.fanSettings[0]?.autoPower?void 0:q.fanSettings;q=Object.assign({},{...q},{profile:void 0,fanSettings:Q});let ce=this.ocProfileMap.get(v.NZ.Default);const te=Q?ce.fanSettings:void 0;return ce=Object.assign({},{...ce},{profile:void 0,fanSettings:te}),(0,r.isEqual)(q,ce)}getManualOcLimitsSliders(){return this.manualOcLimits$.asObservable()}checkConsentAndSetPerfLimits(q,Q,ce=void 0,te){let Ee=!1;return this.perfSharedService.getOCAdminConsent().pipe((0,h.n)(it=>it?(Ee=!0,void 0!==ce&&(this.resetPerfLimits(ce),[q,Q]=this.updateLimitsToApply()),this.setPerfLimits(q,Q)):this.perfSharedService.showDisclaimerAndSetConsent()),(0,h.n)(it=>it===v.Uj.consentSaved?(Ee=!0,void 0!==ce&&(this.resetPerfLimits(ce),[q,Q]=this.updateLimitsToApply()),this.setPerfLimits(q,Q)):(it!==v.Uj.tuneDisabled&&it!==v.Uj.tuneEnabled&&this.resetPerfLimits(ce),(0,g.of)(it))),(0,h.n)(it=>(Ee&&this.perfSharedService.setLimiterDataChange(te,ce),this.updateManualOcLimitsSliders().pipe((0,M.u)(it)))))}syncFanSettings(q){if(0===q.length)return q;const Q=q[0];return q.map(ce=>({...ce,autoPower:Q.autoPower,isVisible:Q.isVisible,sliderSetting:{...Q.sliderSetting}}))}setPerfLimits(q,Q){Q=this.syncFanSettings(Q);const ce={uiGpuId:this.perfSharedService.selectedGpu,profile:+v.NZ.Custom,sliders:q,fanSettings:Q},te=this.perfSharedService.getTelemetryParams();return this.nvAppBridgeService.executeWithPluginStatusTelemetry(v.vH,ce,te,!1,!1).pipe((0,P.T)(Ee=>{if(this.logger.info("Success SetPerfProfile ",Ee),!Ee.result)throw this.logger.error("Some failure while SetPerfProfile with values ",ce),new Error("Some failure while SetPerfProfile with values");return this.logger.info("Success SetPerfProfile with values",ce),Ee.result}),(0,M.u)(v.Uj.tuneEnabled),(0,S.W)(Ee=>(this.logger.error("Error during SetPerfProfile api call - ",Ee),(0,m.$)(Ee))))}showPerfLimitsInfoDialog(){const Q=this.genericDialog.open({panelClass:["dialogPaddingRemove","description-gap"],data:{headerText:{text:"performance.perfLimiters.title"},primaryButton:{text:"common.close"},autoFocusOnPrimaryButton:E.X6,bodyText:{text:"performance.perfLimiters.info"}}});this.perfLimitsDialogSub?.unsubscribe(),this.perfLimitsDialogSub=(0,l.O4)(Q.primaryButtonClick,Q.afterClosed()).pipe((0,C.s)(1)).subscribe(()=>Q.close(),ce=>this.logger.error("Error while clicking auto tune info dialog",ce))}hasSupportedSliders(q){return q.some(Q=>Q.isSupported)}processPerfProfiles(q){const Q=[];if(q.profiles.some(te=>this.hasSupportedSliders(te.sliders))){Q.push("performance.perfLimiters.title");const te=q.profiles.reduce((Fe,Qe)=>[...Fe,...Qe.sliders],[]).filter(Fe=>Fe.isSupported).map(Fe=>v.f$.get(Fe.type)).filter(Fe=>!!Fe),Ee=new Set(te);Q.push(...Ee),q.profiles.some(Fe=>Fe.fanSettings?.some(Qe=>Qe.isVisible))&&Q.push("performance.perfLimiters.fanSpeedTarget")}this.logger.info("Perf limiters headers initialized:",Q),this.perfLimitersHeadersSubject.next(Q)}static{this.\u0275fac=function(Q){return new(Q||k)(T.KVO(R.uh),T.KVO(B.J6),T.KVO(U.k),T.KVO(Y.S),T.KVO(ae.K))}}static{this.\u0275prov=T.jDH({token:k,factory:k.\u0275fac,providedIn:"root"})}}return k})()},7428:(St,z,s)=>{"use strict";s.d(z,{k:()=>k});var i=s(26513),n=s(43848),h=s(59859),C=s(15652),S=s(65706),M=s(72147),P=s(83915),x=s(14714),A=s(75707),g=s(10174),m=s(85539),l=s(83128),r=s(40848),u=s(26875),E=s(26772),T=s(58527),R=s(92602),B=s(96306),U=s(58108),Y=s(86088),ae=s(37898),G=s(78812);let k=(()=>{class X{constructor(Q,ce,te,Ee,it,Fe,Qe){this.loggingService=Q,this.errorHandlerService=ce,this.genericDialog=te,this.hardwareInfoService=Ee,this.nvAppBridgeService=it,this.performanceMeasureService=Fe,this.telemetryService=Qe,this.gpuPerfTuningData=m.e4,this.gpuPerfTuningDataSent={},this._selectedGpu=0,this._installedDDVersion="",this._gpuName="",this.gpuInfoData$=new i.t([]),this.logger=this.loggingService.getLogger("nvapp/PerfSharedService")}initialize(){this.initializeGpuInfo(),this.initializeDeviceDriverInfo()}get selectedGpu(){return this._selectedGpu}set selectedGpu(Q){this._selectedGpu=Q}get installDDVersion(){return this._installedDDVersion}get gpuName(){return this._gpuName}set gpuName(Q){this._gpuName=Q}get gpuInfo(){return this.gpuInfoData$.asObservable()}getTelemetryParams(){return{gpuName:this.gpuName,installDDVersion:this.installDDVersion}}initializeDeviceDriverInfo(){this.hardwareInfoService.getGenericInfo(!1).pipe((0,S.s)(1)).subscribe(Q=>{this.logger.info("Generic info fetched:",JSON.stringify(Q)),this._installedDDVersion=Q.DriverVersion},Q=>{this.logger.error("Error during GetGenericInfo api call - ",Q?.message)})}initializeGpuInfo(){this.nvAppBridgeService.executeWithPluginStatusTelemetry(m.H4,{},{},!1,!1).pipe((0,S.s)(1)).subscribe(Q=>{if(Q.result){this.gpuInfoData$.next(Q.gpus);let{gpuCount:ce,gpu1:te,gpu2:Ee}=this.gpuPerfTuningData;const it=Q.gpus;this.gpuName=Q.gpus[this.selectedGpu]?.Name,ce=it.length,te=it[0]?.Name||"",Ee=it[1]?.Name||"",this.gpuPerfTuningData={...this.gpuPerfTuningData,gpuCount:ce,gpu1:te,gpu2:Ee},this.gpuInfoData$.next(Q.gpus)}else this.gpuInfoData$.next([]),this.logger.error("Error during GetGpuInfo api call, returned False")},Q=>{this.logger.error("Error during GetGpuInfo api call - ",Q?.message),this.gpuInfoData$.next([])})}showErrorToast(Q){this.logger.error(Q),this.errorHandlerService.showToastMessage({text:"common.somethingWentWrong"})}showDisclaimerAndSetConsent(){return this.showTuningDisclaimer().pipe((0,M.n)(Q=>Q?this.setOCAdminConsent(!0).pipe((0,M.n)(ce=>ce?(this.logger.info("Consent for auto tuning saved."),(0,n.of)(m.Uj.consentSaved)):(this.logger.info("User consent for auto tuning not saved, will not start auto tuning."),(0,n.of)(m.Uj.consentNotSaved)))):(this.gpuPerfTuningData.disclaimerPromptOptionSelected=r.vr.Cancelled,this.logger.info("Consent not given, not starting background auto tuning"),(0,n.of)(m.Uj.consentNotGiven))))}getOCAdminConsent(){const Q=this.getTelemetryParams();return this.nvAppBridgeService.executeWithPluginStatusTelemetry(m.ir,{},Q,!1,!1).pipe((0,P.T)(ce=>(ce&&(this.gpuPerfTuningData.disclaimerPromptOptionSelected=r.vr.ConsentAlreadyPresent),this.logger.info("Success GetOCAdminConsent ",ce),ce.adminConsent)),(0,x.W)(ce=>(this.logger.error("Error during GetOCAdminConsent api call - ",ce),(0,h.$)(ce))))}setOCAdminConsent(Q){const ce={adminConsent:Q},te=this.getTelemetryParams();return this.nvAppBridgeService.executeWithPluginStatusTelemetry(m.wU,ce,te,!1,!1).pipe((0,P.T)(Ee=>(Ee?(this.gpuPerfTuningData.disclaimerPromptOptionSelected=Ee.result?r.vr.Agreed:r.vr.UacCancelled,this.logger.info("Success SetOCAdminConsent with consent set to ",Q)):(this.gpuPerfTuningData.disclaimerPromptOptionSelected=r.vr.Cancelled,this.logger.error("Some failure while SetOCAdminConsent, not setting auto tuning admin consent")),Ee.result)),(0,x.W)(Ee=>(this.gpuPerfTuningData.disclaimerPromptOptionSelected=r.vr.Cancelled,this.logger.error("Error during SetOCAdminConsent api call - ",Ee),(0,h.$)(Ee))))}updatePerfMarkers(Q){this.performanceMeasureService.markNvAppPerformanceMarkers(Q,l.fR.Performance)}sendGpuPerfTuningEvent(){if(!(0,u.isEqual)(this.gpuPerfTuningDataSent,this.gpuPerfTuningData)){this.gpuPerfTuningDataSent=(0,u.cloneDeep)(this.gpuPerfTuningData),this.logger.info("Sending gpuPerfTuningEventData",JSON.stringify(this.gpuPerfTuningData));const Q=new r.m_(this.gpuPerfTuningData);this.telemetryService.push(Q)}}setSliderCurrentValues(Q,ce){const te=this.gpuPerfTuningData.perfLimits;Q?.forEach(Ee=>{switch(Ee.type){case m.vy.Power:te.powerLimit=Ee.current;break;case m.vy.Temperature:te.temperatureLimit=Ee.current;break;case m.vy.Voltage:te.voltageLimit=Ee.current}}),te.fanSpeedTarget=ce[0]?.sliderSetting?.current??0,this.gpuPerfTuningData={...this.gpuPerfTuningData,perfLimits:te}}setProfileValue(Q){let ce;switch(Q){case m.NZ.Default:ce=r.E6.Default;break;case m.NZ.Custom:ce=r.E6.Custom;break;default:ce=r.E6.Default}this.gpuPerfTuningData.profileType=ce}setLimiterDataChange(Q,ce=void 0){let{fanSpeedChanged:te,powerChanged:Ee,voltageChanged:it,temperatureChanged:Fe}=this.gpuPerfTuningData;if(void 0!==ce)Ee=r.T8.TRUE,it=r.T8.TRUE,Fe=r.T8.TRUE,te=te===r.T8.TRUE||Q===m.vy.Fan?r.T8.TRUE:r.T8.FALSE;else switch(Q){case m.vy.Power:Ee=r.T8.TRUE;break;case m.vy.Voltage:it=r.T8.TRUE;break;case m.vy.Temperature:Fe=r.T8.TRUE;break;case m.vy.Fan:te=r.T8.TRUE}this.gpuPerfTuningData={...this.gpuPerfTuningData,fanSpeedChanged:te,powerChanged:Ee,voltageChanged:it,temperatureChanged:Fe}}showTuningDisclaimer(){return this.hardwareInfoService.getIsLaptopSystem().pipe((0,S.s)(1),(0,A.ZZ)(Q=>{this.logger.info("Device is laptop:",Q);const te=this.genericDialog.open({panelClass:["dialogPaddingRemove"],data:{headerText:{text:"performance.disclaimer.title"},primaryButton:{text:"eula.agreeAndContinue"},secondaryButton:{text:"common.cancel"},autoFocusOnPrimaryButton:E.X6,bodyText:{text:Q?"performance.disclaimer.perfLimitNotSupportedMessage":"performance.disclaimer.message"}}}),Ee=te.primaryButtonClick.pipe((0,g.u)(!0)),it=te.secondaryButtonClick.pipe((0,g.u)(!1)),Fe=te.afterClosed().pipe((0,g.u)(!1));return(0,C.O4)(Ee,it,Fe).pipe((0,S.s)(1),(0,M.n)(Qe=>(te.close(),(0,n.of)(Qe))),(0,x.W)(Qe=>(this.logger.error("Error while clicking auto tune info dialog",Qe),(0,h.$)(Qe))))}),(0,x.W)(Q=>(this.logger.error("Error while clicking auto tune info dialog",Q),(0,h.$)(Q))))}systemIsLaptop(){return this.hardwareInfoService.getIsLaptopSystem().pipe((0,S.s)(1))}static{this.\u0275fac=function(ce){return new(ce||X)(T.KVO(R.J6),T.KVO(B.c),T.KVO(U.uh),T.KVO(R.SQ),T.KVO(Y.S),T.KVO(ae.M),T.KVO(G.H0))}}static{this.\u0275prov=T.jDH({token:X,factory:X.\u0275fac,providedIn:"root"})}}return X})()},31454:(St,z,s)=>{"use strict";s.d(z,{q:()=>R});var i=s(26513),n=s(59859),h=s(36466),C=s(43848),S=s(3496),M=s(65706),P=s(83915),x=s(91384),A=s(14714),g=s(72147),m=s(10174),l=s(85539),r=s(94645),u=s(58527),v=s(92602),E=s(7428),T=s(86088);let R=(()=>{class B{get perfMetricsForDisplay(){return this._perfMetricsForDisplay}constructor(Y,ae,G,k){this.loggingService=Y,this.perfSharedService=ae,this.nvAppBridgeService=G,this.dbService=k,this._perfMetricsForDisplay=l.cm,this.metricNameSubject=new i.t(this.getKeysFromMetricsData(l.cm)),this.performanceMetricNames$=this.metricNameSubject.asObservable(),this.logger=this.loggingService.getLogger("nvapp/PerfStatisticsService")}getKeysFromMetricsData(Y){return Y.map(ae=>ae.name)}initialize(){this.globalStore=this.dbService.getGlobalStore(r.xI.GlobalStore),this.globalStore.getItem(r.xI.PerfStatsSupportState).pipe((0,M.s)(1)).subscribe(Y=>{Y&&l.qh.gpuFanSpeed in Y&&!Y[l.qh.gpuFanSpeed]&&this._perfMetricsForDisplay.forEach((ae,G)=>{ae.key===l.qh.gpuFanSpeed&&(this._perfMetricsForDisplay.splice(G,1),this.notifyMetricNamesUpdateToSearch())})},Y=>{this.logger.error("Could not initialize perf metrics from db store",Y)})}enablePerfStatsNotifications(Y){const ae={isEnable:Y,intervalMS:l.bg},G=this.perfSharedService.getTelemetryParams();return this.logger.info("Calling EnablePerfStatsNotification with param: ",ae),this.nvAppBridgeService.executeWithPluginStatusTelemetry(l.xz,ae,G,!1,!1).pipe((0,P.T)(k=>(k.result?this.logger.info(`Perf Stats notifications has been ${Y?"enabled":"disabled"}.`):this.logger.error("Some error occured, perf Stats notifications is disabled."),k.result)),(0,x.M)(k=>{k&&this.initCheckForNotApplicableMetrics()}),(0,A.W)(k=>(this.logger.error("Error during EnablePerfStatsNotification api call - ",k),(0,n.$)(k))))}disablePerfStatsNotifications(){this.stopPerfNotificationSub?.unsubscribe(),this.stopPerfNotificationSub=this.enablePerfStatsNotifications(!1).pipe((0,M.s)(1)).subscribe(h.l,h.l)}registerPerfStatsNotifications(){const Y=this.perfSharedService.getTelemetryParams();return this.nvAppBridgeService.executeWithPluginStatusTelemetry(l.Kl,{},Y,!1,!1).pipe((0,P.T)(ae=>(delete ae._return_code,delete ae._return_status,delete ae._return_internal,Object.assign({},ae))),(0,A.W)(ae=>(this.logger.error("Error during RegisterPerfStatsNotifications api call - ",ae),(0,n.$)(ae))))}enableAndRegisterPerfStatsNotifications(){return this.enablePerfStatsNotifications(!0).pipe((0,g.n)(Y=>Y?this.registerPerfStatsNotifications():(this.logger.info("Failed to enable PerfStatsNotifications"),(0,C.of)(null))),(0,A.W)(Y=>(this.logger.error("Error while trying to enablePerfStatsNotifications",Y),(0,n.$)(Y))),(0,g.n)(Y=>Y?(this.updateMetricsForDisplay(Y),(0,C.of)(this._perfMetricsForDisplay)):(0,C.of)(null)),(0,A.W)(Y=>(this.logger.error("Error while trying to process perf metrics",Y),(0,n.$)(Y))))}initCheckForNotApplicableMetrics(){(0,S.O)(l.$I,-1).pipe((0,M.s)(1),(0,g.n)(()=>{let Y=!0;return this._perfMetricsForDisplay.forEach((ae,G)=>{isNaN(parseInt(ae.value.toString(),10))&&(ae.value=-1,ae.key===l.qh.gpuFanSpeed&&(this._perfMetricsForDisplay.splice(G,1),Y=!1,this.notifyMetricNamesUpdateToSearch()))}),this.globalStore.setItem(r.xI.PerfStatsSupportState,{gpuFanSpeed:Y}).pipe((0,m.u)(Y))})).subscribe(Y=>{this.logger.info("Saved fanSpeedSupported as ",Y)},Y=>{this.logger.error("Timer errored!",Y)})}notifyMetricNamesUpdateToSearch(){this.metricNameSubject.next(this.getKeysFromMetricsData(this._perfMetricsForDisplay))}updateMetricsForDisplay(Y){Object.keys(Y).forEach(G=>{const k=Y[G][this.perfSharedService.selectedGpu];switch(G){case l.qh.gpusPerfStats:this.fetchPerfStatsFromSubMetrics(k);break;case l.qh.gSyncLamp:break;default:const X=Y[G].toString();this.updatePerfMetricDisplayData(G,X)}})}fetchPerfStatsFromSubMetrics(Y){let ae;Y&&Object.keys(Y).filter(k=>k!==l.qh.gpuIndex).forEach(k=>{ae=k===l.qh.gpuFanSpeed&&Y[k].length>0?Y[k][0][l.qh.fanSpeed].toString():Y[k].toString(),this.updatePerfMetricDisplayData(k,ae)})}updatePerfMetricDisplayData(Y,ae){const G=l.cm.find(k=>k.key===Y);if(G){const k=this._perfMetricsForDisplay.findIndex(X=>X.key===G.key);k>=0&&(this._perfMetricsForDisplay[k].value=ae)}}static{this.\u0275fac=function(ae){return new(ae||B)(u.KVO(v.J6),u.KVO(E.k),u.KVO(T.S),u.KVO(v.at))}}static{this.\u0275prov=u.jDH({token:B,factory:B.\u0275fac,providedIn:"root"})}}return B})()},88484:(St,z,s)=>{"use strict";s.d(z,{K:()=>G});var i=s(65706),n=s(83915),h=s(14714),C=s(4208),S=s(72147),M=s(10174),P=s(26513),x=s(80583),A=s(15652),g=s(59859),m=s(3496),l=s(43848),r=s(16229),u=s(85539),v=s(1242),E=s(26772),T=s(58527),R=s(58108),B=s(92602),U=s(7428),Y=s(96542),ae=s(86088);let G=(()=>{class k{constructor(q,Q,ce,te,Ee,it){this.genericDialog=q,this.loggingService=Q,this.perfSharedService=ce,this.translateService=te,this.nvAppBridgeService=Ee,this.dateHandlerService=it,this.ocScanResult={},this.isDcPower$=new P.t(!1),this.convertedCompletionTime$=new P.t(""),this.scanResultNotification$=new x.B7,this.stopScanProgress$=new P.t(!1),this.logger=this.loggingService.getLogger("nvapp/PerfTuningService")}initialize(q){this.logger.info("Initializing..."),this.registerOcScanStatusUpdatesNotifications(q),this.registerPowerStatusNotifications(q)}get isDcPowerMode(){return this.isDcPower$.asObservable()}get getConvertedCompletionTime(){return this.convertedCompletionTime$.asObservable()}showAutoTuneInfoDialog(){const Q=this.genericDialog.open({panelClass:["dialogPaddingRemove","description-gap"],data:{headerText:{text:u.Sj},primaryButton:{text:"common.close"},autoFocusOnPrimaryButton:E.X6,bodyText:{text:"performance.autoTune.info"}}});this.autoTuneDialogSub?.unsubscribe(),this.autoTuneDialogSub=(0,A.O4)(Q.primaryButtonClick,Q.afterClosed()).pipe((0,i.s)(1)).subscribe(()=>Q.close(),ce=>this.logger.error("Error while clicking auto tune info dialog",ce))}isAutoTuneSupported(){const q={uiGpuId:this.perfSharedService.selectedGpu},Q=this.perfSharedService.getTelemetryParams();return this.nvAppBridgeService.executeWithPluginStatusTelemetry(u.lL,q,Q,!1,!1).pipe((0,n.T)(ce=>{const te=ce?.ocConfig?.manualOcScannerSupported&&ce?.ocConfig?.backgroundOcScannerSupported;return this.logger.info(`OC Auto tune is ${te?"supported":"not supported"} `),te&&!this.perfSharedService.gpuPerfTuningData.featureSupported.includes(v.KD.AutomaticOverclocking)&&this.perfSharedService.gpuPerfTuningData.featureSupported.push(v.KD.AutomaticOverclocking),te}),(0,h.W)(ce=>(this.logger.error("Error during GetOCConfig api call - ",ce),(0,g.$)(ce))))}getLastOcScanResults(){const q={uiGpuId:this.perfSharedService.selectedGpu},Q=this.perfSharedService.getTelemetryParams();return this.nvAppBridgeService.executeWithPluginStatusTelemetry(u.wi,q,Q,!1,!1).pipe((0,n.T)(ce=>(this.logger.info("Success GetLastOcScanResults ",ce),ce.result)),(0,h.W)(ce=>(this.logger.error("Error during GetLastOcScanResults api call - ",ce),(0,g.$)(ce))))}registerOcScanStatusUpdatesNotifications(q){const Q=this.perfSharedService.getTelemetryParams();this.nvAppBridgeService.executeWithPluginStatusTelemetry(u.M8,{},Q,!1,!1).pipe((0,C.Q)(q)).subscribe(ce=>{this.logger.info("Success OcScanStatusUpdatesNotifications ",ce),this.ocScanResult=ce,this.updateCompletionTimeInText(),this.updateGpuPerfTuningData(),this.scanResultNotification$.next(ce)},ce=>{this.logger.error("Error during OcScanStatusUpdatesNotifications api call - ",ce),this.scanResultNotification$.error(ce)},()=>this.logger.info("OcScanStatusNotification sub completed"))}updateGpuPerfTuningData(){0!==this.ocScanResult.memoryOcOffsetMhz||0!==this.ocScanResult.averageGpuClockOffsetMhz?(this.perfSharedService.gpuPerfTuningData.appliedStatus=v.T8.TRUE,this.perfSharedService.gpuPerfTuningData.restoredDefaults=v.T8.FALSE):this.perfSharedService.gpuPerfTuningData.appliedStatus=v.T8.FALSE}registerPowerStatusNotifications(q){const Q=this.perfSharedService.getTelemetryParams();this.nvAppBridgeService.executeWithPluginStatusTelemetry(u.PA,{},Q,!1,!1).pipe((0,C.Q)(q)).subscribe(ce=>{this.logger.info("Power Status is",ce?.powerStatus),this.isDcPower$.next(ce.powerStatus===u.Cs.DC)},ce=>{this.logger.error("Error during PowerStatusNotification api call - ",ce),this.isDcPower$.next(!1)},()=>this.logger.info("PowerStatusNotification sub completed"))}getScanResultNotification(){return this.scanResultNotification$.asObservable()}getAutoTuneToggleState(){return this.scanResultNotification$.pipe((0,n.T)(q=>q.stable||0===q.type),(0,h.W)(q=>(this.logger.error("Error during getAutoTuneToggleState call - ",q),(0,g.$)(q))))}getCompletionStatus(q){return[u.H1.completedSuccessfully,u.H1.cancelledUserRequested,u.H1.cancelledGpuBusy,u.H1.cancelledPowerSwitchToDc,u.H1.noResultButValid].forEach(ce=>{(q&ce)===ce&&(q=ce)}),q}updateCompletionTimeInText(){this.timeIntervalSub?.unsubscribe(),this.ocScanResult?.completionTime?this.timeIntervalSub=(0,m.O)(0,6e4).subscribe(()=>{this.setCompletionTime()},q=>this.logger.error("Error getting scan completion time",q)):this.convertedCompletionTime$.next("")}setCompletionTime(){const q=this.dateHandlerService.fromNow(new Date(Math.floor(this.ocScanResult?.completionTime/1e3)),{addSuffix:!0});this.convertedCompletionTime$.next(this.translateService.instant("performance.updated",{completionTime:q}))}enableBackgroundOcScan(q){const Q={enable:q,uiGpuId:this.perfSharedService.selectedGpu};this.logger.info("Calling EnableBackgroundOcScan with param",Q);const ce=this.perfSharedService.getTelemetryParams();return this.nvAppBridgeService.executeWithPluginStatusTelemetry(u.tO,Q,ce,!1,!1).pipe((0,n.T)(te=>{if(this.perfSharedService.gpuPerfTuningData.automaticTuningEnabled=Q.enable?v.T8.TRUE:v.T8.FALSE,te.result)return this.logger.info("Success EnableBackgroundOcScan ",te),q;{const Ee=`Some error occured in EnableBackgroundOcScan ${te}`;throw this.logger.error(Ee),new Error(Ee)}}),(0,h.W)(te=>(this.logger.error("Error during EnableBackgroundOcScan api call - ",te),(0,g.$)(te))))}startOcScan(){const q={uiGpuId:this.perfSharedService.selectedGpu},Q=this.perfSharedService.getTelemetryParams();return this.nvAppBridgeService.executeWithPluginStatusTelemetry(u.y7,q,Q,!1,!1).pipe((0,n.T)(ce=>ce.result?(this.logger.info("Success StartOcManualScan ",ce),ce.result):(this.logger.error("Some error occured in StartOcManualScan ",ce),!1)),(0,h.W)(ce=>(this.logger.error("Error during StartOcManualScan api call - ",ce),(0,g.$)(ce))))}stopOcScan(){this.stopScanProgress$.next(!0);const q={uiGpuId:this.perfSharedService.selectedGpu},Q=this.perfSharedService.getTelemetryParams();return this.nvAppBridgeService.executeWithPluginStatusTelemetry(u.Ql,q,Q,!1,!1).pipe((0,n.T)(ce=>{if(ce.result)return this.logger.info("Success StopOcManualScan ",ce),ce.result;{const te=`Some error occured in StopOcManualScan ${ce}`;throw this.logger.error(te),new Error(te)}}),(0,h.W)(ce=>(this.logger.error("Error during StopOcManualScan api call - ",ce),(0,g.$)(ce))))}getStopScanProgress(){return this.stopScanProgress$.asObservable()}resetStopScanButton(){this.stopScanProgress$.next(!1)}checkConsentAndEnableBgOcScan(q){return this.perfSharedService.getOCAdminConsent().pipe((0,S.n)(Q=>Q?this.toggleBackgroundOcScan(q):this.perfSharedService.showDisclaimerAndSetConsent()),(0,S.n)(Q=>Q===u.Uj.consentSaved?this.toggleBackgroundOcScan(q):(0,l.of)(Q)))}toggleBackgroundOcScan(q){return q?this.enableBgOcScanAndStartScan().pipe((0,n.T)(Q=>Q?u.Uj.tuneEnabled:u.Uj.tuneDisabled)):this.enableBackgroundOcScan(!1).pipe((0,M.u)(u.Uj.tuneDisabled))}enableBgOcScanAndStartScan(){return this.enableBackgroundOcScan(!0).pipe((0,S.n)(q=>q?this.startOcScan():(this.logger.error("Background Oc scan not enabled, Not starting Oc scan"),(0,l.of)(!1))))}consentForRestore(){const Q=this.genericDialog.open({panelClass:["dialogPaddingRemove"],data:{headerText:{text:"performance.autoTune.restoreTitle"},primaryButton:{text:"performance.autoTune.restoreButtonText"},secondaryButton:{text:"common.cancel"},autoFocusOnPrimaryButton:E.X6,bodyText:{text:"performance.autoTune.restoreMessage"}}}),ce=Q.primaryButtonClick.pipe((0,M.u)(!0)),te=Q.secondaryButtonClick.pipe((0,M.u)(!1)),Ee=Q.afterClosed().pipe((0,M.u)(!1));return(0,A.O4)(ce,te,Ee).pipe((0,i.s)(1),(0,S.n)(it=>(Q.close(),it?this.restoreOcDefaults():(0,l.of)(u.Uj.consentNotGiven))),(0,h.W)(it=>(this.logger.error("Error while clicking auto tune info dialog",it),(0,g.$)(it))))}checkConsentAndRestoreOc(){return this.perfSharedService.getOCAdminConsent().pipe((0,S.n)(q=>q?this.consentForRestore():this.perfSharedService.showDisclaimerAndSetConsent()),(0,S.n)(q=>q===u.Uj.consentSaved||q===u.Uj.consentGiven?this.restoreOcDefaults():(0,l.of)(q)))}restoreOcDefaults(){const q={uiGpuId:this.perfSharedService.selectedGpu},Q=this.perfSharedService.getTelemetryParams();return this.nvAppBridgeService.executeWithPluginStatusTelemetry(u.g1,q,Q,!1,!1).pipe((0,n.T)(ce=>{if(ce.result)return this.logger.info("Success RestoreOcDefault ",ce),this.perfSharedService.gpuPerfTuningData.appliedStatus=v.T8.FALSE,this.perfSharedService.gpuPerfTuningData.restoredDefaults=v.T8.TRUE,ce.result;throw new Error(`Some error occured while RestoreOcDefault, ${ce}`)}),(0,S.n)(ce=>ce?this.getLastOcScanResults():(this.logger.error("Some error occured in RestoreOcDefault "),(0,l.of)(!1))),(0,M.u)(u.Uj.tuneEnabled),(0,h.W)(ce=>(this.logger.error("Error during RestoreOcDefault api call - ",ce),(0,g.$)(ce))))}learnMoreAutoTune(q,Q){const ce=Q?.completionStatus,Qe=q?"performance.autoTune.learnMoreMessageDc":"performance.autoTune.learnMoreMessage",ct=this.translateService.instant((ce&u.H1.cancelledGpuBusy)===u.H1.cancelledGpuBusy?"performance.autoTune.interruptedByGpuText":(ce&u.H1.cancelledPowerSwitchToDc)===u.H1.cancelledPowerSwitchToDc?"performance.autoTune.laptopNotPluggedInError":(ce&u.H1.cancelledUserRequested)===u.H1.cancelledUserRequested?"performance.autoTune.interruptedByUserText":"performance.autoTune.interruptedByError"),Ge=this.translateService.instant(Qe,{interruptedText:ct}),Je=this.genericDialog.open({panelClass:["dialogPaddingRemove"],disableClose:!1,data:{headerText:{text:"performance.autoTune.title"},primaryButton:q?{text:"common.close"}:{text:"performance.autoTune.tuneNow",accentColor:!0},secondaryButton:q?void 0:{text:"common.close"},autoFocusOnPrimaryButton:E.X6,bodyText:{text:Ge,translated:!0}}}),ze=Je.primaryButtonClick.pipe((0,i.s)(1),(0,M.u)(!q)),Ke=Je.secondaryButtonClick.pipe((0,i.s)(1),(0,M.u)(!1));return(0,r.h)(ze,Ke).pipe((0,i.s)(1),(0,S.n)(Ve=>(Je.close(),Ve?this.checkConsentAndEnableBgOcScan(!0):(0,l.of)(u.Uj.consentNotGiven))),(0,h.W)(Ve=>(this.logger.error("Error while clicking auto tune learn more dialog",Ve),(0,g.$)(Ve))))}getPerformanceTuningHeadersForSearch(){return this.isAutoTuneSupported().pipe((0,n.T)(q=>q?[u.Sj,u.s6]:[]),(0,h.W)(q=>(this.logger.error("Error getting performance tuning headers:",q),(0,l.of)([]))))}static{this.\u0275fac=function(Q){return new(Q||k)(T.KVO(R.uh),T.KVO(B.J6),T.KVO(U.k),T.KVO(Y.c$),T.KVO(ae.S),T.KVO(B.I_))}}static{this.\u0275prov=T.jDH({token:k,factory:k.\u0275fac,providedIn:"root"})}}return k})()},42673:(St,z,s)=>{"use strict";s.d(z,{BY:()=>C,HN:()=>M,X3:()=>S});var i=s(35965),n=s(1242);const h=["gcV","lg","gLg","dIDa","cID","sM","osC","dch","osB","is6","IsB","GFPV","IsQ","iLp","isO","isSLI","gIsB","cSR","uCst"],C={name:"getShadowPlayReady",controller:i.GU.GfeContent,endpointPath:"com.nvidia.services.GFEClientContent_NG.getShadowPlayReady/",paramMask:h,method:i.Xt.Get,reportRequestData:{originalService:n.Uu.Gfwsl,serviceUseCase:n.OO.GetShadowPlayReady}},S={name:"getPhotoModeReady",controller:i.GU.GfeContent,endpointPath:"com.nvidia.services.GFEClientContent_NG.getPhotoModeReady/",paramMask:h,method:i.Xt.Get,reportRequestData:{originalService:n.Uu.Gfwsl,serviceUseCase:n.OO.GetPhotoModeReady}},M={name:"getFreeStyleReady",controller:i.GU.GfeContent,endpointPath:"com.nvidia.services.GFEClientContent_NG.getFreeStyleReady/",paramMask:h,method:i.Xt.Get,reportRequestData:{originalService:n.Uu.Gfwsl,serviceUseCase:n.OO.GetFreeStyleReady}}},148:(St,z,s)=>{"use strict";s.d(z,{$F:()=>Ve,A6:()=>P,Au:()=>m,CM:()=>ae,E7:()=>Ee,Ey:()=>Je,F$:()=>ze,GO:()=>Qe,GY:()=>Ge,KF:()=>r,L0:()=>C,N:()=>Fe,O$:()=>q,OP:()=>G,Qq:()=>R,Tj:()=>te,W7:()=>S,Yb:()=>U,Yw:()=>Q,Yz:()=>Y,_8:()=>g,_z:()=>u,de:()=>v,eg:()=>B,g0:()=>l,jq:()=>A,l5:()=>k,ln:()=>M,mE:()=>it,mZ:()=>x,nH:()=>T,nJ:()=>nt,nM:()=>E,oY:()=>ct,pJ:()=>X,rf:()=>Ke,rl:()=>ce,x_:()=>dt,yH:()=>$e});var i=s(70279),n=s(42673),h=s(69568);const C=[{title:"preferences.about.releaseHighlights"},{title:"settings.licenseAgreement",redirectPage:i.r7.TermsConditions},{title:"preferences.about.accountTerms",redirectPage:i.r7.AccountTerms},{title:"preferences.about.osslicense",redirectPage:i.r7.OssLicenses}],S={title:"preferences.notifications.windowsNotificationLink"},M=500,P=1e3,x="about",A=2,g={header:"layout.features.overlay.title",descriptions:[],isSectionFeature:!0},m={featureName:n.BY.name,icon:"",header:"preferences.featureReadiness.share.header",descriptions:["preferences.featureReadiness.share.description"],openStateDescriptions:[],isReady:!0},l={featureName:n.X3.name,icon:"",header:"preferences.featureReadiness.ansel.header",descriptions:["preferences.featureReadiness.ansel.description"],isReady:!0},r={featureName:n.HN.name,icon:"",header:"preferences.featureReadiness.freestyle.header",descriptions:["preferences.featureReadiness.freestyle.description"],isReady:!0},u={featureName:"photoModeGameFilter",header:"preferences.featureReadiness.photoModeGameFilter.header",descriptions:["preferences.featureReadiness.photoModeGameFilter.description"],icon:"",isReady:!0},v={header:"preferences.notifications.title",descriptions:[],isSectionFeature:!0},E={header:"preferences.about.betaTitle",descriptions:["preferences.about.betaDescription"]},T="photoMode",R=404,B=[{header:"preferences.about.privacy.requiredConsent.header",desc:"preferences.about.privacy.requiredConsent.description",checked:!0,disabled:!0},{header:"preferences.about.privacy.functionalConsent.header",desc:"preferences.about.privacy.functionalConsent.description"}],U={header:"preferences.about.privacy.technicalConsent.header",desc:"preferences.about.privacy.technicalConsent.description"},Y=[{title:"preferences.about.privacyPortal",redirectPage:i.r7.PrivacyPortal},{title:"preferences.about.privacyPolicy",redirectPage:i.r7.PrivacyPolicy}],ae={appTitle:"preferences.about.appTitle",appVersion:"layout.apps.version",copyRight:"preferences.about.nvidiaRightsReserved",iconName:"nvidia_symbol"},G={isEnabled:!1},k={isEnabled:!1},X={isEnabled:!1},q={state:h.rz.DISABLE},Q={header:"preferences.gameScan.scanLocationsCount",descriptions:[],primaryActionButton:{text:"preferences.gameScan.scanLocationsButton",visible:!0,disabled:!1},isSectionFeature:!1},ce={header:"drivers.title",descriptions:[],isSectionFeature:!0},te={header:"preferences.displayMode",descriptions:[],isSectionFeature:!0},Ee={header:"preferences.autoDownloadDrivers",descriptions:[],featureName:"autoDriverDownload"},it={header:"preferences.systemTray",descriptions:[],featureName:"displayModeTray"},Fe={header:"preferences.gameScan.autoOptimize",descriptions:[],featureName:"autoOptimize",isSectionFeature:!1},Qe={title:"preferences.gameScan.supportedGamesLink",redirectPage:i.r7.SupportedGamesApps},ct={title:"preferences.gameScan.supportedGamesLink",redirectPage:i.r7.SupportedProvisApps},Ge={title:"preferences.featureReadiness.systemRequirementLink",redirectPage:i.r7.SystemReq},nt={featureName:"controlPanelFeature",header:"preferences.featureReadiness.controlPanelFeature.header",descriptions:["preferences.featureReadiness.controlPanelFeature.description"],icon:""},Je={featureName:"languageFeature",header:"preferences.featureReadiness.languageFeature.header",descriptions:["preferences.featureReadiness.languageFeature.description"],icon:""},ze={featureName:"themeFeature",header:"preferences.featureReadiness.themeFeature.header",icon:""},Ke=5e3,Ve={visible:!0,value:!1},$e={visible:!1,value:!1},dt={autoDownloadFeature:{...Ee,toggle:$e},isDdsSupported:!1,displayModeTrayFeature:{...it,toggle:$e}}},69568:(St,z,s)=>{"use strict";s.d(z,{GG:()=>n,II:()=>A,IU:()=>S,ST:()=>C,VL:()=>P,nX:()=>M,py:()=>x,rz:()=>h});var i=s(20924),n=i.Or.Nvapp.Nvcpldisplayplugin.UiElemType,h=i.Or.Nvapp.Nvcpldisplayplugin.UiElemState;const C=i.Ts.Nvapp.Nvcpldisplayplugin.GetUIState,S=i.Ts.Nvapp.Nvcpldisplayplugin.SetUIState;var M=i.Or.Nvapp.Nvigoutil.ShadowPlayStatus;const P=i.Ts.Nvapp.Localgames.GetLastApplicationScanTime;var x=i.Or.Nvapp.Localgames.PageId,A=i.Or.Nvapp.Nvigoutil.HotkeyEnum},20225:(St,z,s)=>{"use strict";s.d(z,{E:()=>k});var i=s(26513),n=s(43848),h=s(35146),C=s(56237),S=s(31315),M=s(65706),P=s(72147),x=s(14714),A=s(91384),g=s(10174),m=s(53461),l=s(8619),r=s(83915),u=s(75707),v=s(26875),T=s(148),R=s(42673),B=s(58527),U=s(92602),Y=s(35965),ae=s(38132),G=s(59085);let k=(()=>{class X{constructor(Q,ce,te,Ee,it,Fe){this.gfwslService=ce,this.hardwareService=te,this.localeService=Ee,this.overlayService=it,this.preferenceService=Fe,this.overlayFeatures$=new i.t([]),this.cachedOverLayFeatures=[],this.disableState$=(0,n.of)({value:!1,disabled:!0}),this.logger=Q.getLogger("nvapp/FeatureReadinessService"),this.gfwslService.addEndpointDefinitions([R.BY,R.HN,R.X3]),this.listenToOverlayToggleRefresh()}getOverlayFeatures(){return this.overlayFeatures$.asObservable()}refreshOverlayFeatures(){this.refreshOverlayFeaturesSub&&this.refreshOverlayFeaturesSub.unsubscribe(),this.refreshOverlayFeaturesSub=this.getFeatureChange().subscribe(()=>{this.logger.info("fetched overlay features"),this.updateOverlayReadyFeatures()},Q=>{this.updateOverlayReadyFeatures(),this.logger.error("Error while getting overlay features",Q)})}getShareFeature(){return(0,h.yU)(this.getNamedFeature(T.Au),this.localeService.localeChanged.pipe((0,M.s)(1))).pipe((0,P.n)(([Q,ce])=>(Q.toggle={visible:"true"===Q.overallState,value:!1},this.overlayService.getShareFeature(Q,ce))),(0,x.W)(Q=>(this.logger.error("Error while getting share feature",Q),(0,n.of)(T.Au))))}refreshToggleValues(Q){return this.logger.info("Refreshing toggle values based on overlay toggle ",Q),(0,C.T)(()=>Q,this.getFilterPhotoModeValue(Q),this.disableState$).pipe((0,A.M)(ce=>{this.logger.info("Filter Photo Mode state",ce),this.updateFilterPhotoModeValue(ce.value,ce.disabled)}),(0,g.u)(!0))}updateOverlayReadyFeatures(){this.overlayFeatures$.next(this.cachedOverLayFeatures)}listenToOverlayToggleRefresh(){this.refreshToggleValueSub&&this.refreshToggleValueSub.unsubscribe(),this.refreshToggleValueSub=this.overlayService.refreshToggleValues().pipe((0,P.n)(Q=>this.refreshToggleValues(Q)),(0,A.M)(Q=>this.updateOverlayReadyFeatures())).subscribe(Q=>this.logger.info("Toggles are refreshed"),Q=>this.logger.error("Error occurred while refreshing toggles ",Q))}getFeatureChange(){return(0,S.zV)([this.localeService.localeChanged.pipe((0,m.F)()),this.hardwareService.getGenericInfo(!1),this.hardwareService.getGpuInfo(!1)]).pipe((0,l.p)(([Q,ce,te])=>!(0,v.isEqual)(this.cachedGenericInfo,ce)||!(0,v.isEqual)(this.cachedGpuInfo,te)),(0,A.M)(([Q,ce,te])=>{this.logger.info("Generic Info and GPU Info changed, preparing query"),this.cachedGenericInfo=ce,this.cachedGpuInfo=te}),(0,P.n)(()=>(0,h.yU)(this.getShareFeature(),this.getFilterPhotoModeFeature())),(0,r.T)(Q=>Q.map(ce=>({...ce}))),(0,A.M)(Q=>{this.cachedOverLayFeatures=Q.filter(ce=>ce.overallState)}),(0,P.n)(Q=>{const ce=this.cachedOverLayFeatures.filter(te=>te.featureName===T.Au.featureName)?.[0];return ce.isPluginError?(this.logger.error("Plugin error for overlay"),this.updateFilterPhotoModeValue(!1,!0),(0,n.of)(!1)):this.refreshToggleValues(ce.toggle?.value)}))}getFilterPhotoModeValue(Q){return this.cachedOverLayFeatures.find(te=>te.featureName===T._z.featureName)?.toggle?.visible?this.fetchFilterPhotoModeValue().pipe((0,r.T)(te=>({value:te,disabled:!Q}))):this.disableState$}fetchFilterPhotoModeValue(){return this.preferenceService.getPhotoModeGameFilterToggleState()}updateFilterPhotoModeValue(Q,ce){const te=this.cachedOverLayFeatures.find(Ee=>Ee.featureName===T._z.featureName);te?.toggle&&(te.toggle.value=Q),te.toggle.disabled=ce}getFilterPhotoModeFeature(){return(0,h.yU)(this.getNamedFeature(T.g0),this.getNamedFeature(T.KF)).pipe((0,r.T)(([Q,ce])=>{this.logger.info(`photoModeState ${Q.overallState} and freeStyleFeatureState ${ce.overallState}`);const te="true"===Q.overallState&&"true"===ce.overallState;return{...Q,overallState:te,toggle:{visible:te,value:!1},featureName:T._z.featureName,header:T._z.header,descriptions:T._z.descriptions}}),(0,x.W)(Q=>(this.logger.error("Error while getting photomode gamefilter feature",Q),(0,n.of)(T._z))))}getNamedFeature(Q){const ce=Q.featureName===T.g0.featureName?T.nH:Q.featureName;return this.logger.info(`Calling Feature Readiness for ${ce} and driver version ${this.cachedGenericInfo.DriverVersion}`),this.gfwslService.onGfwslParamsReady({hasLocaleInfo:!0,hasSystemInfo:!0}).pipe((0,u.ZZ)(te=>this.gfwslService.callEndpoint(Q.featureName,{GFPV:this.cachedGenericInfo.DriverVersion},null,null,{})),(0,r.T)(te=>({...Q,...te.body.criteria,header:Q.header?Q.header:te.body.criteria.header,descriptions:Q.descriptions?.length?Q.descriptions:[te.body.criteria.message]})),(0,x.W)(te=>(this.logger.error(`Error while getting feature content for ${ce}`,te),(0,n.of)(Q))))}static{this.\u0275fac=function(ce){return new(ce||X)(B.KVO(U.J6),B.KVO(Y.XB),B.KVO(U.SQ),B.KVO(U.iH),B.KVO(ae.s),B.KVO(G.N))}}static{this.\u0275prov=B.jDH({token:X,factory:X.\u0275fac,providedIn:"root"})}}return X})()},83997:(St,z,s)=>{"use strict";s.d(z,{$:()=>P});var i=s(83915),n=s(20924);const h=n.Ts.Nvapp.Driverupdaterecommendation.SetLanguagePreference,C=n.Ts.Nvapp.Driverupdaterecommendation.GetLanguagePreference;var S=s(58527),M=s(92602);let P=(()=>{class x{constructor(g,m){this.bridgeService=m,this.logger=g.getLogger("nvapp/LanguagePreferenceService")}setLanguagePreference(g){return this.bridgeService.executeCommand(h,{languageCode:g}).pipe((0,i.T)(l=>{this.logger.info("Set language Code:",l)}))}fetchLanguageCode(){return this.bridgeService.executeCommand(C,{}).pipe((0,i.T)(m=>{const l=m.languagePreference.languageCode.replace("-","_");return this.logger.info("Fetched language Code:",l),l}))}static{this.\u0275fac=function(m){return new(m||x)(S.KVO(M.J6),S.KVO(M.NZ))}}static{this.\u0275prov=S.jDH({token:x,factory:x.\u0275fac,providedIn:"root"})}}return x})()},59085:(St,z,s)=>{"use strict";s.d(z,{N:()=>Ke});var i=s(85735),n=s(36466),h=s(43848),C=s(59859),S=s(65706),M=s(91384),P=s(14714),x=s(72147),A=s(83915),g=s(20924),m=s(148),l=s(69568),r=s(1242);s(26875);var Fe=s(58527),Qe=s(92602),ct=s(38132),Ge=s(17543),nt=s(86088),Je=s(47847),ze=s(92616);let Ke=(()=>{class Ve{constructor(dt,Pe,J,vt,ve,ue,et,se){this.bridgeService=Pe,this.overlayService=J,this.opsApiService=vt,this.nvAppTelemetryUtilService=ve,this.nvAppBridgeService=ue,this.appConfig=et,this.manageDisplayModeService=se,this._autoDriverDownloadPreference=new i.m(1),this._displayModeTrayPreference=new i.m(1),this._driverUpdateNotificationPreference=new i.m(1),this._rewardNotificationPreference=new i.m(1),this._displayModeNotificationPreference=new i.m(1),this._hasAutoDriverDownloadCache=!1,this._hasDisplayModeTrayCache=!1,this._hasDriverUpdateNotificationCache=!1,this._hasRewardNotificationCache=!1,this._hasDisplayModeNotificationCache=!1,this.logger=dt.getLogger("nvapp/PreferenceService")}initializePreferencesState(){this.getAutoDriverDownloadPreference().pipe((0,S.s)(1)).subscribe(n.l,n.l),this.getDisplayModeTrayPreference().pipe((0,S.s)(1)).subscribe(n.l,n.l),this.manageDisplayModeService.getDdsState().pipe((0,S.s)(1)).subscribe(n.l,n.l),this.getNotifyDriverUpdateNotification().pipe((0,S.s)(1)).subscribe(n.l,n.l),this.getRewardNotificationPreference().pipe((0,S.s)(1)).subscribe(n.l,n.l),this.getDisplayModeNotificationPreference().pipe((0,S.s)(1)).subscribe(n.l,n.l)}setNotifyDriverUpdateNotification(dt){return this.nvAppBridgeService.executeWithPluginStatusTelemetry(g.Ts.Nvapp.Driverupdaterecommendation.SetDriverUpdateNotificationEnabled,{isEnabled:dt}).pipe((0,M.M)(J=>{this._hasDriverUpdateNotificationCache=!1}))}getNotifyDriverUpdateNotification(){if(this.logger.info("Get Driver Update Notification Preference"),this._hasDriverUpdateNotificationCache)return this.logger.info("Returning cached driver update notification preference"),this._driverUpdateNotificationPreference.asObservable();this.logger.info("No cached value for DriverUpdateNotification, making API call");const dt=performance.now();return this.nvAppBridgeService.executeWithPluginStatusTelemetry(g.Ts.Nvapp.Driverupdaterecommendation.GetDriverUpdateNotificationEnabled).pipe((0,M.M)(Pe=>{const J=performance.now();this.logger.info("GetDriverUpdateNotification API took (ms): ",J-dt),this._driverUpdateNotificationPreference.next(Pe),this._hasDriverUpdateNotificationCache=!0}),(0,P.W)(Pe=>(this.logger.error("Error occurred while getting driver update notification",Pe),this._driverUpdateNotificationPreference.next(m.l5),this._hasDriverUpdateNotificationCache=!1,(0,h.of)(m.l5))))}setRewardNotificationPreference(dt){return this.nvAppBridgeService.executeWithPluginStatusTelemetry(g.Ts.Nvapp.Driverupdaterecommendation.SetRewardsNotificationPreference,{isEnabled:dt}).pipe((0,M.M)(J=>{this._hasRewardNotificationCache=!1}))}setDisplayModeNotificationPreference(dt){return this.nvAppBridgeService.executeWithPluginStatusTelemetry(l.IU,{uiElem:l.GG.DDSDesktopNotification,state:dt?l.rz.ENABLE:l.rz.DISABLE}).pipe((0,M.M)(J=>{this._hasDisplayModeNotificationCache=!1}))}getRewardNotificationPreference(){if(this.logger.info("Get Reward Notification Preference"),this._hasRewardNotificationCache)return this.logger.info("Returning cached reward notification preference"),this._rewardNotificationPreference.asObservable();this.logger.info("No cached value for RewardNotification, making API call");const dt=performance.now();return this.nvAppBridgeService.executeWithPluginStatusTelemetry(g.Ts.Nvapp.Driverupdaterecommendation.GetRewardsNotificationPreference).pipe((0,M.M)(Pe=>{const J=performance.now();this.logger.info("GetRewardNotificationPreference API took (ms): ",J-dt),this._rewardNotificationPreference.next(Pe),this._hasRewardNotificationCache=!0}),(0,P.W)(Pe=>(this.logger.error("Error occurred while getting reward notification preference",Pe),this._rewardNotificationPreference.next(m.pJ),this._hasRewardNotificationCache=!1,(0,h.of)(m.pJ))))}getDisplayModeNotificationPreference(){if(this.logger.info("Get Display Mode Notification Preference"),this._hasDisplayModeNotificationCache)return this.logger.info("Returning cached display mode notification preference"),this._displayModeNotificationPreference.asObservable();this.logger.info("No cached value for DisplayModeNotification, making API call");const dt=performance.now();return this.nvAppBridgeService.executeWithPluginStatusTelemetry(l.ST,{uiElem:l.GG.DDSDesktopNotification}).pipe((0,M.M)(J=>{const vt=performance.now();this.logger.info("GetDisplayModeNotificationPreference API took (ms): ",vt-dt),this._displayModeNotificationPreference.next(J),this._hasDisplayModeNotificationCache=!0}),(0,P.W)(J=>(this.logger.error("Error occurred while getting display mode notification preference",J),this._displayModeNotificationPreference.next(m.O$),this._hasDisplayModeNotificationCache=!1,(0,h.of)(m.O$))))}setAutoDriverDownloadNotification(dt){return this.nvAppBridgeService.executeWithPluginStatusTelemetry(g.Ts.Nvapp.Driverupdaterecommendation.SetAutomaticDriverDownloadEnabled,{isEnabled:dt}).pipe((0,M.M)(J=>{this._hasAutoDriverDownloadCache=!1,this.sendSettingChangeTelemetry(r.RS.AutomaticDriverDownload,dt?r.GC.Enabled:r.GC.Disabled,r.ih.System)}),(0,P.W)(J=>(this.logger.error("Error occurred while setting auto driver download ",J),this.sendSettingChangeTelemetry(r.RS.AutomaticDriverDownload,dt?r.GC.Enabled:r.GC.Disabled,r.ih.System,J?.message),(0,C.$)(J))))}setDisplayModeTrayPreference(dt){return this.nvAppBridgeService.executeWithPluginStatusTelemetry(l.IU,{uiElem:l.GG.DDSTrayIcon,state:dt?l.rz.ENABLE:l.rz.DISABLE}).pipe((0,M.M)(J=>this._hasDisplayModeTrayCache=!1))}getAutoDriverDownloadPreference(){if(this.logger.info("Get Auto Driver Download Preference"),this._hasAutoDriverDownloadCache)return this.logger.info("Returning cached auto driver download preference"),this._autoDriverDownloadPreference.asObservable();this.logger.info("No cached value for AutoDriverDownloadPreference, making API call");const dt=performance.now();return this.nvAppBridgeService.executeWithPluginStatusTelemetry(g.Ts.Nvapp.Driverupdaterecommendation.GetAutomaticDriverDownloadEnabled).pipe((0,M.M)(Pe=>{const J=performance.now();this.logger.info("GetAutoDriverDownloadNotification API took (ms): ",J-dt),this._autoDriverDownloadPreference.next(Pe),this._hasAutoDriverDownloadCache=!0}),(0,P.W)(Pe=>(this.logger.error("Error occurred while getting auto driver download notification",Pe),this._autoDriverDownloadPreference.next(m.OP),this._hasAutoDriverDownloadCache=!1,(0,h.of)(m.OP))))}getDisplayModeTrayPreference(){this.logger.info("Get Display Mode Tray Preference");const dt={uiElem:l.GG.DDSTrayIcon};if(this._hasDisplayModeTrayCache)return this.logger.info("Returning cached display mode tray preference"),this._displayModeTrayPreference.asObservable();this.logger.info("No cached value for DisplayModeTrayPreference, making API call");const Pe=performance.now();return this.nvAppBridgeService.executeWithPluginStatusTelemetry(l.ST,dt).pipe((0,M.M)(J=>{const vt=performance.now();this.logger.info("GetDisplayModeTrayPreference API took (ms): ",vt-Pe),this._displayModeTrayPreference.next(J),this._hasDisplayModeTrayCache=!0}),(0,P.W)(J=>(this.logger.error("Error occurred while getting display mode notification preference",J),this._displayModeTrayPreference.next(m.O$),this._hasDisplayModeTrayCache=!1,(0,h.of)(m.O$))))}onToggleChanged(dt){return dt.featureName===m.mE.featureName?this.setDisplayModeTrayPreference(dt.toggle.newValue):dt.featureName===m.E7.featureName?this.setAutoDriverDownloadNotification(dt.toggle.newValue):dt.featureName===m._z.featureName?this.togglePhotoModeGameFilter(dt.toggle.newValue):dt.featureName===m.Au.featureName?this.overlayService.toggleOverlay(dt.toggle.newValue):dt.featureName===m.N.featureName?this.setAutoOptimizeEnabled(dt.toggle.newValue):(0,h.of)()}onSecondaryAction(dt){return(0,h.of)(null)}openWindowsNotifications(dt){return this.nvAppBridgeService.executeCommandWithTimeout(g.Ts.Nvapp.Localgames.LaunchMSSettings,{pageId:dt}).pipe((0,M.M)(J=>this.logger.info("Launch MS Settings Response",J)))}getAutoOptimizeEnabled(){return this.opsApiService.getAutoOptimizeEnabled()}setAutoOptimizeEnabled(dt){return this.opsApiService.setAutoOptimizeEnabled(dt).pipe((0,M.M)(Pe=>this.sendSettingChangeTelemetry(r.RS.AutomaticOptimizeNewGames,dt?r.GC.Enabled:r.GC.Disabled,r.ih.System)),(0,P.W)(Pe=>(this.logger.error("Error occurred while setting auto driver download ",Pe),this.sendSettingChangeTelemetry(r.RS.AutomaticOptimizeNewGames,dt?r.GC.Enabled:r.GC.Disabled,r.ih.System,Pe?.message),(0,C.$)(Pe))))}sendSettingChangeTelemetry(dt,Pe,J,vt){this.nvAppTelemetryUtilService.sendSettingChangeEvent(dt,Pe,J,!0,vt)}getPhotoModeGameFilterToggleState(){let dt;return this.bridgeService.executeCommand(g.Ts.Nvapp.Nvigoutil.GetFilterPhotoModeState).pipe((0,x.n)(Pe=>(dt=Pe?.enable,void 0===dt?(this.logger.info("Photo mode/Game filter toggle setting not present, using default"),dt=!0,this.togglePhotoModeGameFilter(dt)):(0,h.of)(""))),(0,A.T)(()=>dt))}triggerPhotoModeGameFilterToggleUpdate(){this.overlayService.triggerToggleValueRefresh()}getNvAppVersionString(){return this.appConfig?.build?.version}togglePhotoModeGameFilter(dt){return this.nvAppBridgeService.executeWithPluginStatusTelemetry(g.Ts.Nvapp.Nvigoutil.SetFilterPhotoMode,{enable:dt}).pipe((0,M.M)(J=>this.sendSettingChangeTelemetry(r.RS.GameAndPhotoModeFilter,dt?r.GC.Enabled:r.GC.Disabled,r.ih.System)),(0,P.W)(J=>(this.logger.error("Error occurred while setting photo mode/game filter switch ",J),this.sendSettingChangeTelemetry(r.RS.GameAndPhotoModeFilter,dt?r.GC.Enabled:r.GC.Disabled,r.ih.System,J?.message),(0,C.$)(J))))}static{this.\u0275fac=function(Pe){return new(Pe||Ve)(Fe.KVO(Qe.J6),Fe.KVO(Qe.NZ),Fe.KVO(ct.s),Fe.KVO(Ge.M),Fe.KVO(r.AY),Fe.KVO(nt.S),Fe.KVO(Je.Vk),Fe.KVO(ze.S))}}static{this.\u0275prov=Fe.jDH({token:Ve,factory:Ve.\u0275fac,providedIn:"root"})}}return Ve})()},37438:(St,z,s)=>{"use strict";s.d(z,{A6:()=>h,LL:()=>M,OJ:()=>i,R1:()=>S,du:()=>P,ow:()=>C,pL:()=>A,xM:()=>x,y$:()=>n});const i={codeLength:29,codeLengthNoDashes:24,codeDashLocations:{first:4,second:9,third:14,fourth:19,fifth:24}},n={card:"360x154",dialogImage:"320x497",nvAppTileImageAssets:"1920x1080",viewDetailsImage:"742x280",publisherLinkImageParam:"1536x920"},h=1e3,C="mediumDate",S="nvapp",M="CHANNEL_GFN_ONLY",P="assets/img/rewards_viewdetails_fallback.svg",x="{LOCALE}",A="{PRODUCT_IMAGE_PATH}"},62400:(St,z,s)=>{"use strict";s.d(z,{e:()=>ae});var i=s(26875),h=s(85735),C=s(80583),S=s(3496),M=s(59859),P=s(43848),x=s(69917),A=s(75707),g=s(14714),m=s(83915),l=s(34593),r=s(65706),u=s(91384),v=s(43615),E=s(71152),T=s(20924),R=s(1242),B=s(99458),U=s(82546),Y=s(37438);class ae{static{this.refreshRewards=new h.m(1)}constructor(k,X,q,Q,ce,te,Ee,it=null){this.loginService=X,this.rewardsFlowService=q,this.bridgeService=Q,this.vrsItem=ce,this.config=te,this.telemetryUtilService=Ee,this.couponCode=null,this.user=null,this.httpSubscription=null,this.logger=k.getLogger("nvapp/reward.class"),this.vrsItem=ce,this.couponCode=it}get status(){return this.vrsItem?.status}get state(){return this.vrsItem?.state}get endDate(){return this.vrsItem?.campaign?.rules?.enddate}get entitlementDate(){return this.vrsItem?.entitlementDate}get redemptionDate(){return this.vrsItem?.redemptionDate}get campaign(){return this.vrsItem?.campaign}get products(){return this.vrsItem.product}get rewardsVrsItem(){return this.vrsItem}get entitlementId(){return this.vrsItem?.entitlementId}get error(){return this.vrsItem?.error}isRewardAvailable(){return this.vrsItem.status===U.E.Available}isRewardRedeemedOrExpired(){return this.isRewardRedeemed()||this.isRewardExpired()}isRewardRedeemed(){return this.vrsItem.status===U.E.Redeemed}isRewardExpired(){return this.vrsItem.status===U.E.Expired}isRewardLocked(){return this.vrsItem.status===U.E.Locked}startHttpServer(){const k=new C.B7,X=new C.B7;return this.httpSubscription=this.bridgeService.executeCommand(T.Ts.Common.Httpserver.StartHttpServer,{ports:this.config.vrs.portNumbers,redirectUrl:""}).subscribe(q=>{switch(this.logger.info("httpresponse recieved"),(0,i.get)(q,"callbackReason")){case"serverCreated":k.next((0,i.get)(q,"portNumber")),k.complete();break;case"httpRequest":X.next(q.url),new URL(q.url).searchParams.has("keepConnection")||(X.complete(),this.stopHttpServer())}},q=>{this.logger.error("error starting httpserver",q),k.error("HTTP_START_FAILED"),X.error("HTTP_START_FAILED")}),[k,X]}stopHttpServer(){this.httpSubscription&&(this.httpSubscription.unsubscribe(),this.httpSubscription=null,this.bridgeService.executeCommand(T.Ts.Common.Httpserver.StopHttpServer).subscribe(k=>this.logger.info("success stopping httpserver",k),k=>this.logger.error("error stopping httpserver",k)))}redeemEntitlement(){let k="";return(0,S.O)(0).pipe((0,A.ZZ)(X=>{const[q,Q]=this.startHttpServer();return q.pipe((0,g.W)(ce=>(this.logger.error("failed to start http server",ce),(0,M.$)(B.Se.RedemptionFailed))),(0,A.ZZ)(ce=>{k=Date.now().toString();const te=new URL(this.vrsItem.nvEntitlementUrl);return te.searchParams.append("loginhint",this.user.email),te.searchParams.append("entitlementId",this.vrsItem.entitlementId),te.searchParams.append("encPayload",this.vrsItem.encPayload),te.searchParams.append("callbackUrl","http://localhost:"+ce),te.searchParams.append("referrer","nvapp"),window.open(te.href,"_blank"),Q}),(0,m.T)(ce=>new URL(ce).searchParams.has("error")?(this.logger.error("failed in redeem entitlement on vrs web portal with error:"),this.sendRewardsRedeemEvent(k,this.couponCode?R.Lm.CouponCodeRedeemOnServer:R.Lm.AvailableRewardsRedeemOnServer,R.fb.Failure,B.Se.RedemptionFailed),B.Se.RedemptionFailed):(this.sendRewardsRedeemEvent(k,this.couponCode?R.Lm.CouponCodeRedeemOnServer:R.Lm.AvailableRewardsRedeemOnServer,R.fb.Success,this.vrsItem.product[0]?.uuid),this.logger.info(" redeemtion completed"),B.Se.RedemptionComplete)))}),(0,l.Z)(B.Se.RedemptionStarted))}checkAuthentication(){return this.loginService.accountStatusChanged.pipe((0,r.s)(1),(0,A.ZZ)(k=>k.isAuthenticated?(this.user=k,(0,P.of)(B.Se.AuthenticationComplete)):this.loginService.startLogin().pipe((0,A.ZZ)(X=>X?this.loginService.accountStatusChanged.pipe((0,r.s)(1),(0,m.T)(q=>(this.user=q,B.Se.AuthenticationComplete))):(this.logger.error("failed to login user, please try again"),(0,M.$)(B.Se.AuthenticationFailed))))),(0,l.Z)(B.Se.AuthenticationCheckStarted))}getUniqueRewardIdentifier(k){return k.status+(k.state||"")+(k.entitlementId||"")+(k.redemptionId||"")+k.campaign.uuid}entitle(){let k=B.QU.AvailableReward,X=null;if(this.couponCode)k=B.QU.Coupon,X=this.couponCode;else{if(this.status===U.E.Available&&this.state===U.E.Claimable)return(0,P.of)(B.Se.EntitlementComplete);X=this.vrsItem?.campaign?.uuid}const q=Date.now().toString();return this.rewardsFlowService.entitle(X,k).pipe((0,r.s)(1),(0,m.T)(Q=>{if(Q.error){let ce=R.Lm.CouponCodeVRSCreate;throw this.couponCode?this.vrsItem=Q:(ce=R.Lm.ClaimEntitlementVRSCreate,this.vrsItem.error=Object.assign({},Q.error)),this.sendRewardsRedeemEvent(q,ce,R.fb.Failure,Q.error?.code),Q.error}return this.sendRewardsRedeemEvent(q,k===B.QU.Coupon?R.Lm.CouponCodeVerificationResponseTime:R.Lm.ClaimEntitlementResponseTime,R.fb.Success),Q.state=(0,E.T7)(Q.state),Q.status=(0,E.T7)(Q.status),Q.campaign.type=(0,E.T7)(Q.campaign.type),Q.uId=this.getUniqueRewardIdentifier(Q),this.vrsItem=Q,B.Se.EntitlementComplete}),(0,g.W)(Q=>{const ce=Q.status?Q.status.toString():Q.code;return this.sendRewardsRedeemEvent(q,k===B.QU.Coupon?R.Lm.CouponCodeVRSCreate:R.Lm.ClaimEntitlementVRSCreate,R.fb.Failure,ce),this.logger.error("error in entitling",Q),(0,M.$)(B.Se.EntitlementFailed)}),(0,l.Z)(B.Se.EntitlementStarted))}redeem(){return(0,x.x)(this.checkAuthentication(),this.entitle(),this.redeemEntitlement()).pipe((0,u.M)(k=>{k===B.Se.RedemptionComplete&&ae.refreshRewards.next(!0)}),(0,g.W)(k=>(this.logger.error("Error in redeem",k),(0,P.of)(k))),(0,v.j)(()=>{this.logger.info("Process completed")}))}sendRewardsRedeemEvent(k,X,q,Q){const ce=Date.now().toString(),te={lcid:"0",durationMs:parseInt(ce,10)-parseInt(k,10)||0,redeemAction:X,couponCode:this.couponCode||"",campaignName:this.vrsItem?.campaign?.uuid||"",gpuDeviceId:"",errorDetails:Q||"",status:q};this.telemetryUtilService.sendRewardsRedeemEvent(te)}getRewardDate(k,X){const q=k.transform(this.redemptionDate,Y.ow),Q=k.transform(this.endDate,Y.ow);return this.isRewardRedeemed()?q?X.instant("rewards.redeemedReward",{date:q}):"":this.isRewardExpired()?Q?X.instant("rewards.expiredReward",{date:Q}):"":this.isRewardLocked()?"":Q?X.instant("rewards.untillReward",{date:Q}):""}}},99458:(St,z,s)=>{"use strict";s.d(z,{DU:()=>T,GI:()=>v,GO:()=>Y,Jn:()=>m,Mg:()=>l,N4:()=>u,Pd:()=>S,QU:()=>R,Qy:()=>ae,Se:()=>G,Sw:()=>C,Vj:()=>r,db:()=>U,h8:()=>M,ix:()=>B,kv:()=>A,ov:()=>h,rC:()=>g,vr:()=>E});var i=s(35965),n=s(1242);const h="0",C=32,S=8,M=0,x=["cmID","cID","gcV","gnV","sM","IsB","dIDa","dFma","osC","dch","osB","is6","lg","gLg","GFPV","IsQ","iLp","isSLI","go","cSR","uCst"],A=["gcV","lg","gLg","cID","sM","IsB","dIDa","dFma","osC","osB","is6","GFPV","IsQ","iLp","isSLI","cSR","go"],g={name:"TargetRewards",controller:i.GU.GfeContent,endpointPath:"com.nvidia.services.GFEClientContent_NG.targetGfeWebRewards/",paramMask:x,method:i.Xt.Get,headers:{telemetry:"TargetRewards"},reportRequestData:{originalService:n.Uu.Gfwsl,serviceUseCase:n.OO.TargetRewards,reportSuccessTelemetry:"true"}},m={name:"GetRewardsSession",controller:i.GU.Vrs,endpointPath:"com.nvidia.services.GFEClientVrs.getGfeWebSsnJt/",paramMask:x,method:i.Xt.Post,headers:{"Content-Type":"application/x-www-form-urlencoded; charset=utf-8"},reportRequestData:{originalService:n.Uu.Gfwsl,serviceUseCase:n.OO.GetRewardsSession,reportSuccessTelemetry:"true"}},l={name:"VerifyRewardsSession",controller:i.GU.Vrs,endpointPath:"com.nvidia.services.GFEClientVrs.vrfyGfeWebSsnJt/",paramMask:x,method:i.Xt.Post,headers:{"Content-Type":"application/x-www-form-urlencoded; charset=utf-8"},reportRequestData:{originalService:n.Uu.Gfwsl,serviceUseCase:n.OO.VerifyRewardsSession,reportSuccessTelemetry:"true"}},r={name:"GetRewardsStatus",controller:i.GU.Vrs,endpointPath:"/com.nvidia.services.GFEClientVrs.gfeVrsStatus/",paramMask:x,method:i.Xt.Post,headers:{"Content-Type":"application/x-www-form-urlencoded; charset=utf-8"},reportRequestData:{originalService:n.Uu.Gfwsl,serviceUseCase:n.OO.WebRewardsVrsStatus,reportSuccessTelemetry:"true"}},u={name:"RedeemReward",controller:i.GU.Vrs,endpointPath:"/com.nvidia.services.GFEClientVrs.gfeVrsCreate/",paramMask:x,method:i.Xt.Post,headers:{"Content-Type":"application/x-www-form-urlencoded; charset=utf-8"},reportRequestData:{originalService:n.Uu.Gfwsl,serviceUseCase:n.OO.WebVrsCreate,reportSuccessTelemetry:"true"}};var v=function(k){return k.TargetRewards="TargetRewards",k.GetRewardsSession="GetRewardsSession",k.VerifyRewardsSession="VerifyRewardsSession",k.GetRewardsStatus="GetRewardsStatus",k.RedeemReward="RedeemReward",k}(v||{});const E="HS512",T=JSON.stringify({typ:"JWT",alg:E});var R=function(k){return k.AvailableReward="AvailableReward",k.UnredeemedReward="UnredeemedReward",k.RedeemedReward="RedeemedReward",k.Coupon="Coupon",k}(R||{}),B=function(k){return k.TargetRewards="GFE_ENABLE_REDEEM_BUTTON",k}(B||{});const U="~!~",Y=30,ae={available:[],redeemed:[],locked:[],expired:[],unknown:[],unredeemed:[],unclaimable:[],claimable:[],redeeming:[]};var G=function(k){return k.Unknown="Unknown",k.EntitlementStarted="EntitlementStarted",k.AuthenticationCheckStarted="AuthenticationCheckStarted",k.AuthenticationComplete="AuthenticationComplete",k.AuthenticationFailed="AuthenticationFailed",k.EntitlementFailed="EntitlementFailed",k.EntitlementComplete="EntitlementComplete",k.RedemptionStarted="RedemptionStarted",k.RedemptionFailed="RedemptionFailed",k.RedemptionComplete="RedemptionComplete",k}(G||{})},7486:(St,z,s)=>{"use strict";s.d(z,{y:()=>ue});var i=s(85735),n=s(12532),h=s(43848),C=s(36466),S=s(59859),M=s(83915),P=s(75707),x=s(14714),A=s(65706),g=s(91384),m=s(71152),l=s(82546),r=s(99458),u=s(62400),v=s(12667),E=s(70279),T=s(37438),R=s(26772),B=s(58527),U=s(92602),Y=s(80583),ae=s(16229),G=s(35146),k=s(79539),X=s(8619),q=s(72147),Q=s(10404),ce=s(20924),te=s(70650),Ee=s(26513),it=s(55833),Fe=s(58007),Qe=s(35965),ct=s(47847);let Ge=(()=>{class et{constructor(Ce,be,rt,me){this.loggingService=Ce,this.gfwslService=be,this.gfwslParamsService=rt,this.config=me,this.logger=Ce.getLogger("NvApp/Rewards/RewardsSdkService"),this.jwsLib=Fe.hT.JWS,this.sessionUpdated$=new Ee.t({parsedOverallState:!1}),this.gfwslService.addEndpointDefinitions([r.rC,r.Jn,r.Mg,r.Vj,r.N4])}get onGfwslSessionUpdated(){return this.sessionUpdated$}target(Ce,be){return this.gfwslService.callEndpoint(Ce,{cmID:be}).pipe((0,P.ZZ)(rt=>this.validateGfwslResponse(rt,Ce)),(0,M.T)(rt=>JSON.parse(rt.sessionState.overallState)),(0,it.t)(1))}digestMessage(Ce){return(0,te.A)(function*(){const be=(new TextEncoder).encode(Ce),rt=yield crypto.subtle.digest("SHA-256",be);return Array.from(new Uint8Array(rt)).map(Xe=>Xe.toString(16).padStart(2,"0")).join("")})()}getSession(){const Ce=this.gfwslParamsService.getParams({},["gcV","aiD"]),be=Ce.aiD,me=`_egcV=${JSON.stringify({_egcV:Ce.gcV,aiD:Ce.aiD})}`;return this.callGfwslJwsEndpoint(r.Jn.name,{},"",be,{},me).pipe((0,M.T)(Xe=>Xe.sessionState))}validateGfwslResponse(Ce,be){return this.isGfwslResponseValid(Ce)?(0,h.of)(Ce.body.html.body):(0,S.$)(`Invalid GFWSL Response for ${be}`)}isGfwslResponseValid(Ce){return!!(Ce&&Ce.body&&Ce.body.html&&Ce.body.html.body)}verifySession(Ce){const be=this.gfwslParamsService.getParams({},["gcV","aiD"]),rt=be.aiD,me=r.Mg.name,le=this.gfwslParamsService.getParams({},r.kv);let Se;return this.callGfwslJwsEndpoint(me,{_ecnon_GfV:`${Ce.nonce.value}${r.db}${be.gcV}`,aiD:rt,_theSysJson:le},Ce.nonce.value,rt).pipe((0,P.ZZ)(fe=>(Se=fe.sessionState,this.parseGfwslResponseJws(Se.vrfyRspPyld.value,Se.ecnon_egcv.value,rt,me))),(0,M.T)(fe=>{const Ne={...Se,...fe};return this.sessionUpdated$.next(Ne),Ne}))}callGfwslJwsEndpoint(Ce,be,rt,me,le,Xe){let fe,Se="";return Xe?fe=Xe:(Se=this.getSignedGfwslJws(be,rt,me),fe=`_ecnon_GfV=${encodeURIComponent(window.btoa(Se))}`),this.gfwslService.callEndpoint(Ce,le,fe).pipe((0,P.ZZ)(Ne=>this.validateGfwslResponse(Ne,Ce)),(0,M.T)(Ne=>(this.sessionUpdated$.next(Ne.sessionState),Ne)))}getSignedGfwslJws(Ce,be,rt){const me={_pyld:JSON.stringify(Ce)};return this.jwsLib.sign(r.vr,r.DU,me,`${be}.${rt}`)}parseGfwslResponseJws(Ce,be,rt,me){const le=window.atob(decodeURIComponent(Ce));if(this.jwsLib.verify(le,`${be}.${rt}`,[r.vr])){const Se=this.jwsLib.parse(le),fe=JSON.parse(Se.payloadPP);return(0,h.of)(JSON.parse(fe))}return(0,S.$)(`Failed to verify GFWSL JWS for ${me}`)}getRewardsStatus(Ce,be,rt){const me=this.gfwslParamsService.getParams({},["aiD","uCst"]),le=me.aiD,Xe=me.uCst,Se=Ce.ecnon_egcv.value,fe=r.Vj.name,Ne=this.gfwslParamsService.getParams({},r.kv);return this.callGfwslJwsEndpoint(fe,{_vrsCmpgnStsPyldJson:{_ecnon_GfV:Se,aiD:le,_theSysJson:Ne,_thePiJson:{sfUid:be.user.userId,sfidTK:be.idToken,uCst:Xe},_VrsHashDiceGpuAchJson:rt}},Se,le).pipe((0,P.ZZ)(Ot=>this.parseGfwslResponseJws(Ot.CampaignStatus,Ot.sessionState.ecnon_egcv.value,le,fe)),(0,M.T)(Ot=>Ot.vrsCampaignStatus.rewards))}redeemEntitlement(Ce,be,rt,me,le){const Xe=le===r.QU.Coupon?{CPN:me}:{cmID:me},Se=this.gfwslParamsService.getParams({},["aiD","uCst"]),fe=Se.aiD,Ne=Se.uCst,ye=Ce.ecnon_egcv.value,Ot=r.N4.name,sn=this.gfwslParamsService.getParams({},r.kv);return this.callGfwslJwsEndpoint(Ot,{_vrsCmpgnRdmPyldJson:{_ecnon_GfV:ye,aiD:fe,_theSysJson:sn,_thePiJson:{sfUid:be.user.userId,sfidTK:be.idToken,uCst:Ne},_theVrsRwdJson:Xe,_RdmHashDiceGpuJson:rt}},ye,fe).pipe((0,P.ZZ)(yn=>this.parseGfwslResponseJws(yn.CampaignRedeem,yn.sessionState.ecnon_egcv.value,fe,Ot)),(0,M.T)(yn=>yn.vrsCampaignRedeem[0]))}static{this.\u0275fac=function(be){return new(be||et)(B.KVO(U.J6),B.KVO(Qe.XB),B.KVO(Qe.Tg),B.KVO(ct.Vk))}}static{this.\u0275prov=B.jDH({token:et,factory:et.\u0275fac,providedIn:"root"})}}return et})();var nt=s(52490),Je=s(94485);let ze=(()=>{class et{constructor(Ce,be,rt){this.bridgeService=be,this.http=rt,this.convertStringToHexWithWordShift=function(me,le){let Xe=0;for(let Se=0;Se<le;Se++)switch(me[le-1-Se]){case"0":Xe|=0<<4*Se;break;case"1":Xe|=1<<4*Se;break;case"2":Xe|=2<<4*Se;break;case"3":Xe|=3<<4*Se;break;case"4":Xe|=4<<4*Se;break;case"5":Xe|=5<<4*Se;break;case"6":Xe|=6<<4*Se;break;case"7":Xe|=7<<4*Se;break;case"8":Xe|=8<<4*Se;break;case"9":Xe|=9<<4*Se;break;case"a":case"A":Xe|=10<<4*Se;break;case"b":case"B":Xe|=11<<4*Se;break;case"c":case"C":Xe|=12<<4*Se;break;case"d":case"D":Xe|=13<<4*Se;break;case"e":case"E":Xe|=14<<4*Se;break;case"f":case"F":Xe|=15<<4*Se}return Xe},this.logger=Ce.getLogger("nvapp/UserProfile/Rewards/GpuEcidService")}GetGpuEcid(Ce){const be=this.formatNvApiRequestPayload(Ce),rt={gpuHandle:parseInt(Ce.primaryGpuId,16),signParams:{key:be.key,nonce:be.nonce,programId:be.programId,sessionId:be.sessionId,signAlgorithm:be.algorithm}};return this.bridgeService.executeCommand(ce.Ts.Nvapp.Localgames.GetSignedGPUID,rt).pipe((0,M.T)(me=>{const le=this.formatNvApiResponsePayload(me);return{chId:le.deviceChipsetId,grId:le.deviceRevision,diCe:le.hashedEcid,eSgn:le.signedPayload,uVsn:le.uCodeVersion}}),(0,x.W)(me=>(this.logger.error("error in getting signed gpuId"),(0,S.$)(me))))}formatNvApiResponsePayload(Ce){return{deviceChipsetId:this.toPaddedString(Ce.deviceInfo.chipId,-4,r.Pd,16),deviceRevision:this.toPaddedString(Ce.deviceInfo.revisionId,-4,r.Pd,16),hashedEcid:this.formatHashedEcid(Ce.ecidSha2Hash),signedPayload:this.toEncodedBase64FromByteArray(Ce.data),uCodeVersion:this.toPaddedString(Ce.uCodeVersion,-1*r.Pd,r.Pd,10)}}toPaddedString(Ce,be,rt,me){return"number"==typeof Ce?(r.ov.repeat(rt)+Ce.toString(me)).slice(be):(r.ov.repeat(rt)+Ce).slice(be)}formatHashedEcid(Ce){const be=this.getHexStringFromByteArray(Ce).replace("-","").toLowerCase();return this.toEncodedBase64FromByteArray(this.toByteArray(be))}getHexStringFromByteArray(Ce){let be="";return Ce.forEach(rt=>{be+=this.toPaddedString(rt,-2,2,16)}),be}toByteArray(Ce){return Ce.split("").map((be,rt)=>Ce.charCodeAt(rt))}toEncodedBase64FromByteArray(Ce){const be=new Uint8Array(Ce);return encodeURIComponent((0,nt.iI)(be))}formatNvApiRequestPayload(Ce){return{algorithm:Ce.signAlgo,nonce:this.getNonceBytes(Ce.nonce),programId:this.getProgramId(Ce.clientVersion,Ce.driverVersion),key:Array.from(this.toByteArrayFromEncodedString(Ce.key)),sessionId:r.h8}}getNonceBytes(Ce){Ce.length>r.Sw&&(Ce=Ce.slice(0,r.Sw));const rt=Ce.split("");if(rt.length===r.Sw){let me;const le=new ArrayBuffer(16),Xe=new DataView(le,0);for(let fe=0;fe<16;fe++)me=this.convertStringToHexWithWordShift(rt.slice(2*fe,2*fe+2),2),Xe.setUint8(16-fe-1,me);const Se=new Uint8Array(le,0);return Array.prototype.slice.call(Se)}return null}getProgramId(Ce,be){const rt=this.removeDotsFromString(Ce)+this.removeDotsFromString(be),me=rt.length>r.Pd?rt.substring(0,r.Pd):this.toPaddedString(rt,-1*r.Pd,r.Pd);return parseInt(me,16)}removeDotsFromString(Ce){return Ce.replace(/\./g,"")}toByteArrayFromEncodedString(Ce){return(0,nt.bg)(decodeURIComponent(Ce))}static{this.\u0275fac=function(be){return new(be||et)(B.KVO(U.J6),B.KVO(U.NZ),B.KVO(Je.Qq))}}static{this.\u0275prov=B.jDH({token:et,factory:et.\u0275fac,providedIn:"root"})}}return et})(),Ke=(()=>{class et{constructor(Ce,be,rt,me,le,Xe,Se){this.loggingService=Ce,this.loginService=be,this.rewardsSdkService=rt,this.gfwslParamsService=me,this.gpuEcidService=le,this.bridgeService=Xe,this.http=Se,this.logger=Ce.getLogger("nvapp/RewardsFlowService"),this.rewardsRequestQueue$=new Y.B7,this.profileRequestQueue$=new Y.B7,this.mainRequestQueue$=(0,ae.h)(this.rewardsRequestQueue$,this.profileRequestQueue$),this.userDetails={user:Q.OV,idToken:""},this.gfwslParamsReady=!1,this.ongoingRequests=new Map}initialize(){this.gfwslParamsService.gfwslParamsUpdated.subscribe(Ce=>{this.gfwslParamsReady=this.areGfwslParamsAvailable(Ce)}),this.rewardsSdkService.onGfwslSessionUpdated.subscribe(Ce=>{this.session=Object.assign({},this.session,Ce),this.session.parsedOverallState=this.session.overallState?"true"===this.session.overallState:this.session.parsedOverallState}),this.mainRequestQueue$.pipe((0,k.H)(Ce=>Ce.workerFn.pipe((0,g.M)(be=>{Ce.response$.next(be),Ce.response$.complete(),this.ongoingRequests.delete(Ce.name)}),(0,x.W)(be=>(this.session.parsedOverallState=!1,Ce.response$.error(be),Ce.response$.complete(),this.ongoingRequests.delete(Ce.name),(0,h.of)(be)))))).subscribe()}areGfwslParamsAvailable(Ce){return!!(Ce.hasSystemInfo&&Ce.hasLocaleInfo&&Ce.hasUserInfo)}getRewards(){const Ce={name:r.GI.TargetRewards,targetName:r.rC.name,campaign:r.ix.TargetRewards,response$:new Y.B7};return Ce.workerFn=this.createSession(Ce).pipe((0,P.ZZ)(be=>this.rewardsSdkService.getRewardsStatus(this.session,this.userDetails,be))),this.processRequest(Ce).pipe((0,x.W)(be=>be&&be.ecidPayLoad?this.rewardsSdkService.getRewardsStatus(this.session,this.userDetails,be.ecidPayLoad):(0,S.$)(be)))}createSession(Ce){return this.isSessionValid()?this.prepareEndpointPayload(Ce):(this.logger.info("get and create fresh session"),this.onGfwslParamsReady().pipe((0,P.ZZ)(be=>this.rewardsSdkService.getSession()),(0,P.ZZ)(be=>this.rewardsSdkService.verifySession(be)),(0,P.ZZ)(()=>this.prepareEndpointPayload(Ce)),(0,x.W)(be=>(this.logger.error("error in create session",be),(0,S.$)(be)))))}isSessionValid(){if(this.session.parsedOverallState&&this.hasValue(this.session.gfeEtaExpire)&&this.gfwslParamsReady){const Ce=new Date,be=new Date(this.session.gfeEtaExpire.value);Ce.setSeconds(Ce.getSeconds()+r.GO);const rt=Ce<be;return this.logger.info("Session validity : ",rt?"valid session":"session timeout"),rt}return this.logger.info("gfeEtaExpire either not available or overAllStatus is false"),!1}hasValue(Ce){return!(!Ce||!Ce.value)}prepareEndpointPayload(Ce){return this.refreshUserDetails().pipe((0,P.ZZ)(()=>this.refreshEcidPayload()))}refreshUserDetails(){return this.loginService.accountStatusChanged.pipe((0,P.ZZ)(Ce=>(this.userDetails.user=Ce,Ce.isAuthenticated?this.loginService.getAuthToken().pipe((0,P.ZZ)(be=>be?(0,h.of)(be):(0,S.$)("auth token fetch failed"))):(0,S.$)("User not logged in"))),(0,M.T)(Ce=>(this.userDetails.idToken=Ce,this.userDetails)),(0,A.s)(1))}refreshEcidPayload(){const Ce=this.gfwslParamsService.getParams({},["gcV","GFPV","pgpuId"]),be=this.session.ecnon_egcv.value.substring(0,16)+this.userDetails.idToken.substring(0,16);return this.gpuEcidService.GetGpuEcid({signAlgo:+this.session.SgnGpuIdAlgo.value,key:this.session.ecnon_egpk.value,clientVersion:Ce.gcV,driverVersion:Ce.GFPV,nonce:be,primaryGpuId:Ce.pgpuId})}onGfwslParamsReady(){return this.gfwslParamsService.gfwslParamsUpdated.pipe((0,X.p)(Ce=>this.areGfwslParamsAvailable(Ce)),(0,A.s)(1))}processRequest(Ce){return this.ongoingRequests.has(Ce.name)?this.ongoingRequests.get(Ce.name).response$:(this.ongoingRequests.set(Ce.name,Ce),this.rewardsRequestQueue$.next(Ce),Ce.response$.pipe((0,A.s)(1),(0,x.W)(be=>this.clearAllCookies().pipe((0,q.n)(rt=>this.createSession(Ce).pipe((0,P.ZZ)(me=>(0,S.$)({error:be,ecidPayLoad:me}))))))))}entitle(Ce,be){const rt={name:r.GI.RedeemReward,targetName:r.N4.name,campaign:r.ix.TargetRewards,response$:new Y.B7};return rt.workerFn=this.createSession(rt).pipe((0,P.ZZ)(me=>this.rewardsSdkService.redeemEntitlement(this.session,this.userDetails,me,Ce,be))),this.processRequest(rt).pipe((0,x.W)(me=>me&&me.ecidPayLoad?this.rewardsSdkService.redeemEntitlement(this.session,this.userDetails,me.ecidPayLoad,Ce,be):(0,S.$)(me)))}clearAllCookies(){const Ce=this.gfwslParamsService.getServer(),be=Ce.search("//"),rt=Ce.slice(be+2,Ce.length-1);this.logger.info(" clearCookies called",rt);const me=this.bridgeService.executeCommand(ce.Ts.Common.Applicationcontrol.DeleteCookies,{url:rt,cookiename:"PHPSESSID"}),le=this.bridgeService.executeCommand(ce.Ts.Common.Applicationcontrol.DeleteCookies,{url:rt,cookiename:"AWSELBCORS"}),Xe=this.bridgeService.executeCommand(ce.Ts.Common.Applicationcontrol.DeleteCookies,{url:rt,cookiename:"AWSALBCORS"});return(0,G.yU)(me,le,Xe).pipe((0,g.M)(([Se,fe,Ne])=>this.logger.info("cookies deleted successfully",Se,fe,Ne)),(0,x.W)(Se=>(this.logger.info("error in deleting cookies",Se),(0,h.of)(!1))))}static{this.\u0275fac=function(be){return new(be||et)(B.KVO(U.J6),B.KVO(Q.HF),B.KVO(Ge),B.KVO(Qe.Tg),B.KVO(ze),B.KVO(U.NZ),B.KVO(Je.Qq))}}static{this.\u0275prov=B.jDH({token:et,factory:et.\u0275fac,providedIn:"root"})}}return et})();var Ve=s(45276),$e=s(58108),dt=s(73796),Pe=s(73370),J=s(96542),vt=s(96306),ve=s(1242);let ue=(()=>{class et{constructor(Ce,be,rt,me,le,Xe,Se,fe,Ne,ye,Ot,sn,dn,yn){this.loggingService=Ce,this.eventStreamFactory=be,this.rewardsFlowService=rt,this.loginService=me,this.vrsSdkService=le,this.config=Xe,this.genericDialog=Se,this.bridgeService=fe,this.lcarsService=Ne,this.piplLocaleConfigService=ye,this.translateService=Ot,this.errorHandlerService=sn,this.telemetryUtilService=dn,this.redirectService=yn,this.rewardsUpdatedSubscription=new i.m(1),this.currentUser=null,this.errorDialogLinkClicked=()=>{this.logger.info("link clicked"),this.redirectService.redirectTo(E.r7.NvappRedeemInstructions)},this.logger=Ce.getLogger("nvapp/RewardsService")}fetchRewards(){return this.currentUser?.isAuthenticated?this.rewardsFlowService.getRewards().pipe((0,M.T)(Ce=>this.processRewards(Ce))):this.vrsSdkService.getRewards().pipe((0,M.T)(Ce=>this.processRewards(Ce?.rewards)))}processRewards(Ce){const be=this.emptyRewardsHistory();return Ce.forEach(rt=>{this.logger.info("RewardsVrsItem",rt),rt.state=(0,m.T7)(rt.state);const me=(0,m.T7)(rt.status);this.isGfnOnlyCampaign(rt?.campaign?.tags,me)?this.logger.info("Found gfn only compaign, hide it"):(rt.status=me,rt.campaign.type=(0,m.T7)(rt.campaign.type),rt.uId=this.getUniqueRewardIdentifier(rt),be[rt.status]?be[rt.status].push(this.getNewReward(rt)):be[l.E.Unknown].push(this.getNewReward(rt)))}),be}getNewReward(Ce){return new u.e(this.loggingService,this.loginService,this.rewardsFlowService,this.bridgeService,Ce,this.config,this.telemetryUtilService)}getUniqueRewardIdentifier(Ce){return Ce.status+(Ce.state||"")+(Ce.entitlementId||"")+(Ce.redemptionId||"")+Ce.campaign.uuid}initialize(){this.rewardsFlowService.initialize(),this.loginService.accountStatusChanged.pipe((0,P.ZZ)(Ce=>(Ce.isAuthenticated?this.unsubscribePiplConfigUpdateEvent():this.registerForPiplLocalizationConfigUpdateEvent(),this.currentUser?.userId!==Ce.userId?(this.currentUser=Ce,this.getRewards(!0)):n.w)),(0,x.W)(Ce=>{this.logger.error("error in fetch rewards",Ce);const be=this.emptyRewardsHistory();return(0,h.of)(be)})).subscribe(C.l,C.l),this.registerListenToRefreshRewards()}registerListenToRefreshRewards(){u.e.refreshRewards.subscribe(Ce=>{this.getRewards(Ce).subscribe(be=>{this.logger.info("refresh the list")})})}getRewards(Ce=!1){return Ce?this.fetchRewards().pipe((0,A.s)(1),(0,g.M)(be=>{this.rewardsUpdatedSubscription.next(be)}),(0,x.W)(be=>{this.logger.info("error in refresh rewards",be);const rt=this.emptyRewardsHistory();return this.rewardsUpdatedSubscription.next(rt),(0,h.of)(be)})):this.rewardsUpdatedSubscription.asObservable()}pushNewRewardToHistory(Ce){return this.rewardsUpdatedSubscription.pipe((0,A.s)(1),(0,M.T)(be=>{this.logger.info("Reward status",Ce?.status);let rt=!1;if(be.available.length>0){const me=be.available.findIndex(le=>le.state===l.E.Claimable&&le.entitlementId===Ce.entitlementId);-1!==me&&(be.available[me]=Ce,rt=!0,this.logger.info("Already entitled"))}return rt||be[Ce.status].push(Ce),this.rewardsUpdatedSubscription.next(be),be}))}redeemCoupon(Ce){let be=new u.e(this.loggingService,this.loginService,this.rewardsFlowService,this.bridgeService,null,this.config,this.telemetryUtilService,Ce);return be.redeem().pipe((0,M.T)(rt=>{const me={rewardRedemptionState:rt};return rt===r.Se.EntitlementComplete?(this.pushNewRewardToHistory(be).subscribe(),be=null):rt===r.Se.EntitlementFailed&&(me.error=be.error),me}))}showRewardBridgeState(){const Ce=this.genericDialog.open({panelClass:"dialogPaddingRemove",disableClose:!0,data:{headerText:{text:"rewards.redemtionInProgress"},bodyText:{text:"rewards.rewardTabIsOpen"},primaryButton:{text:"common.cancel"}}});Ce.primaryButtonClick.pipe((0,A.s)(1)).subscribe(()=>{this.logger.info("cancle clicked "),Ce.close()})}showLoginToRedeemDialog(){const Ce=this.genericDialog.open({panelClass:"dialogPaddingRemove",disableClose:!0,data:{headerText:{text:"rewards.loginToRedeem"},bodyText:{text:"rewards.haveAnAccount"},primaryButton:{text:"common.login"},secondaryButton:{text:"common.cancel"}}});Ce.primaryButtonClick.pipe((0,A.s)(1)).subscribe(()=>{this.logger.info("Log in clicked "),Ce.close()}),Ce.secondaryButtonClick.pipe((0,A.s)(1)).subscribe(()=>{this.logger.info("cancle clicked "),Ce.close()})}listenToPanelUpdates(){return this.lcarsService.getPanelItems().pipe((0,M.T)(Ce=>this.processPanels(Ce)),(0,x.W)(Ce=>(this.logger.error("Error occured while fetching marquee",Ce),(0,S.$)(Ce))))}processPanels(Ce){return this.logger.info("Processing layout panels"),Ce?.filter(me=>me.name===v.HP.Rewards_Marquee)?.[0]?.sections?.[0]?.items}emptyRewardsHistory(){return{available:[],redeemed:[],locked:[],expired:[],unknown:[],unredeemed:[],unclaimable:[],claimable:[],redeeming:[]}}showEntilementFailedErrorDialog(Ce,be){const rt={text:"common.learnMore",linkClickedCallback:this.errorDialogLinkClicked.bind(this)};return this.genericDialog.open({panelClass:"dialogPaddingRemove",disableClose:!0,data:{bodyText:{text:be||"rewards.unableToRedeem"},primaryButton:{text:Ce?"shared.tryAgain":"common.close"},secondaryButton:Ce?{text:"common.close"}:void 0,link:rt,autoFocusOnPrimaryButton:R.X6}})}unsubscribePiplConfigUpdateEvent(){this.piplLocaleConfigUpdateEventSub$&&(this.piplLocaleConfigUpdateEventSub$.unsubscribe(),this.piplLocaleConfigUpdateEventSub$=null)}registerForPiplLocalizationConfigUpdateEvent(){this.piplLocaleConfigUpdateEventSub$=this.piplLocaleConfigService.piplLocalizationConfigUpdated$.subscribe(Ce=>{this.getRewards(!0).subscribe(be=>{this.logger.info("url changed, list refreshed")})})}showRewardUnAvailableDialog(){const Ce={featureName:this.translateService.instant("rewards.redeem")};this.errorHandlerService.showErrorDialog({headerText:{text:"common.featureNotAvailable"},bodyText:{text:"common.featureNotAvailableTryAgain",placeholders:Ce},translateValues:Ce,primaryButton:{text:"common.close"}})}isRewardUnAvailable(){return""===this.config.vrs?.server}isNvAppOnlyCampaign(Ce){return!!(Ce&&Ce.length>0&&Ce.find(be=>be.toLowerCase()===T.R1))}isGfnOnlyCampaign(Ce,be){let rt=!1;return be===l.E.Available&&Ce&&Ce?.length>0&&(rt=Ce.map(me=>me.toLowerCase()).includes(T.LL.toLowerCase())),rt}static{this.\u0275fac=function(be){return new(be||et)(B.KVO(U.J6),B.KVO(m.mZ),B.KVO(Ke),B.KVO(Q.HF),B.KVO(Ve.T),B.KVO(ct.Vk),B.KVO($e.uh),B.KVO(U.NZ),B.KVO(dt.B),B.KVO(Pe.X),B.KVO(J.c$),B.KVO(vt.c),B.KVO(ve.AY),B.KVO(E.Q5))}}static{this.\u0275prov=B.jDH({token:et,factory:et.\u0275fac,providedIn:"root"})}}return et})()},82546:(St,z,s)=>{"use strict";s.d(z,{E:()=>i});var i=function(n){return n.Available="available",n.Redeemed="redeemed",n.UnRedeemed="unredeemed",n.UnClaimable="unclaimable",n.Claimable="claimable",n.Redeeming="redeeming",n.Locked="locked",n.Expired="expired",n.Unknown="unknown",n}(i||{})},45276:(St,z,s)=>{"use strict";s.d(z,{T:()=>g});var i=s(8619),n=s(65706),h=s(75707),C=s(76449),S=s(58527),M=s(92602),P=s(5798),x=s(35965),A=s(47847);let g=(()=>{class m{constructor(r,u,v,E,T){this.distributedtracingUtilService=u,this.endpointFactory=v,this.gfwslParamService=E,this.vrsConfig=null,this.logger=r.getLogger("nvapp/VrsSdkService"),this.vrsConfig=T.vrs,this.vrsEndpoint=this.endpointFactory.createEndpoint({config:{maxRetries:this.vrsConfig.defaultRetries,retryOnTimeout:this.vrsConfig.retryOnTimeout,timeBetweenRetries:void 0,exponentialBackoffMaxDelay:this.vrsConfig.exponentialBackoffMaxDelay}})}getFullUrl(){return this.vrsConfig.server}areGfwslParamsAvailable(r){return!!(r.hasSystemInfo&&r.hasLocaleInfo&&r.params.dIDa)}onGfwslParamsReady(){return this.gfwslParamService.gfwslParamsUpdated.pipe((0,i.p)(r=>this.areGfwslParamsAvailable(r)),(0,n.s)(1))}getRewards(r){return this.logger.info("getting rewards"),this.onGfwslParamsReady().pipe((0,h.ZZ)(u=>{const v=this.gfwslParamService.getParams({},["dIDa","IsQ","dFma","gLG","osC","osB","iLp","gcV","GFPV","gLg"]);Array.isArray(v.dIDa)&&(v.dIDa=v.dIDa.join(","));const T={headers:{"Content-Type":"application/json"},params:v},R=this.vrsEndpoint.get(this.getFullUrl(),T);return this.distributedtracingUtilService.handleHttpEndpointSpan(R,T,C.pB.VrsGetRewards,r)}))}setConfigServer(r){this.vrsConfig.server=r}static{this.\u0275fac=function(u){return new(u||m)(S.KVO(M.J6),S.KVO(C.Z1),S.KVO(P.t),S.KVO(x.Tg),S.KVO(A.Vk))}}static{this.\u0275prov=S.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}}return m})()},93964:(St,z,s)=>{"use strict";s.d(z,{Q:()=>x});var i=s(58527),n=s(61142),h=s(99204),C=s(28139),S=s(96542);const M=A=>({"overlay-spinner":A});function P(A,g){if(1&A&&(i.j41(0,"span",3),i.EFF(1),i.nI1(2,"translate"),i.k0s()),2&A){const m=i.XpG();i.R7$(),i.JRh(i.bMT(2,1,m.assistiveText))}}let x=(()=>{class A{get classBinding(){return!this.overlaySpinner}ngOnInit(){this.diameter=this.diameter??30,this.overlaySpinner=!!this.overlaySpinner}static{this.\u0275fac=function(l){return new(l||A)}}static{this.\u0275cmp=i.VBU({type:A,selectors:[["nv-app-page-load-spinner"]],hostVars:2,hostBindings:function(l,r){2&l&&i.AVh("spinner-container",r.classBinding)},inputs:{diameter:"diameter",assistiveText:"assistiveText",overlaySpinner:"overlaySpinner"},decls:3,vars:5,consts:[[1,"page-load-spinner",3,"ngClass"],["mode","indeterminate",1,"mat-accent",3,"diameter"],["class","font-body3 loading-details-text",4,"ngIf"],[1,"font-body3","loading-details-text"]],template:function(l,r){1&l&&(i.j41(0,"div",0),i.nrm(1,"mat-progress-spinner",1),i.DNE(2,P,3,3,"span",2),i.k0s()),2&l&&(i.Y8G("ngClass",i.eq3(3,M,r.overlaySpinner)),i.R7$(),i.Y8G("diameter",r.diameter),i.R7$(),i.Y8G("ngIf",r.assistiveText))},dependencies:[n.YU,n.bT,h.LG,C.PW,S.D9],styles:["[_nghost-%COMP%]{width:100%;height:100%}.spinner-container[_nghost-%COMP%]{position:absolute}.loading-details-text[_ngcontent-%COMP%]{margin-top:8px}.page-load-spinner[_ngcontent-%COMP%]{position:absolute;display:flex;flex-direction:column;justify-content:center;align-items:center;width:100%;height:100%;min-width:100%;min-height:100%}.overlay-spinner[_ngcontent-%COMP%]{position:relative}"]})}}return A})()},92626:(St,z,s)=>{"use strict";s.d(z,{u:()=>S});var i=s(99204),n=s(94645),h=s(58527),C=s(92602);let S=(()=>{class M{set showSpinner(x){this._showSpinner=x,this._showSpinner&&this.matSpinner?(this.renderer.addClass(this.matSpinner.location.nativeElement,"show"),this.renderer.removeClass(this.span,"show")):!this.showSpinner&&this.span&&(this.renderer.addClass(this.span,"show"),this.renderer.removeClass(this.matSpinner.location.nativeElement,"show"))}get showSpinner(){return this._showSpinner}constructor(x,A,g,m){this.element=x,this.loggingService=A,this.viewContainerRef=g,this.renderer=m,this.logger=this.loggingService.getLogger("nvapp/TextButtonSpinnerDirective")}ngOnInit(){this.viewContainerRef.clear(),this.renderer.addClass(this.element.nativeElement,"text-button-spinner-container");const x=this.element.nativeElement.querySelector(".mat-button-wrapper");this.attachClassToButtontext(x),this.attachSpinner(x)}ngOnChanges(x){x?.buttonText&&this.span&&(this.span.innerHTML=this.buttonText)}attachClassToButtontext(x){this.element&&(this.span=document.createElement("span"),this.span.innerHTML=this.buttonText,this.renderer.addClass(this.span,"text"),this.renderer.addClass(this.span,"show"),this.renderer.appendChild(x,this.span))}attachSpinner(x){this.element&&(this.matSpinner=this.viewContainerRef.createComponent(i.LG),this.matSpinner.instance.diameter=this.diameter??n.hx,this.matSpinner.instance.mode="indeterminate",this.renderer.addClass(this.matSpinner.location.nativeElement,"mat-accent"),this.renderer.addClass(this.matSpinner.location.nativeElement,"spinner"),this.renderer.appendChild(x,this.matSpinner.location.nativeElement))}static{this.\u0275fac=function(A){return new(A||M)(h.rXU(h.aKT),h.rXU(C.J6),h.rXU(h.c1b),h.rXU(h.sFG))}}static{this.\u0275dir=h.FsC({type:M,selectors:[["","nvAppTextButtonSpinner",""]],inputs:{diameter:"diameter",showSpinner:"showSpinner",buttonText:"buttonText"},features:[h.OA$]})}}return M})()},47847:(St,z,s)=>{"use strict";s.d(z,{Vk:()=>i,ht:()=>it,OS:()=>Y});class i{}var n=s(58527),h=s(31315),C=s(43848),S=s(59859),M=s(83915),P=s(14714),x=s(91384),A=s(72147),g=s(10174),m=s(65706),l=s(14709),r=s(92602),u=s(64100),v=s(73370),E=s(21172),T=s(96542),R=s(96306),B=s(83997),U=s(26772);function Y(Fe){return{appVersion:Fe.build.version,...Fe.gfwsl}}const ae="overrides",G=ae+".json",Ee={provide:n.hnV,useFactory:function q(Fe,Qe,ct,Ge,nt){return()=>function te(Fe,Qe,ct,Ge,nt){return new Promise((Je,ze)=>{const Ke=Fe.mandatoryPluginsLoaded$.subscribe(Ve=>{Ve.loaded?function ce(Fe,Qe){return Fe.get(B.$).fetchLanguageCode().pipe((0,m.s)(1),(0,A.n)(Ge=>Fe.get(r.iH).setLocale(Ge)),(0,P.W)(Ge=>(Qe.getLogger("configuration.provider/mandatoryPluginHandler").error("Failed to set language preference, setting default locale",Ge),Fe.get(r.iH).useDefaultLocale())))}(nt,Ge).subscribe(()=>{Ke.unsubscribe(),Je(!0)},$e=>{Ge.getLogger("configuration.provider/mandatoryPluginHandler").error("Failed to set locale",$e),Ke.unsubscribe(),Je(!0)}):function Q(Fe){return Fe.get(E.P).isPluginLoaded$(U._g).pipe((0,A.n)(ct=>{if(ct)return Fe.get(r.iH).useDefaultLocale();{const Ge=Fe.get(T.c$);return Ge.setDefaultLang(r.Je),Ge.use(r.MY).pipe((0,g.u)(r.MY))}}))}(nt).pipe((0,m.s)(1)).subscribe($e=>{ct.showPluginFailureErrorDialog(void 0,$e)?.afterClosed().subscribe(Pe=>{ze("Mandatory plugin fails")}),ze(!1)},$e=>{Ge.getLogger("configuration.provider/mandatoryPluginHandler").error("Failed to set translation locale",$e)})},Ve=>{Ge.getLogger("configuration.provider/mandatoryPluginHandler").error("Failed to register the listener for mandatory plugin",Ve)})})}(Fe,0,ct,Ge,nt)},multi:!0,deps:[E.P,T.c$,R.c,r.J6,n.zZn]},it=[{provide:n.hnV,useFactory:function k(Fe,Qe,ct,Ge){const nt=Qe.getLogger("nvapp/configuration.provider");return()=>(0,h.zV)([ct.loadLocalizationConfigOverrides(),Ge.readConfigFile(G,[ae]).pipe((0,M.T)(Je=>Je[ae]),(0,P.W)(Je=>(nt.error("Failed to fetch locale overrides",Je),404===Je?.code?(0,C.of)({}):(0,S.$)(Je))))]).pipe((0,x.M)(([Je,ze])=>{Fe.setOverrides(ze),Fe.setPiplLocalizationConfigOverrides(Je),nt.info("updated config => ",JSON.stringify(Je),JSON.stringify(ze))}),(0,P.W)(Je=>(nt.error("Failed to fetch overrides",Je),(0,C.of)(!0)))).toPromise()},multi:!0,deps:[l.oO,r.J6,v.X,u.j]},(0,l.XR)(i),Ee]},26772:(St,z,s)=>{"use strict";s.d(z,{A7:()=>l,CL:()=>M,DQ:()=>g,WP:()=>E,X6:()=>P,Y8:()=>u,_V:()=>T,_g:()=>B,c9:()=>x,cl:()=>m,dz:()=>v,f:()=>C,g4:()=>r,gY:()=>A,qA:()=>R});var i=s(6953),n=s(20924);const h="nvapp",C={Root:"/",Home:h+"/home",Help:h+"/help",Drivers:h+"/drivers",Rewards:h+"/rewards",Preferences:h+"/preferences",System:h+"/system",ReleaseHighlights:h+"/releaseHighlights",SystemInfo:h+i.wW.SystemInfo,Settings:h+i.wW.Settings,Manage3dSettings:h+i.wW.Manage3dSettings,ChangeResolution:h+i.wW.ChangeResolution,SearchResults:h+"/searchResults",SystemBlockingApps:h+"/system/blockingApps"},M=3e3,P=!0,x=7e3,A=36e5,g="EEE MMM d, y",m="UTC",l="new-route",r="52px",u=n.Ts.Common.Downloader.StartDownload.module,v=n.Ts.Nvapp.Localgames.GetApplications.module,E=n.Ts.Nvapp.Nvcplplugin.GetProfileInfo.module,T=6e4,R="assets/img/fallback-hero-image.svg",B=n.Ts.Common.Systeminfo.GetSystemInfo.module},75723:(St,z,s)=>{"use strict";s.d(z,{L:()=>S});var i=s(58527),n=s(31308),h=s(96542),C=s(51008);let S=(()=>{class M{constructor(x,A,g,m){this.liveAnnouncer=x,this.translateService=A,this.el=g,this.announcerService=m}ngOnChanges(x){x.nvAppAnnouncer&&!x.nvAppAnnouncer.firstChange&&this.announce()}announce(){let x=this.nvAppAnnouncer;this.itemType||(this.itemType=this.el.nativeElement.tagName),x=this.announcerService.valueConverter(x,this.itemType);const A=this.translateService.instant(this.associatedMessage,this.associatedMessageParams||null);this.liveAnnouncer.announce(`${A} ${x}`)}static{this.\u0275fac=function(A){return new(A||M)(i.rXU(n.Ai),i.rXU(h.c$),i.rXU(i.aKT),i.rXU(C.x))}}static{this.\u0275dir=i.FsC({type:M,selectors:[["","nvAppAnnouncer",""]],inputs:{nvAppAnnouncer:"nvAppAnnouncer",associatedMessage:"associatedMessage",associatedMessageParams:"associatedMessageParams",itemType:"itemType"},features:[i.OA$]})}}return M})()},62302:(St,z,s)=>{"use strict";s.d(z,{_:()=>S});var i=s(56315),n=s(25864),h=s(94645),C=s(58527);let S=(()=>{class M{constructor(x){this.el=x}onKeyDown(x){const A=h.tt[x.key];A&&this.nvAppListKeyboardNav===A.navType?this.navigateToElement(A.direction):x.key===i.PK.Enter&&this.activateElement()}navigateToElement(x){const A=this.el.nativeElement,g=Array.from(A.parentElement.children),m=g.indexOf(A);let l;l=x===n.Ys.previous?(m-1+g.length)%g.length:(m+1)%g.length,g[l].focus()}activateElement(){const x=this.el.nativeElement.querySelector("button");x&&x.click()}static{this.\u0275fac=function(A){return new(A||M)(C.rXU(C.aKT))}}static{this.\u0275dir=C.FsC({type:M,selectors:[["","nvAppListKeyboardNav",""]],hostBindings:function(A,g){1&A&&C.bIt("keydown",function(l){return g.onKeyDown(l)})},inputs:{nvAppListKeyboardNav:"nvAppListKeyboardNav"}})}}return M})()},53698:(St,z,s)=>{"use strict";s.d(z,{H9:()=>g,Mo:()=>M,NV:()=>r,TZ:()=>S,Ur:()=>C,ZQ:()=>A,ZX:()=>m,dJ:()=>l,hF:()=>n,ht:()=>x,nC:()=>h,sb:()=>P,tx:()=>u});var i=s(20924),n=i.Or.Common.Downloader.DownloadStatus,h=i.Or.Common.Downloader.UpdateChannel,C=i.Or.Common.Downloader.UpdateType,S=i.Or.Common.Downloader.InvokeType,M=i.Or.Common.Downloader.PostProcessingStatus,P=i.Or.Common.Downloader.ActionStatus,x=i.Or.Common.Applicationcontrol.State,A=i.Or.Common.Downloader.CreateProfileStatusEnum,g=i.Or.Common.Downloader.UpdateFrameworkResult,m=function(v){return v.GRD="grd",v.CRD="crd",v.NVAPP="nvapp",v}(m||{}),l=function(v){return v[v.DownloadStatusPending=1]="DownloadStatusPending",v[v.DownloadStarted=2]="DownloadStarted",v[v.DownloadStatusPaused=3]="DownloadStatusPaused",v[v.DownloadFinished=4]="DownloadFinished",v[v.DownloadTriggered=5]="DownloadTriggered",v}(l||{}),r=function(v){return v.Pause="pause",v.Resume="resume",v.Stop="stop",v}(r||{}),u=function(v){return v.Default="default",v}(u||{})},37898:(St,z,s)=>{"use strict";s.d(z,{M:()=>r});var i=s(43848),n=s(83915),h=s(14714),C=s(55833),S=s(65706),M=s(20924),P=s(26875),A=s(83128),g=s(1242),m=s(58527),l=s(92602);let r=(()=>{class u{constructor(E,T,R){this.telemetryUtilService=T,this.bridgeService=R,this.isPerfTelemetrySentOnce={[A.fR.Home]:!1,[A.fR.Driver]:!1,[A.fR.Graphics]:!1,[A.fR.Settings]:!1,[A.fR.Redeem]:!1,[A.fR.Performance]:!1,[A.fR.SystemOverview]:!1,[A.fR.SystemDisplays]:!1},this.isFeaturePerfStatsLoggedOnce={[A.fR.OverlayEnable]:!1,[A.fR.OverlayDisable]:!1,[A.fR.MyRigDialog]:!1},this.logger=E.getLogger("nvapp/PerformanceMeasureService")}markNvAppPerformanceMarkers(E,T){if(!this.isPerfTelemetrySentOnce[T]){E?.forEach(U=>this.setMarker(U));const R=this.checkIfEndMarkerIsPresent(E,T),B=A.cT.includes(T);!B&&R?(this.isPerfTelemetrySentOnce[T]=!0,this.sendFeaturePerfTelemetryOnEndMarker(T)):B&&R&&!this.isFeaturePerfStatsLoggedOnce[T]&&(this.isFeaturePerfStatsLoggedOnce[T]=!0,this.logFeaturePerfStatsOnEndMarker(T))}}checkIfEndMarkerIsPresent(E,T){if(A.KH.has(T)){const R=A.KH.get(T);return!!R.find(U=>E.includes(U))&&R.every(U=>!!performance.getEntriesByName(U,A.Y7).length)}return!1}sendFeaturePerfTelemetryOnEndMarker(E){switch(E){case A.fR.Driver:return void this.sendDriverPerformanceTelemetry();case A.fR.Settings:return void this.sendAppSettingPerformanceTelemetry();case A.fR.Redeem:return void this.sendRedeemPerformanceTelemetry();case A.fR.Home:return void this.sendHomePerformanceTelemetry();case A.fR.Graphics:return void this.sendGraphicsPerformanceTelemetry();case A.fR.Performance:return void this.sendPerfPerformanceTelemetry();case A.fR.SystemOverview:return void this.sendSystemOverviewPerformanceTelemetry();case A.fR.SystemDisplays:return void this.sendDisplaysPerformanceTelemetry();case A.fR.SystemVideo:return void this.sendVideoPerformanceTelemetry()}}logFeaturePerfStatsOnEndMarker(E){switch(E){case A.fR.MyRigDialog:return void this.logMyRigDialogPerfStats();case A.fR.OverlayEnable:case A.fR.OverlayDisable:return void this.logOverlayPerfStats(E)}}logMyRigDialogPerfStats(){const E=this.computeLoadDurations(A.gT),T={screenName:A.fR.MyRigDialog,dataLoad:E?.get(A.vm.NvAppMyRigDialogDataLoad),viewLoad:E?.get(A.vm.NvAppMyRigDialogViewLoad)};this.logger.info("My rig dialog perf stats:",T,"Total time for My rig dialog",T.dataLoad+T.viewLoad)}logOverlayPerfStats(E){const T=this.computeLoadDurations(A.Sp);this.logger.info(`Total time for overlay ${E===A.fR.OverlayEnable?"enable":"disable"}: ${T.get(A.vm.NvAppOverlayUpdateLoad)}`)}computeLoadDurations(E){const T=new Map;return E.forEach(R=>{try{const B=performance.measure(R.name,R.start,R.end);T.set(R.name,B.duration)}catch(B){this.logger.error(`failed to capture measure, either start or end marker not present for entry ${R.name}`,B),T.set(R.name,-1)}}),T}fetchCEFStartupTime(){return this.cefStartupTime$||(this.cefStartupTime$=this.bridgeService.executeCommand(M.Ts.Common.Applicationinfo.GetApplicationTimeInfo,{type:M.Or.Common.Applicationinfo.ApplicationTimeType.Launch}).pipe((0,n.T)(E=>window.jsInitStartTs-E.startTime),(0,h.W)(E=>(0,i.of)(0)),(0,C.t)(1))),this.cefStartupTime$}sendHomePerformanceTelemetry(){const{NvAppHomeRouteLoad:E,NvAppHomeDataLoad:T,NvAppHomeViewLoad:R,NvAppHomeCompleteLoad:B}=A.vm,Y=this.getPerformanceStats(g.d3.Home,A.nk,{routeLoad:E,dataLoad:T,viewLoad:R}),ae=Y.viewLoad+Y.dataLoad+Y.routeLoad+Y.commonJsLoad;this.logger.info("Attempting to send Home performance telemetry. Home perf stats:",Y,"Total time for Layout:",ae),this.sendPageLoadPerfTelemetry(g.d3.Home,Y.dataLoad,[E,T,R,B],[Y.routeLoad+Y.commonJsLoad,Y.dataLoad,Y.viewLoad,ae])}sendDriverPerformanceTelemetry(){const{NvAppDriverRouteLoad:E,NvAppDriverDataLoad:T,NvAppDriverViewLoad:R,NvAppDriverCompleteLoad:B}=A.vm,Y=this.getPerformanceStats(g.d3.Drivers,A.zF,{routeLoad:E,dataLoad:T,viewLoad:R}),ae=Y.viewLoad+Y.dataLoad+Y.routeLoad;this.logger.info("Attempting to send Drivers performance telemetry. Drivers stats:",Y,"Total time for Drivers:",ae),this.sendPageLoadPerfTelemetry(g.d3.Drivers,Y.dataLoad,[E,T,R,B],[Y.routeLoad,Y.dataLoad,Y.viewLoad,ae])}setMarker(E){performance.clearMarks(E),performance.mark(E)}sendGraphicsPerformanceTelemetry(){const E=this.computeLoadDurations(A.TZ);let T=E.get(A.vm.NvAppGlobalSettingsDataLoad);T=T>0?T:0;let R=E.get(A.vm.NvAppProgramSettingsDataLoad);R=R>0?R:0;let B=E.get(A.vm.NvAppOpsDataLoad);B=B>0?B:0;let U=E.get(A.vm.NvAppOpsViewRenderLoad);U=U>0?U:0;const Y=B+U,ae=Y<R?R:Y,G=Y<R?R:B,k=E.get(A.vm.NvAppGraphicsRouteLoad)??0,X=k+ae;this.logger.info("Attempting to send graphics performance telemetry. Graphics load time:",{screenName:g.d3.Graphics,routeLoad:k,opsDataLoad:B,opsViewRenderLoad:U,_3dSettingsDataLoad:R,globalSettingsDataLoad:T},"Total time for Graphics_Ops:",k+Y,"& Total time for Graphics_3dSettings:",k+R),this.sendPageLoadPerfTelemetry(g.d3.Graphics,G,[A.vm.NvAppGraphicsRouteLoad,A.vm.NvAppGraphicsOpsLoad,A.vm.NvAppGraphics3dSettingsLoad,A.vm.NvAppGraphicsCompleteLoad],[k,Y,R,X])}sendAppSettingPerformanceTelemetry(){const{NvAppSettingsRouteLoad:E,NvAppSettingsDataLoad:T,NvAppSettingsViewLoad:R,NvAppSettingsCompleteLoad:B}=A.vm,Y=this.getPerformanceStats(g.d3.Settings,A.Xn,{routeLoad:E,dataLoad:T,viewLoad:R}),ae=Y.viewLoad+Y.dataLoad+Y.routeLoad;this.logger.info("Attempting to send App Settings performance telemetry. App Settings stats:",Y,"Total time for App Settings:",ae),this.sendPageLoadPerfTelemetry(g.d3.Settings,Y.dataLoad,[E,T,R,B],[Y.routeLoad,Y.dataLoad,Y.viewLoad,ae])}sendSystemOverviewPerformanceTelemetry(){const{NvAppSystemOverviewRouteLoad:E,NvAppSystemOverviewDataLoad:T,NvAppSystemOverviewViewLoad:R,NvAppSystemOverviewCompleteLoad:B}=A.vm,Y=this.getPerformanceStats(g.d3.System_Overview,A.qO,{routeLoad:E,dataLoad:T,viewLoad:R}),ae=Y.viewLoad+Y.dataLoad+Y.routeLoad;this.logger.info("Attempting to send System Overview performance telemetry. System Overview stats:",Y,"Total time for System Overview:",ae),this.sendPageLoadPerfTelemetry(g.d3.System_Overview,Y.dataLoad,[E,T,R,B],[Y.routeLoad,Y.dataLoad,Y.viewLoad,ae])}sendDisplaysPerformanceTelemetry(){const{NvAppDisplaysRouteLoad:E,NvAppDisplaysDataLoad:T,NvAppDisplaysViewLoad:R,NvAppDisplaysCompleteLoad:B}=A.vm,Y=this.getPerformanceStats(g.d3.System_Displays,A.vG,{routeLoad:E,dataLoad:T,viewLoad:R}),ae=Y.viewLoad+Y.dataLoad+Y.routeLoad;this.logger.info("Attempting to send System_Displays performance telemetry. System Displays stats:",Y,"Total time for System Displays:",ae),this.sendPageLoadPerfTelemetry(g.d3.System_Displays,Y.dataLoad,[E,T,R,B],[Y.routeLoad,Y.dataLoad,Y.viewLoad,ae])}sendVideoPerformanceTelemetry(){const{NvAppVideoRouteLoad:E,NvAppVideoDataLoad:T,NvAppVideoViewLoad:R,NvAppVideoCompleteLoad:B}=A.vm,Y=this.getPerformanceStats(g.d3.System_Video,A.bh,{routeLoad:E,dataLoad:T,viewLoad:R}),ae=Y.viewLoad+Y.dataLoad+Y.routeLoad;this.logger.info("Attempting to send System_Video performance telemetry. System Video stats:",Y,"Total time for System Video:",ae),this.sendPageLoadPerfTelemetry(g.d3.System_Video,Y.dataLoad,[E,T,R,B],[Y.routeLoad,Y.dataLoad,Y.viewLoad,ae])}sendRedeemPerformanceTelemetry(){const{NvAppRedeemRouteLoad:E,NvAppRedeemDataLoad:T,NvAppRedeemViewLoad:R,NvAppRedeemCompleteLoad:B}=A.vm,Y=this.getPerformanceStats(g.d3.Redeem,A.Wt,{routeLoad:E,dataLoad:T,viewLoad:R}),ae=Y.viewLoad+Y.dataLoad+Y.routeLoad;this.logger.info("Attempting to send Redeem performance telemetry. Redeem stats:",Y,"Total time for Redeem:",ae),this.sendPageLoadPerfTelemetry(g.d3.Redeem,Y.dataLoad,[E,T,R,B],[Y.routeLoad,Y.dataLoad,Y.viewLoad,ae])}getPerformanceStats(E,T,R){const B=this.computeLoadDurations(T);let U={screenName:E,routeLoad:B.get(R?.routeLoad)??0,dataLoad:B.get(R?.dataLoad)??0,viewLoad:B.get(R?.viewLoad)??0};return E===g.d3.Home&&(U={...U,commonJsLoad:B.get(A.vm.NvAppJSModuleLoad)??0}),U}sendPageLoadPerfTelemetry(E,T,R,B){this.fetchCEFStartupTime().pipe((0,S.s)(1)).subscribe(U=>{const Y=(0,P.isNaN)(U)?0:U;this.telemetryUtilService.sendPageLoadPerfEvent(E,{viewDataLoadDuration:T,sectionNames:[A.vm.CEFLoad,...R],sectionDataLoadDurations:[0,0,0,0,0],sectionTotalLoadDurations:[Y,...B]})})}sendPerfPerformanceTelemetry(){const E=this.computeLoadDurations(A.sb),T=E.get(A.vm.NvAppAutoTuningToggleDataLoad),R=E.get(A.vm.NvAppPerfLimitDataLoad),B=E.get(A.vm.NvAppPerformanceRouteLoad),U=Math.min(R,T),Y=B+U;this.logger.info("Attempting to send performance page load telemetry.",{screenName:g.d3.System_Performance,routeLoad:B,autoTuningToggleDataLoad:T,perfLimitDataLoad:R,perfDataLoad:U,completeLoad:Y}),this.sendPageLoadPerfTelemetry(g.d3.System_Performance,U,[A.vm.NvAppPerformanceRouteLoad,A.vm.NvAppAutoTuningToggleDataLoad,A.vm.NvAppPerfLimitDataLoad,A.vm.NvAppPerformanceCompleteLoad],[B,T,R,Y])}static{this.\u0275fac=function(T){return new(T||u)(m.KVO(l.J6),m.KVO(g.AY),m.KVO(l.NZ))}}static{this.\u0275prov=m.jDH({token:u,factory:u.\u0275fac,providedIn:"root"})}}return u})()},83128:(St,z,s)=>{"use strict";s.d(z,{KH:()=>v,Sp:()=>l,TZ:()=>S,Wt:()=>g,Xn:()=>M,Y7:()=>E,bh:()=>A,cT:()=>T,fR:()=>u,gT:()=>m,mM:()=>i,nk:()=>h,qO:()=>P,sb:()=>r,vG:()=>x,vm:()=>n,zF:()=>C});var i=function(R){return R.NvAppJsInitStart="NvAppJsInitStart",R.NvAppJsInitEnd="NvAppJsInitEnd",R.NvAppHomeRouteNavigationStart="NvAppHomeRouteNavigationStart",R.NvAppHomeRouteNavigationEnd="NvAppHomeRouteNavigationEnd",R.NvAppHomeDataFetchStart="NvAppHomeDataFetchStart",R.NvAppHomeDataFetchEnd="NvAppHomeDataFetchEnd",R.NvAppHomeViewRenderStart="NvAppHomeViewRenderStart",R.NvAppHomeViewRenderEnd="NvAppHomeViewRenderEnd",R.NvAppDriverRouteNavigationStart="NvAppDriverRouteNavigationStart",R.NvAppDriverRouteNavigationEnd="NvAppDriverRouteNavigationEnd",R.NvAppDriverDataFetchStart="NvAppDriverDataFetchStart",R.NvAppDriverDataFetchEnd="NvAppDriverDataFetchEnd",R.NvAppDriverViewRenderStart="NvAppDriverViewRenderStart",R.NvAppDriverViewRenderEnd="NvAppDriverViewRenderEnd",R.NvAppGraphicsRouteNavigationStart="NvAppGraphicsRouteNavigationStart",R.NvAppGraphicsRouteNavigationEnd="NvAppGraphicsRouteNavigationEnd",R.NvAppGraphicsDataFetchStart="NvAppGraphicsDataFetchStart",R.NvAppProgramSettingDataFetchEnd="NvAppProgramSettingDataFetchEnd",R.NvAppGlobalSettingDataFetchEnd="NvAppGlobalSettingDataFetchEnd",R.NvAppOpsDataFetchEnd="NvAppOpsDataFetchEnd",R.NvAppOpsViewRenderStart="NvAppOpsViewRenderStart",R.NvAppOpsViewRenderEnd="NvAppOpsViewRenderEnd",R.NvAppSettingsRouteNavigationStart="NvAppSettingsRouteNavigationStart",R.NvAppSettingsRouteNavigationEnd="NvAppSettingsRouteNavigationEnd",R.NvAppSettingsDataFetchStart="NvAppSettingsDataFetchStart",R.NvAppSettingsDataFetchEnd="NvAppSettingsDataFetchEnd",R.NvAppSettingsViewRenderStart="NvAppSettingsViewRenderStart",R.NvAppSettingsViewRenderEnd="NvAppSettingsViewRenderEnd",R.NvAppRedeemRouteNavigationStart="NvAppRedeemRouteNavigationStart",R.NvAppRedeemRouteNavigationEnd="NvAppRedeemRouteNavigationEnd",R.NvAppRedeemDataFetchStart="NvAppRedeemDataFetchStart",R.NvAppRedeemDataFetchEnd="NvAppRedeemDataFetchEnd",R.NvAppRedeemViewRenderStart="NvAppRedeemViewRenderStart",R.NvAppRedeemViewRenderEnd="NvAppRedeemViewInitEnd",R.NvAppMyRigDialogDataFetchStart="NvAppMyRigDialogDataFetchStart",R.NvAppMyRigDialogDataFetchEnd="NvAppMyRigDialogDataFetchEnd",R.NvAppMyRigDialogViewRenderStart="NvAppMyRigDialogViewRenderStart",R.NvAppMyRigDialogViewRenderEnd="NvAppMyRigDialogViewRenderEnd",R.NvAppOverlayUpdateStart="NvAppOverlayUpdateStart",R.NvAppOverlayUpdateEnd="NvAppOverlayUpdateEnd",R.NvAppAutoTuningToggleDataStart="NvAppAutoTuningToggleDataStart",R.NvAppAutoTuningToggleDataEnd="NvAppAutoTuningToggleDataEnd",R.NvAppPerfLimitDataStart="NvAppPerfLimitDataStart",R.NvAppPerfLimitDataEnd="NvAppPerfLimitDataEnd",R.NvAppPerfRouteStart="NvAppPerfRouteStart",R.NvAppPerfRouteEnd="NvAppPerfRouteEnd",R.NvAppSystemOverviewRouteNavigationStart="NvAppSystemOverviewRouteNavigationStart",R.NvAppSystemOverviewRouteNavigationEnd="NvAppSystemOverviewRouteNavigationEnd",R.NvAppSystemOverviewDataFetchStart="NvAppSystemOverviewDataFetchStart",R.NvAppSystemOverviewDataFetchEnd="NvAppSystemOverviewDataFetchEnd",R.NvAppSystemOverviewViewRenderStart="NvAppSystemOverviewViewRenderStart",R.NvAppSystemOverviewViewRenderEnd="NvAppSystemOverviewViewRenderEnd",R.NvAppDisplaysRouteNavigationStart="NvAppDisplaysRouteNavigationStart",R.NvAppDisplaysRouteNavigationEnd="NvAppDisplaysRouteNavigationEnd",R.NvAppDisplaysDataFetchStart="NvAppDisplaysDataFetchStart",R.NvAppDisplaysDataFetchEnd="NvAppDisplaysDataFetchEnd",R.NvAppDisplaysViewRenderStart="NvAppDisplaysViewRenderStart",R.NvAppDisplaysViewRenderEnd="NvAppDisplaysViewRenderEnd",R.NvAppVideoRouteNavigationStart="NvAppVideoRouteNavigationStart",R.NvAppVideoRouteNavigationEnd="NvAppVideoRouteNavigationEnd",R.NvAppVideoDataFetchStart="NvAppVideoDataFetchStart",R.NvAppVideoDataFetchEnd="NvAppVideoDataFetchEnd",R.NvAppVideoViewRenderStart="NvAppVideoViewRenderStart",R.NvAppVideoViewRenderEnd="NvAppVideoViewRenderEnd",R}(i||{}),n=function(R){return R.CEFLoad="CEFLoad",R.NvAppJSModuleLoad="NvAppJSModuleLoad",R.NvAppHomeRouteLoad="NvAppHomeRouteLoad",R.NvAppHomeDataLoad="NvAppHomeDataLoad",R.NvAppHomeViewLoad="NvAppHomeViewLoad",R.NvAppHomeCompleteLoad="NvAppHomeCompleteLoad",R.NvAppDriverRouteLoad="NvAppDriverRouteLoad",R.NvAppDriverDataLoad="NvAppDriverDataLoad",R.NvAppDriverViewLoad="NvAppDriverViewLoad",R.NvAppDriverCompleteLoad="NvAppDriverCompleteLoad",R.NvAppGraphicsRouteLoad="NvAppGraphicsRouteLoad",R.NvAppProgramSettingsDataLoad="NvAppProgramSettingsDataLoad",R.NvAppGlobalSettingsDataLoad="NvAppGlobalSettingsDataLoad",R.NvAppOpsDataLoad="NvAppOpsDataLoad",R.NvAppOpsViewRenderLoad="NvAppOpsViewRenderLoad",R.NvAppGraphicsOpsLoad="NvAppGraphicsOpsLoad",R.NvAppGraphics3dSettingsLoad="NvAppGraphics3dSettingsLoad",R.NvAppGraphicsCompleteLoad="NvAppGraphicsCompleteLoad",R.NvAppSettingsRouteLoad="NvAppSettingsRouteLoad",R.NvAppSettingsDataLoad="NvAppSettingsDataLoad",R.NvAppSettingsViewLoad="NvAppSettingsViewLoad",R.NvAppSettingsCompleteLoad="NvAppSettingsCompleteLoad",R.NvAppRedeemRouteLoad="NvAppRedeemRouteLoad",R.NvAppRedeemDataLoad="NvAppRedeemDataLoad",R.NvAppRedeemViewLoad="NvAppRedeemViewLoad",R.NvAppRedeemCompleteLoad="NvAppRedeemCompleteLoad",R.NvAppMyRigDialogDataLoad="NvAppMyRigDialogDataLoad",R.NvAppMyRigDialogViewLoad="NvAppMyRigDialogViewLoad",R.NvAppMyRigDialogCompleteLoad="NvAppMyRigDialogCompleteLoad",R.NvAppOverlayUpdateLoad="NvAppOverlayUpdateLoad",R.NvAppPerformanceRouteLoad="NvAppPerformanceRouteLoad",R.NvAppAutoTuningToggleDataLoad="NvAppAutoTuningToggleDataLoad",R.NvAppPerfLimitDataLoad="NvAppPerfLimitDataLoad",R.NvAppPerformanceCompleteLoad="NvAppPerformanceCompleteLoad",R.NvAppSystemOverviewRouteLoad="NvAppSystemOverviewRouteLoad",R.NvAppSystemOverviewDataLoad="NvAppSystemOverviewDataLoad",R.NvAppSystemOverviewViewLoad="NvAppSystemOverviewViewLoad",R.NvAppSystemOverviewCompleteLoad="NvAppSystemOverviewCompleteLoad",R.NvAppDisplaysRouteLoad="NvAppDisplaysRouteLoad",R.NvAppDisplaysDataLoad="NvAppDisplaysDataLoad",R.NvAppDisplaysViewLoad="NvAppDisplaysViewLoad",R.NvAppDisplaysCompleteLoad="NvAppDisplaysCompleteLoad",R.NvAppVideoRouteLoad="NvAppVideoRouteLoad",R.NvAppVideoDataLoad="NvAppVideoDataLoad",R.NvAppVideoViewLoad="NvAppVideoViewLoad",R.NvAppVideoCompleteLoad="NvAppVideoCompleteLoad",R}(n||{});const h=[{name:n.NvAppJSModuleLoad,start:i.NvAppJsInitStart,end:i.NvAppJsInitEnd},{name:n.NvAppHomeRouteLoad,start:i.NvAppHomeRouteNavigationStart,end:i.NvAppHomeRouteNavigationEnd},{name:n.NvAppHomeDataLoad,start:i.NvAppHomeDataFetchStart,end:i.NvAppHomeDataFetchEnd},{name:n.NvAppHomeViewLoad,start:i.NvAppHomeViewRenderStart,end:i.NvAppHomeViewRenderEnd}],C=[{name:n.NvAppDriverRouteLoad,start:i.NvAppDriverRouteNavigationStart,end:i.NvAppDriverRouteNavigationEnd},{name:n.NvAppDriverDataLoad,start:i.NvAppDriverDataFetchStart,end:i.NvAppDriverDataFetchEnd},{name:n.NvAppDriverViewLoad,start:i.NvAppDriverViewRenderStart,end:i.NvAppDriverViewRenderEnd}],S=[{name:n.NvAppGraphicsRouteLoad,start:i.NvAppGraphicsRouteNavigationStart,end:i.NvAppGraphicsRouteNavigationEnd},{name:n.NvAppProgramSettingsDataLoad,start:i.NvAppGraphicsDataFetchStart,end:i.NvAppProgramSettingDataFetchEnd},{name:n.NvAppGlobalSettingsDataLoad,start:i.NvAppGraphicsDataFetchStart,end:i.NvAppGlobalSettingDataFetchEnd},{name:n.NvAppOpsDataLoad,start:i.NvAppGraphicsDataFetchStart,end:i.NvAppOpsDataFetchEnd},{name:n.NvAppOpsViewRenderLoad,start:i.NvAppOpsViewRenderStart,end:i.NvAppOpsViewRenderEnd}],M=[{name:n.NvAppSettingsRouteLoad,start:i.NvAppSettingsRouteNavigationStart,end:i.NvAppSettingsRouteNavigationEnd},{name:n.NvAppSettingsDataLoad,start:i.NvAppSettingsDataFetchStart,end:i.NvAppSettingsDataFetchEnd},{name:n.NvAppSettingsViewLoad,start:i.NvAppSettingsViewRenderStart,end:i.NvAppSettingsViewRenderEnd}],P=[{name:n.NvAppSystemOverviewRouteLoad,start:i.NvAppSystemOverviewRouteNavigationStart,end:i.NvAppSystemOverviewRouteNavigationEnd},{name:n.NvAppSystemOverviewDataLoad,start:i.NvAppSystemOverviewDataFetchStart,end:i.NvAppSystemOverviewDataFetchEnd},{name:n.NvAppSystemOverviewViewLoad,start:i.NvAppSystemOverviewViewRenderStart,end:i.NvAppSystemOverviewViewRenderEnd}],x=[{name:n.NvAppDisplaysRouteLoad,start:i.NvAppDisplaysRouteNavigationStart,end:i.NvAppDisplaysRouteNavigationEnd},{name:n.NvAppDisplaysDataLoad,start:i.NvAppDisplaysDataFetchStart,end:i.NvAppDisplaysDataFetchEnd},{name:n.NvAppDisplaysViewLoad,start:i.NvAppDisplaysViewRenderStart,end:i.NvAppDisplaysViewRenderEnd}],A=[{name:n.NvAppVideoRouteLoad,start:i.NvAppVideoRouteNavigationStart,end:i.NvAppVideoRouteNavigationEnd},{name:n.NvAppVideoDataLoad,start:i.NvAppVideoDataFetchStart,end:i.NvAppVideoDataFetchEnd},{name:n.NvAppVideoViewLoad,start:i.NvAppVideoViewRenderStart,end:i.NvAppVideoViewRenderEnd}],g=[{name:n.NvAppRedeemRouteLoad,start:i.NvAppRedeemRouteNavigationStart,end:i.NvAppRedeemRouteNavigationEnd},{name:n.NvAppRedeemDataLoad,start:i.NvAppRedeemDataFetchStart,end:i.NvAppRedeemDataFetchEnd},{name:n.NvAppRedeemViewLoad,start:i.NvAppRedeemViewRenderStart,end:i.NvAppRedeemViewRenderEnd}],m=[{name:n.NvAppMyRigDialogDataLoad,start:i.NvAppMyRigDialogDataFetchStart,end:i.NvAppMyRigDialogDataFetchEnd},{name:n.NvAppMyRigDialogViewLoad,start:i.NvAppMyRigDialogViewRenderStart,end:i.NvAppMyRigDialogViewRenderEnd}],l=[{name:n.NvAppOverlayUpdateLoad,start:i.NvAppOverlayUpdateStart,end:i.NvAppOverlayUpdateEnd}],r=[{name:n.NvAppPerformanceRouteLoad,start:i.NvAppPerfRouteStart,end:i.NvAppPerfRouteEnd},{name:n.NvAppAutoTuningToggleDataLoad,start:i.NvAppAutoTuningToggleDataStart,end:i.NvAppAutoTuningToggleDataEnd},{name:n.NvAppPerfLimitDataLoad,start:i.NvAppPerfLimitDataStart,end:i.NvAppPerfLimitDataEnd}];var u=function(R){return R.Home="Home",R.Driver="Driver",R.Settings="Settings",R.Graphics="Graphics",R.Redeem="Redeem",R.MyRigDialog="MyRigDialog",R.OverlayEnable="OverlayEnable",R.OverlayDisable="OverlayDisable",R.Performance="Performance",R.SystemOverview="SystemOverview",R.SystemDisplays="SystemDisplays",R.SystemVideo="SystemVideo",R}(u||{});const v=new Map([[u.Redeem,[i.NvAppRedeemViewRenderEnd]],[u.Settings,[i.NvAppSettingsViewRenderEnd]],[u.SystemOverview,[i.NvAppSystemOverviewViewRenderEnd]],[u.SystemDisplays,[i.NvAppDisplaysViewRenderEnd]],[u.SystemVideo,[i.NvAppVideoViewRenderEnd]],[u.Driver,[i.NvAppDriverViewRenderEnd]],[u.Home,[i.NvAppHomeViewRenderEnd]],[u.MyRigDialog,[i.NvAppMyRigDialogViewRenderEnd]],[u.OverlayEnable,[i.NvAppOverlayUpdateEnd]],[u.OverlayDisable,[i.NvAppOverlayUpdateEnd]],[u.Graphics,[i.NvAppOpsViewRenderEnd,i.NvAppProgramSettingDataFetchEnd,i.NvAppGlobalSettingDataFetchEnd]],[u.Performance,[i.NvAppAutoTuningToggleDataEnd,i.NvAppPerfLimitDataEnd,i.NvAppPerfRouteEnd]]]),E="mark",T=[u.MyRigDialog,u.OverlayEnable,u.OverlayDisable]},94645:(St,z,s)=>{"use strict";s.d(z,{K1:()=>x,QC:()=>C,R$:()=>P,Tt:()=>A,_O:()=>M,hx:()=>S,oY:()=>g,pS:()=>l,tt:()=>r,xI:()=>h});var i=s(71152),n=s(25864);const h={GlobalStore:"global",DriverDownloadState:"driverDownloadState",OotbState:"ootbState",ManualAddedApps:"ManualAddedApps",HiddenApps:"HiddenApps",OpsState:"OpsState",NotificationBadgeState:"NotificationBadgeState",PerfStatsSupportState:"PerfStatsSupportState"},C={previouslyInstalledDrivers:"previouslyInstalledDrivers",SortByCriteria:"SortByCriteria",DisplaysMetadata:"DisplaysMetadata",SumdState:"SumdState",SurroundState:"SurroundState"},S=24,M=404,P="assets/img/marquee-individual-fallback.svg",x="assets/img/marquee-fallback.svg",A="PowerManagementMode",g="PhysX",l={width:"560px",height:"80vh",minHeight:"224px",unsetMinHeight:"0px"},r={[i.F0.ArrowUp]:{direction:n.Ys.previous,navType:"vertical"},[i.F0.ArrowDown]:{direction:n.Ys.next,navType:"vertical"},[i.F0.ArrowLeft]:{direction:n.Ys.previous,navType:"horizontal"},[i.F0.ArrowRight]:{direction:n.Ys.next,navType:"horizontal"}}},25864:(St,z,s)=>{"use strict";s.d(z,{E:()=>h,FU:()=>M,Pm:()=>P,XW:()=>C,Ys:()=>A,iE:()=>x,tb:()=>S,uj:()=>n});var i=s(20924),n=i.Or.Nvapp.Driverupdaterecommendation.DriverTypeEnum,h=i.Or.Common.Nvaccount.PrivacySettings;const C=i.Ts.Nvapp.Nvcpldisplayplugin.IsControlPanelClientInstalled;var S=function(g){return g.Turing100="352",g.Ampere100="368",g.Ada100="400",g.Blackwell="416",g}(S||{}),M=function(g){return g.Enabling="common.enabling",g.Disabling="layout.features.overlay.disabling",g.HotKey="layout.features.overlay.hotkey",g.ClickToEnable="layout.features.overlay.clickToEnable",g}(M||{}),P=function(g){return g.HotKey="gAssist.hotKey",g.ClickToEnable="gAssist.clickToEnable",g}(P||{}),x=function(g){return g.checkBox="MAT-CHECKBOX",g.toggle="MAT-SLIDE-TOGGLE",g.expansionPanel="MAT-EXPANSION-PANEL",g.slider="NV-HIG-SLIDER",g}(x||{}),A=function(g){return g.previous="previous",g.next="next",g}(A||{})},54803:(St,z,s)=>{"use strict";s.d(z,{D:()=>i,Q:()=>n});var i=function(h){return h.Home="menu.home",h.Drivers="drivers.title",h.GraphicsSettings="layout.features.manage3dsettings.title",h.Rewards="rewards.redeem",h.AppSettings="toolbar.settings",h.System="preferences.system",h}(i||{});const n={[i.Home]:"home",[i.Drivers]:"driver",[i.GraphicsSettings]:"tune",[i.System]:"desktop",[i.Rewards]:"rewards",[i.AppSettings]:"settings"}},5498:(St,z,s)=>{"use strict";s.d(z,{I:()=>i,p:()=>n});var i=function(h){return h.RecommendedDriverDetails="RecommendedDriverDetails",h.InstalledDriverDetails="InstalledDriverDetails",h.PreviouslyInstalledDriverDetails="PreviouslyInstalledDriverDetails",h.GfwslDriverReleaseHighlight="GfwslDriverReleaseHighlight",h.GfwslDriverArticleInformation="GfwslDriverArticleInformation",h.GfwslGfeTargetAchievementData="GfwslGfeTargetAchievementData",h.GfwslInstallationBillboardData="GfwslInstallationBillboardData",h.AppDiscoveryGetLayout="AppDiscoveryGetLayout",h.LcarsServiceGetLayout="LcarsServiceGetLayout",h.OOTBGetApps="OOTBGetApps",h.Graphics3DSettings="Graphics3DSettings",h.GfServicesOpsCompatibility="GfServicesOpsCompatibility",h}(i||{}),n=function(h){return h.GPU="gpu",h.DeviceOsVersion="deviceOsVersion",h.DriverVersion="driverVersion",h.InstalledRamCapacity="installedRamCapacity",h}(n||{})},79027:(St,z,s)=>{"use strict";s.d(z,{F:()=>h});var i=s(53698),n=s(58527);let h=(()=>{class C{transform(M){return this.getIsDownloadStatusPaused(M)?i.dJ.DownloadStatusPaused:this.getIsDownloadStarted(M)?i.dJ.DownloadStarted:this.getIsDownloadStatusPending(M)?i.dJ.DownloadStatusPending:this.getIsDownloadStatusCompleted(M)?i.dJ.DownloadFinished:this.getIsDownloadTriggered(M)?i.dJ.DownloadTriggered:void 0}getIsDownloadStarted(M){return M===i.hF.Paused||M===i.hF.Downloading||M===i.hF.NetworkErrorRetrying||M===i.hF.NetworkErrorRetryPaused||M===i.hF.VerifyingChecksum||M===i.hF.VerifyingSignature}getIsDownloadStatusPaused(M){return M===i.hF.Paused||M===i.hF.NetworkErrorRetryPaused}getIsDownloadStatusPending(M){return M===i.hF.Undefined||M===i.hF.ChecksumVerificationFailed||M===i.hF.Cancelled||M===i.hF.SignatureVerificationFailed||M===i.hF.Prohibited||M===i.hF.Error}getIsDownloadStatusCompleted(M){return M===i.hF.Finished}getIsDownloadTriggered(M){return M===i.hF.DownloadTriggered}static{this.\u0275fac=function(P){return new(P||C)}}static{this.\u0275pipe=n.EJ8({name:"checkDownloadProgressState",type:C,pure:!0})}}return C})()},26993:(St,z,s)=>{"use strict";s.d(z,{Tw:()=>S});var i=s(71152),n=s(58527),h=s(96542),C=s(61142);let S=(()=>{class A{constructor(m,l){this.translate=m,this.datePipe=l}translateText(m,l){return this.translate.instant(m,l)}transform(m,l){if(!m)return"";try{const r=new Date(m);return function M(A,g){return(g?new Date(g):new Date)>=A}(r,l)?function x(A,g,m,l,r){let U;const Y=function P(A,g){let m;return m=g?new Date(g):new Date,Math.round(Math.abs(m.getTime()-A.getTime())/1e3)}(m,r),ae=g.transform(m,"MMMM"),G=g.transform(m,"yyyy"),k=A.instant("common.monthYear",{month:ae,year:G});switch(!1){case!(Y<=1):U=Y+" common.second";break;case!(Y<60):U=Y+" common.seconds";break;case!(Y<120):U="1 common.minute";break;case!(Y<3600):U=Math.floor(Y/60)+" common.minutes";break;case 1!==Math.floor(Y/3600):U="1 common.hour";break;case!(Y<86400):U=Math.floor(Y/3600)+" common.hours";break;case!(Y<172800):if(l)return"common.yesterday";U="1 common.day";break;case!(Y<604800):U=Math.floor(Y/86400)+" common.days";break;case 1!==Math.floor(Y/604800):U="1 common.week";break;case!(Y<2592e3):U=Math.floor(Y/604800)+" common.weeks";break;case 1!==Math.floor(Y/2592e3):U="1 common.month";break;case!(Y<31536e3):if(l)return k;U=Math.floor(Y/2592e3)+" common.months";break;case 1!==Math.floor(Y/31536e3):if(l)return k;U="1 common.year";break;default:if(l)return k;U=Math.floor(Y/31536e3)+" common.years"}const X=U.split(" "),q=A.instant(X[1]);return A.instant("common.timeago",{number:X[0],timeUnit:q})}(this.translate,this.datePipe,r,!0,l):m}catch(r){throw(0,i.RL)(A,r.message)}}static{this.\u0275fac=function(l){return new(l||A)(n.rXU(h.c$,16),n.rXU(C.vh,16))}}static{this.\u0275pipe=n.EJ8({name:"convertUTCToTimeAgo",type:A,pure:!0})}}return A})()},51008:(St,z,s)=>{"use strict";s.d(z,{x:()=>S});var i=s(25864),n=s(58527),h=s(96542),C=s(31308);let S=(()=>{class M{constructor(x,A){this.translateService=x,this.a11yAnnouncer=A}announce(x,A,g){g&&(x=this.valueConverter(x,g)),this.a11yAnnouncer.announce(this.translateService.instant(A)+" "+x)}valueConverter(x,A){switch(A){case i.iE.checkBox:return this.translateService.instant(!0===x?"common.checked":"common.unchecked");case i.iE.toggle:const g=this.translateService.instant(!0===x?"common.on":"common.off");return this.translateService.instant("common.toggle",{state:g});case i.iE.expansionPanel:return this.translateService.instant(!0===x?"common.expand":"common.collapse");case i.iE.slider:return x;default:return""}}static{this.\u0275fac=function(A){return new(A||M)(n.KVO(h.c$),n.KVO(C.Ai))}}static{this.\u0275prov=n.jDH({token:M,factory:M.\u0275fac,providedIn:"root"})}}return M})()},3960:(St,z,s)=>{"use strict";s.d(z,{g:()=>C});var i=s(26513),n=s(58527),h=s(92602);let C=(()=>{class S{constructor(P){this.loggingService=P,this.titleChanged$=new i.t(null),this.logger=P.getLogger("nvapp/AppBarService")}get title(){return this.titleChanged$.asObservable()}setTitle(P){this.titleChanged$.next(P)}static{this.\u0275fac=function(x){return new(x||S)(n.KVO(h.J6))}}static{this.\u0275prov=n.jDH({token:S,factory:S.\u0275fac,providedIn:"root"})}}return S})()},43341:(St,z,s)=>{"use strict";s.d(z,{H:()=>g});var i=s(43848),n=s(36466),h=s(91384),C=s(14714),S=s(65706),M=s(94645),P=s(125),x=s(58527),A=s(92602);let g=(()=>{class m{constructor(r,u){this.dbService=u,this._filterBy=P.dj.FilterByAll,this._sortBy=P.NO.SortByRecentLaunch,this.logger=r.getLogger("nvapp/AppsSortAndFilterService"),this.globalStore=this.dbService.getGlobalStore(M.xI.GlobalStore)}set filterBy(r){this._filterBy=r}get filterBy(){return this._filterBy}get sortBy(){return this._sortBy}set sortBy(r){this._sortBy=r,this.setSortByCriteriaToDb(this._sortBy)}filterPrograms(r,u){const v=u??this.filterBy;return r.forEach(E=>{switch(E.filterBy=v,this._filterBy){case P.dj.FilterByAll:E.isVisible=!E.isHidden;break;case P.dj.FilterByGames:E.isVisible=!E.isCreativeApp&&!E.isHidden;break;case P.dj.FilterByApps:E.isVisible=E.isCreativeApp&&!E.isHidden;break;case P.dj.FilterByOptimized:E.isVisible=E.isOptimized&&!E.isHidden;break;case P.dj.FilterByUnOptimized:E.isVisible=!E.isOptimized&&!E.isHidden;break;case P.dj.FilterByPhotoMode:E.isVisible=(E.nvidiaTech?.ANSEL||E.nvidiaTech?.FREESTYLE)&&!E.isHidden;break;case P.dj.FilterByGameFilter:E.isVisible=E.nvidiaTech?.FREESTYLE&&!E.isHidden;break;case P.dj.FilterByHidden:E.isVisible=E.isHidden??!1}}),r}getInitialCountOfFilters(r){const u=[0,0,0,0,0,0,0,0];return r.forEach(v=>{u[P.dj.FilterByAll]+=1,v.isCreativeApp||(u[P.dj.FilterByGames]+=1),v.isCreativeApp&&(u[P.dj.FilterByApps]+=1),v.isOptimized||(u[P.dj.FilterByUnOptimized]+=1),v.isOptimized&&(u[P.dj.FilterByOptimized]+=1),(v.nvidiaTech?.ANSEL||v.nvidiaTech?.FREESTYLE)&&(u[P.dj.FilterByPhotoMode]+=1),v.nvidiaTech?.FREESTYLE&&(u[P.dj.FilterByGameFilter]+=1),v.isHidden&&(u[P.dj.FilterByHidden]+=1)}),u}sortApps(r,u){switch(u??this.sortBy){case P.NO.SortByRecentLaunch:return this.sortOnLaunchTime(r);case P.NO.SortByNameAscending:return r.sort((E,T)=>E.displayName.localeCompare(T.displayName));case P.NO.SortByNameDescending:return r.sort((E,T)=>T.displayName.localeCompare(E.displayName))}}getSortByCriteriaFromDb(){return this.globalStore.getItem(M.QC.SortByCriteria).pipe((0,h.M)(r=>{this.sortBy=r??P.NO.SortByRecentLaunch}),(0,C.W)(r=>(this.logger.error("failed to get sortByCriteria",r),this.sortBy=P.NO.SortByRecentLaunch,(0,i.of)(this.sortBy))),(0,S.s)(1))}setSortByCriteriaToDb(r){this.globalStore.setItem(M.QC.SortByCriteria,r).pipe((0,S.s)(1)).subscribe(n.l,u=>{this.logger.error("failed to set sortByCriteria",r,u)})}sortOnLaunchTime(r){return r.sort((u,v)=>{const E=this.getDateFromIsoString(u.lastLaunchTime),T=this.getDateFromIsoString(u.initialTime),R=this.getDateFromIsoString(v.lastLaunchTime),B=this.getDateFromIsoString(v.initialTime),U=E>T?E:T;return(R>B?R:B).getTime()-U.getTime()})}getDateFromIsoString(r){return new Date(r)}static{this.\u0275fac=function(u){return new(u||m)(x.KVO(A.J6),x.KVO(A.at))}}static{this.\u0275prov=x.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}}return m})()},58332:(St,z,s)=>{"use strict";s.d(z,{M:()=>T});var i=s(26875),n=s(26513),h=s(12532),C=s(43848),S=s(65706),M=s(83915),P=s(75707),x=s(14714),A=s(78812),g=s(148),l=s(20924).Or.Common.Nvaccount.PrivacySettings,r=s(58527),u=s(92602),v=s(1242),E=s(55808);let T=(()=>{class R{constructor(U,Y,ae,G){this.loggingService=U,this.telemetryService=Y,this.telemetryUtilService=ae,this.nvAccountInterfaceService=G,this.deviceConsents=g.eg,this.deviceTechnicalConsent=g.Yb,this.deviceConsents$=new n.t(g.eg),this.deviceTechnicalConsent$=new n.t(g.Yb),this.logger=this.loggingService.getLogger("nvapp/DataConsentService"),this.initializeListenersForUserStatus()}getDeviceConsents(){return this.deviceConsents$.asObservable()}getDeviceTechnicalConsent(){return this.deviceTechnicalConsent$.asObservable()}initialize(){this.getPrivacySettings(),this.listenToPrivacySettingsConsentInfoChangeNotification(),this.listenToPrivacySettingsChangeNotification(),this.initUserConsent()}setDeviceConsent(U){this.logger.info("set device consent ",U),this.telemetryService.setDeviceConsent(this.convertConsentData(U))}getPrivacySettings(){this.nvAccountInterfaceService.getPrivacySettings().pipe((0,S.s)(1)).subscribe(U=>{this.logger.info("Received Privacy Settings ",U?.privacySettings),this.updatePrivacySettings(U?.privacySettings)},U=>this.logger.error("Error occurred while getting privacy settings ",U))}listenToPrivacySettingsConsentInfoChangeNotification(){this.nvAccountInterfaceService.getPrivacySettingsConsentInfoChangeNotification().subscribe(U=>{this.logger.event("listenToPrivacySettingsConsentInfoChangeNotification ",U),this.setNvAppPrivacySettings(U.deviceConsent),this.telemetryService.setDeviceConsent(this.convertConsentData(U.deviceConsent))},U=>this.logger.error("Error occurred while listening to privacy settings consent info change notification ",U))}listenToPrivacySettingsChangeNotification(){this.nvAccountInterfaceService.getPrivacySettingsChangedNotification().subscribe(U=>{this.logger.event("listenToPrivacySettingsChangeNotification ",U?.privacySettings),this.updatePrivacySettings(U?.privacySettings)},U=>this.logger.error("Error occurred while listening to privacy settings change notification ",U))}updatePrivacySettings(U){switch(U){case l.RequiredOnly:this.deviceConsents[1].checked=!1,this.deviceTechnicalConsent.checked=!1,this.deviceTechnicalConsent.disabled=!0;break;case l.RequiredFunctional:this.deviceConsents[1].checked=!0,this.deviceTechnicalConsent.checked=!1,this.deviceTechnicalConsent.disabled=!1;break;case l.RequiredFunctionalTechnical:this.deviceConsents[1].checked=!0,this.deviceTechnicalConsent.checked=!0}this.deviceConsents$.next(this.deviceConsents),this.deviceTechnicalConsent$.next(this.deviceTechnicalConsent)}setNvAppPrivacySettings(U){U?.hasFunctionalConsent&&(this.deviceConsents[1].checked=!0,this.deviceTechnicalConsent.disabled=!1),U?.hasTechnicalConsent&&(this.deviceTechnicalConsent.checked=!0),this.deviceConsents$.next(this.deviceConsents),this.deviceTechnicalConsent$.next(this.deviceTechnicalConsent)}initUserConsent(){this.nvAccountInterfaceService.readUserFromNvAccount().pipe((0,M.T)(U=>(U?.userAccount&&U.userAccount?.userId&&(this.setTelemetryUserId(U.userAccount),this.updateUserConsent(U?.userAccount)),!0))).subscribe(U=>{U?this.logger.info("Consent read from the nvAcccount plugin sent to jsevents for initialization."):this.logger.error("No client consent sent to jsevents.")},U=>{this.logger.error("Reading the UserConsentInfo from the nvAcccount plugin failed with error:",U)})}initializeListenersForUserStatus(){this.listenForUserConsentChange(),this.listenForUserIdChange()}listenForUserConsentChange(){this.nvAccountInterfaceService.getUserConsentChangeNotification().subscribe(U=>{this.logger.info("Update user consent on consentChange notification"),this.updateUserConsent(U)})}listenForUserIdChange(){this.nvAccountInterfaceService.getUserIdChangeNotification().pipe((0,P.ZZ)(U=>{this.logger.info("Update userId on userIdChange notification");const Y=U?.userId;return(0,i.isNil)(Y?.userId)?(this.logger.info("User logged out"),this.resetTelemetryUserId(),h.w):(this.logger.info("Fetched user IDs successfully"),this.setTelemetryUserId(U),this.fetchAndUpdateUserConsent())}),(0,x.W)(U=>(this.logger.error("Error in getting/setting consent data on user refresh, Setting to default",U),(0,C.of)(!1)))).subscribe(U=>{this.logger.info("Updated user consent result successfully:",U)})}fetchAndUpdateUserConsent(){return this.nvAccountInterfaceService.readUserFromNvAccount().pipe((0,M.T)(U=>(this.updateUserConsent(U.userAccount),!0)))}updateUserConsent(U){const Y=Object.assign({},A.XZ);if(!(0,i.isNil)(U.userId)){const ae=U.userId;Y.userId=ae.userId,Y.externalUserId=ae.externalUserId,Y.idpId=ae.identityProviderId}Y.userConsent=this.convertConsentData(U.consentLevel),this.telemetryService.setUserConsent([Y])}convertConsentData(U){const Y=(0,i.merge)({},A.wx);return U&&(Y.required=this.telemetryUtilService.getConsentLevel(U.hasRequiredConsent),Y.technical=this.telemetryUtilService.getConsentLevel(U.hasTechnicalConsent),Y.behavioral=this.telemetryUtilService.getConsentLevel(U.hasBehavioralConsent),Y.functional=this.telemetryUtilService.getConsentLevel(U.hasFunctionalConsent)),Y}resetTelemetryUserId(){this.telemetryService.setEventsCommonData({userId:A.oX.Undefined,externalUserId:A.oX.Undefined,idpId:A.oX.Undefined},!0)}setTelemetryUserId(U){if((0,i.isNil)(U))return;const Y=U?.userId;this.telemetryService.setEventsCommonData({userId:Y?.userId,externalUserId:Y?.externalUserId,idpId:Y?.identityProviderId},!0)}static{this.\u0275fac=function(Y){return new(Y||R)(r.KVO(u.J6),r.KVO(A.H0),r.KVO(v.AY),r.KVO(E.W))}}static{this.\u0275prov=r.jDH({token:R,factory:R.\u0275fac,providedIn:"root"})}}return R})()},92616:(St,z,s)=>{"use strict";s.d(z,{S:()=>r});var i=s(85735),n=s(43848),h=s(59859),C=s(65706),S=s(83915),M=s(91384),P=s(14714),x=s(52842),A=s(51148),g=s(58527),m=s(92602),l=s(86088);let r=(()=>{class u{get ddsState$(){return this._ddsState.asObservable()}constructor(E,T){this.loggingService=E,this.nvAppBridgeService=T,this._ddsState=new i.m(1),this._hasDdsStateCache=!1,this.logger=E.getLogger("nvapp/ManageDisplayModeService")}refreshDdsState(){return this._hasDdsStateCache=!1,this.getDdsState().pipe((0,C.s)(1))}getDdsState(){if(this.logger.info("Get DDS state"),this._hasDdsStateCache)return this.logger.info("Returning cached DDS state"),this._ddsState.asObservable();this.logger.info("No cached value for DDS state, making API call");const E=performance.now();return this.nvAppBridgeService.executeWithPluginStatusTelemetry(A.Zq,{},{},!1,!1).pipe((0,S.T)(T=>{const R=performance.now();return this.logger.info("GetDDSState API took (ms): ",R-E),this._hasDdsStateCache=!0,T}),(0,M.M)(T=>{this.logger.info("DDS State: ",T),this._ddsState.next(T)}),(0,P.W)(T=>(this.logger.error("Error while getting DDS state",T),this._hasDdsStateCache=!1,this._ddsState.next(x.e_),(0,n.of)(x.e_))))}setDdsState(E){return this.logger.info("Setting DDS state",E),this.nvAppBridgeService.executeWithPluginStatusTelemetry(A.L3,E,{},!0,!1).pipe((0,M.M)(()=>{this.logger.info("SetDDSState successful"),this._hasDdsStateCache=!1}),(0,P.W)(T=>(this.logger.error("Error while setting ddsState",T),(0,h.$)(T))))}getBlockingAppPresence(){return this.logger.info("Get blocking app presence info"),this.nvAppBridgeService.executeWithPluginStatusTelemetry(A.zS,{},{},!1,!1).pipe((0,S.T)(E=>E?.bBlockingAppPresent||!1),(0,P.W)(E=>(this.logger.error("Error while getting blocking app presence info",E),(0,h.$)(E))))}isACPowerConnected(){return this.logger.info("Get ACPowerConnectedStatus "),this.nvAppBridgeService.executeWithPluginStatusTelemetry(A.Zg,{},{},!1,!1).pipe((0,M.M)(E=>{this.logger.info("isACPowerConnected status ",E?.bAcConnected)}),(0,S.T)(E=>E?.bAcConnected),(0,P.W)(E=>(this.logger.error("Error while getting ac power status",E),(0,n.of)(!1))))}getIsAllDisabled(E){return E?.kmdResponse===A.Kc.Response_MultiHead||E?.kmdResponse===A.Kc.Response_IGpuUnavailable||E?.kmdResponse===A.Kc.Response_IGpuInternalHeadUnavailable||E?.srType===A.Oi.PSR_Failed}getDDSBlockingApps(){this.logger.info("Get DDS blocking apps");const E=performance.now();return this.nvAppBridgeService.executeWithPluginStatusTelemetry(A.xv,{},{},!1,!1).pipe((0,S.T)(T=>{const R=performance.now();return this.logger.info("GetDDSBlockingApps API took (ms): ",R-E),T}),(0,M.M)(T=>{this.logger.info("DDS Blocking Apps: ",T)}),(0,P.W)(T=>(this.logger.error("Error while getting DDS blocking apps",T),(0,h.$)(T))))}static{this.\u0275fac=function(T){return new(T||u)(g.KVO(m.J6),g.KVO(l.S))}}static{this.\u0275prov=g.jDH({token:u,factory:u.\u0275fac,providedIn:"root"})}}return u})()},4760:(St,z,s)=>{"use strict";s.d(z,{z:()=>B});var i=s(80583),n=s(43848),h=s(59859),C=s(91384),S=s(83915),M=s(8619),P=s(14714),x=s(65706),A=s(26875),m=s(20924),l=s(53698),r=s(1242),u=s(62668),v=s(58527),E=s(92602),T=s(86088),R=s(96306);let B=(()=>{class U{constructor(ae,G,k,X,q){this.loggingService=ae,this.telemetryUtilsService=G,this.nvAppBridgeService=k,this.bridgeService=X,this.errorHandlerService=q,this.downloadProgressCallback$=new i.B7,this.postProcessingProgressCallback$=new i.B7,this.isRegisterDownloadProgressSuccess=!1,this.isRegisterPostProcessProgressSuccess=!1,this.isDownloadStatusRequestTimeout=!1,this.logger=this.loggingService.getLogger("nvapp/DownloaderService"),this.registerDownloadAndPostProcessCallback()}registerDownloadAndPostProcessCallback(){this.logger.info("Initialize register download and post process progress callback"),this.registerDownloadProgressNotification(),this.registerPostProcessingProgressNotification()}getIsDownloadStatusRequestTimedOut(){return this.isDownloadStatusRequestTimeout}startDownloadAndPostProcess(ae,G,k){this.registerDownloadAndPostProcessCallback(),this.logger.info("start download and post process for version ",ae,"downloadUrl ",G,"downloadTypeInfo ",JSON.stringify(k));const X={version:ae,url:G,downloadTypeInfo:k};return this.sendDownloadTriggeredStatus(ae,k,G),this.nvAppBridgeService.executeCommandWithTimeout(m.Ts.Common.Downloader.StartDownloadAndPostProcess,X).pipe((0,C.M)(q=>this.showErrorToastOnAPIFailure(q)),(0,S.T)(q=>q?.downloadProgressStatus))}createProfile(ae,G,k,X=!1,q){return this.logger.info("create profile called for ",ae),this.nvAppBridgeService.executeCommandWithTimeout(m.Ts.Common.Downloader.CreateProfileFromSourceProfile,{componentName:ae,sourceComponentName:G||l.tx.Default,checksumType:k,forceUpdate:X,installationKey:q})}startDownload(ae,G,k){this.registerDownloadAndPostProcessCallback(),this.logger.info("start download for version ",ae,"downloadUrl ",G,"downloadTypeInfo ",JSON.stringify(k));const X={version:ae,url:G,downloadTypeInfo:k};return this.sendDownloadTriggeredStatus(ae,k,G),this.nvAppBridgeService.executeCommandWithTimeout(m.Ts.Common.Downloader.StartDownload,X).pipe((0,C.M)(q=>this.showErrorToastOnAPIFailure(q)),(0,S.T)(q=>q?.downloadProgressStatus))}pauseDownload(ae,G){return this.logger.info("pause download for taskid new",G),this.nvAppBridgeService.executeCommandWithTimeout(m.Ts.Common.Downloader.PauseDownload,{componentName:ae,taskId:G}).pipe((0,C.M)(X=>this.showErrorToastOnAPIFailure(X)),(0,S.T)(X=>X?.downloadProgressStatus))}resumeDownload(ae,G){return this.registerDownloadAndPostProcessCallback(),this.logger.info("resume download for taskid",G),this.nvAppBridgeService.executeCommandWithTimeout(m.Ts.Common.Downloader.ResumeDownload,{componentName:ae,taskId:G}).pipe((0,C.M)(X=>this.showErrorToastOnAPIFailure(X)),(0,S.T)(X=>X?.downloadProgressStatus))}resumeDownloadAndPostProcess(ae,G){return this.registerDownloadAndPostProcessCallback(),this.logger.info("resume download and post process for taskid",G),this.nvAppBridgeService.executeCommandWithTimeout(m.Ts.Common.Downloader.ResumeDownloadAndPostProcess,{componentName:ae,taskId:G}).pipe((0,C.M)(X=>this.showErrorToastOnAPIFailure(X)),(0,S.T)(X=>X?.downloadProgressStatus))}stopDownload(ae,G){return this.logger.info("stop download for taskid ",G),this.nvAppBridgeService.executeCommandWithTimeout(m.Ts.Common.Downloader.StopDownload,{componentName:ae,taskId:G}).pipe((0,M.p)(X=>X.updateFrameworkResult!==l.H9.InvalidOperation),(0,C.M)(X=>this.showErrorToastOnAPIFailure(X)),(0,S.T)(X=>(this.logger.info("updateFrameworkResult",X.updateFrameworkResult),X?.downloadProgressStatus)))}getPostProcessingStatus(ae,G){return this.nvAppBridgeService.executeWithPluginStatusTelemetry(m.Ts.Common.Downloader.GetPostProcessingStatus,{componentName:ae,taskId:G}).pipe((0,S.T)(X=>(this.logger.info("post process status return",X),X?.postProcessingStatusInfo)))}getDownloadProgressNotification(){return this.downloadProgressCallback$.asObservable()}getPostProcessingProgressNotification(){return this.postProcessingProgressCallback$.asObservable()}getDownloadStatus(ae,G,k){if(this.logger.info("Get Download status params",G,k),this.isDownloadStatusRequestTimeout){const te={downloadStatus:l.hF.Undefined,version:G,downloadUrl:k};return this.logger.info("Download Status Api already timed out returning cached data",te),(0,n.of)(te)}const X={componentName:ae,version:G,url:k},q=m.Ts.Common.Downloader.GetDownloadStatus,Q=q.method,ce=q.module;return this.nvAppBridgeService.executeWithPluginStatusTelemetry(m.Ts.Common.Downloader.GetDownloadStatus,X).pipe((0,S.T)(te=>te?.downloadProgressStatus),(0,C.M)(te=>{this.isDownloadStatusRequestTimeout=!1,this.updateTaskbarProgressStatus(te),this.telemetryUtilsService.sendPluginApiStatusTelemetry({apiName:Q,pluginName:ce,params:JSON.stringify(X),status:r.L1.Success})}),(0,P.W)(te=>{if(this.telemetryUtilsService.sendPluginApiStatusTelemetry({apiName:Q,pluginName:ce,status:r.L1.Failure,params:JSON.stringify(X),errorMessage:JSON.stringify(te)}),this.logger.error("failed to fetch download status with error",te),te instanceof u.n){const Ee={downloadStatus:l.hF.Undefined,version:G,downloadUrl:k};return this.isDownloadStatusRequestTimeout=!0,(0,n.of)(Ee)}return(0,h.$)(te)}))}getTaskDownloadStatus(ae,G){return this.logger.info("Get Download status params",G),this.nvAppBridgeService.executeCommandWithTimeout(m.Ts.Common.Downloader.GetTaskDownloadStatus,{componentName:ae,taskId:G}).pipe((0,S.T)(X=>X?.downloadProgressStatus),(0,C.M)(X=>{this.logger.info("GetTaskDownloadStatus is",X)}))}updateTaskbarProgressStatus(ae){if([l.ZX.CRD,l.ZX.GRD].includes(ae?.downloadTypeInfo?.componentName))switch(ae.downloadStatus){case l.hF.Paused:case l.hF.NetworkErrorRetryPaused:this.setTaskBarProgress(l.ht.percentage,ae.percentComplete),this.setTaskBarProgress(l.ht.pause);break;case l.hF.Downloading:case l.hF.NetworkErrorRetrying:this.setTaskBarProgress(l.ht.percentage,ae.percentComplete);break;case l.hF.Prohibited:case l.hF.ChecksumVerificationFailed:case l.hF.SignatureVerificationFailed:case l.hF.DiskWriteFail:case l.hF.Error:case l.hF.Cancelled:case l.hF.Finished:this.setTaskBarProgress(l.ht.complete);break;default:this.logger.info("Taskbar status update failed since download status is empty: ")}}registerDownloadProgressNotification(){this.isRegisterDownloadProgressSuccess||(this.registerDownloadProgressNotificationSubscription?.unsubscribe(),this.registerDownloadProgressNotificationSubscription=this.bridgeService.executeCommand(m.Ts.Common.Downloader.RegisterDownloadProgress).subscribe(ae=>{ae?(this.isRegisterDownloadProgressSuccess=!0,this.logger.info("In registerDownloadProgressNotification DownloadProgressStatus :",ae),this.updateTaskbarProgressStatus(ae),this.downloadProgressCallback$.next(ae)):this.logger.info("DownloadProgressStatus is invalid")},ae=>{this.logger.error("Failed to RegisterDownloadProgress with Error :",ae)}))}registerPostProcessingProgressNotification(){this.isRegisterPostProcessProgressSuccess||(this.registerPostProcessingProgressNotificationSubscription?.unsubscribe(),this.registerPostProcessingProgressNotificationSubscription=this.bridgeService.executeCommand(m.Ts.Common.Downloader.RegisterPostProcessingProgress).subscribe(ae=>{ae?(this.isRegisterPostProcessProgressSuccess=!0,this.logger.info("postProcessingProgressStatus :",ae),this.postProcessingProgressCallback$.next(ae)):this.logger.info("postProcessingProgressStatus is invalid")},ae=>{this.logger.error("Failed to RegisterPostProcessingProgress with Error :",ae)}))}setTaskBarProgress(ae,G){this.nvAppBridgeService.executeCommandWithTimeout(m.Ts.Common.Applicationcontrol.SetTaskbarProgress,{state:ae,...G?{percent:Math.round(G)}:{}}).pipe((0,x.s)(1)).subscribe(k=>{this.logger.info("Taskbar status updated successfully with response: ",k)},k=>{this.logger.info("Taskbar status update failed with error: ",k)})}setUpdateChannelInfo(ae){const G={componentName:l.ZX.NVAPP,updateChannel:ae};return this.logger.info("calling SetUpdateChannel with param:",G),this.nvAppBridgeService.executeWithPluginStatusTelemetry(m.Ts.Common.Downloader.SetUpdateChannel,G)}getUpdateChannelInfo(){return this.nvAppBridgeService.executeCommandWithTimeout(m.Ts.Common.Downloader.GetUpdateChannel,{componentName:l.ZX.NVAPP})}sendDownloadTriggeredStatus(ae,G,k){this.downloadProgressCallback$.next({downloadStatus:l.hF.DownloadTriggered,percentComplete:0,timeRemaining:0,downloadSpeed:0,totalBytes:0,bytesDone:0,taskId:"",downloadedLocation:"",failureCount:0,version:ae,downloadTypeInfo:G,httpResponseCode:0,errorCode:"",downloadPausedOnce:0,downloadUrl:k})}showErrorToastOnAPIFailure(ae){ae?.updateFrameworkResult!==l.H9.Success&&ae?.downloadProgressStatus?.downloadTypeInfo?.componentName!==l.ZX.NVAPP&&(this.logger.error("update framework responded with an API failure with update framework result as",ae?.updateFrameworkResult),this.showErrorToastMessage("common.somethingWentWrong"))}showErrorToastMessage(ae,G,k){const X=this.getHigText(ae,G,k);this.errorHandlerService.showToastMessage(X).subscribe(A.noop,q=>{this.logger.error("failed to show error toast message",q)})}getHigText(ae,G,k){return{text:ae,placeholders:G,translated:!!(0,A.isEmpty)(G)&&!!k}}static{this.\u0275fac=function(G){return new(G||U)(v.KVO(E.J6),v.KVO(r.AY),v.KVO(T.S),v.KVO(E.NZ),v.KVO(R.c))}}static{this.\u0275prov=v.jDH({token:U,factory:U.\u0275fac,providedIn:"root"})}}return U})()},96306:(St,z,s)=>{"use strict";s.d(z,{c:()=>R});var i=s(43848),n=s(65706),h=s(83915),C=s(8619),S=s(58108),M=s(26772),P=s(26537),x=s(20924),A=s(58527),g=s(92602),m=s(61142),l=s(47973),r=s(96542);const u=B=>({errorCode:B});function v(B,U){if(1&B&&(A.j41(0,"div",11),A.EFF(1),A.nI1(2,"translate"),A.k0s()),2&B){const Y=A.XpG();A.R7$(),A.SpI(" ",A.i5U(2,1,"common.errorCode",A.eq3(4,u,Y.data.errorCode))," ")}}let E=(()=>{class B{constructor(Y,ae,G){this.bridgeService=Y,this.dialogRef=ae,this.injector=G,this.data=this.injector.get(P.Vh,null)}onPrimaryButtonClick(){this.dialogRef.close(),this.bridgeService.executeCommand(x.Ts.Common.Windowcontrol.Close).subscribe(()=>{})}static{this.\u0275fac=function(ae){return new(ae||B)(A.rXU(g.NZ),A.rXU(P.CP),A.rXU(A.zZn))}}static{this.\u0275cmp=A.VBU({type:B,selectors:[["nv-app-plugin-fails-modal"]],inputs:{data:"data"},decls:20,vars:13,consts:[[1,"error-modal"],[1,"dialog-padding","row"],[1,"dialog-content-container","column"],[1,"dialog-info-container","column"],[1,"font-header6","header-text"],[1,"dialog-spinner-container","dialog-spinner-content-start","row"],[1,"column"],[1,"font-body2","body-text"],["class","font-body2 dialog-error-text",4,"ngIf"],["align","end",1,"dialog-actions-container"],["mat-button","","action-button","",1,"font-button2",3,"click"],[1,"font-body2","dialog-error-text"]],template:function(ae,G){1&ae&&(A.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4),A.EFF(5),A.nI1(6,"translate"),A.k0s(),A.j41(7,"div",5)(8,"div",6)(9,"div",7),A.EFF(10),A.nI1(11,"translate"),A.k0s(),A.j41(12,"div",7),A.EFF(13),A.nI1(14,"translate"),A.k0s()()(),A.DNE(15,v,3,6,"div",8),A.k0s(),A.j41(16,"mat-dialog-actions",9)(17,"button",10),A.bIt("click",function(){return G.onPrimaryButtonClick()}),A.EFF(18),A.nI1(19,"translate"),A.k0s()()()()()),2&ae&&(A.R7$(5),A.SpI(" ",A.bMT(6,5,"common.problemWithNvAppErrorHeaderText")," "),A.R7$(5),A.JRh(A.bMT(11,7,"common.relaunchAppError")),A.R7$(3),A.JRh(A.bMT(14,9,"common.rebootPC")),A.R7$(2),A.Y8G("ngIf",G.data.errorCode),A.R7$(3),A.SpI(" ",A.bMT(19,11,"common.close")," "))},dependencies:[m.bT,l.iV,P.E7,r.D9],styles:[".error-modal[_ngcontent-%COMP%]{display:flex;flex-direction:column;background-color:var(--mdc-dialog-container-color);padding:0;width:560px}.error-modal[_ngcontent-%COMP%] .dialog-padding[_ngcontent-%COMP%]{padding:20px 8px 8px 24px}.error-modal[_ngcontent-%COMP%] .dialog-content-container[_ngcontent-%COMP%]{width:100%}.error-modal[_ngcontent-%COMP%] .dialog-content-container[_ngcontent-%COMP%] .dialog-info-container[_ngcontent-%COMP%]{margin-right:16px}.error-modal[_ngcontent-%COMP%] .dialog-link-text[_ngcontent-%COMP%]{margin:10px 0 0}.error-modal[_ngcontent-%COMP%] .dialog-error-text[_ngcontent-%COMP%]{margin:24px 0 0}.error-modal[_ngcontent-%COMP%] .dialog-actions-container[_ngcontent-%COMP%]{padding:0 8px 0 24px;height:52px;align-items:flex-end;margin-bottom:0}.error-modal[_ngcontent-%COMP%] .dialog-buttons-container[_ngcontent-%COMP%] .spinner-overlay[_ngcontent-%COMP%]{position:absolute;inset:0;display:flex;z-index:1;background:transparent}.error-modal[_ngcontent-%COMP%] .dialog-spinner-content-start[_ngcontent-%COMP%]{margin-top:10px;place-content:start}.error-modal[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.error-modal[_ngcontent-%COMP%] .column[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]})}}return B})();var T=s(65597);let R=(()=>{class B{constructor(Y,ae,G,k,X,q){this.loggingService=Y,this.snackBar=ae,this.genericDialog=G,this.translateService=k,this.matDialog=X,this.injector=q,this.logger=this.loggingService.getLogger("nvapp/ErrorHandlerService")}showToastMessage(Y,ae){this.logger.info("error toast with the message");const G={duration:M.c9,horizontalPosition:"left",panelClass:["nv-hig"]};let k,X;return k=Y.translated?Y.text:this.translateService.instant(Y?.text,Y.placeholders),X=ae?.translated?ae?.text:ae?.text?this.translateService.instant(ae?.text):"",this.snackBarRef=this.snackBar.open(k,X,G),X?this.snackBarRef.afterDismissed().pipe((0,n.s)(1),(0,h.T)(q=>q?.dismissedByAction)):(0,i.of)(!1)}showErrorDialog(Y,ae){const G=this.genericDialog.open({panelClass:["dialogPaddingRemove","nv-app-error-dialog",...ae??[]],disableClose:!0,data:{...Y,autoFocusOnPrimaryButton:M.X6}});G.primaryButtonClick.pipe((0,n.s)(1)).subscribe(()=>{this.logger.info("close clicked "),G.close()})}showFeatureNotAvailableDialog(Y,ae,G,k,X,q){const Q=this.getDialogConfig(Y,ae,G,k,X,q),ce=this.matDialog.open(S.ur,Q);return ce.componentInstance.primaryButtonClick.pipe((0,n.s)(1)).subscribe(te=>{ce.close()}),ce}getDialogConfig(Y,ae,G,k,X,q){const Q={};return Q.panelClass=[...q??[],"dialogPaddingRemove","common-dialog"],Q.disableClose=!0,Q.data={showSpinner:!1,headerText:{text:Y},translateValues:k,bodyText:{text:ae,translated:!1,placeholders:X},primaryButton:G??{text:"common.gotIt"},autoFocusOnPrimaryButton:M.X6},Q}showPluginFailureErrorDialog(Y,ae){return this.matDialog.open(E,{disableClose:!0,autoFocus:!1,panelClass:["dialogPaddingRemove","common-dialog"],data:{errorCode:Y,locale:ae}})}showOptionalPluginFailErrorDialog(){this.showErrorDialog({headerText:{text:"common.pluginErrorProblemHeaderText",translated:!1},bodyText:{text:"common.pluginErrorTryLaterModalText",translated:!1},primaryButton:{text:"common.close"},autoFocusOnPrimaryButton:M.X6},["optional-plugin-fail-error-modal"])}showOptionalPluginFailErrorToast(){this.showToastMessage({text:"common.somethingWentWrong",translated:!1}).pipe((0,C.p)(ae=>!!ae),(0,n.s)(1)).subscribe(ae=>{})}static{this.\u0275fac=function(ae){return new(ae||B)(A.KVO(g.J6),A.KVO(T.UG),A.KVO(S.uh),A.KVO(r.c$),A.KVO(P.bZ),A.KVO(A.zZn))}}static{this.\u0275prov=A.jDH({token:B,factory:B.\u0275fac,providedIn:"root"})}}return B})()},83983:(St,z,s)=>{"use strict";s.d(z,{h:()=>g});var i=s(80583),n=s(72147),h=s(83915),M=s(58527),P=s(5798),x=s(92602),A=s(55808);let g=(()=>{class m{constructor(r,u,v){this.endpointFactoryService=r,this.loggingService=u,this.nvAccountInterfaceService=v,this.requestOptions={responseType:"text"},this.isEulaAccepted$=new i.B7,this.logger=this.loggingService.getLogger("nvapp/EulaService"),this.endpointLicense=this.endpointFactoryService.createEndpoint(this.requestOptions)}getEulaAccepted(){return this.isEulaAccepted$.asObservable()}isEulaAccepted(){return this.logger.info("Check status of eula acceptance in NvAccount"),this.getEulaText().pipe((0,n.n)(r=>(this.eulaText=r,this.nvAccountInterfaceService.getEulaAccepted(r))),(0,h.T)(r=>(this.logger.info("isEulaAccepted from NvAccount ",r?.isAccepted),this.isEulaAccepted$.next(r?.isAccepted),r?.isAccepted)))}setEulaAccepted(){return this.logger.info("Setting the EULA consent"),this.nvAccountInterfaceService.setAcceptedEULA(this.eulaText)}updateEulaAccepted(r){this.logger.info("Updated EULAAccepted flag ",r),this.isEulaAccepted$.next(r)}getDisclosureText(r){return r=r.split("_").join("-"),this.endpointLicense.get("./assets/main/eula/FunctionalConsent_"+r+".txt",this.requestOptions)}getEulaText(){return this.logger.info("Get EULA Text under assets/main/eula folder"),this.endpointLicense.get("./assets/main/eula/eula.txt",this.requestOptions)}static{this.\u0275fac=function(u){return new(u||m)(M.KVO(P.t),M.KVO(x.J6),M.KVO(A.W))}}static{this.\u0275prov=M.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}}return m})()},26986:(St,z,s)=>{"use strict";s.d(z,{j:()=>C});var i=s(92602),n=s(17669),h=s(58527);let C=(()=>{class S{shortcutToStr(P){let x="";for(let A=0;A<P.length;A++)x+=this.processCharacter(P[A]),A<P.length-1&&(x+="+");return x}isMouseOrKeyboardSpaceOrEnterEvent(P){return P instanceof MouseEvent||P instanceof KeyboardEvent&&(P?.code===n.PK.Space||P?.code===n.PK.Enter)}processCharacter(P){return P in i.rB?i.rB[P]:String.fromCharCode(P)}static{this.\u0275fac=function(x){return new(x||S)}}static{this.\u0275prov=h.jDH({token:S,factory:S.\u0275fac,providedIn:"root"})}}return S})()},42578:(St,z,s)=>{"use strict";s.d(z,{HP:()=>i.HP,cW:()=>i.cW,wY:()=>i.wY,y9:()=>i.y9});var i=s(12667);s(45101)},45101:(St,z,s)=>{"use strict";s.d(z,{l:()=>l});var i=s(83915),n=s(26875),C=s(76449),S=s(71152),M=s(12667),P=s(1242),x=s(58527),A=s(47847),g=s(5798),m=s(92602);let l=(()=>{class r{constructor(v,E,T,R){this.appConfig=v,this.endpointFactory=E,this.distributedtracingUtilService=T,this.logger=R.getLogger("LcarsSdkService");const{defaultRetries:B,defaultTimeBetweenRetries:U,defaultTimeout:Y,retryOnTimeout:ae,exponentialBackoffMaxDelay:G}=v.lcars;this.queryDataEndpoint=this.endpointFactory.createEndpoint({config:{maxRetries:B,timeout:Y,timeBetweenRetries:U,retryOnTimeout:ae,exponentialBackoffMaxDelay:G}})}fetchLayoutQueryData(v,E,T){const R=Object.assign({requestType:M.cW.Panels},{query:v});this.appConfig.lcars?.cascadeHeaderValue&&this.appConfig.lcars?.cascadePreview&&(this.logger.info(`cascadeHeaderValue ${this.appConfig.lcars?.cascadeHeaderValue} cascadePreview ${this.appConfig.lcars?.cascadePreview}`),R.timestamp=Date.now());const B={headers:this.createHeader(),reportRequestData:{originalService:P.Uu.Lcars,serviceUseCase:E,reportSuccessTelemetry:"true"},params:R,includeRequestId:!0},U=this.queryDataEndpoint.get((0,S.l2)([this.appConfig.lcars.serverUrlCDN]),B);return this.distributedtracingUtilService.handleHttpEndpointSpan(U,B,C.pB.LcarsFetchQueryData,T).pipe((0,i.T)(Y=>{this.logger.info("layoutResponse",Y);const ae=Y?.data?.panels;return(0,n.isEmpty)(ae)?[]:ae}))}fetchAppsAndGamesAssets(v,E,T){const R=Object.assign({requestType:E},{query:v}),B={headers:this.createHeader(),reportRequestData:{originalService:P.Uu.Lcars,serviceUseCase:P.OO.GetAppsAndGames,reportSuccessTelemetry:"true"},params:R,includeRequestId:!0},U=this.queryDataEndpoint.get((0,S.l2)([this.appConfig.lcars.serverUrlCDN]),B);return this.distributedtracingUtilService.handleHttpEndpointSpan(U,B,C.pB.LcarsFetchQueryData,T).pipe((0,i.T)(Y=>{const ae=Y?.data?.apps.items;return(0,n.isEmpty)(ae)?[]:ae}))}createHeader(){const v={"NV-Client-ID":this.appConfig.lcars.clientId,"NV-Client-Version":this.appConfig.build.version,"Content-Type":"application/graphql"};return this.appConfig.lcars?.cascadeHeaderValue&&(v["NV-Cascade-Content"]=this.appConfig.lcars.cascadeHeaderValue),v}static{this.\u0275fac=function(E){return new(E||r)(x.KVO(A.Vk),x.KVO(g.t),x.KVO(C.Z1),x.KVO(m.J6))}}static{this.\u0275prov=x.jDH({token:r,factory:r.\u0275fac,providedIn:"root"})}}return r})()},73796:(St,z,s)=>{"use strict";s.d(z,{B:()=>Qe});var i=s(35146),n=s(59859),h=s(31315),C=s(3496),S=s(93181),M=s(53461),P=s(65706),x=s(72147),A=s(91384),g=s(14714),m=s(8619),l=s(83915),r=s(26875),u=s(92602),v=s(76449),E=s(70521),T=s(71152),R=s(5498);const B="fragment commonItemFields on Item {\n id\n}",Y="fragment AppDiscoveryFields on NvAppDiscoveryAppItem {\n app {\n id\n images {\n GAME_ICON\n HERO_IMAGE\n }\n title\n shortDescription\n longDescription\n systemRequirementsUrl\n version\n downloadUrl\n checksum {\n type\n value\n }\n applicationPath\n registryPath\n supported\n browserClientUrl\n learnMoreUrl\n allowUpdate\n }\n}",q=120;var Q=s(12667),ce=s(1242),te=s(58527),Ee=s(47847);let it=(()=>{class ct{constructor(nt,Je){this.loggingService=nt,this.distributedTracingUtilService=Je,this.logger=nt.getLogger("SpanUtilService")}endSpan(nt,Je){nt&&(this.logger.info("Closing the Span",nt),this.distributedTracingUtilService.setSpanAttribute(nt,v.NS.Error,Je),this.distributedTracingUtilService.closeSpan(nt))}static{this.\u0275fac=function(Je){return new(Je||ct)(te.KVO(u.J6),te.KVO(v.Z1))}}static{this.\u0275prov=te.jDH({token:ct,factory:ct.\u0275fac,providedIn:"root"})}}return ct})();var Fe=s(45101);let Qe=(()=>{class ct{constructor(nt,Je,ze,Ke,Ve,$e,dt,Pe,J){this.loggingService=nt,this.appConfig=Je,this.distributedTracingUtilService=ze,this.spanUtilService=Ke,this.lcarsSdkService=Ve,this.localeService=$e,this.hardwareInformationService=dt,this.systemInfoService=Pe,this.serviceWorkerService=J,this.appsRefreshTimerEmit=!1,this.logger=this.loggingService.getLogger("nvapp/LcarsService"),this.initServiceWorkerNotifications(),this.layoutDataStream=new T.TE(()=>this.fetchLayout())}getPanelItems(){return this.layoutDataStream.get$()}getAppsByPanelName(nt,Je){const ze=this.distributedTracingUtilService.startSpan(R.I.OOTBGetApps);return(0,i.yU)(this.localeService.localeChanged.pipe((0,M.F)()),this.systemInfoService.getSystemInfo([u.Lu.OSName,u.Lu.OSVersion,u.Lu.Platform]),this.hardwareInformationService.getGenericInfo(!1).pipe((0,P.s)(1)),this.hardwareInformationService.getGpuInfo(!1).pipe((0,P.s)(1))).pipe((0,x.n)(([Ke,Ve,$e,dt])=>{const Pe={OSName:Ve.OSName,OSVersion:Ve.OSVersion,Platform:Ve.Platform};this.logger.info(`Successfully fetched locale : ${Ke}, osInfo : ${JSON.stringify(Pe)}, genericInfo : ${JSON.stringify($e)} and gpuInfo : ${JSON.stringify(dt)}`);const J=this.getDeviceInfo(Pe,$e,dt),ve=(ct=>`{\n panels(\n language: "${ct.locale}",\n names:[${ct.names}],\n deviceInfo: {\n gpus: ${ct.deviceInfo.gpus},\n driverVersion: "${ct.deviceInfo.driverVersion}",\n deviceOsVersion: "${ct.deviceInfo.deviceOsVersion}",\n installedRamCapacity: ${ct.deviceInfo.installedRamCapacity}\n }) {\n id\n name\n sections {\n id\n telemetryName\n type\n title\n items {\n __typename\n ...commonItemFields\n ...AppDiscoveryFields\n }\n }\n}\n}\n${B}\n${Y}\n`)(this.getPanelQueryOptions(Ke,nt,J));return this.lcarsSdkService.fetchLayoutQueryData(ve,Je,ze)}),(0,A.M)(()=>{this.logger.info("ootbAppsSpan finished ",ze),this.spanUtilService.endSpan(ze,!1)}),(0,g.W)(Ke=>(this.logger.error("Error occurred while fetching apps",Ke),this.spanUtilService.endSpan(ze,!0),(0,n.$)(Ke))))}fetchLayout(){const nt=this.distributedTracingUtilService.startSpan(R.I.AppDiscoveryGetLayout);return(0,h.zV)([this.localeService.localeChanged.pipe((0,M.F)()),(0,C.O)(0,this.appConfig.lcars.appsRefreshTime).pipe((0,A.M)(()=>{this.logger.info("Refreshing apps based on timer set "),this.appsRefreshTimerEmit=!0})),this.systemInfoService.getSystemInfo([u.Lu.OSName,u.Lu.OSVersion,u.Lu.Platform]),this.hardwareInformationService.getGenericInfo(!1),this.hardwareInformationService.getGpuInfo(!1)]).pipe((0,m.p)(([Je,ze,Ke,Ve,$e])=>{const dt=this.appsRefreshTimerEmit||!(0,r.isEqual)(this.cachedGenericInfo,Ve)||!(0,r.isEqual)(this.cachedGpuInfo,$e)||!(0,r.isEqual)(this.locale,Je);return this.logger.info("To refresh apps",dt),dt}),(0,A.M)(([Je,ze,Ke,Ve,$e])=>{this.logger.info(`Successfully fetched locale : ${Je}, osInfo : ${JSON.stringify({OSName:Ke.OSName,OSVersion:Ke.OSVersion,Platform:Ke.Platform})}, genericInfo : ${JSON.stringify(Ve)} and gpuInfo : ${JSON.stringify($e)}`),this.logger.info("Generic Info and GPU Info changed, preparing query",this.appsRefreshTimerEmit),this.appsRefreshTimerEmit=!1,this.cachedGenericInfo=Ve,this.cachedGpuInfo=$e,this.locale=Je}),(0,x.n)(([Je,ze,Ke,Ve,$e])=>(this.logger.info("Refreshing/Getting live data for ",Je,ze),this.getLayout({parentSpan:nt},Je,Ke,Ve,$e))),(0,A.M)(()=>{this.logger.info("getLayoutSpan finished ",nt),this.spanUtilService.endSpan(nt,!1)}),(0,g.W)(Je=>(this.logger.error("Error occurred while fetching layout",Je),this.spanUtilService.endSpan(nt,!0),(0,n.$)(Je))))}getLayout(nt,Je,ze,Ke,Ve){const $e=[Q.HP.Home_Marquee,Q.HP.Home_Marquee_Nsd,Q.HP.Apps],dt=this.getDeviceInfo(ze,Ke,Ve),Pe=this.getPanelQueryOptions(Je,$e,dt);this.logger.info("Fetched Layout Query Options ",Pe);const J=this.distributedTracingUtilService.startSpan(R.I.LcarsServiceGetLayout,nt.parentSpan);this.distributedTracingUtilService.setSpanAttribute(J,v.NS.PanelType,$e),this.setSpanTags(J,Pe);const vt=(ct=>`{\n panels(\n language: "${ct.locale}",\n names:[${ct.names}],\n deviceInfo: {\n gpus: ${ct.deviceInfo.gpus},\n driverVersion: "${ct.deviceInfo.driverVersion}",\n deviceOsVersion: "${ct.deviceInfo.deviceOsVersion}",\n installedRamCapacity: ${ct.deviceInfo.installedRamCapacity}\n }) {\n id\n name\n sections {\n id\n telemetryName\n type\n title\n items {\n __typename\n ...commonItemFields\n ...marketingFields\n ...AppDiscoveryFields\n }\n }\n}\n}\n${B}\nfragment marketingFields on MarketingItem {\n title\n body\n action {\n uri\n label\n infoText\n }\n images {\n MARQUEE_HERO_IMAGE\n }\n}\n${Y}\n`)(Pe);return this.lcarsSdkService.fetchLayoutQueryData(vt,ce.OO.GetLayout,J).pipe((0,A.M)(()=>{this.logger.info("lcarsGetLayoutSpan finished ",Pe),this.spanUtilService.endSpan(J,!1)}))}getPanelQueryOptions(nt,Je,ze){return{locale:nt,deviceInfo:ze,names:this.getNames(Array.isArray(Je)?Je:[Je])}}getAppAssetsQueryOptions(nt,Je){return{language:nt,appIds:this.getNames(Array.isArray(Je)?Je:[Je])}}getDeviceInfo(nt,Je,ze){const Ke=ze?.GPU?.map(({GPUArchitecture:Ve,IsQuadro:$e,TensorCores:dt,ActualVRAMSize:Pe})=>({gpuArch:Ve,isQuadro:1==+$e,hasRTXCores:!!dt&&+dt>0,gpuVRAM:+Pe}));return{gpus:this.getGpu(Ke),driverVersion:Je?.DriverVersion,deviceOsVersion:nt?.OSVersion,installedRamCapacity:this.convertToMb(+Je?.PhysicalMemoryCapacity)}}setSpanTags(nt,Je){const ze={};ze[v.NS.Locale]=Je?.locale,ze[R.p.GPU]=Je?.deviceInfo?.gpus,ze[R.p.DeviceOsVersion]=Je?.deviceInfo?.deviceOsVersion,ze[R.p.DriverVersion]=Je?.deviceInfo?.driverVersion,ze[R.p.InstalledRamCapacity]=Je?.deviceInfo?.installedRamCapacity,this.distributedTracingUtilService.setSpanAttributes(nt,ze)}convertToMb(nt){const Je=nt/Math.pow(1024,Math.floor(2));return Math.floor(Je)}getGpu(nt){let Je="";return nt.forEach(ze=>{Je+=`{gpuArch: "${ze?.gpuArch}", isQuadro: ${ze?.isQuadro}, hasRTXCores: ${ze?.hasRTXCores}, gpuVRAM: ${ze?.gpuVRAM}}`}),`[${Je}]`}getNames(nt){return nt.map(Je=>JSON.stringify(Je)).join(",")}initServiceWorkerNotifications(){this.logger.info("Initializing Service Worker Update Notifications");const nt=E.th.staleWhileRevalidate?.lcars?.cacheName,Je=[nt];this.serviceWorkerSubscription=this.serviceWorkerService.swCacheUpdated.pipe((0,m.p)(ze=>Je.includes(ze.name)&&ze.data)).subscribe(ze=>{ze.name===nt&&(this.logger.info("Received updated data SW notification for Layout data",ze.data),this.updateLayout(ze.data.data.panels))})}updateLayout(nt){this.logger.info("Updating layoutDataStream"),this.layoutDataStream.setData(nt,!0)}getAppAssetsByAppId(nt,Je){const ze=this.distributedTracingUtilService.startSpan(R.I.Graphics3DSettings);return this.localeService.localeChanged.pipe((0,M.F)()).pipe((0,x.n)(Ke=>this.accumulateAppAndGamesAssets(nt,Je,ze,Ke)),(0,A.M)(()=>{this.logger.info("graphicsSettingsAppsSpan finished ",ze),this.spanUtilService.endSpan(ze,!1)}),(0,g.W)(Ke=>(this.logger.error("Error occurred while fetching apps assets",Ke),this.spanUtilService.endSpan(ze,!0),(0,n.$)(Ke))))}accumulateAppAndGamesAssets(nt,Je,ze,Ke){const Ve=nt.length;if(Ve<=q)return this.fetchAssetQuery(Ke,nt,Je,ze);{const $e=Math.floor(Ve/q),dt=[];let Pe=[],J=0;for(this.logger.info(`Attempting to fetch assests of ${Ve} apps in chunks of 120`);J<$e;)Pe=nt.slice(J*q,q*(J+1)),dt.push(Pe),J++;const vt=nt.slice(J*q);vt.length>0&&dt.push(vt);const ve=[];return dt.forEach(et=>{const se=this.fetchAssetQuery(Ke,et,Je,ze);ve.push(se)}),(0,S.p)(ve).pipe((0,l.T)(et=>{let se=[];return et.forEach(Ce=>{se=se.concat(Ce)}),se}),(0,g.W)(et=>(this.logger.error("Some error occured while fetching assets in chunks",et),(0,n.$)(et))))}}fetchAssetQuery(nt,Je,ze,Ke){const $e=(ct=>`{\n apps(\n language: "${ct.language}",\n appIds:[${ct.appIds}]) {\n items {\n id\n title\n images {\n GAME_ICON\n TV_BANNER\n }\n nvidiaTech {\n ANSEL\n FREESTYLE\n HIGHLIGHTS\n }\n }\n }}`)(this.getAppAssetsQueryOptions(nt,Je));return this.lcarsSdkService.fetchAppsAndGamesAssets($e,ze,Ke)}ngOnDestroy(){this.serviceWorkerSubscription&&this.serviceWorkerSubscription.unsubscribe()}static{this.\u0275fac=function(Je){return new(Je||ct)(te.KVO(u.J6),te.KVO(Ee.Vk),te.KVO(v.Z1),te.KVO(it),te.KVO(Fe.l),te.KVO(u.iH),te.KVO(u.SQ),te.KVO(u.zW),te.KVO(E.lS))}}static{this.\u0275prov=te.jDH({token:ct,factory:ct.\u0275fac,providedIn:"root"})}}return ct})()},12667:(St,z,s)=>{"use strict";s.d(z,{HP:()=>h,cW:()=>C,tI:()=>M,wY:()=>n,y9:()=>S});var n=function(P){return P.NvApp="nvapp",P.Http="http",P}(n||{}),h=function(P){return P.Home_Marquee="NV_APP_MARQUEE",P.Home_Marquee_Nsd="NV_APP_MARQUEE_NSD",P.Rewards_Marquee="NV_APP_REWARDS_MARQUEE",P.Drivers_Marquee="NV_APP_DRIVERS_MARQUEE",P.Apps="APPS",P.Ootb_Apps_GF_Grd="NV_APP_OOTB_APPS_GF_GRD",P.Ootb_Apps_GF_Nsd="NV_APP_OOTB_APPS_GF_NSD",P.Layout="LAYOUT",P}(h||{}),C=function(P){return P.Panels="panels",P.AppMetaData="appMetaData",P.AllAppsMetaData="allAppsMetaData",P}(C||{}),S=function(P){return P.MD5="MD5",P.SHA512="SHA512",P.NONE="NONE",P}(S||{}),M=function(P){return P.Redeem="redeem",P.Drivers="drivers",P.GraphicsSettings="graphics-settings",P.AppSettings="app-settings",P}(M||{})},11001:(St,z,s)=>{"use strict";s.d(z,{k:()=>h});var i=s(80583),n=s(3496);class h{constructor(){this.loadingSpinnerSubject=new i.B7}getLoadingSpinner(){return this.loadingSpinnerSubject.asObservable()}triggerLoadingIndicator(S,M=300){S?(this.timerSub&&this.timerSub.unsubscribe(),this.timerSub=(0,n.O)(M).subscribe(()=>{this.loadingSpinnerSubject.next(!0)})):(this.timerSub&&this.timerSub.unsubscribe(),this.loadingSpinnerSubject.next(!1))}clear(){this.loadingSpinnerSubject?.complete()}}},10404:(St,z,s)=>{"use strict";s.d(z,{HF:()=>n.H,OV:()=>i.OV,fx:()=>i.fx});var i=s(72617),n=s(398)},72617:(St,z,s)=>{"use strict";s.d(z,{OV:()=>n,fx:()=>C});var i=s(92602);const n={userId:"",email:"",externalId:"",idpId:"",displayName:"",isAuthenticated:!1,technicalConsent:i.Rg.None,behavioralConsent:i.Rg.None};var C=function(S){return S.AppBar="AppBar",S.OOTB="OOTB",S}(C||{})},398:(St,z,s)=>{"use strict";s.d(z,{H:()=>Ge});var i=s(43848),n=s(36466),h=s(8619),C=s(75707),S=s(91384),M=s(83915),P=s(72147),x=s(65706),A=s(10174),g=s(92602),m=s(20812),l=s(40848),r=s(58527),u=s(26537),v=s(45768),E=s(1242),T=s(14354),R=s(10404),B=s(47847),U=s(78812),Y=s(61142),ae=s(81247),G=s(97888),k=s(47973),X=s(3457),q=s(96542);function Q(nt,Je){if(1&nt){const ze=r.RV6();r.j41(0,"button",6),r.bIt("click",function(){r.eBV(ze);const Ve=r.XpG();return r.Njj(Ve.onCancel())}),r.j41(1,"span",7),r.EFF(2),r.nI1(3,"translate"),r.k0s()()}if(2&nt){const ze=r.XpG();r.R7$(2),r.JRh(r.bMT(3,1,ze.cancelButton))}}function ce(nt,Je){if(1&nt){const ze=r.RV6();r.j41(0,"button",8),r.bIt("click",function(){r.eBV(ze);const Ve=r.XpG();return r.Njj(Ve.onTryLogin())}),r.j41(1,"span",7),r.EFF(2),r.nI1(3,"translate"),r.k0s()()}2&nt&&(r.R7$(2),r.JRh(r.bMT(3,1,"common.retry")))}let te=(()=>{class nt{constructor(ze,Ke,Ve,$e,dt,Pe,J,vt,ve,ue){this.starfleetService=ze,this.dialogData=Ke,this.dialogRef=Ve,this.router=$e,this.loggingService=dt,this.loginService=Pe,this.appConfig=J,this.config=vt,this.telemetryService=ve,this.loginHintService=ue,this.header="",this.body="",this.showTryLogin=!1,this.cancelButton="",this.showCancel=!1,this.browserPopup=void 0,this.destroyRef=(0,r.WQX)(r.abz),this.logger=this.loggingService.getLogger("nvapp/LoginBridgeStateComponent")}ngOnInit(){this.initialize()}onTryLogin(){this.header="loginBridgeState.loginInProgress",this.body="loginBridgeState.browserIsOpen",this.showTryLogin=!1,this.cancelButton="common.cancel",this.showCancel=!0,this.startLoginProcess()}onCancel(){this.dialogRef.close(m.ie.Cancel)}initialize(){this.onTryLogin()}startLoginProcess(){const ze=document.baseURI+this.router.url,Ke=this.appConfig?.featureEnablement?.logininfo?.enabled?this.loginHintService.getSsoLoginInfo():(0,i.of)(null);let Ve=!1;const $e=this.dialogData.skipLoginHint??!1;Ke.pipe((0,C.ZZ)(dt=>{let Pe;return!$e&&this.loginService.nvappStoredLoginInfoApplicableForSso(this.config.jarvisIdpId,dt)&&(Pe={silentLoginHelperInstance:null,ssoSharedPageData:{idp_id:dt?.idp_id,login_hint:dt?.login_hint}},Ve=!0),this.starfleetService.login({force:this.forceLogin,idpId:this.dialogData.idpId,preCreatedWindow:this.browserPopup,deviceName:this.deviceName,returnLocationUrl:ze,silentLoginInfo:Pe})})).pipe((0,v.pQ)(this.destroyRef)).subscribe(dt=>{const Pe=Ve?E.Gb.LoginviaLoginHint:E.Gb.UsualAuthFlow;switch(dt){case m.l4.LoginAbortedByUser:this.dialogRef.close(m.ie.Cancel);break;case m.l4.LoginAbortedAlreadyLoggedIn:this.dialogRef.close(m.ie.Success);break;case m.l4.LoginCompleted:this.loginService.sendLoginEvent(this.dialogData.calledFrom,E.fb.Success,Pe),this.dialogRef.close(m.ie.Success);break;case m.l4.LoginFailed:this.onLoginFailed(!0,!0,Pe);break;case m.l4.LoginFailedNoRetry:this.onLoginFailed(!1,!0,Pe);break;case m.l4.LoginFailedToStart:this.onLoginFailed(!1,!1,Pe);break;default:this.logger.info("Starfleet Edge case reached")}},dt=>{this.logger.error("failed to login the user with error",dt)})}onLoginFailed(ze=!0,Ke=!0,Ve=E.Gb.UsualAuthFlow){Ke?(this.header="common.loginUnsuccessful",this.body=ze?"loginBridgeState.problemLogInRetry":"loginBridgeState.problemLogIn"):(this.header="loginBridgeState.unableToInitiateLogin",this.body="loginBridgeState.problemTryingToLogin"),this.showCancel=!0,this.cancelButton="common.close",this.showTryLogin=ze,!1===Ke?this.sendCreateHTTPServerErrorEvent():this.loginService.sendLoginEvent(this.dialogData.calledFrom,E.fb.Failure,Ve)}sendCreateHTTPServerErrorEvent(){this.logger.info("Sending create HTTP server error event");const ze=new E.px({portsUsed:this.config.portNumbers?this.config.portNumbers.toString():"",errorMessage:"Http Server start failed"});this.telemetryService.push(ze)}static{this.\u0275fac=function(Ke){return new(Ke||nt)(r.rXU(m.hr),r.rXU(u.Vh),r.rXU(u.CP),r.rXU(T.Ix),r.rXU(g.J6),r.rXU(R.HF),r.rXU(B.Vk),r.rXU(m.X$),r.rXU(U.H0),r.rXU(g.IU))}}static{this.\u0275cmp=r.VBU({type:nt,selectors:[["nv-app-login-bridge-state"]],decls:12,vars:8,consts:[["fxFlex","","fxLayout","column","nvTrapFocus","",1,"popup"],[1,"content-header","font-header6"],[1,"font-body2","content-body"],["fxFlex","","fxLayout","row","fxLayoutAlign","end end",1,"content-button"],["mat-button","","class","font-button2 text-button-icon",3,"click",4,"ngIf"],["color","accent","class","retry-button","mat-raised-button","",3,"click",4,"ngIf"],["mat-button","",1,"font-button2","text-button-icon",3,"click"],[1,"font-button2"],["color","accent","mat-raised-button","",1,"retry-button",3,"click"]],template:function(Ke,Ve){1&Ke&&(r.j41(0,"div",0)(1,"div",1)(2,"span"),r.EFF(3),r.nI1(4,"translate"),r.k0s()(),r.j41(5,"span",2),r.EFF(6),r.nI1(7,"translate"),r.k0s(),r.nrm(8,"br"),r.j41(9,"div",3),r.DNE(10,Q,4,3,"button",4)(11,ce,4,3,"button",5),r.k0s()()),2&Ke&&(r.R7$(3),r.JRh(r.bMT(4,4,Ve.header)),r.R7$(3),r.JRh(r.bMT(7,6,Ve.body)),r.R7$(4),r.Y8G("ngIf",Ve.showCancel),r.R7$(),r.Y8G("ngIf",Ve.showTryLogin))},dependencies:[Y.bT,ae.D,G.Aq,k.iV,X.DJ,X.sA,X.UI,q.D9],styles:[".login-bridge-state-dialog .mat-mdc-dialog-container{padding:0}.login-bridge-state-dialog .popup{width:560px;height:166px;background-color:var(--primary-700)}:host-context(.isLtr) .login-bridge-state-dialog .content-header{margin:19px 24px 14px!important}html[dir=ltr] .login-bridge-state-dialog .content-header{--dummy: 0;margin:19px 24px 14px!important}:host-context(.isRtl) .login-bridge-state-dialog .content-header{margin:19px 24px 14px!important}html[dir=rtl] .login-bridge-state-dialog .content-header{--dummy: 0;margin:19px 24px 14px!important}.login-bridge-state-dialog .content-body{height:52px}:host-context(.isLtr) .login-bridge-state-dialog .content-body{margin:0 24px!important}html[dir=ltr] .login-bridge-state-dialog .content-body{--dummy: 0;margin:0 24px!important}:host-context(.isRtl) .login-bridge-state-dialog .content-body{margin:0 24px!important}html[dir=rtl] .login-bridge-state-dialog .content-body{--dummy: 0;margin:0 24px!important}:host-context(.isLtr) .login-bridge-state-dialog .content-button{margin:0 8px 8px 0}html[dir=ltr] .login-bridge-state-dialog .content-button{--dummy: 0;margin:0 8px 8px 0}:host-context(.isRtl) .login-bridge-state-dialog .content-button{margin:0 0 8px 8px}html[dir=rtl] .login-bridge-state-dialog .content-button{--dummy: 0;margin:0 0 8px 8px}:host-context(.isLtr) .login-bridge-state-dialog .retry-button{margin:0 0 0 8px}html[dir=ltr] .login-bridge-state-dialog .retry-button{--dummy: 0;margin:0 0 0 8px}:host-context(.isRtl) .login-bridge-state-dialog .retry-button{margin:0 8px 0 0}html[dir=rtl] .login-bridge-state-dialog .retry-button{--dummy: 0;margin:0 8px 0 0}\n"],encapsulation:2})}}return nt})();var Ee=s(72617),it=s(37768),Fe=s(73370),Qe=s(96306),ct=s(55808);let Ge=(()=>{class nt{constructor(ze,Ke,Ve,$e,dt,Pe,J,vt,ve){this.starfleetService=ze,this.loginHintService=Ve,this.configuration=$e,this.dialog=dt,this.telemetryService=Pe,this.piplLocaleConfigService=J,this.errorHandlerService=vt,this.nvAccountInterfaceService=ve,this.cancelTimer=null,this.cancelTimeoutExpired=!1,this.idpId=null,this.logger=Ke.getLogger("LoginService"),this.initStarfleetOnPiplPrompt(),this.initNvaccountOnLoginUpdate(),this.fetchSsoLoginInfo()}initStarfleetOnPiplPrompt(){this.logger.info("Intializing Starfleet.."),this.starfleetService.initialize(this.cachedSession,!1,this.idpId),this.configuration?.featureEnablement?.logininfo?.enabled&&this.accountStatusChanged.pipe((0,h.p)(ze=>this.configuration.starfleet.jarvisIdpId===ze?.idpId||!ze?.isAuthenticated),(0,C.ZZ)(ze=>this.loginHintService.updateSsoLoginInfoEntry(ze?.isAuthenticated,ze?.idpId,ze?.email,g.cq.NVAPP))).subscribe(),this.piplLocaleConfigService.piplLocalizationConfigUpdated$.pipe((0,S.M)(ze=>{this.starfleetService.updatePiplConfigUrls(ze.starfleet)}),(0,h.p)(ze=>this.cachedUser?.isAuthenticated)).subscribe(ze=>{this.logger.info("PIPL location change notification received - logging out the current user.."),this.starfleetService.logout("",null,null,!0)},ze=>{this.starfleetService.logout("",null,null,!0),this.logger.error("Received PIPL notification error, logging out as notification is indication of location change",ze)})}fetchSsoLoginInfo(){return this.configuration?.featureEnablement?.logininfo?.enabled?this.loginHintService.getSsoLoginInfo():(0,i.of)(null)}ssoLoginHint(){return this.fetchSsoLoginInfo().pipe((0,M.T)(ze=>this.nvappStoredLoginInfoApplicableForSso(this.configuration.starfleet.jarvisIdpId,ze)?ze?.login_hint:null))}nvappStoredLoginInfoApplicableForSso(ze,Ke){return!this.loginHintService.isEmptySilentLoginInfo(Ke)&&Ke.idp_id===ze}get accountStatusChanged(){return this.starfleetService.accountStatusChanged.pipe((0,S.M)(ze=>{this.cachedUser=ze}),(0,M.T)(ze=>this.getUserFromStarfleet(ze)))}initNvaccountOnLoginUpdate(){this.starfleetService.accountStatusChanged.pipe((0,P.n)(ze=>this.starfleetService.getStarfleetSession()),(0,P.n)(ze=>(this.logger.info("Updating Nvaccount on account status change."),this.nvAccountInterfaceService.updateUserInNvAccount(ze.data.user,ze.data)))).subscribe(n.l,n.l)}startLogin(ze=!1,Ke,Ve=!1){return this.logger.info("Login Called"),this.configuration.starfleet.url?this.handleStarfleetLogin(ze,null,Ke,Ve):this.showFeatureNotAvailableDialog()}startLogout(){this.logger.info("LogOut Called"),this.handleStarfleetLogout().pipe((0,h.p)(ze=>ze===m.l4.LogoutCompleted||ze===m.l4.LogoutFailed),(0,x.s)(1)).subscribe(ze=>{ze===m.l4.LogoutCompleted?this.logger.info("User logged out"):this.logger.error("Error logging out")},ze=>{this.logger.error("Error logging out: ",ze)})}sendLoginEvent(ze,Ke,Ve=l.Gb.UsualAuthFlow){const $e=Ke===l.fb.Success;this.telemetryService.getValidUserIdResetObservable().pipe((0,h.p)(dt=>!0===dt&&$e||!$e),(0,x.s)(1),(0,C.ZZ)(dt=>this.starfleetService.accountStatusChanged.pipe((0,x.s)(1)))).subscribe(dt=>{const Pe=new l.x0({calledFrom:ze,status:Ke,loginType:Ve,errorDetails:$e?"":this.starfleetService.lastError.error_description,errorUri:$e?"":this.starfleetService.lastError.error_uri,serverErrorCode:$e?"":this.starfleetService.lastError.error_code});this.logger.info("Sending login "+Ke+" event"),this.telemetryService.push(Pe)})}getUserFromStarfleet(ze){return{userId:ze.sub,email:ze.email,externalId:ze.external_id,idpId:ze.idp_id,displayName:ze.preferred_username,isAuthenticated:ze.isAuthenticated,technicalConsent:ze.consent?.trackTechnicalData?g.Rg.Full:g.Rg.None,behavioralConsent:ze.consent?.trackBehavioralData?g.Rg.Full:g.Rg.None}}setUpDialog(ze,Ke,Ve=!1){const $e={panelClass:["login-bridge-state-dialog","dialogPaddingRemove"],disableClose:!1,autoFocus:!1,restoreFocus:!1};return $e.data={idpId:ze,skipLoginHint:Ve,calledFrom:Ke},this.cancelTimer&&clearTimeout(this.cancelTimer),this.cancelTimer=setTimeout(()=>{this.starfleetService.cancelLogin(!0),this.cancelTimeoutExpired=!0,this.listenForErrorSubscription&&this.listenForErrorSubscription.unsubscribe()},this.configuration.starfleet.httpServerDuration),this.cancelTimeoutExpired=!1,$e}showFeatureNotAvailableDialog(){const Ke={featureName:"Login"};return this.errorHandlerService.showFeatureNotAvailableDialog("common.featureNotAvailable","common.featureNotAvailableTryAgain",{text:"common.close"},Ke,Ke,["login-bridge-state-dialog"]).afterClosed().pipe((0,A.u)(!0))}handleStarfleetLogin(ze=!1,Ke,Ve,$e=!1){const dt=this.setUpDialog(Ke,Ve||Ee.fx.AppBar,$e);return this.dialog.open(te,dt).afterClosed().pipe((0,C.ZZ)(Pe=>{switch(Pe){case m.ie.Success:this.logger.info("Login Success");break;case m.ie.Failure:return(0,i.of)(!1);case m.ie.Cancel:return this.cancelTimeoutExpired||this.handleBridgeStateCancel(Ve),(0,i.of)(!1)}return(0,i.of)(!0)}))}refreshUser(){return this.starfleetService.refreshUser().pipe((0,M.T)(ze=>this.getUserFromStarfleet(ze)))}handleBridgeStateCancel(ze){this.listenForErrorSubscription=this.starfleetService.cancelLogin(!1).subscribe(Ke=>{this.logger.info("Cancelled error detected while user logging in",Ke),Ke.error&&this.starfleetService.logout(Ke.access_token),Ke&&(this.logger.info("User cancelled but login completed."),this.sendLoginEvent(ze||Ee.fx.AppBar,l.fb.CancelledLoginCompleted))},Ke=>{this.logger.info("Error detected while listening for UserCancelled Error",Ke)})}handleStarfleetLogout(){return this.starfleetService.logout("")}getAuthToken(ze,Ke){return this.starfleetService.getAuthToken(ze,Ke)}static{this.\u0275fac=function(Ke){return new(Ke||nt)(r.KVO(m.hr),r.KVO(g.J6),r.KVO(it.I),r.KVO(B.Vk),r.KVO(u.bZ),r.KVO(U.H0),r.KVO(Fe.X),r.KVO(Qe.c),r.KVO(ct.W))}}static{this.\u0275prov=r.jDH({token:nt,factory:nt.\u0275fac,providedIn:"root"})}}return nt})()},86088:(St,z,s)=>{"use strict";s.d(z,{S:()=>g});var i=s(59859),n=s(91384),h=s(14714),C=s(12962),S=s(1242),M=s(62668),P=s(58527),x=s(92602),A=s(47847);let g=(()=>{class m{constructor(r,u,v,E){this.loggingService=r,this.bridgeService=u,this.nvAppTelemetryUtilService=v,this.appConfig=E,this.logger=this.loggingService.getLogger("nvapp/NvAppBridgeService")}executeWithPluginStatusTelemetry(r,u,v,E=!0,T=!0,R){const B={apiName:r.method,pluginName:r.module,status:S.L1.Success,params:JSON.stringify({...u??{},...v??{}}),errorMessage:"",subApiName:""};return(T?this.executeCommandWithTimeout(r,u):this.bridgeService.executeCommand(r,u)).pipe((0,n.M)(Y=>{E&&(this.logger.info(`Sending telemetry for ${r.method}`),this.nvAppTelemetryUtilService.sendPluginApiStatusTelemetry(B))}),(0,h.W)(Y=>(this.nvAppTelemetryUtilService.sendPluginApiStatusTelemetry({...B,status:S.L1.Failure,errorMessage:Y&&Y.message?Y.message:R}),(0,i.$)(Y))))}executeCommandWithTimeout(r,u){return this.logger.info("Executing command with timeout",r.method),this.bridgeService.executeCommand(r,u).pipe((0,C.o)(this.appConfig?.optionalPluginTimeout,(0,i.$)(new M.n(r.method))))}static{this.\u0275fac=function(u){return new(u||m)(P.KVO(x.J6),P.KVO(x.NZ),P.KVO(S.AY),P.KVO(A.Vk))}}static{this.\u0275prov=P.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}}return m})()},66340:(St,z,s)=>{"use strict";s.d(z,{g3:()=>g,oY:()=>U});var i=s(59859),n=s(43848),h=s(83915),C=s(14714),S=s(91384),M=s(92602),P=s(20924),x=P.Or.Nvapp.Nvcpldisplayplugin.RamType,A=P.Or.Nvapp.Nvcpldisplayplugin.BusType,g=P.Or.Nvapp.Nvcpldisplayplugin.MaxQType;const m=P.Ts.Nvapp.Nvcpldisplayplugin.GetGPUInformation,l=P.Ts.Nvapp.Nvcpldisplayplugin.GetGpuCount,r=P.Ts.Nvapp.Nvcpldisplayplugin.GetDirect3DfeatureLevel,u=P.Ts.Nvapp.Nvcplplugin.GetDynamicBoost,v=P.Ts.Nvapp.Nvcpldisplayplugin.GetSystemCapabilities,E={SDRAM:"systeminfo.memoryTypeSdram",DDR1:"systeminfo.memoryTypeDdr1",DDR2:"systeminfo.memoryTypeDdr2",GDDR2:"systeminfo.memoryTypeGddr2",GDDR3:"systeminfo.memoryTypeGddr3",GDDR4:"systeminfo.memoryTypeGddr4",DDR3:"systeminfo.memoryTypeDdr3",GDDR5:"systeminfo.memoryTypeGddr5",GDDR5X:"systeminfo.memoryTypeGddr5X",HBM1:"systeminfo.memoryTypeHbm1",HBM2:"systeminfo.memoryTypeHbm2",SDDR4:"systeminfo.memoryTypeSddr4",GDDR6:"systeminfo.memoryTypeGddr6",GDDR6X:"systeminfo.memoryTypeGddr6X",GDDR7:"systeminfo.memoryTypeGddr7",default:"systeminfo.unavailable",Unknown:"systeminfo.busInfoUnknown",AGP:"systeminfo.busInfoAgp",PCI:"systeminfo.busInfoPci",FPCI:"systeminfo.busInfoFpci",PCI_EXPRESS:"systeminfo.busInfoPciExpress",PCI_EXPRESS_GEN2:"systeminfo.busInfoPciExpressGen2",PCI_EXPRESS_GEN3:"systeminfo.busInfoPciExpressGen3",PCI_EXPRESS_GEN4:"systeminfo.busInfoPciExpressGen4",PCI_EXPRESS_GEN5:"systeminfo.busInfoPciExpressGen5",PCI_EXPRESS_GEN6:"systeminfo.busInfoPciExpressGen6",AXI:"systeminfo.unavailable"};var T=s(58527),R=s(96542),B=s(82102);let U=(()=>{class Y{constructor(G,k,X,q,Q){this.bridgeService=G,this.loggingService=k,this.translateService=X,this.systemInfoService=q,this.driverUpdateService=Q,this.gpuInfoCache=[],this.direct3dLevelCache=[],this.logger=k.getLogger("nvapp/NvcplSystemInfoService")}invalidateCacheOnDriverInstallation(){this.driverUpdateService.getInstallationDone().subscribe(()=>{this.gpuInfoCache=[],this.direct3dLevelCache=[],this.logger.info("NVCPL System Info cache cleared")},G=>{this.logger.error("Error while listening for driver installation",G)})}getGpuCount(){return this.bridgeService.executeCommand(l).pipe((0,h.T)(G=>G.gpuCount),(0,C.W)(G=>(this.logger.info("Error in fetching GetGpuCount ",G),(0,i.$)(G))))}getDxVersion(){return this.dxVersion?(this.logger.info("DxVersion fetched from Cache",this.dxVersion),(0,n.of)(this.dxVersion)):this.systemInfoService.getSystemInfo([M.Lu.DxVersion]).pipe((0,h.T)(G=>(this.dxVersion=G.DxVersion,this.dxVersion)),(0,C.W)(G=>(this.logger.error("failed to fetch dx version info",G),(0,n.of)(null))))}getDynamicBoostInfo(){return this.dynamicBoostInfo?(0,n.of)(this.dynamicBoostInfo):this.bridgeService.executeCommand(u).pipe((0,S.M)(G=>{this.logger.info("Dynamic boost info response:",G),this.dynamicBoostInfo=G}),(0,C.W)(G=>(this.logger.info("Error in fetching dynamic boost Info ",G),(0,n.of)(null))))}getSystemCapabilities(){return this.systemCapabilities?(0,n.of)(this.systemCapabilities):this.bridgeService.executeCommand(v).pipe((0,S.M)(G=>{this.logger.info("GetSystemCapabilities response:",G),this.systemCapabilities=G}),(0,C.W)(G=>(this.logger.info("Error in fetching GetSystemCapabilities ",G),(0,n.of)(null))))}getDirectFeatureLevel(G){return this.direct3dLevelCache[G]?(this.logger.info("Serving Direct3DfeatureLevel from cache for gpuIndex",G),(0,n.of)(this.direct3dLevelCache[G])):this.bridgeService.executeCommand(r,{gpuIndex:G}).pipe((0,h.T)(X=>(this.direct3dLevelCache[G]=X.featureLevel,X.featureLevel)),(0,C.W)(X=>(this.logger.info("Error in fetching Direct3DfeatureLevel ",X),(0,i.$)(X))))}getGpuInfo(G){return this.gpuInfoCache[G]?(this.logger.info("Serving GPUInfo from cache for gpuIndex",G),(0,n.of)(this.gpuInfoCache[G])):this.bridgeService.executeCommand(m,{gpuIndex:G}).pipe((0,h.T)(X=>(this.gpuInfoCache[G]=X.gpu,X.gpu)),(0,C.W)(X=>(this.logger.info("Error in fetching GetGPUInfo ",X),(0,i.$)(X))))}getMaxQTypeTranslationString(G){switch(G){case g.No:return"systeminfo.commonDisable";case g.On:return"systeminfo.maxQTechOn";case g.Yes:return"systeminfo.maxQTechYes";default:return"systeminfo.commonDisable"}}parseGpuBusType(G,k){const X=this.getEnumString(k,A)||E.default;return X===E.default?"":k===A.PCI_EXPRESS_GEN2||k===A.PCI_EXPRESS_GEN3||k===A.PCI_EXPRESS_GEN4||k===A.PCI_EXPRESS||k===A.AGP?this.translateService.instant(X,{busSpeed:G}):this.translateService.instant(X)}parseGpuMemoryType(G,k){const X=this.getEnumString(k,x)||E.default;return X===E.default?this.translateService.instant("systeminfo.memoryTemplate",{mbValue:G}):k!==x.UNKNOWN?this.translateService.instant("systeminfo.memoryTypeTemplate",{mbValue:G,ramType:this.translateService.instant(X)}):this.translateService.instant("systeminfo.memoryTemplate",{mbValue:G})}getEnumString(G,k){return E[k[G]]}static{this.\u0275fac=function(k){return new(k||Y)(T.KVO(M.NZ),T.KVO(M.J6),T.KVO(R.c$),T.KVO(M.zW),T.KVO(B.f))}}static{this.\u0275prov=T.jDH({token:Y,factory:Y.\u0275fac,providedIn:"root"})}}return Y})()},17543:(St,z,s)=>{"use strict";s.d(z,{M:()=>E});var i=s(43848),n=s(83915),h=s(72147),C=s(10174),S=s(43615),M=s(6538),P=s(30683),x=s(58527),A=s(92602),g=s(86088),m=s(75520),l=s(91384),r=s(14714),u=s(94645);let v=(()=>{class T{constructor(B,U){this.loggingService=B,this.dbService=U,this.logger=this.loggingService.getLogger("nvapp/OpsDbService"),this.globalStore=this.dbService.getGlobalStore(u.xI.GlobalStore)}getOpsDBState(){return this.globalStore.getItemByCursor(u.xI.OpsState).pipe((0,l.M)(B=>{this.opsDBState=B?.size?B:new Map,this.logger.info("Ops data Size in Db ",B?.size)}),(0,r.W)(B=>(this.logger.error("Error occurred while fetching OPS state from db ",B),this.opsDBState=new Map,this.opsDBState)))}setApplicationStateInDB(B,U){const Y=this.opsDBState.get(B);return this.opsDBState.set(B,{...Y,state:U}),this.logger.info("Setting state in db for localId",B),this.setItem()}setTranslationData(B,U){const Y=this.opsDBState.get(B);return this.opsDBState.set(B,{...Y,translationData:U}),this.logger.info("Setting translations in db for localId and translationData size",B,U?.size),this.setItem()}setItem(){return this.logger.info("opsDbState size while setting in db",this.opsDBState?.size),this.globalStore.setItem(u.xI.OpsState,this.opsDBState).pipe((0,C.u)(!0))}static{this.\u0275fac=function(U){return new(U||T)(x.KVO(A.J6),x.KVO(A.at))}}static{this.\u0275prov=x.jDH({token:T,factory:T.\u0275fac,providedIn:"root"})}}return T})(),E=(()=>{class T{constructor(B,U,Y,ae,G){this.loggingService=B,this.bridgeService=U,this.nvAppBridgeService=Y,this.opsUtilsService=ae,this.opsDbService=G,this.logger=this.loggingService.getLogger("nvapp/OPSApiService")}optimize(B,U,Y,ae){const G={localId:B,powerMode:U};return Y&&(null!==ae||void 0!==ae)&&(G.position={tweak:Y,settingsIndex:ae}),this.bridgeService.executeCommand(M.$2,G)}fetchApplicationState(B){return this.logger.info("Calling GetApplicationState for localId ",B),this.bridgeService.executeCommand(M.iS,{localId:B}).pipe((0,n.T)(Y=>Y.state),(0,h.n)(Y=>this.opsDbService.setApplicationStateInDB(B,Y).pipe((0,C.u)(Y))))}fetchApplicationSettingsSpace(B,U){const Y={localId:B.localId,tweak:U};return this.logger.info("Calling GetSettingsSpace for localId ",B.localId,"with params",Y),this.bridgeService.executeCommand(M.iE,Y).pipe((0,n.T)(ae=>(this.logger.info(`Settings space returned for localId ${B.localId} ${B.shortName}`,ae.settingsSpace?.recommendationAC,ae.settingsSpace?.recommendationDC),ae.settingsSpace)))}registerApplicationStateChangedNotifications(){return this.bridgeService.executeCommand(M.nQ)}fetchTranslations(B,U,Y,ae){return this.bridgeService.executeCommand(M.c2,{shortName:B,locale:P.f[U]??U}).pipe((0,h.n)(k=>{const X=k.translations;this.logger.info(`translation response for program ${B} with locale ${U}:`,X);const q=this.opsUtilsService.processTranslation(X);return Y.translationData=Y?.translationData??new Map,Y.translationData.set(U,q),this.opsDbService.setTranslationData(ae,Y.translationData)}))}getAutoOptimizeEnabled(){return null==this.isAutoOptimized?this.nvAppBridgeService.executeCommandWithTimeout(M.Q9).pipe((0,n.T)(B=>(this.isAutoOptimized=B.isEnabled,B.isEnabled))):(0,i.of)(this.isAutoOptimized)}setAutoOptimizeEnabled(B){return this.bridgeService.executeCommand(M.a_,{isEnabled:B}).pipe((0,S.j)(()=>{this.isAutoOptimized=null}))}getOpsDBState(){return this.opsDbService.getOpsDBState()}static{this.\u0275fac=function(U){return new(U||T)(x.KVO(A.J6),x.KVO(A.NZ),x.KVO(g.S),x.KVO(m.H),x.KVO(v))}}static{this.\u0275prov=x.jDH({token:T,factory:T.\u0275fac,providedIn:"root"})}}return T})()},62313:(St,z,s)=>{"use strict";s.d(z,{C:()=>T});var i=s(80583),n=s(36466),h=s(16229),C=s(43848),S=s(65706),M=s(72147),P=s(91384),x=s(14714),A=s(10174),g=s(58108),m=s(26772),l=s(58527),r=s(26537),u=s(17543),v=s(59085),E=s(92602);let T=(()=>{class R{constructor(U,Y,ae,G){this.matDialog=U,this.opsApiService=Y,this.preferenceService=ae,this.loggingService=G,this.optimizeAllApps$=new i.B7,this.logger=this.loggingService.getLogger("nvapp/OpsEventService")}triggerOptimizeAll(U){this.prepareOptimizeAllDialogConfig().pipe((0,S.s)(1),(0,M.n)(Y=>this.showOptimizeAllDialog(Y,U))).subscribe(n.l,Y=>{this.logger.error("Error while triggering optimize all",Y)})}getOptimizeAllApps(){return this.optimizeAllApps$.asObservable()}showOptimizeAllDialog(U,Y){this.dialogRef=this.matDialog.open(g.ur,U);const ae=this.dialogRef.componentInstance.primaryButtonClick.pipe((0,S.s)(1),(0,P.M)(()=>{this.optimizeAllApps$.next(Y),this.dialogRef.close(this.dialogRef.componentInstance.data)})),G=this.dialogRef.componentInstance.secondaryButtonClick.pipe((0,S.s)(1),(0,P.M)(()=>this.dialogRef.close())),k=this.dialogRef.afterClosed().pipe((0,S.s)(1),(0,M.n)(X=>this.handleAutoOptimizePreference(X)));return(0,h.h)(ae,G,k)}handleAutoOptimizePreference(U){return U.checkboxState?this.preferenceService.setAutoOptimizeEnabled(!0).pipe((0,S.s)(1),(0,x.W)(Y=>(this.logger.error("Error while setting auto optimize enabled",Y),(0,C.of)(null)))):(0,C.of)(null)}prepareOptimizeAllDialogConfig(){const U=this.createBaseDialogConfig();return this.opsApiService.getAutoOptimizeEnabled().pipe((0,S.s)(1),(0,P.M)(Y=>{Y||(U.data.checkbox={text:"preferences.gameScan.autoOptimize",initialState:!1})}),(0,A.u)(U),(0,x.W)(Y=>(this.logger.error("Error while getting auto optimize enabled",Y),(0,C.of)(U))))}createBaseDialogConfig(){const U={panelClass:["dialogPaddingRemove","common-dialog"],disableClose:!0,restoreFocus:!0,autoFocus:!0};return U.data={showSpinner:!1,headerText:{text:"ops.optimizeAllDialogTitle"},bodyText:{text:"ops.optimizeAllDialogBody"},primaryButton:{text:"ops.optimize",accentColor:!0},secondaryButton:{text:"common.cancel"},autoFocusOnPrimaryButton:m.X6},U}static{this.\u0275fac=function(Y){return new(Y||R)(l.KVO(r.bZ),l.KVO(u.M),l.KVO(v.N),l.KVO(E.J6))}}static{this.\u0275prov=l.jDH({token:R,factory:R.\u0275fac,providedIn:"root"})}}return R})()},75520:(St,z,s)=>{"use strict";s.d(z,{H:()=>P});var i=s(65706),n=s(6538),h=s(58527),C=s(92602),S=s(58108),M=s(96542);let P=(()=>{class x{constructor(g,m,l){this.loggingService=g,this.genericDialog=m,this.translateService=l,this.logger=this.loggingService.getLogger("nvapp/OpsUtilsService")}getResolutionMap(g){const m=new Map;return g=[...g],g?.sort((l,r)=>r.width-l.width)?.forEach(l=>{const r=this.resolutionHeader(l);m.has(r)?m.get(r).push(l.value):m.set(r,[l.value])}),m}isDCSettingSelected(g){return g?.currentSettingType===n.bF.DC}isOptimizedOrCustomized(g,m){const l=m===n.bF.DC?g?.profileDC?.targetOptimizationState:g?.profileAC?.targetOptimizationState;return l===n.lq.OPTIMIZED||l===n.lq.CUSTOMIZED}getRecommendedDisplayModeResolution(g){return g?{resolutionValue:g.resolutions[g.resolutionRecommendation].value,displayModeValue:g.displayModes[g.displayModeRecommendation]}:{resolutionValue:"",displayModeValue:""}}updateDSRResolutions(g){if(g.dsrResolutions&&g.dsrResolutions.values.length)return;let m=null;m=this.isDCSettingSelected(g)?g?.profileDC?.sliderSettings:g?.profileAC?.sliderSettings,g.dsrResolutions={name:m.resolutionName,values:[]},m?.resolutions?.forEach(l=>{l.isHypersampling&&g.dsrResolutions.values.push(l.value)})}isDsrResolution(g,m,l){return g?.name===m&&g?.values?.includes(l)}showDSRInfoDialog(){const g=this.genericDialog.open({panelClass:["dialogPaddingRemove"],disableClose:!0,autoFocus:!1,data:{bodyText:{text:"ops.dsrSettingDescription",translated:!1},primaryButton:{text:"common.close"}}});g.primaryButtonClick.pipe((0,i.s)(1)).subscribe(()=>{this.logger.info("close clicked"),g.close()})}isACAndDCFullyOptimized(g){const m=this.isOptimized(g,n.bF.AC),l=this.isOptimized(g,n.bF.DC)||this.isDCDisabled(g);return m&&l}isOptimized(g,m){return m===n.bF.DC?g?.profileDC?.targetOptimizationState===n.lq.OPTIMIZED:g?.profileAC?.targetOptimizationState===n.lq.OPTIMIZED}isDCDisabled(g){return g?.profileDC?.targetOptimizationState===n.lq.DISABLED}getSettingInfoData(g){if(g.isOptimalValueDSR||g.isCurrentValueDSR){const l=this.translateService.instant("ops.dsrSettingInfoSubtitle");return{inGameSettingData:{title:g.nameTranslation??g.name,subtitle:l}}}return null}translateAppSettingsValues(g,m,l){const r=g?.translationData?.get(l);r?m.forEach(u=>{if(r[u.name]){const v=r[u.name];u.nameTranslation=v.nameTranslation,u.value=this.translateAppSettingValue(u.value,v.values),u.optimalValue=this.translateAppSettingValue(u.optimalValue,v.values)}else this.logger.error("app settings translation not found for program ",g?.selectedProgram?.shortName,"with setting name ",u.name)}):this.logger.error("app settings translation not found for program",g?.selectedProgram?.shortName,"for locale",l)}processTranslation(g){return g?.reduce((m,l)=>{const r={...l,values:{}};return l.values.length&&l.values.reduce((u,v)=>(u[v.valueName]=v,u),r.values),m[l.name]=r,m},{})}getDisplayModeValues(g,m){if(!g)return m?.displayModes?.map(r=>({valueName:r,valueTranslation:r}));const l=g?.[m?.displayModeName]?.values;return m?.displayModes.map(r=>l?.[r]).filter(r=>!!r)}checkIfSelectedOpsIsRecommended(g,m,l,r){const u=this.isDCSettingSelected(g),v=u?g?.profileDC?.sliderSettings:g?.profileAC?.sliderSettings,E=u?g?.profileDC?.targetPosition:g?.profileAC?.targetPosition,T=this.getRecommendedDisplayModeResolution(v);let R;if(r)R=u?r?.recommendationDC?.recommendedIndex:r?.recommendationAC?.recommendedIndex;else{const B=this.prepareSettingsSpace(g);R=u?B?.recommendationDC?.recommendedIndex:B?.recommendationAC?.recommendedIndex}(null==m||!l)&&(m=E?E?.settingsIndex:R,l=E?E?.tweak:T),g.isRecommendedSelected=m===R&&T?.displayModeValue===l?.displayModeValue&&T?.resolutionValue===l?.resolutionValue}getOptimizationStatus(g){const m=this.isAcOrDcOptimizedOrCustomized(g),l=this.isWarningIcon(g);let r=n.p7.Unknown;return r=m||l?m&&!l?n.p7.Optimized:n.p7.Unknown:n.p7.UnOptimized,[r,m]}isAcOrDcOptimizedOrCustomized(g){return this.isOptimizedOrCustomized(g,n.bF.AC)||this.isOptimizedOrCustomized(g,n.bF.DC)}resolveMessageForACState(g,m,l,r){let u="";return u=this.translateService.instant(g?.WhisperMode?.isEnabled?m:l,{program:r}),u}getSystemBelowMinSpecMessage(g,m){return g?this.translateService.instant("ops.systemBelowMinSpecForGame"):m}isRecommendationAvailable(g,m){return m===n.bF.DC?!!g?.profileDC?.recommendation:!!g?.profileAC?.recommendation}unableToRetrieveSettings(g){return Object.values(n.eg).includes(g)}unableToShowOps(g){return Object.values(n.Rw).includes(g)}isWarningIcon(g){return!this.isRecommendationAvailable(g,n.bF.AC)&&(this.isDCDisabled(g)||!this.isRecommendationAvailable(g,n.bF.DC))||g?.profileAC?.recommendation?.belowMinspec&&g?.profileDC?.recommendation?.belowMinspec||g?.opsTabState===n.Rw.SystemUnsupported||g?.opsTabState===n.Rw.ProgramUnsupported||g?.opsTabState===n.eg.RecommendationsLoading||g?.currentSettingType===n.bF.DC&&!g?.profileDC?.targetSettings?.length||g?.currentSettingType===n.bF.AC&&!g?.profileAC?.targetSettings?.length}resolveOptimizationMessage(g,m,l,r){const u=this.isDCSettingSelected(g),v=r?.BatteryBoost?.isEnabled;let E,B=l?"ops.app":"ops.game";switch(B=this.translateService.instant(B),m){case n.eg.RecommendationsLoading:E=this.translateService.instant("ops.recommendationsLoading");break;case n.eg.OptimalDcNotAvailable:case n.eg.OptimalAcNotAvailable:E=this.translateService.instant("ops.optimalSettingsNotAvailable");break;case n.lq.DISABLED:E=this.translateService.instant("ops.programCannotBeOptimized",{program:B});break;case n.eg.CurrentDcNotAvailable:case n.eg.CurrentAcNotAvailable:E=this.translateService.instant("ops.unableToRetrieveCurrentSettings");break;case n.lq.OPTIMIZED:let U="";U=u&&v?this.translateService.instant("ops.programIsOptimizedForBattery",{program:B}):this.resolveMessageForACState(r,"ops.programIsOptimizedForWhisperMode","ops.programIsOptimized",B),E=this.getSystemBelowMinSpecMessage(g.isBelowMinSpec,U);break;case n.lq.UNOPTIMIZED:let Y="";Y=u&&v?this.translateService.instant("ops.programIsUsingPluggedInForBattery",{program:B}):this.resolveMessageForACState(r,"ops.programIsNotOptimizedForWhisperMode","ops.programIsNotOptimized",B),E=this.getSystemBelowMinSpecMessage(g.isBelowMinSpec,Y);break;case n.lq.CUSTOMIZED:let ae="";ae=u?this.translateService.instant("ops.programIsUsingCustomBatterySettings",{program:B}):this.resolveMessageForACState(r,"ops.programIsUsingCustomWhisperMode","ops.programIsUsingCustomSettings",B),E=this.getSystemBelowMinSpecMessage(g.isBelowMinSpec,ae);break;case n.Rw.ProgramUnsupported:E=this.translateService.instant("ops.programDoesNotSupportOps");break;case n.Rw.DlssOverrideSupportedOpsNotSupported:E="";break;case n.Rw.SystemUnsupported:E=this.translateService.instant("ops.systemDoesNotSupportOps");break;default:E=this.translateService.instant("ops.unableToRetrieveOpsSettings")}return E}getOptimizationTabState(g,m,l,r){let u=n.eg.UnInitialized;const v=this.isDCSettingSelected(g);if(l?.length||m?.length)if(l?.length){if(m?.length)return this.isDCSettingSelected(g)&&r?.BatteryBoost?.isEnabled?g?.profileDC?.targetOptimizationState:g?.profileAC?.targetOptimizationState;u=v?n.eg.CurrentDcNotAvailable:n.eg.CurrentAcNotAvailable}else u=v?n.eg.OptimalDcNotAvailable:n.eg.OptimalAcNotAvailable;else u=n.eg.UnInitialized;return u}getOptimalAndCurrentSettings(g,m,l){const r=[],u=g?.map(T=>T.name),v=m?.map(T=>T.name);return[...new Set([...u,...v])].forEach(T=>{const R=g.find(Y=>Y.name===T),B=m.find(Y=>Y.name===T);let U=null;U=R?{name:T,type:R.type===n.ZU.DRIVER_ENUM?R.type:n.ZU.ENUM,value:R.value,optimalValue:B?B.value:"-"}:{name:T,type:B.type===n.ZU.DRIVER_ENUM?B.type:n.ZU.ENUM,value:"-",optimalValue:B.value},U.isCurrentValueDSR=this.isDsrResolution(l,U.name,U.value),U.isOptimalValueDSR=this.isDsrResolution(l,U.name,U.optimalValue),U.settingInfoData=this.getSettingInfoData(U),r.push(U)}),r}formSettingsArray(g,m,l,r,u){const v=this.getOptimizationTabState(g,m,l,u);g.opsTabState=v,this.logger.info(`Optimization tab state for ${g.selectedProgram.shortName} is `,v);let E=[];return v===n.eg.CurrentAcNotAvailable||v===n.eg.CurrentDcNotAvailable?l.forEach(T=>{const R={name:T.name,type:T.type===n.ZU.DRIVER_ENUM?T.type:n.ZU.ENUM,value:"-",optimalValue:T.value};R.isOptimalValueDSR=this.isDsrResolution(g.dsrResolutions,R.name,R.optimalValue),R.settingInfoData=this.getSettingInfoData(R),E.push(R)}):v===n.eg.OptimalAcNotAvailable||v===n.eg.OptimalDcNotAvailable?m.forEach(T=>{const R={name:T.name,type:T.type===n.ZU.DRIVER_ENUM?T.type:n.ZU.ENUM,value:T.value,optimalValue:"-"};R.isCurrentValueDSR=this.isDsrResolution(g.dsrResolutions,R.name,R.value),R.settingInfoData=this.getSettingInfoData(R),E.push(R)}):(this.logger.info("Forming optimal and current settings for shortname",g.selectedProgram.shortName),E=this.getOptimalAndCurrentSettings(m,l,g.dsrResolutions)),E=E.sort((T,R)=>T.name.localeCompare(R.name)),this.translateAppSettingsValues(g,E,r),E}prepareSettingsSpace(g){return{settingsSets:(this.isDCSettingSelected(g)?g?.profileDC:g?.profileAC).settingsSets,recommendationAC:g?.profileAC?.recommendation,recommendationDC:g?.profileDC?.recommendation}}checkRatio(g,m,l,r){if(g%l==0){const u=g/l;if(m%u==0&&m/u===r)return!0}return!1}isAlmostXY(g,m,l,r){const u=g/l,v=l*u,E=r*u,T=.07*v,R=.07*E;return g>=v-T&&g<=v+T&&m>=E-R&&m<=E+R}getAspectRatio(g,m,l){return l?n.gl.HyperSample:this.checkRatio(g,m,16,10)?n.gl.Wide_16_10:this.checkRatio(g,m,16,9)?n.gl.Wide_16_9:this.checkRatio(g,m,4,3)?n.gl.Standard_4_3:this.checkRatio(g,m,5,4)?n.gl.Standard_5_4:this.isAlmostXY(g,m,16,9)?n.gl.Wide_16_9:this.isAlmostXY(g,m,16,10)?n.gl.Wide_16_10:n.gl.Custom}resolutionHeader(g){switch(this.getAspectRatio(g.width,g.height,g.isHypersampling)){case n.gl.HyperSample:return"ops.dynamicSuperResolutions";case n.gl.Wide_16_10:return"ops.wideScreen1610";case n.gl.Wide_16_9:return"ops.wideScreen169";case n.gl.Standard_4_3:return"ops.standard43";case n.gl.Standard_5_4:return"ops.standard54";default:return"common.custom"}}translateAppSettingValue(g,m){return"-"!==g&&m?.[g]?m[g].valueTranslation:g}static{this.\u0275fac=function(m){return new(m||x)(h.KVO(C.J6),h.KVO(S.uh),h.KVO(M.c$))}}static{this.\u0275prov=h.jDH({token:x,factory:x.\u0275fac,providedIn:"root"})}}return x})()},30683:(St,z,s)=>{"use strict";s.d(z,{f:()=>i,w:()=>n});const i={zh_CN:"zh_CHS",zh_TW:"zh_CHT"},n=6e4},60213:(St,z,s)=>{"use strict";s.d(z,{s:()=>Ce});var i=s(26513),n=s(80583),h=s(43848),C=s(36466),S=s(59859),M=s(35146),P=s(19392),x=s(31315),A=s(36666),g=s(72147),m=s(79539),l=s(25577),r=s(65706),u=s(10174),v=s(83915),E=s(14714),T=s(91384),R=s(8619),B=s(75707),U=s(92602),Y=s(71152);const ae={hasLocaleInfo:!0,hasSystemInfo:!0,hasGpuInfo:!0};var k=s(6538),X=s(98207),q=s(11001),Q=s(1242),ce=s(30683),te=s(58527),Ee=s(5498),it=s(47847),Fe=s(5798),Qe=s(26875),ct=s(35965),Ge=function(be){return be.Locale="Locale",be.SystemInfo="SystemInfo",be.GpuInfo="GpuInfo",be.Init="Init",be}(Ge||{});let nt=(()=>{class be{constructor(me,le,Xe,Se){this.systemInfoService=le,this.hardwareService=Xe,this.localeService=Se,this.logger=me.getLogger("nvapp/GfServiceParamsService"),this.params={},this.hasLocaleInfo=!1,this.hasGeneralSystemInfo=!1,this.hasGpuInfo=!1,this.gfServiceParamsUpdated$=new i.t(this.getParamEventData(Ge.Init))}getParamEventData(me){return{type:me,hasSystemInfo:this.hasGeneralSystemInfo,hasLocaleInfo:this.hasLocaleInfo,hasGpuInfo:this.hasGpuInfo,params:this.params}}get gfwslParamsUpdated(){return this.gfServiceParamsUpdated$}initialize(){this.processSystemInfo(),this.processGpuInfo(),this.processLocaleInfo()}onGfServicesParamsReady(me=ae){return this.gfServiceParamsUpdated$.pipe((0,R.p)(le=>this.checkAvailableGfServicesParams(me,le)))}getParams(me={}){return Object.assign({},this.params,me)}checkAvailableGfServicesParams(me,le){for(const Xe of Object.keys(me))if(me[Xe]!==le[Xe])return!1;return!0}processSystemInfo(){this.systemInfoService.getSystemInfo([U.Lu.UserDefaultUILanguage,U.Lu.CPUName,U.Lu.OSVersion,U.Lu.PhysicalMemoryCapacity]).subscribe(me=>{if(!me)return void this.logger.error("sysInfo not available");this.userDefaultUILanguage=me.UserDefaultUILanguage;const le={};({cpu:le.cpu,memory:le.memory,os:le.os}=this.params??{});const Ne={cpu:{name:me.CPUName},os:{version:me.OSVersion},memory:{size:me.PhysicalMemoryCapacity}};this.areParamsNotEqual(le,Ne)&&(this.params={...this.params,...Ne},this.hasGeneralSystemInfo=!0,this.gfServiceParamsUpdated$.next(this.getParamEventData(Ge.SystemInfo)))},me=>{this.logger.error("System info errored out",me)})}processGpuInfo(){this.hardwareService.getGpuInfo(!1).subscribe(me=>{if(0===(0,Qe.size)(me.GPU))return void this.logger.error("Empty GPU list in gpu hardware info",me);const le=me.GPU.find(Ne=>"1"===Ne.IsPrimary)||me.GPU[0],Se={gpu:{chip:le.ShortGPUName,name:le.LongGPUName,ramType:le.GPURAMType,ramSize:le.ActualVRAMSize,deviceID:le.DeviceId,vendorID:le.VendorId,subSystemID:le.SubSystemId,subVendorID:le.SubVendorId,sli:+me.SLI.SLISupported,skumod:le.SKUMod??"",tgp:+le.Tgp}},fe={};({gpu:fe.gpu}=this.params??{}),this.areParamsNotEqual(fe,Se)&&(this.params.gpu=Se.gpu,this.hasGpuInfo=!0,this.gfServiceParamsUpdated$.next(this.getParamEventData(Ge.GpuInfo)))},me=>{this.logger.error("GPU info errored out",me)})}processLocaleInfo(){this.localeService.localeChanged.subscribe(me=>{const Xe={localeId:ct.GS.find(fe=>fe.code===(me??this.userDefaultUILanguage)?.replace("_","-")||fe.cmsCode===me)?.LCID[0].toString()},Se={};({localeId:Se.localeId}=this.params??{}),this.areParamsNotEqual(Se,Xe)&&(this.params.localeId=Xe.localeId,this.hasLocaleInfo=!0,this.gfServiceParamsUpdated$.next(this.getParamEventData(Ge.Locale)))},me=>{this.logger.error("Locale info errored out",me)})}areParamsNotEqual(me,le){return!(0,Qe.isEqual)(me,le)}static{this.\u0275fac=function(le){return new(le||be)(te.KVO(U.J6),te.KVO(U.zW),te.KVO(U.SQ),te.KVO(U.iH))}}static{this.\u0275prov=te.jDH({token:be,factory:be.\u0275fac,providedIn:"root"})}}return be})();var Je=s(76449);let ze=(()=>{class be{constructor(me,le,Xe,Se,fe){this.loggingService=me,this.config=le,this.endpointFactory=Xe,this.gfServiceParamsService=Se,this.distributedTracingUtilService=fe,this.logger=this.loggingService.getLogger("nvapp/GfServicesService"),this.endpoint=this.endpointFactory.createEndpoint(),this.endpointRetryConfig={},({defaultRetries:this.endpointRetryConfig.maxRetries,defaultTimeBetweenRetries:this.endpointRetryConfig.timeBetweenRetries,defaultTimeout:this.endpointRetryConfig.timeout}=this.config?.gfservices??{})}initialize(){this.gfServiceParamsService.initialize()}callEndpoint(me,le,Xe,Se={},fe=Ee.I.GfServicesOpsCompatibility,Ne){if(!me)return(0,S.$)("No endpoint path provided.");const ye=this.generateEndpointUrl(this.config?.gfservices,me,Xe);this.logger.info("Going to call GfServices URL:",ye,"and dynamic headers:",Se);const Ot={config:this.endpointRetryConfig,headers:{...Se},reportRequestData:{originalService:Q.Uu.GFService,serviceUseCase:Q.OO.GetOpsCompatibility,reportSuccessTelemetry:"true"}},sn=this.endpoint.makeRequestEx(le,ye,Ot);return this.distributedTracingUtilService.handleHttpEndpointSpan(sn,Ot,fe,Ne)}callOpsCompatibility(me){return this.gfServiceParamsService.onGfServicesParamsReady(me).pipe((0,g.n)(()=>{const le=this.gfServiceParamsService.getParams(),{localeId:Xe,...Se}=le,fe=(0,Y.A9)(Se),Ne=new URLSearchParams;fe.forEach((At,Vt)=>{Ne.set(Vt,At)});const ye=Ne.toString(),sn=`${(0,Y.l2)([this.config?.gfservices?.server,this.config?.gfservices?.version,"ops-compatibility"])}?${ye}`;this.logger.info("Calling OPS compatibility URL with query parameters (excluding localeId):",sn);const dn={config:this.endpointRetryConfig,headers:{},reportRequestData:{originalService:Q.Uu.GFService,serviceUseCase:Q.OO.GetOpsCompatibility,reportSuccessTelemetry:"true"}},yn=this.endpoint.makeRequestEx("GET",sn,dn);return this.distributedTracingUtilService.handleHttpEndpointSpan(yn,dn,Ee.I.GfServicesOpsCompatibility)}))}onGfServicesParamsReady(me){return this.gfServiceParamsService.onGfServicesParamsReady(me)}generateEndpointUrl(me,le,Xe){const Se=JSON.stringify(this.gfServiceParamsService.getParams(Xe));return(0,Y.l2)([me.server,me.version,le])+`?${Se}`}static{this.\u0275fac=function(le){return new(le||be)(te.KVO(U.J6),te.KVO(it.Vk),te.KVO(Fe.t),te.KVO(nt),te.KVO(Je.Z1))}}static{this.\u0275prov=te.jDH({token:be,factory:be.\u0275fac,providedIn:"root"})}}return be})();var Ke=s(17543),Ve=s(75520),$e=s(96306),dt=s(13102),Pe=s(44272),J=s(26990),vt=s(96542),ve=s(78812),ue=s(56068);let et=(()=>{class be{constructor(me,le,Xe,Se,fe,Ne,ye){this.loggingService=me,this.telemetryService=le,this.windowService=Xe,this.appConfig=Se,this.global3dSettingsService=fe,this.manage3dSettingsUtilService=Ne,this.opsApiService=ye,this.logger=this.loggingService.getLogger("nvapp/OPSTelemetryService")}initialize(){this.focusEventSent=Date.now(),this.windowService.getFocusEvent().pipe((0,R.p)(()=>Date.now()-this.focusEventSent>=this.appConfig.ops.focusUIFrequency)).subscribe(()=>{this.focusEventSent=Date.now(),this.logger.info("Sending FocusUI event",this.focusEventSent),this.sendOPSClickEvent(Q.Z$.FocusUI,0,Q.k0.ProgramList)},me=>{this.logger.error("Error while sending FocusUI OPS Event",me)})}sendOPSLaunchEvents(){this.logger.info("Sending OPS Launch Events"),this.sendOPSClickEvent(Q.Z$.LaunchUI,0,Q.k0.ProgramList),this.sendOpsAtGraphicsViewEvent()}sendSettingsStateEvent(me){return this.opsApiService.getAutoOptimizeEnabled().pipe((0,r.s)(1),(0,T.M)(le=>{const Xe=new Q.CG({settingName:Q.L4.AutoOptimize,settingValue:le?Q.T8.TRUE:Q.T8.FALSE,isSupported:me?Q.T8.TRUE:Q.T8.FALSE});this.telemetryService.push(Xe,null)}))}sendOptimizationTelemetry(me,le,Xe,Se,fe,Ne,ye,Ot){let sn;sn=me===k.$7.AC?Xe?Q.V3.CustomOPS:Q.V3.OPS:Xe?Q.V3.CustomBOPS:Q.V3.BOPS;const dn=new Q.Lh({opsType:sn,action:le,optimalSettings:Se?[Se]:[],cmsId:`${fe.cmsId}`,chromaAppId:fe.chromaAppId,gameshortName:fe.shortName,isCreativeApp:fe.isCreativeApp?Q.T8.TRUE:Q.T8.FALSE,requestCycleDurationMs:Ne,status:ye,errorDetails:Ot||""});this.telemetryService.push(dn,null)}sendOPSClickEvent(me,le,Xe){const Se=new Q.un({itemType:me,hierarchy:Xe,requestCycleDurationMs:le});this.telemetryService.push(Se,null)}sendOpsAtGraphicsViewEvent(){(0,x.zV)([this.manage3dSettingsUtilService.getGlobalSettings().pipe((0,r.s)(1)),this.opsApiService.getAutoOptimizeEnabled().pipe((0,r.s)(1))]).subscribe(([me,le])=>{const Xe=this.global3dSettingsService.getBatteryBoostValue(me),Se=Xe?.version===X.BatteryBoostVersionEnum.V1,fe=Xe?.enabled?Q.T8.TRUE:Q.T8.FALSE,Ne=this.global3dSettingsService.getWhisperModeValue(me),ye=Ne?.version===X.WhisperModeVersionEnum.V1,Ot=Ne?.enabled?Q.T8.TRUE:Q.T8.FALSE,sn=this.global3dSettingsService.getNIS2Value(me),dn=new Q.Lp({autoOptimize:le?Q.T8.TRUE:Q.T8.FALSE,batteryBoostV1:Se?fe:Q.T8.FALSE,batteryBoostV2:Se?Q.T8.FALSE:fe,whisperModeV1:ye?Ot:Q.T8.FALSE,whisperModeV2:ye?Q.T8.FALSE:Ot,nisV2:sn?.enabled?Q.T8.TRUE:Q.T8.FALSE,currentProfileType:Q.eU.Global});this.telemetryService.push(dn,null)},me=>{this.logger.error("Error while sending Graphics View Event",me)})}static{this.\u0275fac=function(le){return new(le||be)(te.KVO(U.J6),te.KVO(ve.H0),te.KVO(U.s7),te.KVO(it.Vk),te.KVO(ue.R),te.KVO(J.f),te.KVO(Ke.M))}}static{this.\u0275prov=te.jDH({token:be,factory:be.\u0275fac,providedIn:"root"})}}return be})();var se=s(62313);let Ce=(()=>{class be{constructor(me,le,Xe,Se,fe,Ne,ye,Ot,sn,dn,yn,At,Vt){this.loggingService=me,this.gfServicesService=le,this.opsApiService=Xe,this.opsUtilsService=Se,this.appConfig=fe,this.errorHandlerService=Ne,this.localeService=ye,this.scanApisService=Ot,this.appListService=sn,this.manage3dSettingsUtilService=dn,this.translateService=yn,this.opsTelemetryService=At,this.opsEventService=Vt,this.localApps=[],this.selectedProgramOpsState$=new i.t(null),this.selectedProgramSubject$=new i.t({}),this.optimizeAllInProgress$=new i.t(!1),this.opsLoading$=new i.t(!0),this.localAppsWithOpsStatusUpdated$=new n.B7,this.graphicsUtilityCardStatus$=new i.t(null),this.driverSettingsSupportStates$=new i.t(null),this.appsToProcess=new Set,this.allAppsProcessedSubject=new n.B7,this.allAppsProcessed$=this.allAppsProcessedSubject.asObservable(),this.opsEnabled=!1,this.logger=this.loggingService.getLogger("nvapp/OPSService"),this.appStates=new Map,this.opsCompatibilityEventStream=new Y.TE(()=>this.fetchOpsCompatibility(),!1),this.opsEnabled=fe.featureEnablement.ops?.enabled,this.loadingSpinner=new q.k,this.opsDownloadNotifications=new Set}initialize(){this.opsEnabled&&(this.logger.info("Initializing listeners for OPS"),this.gfServicesService.initialize(),this.registerOpsSettingsListener(),this.initProgramStateChangeListener(),this.getExistingLocalApps(),this.getLocalAddedApps(),this.getLocalApps(),this.listenForSupportStates(),this.listenForLocaleChange(),this.listenForOptimizeAllApps(),this.priorityRequestQueue=new U.Q_(!1,{next:void 0,error:void 0,complete:void 0}),this.opsTelemetryService.initialize())}listenForOptimizeAllApps(){this.opsEventService.getOptimizeAllApps().subscribe(me=>{this.confirmAndOptimizeAll(me)},me=>{this.logger.error("Error while listening for optimize all apps event",me)})}listenForLocaleChange(){this.localeService.localeChanged.pipe((0,A.i)(1),(0,g.n)(me=>(this.currentLocale=me,(0,h.of)(...this.localApps.filter(le=>le.regularOpsSupported)).pipe((0,m.H)(le=>this.fetchTranslations(le.localId,me)),(0,l.H)())))).subscribe(()=>{this.onProgramProcessed(),this.logger.info("Translations fetched for all applications.")},me=>this.logger.error("Error fetching translations for applications",me))}getSelectedProgramOpsState(){return this.selectedProgramOpsState$.asObservable()}getSelectedProgram(){return this.selectedProgramSubject$.asObservable()}setSelectedProgram(me){this.selectedProgramSubject$.next(me)}sendOpsEventsOnOotbFinish(me){me&&(this.opsTelemetryService.sendOPSLaunchEvents(),this.getOpsCompatibility().pipe((0,g.n)(le=>this.opsTelemetryService.sendSettingsStateEvent(le)),(0,r.s)(1)).subscribe(C.l,le=>{this.logger.error("Error while sending SettingsState event for Auto Optimize",le)}))}getOptimizeAllInProgress(){return this.optimizeAllInProgress$.asObservable()}getOpsLoading(){return this.opsLoading$.asObservable()}setOpsLoading(me){return this.opsLoading$.next(me)}getLocalAppsWithOpsStatusUpdatedListener(){return this.localAppsWithOpsStatusUpdated$.asObservable()}getGraphicsSettingsUtilityCardStatus(){return this.graphicsUtilityCardStatus$.asObservable()}updateStateInTransit(me){const le=this.getSelectedProgramOpsStateValue();le&&(le.stateInTransit=!!me)}getGraphicsSettingsTabChange(){return this.manage3dSettingsUtilService.getGraphicsSettingsTabChange()}getDriverSettingsSupportState(){return this.driverSettingsSupportStates$.asObservable()}refreshOpsSettings(me,le=!1,Xe=!1){return this.getApplicationState(me,le).pipe((0,g.n)(Se=>{if(!Se)return this.selectedProgramOpsState$.next(null),(0,S.$)(`state not found for app ${me.shortName}`);const fe=this.opsUtilsService.isDCSettingSelected(Se)?Se.profileDC:Se.profileAC;if(fe?.sliderSettings){this.logger.info(`Fetching setting space as slider settings found for ${Se.selectedProgram.shortName}`);const Ne=Xe?this.getApplicationSettingsSpace(Se,null):(0,h.of)(this.opsUtilsService.prepareSettingsSpace(Se));return(0,M.yU)((0,h.of)(Se),Ne)}{fe?.targetSettings?.length&&this.formSettingsArray(Se,fe?.targetSettings,[]);const Ne=Se.lastQueriedTimeForNoSliderSettings,ye=Ne?parseInt(Date.now().toString())-parseInt(Ne):0,Ot=this.opsDownloadNotifications?.has(me.localId);return this.logger.info(`Notification status for program ${Se.selectedProgram.shortName} and elapsed time and waitForTimeout`,Ot,ye,Se.waitForTimeout),Ot||ye>ce.w||!Se.waitForTimeout?(Se.opsTabState=this.opsUtilsService.getOptimizationTabState(Se,fe?.targetSettings,[],this.supportStates),this.logger.info(`Slider settings timeout (${ye}) or notification received for program ${Se.selectedProgram.shortName}, updating state to`,Se.opsTabState)):Se.opsTabState=k.eg.RecommendationsLoading,Se.lastQueriedTimeForNoSliderSettings||(Se.lastQueriedTimeForNoSliderSettings=Date.now().toString()),this.logger.info(`Slider settings not found for program ${Se.selectedProgram.shortName}, tab state is`,Se.opsTabState),me.opsTabState=Se.opsTabState,this.selectedProgramOpsState$.next(Se),(0,S.$)(`slider settings not found for game ${Se.selectedProgram.shortName}`)}}),(0,g.n)(([Se,fe])=>this.fetchTranslations(Se.selectedProgram.localId,this.localeService.getLocale()).pipe((0,u.u)([Se,fe]))),(0,v.T)(([Se,fe])=>(this.opsUtilsService.checkIfSelectedOpsIsRecommended(Se,null,Se.stateInTransit?Se?.currentSettingTweaks?.[Se.currentSettingType]:null,fe),this.opsUtilsService.updateDSRResolutions(Se),this.updateSettingsAndSettingSpace(Se,fe,null),me.opsTabState=Se.opsTabState,!0)),(0,r.s)(1),(0,E.W)(Se=>(this.logger.error(`Error encountered during fetching ops state for program ${me.shortName}`,Se),(0,S.$)(Se))))}sliderChanged(me,le){const Xe=this.getSelectedProgramOpsStateValue();this.opsUtilsService.checkIfSelectedOpsIsRecommended(Xe,le,me),this.updateStateInTransit(!0),this.updateSettingsAndSettingSpace(Xe,null,le)}resolutionOrDisplayModeChanged(me,le,Xe=!1){const Se=this.getSelectedProgramOpsStateValue();this.updateStateInTransit(Xe),Se?this.getApplicationSettingsSpace(Se,me).pipe((0,r.s)(1)).subscribe(fe=>{this.opsUtilsService.checkIfSelectedOpsIsRecommended(Se,le,me,fe),this.updateSettingsAndSettingSpace(Se,fe,le)}):this.logger.error("state not found for program")}getOpsCompatibility(){return this.opsCompatibilityEventStream.get$()}getOptimizationMessage(me,le){return this.opsUtilsService.resolveOptimizationMessage(me,le,me?.selectedProgram?.isCreativeApp,this.supportStates)}optimize(me,le,Xe,Se,fe,Ne){if(!Se||null==fe){const ye=Xe===k.bF.AC?me?.profileAC?.recommendation:me?.profileDC?.recommendation,Ot=Xe===k.bF.AC?me?.profileAC?.sliderSettings:me?.profileDC?.sliderSettings;fe=ye?.recommendedIndex,Se=this.opsUtilsService.getRecommendedDisplayModeResolution(Ot)}return!Se||null===fe&&void 0===fe?(this.logger.error("no recommendations for program",me.selectedProgram.shortName),(0,h.of)(null)):(this.logger.info(`optimize ${Xe} for program`,me.selectedProgram.shortName),this.customize(me,le,Se,fe,Xe,Ne))}revert(me,le){const Xe=le===k.bF.AC?k.$7.AC:k.$7.DC,fe=Date.now();return this.opsApiService.optimize(me.localId,Xe).pipe((0,T.M)(()=>{const ye=Date.now()-fe;this.opsTelemetryService.sendOptimizationTelemetry(Xe,Q.R.Reverted,!1,null,me,ye,Q.fb.Success,"")}),(0,u.u)(!0),(0,E.W)(ye=>{const Ot=Date.now()-fe;return this.logger.error("Error while reverting",ye),this.opsTelemetryService.sendOptimizationTelemetry(Xe,Q.R.Reverted,!1,null,me,Ot,Q.fb.Failure,JSON.stringify(ye)),(0,h.of)(!1)}))}confirmAndOptimizeAll(me){this.optimizeAll(me,[k.bF.AC,k.bF.DC],"ops.optimizeAllFinished",!1,Q.Z$.OptimizeAll,Q.k0.ProgramList)}optimizeAll(me,le=[k.bF.AC,k.bF.DC],Xe,Se=!1,fe,Ne=Q.k0.ProfileSettings,ye){if(this.optimizeAllInProgress$.getValue())return void this.logger.info("optimizeAll is already in progress");this.optimizeAllSub&&this.optimizeAllSub.unsubscribe(),this.optimizeAllInProgress$.next(!0);const Ot=Date.now();this.optimizeAllSub=(0,P.H)(me).pipe((0,R.p)(sn=>sn.regularOpsSupported),(0,m.H)(sn=>(0,M.yU)((0,h.of)(sn),this.getApplicationState(sn))),(0,m.H)(([sn,dn])=>this.doOptimize(dn,sn,le)),(0,l.H)()).subscribe(()=>{this.handleOptimizeAll(fe,Ne,ye,Ot),this.logger.info("Optimize all finished"),this.showToastMessage(Xe,Se)},sn=>{this.handleOptimizeAll(fe,Ne,ye,Ot),this.logger.error("Error while Optimize all",sn)})}getTranslationDataForCurrentLocale(me){return me?.translationData?.get(this.currentLocale)}showToastMessage(me,le=!1,Xe="",Se){return this.errorHandlerService.showToastMessage({text:me,translated:le,placeholders:Se},{text:Xe,translated:le})}powerModeTabChanged(me,le){const Xe=0===me?k.bF.AC:k.bF.DC;this.setCurrentSettingType(le.localId,Xe),this.logger.info(`Refreshing after ${Xe} tab selected`);const Se=this.selectedProgramOpsState$?.getValue();this.checkProgramInQueueAndPush(le,!1,Se?.stateInTransit),Se?.stateInTransit&&this.updateStateInTransit(!1)}handleOptimizeAll(me,le,Xe,Se){this.optimizeAllInProgress$.next(!1);const fe=Date.now()-Se;Xe||this.opsTelemetryService.sendOPSClickEvent(me,fe,le)}getExistingLocalApps(){this.scanApisService.getLocalApps().pipe((0,r.s)(1),(0,T.M)(me=>{me.length&&this.opsEnabled&&(this.logger.info("Existing Local apps received",me.length),this.localApps=me)}),(0,g.n)(()=>this.preFillOpsState())).subscribe(()=>{this.fetchOpsStateForExistingApps()},me=>{this.logger.info("Error fetching state for local apps",me)})}getLocalAddedApps(){this.subGetLocalAddedApp&&this.subGetLocalAddedApp.unsubscribe(),this.subGetLocalAddedApp=this.scanApisService.getLocalAddedApp().pipe((0,R.p)(me=>!this.localApps.find(Xe=>Xe.localId===me.localId)),(0,g.n)(me=>{const le={selectedProgram:{...me},opsTabState:k.eg.RecommendationsLoading,waitForTimeout:!0};return this.appStates.set(me.localId,le),(0,M.yU)(this.getSelectedProgram(),(0,h.of)(me))}),(0,T.M)(([me,le])=>{if(me.localId===le.localId){const Se=this.appStates.get(le.localId);this.selectedProgramOpsState$.next(Se)}this.localApps.find(Se=>Se.shortName===le.shortName)&&(this.logger.info("Start fetching state for localId as short name already found",le.localId),this.checkProgramInQueueAndPush(le,!0,!1)),this.logger.info("New app added",le?.shortName),this.localAppsWithOpsStatusUpdated$.next()})).subscribe(C.l,me=>{this.logger.info("Error initializing state for new app",me)})}getLocalApps(){this.subGetLocalApps&&this.subGetLocalApps.unsubscribe(),this.subGetLocalApps=this.appListService.getLocalUpdatedApps().subscribe(me=>{this.opsEnabled&&(this.logger.info("Updated Local apps received",me.length),this.localApps=me??[],this.localApps.forEach(le=>{const Xe=this.appStates.get(le.localId);Xe&&([le.optimizationStatusIcon,le.isOptimized]=this.opsUtilsService.getOptimizationStatus(Xe))}))},me=>{this.logger.info("Error fetching state for local apps",me)})}listenForSupportStates(){this.manage3dSettingsUtilService.getGlobalJsonSettingsSupport().pipe((0,T.M)(me=>{this.logger.info("Support State changed",me),this.supportStates=me,this.driverSettingsSupportStates$.next(this.supportStates),this.localApps.length&&(this.handleBatteryBoostState(),this.handleWhisperModeState(),this.handleNISState())})).subscribe(C.l,me=>{this.logger.error("Error while listening to support state change listener",me)})}handleBatteryBoostState(){if(this.supportStates?.BatteryBoost?.isSupported&&this.supportStates?.BatteryBoost?.applyOps){this.supportStates?.BatteryBoost.isEnabled&&(this.localApps.forEach(Xe=>{this.clearState(Xe.localId)}),this.showToastMessage("ops.toastBatteryBoostIsEnabled",!1,"ops.optimize").pipe((0,R.p)(Xe=>Xe),(0,r.s)(1)).subscribe(Xe=>{this.logger.info("Optimizing all apps for BatteryBoost");const Se=this.translateService.instant("manage3dSettings.BatteryBoost.name"),fe=this.translateService.instant("ops.optimizeAllFinishedCustomMessage",{feature:Se});this.optimizeAll(this.localApps,[k.bF.DC],fe,!0,this.supportStates?.BatteryBoost.version===X.BatteryBoostVersionEnum.V1?Q.Z$.BatteryBoostV1Toast:Q.Z$.BatteryBoostV2Toast)}));const me=this.getSelectedProgramValue(),le=this.getSelectedProgramOpsStateValue();this.setCurrentSettingType(me.localId,k.bF.AC),this.checkProgramInQueueAndPush(me,!0,!1),le?.stateInTransit&&this.updateStateInTransit(!1)}}handleWhisperModeState(){if(this.supportStates?.WhisperMode?.isSupported&&this.supportStates?.WhisperMode?.applyOps){this.localApps.forEach(Se=>{this.clearState(Se.localId)});const me=this.getSelectedProgramValue(),le=this.localApps.filter(Se=>Se.localId!==me?.localId);le.length&&(this.logger.info("Initializing State for all apps as quite mode is changed with",this.supportStates.WhisperMode.isEnabled),this.initiateApplicationState(le).subscribe()),this.showToastMessage(this.supportStates.WhisperMode.isEnabled?"ops.toastQuietModeIsEnabled":"ops.toastQuietModeIsDisabled",!1,"ops.optimize").pipe((0,R.p)(Se=>Se),(0,r.s)(1)).subscribe(Se=>{this.logger.info("Optimizing all apps for WhisperMode");const fe=this.supportStates?.WhisperMode.version===X.WhisperModeVersionEnum.V1?Q.Z$.WhisperModeV1Toast:Q.Z$.WhisperModeV2Toast;if(this.supportStates.WhisperMode.isEnabled){const Ne=this.translateService.instant("manage3dSettings.WhisperMode.name"),ye=this.translateService.instant("ops.optimizeAllFinishedCustomMessage",{feature:Ne});this.optimizeAll(this.localApps,[k.bF.AC],ye,!0,fe)}else this.optimizeAll(this.localApps,[k.bF.AC],"ops.optimizeAllFinished",!1,fe)}),this.checkProgramInQueueAndPush(me,!0,!1)}}handleNISState(){if(this.supportStates?.NIS?.isSupported&&this.supportStates?.NIS?.applyOps){const me=this.getSelectedProgramValue();let le=[];const Xe=this.supportStates?.NIS?.localId&&!this.supportStates.NIS?.isGlobalContext;let Se="";Xe?(le=[this.localApps.find(Ot=>Ot.localId===this.supportStates?.NIS?.localId)],Se="ops.toastNISStatePerProgramIsEnabled"):(le=this.localApps,Se="ops.toastNISStateIsEnabled");const fe={program:me.displayName,isEnabled:this.supportStates?.NIS?.isEnabled?"enabled":"disabled"},Ne=Xe?Q.k0.ProgramList:Q.k0.ProfileSettings;le.forEach(ye=>{this.clearState(ye.localId)}),this.showToastMessage(Se,!1,"ops.optimize",fe).pipe((0,r.s)(1),(0,g.n)(ye=>{const Ot=this.manage3dSettingsUtilService.getShowRTXHdrToast()?this.showToastMessage("manage3dSettings.ImageScaling.aiHDRUpdated",!1):(0,h.of)(!1);return(0,M.yU)((0,h.of)(ye),Ot)}),(0,v.T)(([ye,Ot])=>ye),(0,R.p)(ye=>ye),(0,r.s)(1)).subscribe(ye=>{this.logger.info("Optimizing all apps for NIS");const Ot=Q.Z$.NISV2Toast,sn=this.translateService.instant("manage3dSettings.ImageScaling.name");if(this.supportStates.NIS.isEnabled){const dn=Xe?this.translateService.instant("ops.optimizedProgramFinishedCustomMessage",{program:me.displayName,feature:sn}):this.translateService.instant("ops.optimizeAllFinishedCustomMessage",{feature:sn});this.optimizeAll(le,[k.bF.AC,k.bF.DC],dn,!0,Ot,Ne,Xe)}else{const dn=Xe?this.translateService.instant("ops.optimizedProgramFinishedCustomMessage",{program:me.displayName,feature:sn}):this.translateService.instant("ops.optimizeAllFinished",{feature:sn});this.optimizeAll(le,[k.bF.AC,k.bF.DC],dn,!1,Ot,Ne,Xe)}}),this.checkProgramInQueueAndPush(me,!0,!1)}}getSelectedProgramValue(){return this.selectedProgramSubject$.getValue()}getSelectedProgramOpsStateValue(){return this.selectedProgramOpsState$.getValue()}initiateApplicationState(me){return this.logger.info("Initiating application state for local apps count",me.length),this.getOpsCompatibility().pipe((0,g.n)(le=>le?(0,P.H)(me).pipe((0,m.H)(Xe=>(this.logger.info("Initiate ApplicationState for program ",Xe.shortName),this.getApplicationState(Xe,!1))),(0,E.W)(Xe=>(this.logger.error("Error while getting applications state",Xe),(0,h.of)(null))),(0,l.H)(),(0,r.s)(1)):(0,h.of)(!1)),(0,r.s)(1))}getTotalAndOptimizedAppsCount(){return{optimized:this.localApps?.filter(le=>le.isOptimized)?.length,total:this.localApps?.length}}registerOpsSettingsListener(){this.opsSettingsSub&&this.opsSettingsSub.unsubscribe(),this.opsSettingsSub=(0,x.zV)([this.getOpsCompatibility(),this.getSelectedProgram(),this.localeService.localeChanged]).subscribe(([me,le,Xe])=>{if(!me){this.logger.info("OPS not supported on the system",me);const Se={selectedProgram:le,opsTabState:k.Rw.SystemUnsupported};return this.opsLoading$.next(!1),void this.selectedProgramOpsState$.next(Se)}if(!le?.regularOpsSupported&&!le?.dlssOverrideNoOps){this.logger.info("OPS not supported on the system for program",le?.shortName,le?.localId);const Se={selectedProgram:le,opsTabState:k.Rw.ProgramUnsupported,stateInTransit:!1};return this.opsLoading$.next(!1),void this.selectedProgramOpsState$.next(Se)}if(le?.dlssOverrideNoOps){this.logger.info("OPS not supported on the system for program, but DLSS override is supported",le?.shortName,le?.localId);const Se={selectedProgram:le,opsTabState:k.Rw.DlssOverrideSupportedOpsNotSupported,stateInTransit:!1};return this.opsLoading$.next(!1),void this.selectedProgramOpsState$.next(Se)}this.opsEnabled&&me&&le?.localId&&Xe&&this.handleProgramSelection(le,Xe)})}fetchOpsStateForExistingApps(){this.localApps.forEach(me=>{const le=this.appStates.get(me.localId);le&&(le.selectedProgram=me,le.waitForTimeout=!1,[me.optimizationStatusIcon,me.isOptimized]=this.opsUtilsService.getOptimizationStatus(le)),this.appsToProcess.add(me.localId),this.pushProgramToQueue(U.iX.Normal,me.localId,!0,!1)})}doOptimize(me,le,Xe,Se=!1){let fe,Ne;const ye=me.selectedProgram.shortName;return this.logger.info(`Optimizing game with ${Xe} for shortName`,ye),this.opsUtilsService.isACAndDCFullyOptimized(me)?(this.logger.info(`Already fully optimized for shortname ${ye}`),(0,h.of)(null)):me.profileAC.targetSettings?me.profileAC.sliderSettings?(this.opsUtilsService.isOptimized(me,k.bF.AC)||!this.opsUtilsService.isRecommendationAvailable(me,k.bF.AC)?(this.logger.info(`AC optimized for shortname ${ye}`),fe=(0,h.of)(null)):(this.logger.info(`Start AC Optimize for shortname ${ye}`),fe=Xe.includes(k.bF.AC)?this.optimize(me,le,k.bF.AC,null,null,Se):(0,h.of)(null)),this.opsUtilsService.isOptimized(me,k.bF.DC)||this.opsUtilsService.isDCDisabled(me)||!this.opsUtilsService.isRecommendationAvailable(me,k.bF.DC)?(this.logger.info(`DC optimized for shortname ${ye}`),Ne=(0,h.of)(null)):(this.logger.info(`Start DC Optimize for shortname ${ye}`),Ne=Xe.includes(k.bF.DC)?this.optimize(me,le,k.bF.DC,null,null,Se):(0,h.of)(null)),(0,M.yU)(fe,Ne).pipe((0,u.u)(!0))):(this.logger.info(`Slider settings not found for shortname ${ye}`),(0,h.of)(null)):(this.logger.info(`Target settings not found for shortname ${ye}`),(0,h.of)(null))}updateSettingsAndSettingSpace(me,le,Xe){this.updateUISettings(me,le,Xe),this.getSelectedProgramValue().localId===me.selectedProgram.localId&&this.selectedProgramOpsState$.next(me)}updateUISettings(me,le,Xe){const Se=this.opsUtilsService.isDCSettingSelected(me);le||(le=this.opsUtilsService.prepareSettingsSpace(me));const fe=Se?me?.profileDC?.targetSettings:me?.profileAC?.targetSettings,Ne=Se?me?.profileDC?.targetPosition:me?.profileAC?.targetPosition,ye=this.getOptimalSettings(le,Se,Xe??Ne?.settingsIndex);if(!ye.length){me.uiSettings=[];const Ot=this.opsUtilsService.getOptimizationTabState(me,null,null,this.supportStates);return me.opsTabState=Ot,void this.logger.info("Optimal settings cannot be resolved for program ",me.selectedProgram.shortName)}me.isBelowMinSpec=this.getIsBelowMinSpec(me,le),this.formSettingsArray(me,fe,ye)}formSettingsArray(me,le,Xe){const Se=this.opsUtilsService.formSettingsArray(me,le,Xe,this.currentLocale,this.supportStates);me.uiSettings=Se}customize(me,le,Xe,Se,fe,Ne){const ye=fe===k.bF.AC?k.$7.AC:k.$7.DC,Ot=me.stateInTransit,sn=Date.now(),dn={resolution:Xe.resolutionValue,displayMode:Xe.displayModeValue,sliderIndex:Se},yn=Ne?Q.R.AutoApplied:Q.R.Applied;return this.opsApiService.optimize(le.localId,ye,Xe,Se).pipe((0,T.M)(()=>{const At=Date.now()-sn;this.opsTelemetryService.sendOptimizationTelemetry(ye,yn,Ot,dn,le,At,Q.fb.Success,"")}),(0,u.u)(!0),(0,E.W)(At=>{const Vt=Date.now()-sn;return this.logger.error("Error while optimizing",At),this.loadingSpinner.triggerLoadingIndicator(!1),this.opsTelemetryService.sendOptimizationTelemetry(ye,yn,Ot,dn,le,Vt,Q.fb.Failure,JSON.stringify(At)),(0,h.of)(!1)}))}initProgramStateChangeListener(){this.programStateNotificationSub&&this.programStateNotificationSub.unsubscribe(),this.programStateNotificationSub=this.opsApiService.registerApplicationStateChangedNotifications().subscribe(me=>{this.handleStateChangeNotifications(me.localId)},me=>{this.logger.error("Error while registering program state change listener",me)})}clearState(me){this.logger.info("clearing state for localId",me),this.appStates.delete(me)}setCurrentSettingType(me,le){const Xe=this.appStates.get(me);Xe&&(Xe.currentSettingType=le,this.appStates.set(me,Xe))}getApplicationState(me,le=!1,Xe){const Se=Xe||me?.localId;let fe=this.appStates?.get(Se);const Ne=fe?.opsTabState===k.eg.RecommendationsLoading;if(this.logger.info(`RecommendationsLoading state for ${Se} ${Ne}`),fe&&!le&&!Ne)return this.logger.info(`Fetched state from cache for program ${me?.shortName}`),(0,h.of)(fe);let ye=fe?.currentSettingType||k.bF.AC;this.logger.info("Current setting type is",ye);let Ot={};return this.opsApiService.fetchApplicationState(Se).pipe((0,B.ZZ)(sn=>{if(fe&&le&&(fe=this.appStates?.get(Se),ye=fe?.currentSettingType||ye,this.logger.info("New Current setting type is",ye),this.clearState(Se)),Ot=this.localApps?.find(lt=>lt.localId===Se)||me,!Ot)return this.logger.error("Local app not found for localId",Se),(0,h.of)(null);const{settingsSets:dn,targetSettings:yn,sliderSettings:At,...Vt}=sn?.profileAC,{settingsSets:Qt,targetSettings:Jt,sliderSettings:Zt,...nn}=sn?.profileDC;this.logger.info(`New state received for program ${Ot.shortName} ${Se} everChangedByGFE ${sn.everChangedByGFE}`),this.logger.info(`Profile AC settings for program ${Ot.shortName} ${Se}\n targetSettings ${yn?.length} resolutions ${At?.resolutions?.length}`,Vt),this.logger.info(`Profile DC settings for program ${Ot.shortName} ${Se}\n targetSettings ${Jt?.length} resolutions ${Zt?.resolutions?.length}`,nn);const Xt={...sn,selectedProgram:Object.assign({},Ot),translationData:fe?.translationData,currentSettingTweaks:fe?.currentSettingTweaks,stateInTransit:fe?.stateInTransit,lastQueriedTimeForNoSliderSettings:fe?.lastQueriedTimeForNoSliderSettings,waitForTimeout:fe?.waitForTimeout,currentSettingType:ye};if(Ne&&!le)Xt.opsTabState=k.eg.RecommendationsLoading;else{const[lt,Ue]=this.opsUtilsService.getOptimizationStatus(Xt);[Ot.optimizationStatusIcon,Ot.isOptimized]=[lt,Ue],[Xt.selectedProgram.optimizationStatusIcon,Xt.selectedProgram.isOptimized]=[lt,Ue]}return this.appStates.set(Se,Xt),Xt.selectedProgram.optimizationStatusIcon!==fe?.selectedProgram?.optimizationStatusIcon&&this.localAppsWithOpsStatusUpdated$.next(),(0,h.of)(Xt)}),(0,E.W)(sn=>(this.logger.error(`Error while getting application state for ${Xe||me?.localId}`,sn),(0,h.of)(null))))}getIsBelowMinSpec(me,le){let Xe=!1;const Se=this.opsUtilsService.isDCSettingSelected(me);return Xe=Se&&this.opsUtilsService.isOptimizedOrCustomized(me,Se?k.bF.DC:k.bF.AC)?!!le?.recommendationDC?.belowMinspec:!!le?.recommendationAC?.belowMinspec,Xe}getApplicationSettingsSpace(me,le){const Xe=me?.selectedProgram,Se=me?.currentSettingType,fe=this.opsUtilsService.isDCSettingSelected(me);if(!le){const Ne=fe?me?.profileDC:me?.profileAC,ye=Ne?.targetPosition;le=ye?ye.tweak:this.opsUtilsService.getRecommendedDisplayModeResolution(Ne?.sliderSettings)}return me.currentSettingTweaks=me.currentSettingTweaks??{},me.currentSettingTweaks[Se]=le,this.opsApiService.fetchApplicationSettingsSpace(Xe,le).pipe((0,T.M)(Ne=>{fe?(me.profileDC.settingsSets=Ne.settingsSets,me.profileDC.recommendation=Ne.recommendationDC):(me.profileAC.settingsSets=Ne.settingsSets,me.profileAC.recommendation=Ne.recommendationAC)}))}getOptimalSettings(me,le,Xe){return null==Xe&&(Xe=le?me?.recommendationDC?.recommendedIndex:me?.recommendationAC?.recommendedIndex),null==Xe?[]:me.settingsSets[Xe]}fetchTranslations(me,le){const Xe=this.appStates?.get(me);if(Xe?.translationData?.has(le))return this.logger.info("cached translation response for appid",me,"for locale",le),(0,h.of)(null);const Se=Xe?.selectedProgram?.shortName??null;return Se&&le?this.opsApiService.fetchTranslations(Se,le,Xe,me).pipe((0,r.s)(1),(0,E.W)(fe=>(this.logger.error("error while fetching translation",fe),(0,h.of)(null)))):(this.logger.error("error while fetch translation either shortName",Se,"or locale missing",le),(0,h.of)(null))}handleStateChangeNotifications(me){this.logger.info("Notification received for localId",me,this.opsDownloadNotifications?.size),this.opsDownloadNotifications.add(me);const le=this.priorityRequestQueue.isQueued(me);if(this.getSelectedProgramValue()?.localId===me)return le&&this.cancelProgramInQueue(me),void this.pushProgramToQueue(U.iX.High,me,!0,!1);le?this.logger.info("Ignoring notification as its already in queue for localId",me):this.pushProgramToQueue(U.iX.Normal,me,!0,!1)}handleProgramSelection(me,le){const Xe=me.localId;this.currentLocale=le,this.logger.info("Selected Program",me.shortName,Xe),this.setCurrentSettingType(Xe,k.bF.AC);const Se=this.appStates.get(Xe);this.updateStateInTransit(!1),this.selectedProgramOpsState$.next(Se),this.checkProgramInQueueAndPush(me,!1,!1,!0)}onProgramProcessed(me=null){const le=this.appsToProcess.size;me&&this.appsToProcess.delete(me),le>0&&0===this.appsToProcess.size&&this.allAppsProcessedSubject.next()}processApps(me){return this.logger.info("Processing app with localId",me[0]),(0,h.of)({localIdToRefresh:me[0],refreshState:me[1],refreshSettingsSpace:me[2]}).pipe((0,B.ZZ)(le=>{if(!le?.localIdToRefresh)return this.logger.error("Cannot find localId to refresh"),(0,h.of)(!1);const Xe=le.localIdToRefresh;this.logger.info("State fetch started for localId ",Xe);const Se=this.appStates.get(Xe),fe=this.getSelectedProgramValue(),Ne=fe.localId===Xe,ye=!!le?.refreshSettingsSpace;if(Ne){const Ot=le.refreshState;return this.logger.info("Refreshing OPS Settings with refresh state as",Ot,"with refreshSettingsSpace as",ye,"for program",fe.shortName),fe?.dlssOverrideNoOps?(this.logger.info("Not fetching OPS state as dlssOverrideNoOps is true",fe?.shortName,fe?.localId),(0,h.of)(!1)):this.refreshOpsSettings(fe,Ot,ye).pipe((0,E.W)(sn=>(this.logger.error("Error Refreshing OPS Settings",sn),(0,h.of)(!1))))}return this.logger.info("Calling ApplicationState for localId ",Xe),Se?.selectedProgram?.dlssOverrideNoOps?(this.logger.info("OPS state not fetched as dlssOverrideNoOps is true",fe?.shortName,fe?.localId),(0,h.of)(!1)):this.getApplicationState(Se?.selectedProgram,!0,Xe).pipe((0,g.n)(Ot=>this.fetchTranslations(Ot.selectedProgram.localId,this.localeService.getLocale())),(0,E.W)(Ot=>(this.logger.error("Error fetching GetApplicationState for cached state",Ot),(0,h.of)(!1))))}),(0,T.M)(()=>{this.onProgramProcessed(me[0]),this.loadingSpinner.triggerLoadingIndicator(!1),this.opsLoading$.next(!1)}),(0,R.p)(Boolean),(0,E.W)(le=>(this.logger.error("Error while processing apps",le),this.opsLoading$.next(!1),(0,h.of)(!1))))}pushProgramToQueue(me,le,Xe,Se){this.logger.info(`Pushing localId to queue with ${me}`,le,Xe),this.priorityRequestQueue.queue(me,!1,this.processApps.bind(this),le,Xe,Se).subscribe()}cancelProgramInQueue(me){this.logger.info("localId already found, cancelling request for localId",me),this.priorityRequestQueue.cancel(me)}checkProgramInQueueAndPush(me,le,Xe,Se=!1){const fe=me.localId,Ne=me.shortName,ye=this.priorityRequestQueue.isQueued(fe);this.logger.info(`Selected Program already queued ${ye}`,Ne,fe),ye?this.cancelProgramInQueue(fe):this.logger.info("Adding to queue for selected program ",fe,Ne),Se||this.appsToProcess.add(fe),this.pushProgramToQueue(U.iX.High,fe,le,Xe)}preFillOpsState(){return this.opsApiService.getOpsDBState().pipe((0,T.M)(me=>{if(this.logger.info("OPS state received from db ",me?.size),me?.size>0)for(const[le,Xe]of me.entries())Xe&&(this.logger.info("Setting OPS cached state for localId ",le),this.appStates.set(le,{...Xe.state,currentSettingTweaks:Xe.currentSettingTweaks,translationData:Xe.translationData}))}),(0,u.u)(!0),(0,E.W)(me=>(this.logger.error("Error occurred while getting OPS state from db ",me),(0,h.of)(!1))),(0,r.s)(1))}fetchOpsCompatibility(){return this.appConfig?.featureEnablement?.ops?.enabled?this.gfServicesService.callOpsCompatibility(ae).pipe((0,v.T)(me=>(this.logger.info("Ops compatibility response",me),me.body?.criteria?.overallState)),(0,E.W)(me=>(this.logger.error("ops compatibility failed with error",me),(0,h.of)(!1)))):(0,h.of)(!1)}static{this.\u0275fac=function(le){return new(le||be)(te.KVO(U.J6),te.KVO(ze),te.KVO(Ke.M),te.KVO(Ve.H),te.KVO(it.Vk),te.KVO($e.c),te.KVO(U.iH),te.KVO(dt.I),te.KVO(Pe.n),te.KVO(J.f),te.KVO(vt.c$),te.KVO(et),te.KVO(se.C))}}static{this.\u0275prov=te.jDH({token:be,factory:be.\u0275fac,providedIn:"root"})}}return be})()},6538:(St,z,s)=>{"use strict";s.d(z,{$2:()=>P,$7:()=>n,Q9:()=>g,Rw:()=>u,ZU:()=>h,a_:()=>m,bF:()=>v,c2:()=>A,eg:()=>r,gl:()=>E,iE:()=>M,iS:()=>S,jY:()=>l,lq:()=>C,nQ:()=>x,p7:()=>T});var i=s(20924),n=i.Or.Nvapp.Localgames.ApplicationPowerMode,h=i.Or.Nvapp.Localgames.Type,C=i.Or.Nvapp.Localgames.OptimizationState;const S=i.Ts.Nvapp.Localgames.GetApplicationState,M=i.Ts.Nvapp.Localgames.GetSettingsSpace,P=i.Ts.Nvapp.Localgames.SetTargetSettings,x=i.Ts.Nvapp.Localgames.RegisterApplicationStateChangedNotifications,A=i.Ts.Nvapp.Localgames.GetSettingsTranslations,g=i.Ts.Nvapp.Localgames.GetAutoOptimizeEnabled,m=i.Ts.Nvapp.Localgames.SetAutoOptimizeEnabled;var l=function(R){return R.DisplayMode="Display Mode",R.Resolution="Resolution",R}(l||{}),r=function(R){return R.UnInitialized="UNINITIALIZED",R.OptimalDcNotAvailable="OPTIMAL_DC_NOT_AVAILABLE",R.OptimalAcNotAvailable="OPTIMAL_AC_NOT_AVAILABLE",R.CurrentDcNotAvailable="CURRENT_DC_NOT_AVAILABLE",R.CurrentAcNotAvailable="CURRENT_AC_NOT_AVAILABLE",R.RecommendationsLoading="RECOMMENDATIONS_LOADING",R}(r||{}),u=function(R){return R.ProgramUnsupported="ProgramUnsupported",R.SystemUnsupported="SystemUnsupported",R.DlssOverrideSupportedOpsNotSupported="DlssOverrideSupportedOpsNotSupported",R}(u||{}),v=function(R){return R.AC="AC",R.DC="DC",R}(v||{}),E=function(R){return R[R.HyperSample=0]="HyperSample",R[R.Wide_16_9=1]="Wide_16_9",R[R.Wide_16_10=2]="Wide_16_10",R[R.Standard_4_3=3]="Standard_4_3",R[R.Standard_5_4=4]="Standard_5_4",R[R.Custom=5]="Custom",R}(E||{}),T=function(R){return R.Unknown="alert_circle",R.Optimized="check_circle",R.UnOptimized="remove_circle",R}(T||{})},30843:(St,z,s)=>{"use strict";s.d(z,{t:()=>x});var i=s(76614),n=s(36466),h=s(93964),C=s(11001),S=s(58527),M=s(92602),P=s(61904);let x=(()=>{class A{constructor(m,l){this.overlay=l,this.overlayRef=null,this.logger=m.getLogger("OverlayLoadingSpinnerService"),this.loadingSpinner=new C.k,this.listenToLoadingSpinner()}setOverlayIndicatorParams(m){this.overlaySpinnerParams=m}listenToLoadingSpinner(){this.loadingSpinner.getLoadingSpinner().subscribe(m=>{m?this.showOverlaySpinner():this.hideOverlaySpinner()},n.l)}showOverlaySpinner(){if(this.overlayRef)return;this.logger.info("Showing fullpage overlay spinner"),this.overlayRef=this.overlay.create({positionStrategy:this.overlay.position().global().centerHorizontally().centerVertically(),hasBackdrop:!0,backdropClass:"cdk-overlay-dark-backdrop"});const m=new i.A8(h.Q),l=this.overlayRef.attach(m);l.instance.overlaySpinner=!0,l.instance.assistiveText=this.overlaySpinnerParams?.assistiveText,l.instance.diameter=this.overlaySpinnerParams?.diameter}hideOverlaySpinner(){this.logger.info("hiding fullpage overlay spinner"),this.overlayRef&&(this.overlayRef.detach(),this.overlayRef=null)}triggerOverlaySpinner(m,l=3e3){this.logger.info("triggerOverlaySpinner: ",m),this.loadingSpinner.triggerLoadingIndicator(m,l)}static{this.\u0275fac=function(l){return new(l||A)(S.KVO(M.J6),S.KVO(P.hJ))}}static{this.\u0275prov=S.jDH({token:A,factory:A.\u0275fac,providedIn:"root"})}}return A})()},38132:(St,z,s)=>{"use strict";s.d(z,{s:()=>Q});var i=s(26513),n=s(80583),h=s(12532),C=s(35146),S=s(43848),M=s(36466),P=s(72147),x=s(65706),A=s(83915),g=s(14714),m=s(91384),l=s(10174),r=s(20924),u=s(69568),v=s(25864),E=s(1242),T=s(148),R=s(62668),B=s(83128),U=s(58527),Y=s(92602),ae=s(26986),G=s(96542),k=s(96306),X=s(86088),q=s(37898);let Q=(()=>{class ce{constructor(Ee,it,Fe,Qe,ct,Ge,nt,Je){this.loggingService=Ee,this.keyboardMappingService=it,this.translateService=Fe,this.errorHandlerService=Qe,this.nvAppBridgeService=ct,this.nvAppTelemetryService=Ge,this.performanceMeasure=nt,this.localeService=Je,this.overlayState$=new i.t(null),this.gAssistState$=new i.t(null),this.refreshToggleValues$=new n.B7,this._isMediaFoundationInstalled=!1,this.logger=this.loggingService.getLogger("nvapp/OverlayService"),this.listenToLocaleChange()}getOverlayState(){return this.overlayState$.asObservable()}getGAssistState(){return this.gAssistState$.asObservable()}isMediaFoundationInstalled(){return this._isMediaFoundationInstalled}refreshToggleValues(){return this.refreshToggleValues$.asObservable()}triggerToggleValueRefresh(){this.refreshToggleValues$.next(this.overlayState$.getValue()?.feature?.toggle?.value)}initializeOverlayToggle(){this.overlayState$.pipe((0,P.n)(Ee=>void 0===Ee?.feature?.toggle?.value?(this.logger.info("Clean Install, Enabling Overlay in NvApp"),this.toggleOverlay(!0)):h.w),(0,x.s)(1)).subscribe(Ee=>this.logger.info("Initialized overlay state"),Ee=>this.logger.error("Error occurred while initializing enabling overlay ",Ee))}getShareFeature(Ee,it){const Fe={language:it};return(0,C.yU)((0,S.of)(Ee),this.nvAppBridgeService.executeCommandWithTimeout(r.Ts.Nvapp.Nvigoutil.GetShadowPlaySupported,Fe),this.nvAppBridgeService.executeCommandWithTimeout(r.Ts.Nvapp.Nvigoutil.GetShadowPlayStatus),this.fetchOverlayHotKey(),this.fetchGAssistHotKey()).pipe((0,A.T)(([Qe,ct,Ge,nt,Je])=>{this.logger.info(`shadowPlaySupport ${ct.MediaPack} and shadowPlayStatus ${Ge?.shadowPlayStatus}`),this._isMediaFoundationInstalled=ct.MediaPack;const ze="true"===Qe.overallState,Ke=Ge?.shadowPlayStatus===u.nX.unknown?void 0:Ge?.shadowPlayStatus===u.nX.enabled;this.hotKey=this.keyboardMappingService.shortcutToStr(nt?.keys),this.gAssistHotKey=this.keyboardMappingService.shortcutToStr(Je?.keys);const Ve={...Qe,overallState:ze,toggle:{visible:ze,value:Ke},openStateDescriptions:[],hotKey:this.hotKey,isReady:this._isMediaFoundationInstalled,errorInfo:this._isMediaFoundationInstalled?[]:["preferences.featureReadiness.share.mediaPackInstallErrorInfo"]},$e={...Qe,overallState:ze,toggle:{visible:ze,value:Ke},openStateDescriptions:[],hotKey:this.gAssistHotKey,isReady:this._isMediaFoundationInstalled,errorInfo:this._isMediaFoundationInstalled?[]:["preferences.featureReadiness.share.mediaPackInstallErrorInfo"]};return this.logger.info("initialized overlay and g-assist feature state ",Ve),this.overlayState$.next({description:this.getOverlayDescription(Ke,this.hotKey),feature:Ve}),this.gAssistState$.next({description:this.getGAssistDescription(Ke,this.gAssistHotKey),feature:$e}),Ve}),(0,g.W)(Qe=>(this.logger.error("Error while getting share feature",Qe),(Qe?.code===T.Qq||Qe instanceof R.n)&&(Ee.isPluginError=!0),Ee.toggle.disabled=!0,(0,S.of)(Ee))))}toggleOverlay(Ee){if(this.logger.info("Initiating IGO Toggle ",Ee),!this.overlayState$.getValue()?.feature?.overallState)return this.showToastMessage("layout.features.overlay.unableToOpenOverlay",!1).pipe((0,x.s)(1)).subscribe(M.l,Ge=>this.logger.error("Error occurred while showing toast message",Ge)),(0,S.of)(void 0);const Fe=Ee?B.fR.OverlayEnable:B.fR.OverlayDisable;this.performanceMeasure.markNvAppPerformanceMarkers([B.mM.NvAppOverlayUpdateStart],Fe);let Qe=Ee?v.FU.Enabling.toString():v.FU.Disabling.toString();return this.updateOverlayState(Ee,Qe),this.nvAppBridgeService.executeWithPluginStatusTelemetry(r.Ts.Nvapp.Nvigoutil.ToggleIGO,{toggle:Ee}).pipe((0,m.M)(Ge=>{this.logger.info("IGO Toggle Response",Ge),this.nvAppTelemetryService.sendSettingChangeEvent(E.XB,Ee?E.GC.Enabled:E.GC.Disabled,E.ih.System,!0),this.performanceMeasure.markNvAppPerformanceMarkers([B.mM.NvAppOverlayUpdateEnd],Fe),this.refreshToggleValues$.next(Ee),this.updateOverlayState(Ee,this.getOverlayDescription(Ee)),this.updateGAssistState(Ee,this.getGAssistDescription(Ee))}),(0,g.W)(Ge=>(this.logger.error("Error occurred while toggling IGO",Ge),this.nvAppTelemetryService.sendSettingChangeEvent(E.XB,Ee?E.GC.Enabled:E.GC.Disabled,E.ih.System,!0,Ge?.message),this.performanceMeasure.markNvAppPerformanceMarkers([B.mM.NvAppOverlayUpdateEnd],Fe),Qe=this.getOverlayDescription(Ee=!Ee),this.updateOverlayState(Ee,Qe),this.updateGAssistState(Ee,this.getGAssistDescription(Ee)),this.showToastMessage("layout.features.overlay.unableToEnableOverlay",!1))))}getOverlayEnabledString(Ee){const it=this.overlayState$.getValue();return this.translateService.instant(v.FU.HotKey,{hotKey:Ee??it?.feature?.hotKey})}getGAssistEnabledString(Ee){const it=this.gAssistState$.getValue();return this.translateService.instant(v.Pm.HotKey,{hotKey:Ee??it?.feature?.hotKey})}openIgo(Ee){return this.nvAppBridgeService.executeWithPluginStatusTelemetry(r.Ts.Nvapp.Nvigoutil.OpenIGO,{openSettings:Ee}).pipe((0,l.u)(!0),(0,g.W)(Fe=>(this.logger.error("Error occurred while opening overlay ",Fe),this.showToastMessage(Ee?"layout.features.overlay.unableToOpenGAssist":"layout.features.overlay.unableToOpenOverlay",!1))))}launchGAssist(){return this.getOverlayState().pipe((0,x.s)(1),(0,P.n)(Ee=>Ee?.feature?.overallState&&Ee?.feature?.toggle?.value?(this.logger.info("Opening IGO"),this.openIgo(!0)):this.toggleOverlay(!0).pipe((0,P.n)(()=>(this.logger.info("IGO was enabled, opening IGO"),this.showToastMessage("layout.features.overlay.enableWithGAssist",!1))),(0,P.n)(()=>this.openIgo(!0)))),(0,x.s)(1))}setGAssistInstallStatus(Ee){const it={installed:Ee};return this.logger.info("SetGAssistInstall status as",Ee),this.nvAppBridgeService.executeWithPluginStatusTelemetry(r.Ts.Nvapp.Nvigoutil.SetGAssistInstall,it).pipe((0,m.M)(()=>{this.logger.info("SetGAssistInstall success")}),(0,l.u)(!0),(0,g.W)(Fe=>(this.logger.error("Error occurred while setting GAssist install status ",Fe),(0,S.of)(!1))))}fetchOverlayHotKey(){return this.nvAppBridgeService.executeWithPluginStatusTelemetry(r.Ts.Nvapp.Nvigoutil.GetHotkeyShortcut,{hotkey:u.II.OpenIGO})}fetchGAssistHotKey(){return this.nvAppBridgeService.executeWithPluginStatusTelemetry(r.Ts.Nvapp.Nvigoutil.GetHotkeyShortcut,{hotkey:u.II.OpenChatUI})}updateOverlayState(Ee,it){const Fe=this.overlayState$.getValue();Fe.feature.toggle.value=Ee,Fe.description=it,this.overlayState$.next(Fe)}updateGAssistState(Ee,it){const Fe=this.gAssistState$.getValue();Fe.feature.toggle.value=Ee,Fe.description=it,this.gAssistState$.next(Fe)}getOverlayDescription(Ee,it){return Ee?this.getOverlayEnabledString(it):v.FU.ClickToEnable}getGAssistDescription(Ee,it){return Ee?this.getGAssistEnabledString(it):v.Pm.ClickToEnable}showToastMessage(Ee,it=!1,Fe=""){return this.errorHandlerService.showToastMessage({text:Ee,translated:it},{text:Fe,translated:it})}listenToLocaleChange(){this.localeService.localeChanged.subscribe(Ee=>{this.logger.info("locale has changed, update overlay feature");const it=this.overlayState$.getValue(),Fe=this.gAssistState$.getValue();it&&(it.description=this.getOverlayDescription(it?.feature?.toggle?.value,this.hotKey),this.overlayState$.next(it)),Fe&&(Fe.description=this.getGAssistDescription(Fe?.feature?.toggle?.value,this.gAssistHotKey),this.gAssistState$.next(Fe))},Ee=>{this.logger.error("Error while updating overlay and g-assist features after language change",Ee)})}static{this.\u0275fac=function(it){return new(it||ce)(U.KVO(Y.J6),U.KVO(ae.j),U.KVO(G.c$),U.KVO(k.c),U.KVO(X.S),U.KVO(E.AY),U.KVO(q.M),U.KVO(Y.iH))}}static{this.\u0275prov=U.jDH({token:ce,factory:ce.\u0275fac,providedIn:"root"})}}return ce})()},73370:(St,z,s)=>{"use strict";s.d(z,{X:()=>m});var i=s(14714),n=s(91384),h=s(80583),C=s(43848),S=s(20924),M=s(26875),x=s(58527),A=s(14709),g=s(92602);let m=(()=>{class l{constructor(u,v,E){this.appConfig=u,this.bridgeService=v,this.logger=E.getLogger("PiplLocaleConfigService"),this.piplLocalizationConfigUpdated=new h.B7,this.registerForlocaleChangeNotification()}loadLocalizationConfigOverrides(){return this.getlocaleOverride().pipe((0,i.W)(u=>(this.logger.error("Failed to overrides",u),(0,C.of)(null))))}getlocaleOverride(){return this.bridgeService.executeCommand(S.Ts.Common.Nvlocalizedconfig.GetLocalizationData).pipe((0,n.M)(u=>{this.logger.info("PIPL config is",u)}))}registerForlocaleChangeNotification(){let u;this.bridgeService.executeCommand(S.Ts.Common.Nvlocalizedconfig.LocalizationDataChangeNotification).pipe((0,n.M)(v=>{this.logger.info("Received Localization Data Change Notification "),u=this.appConfig.get(),this.appConfig.setPiplLocalizationConfigOverrides(v);const E=this.appConfig.get(),T=function P(l,r){return function u(v,E){return(0,M.transform)(v,function(T,R,B){(0,M.isEqual)(R,E[B])||(T[B]=(0,M.isObject)(R)&&(0,M.isObject)(E[B])?u(R,E[B]):R)})}(r,l)}(u,E);this.piplLocalizationConfigUpdated.next(T)}),(0,i.W)(v=>(this.logger.error("Failed to get overrides",v),(0,C.of)(!1)))).subscribe()}get piplLocalizationConfigUpdated$(){return this.piplLocalizationConfigUpdated.asObservable()}static{this.\u0275fac=function(v){return new(v||l)(x.KVO(A.oO),x.KVO(g.NZ),x.KVO(g.J6))}}static{this.\u0275prov=x.jDH({token:l,factory:l.\u0275fac,providedIn:"root"})}}return l})()},70279:(St,z,s)=>{"use strict";s.d(z,{Gl:()=>n.Gl,Q5:()=>i.Q,lp:()=>n.lp,r7:()=>n.r7});var i=s(46058),n=s(90279)},46058:(St,z,s)=>{"use strict";s.d(z,{Q:()=>A});var i=s(80583),n=s(4208),h=s(65706),C=s(83915),S=s(58527),M=s(92602),P=s(47847),x=s(73370);let A=(()=>{class g{constructor(l,r,u,v,E){this.localeService=r,this.windowService=u,this.appConfig=v,this.piplLocaleConfigService=E,this.unsubscribe$=new i.B7,this.logger=l.getLogger("nvapp/RedirectService"),this.registerForPiplLocalizationConfigUpdateEvent()}redirectTo(l){this.redirectUrlSub&&this.redirectUrlSub.unsubscribe(),this.redirectUrlSub=this.getRedirectUrl(l).pipe((0,n.Q)(this.unsubscribe$)).subscribe(r=>{this.logger.info("Redirecting to",r),this.windowService.window.open(r,"_blank")},r=>{this.logger.error(`Error while redirecting for page ${l}`,r)})}getRedirectUrl(l){return this.localeService.localeChanged.pipe((0,h.s)(1)).pipe((0,C.T)(r=>`${this.appConfig.redirect?.serverUrl}${r}&page=${l}`))}ngOnDestroy(){this.unsubscribe$.next(),this.unsubscribe$.complete()}registerForPiplLocalizationConfigUpdateEvent(){this.piplLocaleConfigService.piplLocalizationConfigUpdated$.subscribe(l=>{l.redirect&&l.redirect.serverUrl&&(this.appConfig.redirect.serverUrl=l.redirect.serverUrl)})}static{this.\u0275fac=function(r){return new(r||g)(S.KVO(M.J6),S.KVO(M.iH),S.KVO(M.s7),S.KVO(P.Vk),S.KVO(x.X))}}static{this.\u0275prov=S.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}}return g})()},90279:(St,z,s)=>{"use strict";s.d(z,{Gl:()=>i,lp:()=>h,r7:()=>n});var i=function(C){return C.PC="pc",C}(i||{}),n=function(C){return C.AccountManagementSSO="nvidia_account_management_default",C.NvAppAccountManagementSSO="nvidia_account_management_default",C.TermsConditions="nvapp_terms_of_use",C.AccountTerms="nvapp_nvidia_account_tos",C.OssLicenses="nvapp_oss",C.PrivacyPolicy="nvapp_privacy_policy",C.PrivacyPortal="nvapp_privacy_portal",C.SupportedGamesApps="nvapp_supported_games_apps",C.SupportedProvisApps="nvapp_supported_provis_apps",C.SystemReq="nvapp_system_reqs",C.NvAppDriverPreferenceLearnMore="nvapp_driver_preference_learn_more ",C.NvAppDriverUpdateStrategyLearnMore="nvapp_driver_update_strategy_learn_more",C.CookiePolicy="nvapp_nvidia_cookie_policy",C.NvappMainPage="nvapp_main_page",C.NvappRedeemInstructions="nvapp_redeem_instructions",C.gSyncDisplays="nvapp_gsync_displays",C.VideoRtx="nvapp_video_rtx",C}(n||{});const h={[n.NvAppAccountManagementSSO]:"account.nvidia.com"}},3634:(St,z,s)=>{"use strict";s.d(z,{w:()=>Je});var i=s(36466),n=s(65706),h=s(91384),C=s(83915),S=s(72147),M=s(8619),P=s(35965),x=s(1242);const g={name:"nvappReleaseHighlightsHtml",classPath:P.cK.services,clientPath:P.bq.GfeClient,endpointPath:"/getStyledClientReleaseHighlightsHtml",method:P.Xt.Get,paramMask:["cNm","cmID","gcV","lg","gLg","go","cID","dIDa","sM","osC","osB","is6","GFPV","gIsB","iLp","IsQ","isO","isSLI","cSR","uCst","jTK","sfUid","sfUid-Null"],reportRequestData:{originalService:x.Uu.Aem,serviceUseCase:x.OO.GetReleaseHighlights}};var m=s(58527),l=s(92602),r=s(26537),u=s(74150),v=s(61142),E=s(60990),T=s(40514),R=s(47973),B=s(29370),U=s(28139),Y=s(93964),ae=s(96542),G=s(33328);const k=(ze,Ke)=>({"modal-loader-content":ze,"modal-error-content":Ke});function X(ze,Ke){if(1&ze&&(m.j41(0,"span",9),m.EFF(1),m.nI1(2,"translate"),m.k0s()),2&ze){const Ve=m.XpG(2);m.R7$(),m.JRh(m.bMT(2,1,Ve.articleData.subTitle))}}function q(ze,Ke){if(1&ze&&(m.j41(0,"div",6)(1,"span",7),m.EFF(2),m.nI1(3,"translate"),m.k0s(),m.DNE(4,X,3,3,"span",8),m.k0s()),2&ze){const Ve=m.XpG();m.R7$(2),m.JRh(m.bMT(3,2,Ve.articleData.title)),m.R7$(2),m.Y8G("ngIf",Ve.articleData.subTitle)}}function Q(ze,Ke){1&ze&&m.nrm(0,"nv-app-page-load-spinner")}function ce(ze,Ke){1&ze&&(m.j41(0,"div",10),m.nrm(1,"mat-icon",11)(2,"p",12),m.nI1(3,"translate"),m.nI1(4,"trustAsHtml"),m.k0s()),2&ze&&(m.R7$(2),m.Y8G("innerHTML",m.bMT(4,3,m.bMT(3,1,"common.noInformationAvailable")),m.npT))}function te(ze,Ke){if(1&ze){const Ve=m.RV6();m.j41(0,"div",13),m.nI1(1,"trustAsHtml"),m.bIt("dragstart",function(dt){m.eBV(Ve);const Pe=m.XpG();return m.Njj(Pe.preventDrag(dt))}),m.k0s()}if(2&ze){const Ve=m.XpG();m.Y8G("innerHTML",m.bMT(1,1,Ve.articleData.body),m.npT)}}function Ee(ze,Ke){if(1&ze){const Ve=m.RV6();m.j41(0,"div",14)(1,"button",15),m.bIt("click",function(){m.eBV(Ve);const dt=m.XpG();return m.Njj(dt.close())}),m.EFF(2),m.nI1(3,"translate"),m.k0s()()}2&ze&&(m.R7$(2),m.SpI(" ",m.bMT(3,1,"common.close")," "))}let it=(()=>{class ze{constructor(Ve,$e,dt){this.loggingService=Ve,this.dialogRef=$e,this.sanitizer=dt,this.getArticleContent=null,this.autoCloseOnError=!0,this.showLoader=!1,this.articleData=null,this.error=!1,this.logger=this.loggingService.getLogger("nvapp/InAppReleaseHighlightsModalComponent")}ngOnInit(){this.getArticleContent?(this.showLoader=!0,this.dialogRef.addPanelClass(["info-modal-article-loading",this.articleData?.panelClass]),this.articleContentSubscription=this.getArticleContent().subscribe(Ve=>{if(this.showLoader=!1,this.dialogRef.removePanelClass(["info-modal-article-loading","info-modal-article-error",this.articleData?.panelClass]),Ve&&Ve.body){let $e=document?.createElement("div");$e.innerHTML=Ve.body,$e.querySelectorAll("img").forEach(dt=>dt.setAttribute("loading","lazy")),Ve.body=$e.innerHTML,this.articleData=Ve,$e=null}else this.error=!0,this.logger.error("get article returned null")},Ve=>{this.logger.error("failed to get article content with error",Ve),this.showLoader=!1,this.dialogRef.addPanelClass(["info-modal-article-error",this.articleData?.panelClass]),this.error=!0})):this.logger.error("Article content not available")}preventDrag(Ve){Ve.preventDefault(),Ve.stopImmediatePropagation()}close(){this.dialogRef.close()}ngOnDestroy(){this.articleContentSubscription?.unsubscribe()}static{this.\u0275fac=function($e){return new($e||ze)(m.rXU(l.J6),m.rXU(r.CP),m.rXU(u.up))}}static{this.\u0275cmp=m.VBU({type:ze,selectors:[["nv-app-in-app-release-highlights-modal"]],inputs:{getArticleContent:"getArticleContent",autoCloseOnError:"autoCloseOnError"},decls:6,vars:9,consts:[["mat-dialog-title","",4,"ngIf"],[3,"ngClass"],[4,"ngIf"],["class","error-info-container font-body2",4,"ngIf"],["draggable","false","class","mat-primary mat-hue-2 article-content",3,"innerHTML","dragstart",4,"ngIf"],["class","modal-actions","mat-dialog-actions","",4,"ngIf"],["mat-dialog-title",""],[1,"font-header6"],["class","font-body2 font-color-tertiary",4,"ngIf"],[1,"font-body2","font-color-tertiary"],[1,"error-info-container","font-body2"],["svgIcon","info",1,"material-icons","error-info-icon"],[1,"error-info",3,"innerHTML"],["draggable","false",1,"mat-primary","mat-hue-2","article-content",3,"dragstart","innerHTML"],["mat-dialog-actions","",1,"modal-actions"],["mat-button","",1,"hig-button","font-button2","modal-close-action",3,"click"]],template:function($e,dt){1&$e&&(m.DNE(0,q,5,4,"div",0),m.j41(1,"mat-dialog-content",1),m.DNE(2,Q,1,0,"nv-app-page-load-spinner",2)(3,ce,5,5,"div",3)(4,te,2,3,"div",4),m.k0s(),m.DNE(5,Ee,4,3,"div",5)),2&$e&&(m.Y8G("ngIf",dt.articleData),m.R7$(),m.Y8G("ngClass",m.l_i(6,k,dt.showLoader,dt.error)),m.R7$(),m.Y8G("ngIf",dt.showLoader),m.R7$(),m.Y8G("ngIf",dt.error),m.R7$(),m.Y8G("ngIf",null==dt.articleData?null:dt.articleData.body),m.R7$(),m.Y8G("ngIf",!dt.showLoader&&(dt.articleData||dt.error)))},dependencies:[v.YU,v.bT,E.r,T.e,R.iV,B.An,r.BI,r.Yi,r.E7,U.PW,Y.Q,ae.D9,G.O],styles:['.isRtl[_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{transform:scaleX(-1)}html[dir=rtl][_ngcontent-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{--dummy: 0;transform:scaleX(-1)}.hotkey-border[_ngcontent-%COMP%]{border:1px solid #ffffff;padding:4px 8px;font-weight:500;line-height:32px;margin:4px}@font-face{font-display:swap;font-family:NVIDIA;font-style:normal;font-weight:400;src:url(assets/hashed/NVIDIASans_W_Rg.33fb51adcc625f4e.woff2) format("woff2")}@font-face{font-display:swap;font-family:NVIDIA;font-style:normal;font-weight:500;src:url(assets/hashed/NVIDIASans_W_Md.14ea224b997bf6e0.woff2) format("woff2")}@font-face{font-display:swap;font-family:NVIDIA;font-style:normal;font-weight:700;src:url(assets/hashed/NVIDIASans_W_Bd.5aafff8b08f9a971.woff2) format("woff2")}.font-header1[_ngcontent-%COMP%]{--font-header-font-size: 96px;--font-header-line-height: 128px;font-family:NVIDIA,sans-serif;color:var(--hig-ui-text-primary-color);font-style:normal;text-transform:none;font-size:var(--font-header-font-size);line-height:var(--font-header-line-height);letter-spacing:0;font-weight:500}.tv-view[_ngcontent-%COMP%] .font-header1[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .font-header1[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .font-header1[_ngcontent-%COMP%]{--font-header-font-size: 192px;--font-header-line-height: 256px}.font-header2[_ngcontent-%COMP%]{--font-header-font-size: 60px;--font-header-line-height: 80px;font-family:NVIDIA,sans-serif;color:var(--hig-ui-text-primary-color);font-style:normal;text-transform:none;font-size:var(--font-header-font-size);line-height:var(--font-header-line-height);letter-spacing:0;font-weight:700}.tv-view[_ngcontent-%COMP%] .font-header2[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .font-header2[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .font-header2[_ngcontent-%COMP%]{--font-header-font-size: 120px;--font-header-line-height: 160px}.font-header3[_ngcontent-%COMP%]{--font-header-font-size: 48px;--font-header-line-height: 64px;font-family:NVIDIA,sans-serif;color:var(--hig-ui-text-primary-color);font-style:normal;text-transform:none;font-size:var(--font-header-font-size);line-height:var(--font-header-line-height);letter-spacing:0;font-weight:700}.tv-view[_ngcontent-%COMP%] .font-header3[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .font-header3[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .font-header3[_ngcontent-%COMP%]{--font-header-font-size: 96px;--font-header-line-height: 128px}.font-header4[_ngcontent-%COMP%]{--font-header-font-size: 34px;--font-header-line-height: 48px;font-family:NVIDIA,sans-serif;color:var(--hig-ui-text-primary-color);font-style:normal;text-transform:none;font-size:var(--font-header-font-size);line-height:var(--font-header-line-height);letter-spacing:0;font-weight:700}.tv-view[_ngcontent-%COMP%] .font-header4[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .font-header4[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .font-header4[_ngcontent-%COMP%]{--font-header-font-size: 68px;--font-header-line-height: 96px}.font-header5[_ngcontent-%COMP%]{--font-header-font-size: 24px;--font-header-line-height: 32px;font-family:NVIDIA,sans-serif;color:var(--hig-ui-text-primary-color);font-style:normal;text-transform:none;font-size:var(--font-header-font-size);line-height:var(--font-header-line-height);letter-spacing:0;font-weight:500}.tv-view[_ngcontent-%COMP%] .font-header5[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .font-header5[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .font-header5[_ngcontent-%COMP%]{--font-header-font-size: 48px;--font-header-line-height: 64px}.font-header6[_ngcontent-%COMP%]{--font-header-font-size: 20px;--font-header-line-height: 28px;font-family:NVIDIA,sans-serif;color:var(--hig-ui-text-primary-color);font-style:normal;text-transform:none;font-size:var(--font-header-font-size);line-height:var(--font-header-line-height);letter-spacing:0;font-weight:500}.tv-view[_ngcontent-%COMP%] .font-header6[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .font-header6[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .font-header6[_ngcontent-%COMP%]{--font-header-font-size: 40px;--font-header-line-height: 56px}.font-header7[_ngcontent-%COMP%]{--font-header-font-size: 14px;--font-header-line-height: 20px;font-family:NVIDIA,sans-serif;color:var(--hig-ui-text-primary-color);font-style:normal;text-transform:none;font-size:var(--font-header-font-size);line-height:var(--font-header-line-height);letter-spacing:0;font-weight:500}.tv-view[_ngcontent-%COMP%] .font-header7[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .font-header7[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .font-header7[_ngcontent-%COMP%]{--font-header-font-size: 28px;--font-header-line-height: 40px}.font-sub0[_ngcontent-%COMP%]{--font-sub-shared-font-size: 18px;--font-sub-shared-line-height: 28px;font-family:NVIDIA,sans-serif;color:var(--hig-ui-text-primary-color);font-weight:500;font-style:normal;text-transform:none;font-size:var(--font-sub-shared-font-size);line-height:var(--font-sub-shared-line-height);letter-spacing:0}.tv-view[_ngcontent-%COMP%] .font-sub0[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .font-sub0[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .font-sub0[_ngcontent-%COMP%]{--font-sub-shared-font-size: 36px;--font-sub-shared-line-height: 56px}.font-sub1[_ngcontent-%COMP%]{--font-sub-shared-font-size: 16px;--font-sub-shared-line-height: 24px;font-family:NVIDIA,sans-serif;color:var(--hig-ui-text-primary-color);font-weight:500;font-style:normal;text-transform:none;font-size:var(--font-sub-shared-font-size);line-height:var(--font-sub-shared-line-height);letter-spacing:0}.tv-view[_ngcontent-%COMP%] .font-sub1[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .font-sub1[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .font-sub1[_ngcontent-%COMP%]{--font-sub-shared-font-size: 32px;--font-sub-shared-line-height: 48px}.font-sub2[_ngcontent-%COMP%]{--font-sub-shared-font-size: 14px;--font-sub-shared-line-height: 20px;font-family:NVIDIA,sans-serif;color:var(--hig-ui-text-primary-color);font-weight:500;font-style:normal;text-transform:none;font-size:var(--font-sub-shared-font-size);line-height:var(--font-sub-shared-line-height);letter-spacing:0}.tv-view[_ngcontent-%COMP%] .font-sub2[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .font-sub2[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .font-sub2[_ngcontent-%COMP%]{--font-sub-shared-font-size: 28px;--font-sub-shared-line-height: 40px}.font-sub3[_ngcontent-%COMP%]{--font-sub-shared-font-size: 12px;--font-sub-shared-line-height: 16px;font-family:NVIDIA,sans-serif;color:var(--hig-ui-text-primary-color);font-weight:500;font-style:normal;text-transform:none;font-size:var(--font-sub-shared-font-size);line-height:var(--font-sub-shared-line-height);letter-spacing:0}.tv-view[_ngcontent-%COMP%] .font-sub3[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .font-sub3[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .font-sub3[_ngcontent-%COMP%]{--font-sub-shared-font-size: 24px;--font-sub-shared-line-height: 32px}.font-body0[_ngcontent-%COMP%]{--font-body-color: var(--hig-ui-text-secondary-color);--font-body-size: 18px;--font-body-line-height: 28px;font-family:NVIDIA,sans-serif;color:var(--font-body-color);font-weight:400;font-style:normal;text-transform:none;font-size:var(--font-body-size);line-height:var(--font-body-line-height);letter-spacing:0}.tv-view[_ngcontent-%COMP%] .font-body0[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .font-body0[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .font-body0[_ngcontent-%COMP%]{--font-body-size: 36px;--font-body-line-height: 56px;--font-body-color: rgba(255, 255, 255, .85)}.font-body1[_ngcontent-%COMP%]{--font-body-color: var(--hig-ui-text-secondary-color);--font-body-size: 16px;--font-body-line-height: 24px;font-family:NVIDIA,sans-serif;color:var(--font-body-color);font-weight:400;font-style:normal;text-transform:none;font-size:var(--font-body-size);line-height:var(--font-body-line-height);letter-spacing:0}.tv-view[_ngcontent-%COMP%] .font-body1[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .font-body1[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .font-body1[_ngcontent-%COMP%]{--font-body-size: 32px;--font-body-line-height: 48px;--font-body-color: rgba(255, 255, 255, .85)}.font-body2[_ngcontent-%COMP%]{--font-body-color: var(--hig-ui-text-secondary-color);--font-body-size: 14px;--font-body-line-height: 20px;font-family:NVIDIA,sans-serif;color:var(--font-body-color);font-weight:400;font-style:normal;text-transform:none;font-size:var(--font-body-size);line-height:var(--font-body-line-height);letter-spacing:0}.tv-view[_ngcontent-%COMP%] .font-body2[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .font-body2[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .font-body2[_ngcontent-%COMP%]{--font-body-size: 28px;--font-body-line-height: 40px;--font-body-color: rgba(255, 255, 255, .85)}.font-body3[_ngcontent-%COMP%]{--font-body-color: var(--hig-ui-text-secondary-color);--font-body-size: 12px;--font-body-line-height: 16px;font-family:NVIDIA,sans-serif;color:var(--font-body-color);font-weight:400;font-style:normal;text-transform:none;font-size:var(--font-body-size);line-height:var(--font-body-line-height);letter-spacing:0}.tv-view[_ngcontent-%COMP%] .font-body3[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .font-body3[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .font-body3[_ngcontent-%COMP%]{--font-body-size: 24px;--font-body-line-height: 32px;--font-body-color: rgba(255, 255, 255, .85)}.font-body1-italic[_ngcontent-%COMP%]{--font-body-color: var(--hig-ui-text-secondary-color);--font-body-size: 16px;--font-body-line-height: 24px;font-family:NVIDIA,sans-serif;color:var(--font-body-color);font-weight:400;font-style:normal;text-transform:none;font-size:var(--font-body-size);line-height:var(--font-body-line-height);letter-spacing:0;font-style:italic}.tv-view[_ngcontent-%COMP%] .font-body1-italic[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .font-body1-italic[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .font-body1-italic[_ngcontent-%COMP%]{--font-body-size: 32px;--font-body-line-height: 48px;--font-body-color: rgba(255, 255, 255, .85)}.font-body2-italic[_ngcontent-%COMP%]{--font-body-color: var(--hig-ui-text-secondary-color);--font-body-size: 14px;--font-body-line-height: 20px;font-family:NVIDIA,sans-serif;color:var(--font-body-color);font-weight:400;font-style:normal;text-transform:none;font-size:var(--font-body-size);line-height:var(--font-body-line-height);letter-spacing:0;font-style:italic}.tv-view[_ngcontent-%COMP%] .font-body2-italic[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .font-body2-italic[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .font-body2-italic[_ngcontent-%COMP%]{--font-body-size: 28px;--font-body-line-height: 40px;--font-body-color: rgba(255, 255, 255, .85)}.font-body3-italic[_ngcontent-%COMP%]{--font-body-color: var(--hig-ui-text-secondary-color);--font-body-size: 12px;--font-body-line-height: 16px;font-family:NVIDIA,sans-serif;color:var(--font-body-color);font-weight:400;font-style:normal;text-transform:none;font-size:var(--font-body-size);line-height:var(--font-body-line-height);letter-spacing:0;font-style:italic}.tv-view[_ngcontent-%COMP%] .font-body3-italic[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .font-body3-italic[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .font-body3-italic[_ngcontent-%COMP%]{--font-body-size: 24px;--font-body-line-height: 32px;--font-body-color: rgba(255, 255, 255, .85)}.font-body1-link[_ngcontent-%COMP%]{--font-body-color: var(--hig-ui-text-secondary-color);--font-body-size: 16px;--font-body-line-height: 24px;font-family:NVIDIA,sans-serif;color:var(--font-body-color);font-weight:400;font-style:normal;text-transform:none;font-size:var(--font-body-size);line-height:var(--font-body-line-height);letter-spacing:0;text-decoration:none;border-bottom:1px solid var(--hig-link-border-bottom-color);white-space:nowrap;color:#76b900}.tv-view[_ngcontent-%COMP%] .font-body1-link[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .font-body1-link[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .font-body1-link[_ngcontent-%COMP%]{--font-body-size: 32px;--font-body-line-height: 48px;--font-body-color: rgba(255, 255, 255, .85)}.font-body1-link[_ngcontent-%COMP%]:hover{cursor:pointer;outline:none;color:var(--hig-link-hover-color);border-bottom:1px var(--hig-link-hover-border-bottom-style) var(--hig-link-hover-border-bottom-color)}.font-body1-link.cdk-program-focused[_ngcontent-%COMP%], .font-body1-link.cdk-keyboard-focused[_ngcontent-%COMP%], .cdk-keyboard-focused[_ngcontent-%COMP%] .font-body1-link[_ngcontent-%COMP%]:focus, .cdk-program-focused[_ngcontent-%COMP%] .font-body1-link[_ngcontent-%COMP%]:focus{position:relative;--outset: -1px ;--focus-background: rgba(118, 185, 0, .32)}.font-body1-link.cdk-program-focused[_ngcontent-%COMP%]:before, .font-body1-link.cdk-keyboard-focused[_ngcontent-%COMP%]:before, .cdk-keyboard-focused[_ngcontent-%COMP%] .font-body1-link[_ngcontent-%COMP%]:focus:before, .cdk-program-focused[_ngcontent-%COMP%] .font-body1-link[_ngcontent-%COMP%]:focus:before{content:"";position:absolute;top:var(--outset);right:var(--outset);bottom:var(--outset);left:var(--outset);animation:_ngcontent-%COMP%_backgroundColorFadeIn .75s forwards}.font-body1-link.cdk-program-focused[_ngcontent-%COMP%]:after, .font-body1-link.cdk-keyboard-focused[_ngcontent-%COMP%]:after, .cdk-keyboard-focused[_ngcontent-%COMP%] .font-body1-link[_ngcontent-%COMP%]:focus:after, .cdk-program-focused[_ngcontent-%COMP%] .font-body1-link[_ngcontent-%COMP%]:focus:after{background-color:unset}.font-body1-link[_ngcontent-%COMP%]:active{opacity:.45}.font-body2-link[_ngcontent-%COMP%]{--font-body-color: var(--hig-ui-text-secondary-color);--font-body-size: 14px;--font-body-line-height: 20px;font-family:NVIDIA,sans-serif;color:var(--font-body-color);font-weight:400;font-style:normal;text-transform:none;font-size:var(--font-body-size);line-height:var(--font-body-line-height);letter-spacing:0;text-decoration:none;border-bottom:1px solid var(--hig-link-border-bottom-color);white-space:nowrap;color:#76b900}.tv-view[_ngcontent-%COMP%] .font-body2-link[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .font-body2-link[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .font-body2-link[_ngcontent-%COMP%]{--font-body-size: 28px;--font-body-line-height: 40px;--font-body-color: rgba(255, 255, 255, .85)}.font-body2-link[_ngcontent-%COMP%]:hover{cursor:pointer;outline:none;color:var(--hig-link-hover-color);border-bottom:1px var(--hig-link-hover-border-bottom-style) var(--hig-link-hover-border-bottom-color)}.font-body2-link.cdk-program-focused[_ngcontent-%COMP%], .font-body2-link.cdk-keyboard-focused[_ngcontent-%COMP%], .cdk-keyboard-focused[_ngcontent-%COMP%] .font-body2-link[_ngcontent-%COMP%]:focus, .cdk-program-focused[_ngcontent-%COMP%] .font-body2-link[_ngcontent-%COMP%]:focus{position:relative;--outset: -1px ;--focus-background: rgba(118, 185, 0, .32)}.font-body2-link.cdk-program-focused[_ngcontent-%COMP%]:before, .font-body2-link.cdk-keyboard-focused[_ngcontent-%COMP%]:before, .cdk-keyboard-focused[_ngcontent-%COMP%] .font-body2-link[_ngcontent-%COMP%]:focus:before, .cdk-program-focused[_ngcontent-%COMP%] .font-body2-link[_ngcontent-%COMP%]:focus:before{content:"";position:absolute;top:var(--outset);right:var(--outset);bottom:var(--outset);left:var(--outset);animation:_ngcontent-%COMP%_backgroundColorFadeIn .75s forwards}.font-body2-link.cdk-program-focused[_ngcontent-%COMP%]:after, .font-body2-link.cdk-keyboard-focused[_ngcontent-%COMP%]:after, .cdk-keyboard-focused[_ngcontent-%COMP%] .font-body2-link[_ngcontent-%COMP%]:focus:after, .cdk-program-focused[_ngcontent-%COMP%] .font-body2-link[_ngcontent-%COMP%]:focus:after{background-color:unset}.font-body2-link[_ngcontent-%COMP%]:active{opacity:.45}.font-body3-link[_ngcontent-%COMP%]{--font-body-color: var(--hig-ui-text-secondary-color);--font-body-size: 12px;--font-body-line-height: 16px;font-family:NVIDIA,sans-serif;color:var(--font-body-color);font-weight:400;font-style:normal;text-transform:none;font-size:var(--font-body-size);line-height:var(--font-body-line-height);letter-spacing:0;text-decoration:none;border-bottom:1px solid var(--hig-link-border-bottom-color);white-space:nowrap;color:#76b900}.tv-view[_ngcontent-%COMP%] .font-body3-link[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .font-body3-link[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .font-body3-link[_ngcontent-%COMP%]{--font-body-size: 24px;--font-body-line-height: 32px;--font-body-color: rgba(255, 255, 255, .85)}.font-body3-link[_ngcontent-%COMP%]:hover{cursor:pointer;outline:none;color:var(--hig-link-hover-color);border-bottom:1px var(--hig-link-hover-border-bottom-style) var(--hig-link-hover-border-bottom-color)}.font-body3-link.cdk-program-focused[_ngcontent-%COMP%], .font-body3-link.cdk-keyboard-focused[_ngcontent-%COMP%], .cdk-keyboard-focused[_ngcontent-%COMP%] .font-body3-link[_ngcontent-%COMP%]:focus, .cdk-program-focused[_ngcontent-%COMP%] .font-body3-link[_ngcontent-%COMP%]:focus{position:relative;--outset: -1px ;--focus-background: rgba(118, 185, 0, .32)}.font-body3-link.cdk-program-focused[_ngcontent-%COMP%]:before, .font-body3-link.cdk-keyboard-focused[_ngcontent-%COMP%]:before, .cdk-keyboard-focused[_ngcontent-%COMP%] .font-body3-link[_ngcontent-%COMP%]:focus:before, .cdk-program-focused[_ngcontent-%COMP%] .font-body3-link[_ngcontent-%COMP%]:focus:before{content:"";position:absolute;top:var(--outset);right:var(--outset);bottom:var(--outset);left:var(--outset);animation:_ngcontent-%COMP%_backgroundColorFadeIn .75s forwards}.font-body3-link.cdk-program-focused[_ngcontent-%COMP%]:after, .font-body3-link.cdk-keyboard-focused[_ngcontent-%COMP%]:after, .cdk-keyboard-focused[_ngcontent-%COMP%] .font-body3-link[_ngcontent-%COMP%]:focus:after, .cdk-program-focused[_ngcontent-%COMP%] .font-body3-link[_ngcontent-%COMP%]:focus:after{background-color:unset}@keyframes _ngcontent-%COMP%_backgroundColorFadeIn{0%{background-color:transparent}to{background-color:var(--focus-background)}}.font-body3-link[_ngcontent-%COMP%]:active{opacity:.45}.font-overline1[_ngcontent-%COMP%]{--font-body-color: var(--hig-ui-text-secondary-color);--font-body-size: 12px;--font-body-line-height: 16px;font-family:NVIDIA,sans-serif;color:var(--font-body-color);font-weight:400;font-style:normal;text-transform:none;font-size:var(--font-body-size);line-height:var(--font-body-line-height);color:var(--hig-ui-text-tertiary-color);letter-spacing:0;text-transform:uppercase}.tv-view[_ngcontent-%COMP%] .font-overline1[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .font-overline1[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .font-overline1[_ngcontent-%COMP%]{--font-body-size: 24px;--font-body-line-height: 32px;--font-body-color: rgba(255, 255, 255, .85)}.font-button1[_ngcontent-%COMP%]{--font-button-size: 14px;--font-button-line-height: 20px;font-family:NVIDIA,sans-serif;font-size:var(--font-button-size);line-height:var(--font-button-line-height);letter-spacing:0;font-weight:500;font-style:normal;text-transform:uppercase;text-decoration:none;color:#76b900}.tv-view[_ngcontent-%COMP%] .font-button1[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .font-button1[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .font-button1[_ngcontent-%COMP%]{--font-button-size: 28px;--font-button-line-height: 40px;padding:18px 24px}.font-button2[_ngcontent-%COMP%]{--font-button-size: 14px;--font-button-line-height: 20px;font-family:NVIDIA,sans-serif;font-size:var(--font-button-size);line-height:var(--font-button-line-height);letter-spacing:0;font-weight:500;font-style:normal;text-transform:uppercase;text-decoration:none;color:var(--primary-contrast-1000)}.tv-view[_ngcontent-%COMP%] .font-button2[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .font-button2[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .font-button2[_ngcontent-%COMP%]{--font-button-size: 28px;--font-button-line-height: 40px;padding:18px 24px}.font-color-primary[_ngcontent-%COMP%]{color:var(--hig-ui-text-primary-color)}.font-color-secondary[_ngcontent-%COMP%]{color:var(--hig-ui-text-secondary-color)}.tv-view[_nghost-%COMP%] .font-color-secondary[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .font-color-secondary[_ngcontent-%COMP%]{color:#ffffffd9}.font-color-tertiary[_ngcontent-%COMP%]{color:var(--hig-ui-text-tertiary-color)}.tv-view[_nghost-%COMP%] .font-color-tertiary[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .font-color-tertiary[_ngcontent-%COMP%]{color:#ffffffb3}.modal-loader-content[_ngcontent-%COMP%]{width:790px;height:80vh;max-height:530px;min-height:480px}.modal-error-content[_ngcontent-%COMP%]{width:min(790px,100vw);height:calc(80vh - 52px);max-height:478px}.close-button-container[_ngcontent-%COMP%]{position:absolute;z-index:1;top:24px;right:16px}.error-info-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex:1 1 100%;justify-content:center;align-items:center;height:100%}.error-info-container[_ngcontent-%COMP%] .error-info-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .error-info-container[_ngcontent-%COMP%] .error-info-icon[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{font-size:24px;height:24px;width:24px}.error-info-container[_ngcontent-%COMP%] .error-info[_ngcontent-%COMP%]{margin:10px 0 0;text-align:center}.close-button-container[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{vertical-align:initial}.modal-actions[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:end;padding:0 8px;margin-bottom:0;margin-top:16px}.modal-close-action[_ngcontent-%COMP%]{width:auto}']})}}return ze})();var Fe=s(10404),Qe=s(47847),ct=s(96306),Ge=s(45032),nt=s(44272);let Je=(()=>{class ze{constructor(Ve,$e,dt,Pe,J,vt,ve,ue,et){this.loggingService=Ve,this.aemService=$e,this.loginService=dt,this.appConfig=Pe,this.errorHandlerService=J,this.gfwslParamService=vt,this.matDialog=ve,this.ootbService=ue,this.appListService=et,this.logger=Ve.getLogger("nvapp/ReleaseHighlightsService"),this.aemService.addEndpointDefinitions([g])}showInAppReleaseHighlightsOnLaunch(){this.ootbService.isOotbCompletedOrSkipped.pipe((0,n.s)(1)).subscribe(Ve=>{Ve?(this.showInAppReleaseHighlights(),this.triggerScanOnSelfUpdate()):this.logger.info("Skip showing release highlights as OOTB is not completed")},Ve=>{this.logger.error("Error while showing release highlights on self update",Ve)})}triggerScanOnSelfUpdate(){this.appConfig.scan.triggerOnSelfUpdate&&(this.logger.info("Initiating Traditional scan after self update"),this.appListService.initiateTraditionalScan().pipe((0,n.s)(1)).subscribe(i.l,i.l))}showInAppReleaseHighlights(){const $e=this.matDialog.open(it,{hasBackdrop:!0,autoFocus:!1,restoreFocus:!1,backdropClass:"in-app-rh-article-backdrop",panelClass:["in-app-rh-article-content","common-dialog"],maxWidth:790});$e.componentInstance.getArticleContent=function(){return this.getReleaseHighlight()}.bind(this),$e.componentInstance.autoCloseOnError=!1,$e.afterClosed().pipe((0,n.s)(1)).subscribe(()=>{this.logger.info("The dialog was closed")},dt=>{this.logger.error("Failed to close the release highlights dialog",dt)})}getReleaseHighlight(){return this.getAemReleaseHighlights().pipe((0,h.M)(Ve=>this.logger.info("Release Highlights response",Ve)),(0,C.T)(Ve=>({title:"preferences.about.releaseHighlights",subTitle:"",body:Ve.body.gfcontent.body,panelClass:""})))}getAemReleaseHighlights(){return this.onGfwslParamsReady().pipe((0,S.n)(()=>this.aemService.callAemEndpoint(g.name,{cNm:this.appConfig.appName,cmID:"",jTK:"","sfUid-Null":""},{},{},{"Content-Type":"text/plain"},void 0)))}getUserId(){return this.loginService.accountStatusChanged.pipe((0,n.s)(1),(0,C.T)(Ve=>(Ve.isAuthenticated&&this.logger.info("User is authenticated, sending userId"),Ve.isAuthenticated?window.btoa(Ve.userId):"")))}onGfwslParamsReady(){return this.gfwslParamService.gfwslParamsUpdated.pipe((0,M.p)(Ve=>this.areGfwslParamsAvailable(Ve)),(0,n.s)(1))}areGfwslParamsAvailable(Ve){return!!(Ve.hasSystemInfo&&Ve.hasLocaleInfo&&Ve.params.dIDa)}showErrorMessage(Ve,$e=!1){this.errorHandlerService.showToastMessage({text:Ve,translated:$e}).subscribe()}static{this.\u0275fac=function($e){return new($e||ze)(m.KVO(l.J6),m.KVO(P.PZ),m.KVO(Fe.HF),m.KVO(Qe.Vk),m.KVO(ct.c),m.KVO(P.Tg),m.KVO(r.bZ),m.KVO(Ge.Q),m.KVO(nt.n))}}static{this.\u0275prov=m.jDH({token:ze,factory:ze.\u0275fac,providedIn:"root"})}}return ze})()},58474:(St,z,s)=>{"use strict";s.d(z,{V:()=>Y});var i=s(14354),n=s(59859),h=s(8619),C=s(91384),S=s(14714),M=s(92602),P=s(26772),x=s(54803),A=s(1242),g=s(83128),m=s(58527),l=s(7486),r=s(3634),u=s(59584),v=s(43071),E=s(96542),T=s(96306),R=s(37898),B=s(72482),U=s(59085);let Y=(()=>{class ae{get isSearchRouteActive(){return this._isSearchRouteActive}constructor(k,X,q,Q,ce,te,Ee,it,Fe,Qe,ct,Ge,nt){this.loggingService=k,this.router=X,this.rewardsService=q,this.releaseHighlightsService=Q,this.displaysService=ce,this.sidebarService=te,this.nativeEventService=Ee,this.translateService=it,this.errorHandlerService=Fe,this.injector=Qe,this.performanceMeasureService=ct,this.driverInfoService=Ge,this.preferencesService=nt,this._isSearchRouteActive=!1,this.logger=k.getLogger("nvapp/RouterHandlerService")}initialize(){this.registerURLRouteChangeEventOnNativeEvents(),this.routerChangeListener()}restoreScrollToTopOnRouteChange(k){this.router.events.pipe((0,h.p)(X=>X instanceof i.OY)).subscribe(X=>{k?.nativeElement?.scrollTo({left:0,top:0})})}routerChangeListener(){this.router.events.subscribe(k=>{if(k instanceof i.AL&&k.route.path===P.f.Home&&this.performanceMeasureService.markNvAppPerformanceMarkers([g.mM.NvAppHomeRouteNavigationStart],g.fR.Home),k instanceof i.Z){this.logger.info("route info start",k.url);const X=k.url.substring(k.url.indexOf("/")+1);this.sidebarService.updateSidebarPageItems(k.url===P.f.Root||X===P.f.ReleaseHighlights?P.f.Home:X),P.f.Rewards===X&&this.rewardsService.isRewardUnAvailable()&&(this.rewardsService.showRewardUnAvailableDialog(),this.router.navigate([this.router.url])),P.f.SystemBlockingApps===X&&this.router.navigate([P.f.System,{tab:"displays"}]).then(()=>{this.displaysService.showInAppBlockingAppList()}),P.f.ReleaseHighlights===X&&(this.preferencesService.initializePreferencesState(),this.releaseHighlightsService.showInAppReleaseHighlightsOnLaunch()),X===P.f.Drivers?this.performanceMeasureService.markNvAppPerformanceMarkers([g.mM.NvAppDriverRouteNavigationStart],g.fR.Driver):X===P.f.Rewards?(this.performanceMeasureService.markNvAppPerformanceMarkers([g.mM.NvAppRedeemRouteNavigationStart],g.fR.Redeem),this.injector.get(A.AY).sendClickEvent(A.EB.RedeemSideBar,"",!0,"")):X===P.f.Manage3dSettings?this.performanceMeasureService.markNvAppPerformanceMarkers([g.mM.NvAppGraphicsRouteNavigationStart],g.fR.Graphics):-1!==X.indexOf(P.f.Preferences)?this.performanceMeasureService.markNvAppPerformanceMarkers([g.mM.NvAppSettingsRouteNavigationStart],g.fR.Settings):X===P.f.System&&(this.performanceMeasureService.markNvAppPerformanceMarkers([g.mM.NvAppSystemOverviewRouteNavigationStart],g.fR.SystemOverview),this.performanceMeasureService.markNvAppPerformanceMarkers([g.mM.NvAppPerfRouteStart],g.fR.Performance),this.performanceMeasureService.markNvAppPerformanceMarkers([g.mM.NvAppDisplaysRouteNavigationStart],g.fR.SystemDisplays),this.performanceMeasureService.markNvAppPerformanceMarkers([g.mM.NvAppVideoRouteNavigationStart],g.fR.SystemVideo))}if(k instanceof i.wF){const X=k.urlAfterRedirects,q=X.startsWith("/")?X.substring(1):X,Q=this._isSearchRouteActive;this._isSearchRouteActive=q.startsWith(P.f.SearchResults),this.navigatedFromSearchResults=!(this._isSearchRouteActive||!Q)}})}didNavigateFromSearchResults(){return this.navigatedFromSearchResults}registerURLRouteChangeEventOnNativeEvents(){this.nativeEventService.get$(M.D4.RouteChange,M.Jm.Types.HandlerEventType.StructuredWindowEvent).subscribe(k=>{try{const X=JSON.parse(k);if(X&&X.hasOwnProperty(P.A7)){const q=X[P.A7].substring(1);this.logger.info("navigating nvapp to deep link",q);const{isDriverInstalled:Q,isMinimumDriverInstalled:ce}=this.driverInfoService.getDriverInstallInfo();Q&&ce&&(-1!==q.indexOf(P.f.Preferences)?this.router.navigateByUrl(q,{onSameUrlNavigation:"reload"}):this.router.navigateByUrl(q))}else this.logger.error("Invalid url data provided, ignoring")}catch(X){this.logger.error("Error while processing url-route change event. ",X)}},k=>{this.logger.error("Received error for RouteChange window event: ",k)})}routeToPage(k,X,q){const Q=k.itemType?.route;if(X&&q)this.router.navigate([Q]);else{const ce=this.translateService.instant(k.itemType?.id);if(k.itemType?.id!==x.D.Drivers){const te={page:ce};this.errorHandlerService.showFeatureNotAvailableDialog("common.pageNotAvailable",X?"common.updateDriverToAccessPage":"common.installDriverToAccessPage",null,te,te)}}}routeToDriverIfMinimumDriverNotInstalled(){return this.driverInfoService.fetchDriverInstallInfo().pipe((0,C.M)(({isDriverInstalled:k,isMinimumDriverInstalled:X})=>{this.logger.info("is Driver Installed",k,"is minimum Driver Installed",X),(!k||!X)&&(this.router.navigate([P.f.Drivers]),this.logger.info("The page navigates to the driver page upon APP launch"))}),(0,S.W)(k=>(this.logger.error("Error fetching isMinimumDriverInstalled details:",k),(0,n.$)(k))))}routeToUrl(k,X){this.router.navigate(X?[k,X]:[k])}routeToGraphics(k){this.router.navigate(k?[P.f.Manage3dSettings,k]:[P.f.Manage3dSettings])}routeToHome(k){this.router.navigate(k?[P.f.Home,k]:[P.f.Home])}static{this.\u0275fac=function(X){return new(X||ae)(m.KVO(M.J6),m.KVO(i.Ix),m.KVO(l.y),m.KVO(r.w),m.KVO(u.R),m.KVO(v.o),m.KVO(M.dU),m.KVO(E.c$),m.KVO(T.c),m.KVO(m.zZn),m.KVO(R.M),m.KVO(B.u),m.KVO(U.N))}}static{this.\u0275prov=m.jDH({token:ae,factory:ae.\u0275fac,providedIn:"root"})}}return ae})()},44272:(St,z,s)=>{"use strict";s.d(z,{n:()=>Ge});var i=s(26875),h=s(85735),C=s(43848),S=s(59859),M=s(31315),P=s(3496),x=s(36466),A=s(79539),g=s(29118),m=s(8619),l=s(65706),r=s(91384),u=s(14714),v=s(83915),E=s(72147),T=s(10174),R=s(43615),B=s(53461),U=s(36666),Y=s(42578),ae=s(125),G=s(94645),k=s(62668),X=s(89610),q=s(58527),Q=s(92602),ce=s(13102),te=s(96306),Ee=s(73796),it=s(47847),Fe=s(96542),Qe=s(17543),ct=s(62313);let Ge=(()=>{class nt{constructor(ze,Ke,Ve,$e,dt,Pe,J,vt,ve,ue){this.scanApisService=Ke,this.errorHandlerService=Ve,this.lcarsService=$e,this.bridgeService=dt,this.appConfig=Pe,this.translateService=J,this.localeService=vt,this.opsApiService=ve,this.opsEventService=ue,this.localUpdatedApps$=new h.m(1),this.localAppCache=[],this.localAppCacheCount=0,this.lastAppUserTriedAdding={},this.isManualScan=!1,this.logger=ze.getLogger("nvapp/AppListService")}getLocalAppsCache(){this.subGetLocalApps&&this.subGetLocalApps.unsubscribe(),this.subGetLocalApps=this.scanApisService.getLocalApps().pipe((0,A.H)(ze=>{const Ke=ze.slice();return this.logger.info("New programs received",ze.length),Ke.length>0?this.getAppAssetsByAppId(Ke,Y.cW.AllAppsMetaData):(0,C.of)(Ke)})).subscribe(ze=>{this.localAppCache=ze,this.logger.info("Local apps received : ",ze),this.localUpdatedApps$.next(ze)},ze=>{this.logger.info("Error fetching local apps",ze)})}getLocalUpdatedApps(){return this.localUpdatedApps$.asObservable()}initialize(){this.registerAppListeners(),this.scanApisService.initLocalApps().subscribe()}registerAppListeners(){this.getLocalAppsCache(),this.localAppAddedListener(),this.localAppRemovedListener(),this.refreshProgramAssets()}localAppAddedListener(){this.subGetLocalAddedApp&&this.subGetLocalAddedApp.unsubscribe(),this.subGetLocalAddedApp=this.scanApisService.getLocalAddedApp().pipe((0,g.w)(X.PW),(0,m.p)(ze=>ze.length>0),(0,A.H)(ze=>this.getAppAssetsByAppId(ze,Y.cW.AppMetaData))).subscribe(ze=>{ze?.length?(ze.forEach(Ke=>this.updateOrAddNewFPApp(Ke)),this.localUpdatedApps$.next(this.localAppCache)):this.logger.info("null app change notification received..",ze)},ze=>{this.logger.error("Error while fetching local added app ",ze)})}updateOrAddNewFPApp(ze){const Ke=this.localAppCache.findIndex(Ve=>Ve.localId===ze.localId);Ke>-1?Object.keys(ze).filter(Ve=>!!ze[Ve]).forEach(Ve=>{this.localAppCache[Ke][Ve]=ze[Ve]}):this.localAppCache.unshift(ze),this.sortBeforeEmit()}sortBeforeEmit(){this.localAppCache=this.scanApisService.sortApps(this.localAppCache)}localAppRemovedListener(){this.subGetLocalRemovedApp&&this.subGetLocalRemovedApp.unsubscribe(),this.subGetLocalRemovedApp=this.scanApisService.getLocalRemovedApp().subscribe(ze=>{ze&&(this.localAppCache=this.localAppCache.filter(Ke=>Ke.localId!==ze)),this.sortBeforeEmit(),this.localUpdatedApps$.next(this.localAppCache)},ze=>{this.logger.error("Error while fetching local removed app ",ze)})}initiateScan(ze=!1,Ke=ae.Ut.traditional){this.logger.info("Initiating game scan, type: ",Ke),this.localAppCacheCount=this.localAppCache.length,this.isManualScan=ze,this.scanApisService.initiateScan(Ke).pipe((0,l.s)(1)).subscribe(Ve=>{this.logger.info("Scan result : ",Ve),Ke===ae.Ut.traditional&&this.showScanSuccessToastMessage()},Ve=>{this.logger.error("Scan errored : ",Ve),this.showErrorToastMessage(JSON.stringify(Ve))})}initiateTraditionalScan(){return this.scanApisService.initiateScan(ae.Ut.traditional).pipe((0,r.M)(ze=>this.logger.info("Traditional scan is completed")),(0,u.W)(ze=>(this.logger.error(ze?.code===G._O||ze instanceof k.n?"Localgames plugin not found, traditional scan failed due to timeout ":"Error occurred during traditional scan ",ze),(0,C.of)(void 0))))}getScanStatus(){return this.scanApisService.getScanStatus().pipe((0,r.M)(ze=>{ze||this.showAppsCountMessage()}))}getAppAssetsByAppId(ze,Ke){if(!ze.length)return(0,C.of)(ze);const Ve=ze.map($e=>$e.chromaAppId);return this.lcarsService.getAppAssetsByAppId(Ve,Ke).pipe((0,u.W)($e=>(this.logger.error("Error fetching app assets:",$e),(0,C.of)(ze))),(0,v.T)($e=>ze.map(dt=>{const Pe=$e.find(J=>dt.chromaAppId===J.id);if(Pe){const J=Object.assign(dt,Pe);return J.displayName=Pe.title||dt.displayName,J}return dt})),(0,l.s)(1))}checkMetaDataExists(ze){return this.bridgeService.executeCommand(ae.R,{applicationImagePath:ze}).pipe((0,E.n)(Ve=>{let $e={};return Ve.isPresent?($e=Object.assign($e,Ve.application),$e.installDirectory=ze,this.logger.info("Updating install dir to filePath for FP apps ",ze)):this.logger.info("No metadata found for ",ze),Ve.isPresent?this.getAppAssetsByAppId([$e],Y.cW.AppMetaData):(0,C.of)(null)}),(0,v.T)(Ve=>Ve?Ve[0]:null),(0,u.W)(Ve=>{const $e="Error occured while checking for app metadata from nvbackend";return this.logger.error($e,Ve),(0,S.$)($e)}),(0,l.s)(1))}launchApp(ze){return this.bridgeService.executeCommand(ae.mA).pipe((0,E.n)(Ke=>this.bridgeService.executeCommand(ae.TW,{pid:Ke.pid})),(0,E.n)(Ke=>this.bridgeService.executeCommand(ae.Gw,{localId:ze})),(0,T.u)(!0),(0,u.W)(Ke=>(this.logger.error("Error occured while application launch: ",Ke),this.errorHandlerService.showToastMessage({text:"manage3dSettings.anErrorOccuredAtLaunch",placeholders:{errorText:Ke.message??JSON.stringify(Ke)},translated:!1}).subscribe(),(0,C.of)(!1))))}getProfileNameFromExe(ze){const Ke=this.localAppCache.findIndex($e=>$e.id===ze.id);return ze.drsAppSubPath?this.bridgeService.executeCommand(ae.PT,{ExeName:ze.drsAppSubPath}).pipe((0,u.W)($e=>(this.logger.error(`Some error occured while fetching the drsProfile name, returning null profileName for ${ze.shortName}. Error: `,$e),(0,C.of)(null))),(0,r.M)($e=>{$e&&(this.logger.info("updating drs profile name = ",$e?.ProfileName," for appIndex = ",Ke),this.localAppCache[Ke].drsProfileName=$e?.ProfileName)}),(0,v.T)($e=>$e?.ProfileName)):(this.logger.info(`DrsSubPath for ${ze.displayName} is empty`),this.localAppCache[Ke].drsProfileName=ze.shortName,this.logger.info(`updating drs profile name = ${ze.shortName} for appIndex = ${Ke}`),(0,C.of)(ze.shortName))}prepareToastMessage(){let ze,Ke;const Ve=this.localAppCache.length,$e=this.localAppCacheCount;let dt=Ve-$e;return dt>0?(Ke="ops.optimizeAll",ze=0===$e?1===dt?"manage3dSettings.scan.gameIsAddedInitialZero":"manage3dSettings.scan.gamesAddedInitialZero":1===dt?"manage3dSettings.scan.gameIsAdded":"manage3dSettings.scan.gamesAdded"):dt<0?(dt=Math.abs(dt),ze=1===dt?"manage3dSettings.scan.gameIsRemoved":"manage3dSettings.scan.gamesRemoved"):ze="manage3dSettings.scan.noProgramsFound",{higText:{text:ze,placeholders:{count:dt,total:Ve},translated:!1},actionText:{text:Ke,translated:!1},deltaAppCount:dt}}showAppsCountMessage(){const ze=this.isManualScan;this.logger.info(`Manual Scan: ${ze}`);const{higText:Ke,actionText:Ve,deltaAppCount:$e}=this.prepareToastMessage();this.opsApiService.getAutoOptimizeEnabled().pipe((0,l.s)(1),(0,A.H)(dt=>(!dt&&$e>0&&ze?this.errorHandlerService.showToastMessage(Ke,Ve):this.errorHandlerService.showToastMessage(Ke)).pipe((0,l.s)(1),(0,v.T)(J=>({isEnabled:dt,result:J})))),(0,R.j)(()=>{this.isManualScan=!1,this.logger.info("Reset isManualScan flag to false")})).subscribe(({isEnabled:dt,result:Pe})=>{!dt&&$e>0&&ze&&Pe&&(this.logger.info("Triggering optimize all from toast message"),this.opsEventService.triggerOptimizeAll(this.localAppCache))},dt=>{this.logger.error("Error while processing auto optimize toggle value and toast message",dt)})}showErrorToastMessage(ze){this.errorHandlerService.showToastMessage({text:"manage3dSettings.scan.scanErrored"}).subscribe()}showScanSuccessToastMessage(){this.errorHandlerService.showToastMessage({text:"manage3dSettings.scan.scanStarted",translated:!1}).subscribe()}refreshProgramAssets(){this.subProgramAssets?.unsubscribe(),this.subProgramAssets=(0,M.zV)([this.localeService.localeChanged.pipe((0,B.F)(),(0,r.M)(()=>{this.logger.info("Locale changed refresh")})),(0,P.O)(0,this.appConfig.lcars.appsRefreshTime).pipe((0,r.M)(()=>{this.logger.info("Periodic refresh of assets")}))]).pipe((0,U.i)(1),(0,E.n)(()=>(this.logger.info("Refreshing assets based on locale or periodic refresh"),this.getAppAssetsByAppId(this.localAppCache,Y.cW.AllAppsMetaData)))).subscribe(x.l,ze=>{this.logger.error("Error while subscribing to refresh program assets",ze)})}setLastManualAddedApp(ze){this.logger.info("last app user added",ze?.localId),this.lastAppUserTriedAdding=ze}isAppAlreadyExisting(ze,Ke){let Ve=!1;const $e=Ke.map(Pe=>Pe.localId).sort((Pe,J)=>Pe-J),dt=ze.map(Pe=>Pe.localId).sort((Pe,J)=>Pe-J);if(Ve=(0,i.isEqual)($e,dt),Ve){const Pe=this.lastAppUserTriedAdding&&ze.find(J=>J.localId===this.lastAppUserTriedAdding.localId);if(Pe){this.logger.info("App already existing ",Pe.displayName);const vt=this.translateService.instant(Pe.isManuallyAdded&&!Pe.isFingerprintDetected?"ops.program":Pe.isCreativeApp?"ops.app":"ops.game");let ve=this.translateService.instant("manage3dSettings.scan.isAlreadyPresent",{program:vt});ve+=Pe.isHidden?this.translateService.instant("manage3dSettings.scan.andIsHidden"):"",this.errorHandlerService.showToastMessage({text:ve,translated:!0})}else this.logger.error("updated app not found")}return Ve}deleteManualApplication(ze){return this.bridgeService.executeCommand(ae.MO,{appId:ze}).pipe((0,l.s)(1),(0,v.T)(Ve=>{if(Ve.success)return this.logger.info(`Local id ${ze} successfully deleted from manual db`),!0;throw this.logger.info(`Local id ${ze} not deleted from manual db`),new Error("Program not removed")}),(0,u.W)(Ve=>{const $e=`Error occured while removing ${ze} from local games db : ${Ve}`;return this.logger.error($e,Ve),(0,S.$)($e)}))}ngOnDestroy(){this.subGetLocalAddedApp&&this.subGetLocalAddedApp.unsubscribe(),this.subGetLocalRemovedApp&&this.subGetLocalRemovedApp.unsubscribe(),this.subGetLocalApps&&this.subGetLocalApps.unsubscribe()}static{this.\u0275fac=function(Ke){return new(Ke||nt)(q.KVO(Q.J6),q.KVO(ce.I),q.KVO(te.c),q.KVO(Ee.B),q.KVO(Q.NZ),q.KVO(it.Vk),q.KVO(Fe.c$),q.KVO(Q.iH),q.KVO(Qe.M),q.KVO(ct.C))}}static{this.\u0275prov=q.jDH({token:nt,factory:nt.\u0275fac,providedIn:"root"})}}return nt})()},51917:(St,z,s)=>{"use strict";s.d(z,{Z:()=>v});var i=s(85735),n=s(43848),h=s(83915),C=s(8619),S=s(72147),M=s(91384),P=s(65706),x=s(70521),A=s(58527),g=s(92602),m=s(44272),l=s(26990),r=s(96277),u=s(96306);let v=(()=>{class E{constructor(R,B,U,Y,ae,G){this.appListService=B,this.manage3dSettingsUtilService=U,this.serviceWorkerService=Y,this.manage3dSettingsAPIService=ae,this.errorHandlerService=G,this.programs=[],this.programs$=new i.m(1),this.isLastAddedAppManual=!1,this.logger=R.getLogger("nvapp/FingerprintAndDRSProgramsService")}getAllPrograms(){return this.programs$.asObservable()}getIsLastAddedProgramManually(){return this.isLastAddedAppManual}initialize(){this.initServiceWorkerNotifications(),this.loadFPApps()}launchApp(R){return this.appListService.launchApp(R)}loadFPApps(){this.scannedAppsSub?.unsubscribe(),this.scannedAppsSub=this.appListService.getLocalUpdatedApps().pipe((0,h.T)(R=>this.filterUnsupportedApps(R))).subscribe(R=>{this.logger.info("Scanned Programs received",R.length),this.programs=R.slice(),this.isLastAddedAppManual=!1,this.programs$.next(this.programs)},R=>{this.logger.error("Error occured while loading local games and apps - ",R)})}filterUnsupportedApps(R){const B=[];return R.forEach(U=>{U.regularOpsSupported?B.push(U):R.filter(ae=>ae.shortName===U.shortName).length>1?(B.findIndex(G=>G.shortName===U.shortName)>-1||B.push(U),this.logger.info("App with repeating DRS profile",U)):B.push(U)}),B}initServiceWorkerNotifications(){this.logger.info("Initializing Service Worker Update Notifications");const B=[x.th.staleWhileRevalidate?.appMetadata?.cacheName];this.serviceWorkerSubscription?.unsubscribe(),this.serviceWorkerSubscription=this.serviceWorkerService.swCacheUpdated.pipe((0,C.p)(U=>B.includes(U.name)&&U.data)).subscribe(U=>{this.logger.info("Received updated data SW notification for Programs Metadata",U.data);const Y=U.data?.data?.apps?.items;this.updateProgramAssets(Y)})}updateProgramAssets(R){this.programs.forEach(B=>{const U=R.find(Y=>Y.id===B.id);U&&(B.images=U.images,this.logger.info(`Updated assets for program ${B.id}`,U.images))}),this.programs$.next(this.programs)}addProgramToLocalGamesCache(R){return this.manage3dSettingsUtilService.addManualApplication(R)}getDrsProfileName(R){return R?.drsProfileName?(0,n.of)(R.drsProfileName):R?.isManuallyAdded?this.manage3dSettingsAPIService.createNewProfile(R.installDirectory+"\\"+R.shortName,R.shortName).pipe((0,S.n)(B=>this.appListService.getProfileNameFromExe(R))):this.appListService.getProfileNameFromExe(R)}removeManualAndDRSEntryFromDb(R,B){this.appListService.deleteManualApplication(R).pipe((0,S.n)(()=>this.manage3dSettingsAPIService.deleteDrsProfile(B)),(0,M.M)(U=>this.appListService.initialize()),(0,P.s)(1)).subscribe(()=>{this.logger.info(`${B} with localid ${R} removed successfully`)},U=>{this.logger.info(`${B} with localid ${R} not removed due to some error`),this.logger.error(U),this.errorHandlerService.showToastMessage({text:"common.somethingWentWrong",translated:!1}).subscribe()})}static{this.\u0275fac=function(B){return new(B||E)(A.KVO(g.J6),A.KVO(m.n),A.KVO(l.f),A.KVO(x.lS),A.KVO(r.F),A.KVO(u.c))}}static{this.\u0275prov=A.jDH({token:E,factory:E.\u0275fac,providedIn:"root"})}}return E})()},13102:(St,z,s)=>{"use strict";s.d(z,{I:()=>U});var i=s(80583),n=s(26513),h=s(85735),C=s(43848),S=s(59859),M=s(31315),P=s(91384),x=s(14714),A=s(83915),g=s(72147),m=s(65706),l=s(10174),r=s(125),u=s(6538),v=s(94645),E=s(58527),T=s(92602),R=s(86088),B=s(43341);let U=(()=>{class Y{constructor(G,k,X,q,Q){this.loggingService=G,this.bridgeService=k,this.dbService=X,this.nvAppBridgeService=q,this.appsSortAndFilterService=Q,this.localApps$=new i.B7,this.localAppAdded$=new i.B7,this.localAppRemoved$=new i.B7,this.scanStatus$=new i.B7,this.scanInitiated$=new n.t(null),this.localGamesApiError$=new h.m(1),this.logger=this.loggingService.getLogger("nvapp/ScanApisService"),this.globalStore=this.dbService.getGlobalStore(v.xI.GlobalStore),this.registerForScanAndGameNotifications()}initLocalApps(){return this.getLocalGamesAndApps().pipe((0,P.M)(G=>{this.logger.info("GetApplications success")}),(0,x.W)(G=>(this.logger.error("Error during - GetApplications",G),(0,C.of)(!1))))}getLocalApps(){return this.localApps$.asObservable()}getLocalAddedApp(){return this.localAppAdded$.asObservable()}getLocalRemovedApp(){return this.localAppRemoved$.asObservable()}getScanStatus(){return this.scanStatus$.asObservable()}getScanInitiated(){return this.scanInitiated$.asObservable()}initiateScan(G){return this.scanInitiated$.next(!0),this.registerForScanAndGameNotifications(),this.nvAppBridgeService.executeWithPluginStatusTelemetry(r._L,{type:G}).pipe((0,A.T)(X=>(this.logger.info("Game scan start success",X),X)),(0,x.W)(X=>(this.logger.error("Error during - StartScan",X),this.scanStatus$.next(!1),this.localGamesApiError$.next(!0),(0,S.$)(X))))}sortApps(G,k){return this.appsSortAndFilterService.sortApps(G,k)}getLocalGamesAndApps(){return this.logger.info("Calling GetApplications API"),(0,M.zV)([this.globalStore.getItem(v.xI.HiddenApps),this.appsSortAndFilterService.getSortByCriteriaFromDb()]).pipe((0,g.n)(([G=[],k])=>this.bridgeService.executeCommand(r._K).pipe((0,g.n)(X=>{this.logger.info("API returned apps count = ",X.applications.length),this.logger.info(X.applications);let q=[];return X.applications.forEach(Q=>{let ce={};(Q.regularOpsSupported&&0!==Q.cmsId&&Q.chromaAppId||Q.isManuallyAdded||Q.dlssOverrideNoOps)&&(ce=this.getLocalAppObject(ce,Q,!0),G.some(te=>te.localId===Q.localId)&&(ce.isHidden=!0),q.push(ce))}),q=this.sortApps(q),this.localApps$.next(q),(0,C.of)(q)}),(0,x.W)(X=>(this.logger.error("Some error occurred while GET Applications API",X),this.localGamesApiError$.next(!0),(0,S.$)(X))))),(0,x.W)(G=>(this.logger.error("Some error occurred while fetching hidden apps",G),(0,S.$)(G))),(0,m.s)(1),(0,l.u)(!0))}registerForScanAndGameNotifications(){this.registerGameScanProgressNotifications(),this.registerForAppChangeNotifications(),this.registerAppRemoveNotifications()}registerGameScanProgressNotifications(){this.subGameScanProgressNotifications&&this.subGameScanProgressNotifications.unsubscribe(),this.subGameScanProgressNotifications=this.bridgeService.executeCommand(r.eT).subscribe(G=>{this.logger.info("Game Scan Update:",G.status),"finished"===G.status?(this.scanInitiated$.next(!1),this.scanStatus$.next(!1)):this.scanStatus$.next(!0)},G=>(this.logger.error("Game scan progress notifications errored out",G),(0,S.$)(G)))}registerForAppChangeNotifications(){this.subAppAddNotifications&&this.subAppAddNotifications.unsubscribe(),this.subAppAddNotifications=this.bridgeService.executeCommand(r.DL).pipe((0,A.T)(G=>{this.logger.info("App change return output:",G.application);let k={};return G.application.regularOpsSupported&&0!==G.application.cmsId&&G.application.chromaAppId&&(k=this.getLocalAppObject(k,G.application),this.localAppAdded$.next(k)),k})).subscribe(()=>{this.logger.info("App add success")},G=>(this.logger.error("App change notifications errored out",G),(0,S.$)(G)))}getLocalAppObject(G,k,X=!1){return(G=Object.assign(G,k)).optimizationStatusIcon=X?u.p7.Unknown:"",G}registerAppRemoveNotifications(){this.subAppRemoveNotifications&&this.subAppRemoveNotifications.unsubscribe(),this.subAppRemoveNotifications=this.bridgeService.executeCommand(r.xR).subscribe(G=>{this.logger.info("App remove return:",G.localId),this.localAppRemoved$.next(G.localId)},G=>(this.logger.error("App remove notifications errored out",G),(0,S.$)(G)))}localGamesApiErrorObservable(){return this.localGamesApiError$.asObservable()}static{this.\u0275fac=function(k){return new(k||Y)(E.KVO(T.J6),E.KVO(T.NZ),E.KVO(T.at),E.KVO(R.S),E.KVO(B.H))}}static{this.\u0275prov=E.jDH({token:Y,factory:Y.\u0275fac,providedIn:"root"})}}return Y})()},125:(St,z,s)=>{"use strict";s.d(z,{$q:()=>U,Bu:()=>g,DL:()=>P,Eb:()=>r,Gw:()=>T,Lv:()=>A,MO:()=>B,NO:()=>ae,PT:()=>R,R:()=>u,TW:()=>E,Ut:()=>n,_K:()=>C,_L:()=>S,dj:()=>Y,eT:()=>M,fs:()=>l,jN:()=>G,mA:()=>v,uh:()=>m,xR:()=>x});var i=s(20924),n=i.Or.Nvapp.Localgames.ApplicationScanType;const C=i.Ts.Nvapp.Localgames.GetApplications,S=i.Ts.Nvapp.Localgames.StartApplicationScan,M=i.Ts.Nvapp.Localgames.RegisterApplicationScanProgressNotifications,P=i.Ts.Nvapp.Localgames.RegisterApplicationChangedNotifications,x=i.Ts.Nvapp.Localgames.RegisterApplicationRemovedNotifications,A=i.Ts.Nvapp.Localgames.AddApplicationSearchPath,g=i.Ts.Nvapp.Localgames.GetApplicationSearchPaths,m=i.Ts.Nvapp.Localgames.RemoveApplicationSearchPath,l=i.Ts.Common.Applicationinfo.OpenFileDialog,r=i.Ts.Common.Applicationinfo.OpenDirectoryBrowser,u=i.Ts.Nvapp.Localgames.FindAndGetAppMetadata,v=i.Ts.Nvapp.Localgames.GetLauncherPID,E=i.Ts.Common.Applicationcontrol.AllowSetForegroundWindow,T=i.Ts.Nvapp.Localgames.LaunchApplication,R=i.Ts.Nvapp.Nvcplplugin.GetProfileNameFromExe,B=i.Ts.Nvapp.Localgames.DeleteManualApplication,U=i.Ts.Nvapp.Nvcplplugin.DeleteProfile;var Y=function(k){return k[k.FilterByAll=0]="FilterByAll",k[k.FilterByGames=1]="FilterByGames",k[k.FilterByApps=2]="FilterByApps",k[k.FilterByOptimized=3]="FilterByOptimized",k[k.FilterByUnOptimized=4]="FilterByUnOptimized",k[k.FilterByPhotoMode=5]="FilterByPhotoMode",k[k.FilterByGameFilter=6]="FilterByGameFilter",k[k.FilterByHidden=7]="FilterByHidden",k}(Y||{}),ae=function(k){return k[k.SortByRecentLaunch=0]="SortByRecentLaunch",k[k.SortByNameAscending=1]="SortByNameAscending",k[k.SortByNameDescending=2]="SortByNameDescending",k}(ae||{}),G=function(k){return k[k.OnLoad=0]="OnLoad",k[k.OnHideClick=1]="OnHideClick",k}(G||{})},89610:(St,z,s)=>{"use strict";s.d(z,{Ll:()=>h,PW:()=>C,UD:()=>n});var i=s(125);const n=[{criteria:i.dj.FilterByAll,label:"manage3dSettings.filterByAll"},{criteria:i.dj.FilterByGames,label:"manage3dSettings.filterByGames"},{criteria:i.dj.FilterByApps,label:"manage3dSettings.filterByApps"},{criteria:i.dj.FilterByOptimized,label:"manage3dSettings.filterByOptimized"},{criteria:i.dj.FilterByUnOptimized,label:"manage3dSettings.filterByUnOptimized"},{criteria:i.dj.FilterByPhotoMode,label:"manage3dSettings.filterByPhotoMode"},{criteria:i.dj.FilterByGameFilter,label:"manage3dSettings.filterByGameFilter"},{criteria:i.dj.FilterByHidden,label:"manage3dSettings.filterByHidden"}],h=[{criteria:i.NO.SortByRecentLaunch,label:"common.recent"},{criteria:i.NO.SortByNameAscending,label:"common.programsAtoZ"},{criteria:i.NO.SortByNameDescending,label:"common.programsZtoA"}],C=250},81038:(St,z,s)=>{"use strict";s.d(z,{w:()=>l});var i=s(26513),n=s(43848),h=s(36466),C=s(94645),S=s(91384),M=s(72147),P=s(65706),x=s(14714),A=s(10174),g=s(58527),m=s(92602);let l=(()=>{class r{constructor(v,E){this.loggingService=v,this.dbService=E,this.notificationStateUpdated$=new i.t(null),this.logger=this.loggingService.getLogger("nvapp/SidebarNotificationBadgeService"),this.globalStore=this.dbService.getGlobalStore(C.xI.GlobalStore),this.initialize()}getNotificationStateUpdatedListener(){return this.notificationStateUpdated$.asObservable()}canEnableDriverNotificationBadge(v){if(v){const E=v.driverType+"-"+v.version,T=!this.notificationBadgeState?.includes(E);return this.logger.info("driver notification badge enable state",T),T}return!1}canEnableRewardsNotificationBadge(v,E){if(E?.available?.length){let T="";v.isAuthenticated&&(T=v.userId+"-");const R=!E?.available?.every(B=>this.notificationBadgeState?.includes(T+B?.campaign?.uuid));return this.logger.info("reward notification badge enable state",R),R}return!1}getDbState(){return this.globalStore.getItem(C.xI.NotificationBadgeState).pipe((0,S.M)(v=>{this.notificationBadgeState=v??[],this.logger.info("notification db state",this.notificationBadgeState)}))}setRewardsNotificationDbState(v,E){let T="",R=!1;return v.isAuthenticated&&(T=v.userId+"-"),this.getDbState().pipe((0,M.n)(B=>{const U=B??[];return E?.available?.forEach(Y=>{const ae=T+Y?.campaign?.uuid;U.includes(ae)||(R=!0,U.push(ae))}),R?this.setDbState(U):(0,n.of)(!1)}))}setDriversNotificationDbState(v){const E=v.driverType+"-"+v.version;return this.getDbState().pipe((0,M.n)(T=>{const R=T??[];return R?.includes(E)?(0,n.of)(!1):(R.push(E),this.setDbState(R))}))}saveRewardsNotificationDbState(v,E){return E&&E?.available?.length?this.setRewardsNotificationDbState(v,E).pipe((0,P.s)(1),(0,x.W)(T=>(this.logger.error("failed to save rewards notification badge state in db",T),(0,n.of)(!1)))):(0,n.of)(!1)}saveDriversNotificationDbState(v){return v?this.setDriversNotificationDbState(v).pipe((0,P.s)(1),(0,x.W)(E=>(this.logger.error("failed to save drivers notification badge state in db",E),(0,n.of)(!1)))):(0,n.of)(!1)}initialize(){this.getDbState().pipe((0,P.s)(1)).subscribe(h.l,v=>{this.logger.info("error failed to fetch db state for notification badge",v)})}setDbState(v){return this.logger.info("updating the index db state for notification badge with state",v),this.globalStore.setItem(C.xI.NotificationBadgeState,v).pipe((0,S.M)(()=>{this.notificationBadgeState=v,this.notificationStateUpdated$.next()}),(0,A.u)(!0))}static{this.\u0275fac=function(E){return new(E||r)(g.KVO(m.J6),g.KVO(m.at))}}static{this.\u0275prov=g.jDH({token:r,factory:r.\u0275fac,providedIn:"root"})}}return r})()},43071:(St,z,s)=>{"use strict";s.d(z,{o:()=>r});var i=s(80583),n=s(26513),h=s(31315),C=s(26772),S=s(54803);const M=[{type:{id:S.D.Home,route:C.f.Home},text:S.D.Home,svgIconId:S.Q[S.D.Home],fontTypeClass:"font-body3"},{type:{id:S.D.Drivers,route:C.f.Drivers},text:S.D.Drivers,svgIconId:S.Q[S.D.Drivers],fontTypeClass:"font-body3"},{type:{id:S.D.GraphicsSettings,route:C.f.Manage3dSettings},text:S.D.GraphicsSettings,svgIconId:S.Q[S.D.GraphicsSettings],fontTypeClass:"font-body3"},{type:{id:S.D.System,route:C.f.System},text:S.D.System,svgIconId:S.Q[S.D.System],fontTypeClass:"font-body3"},{type:{id:S.D.Rewards,route:C.f.Rewards},text:S.D.Rewards,svgIconId:S.Q[S.D.Rewards],fontTypeClass:"font-body3"},{type:{id:S.D.AppSettings,route:C.f.Preferences},text:S.D.AppSettings,svgIconId:S.Q[S.D.AppSettings],fontTypeClass:"font-body3"}];var P=s(58527),x=s(82102),A=s(7486),g=s(92602),m=s(10404),l=s(81038);let r=(()=>{class u{constructor(E,T,R,B,U){this.driverUpdateService=E,this.rewardService=T,this.loggingService=R,this.loginService=B,this.sidebarNotificationService=U,this.selectedPage$=new i.B7,this.sidebarPageItems$=new n.t(M),this.logger=this.loggingService.getLogger("nvapp/SidebarService")}initialize(){(0,h.zV)([this.driverUpdateService.getAvailableDriverRecommendation(),this.rewardService.getRewards(),this.loginService.accountStatusChanged,this.sidebarNotificationService.getNotificationStateUpdatedListener()]).subscribe(([E,T,R,B])=>{this.updateNotificationBadgeState(R,T,E)},E=>this.logger.error("Error occurred while fetching drivers and available rewards info",E))}updateSidebarPageItems(E){const T=this.getSidebarPageItems();T.map(R=>{const B=E.includes(R?.type?.route);return B&&this.selectedPage$.next(R),R.fontTypeClass=B?"font-sub3":"font-body3",R}),this.sidebarPageItems$.next(T)}getSidebarPageItemsObservable(){return this.sidebarPageItems$}getSelectedPage(){return this.selectedPage$.asObservable()}updateNotificationBadgeState(E,T,R){const B=this.getSidebarPageItems();B.forEach(U=>{U.type.route===C.f.Drivers&&(U.hasNotificationBadge=this.sidebarNotificationService.canEnableDriverNotificationBadge(R)),U.type.route===C.f.Rewards&&(U.hasNotificationBadge=this.sidebarNotificationService.canEnableRewardsNotificationBadge(E,T))}),this.sidebarPageItems$.next(B)}getSidebarPageItems(){return this.sidebarPageItems$.getValue()}static{this.\u0275fac=function(T){return new(T||u)(P.KVO(x.f),P.KVO(A.y),P.KVO(g.J6),P.KVO(m.HF),P.KVO(l.w))}}static{this.\u0275prov=P.jDH({token:u,factory:u.\u0275fac,providedIn:"root"})}}return u})()},40848:(St,z,s)=>{"use strict";s.d(z,{C3:()=>Q,CG:()=>ue,Ch:()=>be,E6:()=>k,EB:()=>C,Fr:()=>P,Gb:()=>A,I0:()=>it,IU:()=>fe,KD:()=>ae,L1:()=>x,Lh:()=>vt,Lm:()=>R,Lp:()=>et,Mb:()=>X,Nw:()=>ze,OC:()=>dt,OE:()=>J,Os:()=>nt,R:()=>U,Rg:()=>i,SF:()=>rt,T8:()=>u,Uu:()=>m,V3:()=>B,VD:()=>Je,V_:()=>q,XM:()=>S,Z$:()=>Y,_j:()=>Ke,c4:()=>se,cF:()=>Fe,d3:()=>T,dE:()=>Pe,dd:()=>Qe,fb:()=>g,fs:()=>E,g1:()=>le,iI:()=>Ce,kJ:()=>Ge,kR:()=>Xe,m_:()=>me,px:()=>$e,re:()=>ct,sK:()=>r,tV:()=>M,un:()=>ve,vK:()=>Se,vr:()=>G,vt:()=>l,x0:()=>Ve,zP:()=>v});var i=function(ye){return ye.Full="Full",ye.None="None",ye}(i||{}),n=function(ye){return ye.Functional="functional",ye.Technical="technical",ye.Behavioral="behavioral",ye}(n||{}),h=function(ye){return ye.Anonymous="anonymous",ye.DeviceOnly="deviceOnly",ye.DevicePreferred="devicePreferred",ye.UserPreferred="userPreferred",ye.UserRequired="userRequired",ye}(h||{}),C=function(ye){return ye.Other="Other",ye.DriverReleaseHighlightContentExpanded="DriverReleaseHighlightContentExpanded",ye.DriverDownloadStart="DriverDownloadStart",ye.DriverDownloadCancel="DriverDownloadCancel",ye.ExpressInstall="ExpressInstall",ye.CustomOverInstall="CustomOverInstall",ye.CustomCleanInstall="CustomCleanInstall",ye.DriverReinstall="DriverReinstall",ye.MarqueeScroll="MarqueeScroll",ye.GRDArticleLink="GRDArticleLink",ye.InstalledDriverLearnMore="InstalledDriverLearnMore",ye.DriverSelectionLearnMore="DriverSelectionLearnMore",ye.CheckForUpdate="CheckForUpdate",ye.Login="Login",ye.Logout="Logout",ye.AccountManagementSso="AccountManagementSso",ye.DriverTypeArticleLink="DriverTypeArticleLink",ye.DriverViewDetails="DriverViewDetails",ye.RedeemCouponCode="RedeemCouponCode",ye.RedeemAvailableReward="RedeemAvailableReward",ye.RedeemClaimableReward="RedeemClaimableReward",ye.ViewDetailsRedeemed="ViewDetailsRedeemed",ye.ViewDetailsAvailableReward="ViewDetailsAvailableReward",ye.ViewDetailsClaimableReward="ViewDetailsClaimableReward",ye.CouponCodeInfoDialog="CouponCodeInfoDialog",ye.ContinueToRedeem="ContinueToRedeem",ye.ContinueRedeemOnPlatform="ContinueRedeemOnPlatform",ye.RedeemUtlityCard="RedeemUtlityCard",ye.RedeemSideBar="RedeemSideBar",ye.ScanNow="ScanNow",ye.LibrarySeeAll="LibrarySeeAll",ye.LibraryGraphicsSettings="LibraryGraphicsSettings",ye.LibraryPlay="LibraryPlay",ye.ViewSystemDetails="ViewSystemDetails",ye.CopySystemDetails="CopySystemDetails",ye.OpenNvCpl="OpenNvCpl",ye.IdentifyDisplay="IdentifyDisplay",ye.IdentifyAllDisplays="IdentifyAllDisplays",ye.RestoreDefaultDisplay="RestoreDefaultDisplay",ye.HDCPInfoDialog="HDCPInfoDialog",ye.RestoreGlobalDisplaySettings="RestoreGlobalDisplaySettings",ye.GSyncUpsellDialog="GSyncUpsellDialog",ye.GSyncSettingInfo="GSyncSettingInfo",ye.GSyncUpsellLink="GSyncUpsellLink",ye.ScalingModeInfoDialog="ScalingModeInfoDialog",ye.ScalingDeviceInfoDialog="ScalingDeviceInfoDialog",ye.ScalingPreviewInfoDialog="ScalingPreviewInfoDialog",ye.OutputColorSettingsInfoDialog="OutputColorSettingsInfoDialog",ye.ColorAccuracyModeInfoDialog="ColorAccuracyModeInfoDialog",ye.ColorChannelInfoDialog="ColorChannelInfoDialog",ye.ContentTypeInfoDialog="ContentTypeInfoDialog",ye}(C||{}),S=function(ye){return ye.LaunchUI="LaunchUI",ye.DDDataConsentRequestShown="DDDataConsentRequestShown",ye}(S||{}),M=function(ye){return ye.Drivers="Drivers",ye.Home="Home",ye.Other="Other",ye}(M||{}),P=function(ye){return ye.GameReadyDriver="GameReadyDriver",ye.StudioDriver="StudioDriver",ye.Other="Other",ye}(P||{}),x=function(ye){return ye.Success="Success",ye.Failure="Failure",ye}(x||{}),A=function(ye){return ye.LoginviaLoginHint="LoginviaLoginHint",ye.UsualAuthFlow="UsualAuthFlow",ye}(A||{}),g=function(ye){return ye.Success="Success",ye.Failure="Failure",ye.CancelledLoginCompleted="CancelledLoginCompleted",ye}(g||{}),m=function(ye){return ye.Lcars="Lcars",ye.Cms="Cms",ye.Survey="Survey",ye.Starfleet="Starfleet",ye.Other="Other",ye.Gfwsl="Gfwsl",ye.KVStore="KVStore",ye.GxTarget="GxTarget",ye.ALS="ALS",ye.AwsS3="AwsS3",ye.PNS="PNS",ye.GFService="GFService",ye.Aem="Aem",ye}(m||{}),l=function(ye){return ye.Html="Html",ye.Json="Json",ye.Image="Image",ye.Video="Video",ye.Marquee="Marquee",ye.Icon="Icon",ye.Unknown="Unknown",ye}(l||{}),r=function(ye){return ye.NvAppClient="NvAppClient",ye.Unknown="Unknown",ye}(r||{}),u=function(ye){return ye.UNDEFINED="UNDEFINED",ye.TRUE="TRUE",ye.FALSE="FALSE",ye}(u||{}),v=function(ye){return ye.DownloadAttemptExhausted="DownloadAttemptExhausted",ye.InstallationAttemptExhausted="InstallationAttemptExhausted",ye.Banner="Banner",ye.UpdateAttemptExhausted="UpdateAttemptExhausted",ye}(v||{}),E=function(ye){return ye.PopupShown="PopupShown",ye.RelaunchNow="RelaunchNow",ye.Redirect="Redirect",ye}(E||{}),T=function(ye){return ye.Home="Home",ye.Drivers="Drivers",ye.Graphics="Graphics",ye.Graphics_ProgramSettings="Graphics_ProgramSettings",ye.Graphics_GlobalSettings="Graphics_GlobalSettings",ye.Redeem="Redeem",ye.Settings="Settings",ye.Settings_Features="Settings_Features",ye.Settings_Notifications="Settings_Notifications",ye.Settings_About="Settings_About",ye.System="System",ye.System_Overview="System_Overview",ye.System_Video="System_Video",ye.System_Performance="System_Performance",ye.System_Displays="System_Displays",ye.Unknown="Unknown",ye}(T||{}),R=function(ye){return ye.CouponCodeVerificationResponseTime="CouponCodeVerificationResponseTime",ye.ClaimEntitlementResponseTime="ClaimEntitlementResponseTime",ye.RedemptionHistoryFetchResponseTime="RedemptionHistoryFetchResponseTime",ye.CouponCodeVRSCreate="CouponCodeVRSCreate",ye.ClaimEntitlementVRSCreate="ClaimEntitlementVRSCreate",ye.CouponCodeRedeemOnServer="CouponCodeRedeemOnServer",ye.AvailableRewardsRedeemOnServer="AvailableRewardsRedeemOnServer",ye.RedemptionHistoryFetchVrSStatus="RedemptionHistoryFetchVrSStatus",ye.AvailableRewardsFetchVRSReward="AvailableRewardsFetchVRSReward",ye}(R||{}),B=function(ye){return ye.OPS="OPS",ye.CustomOPS="CustomOPS",ye.BOPS="BOPS",ye.CustomBOPS="CustomBOPS",ye}(B||{}),U=function(ye){return ye.Applied="Applied",ye.Reverted="Reverted",ye.AutoApplied="AutoApplied",ye}(U||{}),Y=function(ye){return ye.WhisperModeV2Toast="WhisperModeV2Toast",ye.WhisperModeV1Toast="WhisperModeV1Toast",ye.NISV2Toast="NISV2Toast",ye.BatteryBoostV2Toast="BatteryBoostV2Toast",ye.BatteryBoostV1Toast="BatteryBoostV1Toast",ye.OptimizeAll="OptimizeAll",ye.LaunchUI="LaunchUI",ye.FocusUI="FocusUI",ye}(Y||{}),ae=function(ye){return ye.PerformanceMonitoring="PerformanceMonitoring",ye.ManualOverclocking="ManualOverclocking",ye.AutomaticOverclocking="AutomaticOverclocking",ye.GameReadyDriverOverclocking="GameReadyDriverOverclocking",ye}(ae||{}),G=function(ye){return ye.ConsentAlreadyPresent="ConsentAlreadyPresent",ye.NotPresented="NotPresented",ye.Agreed="Agreed",ye.Cancelled="Cancelled",ye.UacCancelled="UacCancelled",ye}(G||{}),k=function(ye){return ye.Default="Default",ye.Custom="Custom",ye.None="None",ye}(k||{}),X=function(ye){return ye.NA="NA",ye.NoHdrDisplayConnected="NoHdrDisplayConnected",ye.EnableHdrFromWindows="EnableHdrFromWindows",ye}(X||{}),q=function(ye){return ye.Unknown="Unknown",ye.SuperResValueAuto="SuperResValueAuto",ye.SuperResValue1="SuperResValue1",ye.SuperResValue2="SuperResValue2",ye.SuperResValue3="SuperResValue3",ye.SuperResValue4="SuperResValue4",ye}(q||{}),Q=function(ye){return ye.Unknown="Unknown",ye.SuperResGpuUtil_Low="SuperResGpuUtil_Low",ye.SuperResGpuUtil_Medium="SuperResGpuUtil_Medium",ye.SuperResGpuUtil_High="SuperResGpuUtil_High",ye}(Q||{});const te={Click:{name:"Click",gdprLevel:n.Functional,personalization:h.DevicePreferred},MarqueeElement:{name:"MarqueeElement",gdprLevel:n.Functional,personalization:h.DevicePreferred},PluginAPIStatus:{name:"PluginAPIStatus",gdprLevel:n.Technical,personalization:h.DevicePreferred},AutomaticEvent:{name:"AutomaticEvent",gdprLevel:n.Functional,personalization:h.DevicePreferred},ResourceLoadError:{name:"ResourceLoadError",gdprLevel:n.Functional,personalization:h.DevicePreferred},PageLoadPerformanceMetrics:{name:"PageLoadPerformanceMetrics",gdprLevel:n.Functional,personalization:h.DevicePreferred},HTTPCallResult:{name:"HTTPCallResult",gdprLevel:n.Functional,personalization:h.DevicePreferred},AppDiscoveryEvent:{name:"AppDiscoveryEvent",gdprLevel:n.Functional,personalization:h.DevicePreferred},SettingChange:{name:"SettingChange",gdprLevel:n.Functional,personalization:h.DevicePreferred},LoginEvent:{name:"LoginEvent",gdprLevel:n.Functional,personalization:h.DevicePreferred},CreateHTTPServerError:{name:"CreateHTTPServerError",gdprLevel:n.Functional,personalization:h.DevicePreferred},ClientSelfUpdate:{name:"ClientSelfUpdate",gdprLevel:n.Functional,personalization:h.DevicePreferred},OOTBProgress:{name:"OOTBProgress",gdprLevel:n.Functional,personalization:h.DevicePreferred},RewardsRedeemEvent:{name:"RewardsRedeemEvent",gdprLevel:n.Functional,personalization:h.DevicePreferred},OptimalPlayableSettings:{name:"OptimalPlayableSettings",gdprLevel:n.Functional,personalization:h.DevicePreferred},OPSClickEvent:{name:"OPSClickEvent",gdprLevel:n.Functional,personalization:h.DevicePreferred},SettingsState:{name:"SettingsState",gdprLevel:n.Functional,personalization:h.DevicePreferred},OPSAtGraphicsView:{name:"OPSAtGraphicsView",gdprLevel:n.Functional,personalization:h.DevicePreferred},NvidiaSettingsUseProfile:{name:"NvidiaSettingsUseProfile",gdprLevel:n.Functional,personalization:h.DevicePreferred},Apply3dSettingFailed:{name:"Apply3dSettingFailed",gdprLevel:n.Functional,personalization:h.DevicePreferred},NvidiaSettingsLoadError:{name:"NvidiaSettingsLoadError",gdprLevel:n.Functional,personalization:h.DevicePreferred},Restore3dSettings:{name:"Restore3dSettings",gdprLevel:n.Functional,personalization:h.DevicePreferred},GpuPerfTuningEvent:{name:"GpuPerfTuningEvent",gdprLevel:n.Technical,personalization:h.DevicePreferred},PageVisit:{name:"PageVisit",gdprLevel:n.Functional,personalization:h.DevicePreferred},HdrSoftError:{name:"HdrSoftError",gdprLevel:n.Technical,personalization:h.DevicePreferred},VsrSettingChange:{name:"VsrSettingChange",gdprLevel:n.Functional,personalization:h.DevicePreferred},HdrSettingChange:{name:"HdrSettingChange",gdprLevel:n.Functional,personalization:h.DevicePreferred},DisplayDriverTelemetryConsentRequestAction:{name:"DisplayDriverTelemetryConsentRequestAction",gdprLevel:n.Functional,personalization:h.DevicePreferred}};class Ee{constructor(Ot){this.parameters=Ot,this.ts=(new Date).toISOString()}}class it extends Ee{constructor(Ot){super(Ot),this.name=te.Click.name,this.gdprLevel=te.Click.gdprLevel,this.personalization=te.Click.personalization}}class Fe extends Ee{constructor(Ot){super(Ot),this.name=te.MarqueeElement.name,this.gdprLevel=te.MarqueeElement.gdprLevel,this.personalization=te.MarqueeElement.personalization}}class Qe extends Ee{constructor(Ot){super(Ot),this.name=te.PluginAPIStatus.name,this.gdprLevel=te.PluginAPIStatus.gdprLevel,this.personalization=te.PluginAPIStatus.personalization}}class ct extends Ee{constructor(Ot){super(Ot),this.name=te.AutomaticEvent.name,this.gdprLevel=te.AutomaticEvent.gdprLevel,this.personalization=te.AutomaticEvent.personalization}}class Ge extends Ee{constructor(Ot){super(Ot),this.name=te.ResourceLoadError.name,this.gdprLevel=te.ResourceLoadError.gdprLevel,this.personalization=te.ResourceLoadError.personalization}}class nt extends Ee{constructor(Ot){super(Ot),this.name=te.PageLoadPerformanceMetrics.name,this.gdprLevel=te.PageLoadPerformanceMetrics.gdprLevel,this.personalization=te.PageLoadPerformanceMetrics.personalization}}class Je extends Ee{constructor(Ot){super(Ot),this.name=te.HTTPCallResult.name,this.gdprLevel=te.HTTPCallResult.gdprLevel,this.personalization=te.HTTPCallResult.personalization}}class ze extends Ee{constructor(Ot){super(Ot),this.name=te.AppDiscoveryEvent.name,this.gdprLevel=te.AppDiscoveryEvent.gdprLevel,this.personalization=te.AppDiscoveryEvent.personalization}}class Ke extends Ee{constructor(Ot){super(Ot),this.name=te.SettingChange.name,this.gdprLevel=te.SettingChange.gdprLevel,this.personalization=te.SettingChange.personalization}}class Ve extends Ee{constructor(Ot){super(Ot),this.name=te.LoginEvent.name,this.gdprLevel=te.LoginEvent.gdprLevel,this.personalization=te.LoginEvent.personalization}}class $e extends Ee{constructor(Ot){super(Ot),this.name=te.CreateHTTPServerError.name,this.gdprLevel=te.CreateHTTPServerError.gdprLevel,this.personalization=te.CreateHTTPServerError.personalization}}class dt extends Ee{constructor(Ot){super(Ot),this.name=te.ClientSelfUpdate.name,this.gdprLevel=te.ClientSelfUpdate.gdprLevel,this.personalization=te.ClientSelfUpdate.personalization}}class Pe extends Ee{constructor(Ot){super(Ot),this.name=te.OOTBProgress.name,this.gdprLevel=te.OOTBProgress.gdprLevel,this.personalization=te.OOTBProgress.personalization}}class J extends Ee{constructor(Ot){super(Ot),this.name=te.RewardsRedeemEvent.name,this.gdprLevel=te.RewardsRedeemEvent.gdprLevel,this.personalization=te.RewardsRedeemEvent.personalization}}class vt extends Ee{constructor(Ot){super(Ot),this.name=te.OptimalPlayableSettings.name,this.gdprLevel=te.OptimalPlayableSettings.gdprLevel,this.personalization=te.OptimalPlayableSettings.personalization}}class ve extends Ee{constructor(Ot){super(Ot),this.name=te.OPSClickEvent.name,this.gdprLevel=te.OPSClickEvent.gdprLevel,this.personalization=te.OPSClickEvent.personalization}}class ue extends Ee{constructor(Ot){super(Ot),this.name=te.SettingsState.name,this.gdprLevel=te.SettingsState.gdprLevel,this.personalization=te.SettingsState.personalization}}class et extends Ee{constructor(Ot){super(Ot),this.name=te.OPSAtGraphicsView.name,this.gdprLevel=te.OPSAtGraphicsView.gdprLevel,this.personalization=te.OPSAtGraphicsView.personalization}}class se extends Ee{constructor(Ot){super(Ot),this.name=te.NvidiaSettingsUseProfile.name,this.gdprLevel=te.NvidiaSettingsUseProfile.gdprLevel,this.personalization=te.NvidiaSettingsUseProfile.personalization}}class Ce extends Ee{constructor(Ot){super(Ot),this.name=te.Apply3dSettingFailed.name,this.gdprLevel=te.Apply3dSettingFailed.gdprLevel,this.personalization=te.Apply3dSettingFailed.personalization}}class be extends Ee{constructor(Ot){super(Ot),this.name=te.NvidiaSettingsLoadError.name,this.gdprLevel=te.NvidiaSettingsLoadError.gdprLevel,this.personalization=te.NvidiaSettingsLoadError.personalization}}class rt extends Ee{constructor(Ot){super(Ot),this.name=te.Restore3dSettings.name,this.gdprLevel=te.Restore3dSettings.gdprLevel,this.personalization=te.Restore3dSettings.personalization}}class me extends Ee{constructor(Ot){super(Ot),this.name=te.GpuPerfTuningEvent.name,this.gdprLevel=te.GpuPerfTuningEvent.gdprLevel,this.personalization=te.GpuPerfTuningEvent.personalization}}class le extends Ee{constructor(Ot){super(Ot),this.name=te.PageVisit.name,this.gdprLevel=te.PageVisit.gdprLevel,this.personalization=te.PageVisit.personalization}}class Xe extends Ee{constructor(Ot){super(Ot),this.name=te.HdrSoftError.name,this.gdprLevel=te.HdrSoftError.gdprLevel,this.personalization=te.HdrSoftError.personalization}}class Se extends Ee{constructor(Ot){super(Ot),this.name=te.VsrSettingChange.name,this.gdprLevel=te.VsrSettingChange.gdprLevel,this.personalization=te.VsrSettingChange.personalization}}class fe extends Ee{constructor(Ot){super(Ot),this.name=te.HdrSettingChange.name,this.gdprLevel=te.HdrSettingChange.gdprLevel,this.personalization=te.HdrSettingChange.personalization}}},1242:(St,z,s)=>{"use strict";s.d(z,{AY:()=>h.A,C3:()=>n.C3,CG:()=>n.CG,Ch:()=>n.Ch,E6:()=>n.E6,EB:()=>n.EB,GC:()=>i.GC,Gb:()=>n.Gb,Hb:()=>i.Hb,IH:()=>i.IH,IU:()=>n.IU,JZ:()=>i.JZ,KD:()=>n.KD,L1:()=>n.L1,L4:()=>i.L4,LG:()=>i.c4,Lh:()=>n.Lh,Lm:()=>n.Lm,Lp:()=>n.Lp,Mb:()=>n.Mb,NU:()=>i.NU,Nw:()=>n.Nw,OC:()=>n.OC,OO:()=>i.OO,R:()=>n.R,RS:()=>i.RS,SF:()=>n.SF,T8:()=>n.T8,Uf:()=>i.Uf,Uu:()=>n.Uu,V3:()=>n.V3,VD:()=>n.VD,V_:()=>n.V_,We:()=>i.We,XB:()=>i.XB,Z$:()=>n.Z$,aw:()=>i.aw,c4:()=>n.c4,d3:()=>n.d3,dE:()=>n.dE,eU:()=>i.Nw,f3:()=>i.f3,fb:()=>n.fb,fs:()=>n.fs,iI:()=>n.iI,iZ:()=>i.iZ,ih:()=>i.ih,k0:()=>i.k0,kR:()=>n.kR,mF:()=>i.mF,nx:()=>i.nx,px:()=>n.px,sK:()=>n.sK,tV:()=>n.tV,un:()=>n.un,vK:()=>n.vK,vr:()=>n.vr,vt:()=>n.vt,yP:()=>i.yP,zP:()=>n.zP,zg:()=>i.zg});var i=s(61913),n=s(40848),h=s(56347)},15294:(St,z,s)=>{"use strict";s.d(z,{V:()=>l});var i=s(14354),n=s(80583),h=s(31315),C=s(8619),S=s(83915),M=s(40848),P=s(26772),x=s(58527),A=s(56347),g=s(78812),m=s(92602);let l=(()=>{class r{constructor(v,E,T,R){this.router=v,this.telemetryUtilService=E,this.telemetryService=T,this.loggingService=R,this.tabVisitedEvent=new n.B7,this.logger=this.loggingService.getLogger("nvapp/PageVisitTelemetryService")}initialize(){this.routeListenerForPageVisit(),this.setupListenerForTabChange()}setTabChangedForPageEventTelemetry(v){this.tabVisitedEvent.next(v)}setupListenerForTabChange(){this.tabVisitedEvent.asObservable().subscribe(v=>{this.telemetryUtilService.sendPageVisitEvent(v)})}routeListenerForPageVisit(){(0,h.zV)([this.router.events,this.telemetryService.getDeviceConsentObservable(),this.telemetryUtilService.getDeviceIDSetObs()]).pipe((0,C.p)(([v,E,T])=>!!E&&v instanceof i.OY&&v?.routerEvent instanceof i.wF),(0,S.T)(([v,E,T])=>v.routerEvent)).subscribe(v=>{this.logger.info("route info end",v);let E=v?.url?.substring(v.url?.indexOf("/")+1);const T=v?.urlAfterRedirects?.substring(v.urlAfterRedirects.indexOf("/")+1);E=E&&E!==P.f.ReleaseHighlights?E:T;const R=this.getViewNameFromRouteUrl(E);this.telemetryUtilService.sendPageVisitEvent(R)},v=>{this.logger.error("there is problem in subscribing to route events",v)})}getViewNameFromRouteUrl(v){switch(v){case P.f.Home:return M.d3.Home;case P.f.Drivers:return M.d3.Drivers;case P.f.Manage3dSettings:return M.d3.Graphics;case P.f.Rewards:return M.d3.Redeem;case P.f.Preferences:return M.d3.Settings;case P.f.System:return M.d3.System;default:return M.d3.Unknown}}static{this.\u0275fac=function(E){return new(E||r)(x.KVO(i.Ix),x.KVO(A.A),x.KVO(g.H0),x.KVO(m.J6))}}static{this.\u0275prov=x.jDH({token:r,factory:r.\u0275fac,providedIn:"root"})}}return r})()},56347:(St,z,s)=>{"use strict";s.d(z,{A:()=>ae});var i=s(85735),n=s(26513),h=s(35146),C=s(93181),S=s(91384),M=s(83915),P=s(65706),x=s(92602),A=s(78812),g=s(26875),l=s(61913),r=s(40848),u=s(26772),v=s(2216),E=s(58527),T=s(47847),R=s(14709),B=s(14354),U=s(73370),Y=s(3135);let ae=(()=>{class G{constructor(X,q,Q,ce,te,Ee,it,Fe,Qe,ct){this.loggingService=X,this.appConfig=q,this.appConfigParams=Q,this.telemetryService=ce,this.systemInfoService=te,this.networkStatusService=Ee,this.activatedRoute=it,this.piplLocaleConfigService=Fe,this.gfwslParamsService=Qe,this.appThemeService=ct,this.deviceIdSetSubject=new i.m(1),this.sendAppLaunchTelemetrySubject=new n.t(!1),this.logger=this.loggingService.getLogger("nvapp-telemetry-util.service"),this.initialize().subscribe(()=>{this.logger.info("Successfully generated and stored device id"),this.deviceIdSetSubject.next(),this.deviceIdSetSubject.complete()},Ge=>{this.logger.error("Error fetching deviceId: ",Ge)})}initialize(){this.registerForPiplLocalizationConfigUpdateEvent();let X=this.appConfig.build.version;void 0!==this.appConfigParams.production&&!1===this.appConfigParams.production&&(X="dev-"+this.appConfig.build.version);const q=this.systemInfoService.getSystemInfo([x.Lu.DeviceId,x.Lu.Platform,x.Lu.OSVersion,x.Lu.VendorName,x.Lu.SystemName,x.Lu.DeviceType,x.Lu.BrowserName,x.Lu.SubApiName,x.Lu.ErrorMessage,x.Lu.PluginName,x.Lu.ApiName,x.Lu.ApiStatus]).pipe((0,S.M)(Q=>{const{SubApiName:ce,ErrorMessage:te,PluginName:Ee,ApiName:it,ApiStatus:Fe}=Q;this.sendPluginApiStatusTelemetry({apiName:it,pluginName:Ee,subApiName:ce,errorMessage:te,status:Fe?.toString()})}));return(0,h.yU)(this.systemInfoService.getDeviceOSType(),q).pipe((0,M.T)(([Q,ce])=>this.initCommonData({deviceOS:Q,clientType:l.Vd.Native,clientVer:X,systemInfo:ce,productName:this.appConfig.jsEvents.productName,productVersion:this.appConfig.build.version})))}initCommonData(X){const q=X.systemInfo;return this.telemetryService.setEventsCommonData({clientVer:X.clientVer,deviceId:q.DeviceId,clientType:X.clientType,clientVariant:this.getClientVariantType(this.appConfig.build.variant),deviceOS:X.deviceOS,deviceOSVersion:q.OSVersion,deviceMake:q.VendorName||x.Qe,deviceModel:q.SystemName||x.Qe,deviceType:q.DeviceType,browserType:q.BrowserName,productName:X.productName||x.Qe,productVersion:X.clientVer||x.Qe},!1),!0}getDeviceIDSetObs(){return this.deviceIdSetSubject.asObservable()}getClientVariantType(X){switch(X){case"ibeta":return l.zg.IBeta;case"release":return l.zg.Release;default:return l.zg.Undefined}}sendPluginApiStatusTelemetry(X){if(!(0,g.isEmpty)(X)&&X.pluginName&&X.apiName){const q=new r.dd({apiName:X.apiName||x.Qe,subApiName:X.subApiName||x.Qe,errorMessage:X.errorMessage||x.Qe,pluginName:X.pluginName||x.Qe,status:this.getApiStatus(X.status),params:X.params||x.Qe});this.telemetryService.push(q)}else this.logger.info("Plugin API status info is undefined")}getApiStatus(X){return"Success"===X?r.L1.Success:r.L1.Failure}sendLaunchUiTelemetry(){const X=new r.re({eventInstance:r.XM.LaunchUI});this.telemetryService.push(X)}sendLaunchTimeTelemetry(){(0,C.p)([this.deviceIdSetSubject,this.telemetryService.getDeviceConsentObservable()]).pipe((0,P.s)(1)).subscribe(X=>{const q=this.telemetryService.getLaunchUiEventSent();q||(this.logger.info("Sending the launchTime telemetry"),this.sendLaunchUiTelemetry(),this.telemetryService.setLaunchUiEventSent(!0)),this.sendAppLaunchTelemetrySubject.next(!q)},X=>this.logger.error("Error occurred while sending launchTime Telemetry ",X))}getAppLaunchTelemetryObservable(){return this.sendAppLaunchTelemetrySubject.asObservable()}sendClickEvent(X,q,Q=!1,ce,te){const Ee=new r.I0({itemType:X,hierarchy:this.getHierarchy(Q,q)||x.Qe,additionalData:ce||x.Qe});this.telemetryService.push(Ee,null,te)}sendSettingChangeEvent(X,q,Q,ce=!1,te){const Ee=new r._j({settingType:X||x.Qe,settingValue:q||x.Qe,hierarchy:this.getHierarchy(ce,Q)||x.Qe,errorDetails:te||x.Qe});this.telemetryService.push(Ee)}sendResourceLoadErrorEvent(X,q,Q,ce,te,Ee=!1){if(this.networkStatusService.isOnline){const it=new r.kJ({type:X||r.vt.Unknown,url:q||"",error:Q||"",actionLabel:ce||"",hierarchy:this.getHierarchy(Ee,te)||""});this.telemetryService.push(it)}else this.logger.warn(`Skipped sending resource load event as user is offline for type ${X} url ${q}`)}sendMarqueeElement(X,q,Q,ce,te,Ee,it,Fe,Qe){const ct=new r.cF({url:X||"",action:q||"",section:Q||"",feature:ce||r.tV.Other,position:null!==te?te:-1,driverVersion:it||A.oX.Undefined,driverType:Fe||r.Fr.Other,uniqueContent:Ee||"",aggregateCount:Qe||1});this.telemetryService.push(ct)}getHierarchy(X,q){return X?`${this.telemetryService.getScreen()}${q?"/"+q:""}`:q}getCurrentUiPage(){const X=this.activatedRoute.snapshot._routerState.url.replace(u.f.Root,"").toUpperCase();return this.logger.info(" User Current Page:",X),X}getProductName(){return this.appConfig.jsEvents.productName}getProductVersion(){return this.appConfig.build.version}sendPageVisitEvent(X){const q=new r.g1({viewName:X});this.telemetryService.push(q)}getDriverType(X){switch(X){case v.uj.GameReadyDriver:return r.Fr.GameReadyDriver;case v.uj.CreatorReadyDriver:return r.Fr.StudioDriver;default:return r.Fr.Other}}registerForPiplLocalizationConfigUpdateEvent(){this.piplLocaleConfigService.piplLocalizationConfigUpdated$.subscribe(X=>{X.jsEvents&&""!==X.jsEvents.server?(this.appConfig.jsEvents.server=X.jsEvents.server,this.telemetryService.setServerConfig(this.appConfig.jsEvents.server)):this.logger.error("No jsEvent server url provided")})}getClientId(){return this.appConfig.jsEvents?.clientId}getConsentLevel(X){return!0===X?r.Rg.Full:r.Rg.None}sendRewardsRedeemEvent(X){const q=this.gfwslParamsService.getParams({},["dIDa","lg"]);Array.isArray(q.dIDa)&&(q.dIDa=q.dIDa.join(",")),X.gpuDeviceId=q.dIDa||"",X.lcid=(Array.isArray(q.lg)?q.lg[0]:q.lg)||"0";const Q=new r.OE(X);this.telemetryService.push(Q)}sendPageLoadPerfEvent(X,q={viewDataLoadDuration:0,sectionNames:["","","","",""],sectionDataLoadDurations:[0,0,0,0,0],sectionTotalLoadDurations:[0,0,0,0,0],usedJsHeapSize:-1}){q.usedJsHeapSize=q.usedJsHeapSize??-1;const Q=new r.Os({viewName:X,viewDataLoadDuration:Math.round(q.viewDataLoadDuration),sectionOneName:q.sectionNames[0],sectionOneDataLoadDuration:Math.round(q.sectionDataLoadDurations[0]),sectionOneTotalLoadDuration:Math.round(q.sectionTotalLoadDurations[0]),sectionTwoName:q.sectionNames[1],sectionTwoDataLoadDuration:Math.round(q.sectionDataLoadDurations[1]),sectionTwoTotalLoadDuration:Math.round(q.sectionTotalLoadDurations[1]),sectionThreeName:q.sectionNames[2],sectionThreeDataLoadDuration:Math.round(q.sectionDataLoadDurations[2]),sectionThreeTotalLoadDuration:Math.round(q.sectionTotalLoadDurations[2]),sectionFourName:q.sectionNames[3],sectionFourDataLoadDuration:Math.round(q.sectionDataLoadDurations[3]),sectionFourTotalLoadDuration:Math.round(q.sectionTotalLoadDurations[3]),sectionFiveName:q.sectionNames[4],sectionFiveDataLoadDuration:Math.round(q.sectionDataLoadDurations[4]),sectionFiveTotalLoadDuration:Math.round(q.sectionTotalLoadDurations[4]),totalViewLoadDuration:Math.round(q.sectionTotalLoadDurations[4]),usedJsHeapSize:Math.round(q.usedJsHeapSize)});this.telemetryService.push(Q)}sendSettingsStateTelemetry({settingName:X,settingValue:q,isSupported:Q}){(0,C.p)([this.deviceIdSetSubject,this.telemetryService.getDeviceConsentObservable()]).pipe((0,P.s)(1)).subscribe(ce=>{const te=new r.CG({settingName:X,settingValue:q,isSupported:Q});this.telemetryService.push(te,null)},ce=>this.logger.error("Error occurred while sending SettingsState Telemetry",ce))}static{this.\u0275fac=function(q){return new(q||G)(E.KVO(x.J6),E.KVO(T.Vk),E.KVO(R.aT),E.KVO(A.H0),E.KVO(x.zW),E.KVO(x.CF),E.KVO(B.nX),E.KVO(U.X),E.KVO(Y.T),E.KVO(x.gB))}}static{this.\u0275prov=E.jDH({token:G,factory:G.\u0275fac,providedIn:"root"})}}return G})()},61913:(St,z,s)=>{"use strict";s.d(z,{GC:()=>R,Hb:()=>k,IH:()=>P,JZ:()=>x,L4:()=>ae,NU:()=>G,Nw:()=>Y,OO:()=>u,RS:()=>B,Uf:()=>S,Vd:()=>n,We:()=>h,XB:()=>l,aw:()=>E,c4:()=>v,f3:()=>M,iZ:()=>m,ih:()=>T,k0:()=>U,mF:()=>A,nx:()=>C,yP:()=>g,zg:()=>i});var i=function(X){return X.Release="Release",X.IBeta="iBeta",X.Undefined="undefined",X.Dev="Dev",X.GenerateException="GenerateException",X}(i||{}),n=function(X){return X.Native="Native",X}(n||{});const h={Other:"Other"};var C=function(X){return X.Get="Get",X.Update="Update",X.CancelDownload="CancelDownload",X.Uninstall="Uninstall",X.Launch="Launch",X.TryInBrowser="TryInBrowser",X.OpenInBrowser="OpenInBrowser",X.OpenInBrowserUnsupported="OpenInBrowserUnsupported",X.SeeWhy="SeeWhy",X.LearnMore="LearnMore",X}(C||{}),S=function(X){return X.Start="Start",X.End="End",X}(S||{}),M=function(X){return X.Apps="Apps",X.Drivers="Drivers",X.OOTB="OOTB",X.Redeem="Redeem",X.Home="Home",X.Settings="Settings",X.Graphics="Graphics",X.System="System",X}(M||{}),P=function(X){return X.Library="Library",X.Marquee="Marquee",X}(P||{}),x=function(X){return X.RecommendedDriver="RecommendedDriver",X.InstalledDriver="InstalledDriver",X.DriverInstallation="DriverInstallation",X.ReleaseHighlight="ReleaseHighlight",X}(x||{}),A=function(X){return X.Marquee="Marquee",X}(A||{}),g=function(X){return X.Overview="Overview",X}(g||{});const m="DriverType",l="NVIDIA Overlay";var u=function(X){return X.GetLayout="GetLayout",X.GetDriverInformation="GetDriverInformation",X.GetInstallationBillBoards="GetInstallationBillBoards",X.TargetGfeAchievements="TargetGfeAchievements",X.GetArticleInformation="GetArticleInformation",X.GetGRDSupportedApps="GetGRDSupportedApps",X.GetNSDSupportedApps="GetNSDSupportedApps",X.GetSurvey="GetSurvey",X.GetAppsAndGames="GetAppsAndGames",X.TargetRewards="TargetRewards",X.GetRewardsSession="GetRewardsSession",X.VerifyRewardsSession="VerifyRewardsSession",X.WebRewardsVrsStatus="WebRewardsVrsStatus",X.WebVrsCreate="WebVrsCreate",X.GetOpsCompatibility="GetOpsCompatibility",X.GetShadowPlayReady="GetShadowPlayReady",X.GetPhotoModeReady="GetPhotoModeReady",X.GetFreeStyleReady="GetFreeStyleReady",X.GetReleaseHighlights="GetReleaseHighlights",X}(u||{}),v=function(X){return X.GetInstalledDriver="GetInstalledDriver",X.GetRecommendedDriver="GetRecommendedDriver",X.GetUsabilityStudy="GetUsabilityStudy",X}(v||{}),E=function(X){return X.Skip="Skip",X.Previous="Previous",X.Next="Next",X.Login="Login",X.Done="Done",X.Exit="Exit",X}(E||{}),T=function(X){return X.System="System",X.Notifications="Notifications",X.About="About",X}(T||{}),R=function(X){return X.Enabled="Enabled",X.Disabled="Disabled",X.OptIn="OptIn",X.OptOut="OptOut",X.PathAdded="PathAdded",X.PathRemoved="PathRemoved",X}(R||{}),B=function(X){return X.GameAndPhotoModeFilter="GameAndPhotoModeFilter",X.AutomaticDriverDownload="AutomaticDriverDownload",X.DisplayModeTray="DisplayModeTray",X.AutomaticOptimizeNewGames="AutomaticOptimizeNewGames",X.DriverUpdateNotification="DriverUpdateNotification",X.RewardsNotification="AvailableRewardsNotification",X.DisplayModeNotification="DisplayModeNotification",X.AddScanLocation="AddScanLocation",X.RemoveScanLocation="RemoveScanLocation",X.BetaBuild="EarlyBuilds",X.AppTheme="AppTheme",X}(B||{}),U=function(X){return X.ProfileSettings="ProfileSettings",X.ProgramList="ProgramList",X}(U||{}),Y=function(X){return X.Global="Global",X}(Y||{}),ae=function(X){return X.AutoOptimize="AutoOptimize",X.AppTheme="AppTheme",X}(ae||{}),G=function(X){return X.ProgramSettings="ProgramSettings",X.GlobalSettings="GlobalSettings",X}(G||{});const k="Auto Scroll"},37202:(St,z,s)=>{"use strict";s.d(z,{G:()=>r});var i=s(31308),n=s(61142),h=s(51006),C=s(92602),S=s(58108),M=s(98456),P=s(58527);let x=(()=>{class u{static{this.\u0275fac=function(T){return new(T||u)}}static{this.\u0275mod=P.$C({type:u})}static{this.\u0275inj=P.G2t({imports:[M.S]})}}return u})();var A=s(17076),g=s(79027),m=s(26993);let l=(()=>{class u{static{this.\u0275fac=function(T){return new(T||u)}}static{this.\u0275mod=P.$C({type:u})}static{this.\u0275inj=P.G2t({imports:[A.i,n.MD,C._N,(0,C.BU)(),S.bm]})}}return u})(),r=(()=>{class u{static{this.\u0275fac=function(T){return new(T||u)}}static{this.\u0275mod=P.$C({type:u})}static{this.\u0275inj=P.G2t({providers:[g.F,m.Tw],imports:[n.MD,i.Pd,S.bm,A.i,h.YF,(0,C.BU)(),x,l,C._N,n.MD,S.bm,A.i,h.YF,l]})}}return u})()},168:(St,z,s)=>{"use strict";s.d(z,{f:()=>i});class i{constructor(){this.items=[]}enqueue(h){this.items.push(h)}dequeue(){return this.items.shift()}size(){return this.items.length}peek(){return this.items[0]}}},62668:(St,z,s)=>{"use strict";s.d(z,{n:()=>i});class i extends Error{constructor(h){super(`${h} api timed out`),this.name="PluginApiTimeoutError"}}},33804:(St,z,s)=>{"use strict";s.d(z,{$P:()=>C,PE:()=>h,TP:()=>P,sN:()=>M});var i=s(3321),n=s(23884);const h={header:"",descriptions:[],isSectionFeature:!0,primaryActionButton:{text:"common.viewDetails",visible:!0,disabled:!1}},C=2,M="preferences.myRig.moreItems",P=new Map([[n.xS.GpuName,"systeminfo.gpuName"],[n.xS.Direct3dFeatureLevel,"systeminfo.direct3dFeatureLevel"],[n.xS.Streamprocessor,"systeminfo.streamprocessor"],[n.xS.Graphicsclock,"systeminfo.graphicsclock"],[n.xS.MaxQTechnologies,"systeminfo.maxQTechnologies"],[n.xS.DynamicBoost,"systeminfo.dynamicBoost"],[n.xS.WhisperMode,"systeminfo.whisperMode"],[n.xS.MaxGraphicsPower,"systeminfo.maxGraphicsPower"],[n.xS.ResizableBar,"systeminfo.resizableBar"],[n.xS.MemoryClock,"systeminfo.memoryClock"],[n.xS.MemoryInterface,"systeminfo.memoryInterface"],[n.xS.MemoryBandwidth,"systeminfo.memoryBandwidth"],[n.xS.TotalAvailableGraphicsMemory,"systeminfo.totalAvailableGraphicsMemory"],[n.xS.DedicatedVideoMemory,"systeminfo.dedicatedVideoMemory"],[n.xS.SystemVideoMemory,"systeminfo.systemVideoMemory"],[n.xS.SharedSystemMemory,"systeminfo.sharedSystemMemory"],[n.xS.VideoBios,"systeminfo.videoBios"],[n.xS.Irq,"systeminfo.irq"],[n.xS.Bus,"systeminfo.bus"],[n.xS.DeviceId,"systeminfo.deviceId"],[n.xS.PartNumber,"systeminfo.partNumber"],[n.xS.Resolution,"system.display.resolution"],[n.xS.RefreshRate,"systeminfo.refreshRate"],[n.xS.DesktopColorDepth,"systeminfo.desktopColorDepth"],[n.xS.Hdcp,i.z$],[n.xS.Display,"system.display.displayIdentifier"],[n.xS.DisplayType,"system.display.deviceType.title"],[n.xS.AdvancedOptimus,"systeminfo.advancedOptimus"]])},23884:(St,z,s)=>{"use strict";s.d(z,{Jf:()=>h,LU:()=>C,YJ:()=>n,p5:()=>S,xS:()=>M});const n=s(20924).Ts.Nvapp.Localgames.GetWhisperModeInfo;var h=function(P){return P.GraphicsCard="preferences.myRig.graphicsCard",P.GraphicsCards="preferences.myRig.graphicsCards",P.Driver="preferences.myRig.driver",P.Display="preferences.myRig.display",P.Displays="preferences.myRig.displays",P.Cpu="preferences.myRig.cpu",P.Ram="preferences.myRig.ram",P.Disk="preferences.myRig.storage",P.Disks="preferences.myRig.storages",P.OS="systeminfo.operatingSystem",P.OSVersion="preferences.myRig.osVersion",P}(h||{}),C=function(P){return P.SolidState="SolidState",P.Unknown="Unknown",P.Rotational="Rotational",P}(C||{}),S=function(P){return P.SSD="SSD",P.HDD="HDD",P}(S||{}),M=function(P){return P[P.GpuName=0]="GpuName",P[P.Direct3dFeatureLevel=1]="Direct3dFeatureLevel",P[P.Streamprocessor=2]="Streamprocessor",P[P.Graphicsclock=3]="Graphicsclock",P[P.MaxQTechnologies=4]="MaxQTechnologies",P[P.DynamicBoost=5]="DynamicBoost",P[P.WhisperMode=6]="WhisperMode",P[P.MaxGraphicsPower=7]="MaxGraphicsPower",P[P.ResizableBar=8]="ResizableBar",P[P.MemoryClock=9]="MemoryClock",P[P.MemoryInterface=10]="MemoryInterface",P[P.MemoryBandwidth=11]="MemoryBandwidth",P[P.TotalAvailableGraphicsMemory=12]="TotalAvailableGraphicsMemory",P[P.DedicatedVideoMemory=13]="DedicatedVideoMemory",P[P.SystemVideoMemory=14]="SystemVideoMemory",P[P.SharedSystemMemory=15]="SharedSystemMemory",P[P.VideoBios=16]="VideoBios",P[P.Irq=17]="Irq",P[P.Bus=18]="Bus",P[P.DeviceId=19]="DeviceId",P[P.PartNumber=20]="PartNumber",P[P.Display=21]="Display",P[P.Resolution=22]="Resolution",P[P.RefreshRate=23]="RefreshRate",P[P.DesktopColorDepth=24]="DesktopColorDepth",P[P.Hdcp=25]="Hdcp",P[P.DisplayType=26]="DisplayType",P[P.AdvancedOptimus=27]="AdvancedOptimus",P}(M||{})},29997:(St,z,s)=>{"use strict";s.d(z,{j:()=>sn});var i=s(26537),n=s(35146),h=s(43848),C=s(59859),S=s(19392),M=s(31315),P=s(36466),x=s(72147),A=s(14714),g=s(65706),m=s(79539),l=s(8619),r=s(91384),u=s(25577),v=s(83915),E=s(26875),T=s(92602),R=s(83128),B=s(11001),U=s(23884),Y=s(1242),ae=s(33804),G=s(80583),k=s(4208),X=s(65726),q=s(148),Q=s(58527),ce=s(96542),te=s(61142),Ee=s(37898),it=s(78812),Fe=s(59085),Qe=s(59584),ct=s(40018),Ge=s(47973),nt=s(44224),Je=s(28139),ze=s(92626);const Ke=dn=>({"my-rig-dialog-unset":dn}),Ve=(dn,yn)=>({"border-bottom":dn,"font-sub2":yn});function $e(dn,yn){if(1&dn&&(Q.j41(0,"div",10),Q.EFF(1),Q.nI1(2,"translate"),Q.k0s()),2&dn){const At=Q.XpG();Q.R7$(),Q.SpI(" ",Q.bMT(2,1,At.dialogTitle)," ")}}function dt(dn,yn){if(1&dn&&(Q.j41(0,"div",11)(1,"span"),Q.EFF(2),Q.nI1(3,"translate"),Q.k0s(),Q.j41(4,"span"),Q.EFF(5),Q.k0s()()),2&dn){const At=Q.XpG();Q.R7$(2),Q.JRh(Q.bMT(3,2,"systeminfo.operatingSystem")),Q.R7$(3),Q.JRh(At.osCombinedValue)}}function Pe(dn,yn){if(1&dn&&(Q.j41(0,"div",11)(1,"span"),Q.EFF(2),Q.nI1(3,"translate"),Q.k0s(),Q.j41(4,"span"),Q.EFF(5),Q.k0s()()),2&dn){const At=Q.XpG();Q.R7$(2),Q.JRh(Q.bMT(3,2,"systeminfo.directXRuntimeVersion")),Q.R7$(3),Q.JRh(At.dxVersion)}}function J(dn,yn){if(1&dn&&(Q.qex(0),Q.j41(1,"div",11)(2,"span"),Q.EFF(3),Q.nI1(4,"translate"),Q.k0s(),Q.j41(5,"span"),Q.EFF(6),Q.k0s()(),Q.bVm()),2&dn){const At=yn.$implicit;Q.R7$(3),Q.JRh(Q.bMT(4,2,At.header)),Q.R7$(3),Q.JRh(At.descriptions)}}function vt(dn,yn){if(1&dn&&(Q.j41(0,"div",12),Q.EFF(1),Q.k0s()),2&dn){const At=Q.XpG();Q.R7$(),Q.SpI(" ",At.graphicsCardHeader," ")}}function ve(dn,yn){1&dn&&Q.nrm(0,"mat-divider",15)}function ue(dn,yn){if(1&dn&&(Q.qex(0),Q.DNE(1,ve,1,0,"mat-divider",13),Q.j41(2,"div",14)(3,"span"),Q.EFF(4),Q.k0s(),Q.j41(5,"span"),Q.EFF(6),Q.k0s()(),Q.bVm()),2&dn){const At=yn.$implicit,Vt=yn.index,Qt=yn.last,Jt=Q.XpG(2);Q.R7$(),Q.Y8G("ngIf",At[0].id===Jt.displayKey),Q.R7$(),Q.Y8G("ngClass",Q.l_i(4,Ve,Qt,!Vt||At[0].id===Jt.displayKey)),Q.R7$(2),Q.JRh(At[0].displayValue),Q.R7$(2),Q.JRh(At[1])}}function et(dn,yn){if(1&dn&&(Q.qex(0),Q.DNE(1,ue,7,7,"ng-container",4),Q.bVm()),2&dn){const At=yn.$implicit;Q.R7$(),Q.Y8G("ngForOf",At)}}function se(dn,yn){1&dn&&(Q.j41(0,"p",16),Q.EFF(1),Q.nI1(2,"translate"),Q.k0s()),2&dn&&(Q.R7$(),Q.SpI(" ",Q.bMT(2,1,"preferences.myRig.unableToRetrieveGPU")," "))}function Ce(dn,yn){if(1&dn){const At=Q.RV6();Q.j41(0,"button",17),Q.nI1(1,"translate"),Q.bIt("click",function(){Q.eBV(At);const Qt=Q.XpG();return Q.Njj(Qt.copyText())}),Q.k0s()}if(2&dn){const At=Q.XpG();Q.Y8G("showSpinner",At.copyInProgress)("buttonText",Q.bMT(1,2,"preferences.myRig.copyText"))}}let be=(()=>{class dn{constructor(At,Vt,Qt,Jt,Zt,nn,Xt,lt,Ue,wt,gt,Ht,bn){this.loggingService=At,this.translateService=Vt,this.dialogRef=Qt,this.datePipe=Jt,this.systemDetailsService=Zt,this.performanceMeasureService=nn,this.dialogData=Xt,this.telemetryService=lt,this.nvAppTelemetryUtilService=Ue,this.preferenceService=wt,this.displaysService=gt,this.hardwareInfoService=Ht,this.multiDisplaysSupportService=bn,this.gpuInfoSource=[],this.copyInProgress=!1,this.showErrorState=!1,this.displayKey=U.xS.Display,this.rigItems=[],this.unsubscribe$=new G.B7,this.logger=At.getLogger("nvapp/AdvancedMyRigDialogComponent"),this.showErrorState=this.dialogData.errorState,this.telemetryService.setScreen(Y.f3.System)}ngOnInit(){if(!this.showErrorState){this.gpuInfoSource=this.dialogData.gpuInfoContent;const At=[U.Jf.OS,U.Jf.GraphicsCard];this.rigItems=this.dialogData?.rigItems?.filter(Vt=>!At.includes(Vt.header)),this.collectGpuInformation(this.dialogData.dxVersion,this.dialogData.osInfo),this.listenToDisplayChanges()}this.performanceMeasureService.markNvAppPerformanceMarkers([R.mM.NvAppMyRigDialogViewRenderEnd],R.fR.MyRigDialog),this.setDialogTitle()}listenToDisplayChanges(){this.multiDisplaysSupportService.displayState$.pipe((0,x.n)(()=>this.systemDetailsService.fetchGpuInfoContent()),(0,k.Q)(this.unsubscribe$)).subscribe(At=>{this.logger.info("Refresh content after display change"),this.gpuInfoSource=At},At=>{this.logger.error("Error while listen to display change",At)})}close(){this.dialogRef.close()}copyText(){this.copyInProgress=!0;const At=[],Vt=this.datePipe.transform(new Date,"MM/dd/yyyy HH:mm:ss"),Qt=this.preferenceService.getNvAppVersionString();At.push(`${this.translateService.instant("systeminfo.reportTitle",{createdDate:Vt})}\n`),At.push(`${this.translateService.instant("systeminfo.nvidiaAppVersion")}: ${Qt}\n`),this.osCombinedValue&&At.push(`${this.translateService.instant("systeminfo.operatingSystem")}: ${this.osCombinedValue}\n`),this.dxVersion&&At.push(`${this.translateService.instant("systeminfo.directXRuntimeVersion")}: ${this.dxVersion}`),At.push("\n"),this.rigItems.forEach(Jt=>At.push(`${this.translateService.instant(Jt.header)}: ${Jt.descriptions}\n`)),At.push(`\n${this.graphicsCardHeader}\n`),this.gpuInfoSource.forEach(Jt=>{Jt.forEach(Zt=>{Zt[0].id===this.displayKey&&At.push("\n"),At.push(`${Zt[0].displayValue}: ${Zt[1]}\n`)}),At.push("\n")}),this.nvAppTelemetryUtilService.sendClickEvent(Y.EB.CopySystemDetails,Y.yP.Overview,!0),this.writeText(At.join("").trim()).pipe((0,k.Q)(this.unsubscribe$)).subscribe(()=>this.copyInProgress=!1)}collectGpuInformation(At,Vt){this.logger.info("Total GPU info received",this.gpuInfoSource?.length),this.graphicsCardHeader=this.gpuInfoSource?.length>1?this.translateService.instant(U.Jf.GraphicsCards,{count:this.gpuInfoSource.length}):this.translateService.instant(U.Jf.GraphicsCard),this.dxVersion=At,this.osCombinedValue=`${Vt.OSName}, ${this.translateService.instant(U.Jf.OSVersion,{osVersion:Vt.OSVersion})}`}writeText(At){return navigator.clipboard?(0,S.H)(navigator.clipboard.writeText(At)).pipe((0,X.c)(q.A6),(0,A.W)(Vt=>(this.logger.info(`Clipboard writeText: ${Vt}`),(0,h.of)(null)))):(this.logger.warn("navigator.clipboard is undefined, writeText() probably is being used in non secure context."),(0,h.of)(null))}setDialogTitle(){this.hardwareInfoService.getQuadroSystemFlag().pipe((0,k.Q)(this.unsubscribe$)).subscribe(At=>{this.dialogTitle=At?"preferences.myRig.workstationTitle":"preferences.myRig.dialogTitle"},At=>{this.logger.error("Error occurred while getting quadro flag ",At)})}ngOnDestroy(){this.unsubscribe$.next(!0),this.unsubscribe$.complete()}static{this.\u0275fac=function(Vt){return new(Vt||dn)(Q.rXU(T.J6),Q.rXU(ce.c$),Q.rXU(i.CP),Q.rXU(te.vh),Q.rXU(sn),Q.rXU(Ee.M),Q.rXU(i.Vh),Q.rXU(it.H0),Q.rXU(Y.AY),Q.rXU(Fe.N),Q.rXU(Qe.R),Q.rXU(T.SQ),Q.rXU(ct.b))}}static{this.\u0275cmp=Q.VBU({type:dn,selectors:[["nv-app-advanced-myrig-dialog"]],decls:15,vars:14,consts:[[1,"my-rig-dialog",3,"ngClass"],["mat-dialog-title","","class","font-header6 title-container",4,"ngIf"],[1,"system-info-container","font-body2"],["class","system-info-element",4,"ngIf"],[4,"ngFor","ngForOf"],["class","system-info-element card-header font-sub2",4,"ngIf"],["class","font-body2 font-color-secondary error-details",4,"ngIf"],["mat-dialog-actions","",1,"modal-actions"],["mat-button","",1,"font-button2","action-button",3,"click"],["mat-button","","class","font-button2 action-button copy-text-button","nvAppTextButtonSpinner","",3,"showSpinner","buttonText","click",4,"ngIf"],["mat-dialog-title","",1,"font-header6","title-container"],[1,"system-info-element"],[1,"system-info-element","card-header","font-sub2"],["class","displays-separator",4,"ngIf"],[1,"system-info-element",3,"ngClass"],[1,"displays-separator"],[1,"font-body2","font-color-secondary","error-details"],["mat-button","","nvAppTextButtonSpinner","",1,"font-button2","action-button","copy-text-button",3,"click","showSpinner","buttonText"]],template:function(Vt,Qt){1&Vt&&(Q.j41(0,"div",0),Q.DNE(1,$e,3,3,"div",1),Q.j41(2,"mat-dialog-content")(3,"div",2),Q.DNE(4,dt,6,4,"div",3)(5,Pe,6,4,"div",3)(6,J,7,4,"ng-container",4)(7,vt,2,1,"div",5)(8,et,2,1,"ng-container",4)(9,se,3,3,"p",6),Q.k0s()(),Q.j41(10,"div",7)(11,"button",8),Q.bIt("click",function(){return Qt.close()}),Q.EFF(12),Q.nI1(13,"translate"),Q.k0s(),Q.DNE(14,Ce,2,4,"button",9),Q.k0s()()),2&Vt&&(Q.Y8G("ngClass",Q.eq3(12,Ke,Qt.showErrorState)),Q.R7$(),Q.Y8G("ngIf",null==Qt.gpuInfoSource?null:Qt.gpuInfoSource.length),Q.R7$(3),Q.Y8G("ngIf",Qt.osCombinedValue),Q.R7$(),Q.Y8G("ngIf",Qt.dxVersion),Q.R7$(),Q.Y8G("ngForOf",Qt.rigItems),Q.R7$(),Q.Y8G("ngIf",Qt.graphicsCardHeader),Q.R7$(),Q.Y8G("ngForOf",Qt.gpuInfoSource),Q.R7$(),Q.Y8G("ngIf",Qt.showErrorState),Q.R7$(3),Q.SpI(" ",Q.bMT(13,10,"common.close")," "),Q.R7$(2),Q.Y8G("ngIf",null==Qt.gpuInfoSource?null:Qt.gpuInfoSource.length))},dependencies:[te.YU,te.Sq,te.bT,Ge.iV,nt.q,i.BI,i.Yi,i.E7,Je.PW,ze.u,ce.D9],styles:[".title-container[_ngcontent-%COMP%]{padding:18px 16px 14px 24px}.system-info-container[_ngcontent-%COMP%]{padding:0 16px 0 24px;display:flex;flex-direction:column}.system-info-container[_ngcontent-%COMP%] .system-info-element[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;padding-left:16px;min-height:48px}.system-info-container[_ngcontent-%COMP%] .system-info-element[_ngcontent-%COMP%]:first-of-type{align-items:flex-start}.system-info-container[_ngcontent-%COMP%] .system-info-element[_ngcontent-%COMP%]:last-of-type{border-bottom:0}.system-info-container[_ngcontent-%COMP%] .system-info-element[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{flex:1 1 0%;box-sizing:border-box}.system-info-container[_ngcontent-%COMP%] .displays-separator[_ngcontent-%COMP%]{margin-left:16px}.system-info-container[_ngcontent-%COMP%] .border-bottom[_ngcontent-%COMP%]{border-bottom:1px solid var(--primary-contrast-240)}.system-info-container[_ngcontent-%COMP%] .card-header[_ngcontent-%COMP%]{border-top:1px solid var(--primary-contrast-240)}.my-rig-dialog[_ngcontent-%COMP%]{position:relative;min-height:500px;display:flex;flex-direction:column}.my-rig-dialog-unset[_ngcontent-%COMP%]{min-height:0px}.modal-actions[_ngcontent-%COMP%]{padding:0 8px;margin-bottom:0;margin-top:16px;display:flex;justify-content:flex-end;align-items:center}.modal-actions[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;width:auto;height:36px;position:relative}.modal-actions[_ngcontent-%COMP%] .copy-text-button[_ngcontent-%COMP%]{margin:0 0 0 8px}"]})}}return dn})();var rt=s(2216),me=s(26772),le=s(94645),Xe=s(30627),Se=s(3321),fe=s(66340),Ne=s(96306),ye=s(72482),Ot=s(86088);let sn=(()=>{class dn{constructor(At,Vt,Qt,Jt,Zt,nn,Xt,lt,Ue,wt,gt,Ht,bn,Ut,Bt){this.nvcplSystemInfoService=Vt,this.errorHandlerService=Qt,this.performanceMeasureService=Jt,this.systemInfoService=Zt,this.hardwareInfoService=nn,this.translateService=Xt,this.bytesPipe=lt,this.nvAppTelemetryUtilService=Ue,this.driverInfoService=wt,this.dialog=gt,this.nvAppBridgeService=Ht,this.datePipe=bn,this.displaysService=Ut,this.multiDisplaysSupportService=Bt,this.logger=At.getLogger("nvapp/SystemDetailsService")}getLoadingSpinner(){return this.loadingSpinner=new B.k,this.loadingSpinner}clearLoadingSpinner(){this.loadingSpinner.clear()}getMyRig(){const At=this.systemInfoService.getSystemInfo([T.Lu.OSName,T.Lu.OSVersion,T.Lu.CPUName,T.Lu.PhysicalDisk]),Vt=this.hardwareInfoService.getGenericInfo(!1),Qt=this.hardwareInfoService.getQuadroSystemFlag(),Jt=(0,n.yU)(Vt,Qt).pipe((0,x.n)(([Zt,nn])=>this.getInstalledDriverDetails(Zt,nn)));return(0,n.yU)(At,Vt,Jt,Qt).pipe((0,x.n)(([Zt,nn,Xt,lt])=>{const Ue=[],wt=`${Zt.OSName}, ${this.translateService.instant(U.Jf.OSVersion,{osVersion:Zt.OSVersion})}`;return Ue.push({header:U.Jf.OS,descriptions:[wt]}),Xt&&Ue.push({header:U.Jf.Driver,descriptions:[Xt]}),Ue.push({header:U.Jf.Cpu,descriptions:[Zt?.CPUName]}),Ue.push({header:U.Jf.Ram,descriptions:[this.bytesPipe.transform(+nn?.PhysicalMemoryCapacity)]}),Ue.push(this.getDiskFeature(Zt?.PhysicalDisk)),(0,h.of)({myRigFeatureHeader:lt?"preferences.myRig.workstationHeader":"preferences.myRig.geforceHeader",viewDetailsButtonText:lt?"system.overview.viewSystemDetails":"system.overview.viewRigDetails",rigItems:Ue,isQuadro:lt})}),(0,A.W)(Zt=>(this.logger.error("Error occurred while fetching my rig",Zt),(0,C.$)(Zt))))}showMyRigDialog(At,Vt){this.nvAppTelemetryUtilService.sendClickEvent(Y.EB.ViewSystemDetails,Vt,!0),this.performanceMeasureService.markNvAppPerformanceMarkers([R.mM.NvAppMyRigDialogDataFetchStart],R.fR.MyRigDialog);let Qt=!1;this.loadingSpinner.triggerLoadingIndicator(!0),this.myRigDialogSub?.unsubscribe(),this.myRigDialogSub=(0,n.yU)(this.fetchGpuInfoContent(),this.nvcplSystemInfoService.getDxVersion(),this.systemInfoService.getSystemInfo([T.Lu.OSName,T.Lu.OSVersion,T.Lu.Platform])).pipe((0,x.n)(([Jt,Zt,nn])=>{this.performanceMeasureService.markNvAppPerformanceMarkers([R.mM.NvAppMyRigDialogDataFetchEnd,R.mM.NvAppMyRigDialogViewRenderStart],R.fR.MyRigDialog);const Xt={OSName:nn.OSName,OSVersion:nn.OSVersion,Platform:nn.Platform};if(this.logger.info("dxVersion",Zt,"osInfo",Xt),Jt||(this.logger.error("GPU info content is empty, setting error state as true"),Qt=!0),Qt)return this.errorHandlerService.showOptionalPluginFailErrorDialog(),(0,C.$)("Showing error dialog due to error state");const lt=new i.ru;return lt.autoFocus=!1,lt.restoreFocus=!1,lt.hasBackdrop=!0,lt.panelClass=["my-rig-dialog","common-dialog"],lt.width=le.pS.width,lt.maxHeight=le.pS.height,lt.data={gpuInfoContent:Jt,dxVersion:Zt,osInfo:Xt,errorState:Qt,rigItems:At},this.loadingSpinner.triggerLoadingIndicator(!1),lt.minHeight=Qt?le.pS.unsetMinHeight:le.pS.minHeight,this.dialog.open(be,lt).afterClosed()}),(0,g.s)(1)).subscribe(()=>{this.logger.info("MY RIG dialog was closed")},Jt=>{this.performanceMeasureService.markNvAppPerformanceMarkers([R.mM.NvAppMyRigDialogViewRenderEnd],R.fR.MyRigDialog),this.loadingSpinner.triggerLoadingIndicator(!1),this.logger.error("Error while showing dialog",Jt)})}fetchGpuInfoContent(){const At=[];return this.nvcplSystemInfoService.getGpuCount().pipe((0,x.n)(Vt=>Vt?(this.logger.info("gpu count:",Vt),(0,S.H)([...Array(Vt).keys()])):(0,C.$)("GPU Count is zero")),(0,m.H)(Vt=>this.getWhisperModeInfo().pipe((0,x.n)(Qt=>this.getGpuInfoContent(Vt,Qt?.isWhisperMode)))),(0,l.p)(Vt=>!!Vt),(0,r.M)(Vt=>At.push(Array.from(Vt?.entries()))),(0,u.H)(),(0,g.s)(1),(0,v.T)(()=>At),(0,A.W)(Vt=>(this.logger.error("Error while getting nvcpl system information",Vt),(0,h.of)(null))))}getWhisperModeInfo(){return this.whisperModeInfo?(0,h.of)(this.whisperModeInfo):this.nvAppBridgeService.executeCommandWithTimeout(U.YJ).pipe((0,r.M)(At=>{this.whisperModeInfo=At,this.logger.info("whisper mode info Response",At)}),(0,A.W)(At=>(this.logger.error("failed to fetch whisper mode info",At),(0,h.of)(null))))}getGpuInfoContent(At,Vt){return(0,n.yU)(this.nvcplSystemInfoService.getGpuInfo(At),this.nvcplSystemInfoService.getDirectFeatureLevel(At),this.nvcplSystemInfoService.getDynamicBoostInfo(),this.nvcplSystemInfoService.getSystemCapabilities(),this.hardwareInfoService.getIsLaptopSystem()).pipe((0,x.n)(([Qt,Jt,Zt,nn,Xt])=>(0,M.zV)([(0,h.of)(Qt),(0,h.of)(Jt),(0,h.of)(Xt),this.multiDisplaysSupportService.surfaces$.pipe((0,v.T)(lt=>(this.logger.info("surfaces length",lt.length),lt.length>0&&(0,E.flatMap)(lt,wt=>wt?.displayItems.filter(gt=>gt.gpuId===Qt.id))||[])),(0,g.s)(1)),this.multiDisplaysSupportService.isMultiCloneSystem$.pipe((0,g.s)(1))])),(0,v.T)(([Qt,Jt,Zt,nn,Xt])=>(this.logger.info("GPU info",Qt),Qt?.isNvidiaGpu?this.prepareGpuInfoContent(Qt,Jt,Zt,Vt,nn,Xt):"")))}getInstalledDriverDetails(At,Vt){const Jt=`${this.translateService.instant(Vt?"drivers.preferences.workstationDrivers":rt.O6[At?.DriverType].title)} - ${At?.DriverVersion}`;return this.driverInfoService.getDriverInformation(At?.DriverVersion,At?.DriverType).pipe((0,g.s)(1),(0,v.T)(Zt=>{const nn=this.datePipe.transform(Zt?.DriverAttributes?.ReleaseDateTime,me.DQ,me.cl);return`${Jt} - ${nn}`}),(0,A.W)(Zt=>(this.logger.error("Error while fetching driver details",Zt),(0,h.of)(Jt))))}getDiskFeature(At){const Vt=At?.length>1?this.translateService.instant(U.Jf.Disks,{count:At.length}):U.Jf.Disk,Qt=[];if(At?.forEach(Jt=>{Qt.push(`${Jt?.MediumType===U.LU.Rotational||Jt?.MediumType===U.LU.Unknown?U.p5.HDD:U.p5.SSD} - ${this.bytesPipe.transform(+Jt?.TotalSize)}`)}),At?.length>ae.$P){const Jt=At.length-ae.$P;Qt.splice(At.length-Jt,Jt),Qt.push(`${this.translateService.instant(ae.sN,{items:Jt})}`)}return{header:Vt,descriptions:Qt}}prepareGpuInfoContent(At,Vt,Qt,Jt,Zt,nn){const Xt=new Map;if(this.setSimpleProperty(Xt,U.xS.GpuName,At.longGPUName),this.setSimpleProperty(Xt,U.xS.Direct3dFeatureLevel,Vt),this.setNumericProperty(Xt,U.xS.Streamprocessor,At.cudaCore),this.setGpuInfo(Xt,U.xS.Graphicsclock,!!At.coreClock,()=>this.translateService.instant("systeminfo.megahertz",{mhzValue:At.coreClock})),Qt&&(Xt.set(this.getSystemDetailType(U.xS.MaxQTechnologies),this.translateService.instant(this.nvcplSystemInfoService.getMaxQTypeTranslationString(At.maxQTechnology))),Xt.set(this.getSystemDetailType(U.xS.DynamicBoost),this.translateService.instant("systeminfo.common"+(this.nvcplSystemInfoService.dynamicBoostInfo?.isDynamicBoost?"Enable":"Disable"))),Xt.set(this.getSystemDetailType(U.xS.WhisperMode),this.translateService.instant("systeminfo.common"+(Jt?"Enable":"Disable"))),Xt.set(this.getSystemDetailType(U.xS.AdvancedOptimus),this.translateService.instant("systeminfo.common"+(this.nvcplSystemInfoService.systemCapabilities?.isAdvancedOptimus?"Enable":"Disable"))),this.setGpuInfo(Xt,U.xS.MaxGraphicsPower,At.maxGpuPower>0&&At.maxQTechnology!==fe.g3.No,()=>this.translateService.instant("systeminfo.maxGraphicsPowerTemplate",{powerValue:At.maxGpuPower}))),At.maxQTechnology!==fe.g3.Yes){const wt=this.getSystemDetailType(U.xS.ResizableBar);Xt.set(wt,this.translateService.instant("systeminfo.common"+(At.isResizableBar?"Enable":"Disable")))}this.setGpuInfo(Xt,U.xS.MemoryClock,!!At.memoryDataRate,()=>this.translateService.instant("systeminfo.labelGbps",{gbpsValue:(At.memoryDataRate/1e3).toFixed(2)})),this.setGpuInfo(Xt,U.xS.MemoryInterface,!!At.memoryInterface,()=>this.translateService.instant("systeminfo.memoryinterfaceTemplate",{BusWidth:At.memoryInterface})),this.setGpuInfo(Xt,U.xS.MemoryBandwidth,null!=At.memoryBandwidth,()=>At.memoryBandwidth>=1e3?this.translateService.instant("systeminfo.memoryBandwidthTbValue",{memoryBandwidth:(At.memoryBandwidth/1e3).toFixed(2)}):this.translateService.instant("systeminfo.memoryBandwidthGbValue",{memoryBandwidth:At.memoryBandwidth})),this.setMemoryProperty(Xt,U.xS.TotalAvailableGraphicsMemory,At.totalAvailableGraphicsMemory),this.setMemoryProperty(Xt,U.xS.SystemVideoMemory,At.systemVideoMemory>=0?At.systemVideoMemory:null),this.setMemoryProperty(Xt,U.xS.SharedSystemMemory,At.sharedSystemMemory),this.setGpuInfo(Xt,U.xS.DedicatedVideoMemory,!!At.dedicatedVideoMemory,()=>this.nvcplSystemInfoService.parseGpuMemoryType(At.dedicatedVideoMemory,At.ramType)),this.setSimpleProperty(Xt,U.xS.VideoBios,At.videoBIOSVersion),this.setSimpleProperty(Xt,U.xS.DeviceId,At.deviceId),this.setSimpleProperty(Xt,U.xS.PartNumber,At.partNumber);const lt=this.getSystemDetailType(U.xS.Irq),Ue=this.translateService.instant("performance.notApplicable");return Xt.set(lt,At.irq>=0?0===At.irq?this.translateService.instant("systeminfo.sdiStatusOutputNotUsed"):At.irq:Ue),this.setGpuInfo(Xt,U.xS.Bus,!(!At.bus||!At.busType),()=>this.nvcplSystemInfoService.parseGpuBusType(At.bus,At.busType)),this.prepareDisplaysContent(Zt,Xt,nn),Xt}setGpuInfo(At,Vt,Qt,Jt,Zt){const nn=this.getSystemDetailType(Vt,Zt),Xt=this.translateService.instant("performance.notApplicable");At.set(nn,Qt?Jt():Xt)}setSimpleProperty(At,Vt,Qt,Jt){this.setGpuInfo(At,Vt,!!Qt,()=>Qt,Jt)}setNumericProperty(At,Vt,Qt,Jt=0,Zt){this.setGpuInfo(At,Vt,Qt>Jt,()=>Qt,Zt)}setMemoryProperty(At,Vt,Qt,Jt="systeminfo.memoryTemplate"){this.setGpuInfo(At,Vt,!!Qt,()=>this.translateService.instant(Jt,{mbValue:Qt}))}getSystemDetailType(At,Vt){return{id:At,displayValue:this.translateService.instant(ae.TP.get(At),Vt)}}prepareDisplaysContent(At,Vt,Qt){At?.length?At.forEach(Jt=>{const Zt=this.getSystemDetailType(U.xS.Display,{identifier:Jt.identifier});let nn=Jt.name;Jt.logicalDisplayType===Xe.QE.CloneDisplay&&(nn=Qt?`${Jt.name} ${this.translateService.instant("system.cloneGroup",{index:Jt.cloneGroupId+1})}`:`${Jt.name} ${this.translateService.instant("system.clone")}`),Vt.set(Zt,nn);const Xt=this.displaysService.getCurrentResolutionLabelForDisplay(Jt);Xt&&Vt.set(this.getSystemDetailType(U.xS.Resolution),Xt);const lt=this.displaysService.getCurrentRefreshRateForDisplay(Jt);if(lt&&Vt.set(this.getSystemDetailType(U.xS.RefreshRate),lt),Jt.desktopColorEnhancementInfo$.pipe((0,g.s)(1),(0,v.T)(Ue=>{const wt=this.displaysService.getCurrentDesktopColorDepth(Jt,Ue.desktopColorDepthCurrentValue);wt&&Vt.set(this.getSystemDetailType(U.xS.DesktopColorDepth),wt)}),(0,A.W)(Ue=>(this.logger.error("Error while getting getCurrentDesktopColorDepth"),(0,C.$)(Ue)))).subscribe(P.l,Ue=>this.logger.error("Error while getting getCurrentDesktopColorDepth",Ue)),Jt.gsyncState?.gsyncType!==Xe.rc.NotSupported){const Ue=Se.qN.get(Jt.gsyncState?.gsyncType);Vt.set(this.getSystemDetailType(U.xS.DisplayType),this.translateService.instant(Ue))}if(Jt.hdcpState.isSupported&&!1===Jt.hdcpState?.hdcpStatus.isUnavailable){const Ue=this.translateService.instant("common.supported");Vt.set(this.getSystemDetailType(U.xS.Hdcp),Ue)}}):this.logger.info("No displays information to show")}static{this.\u0275fac=function(Vt){return new(Vt||dn)(Q.KVO(T.J6),Q.KVO(fe.oY),Q.KVO(Ne.c),Q.KVO(Ee.M),Q.KVO(T.zW),Q.KVO(T.SQ),Q.KVO(ce.c$),Q.KVO(T.cr),Q.KVO(Y.AY),Q.KVO(ye.u),Q.KVO(i.bZ),Q.KVO(Ot.S),Q.KVO(te.vh),Q.KVO(Qe.R),Q.KVO(ct.b))}}static{this.\u0275prov=Q.jDH({token:dn,factory:dn.\u0275fac,providedIn:"root"})}}return dn})()},88081:(St,z,s)=>{"use strict";s.d(z,{H:()=>i,J:()=>n});const i={DisplaySettings:"system.display.displaySettings",DisplayProperties:"system.display.displayProperties",DisplayScaling:"system.display.scaling",DisplayColor:"system.display.color",GlobalSettings:{GlobalGsyncCollapse:"system.display.globalGsyncCollapseHeader",DisplayMode:"system.display.advanceOptimus.displayMode",GsyncDisplayModeAndSurround:"system.display.gSyncDisplayModeAndSurroundHeader",GsyncCapable:"system.display.gSyncCapable",SurroundSettingTitle:"surround.settingTitle",GsyncAndSurround:"system.display.gSyncAndSurroundHeader",Gsync:"system.display.gSYNC"},Properties:{Connector:"system.display.connector",Resolution:"system.display.resolution",RefreshRate:"system.display.refreshRate",Orientation:"system.display.orientation",ResolutionAndRotation:"system.display.resolutionAndRotationHeader",HdcpStatus:"system.display.hdcpStatus"},Gsync:{PanelTitleVrr:"system.display.displaysGsyncPanelTitleForVRR",NonGsyncCompatible:"system.display.nonGSYNCCompatible",AllowGsyncSettings:"system.display.allowGSYNCSettings",EnabledGlobally:"system.display.gSYNCEnabledGlobally",DisabledGlobally:"system.display.gSYNCDisabledGlobally"},Scaling:{PanelSummary:"system.display.scalingPanel.expandPanelSummary",Mode:"system.display.mode",Device:"system.display.scalingDevice",OverrideMode:"system.display.overrideTheScalingMode",Preview:"system.display.preview",Resolution:"system.display.resolution",RefreshRate:"system.display.refreshRate"},Color:{AdjustOutputColor:"system.display.adjustOutputColorHeaderText",OutputColorSettings:"system.display.outputColorSettings",DesktopColorDepth:"system.display.desktopColorDepth",OutputColorDepth:"system.display.outputColorDepth",OutputColorFormat:"system.display.outputColorFormat",DynamicRange:"system.display.outputDynamicRange",ColorAccuracyMode:"system.display.colorAccuracyMode",OverrideToReferenceMode:"system.display.overrideToReferenceMode",ColorChannel:"system.display.colorChannel",ContentType:"system.display.contentType"}},n=5e3},3321:(St,z,s)=>{"use strict";s.d(z,{$C:()=>le,AJ:()=>S,By:()=>l,CE:()=>Je,CF:()=>r,D0:()=>G,D_:()=>T,Dj:()=>Ce,ED:()=>R,EM:()=>g,ER:()=>dt,EY:()=>Fe,FF:()=>ze,Gm:()=>Q,H5:()=>nt,I:()=>me,J_:()=>Qt,K5:()=>q,KN:()=>k,MB:()=>vt,OC:()=>Ne,OW:()=>Ve,QN:()=>Ee,R3:()=>Xe,RU:()=>Xt,Tu:()=>h,Up:()=>ve,W3:()=>Zt,XC:()=>ye,Xy:()=>et,Zw:()=>Vt,_N:()=>n,aM:()=>te,aR:()=>yn,aZ:()=>se,az:()=>sn,b_:()=>Y,bg:()=>Ke,bh:()=>fe,cj:()=>ue,eQ:()=>u,fF:()=>Pe,fq:()=>At,g:()=>A,h4:()=>ct,hN:()=>ae,hR:()=>P,it:()=>B,jN:()=>rt,kr:()=>E,m6:()=>dn,mv:()=>v,nW:()=>Jt,p5:()=>$e,qN:()=>C,qX:()=>Ge,qb:()=>nn,rS:()=>ce,sJ:()=>U,up:()=>lt,uz:()=>Se,v_:()=>it,wM:()=>M,x8:()=>m,y$:()=>be,yo:()=>X,z$:()=>x,zG:()=>Ot});var i=s(30627);const n=[{value:i.Zt.All,label:"system.display.AllChannels"},{value:i.Zt.Red,label:"system.display.Red"},{value:i.Zt.Green,label:"system.display.Green"},{value:i.Zt.Blue,label:"system.display.Blue"}],h=new Map([[i.nX.NotAvailable,"common.notAvailable"],[i.nX.Off,"common.off"],[i.nX.FullscreenOnly,"system.display.gsyncGlobalEnableFullScreenAccordionSubTitle"],[i.nX.FullscreenAndWindowed,"system.display.gsyncGlobalEnableBothAccordionSubTitle"]]),C=new Map([[i.rc.GsyncUltimate,"system.display.gsyncUltimate"],[i.rc.GSyncCapable,"system.display.gSyncCapable"],[i.rc.GSyncCompatible,"system.display.gSyncCompatible"],[i.rc.VRR,"system.display.vrr"]]),S=new Map([[i.rc.GsyncUltimate,"assets/img/badge_G-Sync_ultimate.svg"],[i.rc.GSyncCapable,"assets/img/badge_G-Sync.svg"],[i.rc.GSyncCompatible,"assets/img/badge_G-Sync.svg"]]),M=new Map([[i.uM.CT_AUTO,{connectorType:"system.display.autoConnector",connectorSubType:"",connectorIcon:""}],[i.uM.CT_DVI,{connectorType:"system.display.dvi",connectorSubType:"system.display.pcDisplay",connectorIcon:"icon_connector_dvi"}],[i.uM.CT_DISPLAYPORT,{connectorType:"system.display.displayPort",connectorSubType:"system.display.pcDisplay",connectorIcon:"icon_connector_displayPort"}],[i.uM.CT_HDMI,{connectorType:"system.display.hdmi",connectorSubType:"system.display.hdtv",connectorIcon:"icon_connector_hdmi"}],[i.uM.CT_USBC,{connectorType:"system.display.usbc",connectorSubType:"system.display.virtualLink",connectorIcon:"icon_connector_usb"}],[i.uM.CT_VGA,{connectorType:"system.display.vga",connectorSubType:"system.display.pcDisplay",connectorIcon:"icon_connector_vga"}]]),P=new Map([[i.bq.Internal,{connectorType:"system.display.lvds",connectorIcon:"icon_connector_laptop_display"}]]),x="system.display.hdcp",A=20,g=new Map([["isScalingFactor12000",1.2],["isScalingFactor15000",1.5],["isScalingFactor17777",1.78],["isScalingFactor20000",2],["isScalingFactor22500",2.25],["isScalingFactor30000",3],["isScalingFactor40000",4],["isScalingFactor60000",6],["isScalingFactor90000",9],["isScalingFactor5000",.5],["isScalingFactor6667",.67],["isScalingFactor7500",.77],["isScalingFactor7693",.77],["isScalingFactor8500",.85],["isScalingFactor5883",.59]]),m={default:"system.display.resolutions.sdFactor",dlDSRFactor:"system.display.resolutions.sdDLFactor",scalingFactor:"system.display.resolutions.sdScalingFactor"},l={default:"system.display.resolutions.hd3dFactor",dlDSRFactor:"system.display.resolutions.hd3dDLFactor",scalingFactor:"system.display.resolutions.hd3dScalingFactor"},r={default:"system.display.resolutions.hdFactor",dlDSRFactor:"system.display.resolutions.hdDLFactor",scalingFactor:"system.display.resolutions.hdScalingFactor"},u={default:"system.display.resolutions.nonhd3dFactor",dlDSRFactor:"system.display.resolutions.nonhd3dDLFactor",scalingFactor:"system.display.resolutions.nonhd3dScalingFactor"},v=1,E=new Map([[i.MY.Custom,"system.display.resolutions.customGroup"],[i.MY.HD_3D,"system.display.resolutions.hd3dGroup"],[i.MY.SD,"system.display.resolutions.sdGroup"],[i.MY.HD_SD,"system.display.resolutions.hdsdGroup"],[i.MY.Surround,"system.display.resolutions.surround"],[i.MY.Panoramic,"system.display.resolutions.panoramic"],[i.MY.Standard,"system.display.resolutions.standard"],[i.MY.SuperResolution,"system.display.resolutions.superResolution"],[i.MY.Scalingresolution,"system.display.resolutions.scalingResolution"]]),T=new Map([[i.bq.Crt,"system.display.crt"],[i.bq.Dvi,"system.display.dvi"],[i.bq.Internal,"system.display.lvds"],[i.bq.Tv,"system.display.tv"]]),R="system.display.deviceType.generic",B="system.display.highestDesktopColorDepth",U=new Map([[i.Yz.ED480p,"system.display.hdname.480p"],[i.Yz.SD480i,"system.display.hdname.480i"],[i.Yz.ED576p,"system.display.hdname.576p"],[i.Yz.SD576i,"system.display.hdname.576i"],[i.Yz.HD720p,"system.display.hdname.720p"],[i.Yz.HD1080i,"system.display.hdname.1080i"],[i.Yz.HD1080p,"system.display.hdname.1080p"],[i.Yz.HD720p50,"system.display.hdname.720p"],[i.Yz.HD1080i50,"system.display.hdname.1080i"],[i.Yz.HD1080p24,"system.display.hdname.1080p"],[i.Yz.HD1080p50,"system.display.hdname.1080p"],[i.Yz.UHD4Kp30,"system.display.hdname.4k"],[i.Yz.UHD4Kp24Smpte,"system.display.hdname.4k"],[i.Yz.UHD8Kp307680,"system.display.hdname.8k"]]),Y=new Map([[i.Yz.HD720p50,i.Yz.HD720p],[i.Yz.HD1080i50,i.Yz.HD1080i],[i.Yz.HD1080p24,i.Yz.HD1080p],[i.Yz.HD1080p50,i.Yz.HD1080p],[i.Yz.UHD4Kp25,i.Yz.UHD4Kp30],[i.Yz.UHD4Kp24,i.Yz.UHD4Kp30],[i.Yz.UHD4Kp24,i.Yz.UHD4Kp30],[i.Yz.UHD4Kp303840,i.Yz.UHD4Kp30],[i.Yz.UHD4Kp253840,i.Yz.UHD4Kp30],[i.Yz.UHD4Kp243840,i.Yz.UHD4Kp30],[i.Yz.UHD4Kp503840,i.Yz.UHD4Kp30],[i.Yz.UHD4Kp603840,i.Yz.UHD4Kp30],[i.Yz.UHD4Kp304096,i.Yz.UHD4Kp30],[i.Yz.UHD4Kp254096,i.Yz.UHD4Kp30],[i.Yz.UHD4Kp244096,i.Yz.UHD4Kp30],[i.Yz.UHD4Kp504096,i.Yz.UHD4Kp30],[i.Yz.UHD4Kp604096,i.Yz.UHD4Kp30],[i.Yz.UHD8Kp247680,i.Yz.UHD8Kp307680],[i.Yz.UHD8Kp257680,i.Yz.UHD8Kp307680],[i.Yz.UHD8Kp307680,i.Yz.UHD8Kp307680],[i.Yz.UHD8Kp487680,i.Yz.UHD8Kp307680],[i.Yz.UHD8Kp507680,i.Yz.UHD8Kp307680],[i.Yz.UHD8Kp607680,i.Yz.UHD8Kp307680],[i.Yz.UHD8Kp1007680,i.Yz.UHD8Kp307680],[i.Yz.UHD8Kp1207680,i.Yz.UHD8Kp307680]]),ae={isAbortKsvSignature:"system.display.hdcpStatusAbortKsvSignatureError",isAbortKsvLength:"system.display.hdcpStatusAbortKsvLengthError",isAbortTopologyError:"system.display.hdcpStatusAbortTopologyError",isAbortRepeaterNoReady:"system.display.hdcpStatusAbortRepeaterNotReadyError",isAbortHopLimitExceeded:"system.display.hdcpStatusAbortHopLimitExceedError",isAbortDeviceRevoked:"system.display.hdcpStatusAbortDeviceRevokedError",isAbortDeviceInvalid:"system.display.hdcpStatusAbortDeviceInvalidError"},G=new Map([[i.H_.Rotation0,{rotationLabel:"system.display.rotation.landscape",rotationIcon:"icon_landscape"}],[i.H_.Rotation90,{rotationLabel:"system.display.rotation.portrait",rotationIcon:"icon_portrait"}],[i.H_.Rotation180,{rotationLabel:"system.display.rotation.landscapeFlipped",rotationIcon:"icon_landscapeFlipped"}],[i.H_.Rotation270,{rotationLabel:"system.display.rotation.portraitFlipped",rotationIcon:"icon_portraitFlipped"}]]),k=new Map([[i.rc.GsyncUltimate,"system.display.gSyncPanelSummaryCollapseStateForGsync"],[i.rc.GSyncCapable,"system.display.gSyncPanelSummaryCollapseStateForGsync"],[i.rc.GSyncCompatible,"system.display.gsyncPanelSummaryCollapseStateForVRR"],[i.rc.VRR,"system.display.gsyncPanelSummaryCollapseStateForVRR"]]),X=new Map([[i.nL.Display,"preferences.myRig.display"],[i.nL.Gpu,"system.display.scalingPanel.gpu"]]),q=new Map([[i.Z$.FixedAspect,"system.display.scalingPanel.aspectRatio"],[i.Z$.FullScreen,"system.display.scalingPanel.fullscreen"],[i.Z$.IntegerScaling,"system.display.scalingPanel.integerScaling"],[i.Z$.NoScale,"system.display.scalingPanel.noScaling"]]),Q=new Map([[i.Z$.FixedAspect,"aspect_ratio_scaling"],[i.Z$.FullScreen,"full_screen_scaling"],[i.Z$.IntegerScaling,"integer_scaling"],[i.Z$.NoScale,"no_scaling"]]),ce=new Map([[i.V7.bit_Default,B],[i.V7.bit_8,"system.display.desktopColorDepthSDR24"],[i.V7.bit_10,"system.display.desktopColorDepthSDR30"],[i.V7.bit_16,"system.display.desktopColorDepthSDR64"],[i.V7.bit_16_WCG,"system.display.desktopColorDepthWCG64"],[i.V7.bit_16_HDR,"system.display.desktopColorDepthHDR64"]]),te=new Map([[i.cF.Invalid,""],[i.cF.BPC_6,"system.display.6bpc"],[i.cF.BPC_8,"system.display.8bpc"],[i.cF.BPC_10,"system.display.10bpc"],[i.cF.BPC_12,"system.display.12bpc"],[i.cF.BPC_16,"system.display.16bpc"]]),Ee=new Map([[i.Gs.UNKNOWN,""],[i.Gs.RGB,"system.display.rgb"],[i.Gs.YCBCR420,"system.display.ycbcr420"],[i.Gs.YCBCR422,"system.display.ycbcr422"],[i.Gs.YCBCR444,"system.display.ycbcr444"]]),it=new Map([[i.LI.Invalid,""],[i.LI.AUTO,""],[i.LI.CEA,"system.display.limited"],[i.LI.VESA,"system.display.full"]]),Fe=new Map([[i.cM.Auto,"system.display.contentTypeAuto"],[i.cM.Video,"system.display.contentTypeFSvideos"],[i.cM.Desktop,"system.display.contentTypeDesktop"],[i.cM.Photo,"system.display.contentTypePhotos"],[i.cM.Movie,"system.display.contentTypeMovies"],[i.cM.Game,"system.display.contentTypeGames"]]),ct="DisplayResolution",Ge="DisplayRefreshRate",nt="DisplayRotation",Je="GlobalGSync",ze="DisplayGSync",Ke="ScalingMode",Ve="ScalingDevice",$e="ScalingModeOverride",dt="ScalingPreviewResolution",Pe="ScalingPreviewRefreshRate",vt="OutputColorDepth",ve="OutputColorFormat",ue="DesktopColorDynamicRange",et="DisplayColorSettingsOsControlled",se="ColorAccuracyMode",Ce="DisplayColorChannel",be="DisplayBrightness",rt="DisplayContrast",me="DisplayGamma",le="DisplayDigitalVibrance",Xe="DisplayHue",Se="DisplayContentType",fe=7,Ne=12,ye={index:0,position:{X:0,Y:0},identifier:-1,rotationState:i.H_.Rotation0,isClonePrimary:!1,logicalDisplayType:i.QE.None,nvDisplayId:-1,gpuId:-1,gpuIndex:-1,currentResolution:{horizontal:0,vertical:0,flags:{isInterlaced:!1,isHD:!1,isSupported:!1,isCustom:!1,isCurrent:!1,isNative:!1,isRecommended:!1,isCloneSupported:!1,isHD_3D:!1,isBezelCorrected:!1,isSurround:!1,isChecked:!1,isBlindlyExposedHD:!1,isCustomUnderscan:!1,isDefaultUnderscan:!1,isScalingFactor12000:!1,isScalingFactor15000:!1,isScalingFactor17777:!1,isScalingFactor20000:!1,isScalingFactor22500:!1,isScalingFactor30000:!1,isScalingFactor40000:!1,isScalingFactor60000:!1,isScalingFactor90000:!1,isScalingFactor5000:!1,isScalingFactor6667:!1,isScalingFactor7500:!1,isScalingFactor7693:!1,isScalingFactor8500:!1,isScalingFactor5883:!1,isDLDSRFactor:!1},tvFormat:i.Yz.None,refreshRate:60},gsyncState:{gsyncType:4,enabled:!1},hdcpState:{hdcpStatus:{isUnavailable:!0,isInvalidDisplayID:!1,isInvalidDisplay:!0,isInvalidDisplayMode:!1,isInvalidGpu:!1,isInvalidGpuMode:!1,isAbortUntrust:!1,isAbortLinkFailure:!1,isAbortKsvLength:!1,isAbortKsvSignature:!1,isAbortSrmSignature:!1,isAbortSrmRemoved:!1,isAbortSrmRevoked:!1,isAbortRepeaterNoReady:!1,isAbortTopologyError:!1,isAbortBadDisplay:!1,isAbortDeviceRevoked:!1,isAbortDeviceInvalid:!1,isAbortHopLimitExceeded:!1},hdcpLinkStatus:{isRepeaterPresent:!1,isDebuggerDetected:!1,isHDCPOn:!1},isSupported:!0}},Ot="inactive_display",sn=200,dn="common.notAvailable",yn="common.notEnabled",At=!0,Vt=[{id:"brightness",translationKey:"system.display.brightness",valueProperty:"brightnessValue",minProperty:"brightnessMinValue",maxProperty:"brightnessMaxValue",formatAs:"Integer",inputHandler:"onBrightnessInputChange",changeHandler:"onBrightnessChange",dataSource:"selectedChannelData"},{id:"contrast",translationKey:"system.display.contrast",valueProperty:"contrastValue",minProperty:"contrastMinValue",maxProperty:"contrastMaxValue",formatAs:"Integer",inputHandler:"onContrastInputChange",changeHandler:"onContrastChange",dataSource:"selectedChannelData"},{id:"gamma",translationKey:"system.display.gamma",valueProperty:"gammaValue",minProperty:"gammaMinValue",maxProperty:"gammaMaxValue",formatAs:"Decimal",step:.01,inputHandler:"onGammaInputChange",changeHandler:"onGammaChange",dataSource:"selectedChannelData"},{id:"digitalVibrance",translationKey:"system.display.digitalVibrance",valueProperty:"digitalVibranceValue",minProperty:"digitalVibranceMin",maxProperty:"digitalVibranceMax",formatAs:"Integer",inputHandler:"onDigitalVibranceInputChange",changeHandler:"onDigitalVibranceChange",dataSource:"digitalVibranceData"},{id:"hue",translationKey:"system.display.hue",valueProperty:"hueValue",minProperty:"hueMin",maxProperty:"hueMax",formatAs:"Integer",inputHandler:"onHueInputChange",changeHandler:"onHueChange",dataSource:"hueData"}],Qt="Base Profile",Jt=65539,Zt="surround.settingTitle",nn="surround.surroundDialogDescription",Xt="surround.surroundDialogTypicalUsageScenario",lt="surround.loadingDescription"},52842:(St,z,s)=>{"use strict";s.d(z,{BE:()=>A,Cp:()=>g,G7:()=>M,NK:()=>S,a4:()=>x,bR:()=>n,e_:()=>h,mW:()=>C,xQ:()=>P});var i=s(51148);const n=[{name:i.q5.Auto,icon:"icon_auto_displayMode",isDisabled:!1},{name:i.q5.NvGpu,icon:"icon_nv_gpu_displayMode",isDisabled:!1},{name:i.q5.Optimus,icon:"icon_optimus_displayMode",isDisabled:!1}],h={bIsSupported:!1,bIsAutomatic:!1,MuxState:i.iZ.State_Invalid,kmdResponse:i.Kc.Response_Ok,srType:i.Oi.PSR_Unknown},C="common.auto",S="system.display.advanceOptimus.nvidiaGpu",M="system.display.advanceOptimus.optimus",P="system.display.advanceOptimus.integratedGraphics",x="system.display.advanceOptimus.switchedToNvidiaGpu",A="system.display.advanceOptimus.switchedToIntegratedGraphics",g="system.display.advanceOptimus.currently"},9231:(St,z,s)=>{"use strict";s.d(z,{H:()=>n});var i=s(75597);const n=[i.c.Display,i.c.Video,i.c.Performance,i.c.Overview]},30627:(St,z,s)=>{"use strict";s.d(z,{$X:()=>Ce,$Z:()=>C,A5:()=>Ue,AD:()=>me,Be:()=>ye,Bw:()=>be,E2:()=>Qe,Ep:()=>ue,Fh:()=>Ke,Fs:()=>fe,G8:()=>Fe,Gs:()=>it,H_:()=>P,I_:()=>q,J1:()=>Ve,J6:()=>Je,K:()=>rt,LI:()=>te,MY:()=>Xt,Mi:()=>dn,Mr:()=>Xe,NU:()=>X,OH:()=>l,OZ:()=>ct,P8:()=>et,QE:()=>u,Tc:()=>E,To:()=>ze,Tr:()=>At,V7:()=>Ee,W6:()=>Pe,WQ:()=>r,Yz:()=>S,Z$:()=>Y,Z1:()=>$e,ZE:()=>G,ZH:()=>nt,Zc:()=>B,Zd:()=>T,Zt:()=>nn,ap:()=>Ne,bT:()=>le,bq:()=>m,cF:()=>ce,cM:()=>dt,cQ:()=>vt,f7:()=>Ge,hA:()=>ae,iI:()=>Jt,kf:()=>sn,kl:()=>ve,kw:()=>Ot,mE:()=>R,m_:()=>Vt,n0:()=>se,nL:()=>U,nX:()=>v,oD:()=>g,oP:()=>J,or:()=>Qt,p0:()=>Se,qS:()=>Q,rc:()=>n,uM:()=>M,um:()=>k,xq:()=>A,xv:()=>yn,zV:()=>lt,zd:()=>x});var i=s(20924),n=i.Or.Nvapp.Nvcpldisplayplugin.GSyncCapabilities;const C=i.Ts.Nvapp.Nvcpldisplayplugin.RegisterDisplayChangeNotification;var S=i.Or.Nvapp.Nvcpldisplayplugin.TvFormat,M=i.Or.Nvapp.Nvcpldisplayplugin.ConnectorType,P=i.Or.Nvapp.Nvcpldisplayplugin.RotationType;const x=i.Ts.Nvapp.Nvcpldisplayplugin.SetResolution,A=i.Ts.Nvapp.Nvcpldisplayplugin.SetRotation,g=i.Ts.Nvapp.Nvcpldisplayplugin.RevertState;var m=i.Or.Nvapp.Nvcpldisplayplugin.DeviceType;const l=i.Ts.Nvapp.Nvcpldisplayplugin.IdentifyDisplays,r=i.Ts.Nvapp.Nvcpldisplayplugin.RestoreDisplaySettings;var u=i.Or.Nvapp.Nvcpldisplayplugin.LogicalDisplayType,v=i.Or.Nvapp.Nvcpldisplayplugin.GlobalGsyncState;const E=i.Ts.Nvapp.Nvcpldisplayplugin.GetGlobalGsyncState,T=i.Ts.Nvapp.Nvcpldisplayplugin.SetGlobalGsyncState,R=i.Ts.Nvapp.Nvcpldisplayplugin.SetDisplayGsyncState,B=i.Ts.Nvapp.Nvcpldisplayplugin.RestoreGlobalGsyncState;var U=i.Or.Nvapp.Nvcpldisplayplugin.ScalingMode,Y=i.Or.Nvapp.Nvcpldisplayplugin.ScalingMethod;const ae=i.Ts.Nvapp.Nvcpldisplayplugin.SetScalingSettings,G=i.Ts.Nvapp.Nvcpldisplayplugin.GetScalingSettings,k=i.Ts.Nvapp.Nvcpldisplayplugin.SetScalingOverride,X=i.Ts.Nvapp.Nvcpldisplayplugin.GetDisplayResolutionList,q=i.Ts.Nvapp.Nvcpldisplayplugin.GetIsUpscalingFactorsEnabled,Q=i.Ts.Nvapp.Nvcpldisplayplugin.GetColorEnhancementInfo;var ce=i.Or.Nvapp.Nvcpldisplayplugin.OutputColorDepth,te=i.Or.Nvapp.Nvcpldisplayplugin.DynamicRange,Ee=i.Or.Nvapp.Nvcpldisplayplugin.DesktopColorDepth,it=i.Or.Nvapp.Nvcpldisplayplugin.OutPutColorFormat;const Fe=i.Ts.Nvapp.Nvcpldisplayplugin.SetDesktopColorDepth,Qe=i.Ts.Nvapp.Nvcpldisplayplugin.SetOutputColorDepth,ct=i.Ts.Nvapp.Nvcpldisplayplugin.SetOutputColorFormat,Ge=i.Ts.Nvapp.Nvcpldisplayplugin.SetDynamicRange,nt=i.Ts.Nvapp.Nvcpldisplayplugin.GetDesktopColorCombinationInfo,Je=i.Ts.Nvapp.Nvcpldisplayplugin.SetColorCombinationInfo,ze=i.Ts.Nvapp.Nvcpldisplayplugin.GetDigitalVibranceInfo,Ke=i.Ts.Nvapp.Nvcpldisplayplugin.GetHueInfo,Ve=i.Ts.Nvapp.Nvcpldisplayplugin.SetDigitalVibrance,$e=i.Ts.Nvapp.Nvcpldisplayplugin.SetHue;var dt=i.Or.Nvapp.Nvcpldisplayplugin.ContentType;const Pe=i.Ts.Nvapp.Nvcpldisplayplugin.GetContentTypeInfo,J=i.Ts.Nvapp.Nvcpldisplayplugin.SetContentType;var vt=i.Or.Nvapp.Nvcpldisplayplugin.ColorAccuracyMode;const ve=i.Ts.Nvapp.Nvcpldisplayplugin.GetColorAccuracyMode,ue=i.Ts.Nvapp.Nvcpldisplayplugin.SetColorAccuracyMode,et=i.Ts.Nvapp.Nvcpldisplayplugin.GetIsColorSettingsOsControlled,se=i.Ts.Nvapp.Nvcpldisplayplugin.SetIsColorSettingsOsControlled,Ce=i.Ts.Nvapp.Nvcpldisplayplugin.GetDisplaysState,be=i.Ts.Nvapp.Nvcpldisplayplugin.SetDisplaysState,rt=i.Ts.Nvapp.Nvcpldisplayplugin.GetGpuAndDisplaysPhysicalInformation,me=i.Ts.Nvapp.Nvcpldisplayplugin.GetScalingPreviewInfo,le=i.Ts.Nvapp.Nvcpldisplayplugin.GetIsInfoFrameEnabled,Xe=i.Ts.Nvapp.Nvcpldisplayplugin.CancelState,Se=i.Ts.Nvapp.Nvcpldisplayplugin.CommitState,fe=i.Ts.Nvapp.Nvcpldisplayplugin.GetDisplayLuid,Ne=i.Ts.Nvapp.Nvcpldisplayplugin.GetSurroundOrMosaicConfig;var ye=i.Or.Nvapp.Nvcpldisplayplugin.MosaicType;const Ot=i.Ts.Nvapp.Nvcpldisplayplugin.SetSurroundOrMosaicConfig,sn=i.Ts.Nvapp.Nvcpldisplayplugin.GetMosaicDisplaySettings,dn=i.Ts.Nvapp.Nvcpldisplayplugin.DisableAllMosaicGroups,yn=i.Ts.Nvapp.Nvcpldisplayplugin.ExtendAllDisplays,At=i.Ts.Nvapp.Nvcpldisplayplugin.GetSpanIdentifiers,Vt=i.Ts.Nvapp.Nvcpldisplayplugin.GetGsyncIndicator,Qt=i.Ts.Nvapp.Nvcpldisplayplugin.SetGsyncIndicator;var Jt=function(wt){return wt.Automatic="Automatic (Discrete Graphics)",wt.Optimus="Optimus",wt.NvidiaOnly="Nvidia GPU only",wt}(Jt||{}),nn=function(wt){return wt.All="all",wt.Red="red",wt.Green="green",wt.Blue="blue",wt}(nn||{}),Xt=function(wt){return wt[wt.Custom=1]="Custom",wt[wt.HD_3D=2]="HD_3D",wt[wt.SD=3]="SD",wt[wt.HD_SD=4]="HD_SD",wt[wt.Surround=5]="Surround",wt[wt.Panoramic=6]="Panoramic",wt[wt.Standard=7]="Standard",wt[wt.SuperResolution=8]="SuperResolution",wt[wt.Scalingresolution=9]="Scalingresolution",wt}(Xt||{});const lt=800,Ue=600},51148:(St,z,s)=>{"use strict";s.d(z,{Kc:()=>x,L3:()=>n,Oi:()=>A,Zg:()=>S,Zq:()=>h,iZ:()=>P,q5:()=>g,xv:()=>M,zS:()=>C});var i=s(20924);const n=i.Ts.Nvapp.Nvcpldisplayplugin.SetDDSState,h=i.Ts.Nvapp.Nvcpldisplayplugin.GetDDSState,C=i.Ts.Nvapp.Nvcpldisplayplugin.DDSBlockingAppPresent,S=i.Ts.Nvapp.Nvcpldisplayplugin.ACPowerConnected,M=i.Ts.Nvapp.Nvcpldisplayplugin.GetDDSBlockingApps;var P=i.Or.Nvapp.Nvcpldisplayplugin.MuxState,x=i.Or.Nvapp.Nvcpldisplayplugin.KmdResponse,A=i.Or.Nvapp.Nvcpldisplayplugin.SrType,g=function(m){return m.Auto="common.auto",m.Optimus="system.display.advanceOptimus.optimus",m.NvGpu="system.display.advanceOptimus.nvidiaGpu",m}(g||{})},21912:(St,z,s)=>{"use strict";s.d(z,{$t:()=>it,Aw:()=>x,Dk:()=>Q,EH:()=>n,Em:()=>i,FB:()=>S,Fc:()=>Y,GL:()=>v,Gj:()=>k,Ie:()=>q,Qp:()=>ce,UC:()=>R,WF:()=>h,X5:()=>B,YD:()=>ae,Yq:()=>r,ZK:()=>M,ZY:()=>A,f8:()=>l,g2:()=>C,gM:()=>U,j7:()=>m,lI:()=>g,mH:()=>u,mu:()=>T,nQ:()=>X,uU:()=>P,wS:()=>E,w_:()=>Ee,wv:()=>te,xO:()=>ct});const i="var(--display-title-border-color)",n="var(--display-title-bg-color)",h="var(--display-title-bg-hover-color)",C="var(--display-title-bg-color-drag)",S=1,M=600,P=.006,x=.1,A="var(--geometry-border-radius-lg)",g="var(--display-selected-border-color)",m="var(--display-tile-border-color-without-text)",l="var(--display-tile-bg-color-without-text)",r="var(--display-id-text-color)",u="var(--display-id-text-hover-color)",v="2px, 2px",E=96,T=[750,260],R=[150,84],B="multipleDisplays.sumdTooltip",U="multipleDisplays.sumdClonetooltip",Y=" | ",ae=", ",k=500,X=10,q={centerX:282,centerY:48},Q={centerX:48,centerY:48},ce="assets/img/More-Menu_32.svg",te="assets/img/More-Menu-Hover_32.svg",Ee="assets/img/Asterisk_24.svg",it="assets/img/nvidia_symbol.svg",ct=[ce,te,Ee,it,"assets/img/badge_G-Sync.svg","assets/img/badge_G-Sync_Ultimate.svg"]},75597:(St,z,s)=>{"use strict";s.d(z,{c:()=>i});var i=function(n){return n[n.Overview=0]="Overview",n[n.Performance=1]="Performance",n[n.Display=2]="Display",n[n.Video=3]="Video",n}(i||{})},45598:(St,z,s)=>{"use strict";s.d(z,{w:()=>T});var i=s(31315),n=s(43848),h=s(91384),C=s(8619),S=s(72147),M=s(83915),P=s(14714),x=s(55833),A=s(65706),g=s(30627),m=s(88081),l=s(3321),r=s(58527),u=s(92602),v=s(59584),E=s(92616);let T=(()=>{class R{constructor(U,Y,ae,G){this.loggingService=U,this.displaysService=Y,this.manageDisplayModeService=ae,this.hardwareInfoService=G,this.logger=U.getLogger("nvapp/DisplaySearchService")}getDisplayPageSearchInfoUtil(){return this.displaysService.isDisplaySupported$.pipe((0,h.M)(U=>{U||this.logger.info("Display tab not supported, returning empty headers")}),(0,C.p)(U=>U),(0,S.n)(()=>(0,i.zV)([this.manageDisplayModeService.ddsState$,this.displaysService.globalGsyncInfo,this.displaysService.enableSurround$,this.hardwareInfoService.getQuadroSystemFlag()]).pipe((0,S.n)(([Y,ae,G,k])=>{const X=this.getGlobalSettingsHeaders(Y,ae,G,k);return this.displaysService.activeDisplayConnected$.pipe((0,S.n)(q=>{if(!q)return(0,n.of)(X);const Q=[...X,m.H.DisplaySettings];return this.displaysService.selectedDisplay$.pipe((0,S.n)(ce=>{if(!ce?.type)return(0,n.of)(Q);const te=ce.type,Ee=this.getDisplayPropertiesHeaders(te,ae),it=this.getDisplayScalingHeaders(te),Fe=[...Q,...Ee,...it];return this.getDisplayColorHeaders(te).pipe((0,M.T)(Qe=>[...Fe,...Qe]))}))}))}))),(0,P.W)(U=>(this.logger.error("Error getting display search headers:",U),(0,n.of)([]))),(0,M.T)(U=>[...new Set(U)]),(0,x.t)({bufferSize:1,refCount:!0,windowTime:m.J}))}getDisplaySettingsHeaders(){return[m.H.DisplaySettings]}getGlobalSettingsHeaders(U,Y,ae,G){const k=[],X=Y?.globalGsyncState!==g.nX.NotAvailable,q=U?.bIsSupported;return!G||q||X?(q?(k.push(m.H.GlobalSettings.GsyncDisplayModeAndSurround),k.push(m.H.GlobalSettings.DisplayMode)):k.push(m.H.GlobalSettings.GsyncAndSurround),ae&&k.push(m.H.GlobalSettings.SurroundSettingTitle),(!G||q)&&k.push(m.H.GlobalSettings.Gsync),k):(k.push(m.H.GlobalSettings.GsyncCapable),k)}addGsyncHeaders(U,Y,ae){const G=Y.gsyncState?.gsyncType;if(G===g.rc.VRR)U.push(m.H.GlobalSettings.Gsync,m.H.Gsync.PanelTitleVrr,m.H.Gsync.NonGsyncCompatible);else if(G===g.rc.GSyncCompatible)U.push(m.H.GlobalSettings.Gsync,m.H.Gsync.AllowGsyncSettings);else if(G===g.rc.GSyncCapable||G===g.rc.GsyncUltimate){U.push(m.H.GlobalSettings.Gsync);const k=ae.globalGsyncState;U.push(k===g.nX.FullscreenOnly||k===g.nX.FullscreenAndWindowed?m.H.Gsync.EnabledGlobally:m.H.Gsync.DisabledGlobally)}}getDisplayPropertiesHeaders(U,Y){if(!U||!Y)return[];const ae=[];ae.push(m.H.DisplayProperties,m.H.Properties.Connector,m.H.Properties.Resolution,m.H.Properties.RefreshRate,m.H.Properties.Orientation),this.addGsyncHeaders(ae,U,Y),U.hdcpState?.isSupported&&ae.push(m.H.Properties.HdcpStatus);const G=Array.from(l.D0.values());return ae.push(...G.map(k=>k.rotationLabel)),ae}getDisplayScalingHeaders(U){if(!U)return[];const Y=[m.H.DisplayScaling];Y.push(m.H.Scaling.Mode);const ae=Array.from(l.K5.values());Y.push(...ae),Y.push(m.H.Scaling.Device);const G=Array.from(l.yo.values());return Y.push(...G),Y.push(m.H.Scaling.OverrideMode,m.H.Scaling.Preview),Y}isHDConnector(U){return U===g.uM.CT_HDMI||U===g.uM.CT_DISPLAYPORT||U===g.uM.CT_USBC}isContentTypeVisible(U){return U?U.desktopColorContentType$.pipe((0,S.n)(Y=>this.displaysService.getIsInfoFrameEnabled().pipe((0,A.s)(1),(0,M.T)(ae=>ae.enabled&&U.connectorType===g.uM.CT_HDMI&&Y?.contentTypeSupportedList?.length>=1),(0,P.W)(ae=>(this.logger.error("Error determining content type visibility",ae),(0,n.of)(!1)))))):(0,n.of)(!1)}addOutputColorSettingsHeaders(U,Y){const{showDesktopColorDepth:ae,showOutputColorDepth:G,showOutPutColorFormat:k,showDynamicRange:X}=Y;(G||X)&&(U.push(m.H.Color.OutputColorSettings),ae&&U.push(m.H.Color.DesktopColorDepth),G&&U.push(m.H.Color.OutputColorDepth),k&&U.push(m.H.Color.OutputColorFormat),X&&U.push(m.H.Color.DynamicRange))}getOutputColorVisibilityFlags(U){const Y={showDesktopColorDepth:!1,showOutputColorDepth:!1,showOutPutColorFormat:!1,showDynamicRange:!1};return U?U.desktopColorEnhancementInfo$.pipe((0,M.T)(ae=>{if(ae){const G=this.isHDConnector(U?.connectorType);Y.showDesktopColorDepth=ae?.desktopColorDepthPossibleValues?.length>=1,Y.showOutputColorDepth=ae?.outputColorDepthPossibleValues?.length>=1&&ae?.outputColorDepthCurrentValue!==g.cF.Invalid,Y.showOutPutColorFormat=G&&ae?.outputColorFormatCurrentValue!==g.Gs.UNKNOWN&&ae?.outputColorFormatPossibleValues?.length>=1,Y.showDynamicRange=Y.showOutPutColorFormat&&ae?.dynamicRangeCurrentValue!==g.LI.Invalid}return Y}),(0,P.W)(ae=>(this.logger.error("Error getting output color visibility flags",ae),(0,n.of)(Y)))):(0,n.of)(Y)}getDisplayColorHeaders(U){return U?(0,i.zV)([this.getOutputColorVisibilityFlags(U),this.isContentTypeVisible(U)]).pipe((0,M.T)(([Y,ae])=>{const G=[m.H.DisplayColor];return this.addOutputColorSettingsHeaders(G,Y),G.push(m.H.Color.ColorAccuracyMode,m.H.Color.OverrideToReferenceMode,m.H.Color.ColorChannel),G.push(...l.Zw.map(k=>k.translationKey)),ae&&G.push(m.H.Color.ContentType),G}),(0,P.W)(Y=>(this.logger.error("Error getting color headers",Y),(0,n.of)([m.H.DisplayColor])))):(0,n.of)([m.H.DisplayColor])}static{this.\u0275fac=function(Y){return new(Y||R)(r.KVO(u.J6),r.KVO(v.R),r.KVO(E.S),r.KVO(u.SQ))}}static{this.\u0275prov=r.jDH({token:R,factory:R.\u0275fac,providedIn:"root"})}}return R})()},3306:(St,z,s)=>{"use strict";s.d(z,{Q:()=>r});var i=s(85735),n=s(43848),h=s(65706),C=s(83915),S=s(14714),M=s(30627),P=s(3321),x=s(63407),A=s(58527),g=s(92602),m=s(96542),l=s(86088);let r=(()=>{class u{constructor(E,T,R){this.translateService=T,this.nvAppBridgeService=R,this._scalingChange=new i.m(1),this.logger=E.getLogger("nvapp/DisplayUtilService")}getDefaultDisplayName(E){const T=P.D_.get(E)||P.ED;return this.translateService.instant(T)}getCurrentDesktopColorDepth(E,T=void 0){const R=E.isAdvanceColorSettingsSupported?P.rS.get(T||E.desktopColorDepth):P.it;return R?this.translateService.instant(R):""}getFactorForSmoothScaling(E){let T;for(const[R,B]of P.EM.entries())if(E.flags[R]){T=B;break}return T}buildResolutionMetadata(E,T){let R;const B=this.getFactorForSmoothScaling(E);return R=B?this.buildResolutionForSmoothScaling(B,E,T):this.buildResolutionForNonFactor(E,T),E.flags.isCustomUnderscan&&(R.resolution=this.translateService.instant("system.display.resolutions.overscan",{resolution:R.resolution})),P.kr.get(R.group),R}buildResolutionForSmoothScaling(E,T,R){const B=E>P.mv?M.MY.SuperResolution:M.MY.Scalingresolution;let U="",Y="";return T.flags.isHD||T.flags.isHD_3D?(U=T.flags.isHD_3D?this.deriveFactorString(E,T,P.By):this.isSDTV(R)?this.deriveFactorString(E,T,P.x8):this.deriveFactorString(E,T,P.CF),Y=this.formatForHDOrPC(T,U)):(U=this.deriveFactorString(E,T,P.eQ),Y=this.translateService.instant("system.display.resolutions.pc",{horizontal:T.horizontal,vertical:T.vertical,recommended:U})),{resolution:Y,group:B}}deriveFactorString(E,T,R){let B="",U=E;return E>P.mv?(B=R.default,T.flags.isDLDSRFactor&&(B=R.dlDSRFactor)):(B=R.scalingFactor,U=100*E),this.translateService.instant(B,{factor:U})}buildResolutionForNonFactor(E,T){let R;return R=E.flags.isCustom?this.buildCustomResolution(E,T):E.flags.isHD||E.flags.isHD_3D?this.buildHDOrHD3DResolution(E,T):E.flags.isSurround||E.flags.isBezelCorrected?this.buildBezelAdjustedResolution(E):this.buildPcFormatResolution(E),R}buildCustomResolution(E,T){const R=this.isHDTV(T)?E.flags.isInterlaced?"system.display.resolutions.interlaced":"system.display.resolutions.progressive":"system.display.resolutions.pc";return{resolution:this.translateService.instant(R,{horizontal:E.horizontal,vertical:E.vertical,recommended:""}),group:M.MY.Custom}}buildHDOrHD3DResolution(E,T){let R,B="",U="";R=E.flags.isHD_3D?M.MY.HD_3D:this.isSDTV(T)?M.MY.SD:M.MY.HD_SD,E.flags.isNative?U=this.isSDTV(T)?"system.display.resolutions.recommended":"system.display.resolutions.native":E.flags.isRecommended&&(U="system.display.resolutions.recommended");const Y=U?this.translateService.instant(U):"";return B=this.formatForHDOrPC(E,Y),{resolution:B,group:R}}formatForHDOrPC(E,T){const R=this.getHDName(E.tvFormat),B=this.isTvFormatDVINONHD(E.tvFormat)?"system.display.resolutions.pc":"system.display.resolutions.hd";return this.translateService.instant(B,{hdName:R,horizontal:E.horizontal,vertical:E.vertical,recommended:T})}buildBezelAdjustedResolution(E){let T="",R="";const B=this.isMosaicEnabled()||this.isSliMosaicMode()?M.MY.Panoramic:M.MY.Surround;E.flags.isBezelCorrected?T="system.display.resolutions.bezelAdjusted":E.flags.isNative?T="system.display.resolutions.native":E.flags.isRecommended&&!E.flags.isBezelCorrected&&(T="system.display.resolutions.recommended");const U=T?this.translateService.instant(T):"";return R=this.translateService.instant("system.display.resolutions.pc",{horizontal:E.horizontal,vertical:E.vertical,recommended:U}),{resolution:R,group:B}}buildPcFormatResolution(E){let T="";const R=M.MY.Standard;E.flags.isNative?T="system.display.resolutions.native":E.flags.isRecommended&&(T="system.display.resolutions.recommended");const B=T?this.translateService.instant(T):"";return{resolution:this.translateService.instant("system.display.resolutions.pc",{horizontal:E.horizontal,vertical:E.vertical,recommended:B}),group:R}}isHDTV(E){return E.connectorType===M.uM.CT_HDMI||E.connectorType===M.uM.CT_COMPONENT}isSDTV(E){return E.connectorType===M.uM.CT_AUTO||E.connectorType===M.uM.CT_SVIDEO||E.connectorType===M.uM.CT_COMPOSITE}isTvFormatDVINONHD(E){return E===M.Yz.NonHD}getHDName(E){const T=P.sJ.get(E);return T?this.translateService.instant(T):""}getSurroundDisplayName(){return this.translateService.instant("system.surroundDisplay")}isMosaicEnabled(){return!1}isSliMosaicMode(){return!1}isDisplayInClone(E){return!1}isDisplayInMosaicTopology(E){return!1}isMosaicTopologyAutoConfiguredTileDisplay(E){return!1}isDisplayPartOfMergedDisplays(E){return!1}isDisplaySecondaryClone(E){return!1}getIsUpscalingEnabled(){return this.nvAppBridgeService.executeWithPluginStatusTelemetry(M.I_,{}).pipe((0,h.s)(1),(0,C.T)(E=>(this.logger.info("GetIsUpscalingFactorsEnabled returns data ",E),E)))}getDisplayName(E){return E.logicalDisplayType===M.QE.SurroundDisplay?this.getSurroundDisplayName():E.name?.trim()||this.getDefaultDisplayName(E.deviceType)}isClonePrimaryAsGDIPrimary(E){return 0==E.position.X&&0===E.position.Y&&E.isClonePrimary}getNISState(){return this.nvAppBridgeService.executeWithPluginStatusTelemetry(x.zD,{ProfileName:P.J_,ProfileSettingEnum:P.nW,ApplicationId:0,CmsId:0}).pipe((0,C.T)(T=>T?.SettingValue?.JsonStringValue?JSON.parse(T.SettingValue.JsonStringValue).enabled:(this.logger.warn("Missing JsonStringValue in profile settings"),!1)),(0,S.W)(T=>(this.logger.error("Error during getProfileSettingValue api call:",T),(0,n.of)(!1))))}scalingChange(){this._scalingChange.next()}get scalingChange$(){return this._scalingChange.asObservable()}static{this.\u0275fac=function(T){return new(T||u)(A.KVO(g.J6),A.KVO(m.c$),A.KVO(l.S))}}static{this.\u0275prov=A.jDH({token:u,factory:u.\u0275fac,providedIn:"root"})}}return u})()},59584:(St,z,s)=>{"use strict";s.d(z,{R:()=>le});var i=s(85735),n=s(80583),h=s(36466),C=s(31315),S=s(59859),M=s(93181),P=s(43848),x=s(15652),A=s(12532),g=s(83915),m=s(65706),l=s(91384),r=s(14714),u=s(72147),v=s(79539),E=s(10174),T=s(75707),R=s(43615),B=s(30627),U=s(3321),Y=s(1242),ae=s(70279),G=s(58527),k=s(92602),X=s(60990),q=s(40514),Q=s(47973),ce=s(26537),te=s(92626),Ee=s(61142),it=s(96542);let Fe=(()=>{class Xe{constructor(fe){this.disableControls=!1,this.loadingSpinner=!1,this.bodyText="",this.restoreSettings=new G.bkB,this.logger=fe.getLogger("nvapp/RestoreDefaultComponent")}onRestoreClicked(fe){this.disableControls=!0,this.loadingSpinner=!0,this.restoreSettings.emit(fe)}static{this.\u0275fac=function(Ne){return new(Ne||Xe)(G.rXU(k.J6))}}static{this.\u0275cmp=G.VBU({type:Xe,selectors:[["nv-app-restore-default"]],inputs:{bodyText:"bodyText"},outputs:{restoreSettings:"restoreSettings"},decls:16,vars:19,consts:[[1,"restore-default-dialog-main-container"],[1,"restore-default-dialog-title-container","font-header6","font-color-primary"],[1,"restore-default-dialog-data-container"],[1,"font-body2","restore-default-descritpion",3,"innerHTML"],["align","end"],["mat-button","","mat-dialog-close","",1,"font-button2",3,"disabled"],["mat-button","","nvAppTextButtonSpinner","",1,"font-button2","restore-button",3,"click","showSpinner","buttonText","disabled"]],template:function(Ne,ye){1&Ne&&(G.j41(0,"div",0)(1,"div",1),G.EFF(2),G.nI1(3,"translate"),G.k0s(),G.j41(4,"div",2),G.nrm(5,"div",3),G.nI1(6,"translate"),G.k0s(),G.j41(7,"div",4)(8,"button",5)(9,"span"),G.EFF(10),G.nI1(11,"translate"),G.nI1(12,"uppercase"),G.k0s()(),G.j41(13,"button",6),G.nI1(14,"translate"),G.nI1(15,"uppercase"),G.bIt("click",function(sn){return ye.onRestoreClicked(sn)}),G.k0s()()()),2&Ne&&(G.R7$(2),G.SpI(" ",G.bMT(3,7,"system.display.restoreDefaultsDlgTitle")," "),G.R7$(3),G.Y8G("innerHTML",G.bMT(6,9,ye.bodyText),G.npT),G.R7$(3),G.Y8G("disabled",ye.disableControls),G.R7$(2),G.JRh(G.bMT(12,13,G.bMT(11,11,"common.cancel"))),G.R7$(3),G.Y8G("showSpinner",ye.loadingSpinner)("buttonText",G.bMT(15,17,G.bMT(14,15,"common.ok")))("disabled",ye.disableControls))},dependencies:[X.r,q.e,Q.iV,ce.tx,te.u,Ee.Pc,it.D9],styles:[".restore-default-dialog-main-container[_ngcontent-%COMP%]{width:528px;max-width:528px;max-height:87vh;padding:20px 8px 8px 24px;overflow:hidden}.restore-default-dialog-main-container[_ngcontent-%COMP%] .restore-default-dialog-title-container[_ngcontent-%COMP%]{margin-bottom:16px}.restore-default-dialog-main-container[_ngcontent-%COMP%] .restore-button[_ngcontent-%COMP%]{margin-top:16px;margin-left:8px}"]})}}return Xe})();var Qe=s(94645),ct=s(45768),Ge=s(892),nt=s(92616),Je=s(29370),ze=s(99204);function Ke(Xe,Se){1&Xe&&(G.j41(0,"div",7),G.nrm(1,"mat-progress-spinner",8),G.k0s()),2&Xe&&(G.R7$(),G.Y8G("diameter",20))}function Ve(Xe,Se){1&Xe&&(G.j41(0,"div",10),G.nrm(1,"mat-icon",11),G.j41(2,"span"),G.EFF(3),G.nI1(4,"translate"),G.k0s()()),2&Xe&&(G.R7$(3),G.JRh(G.bMT(4,1,"system.display.advanceOptimus.noApplicationsBlockingDisplayMode")))}function $e(Xe,Se){if(1&Xe&&(G.j41(0,"li",15)(1,"div",16)(2,"span",17),G.EFF(3),G.k0s()()()),2&Xe){const fe=Se.$implicit;G.BMQ("aria-label",fe),G.R7$(3),G.JRh(fe)}}function dt(Xe,Se){if(1&Xe&&(G.qex(0),G.j41(1,"div",12)(2,"ul",13),G.DNE(3,$e,4,2,"li",14),G.k0s()(),G.bVm()),2&Xe){const fe=G.XpG(2);G.R7$(3),G.Y8G("ngForOf",fe.blockingAppList)}}function Pe(Xe,Se){if(1&Xe&&(G.qex(0),G.DNE(1,Ve,5,3,"div",9)(2,dt,4,1,"ng-container",4),G.bVm()),2&Xe){const fe=G.XpG();G.R7$(),G.Y8G("ngIf",0===fe.blockingAppList.length),G.R7$(),G.Y8G("ngIf",fe.blockingAppList.length>0)}}let J=(()=>{class Xe{constructor(fe,Ne,ye){this.dialogRef=Ne,this.blockingAppsService=ye,this.blockingAppList=[],this.isLoading=!0,this.destroyRef=(0,G.WQX)(G.abz),this.logger=fe.getLogger("nvapp/BlockingAppsDisplayModeDialogComponent")}ngOnInit(){this.loadBlockingApps(),this.setupRefreshInterval()}loadBlockingApps(){this.isLoading=!0,this.blockingAppsService.getDDSBlockingApps().pipe((0,m.s)(1)).subscribe({next:fe=>{this.blockingAppList=fe?.appList||[],this.isLoading=!1},error:fe=>{this.logger.error("Error fetching blocking apps:",fe),this.blockingAppList=[],this.isLoading=!1}})}setupRefreshInterval(){(0,Ge.Y)(3e3).pipe((0,ct.pQ)(this.destroyRef),(0,u.n)(()=>this.blockingAppsService.getDDSBlockingApps())).subscribe({next:fe=>{this.blockingAppList=fe?.appList||[],this.isLoading=!1},error:fe=>{this.logger.error("Error fetching blocking apps:",fe),this.blockingAppList=[],this.isLoading=!1}})}onCloseClick(){this.dialogRef.close()}static{this.\u0275fac=function(Ne){return new(Ne||Xe)(G.rXU(k.J6),G.rXU(ce.CP),G.rXU(nt.S))}}static{this.\u0275cmp=G.VBU({type:Xe,selectors:[["nv-app-blocking-apps-display-mode-dialog"]],decls:11,vars:8,consts:[[1,"common-modal"],["mat-dialog-title","",1,"font-header6","title"],[1,"content"],["class","loading-indicator-container",4,"ngIf"],[4,"ngIf"],["align","end",1,"actions"],["mat-button","",1,"cancel-button","font-button2",3,"click"],[1,"loading-indicator-container"],["mode","indeterminate",1,"mat-accent",3,"diameter"],["class","no-app",4,"ngIf"],[1,"no-app"],["svgIcon","info",1,"info-icon"],[1,"flex-col","padding-left-16","padding-right-16","padding-top-8"],[1,"menu-item-container"],["class","blocking-app-menu-item",4,"ngFor","ngForOf"],[1,"blocking-app-menu-item"],[1,"menu-item-content"],[1,"font-body2","menu-item-text"]],template:function(Ne,ye){1&Ne&&(G.j41(0,"div",0)(1,"span",1),G.EFF(2),G.nI1(3,"translate"),G.k0s(),G.j41(4,"mat-dialog-content",2),G.DNE(5,Ke,2,1,"div",3)(6,Pe,3,2,"ng-container",4),G.k0s(),G.j41(7,"mat-dialog-actions",5)(8,"button",6),G.bIt("click",function(){return ye.onCloseClick()}),G.EFF(9),G.nI1(10,"translate"),G.k0s()()()),2&Ne&&(G.R7$(2),G.SpI(" ",G.bMT(3,4,"system.display.advanceOptimus.applicationsBlockingDisplayMode")," "),G.R7$(3),G.Y8G("ngIf",ye.isLoading),G.R7$(),G.Y8G("ngIf",!ye.isLoading),G.R7$(3),G.SpI(" ",G.bMT(10,6,"close")," "))},dependencies:[Ee.Sq,Ee.bT,Q.iV,Je.An,ze.LG,ce.BI,ce.Yi,ce.E7,it.D9],styles:[".ex-panel-margin[_ngcontent-%COMP%]{margin:8px 0}.ex-panel-bg[_ngcontent-%COMP%]{background-color:var(--system-common-ex-panel-bg-color)}.dark-divider[_ngcontent-%COMP%]{border-top-color:var(--primary-900)}.bottom-divider[_ngcontent-%COMP%]{border-bottom:1px solid var(--primary-900)}.disable-mat-select-trigger[_ngcontent-%COMP%]{opacity:.38}",".info-icon[_ngcontent-%COMP%]{width:16px;height:16px;flex-shrink:0;margin-top:2px}.menu-item-container[_ngcontent-%COMP%]{list-style:none;padding:0;margin:0}.blocking-app-menu-item[_ngcontent-%COMP%]{height:48px;padding:0}.menu-item-content[_ngcontent-%COMP%]{padding:8px 16px}.no-app[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;padding:6px 16px 18px;margin-left:4px;gap:8px}.loading-indicator-container[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:100%;width:100%;min-height:48px}",".margin-0[_ngcontent-%COMP%]{margin:0}.padding-0[_ngcontent-%COMP%]{padding:0}.gap-0[_ngcontent-%COMP%]{gap:0px}.margin-top-0[_ngcontent-%COMP%]{margin-top:0}.padding-top-0[_ngcontent-%COMP%]{padding-top:0}.margin-bottom-0[_ngcontent-%COMP%]{margin-bottom:0}.padding-bottom-0[_ngcontent-%COMP%]{padding-bottom:0}.margin-left-0[_ngcontent-%COMP%]{margin-left:0}.padding-left-0[_ngcontent-%COMP%]{padding-left:0}.margin-right-0[_ngcontent-%COMP%]{margin-right:0}.padding-right-0[_ngcontent-%COMP%]{padding-right:0}.margin-4[_ngcontent-%COMP%]{margin:4px}.padding-4[_ngcontent-%COMP%]{padding:4px}.gap-4[_ngcontent-%COMP%]{gap:4px}.margin-top-4[_ngcontent-%COMP%]{margin-top:4px}.padding-top-4[_ngcontent-%COMP%]{padding-top:4px}.margin-bottom-4[_ngcontent-%COMP%]{margin-bottom:4px}.padding-bottom-4[_ngcontent-%COMP%]{padding-bottom:4px}.margin-left-4[_ngcontent-%COMP%]{margin-left:4px}.padding-left-4[_ngcontent-%COMP%]{padding-left:4px}.margin-right-4[_ngcontent-%COMP%]{margin-right:4px}.padding-right-4[_ngcontent-%COMP%]{padding-right:4px}.margin-8[_ngcontent-%COMP%]{margin:8px}.padding-8[_ngcontent-%COMP%]{padding:8px}.gap-8[_ngcontent-%COMP%]{gap:8px}.margin-top-8[_ngcontent-%COMP%]{margin-top:8px}.padding-top-8[_ngcontent-%COMP%]{padding-top:8px}.margin-bottom-8[_ngcontent-%COMP%]{margin-bottom:8px}.padding-bottom-8[_ngcontent-%COMP%]{padding-bottom:8px}.margin-left-8[_ngcontent-%COMP%]{margin-left:8px}.padding-left-8[_ngcontent-%COMP%]{padding-left:8px}.margin-right-8[_ngcontent-%COMP%]{margin-right:8px}.padding-right-8[_ngcontent-%COMP%]{padding-right:8px}.margin-10[_ngcontent-%COMP%]{margin:10px}.padding-10[_ngcontent-%COMP%]{padding:10px}.gap-10[_ngcontent-%COMP%]{gap:10px}.margin-top-10[_ngcontent-%COMP%]{margin-top:10px}.padding-top-10[_ngcontent-%COMP%]{padding-top:10px}.margin-bottom-10[_ngcontent-%COMP%]{margin-bottom:10px}.padding-bottom-10[_ngcontent-%COMP%]{padding-bottom:10px}.margin-left-10[_ngcontent-%COMP%]{margin-left:10px}.padding-left-10[_ngcontent-%COMP%]{padding-left:10px}.margin-right-10[_ngcontent-%COMP%]{margin-right:10px}.padding-right-10[_ngcontent-%COMP%]{padding-right:10px}.margin-12[_ngcontent-%COMP%]{margin:12px}.padding-12[_ngcontent-%COMP%]{padding:12px}.gap-12[_ngcontent-%COMP%]{gap:12px}.margin-top-12[_ngcontent-%COMP%]{margin-top:12px}.padding-top-12[_ngcontent-%COMP%]{padding-top:12px}.margin-bottom-12[_ngcontent-%COMP%]{margin-bottom:12px}.padding-bottom-12[_ngcontent-%COMP%]{padding-bottom:12px}.margin-left-12[_ngcontent-%COMP%]{margin-left:12px}.padding-left-12[_ngcontent-%COMP%]{padding-left:12px}.margin-right-12[_ngcontent-%COMP%]{margin-right:12px}.padding-right-12[_ngcontent-%COMP%]{padding-right:12px}.margin-16[_ngcontent-%COMP%]{margin:16px}.padding-16[_ngcontent-%COMP%]{padding:16px}.gap-16[_ngcontent-%COMP%]{gap:16px}.margin-top-16[_ngcontent-%COMP%]{margin-top:16px}.padding-top-16[_ngcontent-%COMP%]{padding-top:16px}.margin-bottom-16[_ngcontent-%COMP%]{margin-bottom:16px}.padding-bottom-16[_ngcontent-%COMP%]{padding-bottom:16px}.margin-left-16[_ngcontent-%COMP%]{margin-left:16px}.padding-left-16[_ngcontent-%COMP%]{padding-left:16px}.margin-right-16[_ngcontent-%COMP%]{margin-right:16px}.padding-right-16[_ngcontent-%COMP%]{padding-right:16px}.margin-20[_ngcontent-%COMP%]{margin:20px}.padding-20[_ngcontent-%COMP%]{padding:20px}.gap-20[_ngcontent-%COMP%]{gap:20px}.margin-top-20[_ngcontent-%COMP%]{margin-top:20px}.padding-top-20[_ngcontent-%COMP%]{padding-top:20px}.margin-bottom-20[_ngcontent-%COMP%]{margin-bottom:20px}.padding-bottom-20[_ngcontent-%COMP%]{padding-bottom:20px}.margin-left-20[_ngcontent-%COMP%]{margin-left:20px}.padding-left-20[_ngcontent-%COMP%]{padding-left:20px}.margin-right-20[_ngcontent-%COMP%]{margin-right:20px}.padding-right-20[_ngcontent-%COMP%]{padding-right:20px}.margin-24[_ngcontent-%COMP%]{margin:24px}.padding-24[_ngcontent-%COMP%]{padding:24px}.gap-24[_ngcontent-%COMP%]{gap:24px}.margin-top-24[_ngcontent-%COMP%]{margin-top:24px}.padding-top-24[_ngcontent-%COMP%]{padding-top:24px}.margin-bottom-24[_ngcontent-%COMP%]{margin-bottom:24px}.padding-bottom-24[_ngcontent-%COMP%]{padding-bottom:24px}.margin-left-24[_ngcontent-%COMP%]{margin-left:24px}.padding-left-24[_ngcontent-%COMP%]{padding-left:24px}.margin-right-24[_ngcontent-%COMP%]{margin-right:24px}.padding-right-24[_ngcontent-%COMP%]{padding-right:24px}.margin-32[_ngcontent-%COMP%]{margin:32px}.padding-32[_ngcontent-%COMP%]{padding:32px}.gap-32[_ngcontent-%COMP%]{gap:32px}.margin-top-32[_ngcontent-%COMP%]{margin-top:32px}.padding-top-32[_ngcontent-%COMP%]{padding-top:32px}.margin-bottom-32[_ngcontent-%COMP%]{margin-bottom:32px}.padding-bottom-32[_ngcontent-%COMP%]{padding-bottom:32px}.margin-left-32[_ngcontent-%COMP%]{margin-left:32px}.padding-left-32[_ngcontent-%COMP%]{padding-left:32px}.margin-right-32[_ngcontent-%COMP%]{margin-right:32px}.padding-right-32[_ngcontent-%COMP%]{padding-right:32px}.margin-36[_ngcontent-%COMP%]{margin:36px}.padding-36[_ngcontent-%COMP%]{padding:36px}.gap-36[_ngcontent-%COMP%]{gap:36px}.margin-top-36[_ngcontent-%COMP%]{margin-top:36px}.padding-top-36[_ngcontent-%COMP%]{padding-top:36px}.margin-bottom-36[_ngcontent-%COMP%]{margin-bottom:36px}.padding-bottom-36[_ngcontent-%COMP%]{padding-bottom:36px}.margin-left-36[_ngcontent-%COMP%]{margin-left:36px}.padding-left-36[_ngcontent-%COMP%]{padding-left:36px}.margin-right-36[_ngcontent-%COMP%]{margin-right:36px}.padding-right-36[_ngcontent-%COMP%]{padding-right:36px}.flex-row[_ngcontent-%COMP%]{display:flex}.flex-col[_ngcontent-%COMP%]{display:flex;flex-direction:column}.justify-content-space-between[_ngcontent-%COMP%]{justify-content:space-between}.justify-content-center[_ngcontent-%COMP%]{justify-content:center}.align-items-center[_ngcontent-%COMP%]{align-items:center}.flex-none[_ngcontent-%COMP%]{flex:none}"]})}}return Xe})();var vt=s(26772),ve=s(3306),ue=s(58108),et=s(86088),se=s(30843),Ce=s(46058),be=s(40018),rt=s(47847),me=s(473);let le=(()=>{class Xe{get globalGsyncInfo(){return this._globalGsyncInfo.asObservable()}get gsyncIndicator(){return this._gsyncIndicator.asObservable()}get selectedDisplay$(){return this._selectedDisplay.asObservable()}get deepLinkDisplay(){return this._deepLinkDisplay.asObservable()}get displayChanged$(){return this.displayChanged.asObservable()}get displays$(){return this._displays.asObservable()}get isDisplaySupported$(){return this._isDisplaySupported.asObservable()}get activeDisplayConnected$(){return this._activeDisplayConnected.asObservable()}get enableSurround$(){return this.enableSurroundSubject.asObservable()}constructor(fe,Ne,ye,Ot,sn,dn,yn,At,Vt,Qt,Jt,Zt,nn,Xt,lt){this.loggingService=fe,this.bridgeService=Ne,this.matDialog=ye,this.displayUtilService=Ot,this.genericDialog=sn,this.nvAppBridgeService=dn,this.nvAppTelemetryUtilService=yn,this.overlayLoadingSpinnerService=At,this.redirectService=Vt,this.translateService=Qt,this.multiDisplaysSupportService=Jt,this.dbService=Zt,this.manageDisplayModeService=nn,this.appConfig=Xt,this.surroundMosaicApiService=lt,this.isBlockingAppsDialogOpen=!1,this.needsGsyncIndicatorRefresh=!1,this._globalGsyncInfo=new i.m(1),this._gsyncIndicator=new i.m(1),this._selectedDisplay=new i.m(1),this._deepLinkDisplay=new n.B7,this.displayChanged=new n.B7,this._displays=new i.m(1),this._isDisplaySupported=new i.m(1),this._activeDisplayConnected=new i.m(1),this.enableSurroundSubject=new i.m(1),this.logger=fe.getLogger("nvapp/DisplaysService")}refreshState(){this.multiDisplaysSupportService.refreshState()}initialize(){this.uniqueDisplayCarouselItemId=0,this.globalStore=this.dbService.getGlobalStore(Qe.xI.GlobalStore),this.refreshGpuDisplayInfo().subscribe(h.l,h.l),this.refreshGlobalGsyncInfo().subscribe(h.l,h.l),this.refreshGsyncIndicator().subscribe(h.l,h.l),this.manageDisplayModeService.refreshDdsState().subscribe(h.l,h.l),this.initializeDisplayChangeListener(),this.initializeGsyncChangeListener(),this.initializeGetDisplaysAndSurfaceListener(),this.initializeSelectedSurfaceListener(),this.initializeDisplaySupportCheck(),this.initEnableSurround()}initializeDisplaySupportCheck(){(0,C.zV)([this.displays$,this.manageDisplayModeService.ddsState$]).pipe((0,g.T)(([fe,Ne])=>{const ye=fe?.length>0;return this._activeDisplayConnected.next(ye),ye||Ne?.bIsSupported})).subscribe({next:fe=>this._isDisplaySupported.next(fe),error:fe=>{this.logger.error("Error checking display support",fe),this._isDisplaySupported.next(!1),this._activeDisplayConnected.next(!1)}})}initEnableSurround(){this.enableSurroundSubject.next(this.appConfig?.featureEnablement?.surround?.enabled&&U.fq)}initializeGetDisplaysAndSurfaceListener(){this.getDisplays().subscribe(h.l,fe=>{this.logger.error("failed to get displays",fe)}),this.multiDisplaysSupportService.initialize()}initializeSelectedSurfaceListener(){this.multiDisplaysSupportService.selectedSurface.subscribe(fe=>{this.selectDisplayById(fe.displayItems[0]?.index,fe.displayItems[0]?.gpuIndex)})}refreshGpuDisplayInfo(){return this.multiDisplaysSupportService.getDisplaysState().pipe((0,m.s)(1))}refreshGlobalGsyncInfo(){return this.getGlobalGsyncInfo().pipe((0,m.s)(1))}refreshGsyncIndicator(){return this.getGsyncIndicator().pipe((0,m.s)(1),(0,l.M)(fe=>{this._gsyncIndicator.next(fe.isEnabled),this.needsGsyncIndicatorRefresh=!1}))}ensureGsyncIndicatorFresh(){return this.needsGsyncIndicatorRefresh?this.refreshGsyncIndicator():this.getGsyncIndicator().pipe((0,m.s)(1))}getGlobalGsyncInfo(){this.logger.info("calling GetGlobalGsyncState API");const fe=performance.now();return this.nvAppBridgeService.executeWithPluginStatusTelemetry(B.Tc,{},{},!0,!1).pipe((0,l.M)(Ne=>{const ye=performance.now();this.logger.info("Received GetGlobalGsyncState",Ne),this.logger.info("GetGlobalGsyncState API took (ms): ",ye-fe),this._globalGsyncInfo.next(Ne)}),(0,r.W)(Ne=>(this.logger.error("Error while getting GetGlobalGsyncState"),this._globalGsyncInfo.next({globalGsyncState:B.nX.NotAvailable}),(0,S.$)(Ne))))}initializeDisplayChangeListener(){this.logger.info("Initialize RegisterDisplayChangeCallback"),this.bridgeService.executeCommand(B.$Z).pipe((0,u.n)(fe=>(this.logger.info("Received DisplayChange listener with data ",fe),this.displayChanged.next(),this.multiDisplaysSupportService.getGpuAndDisplaysPhysicalInformation().pipe((0,l.M)(Ne=>this.logger.info("Received getGpuAndDisplaysPhysicalInformation")),(0,m.s)(1),(0,v.H)(Ne=>(0,M.p)([this.multiDisplaysSupportService.getDisplaysState(),this.manageDisplayModeService.refreshDdsState()])))))).subscribe(h.l,fe=>{this.logger.error("Error while listening for Gpu and display information notification",fe)})}initializeGsyncChangeListener(){this.logger.info("Initialize Global Gsync Change Listener"),this.displayChanged$.pipe((0,u.n)(()=>(0,M.p)([this.getGlobalGsyncInfo(),this.refreshGsyncIndicator()]).pipe((0,r.W)(fe=>(this.logger.error("Error refreshing G-SYNC states on display change",fe),(0,P.of)([null,null])))))).subscribe(h.l,fe=>{this.logger.error("Error while listening for Gsync Change Listener",fe)})}getCurrentResolutionLabelForDisplay(fe){const Ne=fe?.currentResolution;return Ne&&(Ne.tvFormat=U.b_.get(Ne.tvFormat)||Ne.tvFormat),this.logger.info("Current resolution is",Ne),Ne?this.buildResolutionMetadata(Ne,fe)?.resolution:""}getCurrentRefreshRateForDisplay(fe){const Ne=fe?.currentResolution;return this.translateService.instant("system.display.refreshRateValue",{refreshRate:Ne?.refreshRate})}buildResolutionMetadata(fe,Ne){return this.displayUtilService.buildResolutionMetadata(fe,Ne)}getCurrentDesktopColorDepth(fe,Ne=void 0){return this.displayUtilService.getCurrentDesktopColorDepth(fe,Ne)}preSelectDisplay(fe){this.logger.info("Pre selected display with deep link",fe),this._deepLinkDisplay.next(fe),this.selectSurfaceAndDisplaybyId(fe.index,fe.gpuIndex)}selectSurfaceAndDisplaybyId(fe,Ne){const ye=this.multiDisplaysSupportService.getSurfaceOfDisplay(fe,Ne);ye&&!0!==ye.isSelected?this.multiDisplaysSupportService.selectSurfaceById(ye.id):this.selectDisplayById(fe,Ne)}selectDisplay(fe){this.selectSurfaceAndDisplaybyId(fe?.index,fe?.gpuIndex)}selectDisplayById(fe,Ne){this.displays?.forEach(ye=>{ye.type.index===fe&&ye.type.gpuIndex===Ne?(ye.type.isSelected=!0,this.selectedDisplayIds={index:ye.type.index,gpuIndex:ye.type.gpuIndex},this._selectedDisplay.next(ye)):ye.type.isSelected=!1})}getDisplays(){return this.multiDisplaysSupportService.surfaces$.pipe((0,g.T)(fe=>{const Ne=[];let ye=!1;return fe?.forEach(Ot=>{Ot.displayItems.forEach(sn=>{this.selectedDisplayIds||(this.selectedDisplayIds={index:sn.index,gpuIndex:sn.gpuIndex});const dn=sn.index===this.selectedDisplayIds.index&&this.selectedDisplayIds.gpuIndex===sn.gpuIndex;sn.isSelected=dn;const yn={id:this.uniqueDisplayCarouselItemId.toString(),title:sn.name,type:sn,boxArtImage:"",tvBannerImage:"",visibility:!0};Ne.push(yn),dn&&(ye=!0,this._selectedDisplay.next(yn)),this.uniqueDisplayCarouselItemId++})}),!ye&&Ne?.length>0&&(this.selectedDisplayIds={index:Ne[0].type.index,gpuIndex:Ne[0].type.gpuIndex},Ne[0].type.isSelected=!0,this._selectedDisplay.next(Ne[0])),Ne}),(0,l.M)(fe=>{this.displays=fe,this._displays.next(this.displays)}))}openApplyRevertSettingsDialog(fe=(0,P.of)(!0)){this.multiDisplaysSupportService.applyRevertSettingsDialog(fe).pipe((0,m.s)(1),(0,u.n)(Ne=>Ne?this.refreshGpuDisplayInfo():(0,P.of)(!1))).subscribe(h.l,h.l)}openApplyDisplayModeRevertSettingsDialog(fe=(0,P.of)(!0)){this.multiDisplaysSupportService.applyRevertSettingsDialog(fe).pipe((0,m.s)(1)).subscribe(h.l,h.l)}isValidResolution(fe,Ne){const ye=!(fe.flags.isBezelCorrected||fe.flags.isSurround||this.displayUtilService.isDisplayInClone(Ne));return!((this.displayUtilService.isMosaicEnabled()||this.displayUtilService.isSliMosaicMode())&&this.displayUtilService.isDisplayInMosaicTopology(Ne)&&!this.displayUtilService.isMosaicTopologyAutoConfiguredTileDisplay(Ne)&&ye)}compareResolution(fe,Ne,ye=!1){const Ot=fe.horizontal===Ne.horizontal&&fe.vertical===Ne.vertical;return ye?Ot&&fe.tvFormat===Ne.tvFormat:Ot}findSharedResolution(fe,Ne){let ye;const Ot=this.displayUtilService.getFactorForSmoothScaling(Ne);return fe?.uiResolutionsList.forEach(sn=>{const dn=Ne.flags.isHD||Ne.flags.isHD_3D;Ot&&dn||!Ot&&dn&&Ne.flags.isHD_3D===sn.flags.isHD_3D?this.compareResolution(sn,Ne,!0)&&(ye=sn):this.compareResolution(sn,Ne)&&(ye=sn)}),ye}isDisplayPartOfMergedDisplays(fe){return this.displayUtilService.isDisplayPartOfMergedDisplays(fe)}getDefaultDisplayName(fe){return this.displayUtilService.getDefaultDisplayName(fe)}applyRotation(fe,Ne,ye){this.overlayLoadingSpinnerService.triggerOverlaySpinner(!0);const Ot=performance.now();this.nvAppBridgeService.executeWithPluginStatusTelemetry(B.xq,fe,Ne,!0,!1).subscribe(sn=>{const dn=performance.now();this.logger.info("SetRotation API took (ms): ",dn-Ot),this.logger.info("SetRotation is successful",sn,"for rotation ",fe.rotation),this.overlayLoadingSpinnerService.triggerOverlaySpinner(!1),this.openApplyRevertSettingsDialog(ye),this.nvAppTelemetryUtilService.sendSettingChangeEvent(U.H5,fe.rotation.toString(),`${Y.d3.System_Displays}/${Ne.name}`,!0)},sn=>{this.overlayLoadingSpinnerService.triggerOverlaySpinner(!1),this.logger.error("Error in SetRotation",sn),this.nvAppTelemetryUtilService.sendSettingChangeEvent(U.H5,fe.rotation.toString(),`${Y.d3.System_Displays}/${Ne.name}`,!0,sn&&sn.message?sn.message:""),this.refreshGpuDisplayInfo().subscribe(h.l,h.l)})}canEnableRotation(fe,Ne){return!((this.displayUtilService.isMosaicEnabled()||this.displayUtilService.isSliMosaicMode())&&this.displayUtilService.isDisplayInMosaicTopology(fe)&&!this.displayUtilService.isMosaicTopologyAutoConfiguredTileDisplay(fe)||this.isDisplayPartOfMergedDisplays(fe)||Ne.logicalDisplayType===B.QE.CloneDisplay&&!Ne.isClonePrimary)}identifyDisplays(fe,Ne,ye){this.bridgeService.executeCommand(B.OH,{isAllDisplays:fe,monitorIdentifiers:Ne}).subscribe(Ot=>{this.logger.info("IdentifyDisplays is successful",Ot)},Ot=>{this.logger.error("Error in IdentifyDisplays",Ot)}),this.nvAppTelemetryUtilService.sendClickEvent(fe?Y.EB.IdentifyAllDisplays:Y.EB.IdentifyDisplay,ye||Y.d3.System_Displays,!0)}restoreDisplayDefaults(fe){this.logger.info("Launching Restore Display Default Dialog");let Ne=fe?.name,ye="system.display.restoreDisplay";this.nvAppTelemetryUtilService.sendClickEvent(Y.EB.RestoreDefaultDisplay,`${Y.d3.System_Displays}/${Ne}`,!0,Ne);const Ot={index:fe?.index,gpuIndex:fe?.gpuIndex};(fe?.logicalDisplayType===B.QE.SurroundDisplay||fe?.deviceType===B.bq.Internal)&&(Ne="",ye="system.display.restoreDisplayWithoutDisplayName");const dn=this.genericDialog.open({panelClass:["dialogPaddingRemove"],data:{headerText:{text:"system.display.restoreDefaultsDlgTitle"},primaryButton:{text:"common.ok"},secondaryButton:{text:"common.cancel"},autoFocusOnPrimaryButton:vt.X6,bodyText:{text:ye,placeholders:{displayName:Ne}}}}),yn=dn.primaryButtonClick.pipe((0,E.u)(!0)),At=dn.secondaryButtonClick.pipe((0,E.u)(!1)),Vt=dn.afterClosed().pipe((0,E.u)(!1));let Qt=0;return(0,x.O4)(yn,At,Vt).pipe((0,m.s)(1),(0,T.ZZ)(Jt=>(dn.close(),Jt?(Qt=performance.now(),this.nvAppBridgeService.executeWithPluginStatusTelemetry(B.WQ,{gpuIndex:Ot.gpuIndex,displayIndex:Ot.index},{name:Ne},!0,!1).pipe((0,l.M)(Zt=>{const nn=performance.now();this.logger.info("RestoreDisplaySettings API took (ms): ",nn-Qt)}),(0,T.ZZ)(Zt=>this.refreshGpuDisplayInfo()))):A.w))).subscribe(h.l,Jt=>{this.logger.error("Error in restoreDisplayDefaults",Jt)})}restoreGlobalGsyncState(fe,Ne){this.logger.info("Launching Restore Global Gsync Confirmation Dialog");const ye=this.matDialog.open(Fe,{panelClass:["dialogPaddingRemove","common-dialog"],disableClose:!0,autoFocus:!0,restoreFocus:!0});ye.componentInstance.bodyText="system.display.restoreGlobalGsync",ye.componentInstance.restoreSettings.pipe((0,T.ZZ)(Ot=>{const sn=fe?this.restoreGsyncState():(0,P.of)(null),dn=Ne?this.disableSurroundOnRestoreDefault():(0,P.of)(null);return(0,C.zV)([sn,dn])}),(0,m.s)(1),(0,R.j)(()=>{ye?.close()})).subscribe(()=>{this.logger.info("Restored global settings")},Ot=>{this.logger.error("Error in restore global setting",Ot)})}restoreGsyncState(){let fe=0;return fe=performance.now(),this.nvAppBridgeService.executeWithPluginStatusTelemetry(B.Zc,{},{},!0,!1).pipe((0,l.M)(Ne=>{const ye=performance.now();this.logger.info("RestoreGlobalGsyncState API took (ms): ",ye-fe),this._globalGsyncInfo.next(Ne)}),(0,r.W)(Ne=>(this.logger.error("failed to restore global gsync settings",Ne),(0,P.of)(null))))}disableSurroundOnRestoreDefault(){return this.surroundMosaicApiService.disableSurroundConfig(!1,!1)}applyDisplayGsync(fe,Ne){const ye=performance.now();this.nvAppBridgeService.executeWithPluginStatusTelemetry(B.mE,fe,Ne,!0,!1).subscribe(Ot=>{const sn=performance.now();this.logger.info("SetDisplayGsyncState API took (ms): ",sn-ye),this.logger.info("SetDisplayGsyncState is successful",Ot),this.nvAppTelemetryUtilService.sendSettingChangeEvent(U.FF,fe?.enabled?Y.T8.TRUE:Y.T8.FALSE,`${Y.d3.System_Displays}/${Ne.name}`,!0),this.refreshGpuDisplayInfo().subscribe(h.l,h.l)},Ot=>{this.logger.error("Error in SetDisplayGsyncState",Ot),this.nvAppTelemetryUtilService.sendSettingChangeEvent(U.FF,fe?.enabled?Y.T8.TRUE:Y.T8.FALSE,`${Y.d3.System_Displays}/${Ne.name}`,!0,Ot&&Ot.message?Ot.message:""),this.refreshGpuDisplayInfo().subscribe(h.l,h.l)})}applyGlobalGsync(fe){const Ne=performance.now();this.nvAppBridgeService.executeWithPluginStatusTelemetry(B.Zd,fe,{},!0,!1).subscribe(ye=>{const Ot=performance.now();this.logger.info("SetGlobalGsyncState API took (ms): ",Ot-Ne),this.logger.info("SetGlobalGsyncState is successful",ye),this.nvAppTelemetryUtilService.sendSettingChangeEvent(U.CE,fe?.globalGsyncState.toString(),`${Y.d3.System_Displays}`,!0),this._globalGsyncInfo.next(fe)},ye=>{this.logger.error("Error in SetGlobalGsyncState",ye),this.nvAppTelemetryUtilService.sendSettingChangeEvent(U.CE,fe?.globalGsyncState.toString(),`${Y.d3.System_Displays}`,!0,ye&&ye.message?ye.message:""),this.refreshGlobalGsyncInfo().subscribe(h.l,h.l)})}applyDdsState(fe,Ne){this.logger.info("apply dds state ",fe),this.applyDdsStateSub?.unsubscribe(),this.overlayLoadingSpinnerService.triggerOverlaySpinner(!0);const ye=performance.now();this.applyDdsStateSub=this.manageDisplayModeService.setDdsState(fe).subscribe(Ot=>{const sn=performance.now();this.logger.info("SetDdsState API took (ms): ",sn-ye),this.overlayLoadingSpinnerService.triggerOverlaySpinner(!1),this.logger.info("Display Mode state has been set ",fe),this.openApplyDisplayModeRevertSettingsDialog(Ne)},Ot=>{this.overlayLoadingSpinnerService.triggerOverlaySpinner(!1),this.logger.error("Error occurred while updating dds state:",Ot)})}gsyncLinkClicked(){this.redirectService.redirectTo(ae.r7.gSyncDisplays),this.nvAppTelemetryUtilService.sendClickEvent(Y.EB.GSyncUpsellLink,`${Y.d3.System_Displays}`,!0)}getClonePrimaryDisplayIdentifier(fe){return this.displays?.find(ye=>ye.type?.cloneGroupId===fe&&!0===ye.type?.isClonePrimary)?.type?.identifier}getTimingScalingPreview(fe){return this.logger.info("getTimingScalingPreview resolution: ",fe.resolution),this.nvAppBridgeService.executeWithPluginStatusTelemetry(B.AD,fe,{},!0,!1).pipe((0,l.M)(Ne=>{this.logger.info("GetScalingPreviewInfo is successful",Ne)}))}getIsInfoFrameEnabled(){return this.nvAppBridgeService.executeWithPluginStatusTelemetry(B.bT,{},{},!0,!1).pipe((0,l.M)(fe=>{this.logger.info("GetIsInfoFrameEnabled is successful",fe)}),(0,r.W)(fe=>(this.logger.error("Error in GetIsInfoFrameEnabled",fe),(0,P.of)({enabled:!1}))))}getStoredDisplayMetadataFromDb(fe){return this.globalStore.getItem(Qe.QC.DisplaysMetadata).pipe((0,m.s)(1),(0,g.T)(Ne=>(this.logger.info("displaysMetadata",Ne),Ne[fe.lowPart.toString()+fe.hiPart.toString()]||null)),(0,r.W)(Ne=>(this.logger.error("failed to get DisplaysMetadata from DB",Ne),(0,P.of)(null))))}setStoredDisplayMetadataToDb(fe,Ne){this.globalStore.getItem(Qe.QC.DisplaysMetadata).pipe((0,m.s)(1),(0,T.ZZ)(ye=>{ye=ye||{};const Ot=fe.lowPart.toString()+fe.hiPart.toString();return ye[Ot]={...ye[Ot]||{},...Ne},this.globalStore.setItem(Qe.QC.DisplaysMetadata,ye)})).subscribe(h.l,ye=>{this.logger.error("failed to set DisplaysMetadata to DB",ye)})}getGsyncIndicator(){return this.nvAppBridgeService.executeWithPluginStatusTelemetry(B.m_,{},{},!0,!1).pipe((0,g.T)(fe=>fe),(0,r.W)(fe=>(this.logger.error("Error calling GetGsyncIndicator API",fe),this.needsGsyncIndicatorRefresh=!0,(0,P.of)({isEnabled:!1}))))}setGsyncIndicator(fe){return this.nvAppBridgeService.executeWithPluginStatusTelemetry(B.or,{isEnabled:fe},{},!0,!1).pipe((0,g.T)(()=>{}),(0,l.M)(()=>{this._gsyncIndicator.next(fe)}),(0,r.W)(ye=>(this.logger.error("Error setting G-SYNC indicator state",ye),this.needsGsyncIndicatorRefresh=!0,(0,S.$)(ye))))}showInAppBlockingAppList(){this.isBlockingAppsDialogOpen||(this.isBlockingAppsDialogOpen=!0,this.matDialog.open(J,{autoFocus:!1,restoreFocus:!0,panelClass:["graphics-setting-modal-container","common-dialog"],maxWidth:790}).afterClosed().pipe((0,m.s)(1)).subscribe(()=>{this.logger.info("The blocking apps dialog was closed"),this.isBlockingAppsDialogOpen=!1},ye=>{this.logger.error("Failed to close the blocking apps dialog",ye),this.isBlockingAppsDialogOpen=!1}))}static{this.\u0275fac=function(Ne){return new(Ne||Xe)(G.KVO(k.J6),G.KVO(k.NZ),G.KVO(ce.bZ),G.KVO(ve.Q),G.KVO(ue.uh),G.KVO(et.S),G.KVO(Y.AY),G.KVO(se.t),G.KVO(Ce.Q),G.KVO(it.c$),G.KVO(be.b),G.KVO(k.at),G.KVO(nt.S),G.KVO(rt.Vk),G.KVO(me.w))}}static{this.\u0275prov=G.jDH({token:Xe,factory:Xe.\u0275fac,providedIn:"root"})}}return Xe})()},29761:(St,z,s)=>{"use strict";s.d(z,{b:()=>x});var i=s(31315),n=s(36466),h=s(65706),C=s(94645),S=s(21912),M=s(58527),P=s(92602);let x=(()=>{class A{constructor(m,l){this.loggingService=m,this.dbService=l,this.isFirstSumdCanvasLoad=!0,this.isFirstSurroundCanvasLoad=!0,this.logger=m.getLogger("nvapp/MultiDisplaysDatabaseService"),this.initCenterAlignCoordinates()}initCenterAlignCoordinates(){this.globalStore=this.dbService.getGlobalStore(C.xI.GlobalStore),(0,i.zV)([this.globalStore.getItem(C.QC.SumdState),this.globalStore.getItem(C.QC.SurroundState)]).pipe((0,h.s)(1)).subscribe(([m,l])=>{this.sumdStartCoord=m?.centerX&&m?.centerY?m:S.Ie,this.logger.info(`Received SUMD start align coordinates from index db ${this.sumdStartCoord}`),this.surroundStartCoord=l?.centerX&&l?.centerY?l:S.Dk,this.logger.info(`Received Surround start align coordinates from index db ${this.surroundStartCoord}`)},m=>{this.logger.error("Could not initialize Sumd and Surround state from db store",m)})}cacheStartAlignCoordinates(m,l,r){r?(this.surroundStartCoord={centerX:m,centerY:l},this.globalStore.setItem(C.QC.SurroundState,this.surroundStartCoord).pipe((0,h.s)(1)).subscribe(n.l,u=>this.logger.error(u))):(this.sumdStartCoord={centerX:m,centerY:l},this.globalStore.setItem(C.QC.SumdState,this.sumdStartCoord).pipe((0,h.s)(1)).subscribe(n.l,u=>this.logger.error(u)))}getStartAlignedCoordinates(m){return m?this.isFirstSurroundCanvasLoad&&this.surroundStartCoord?(this.isFirstSurroundCanvasLoad=!1,[this.surroundStartCoord.centerX,this.surroundStartCoord.centerY]):[null,null]:this.isFirstSumdCanvasLoad&&this.sumdStartCoord?(this.isFirstSumdCanvasLoad=!1,[this.sumdStartCoord.centerX,this.sumdStartCoord.centerY]):[null,null]}resetFirstCanvasLoad(m){m?this.isFirstSurroundCanvasLoad=!0:this.isFirstSumdCanvasLoad=!0}static{this.\u0275fac=function(l){return new(l||A)(M.KVO(P.J6),M.KVO(P.at))}}static{this.\u0275prov=M.jDH({token:A,factory:A.\u0275fac,providedIn:"root"})}}return A})()},55347:(St,z,s)=>{"use strict";s.d(z,{Z:()=>P});var i=s(26875),h=s(21912),C=s(58527),S=s(92602),M=s(96542);let P=(()=>{class x{constructor(g,m){this.loggingService=g,this.translate=m,this.overlappedQ=[],this.movedOverlapRects=[],this.cornerTiles=[],this.logger=g.getLogger("nvapp/MultiDisplaysRearrangeService")}resolveOverlaps(g,m){this.draggedTile=g,this.updateOverlapQ(g,m),this.moveOverlapRects(m),this.shiftRemainingTiles(g,m),this.updateLastMileOverlaps(m)}findStartCoordinates(g,m,l){let r,u,v,E;return l.forEach(Y=>{null==u&&(u=Y.y+Y.h),null==r&&(r=Y.y),Y.y<r&&(r=Y.y),Y.y+Y.h>u&&(u=Y.y+Y.h),null==E&&(E=Y.x+Y.w),null==v&&(v=Y.x),Y.x<v&&(v=Y.x),Y.x+Y.w>E&&(E=Y.x+Y.w)}),[g/2-(E-v)/2-v,m/2-(u-r)/2-r,E,u,v,r]}doRectanglesOverlap(g,m){return!(g.x>m.x+m.w||g.x+g.w<m.x||g.y>m.y+m.h||g.y+g.h<m.y)}getOverlapRect(g,m){if(!this.doRectanglesOverlap(g,m))return null;const l=Math.max(g.x,m.x),r=Math.max(g.y,m.y),u=Math.min(g.x+g.w,m.x+m.w)-l,v=Math.min(g.y+g.h,m.y+m.h)-r,R={dx:g.x+g.w/2-(m.x+m.w/2),dy:g.y+g.h/2-(m.y+m.h/2)};let B=1;const U=Math.abs(R.dx)>Math.abs(R.dy);return B=U?R.dx>=0?-1:1:R.dy>=0?-1:1,{id:m.id,surfaceId:m.surfaceId,x:l,y:r,w:u,h:v,primaryOverlap:U,directionSign:B}}updateOverlapQ(g,m){this.overlappedQ=[],m.forEach(l=>{if(g.id!==l.id){const r=this.getOverlapRect(g,l);r&&this.overlappedQ.push(r)}})}moveOverlapRects(g){return this.movedOverlapRects=[],this.overlappedQ.forEach(m=>{const l=g.findIndex(r=>r.id===m.id);l>-1&&(m.primaryOverlap?(g[l].x+=m.w*m.directionSign,this.movedOverlapRects.push({...g[l],movedXBy:m.w*m.directionSign,movedYBy:0})):(g[l].y+=m.h*m.directionSign,this.movedOverlapRects.push({...g[l],movedXBy:0,movedYBy:m.h*m.directionSign})))}),g}shiftRemainingTiles(g,m){const l=[];for(;this.movedOverlapRects.length>0;){m.forEach(u=>{(this.movedOverlapRects.findIndex(v=>v.id===u.id)>-1||u.id===g.id)&&l.push(u)});const r=[];this.movedOverlapRects.forEach(u=>{const v=this.inflateRect(u);this.overlappedQ=[],m.forEach(E=>{if(!l.find(T=>T.id===E.id)){const T=this.getOverlapRect(v,E);T&&this.overlappedQ.push(T)}}),this.overlappedQ.forEach(E=>{const T=m.findIndex(R=>R.id===E.id);T>-1&&(m[T].x+=u.movedXBy,m[T].y+=u.movedYBy,r.push({...m[T],movedXBy:u.movedXBy,movedYBy:u.movedYBy}))})}),l.concat(r),this.movedOverlapRects=r.slice()}return m}updateLastMileOverlaps(g){g.forEach(m=>{this.updateOverlapQ(m,g),this.moveOverlapRects(g),this.shiftRemainingTiles(m,g)})}inflateRect(g){const m=Object.assign({},g);return m.x-=1,m.y-=1,m.w+=2,m.h+=2,m}deflateRect(g,m,l){g&&(Math.abs(g.x-l.x-l.w)<2&&Math.abs(g.y-l.y-l.h)<2?m.forEach(r=>{r.id===g.id&&(g.x+=2,g.y+=2)}):Math.abs(g.x+g.w-l.x)<2&&Math.abs(g.y-l.y-l.h)<2?m.forEach(r=>{r.id===g.id&&(g.x-=2,g.y+=2)}):Math.abs(g.x+g.w-l.x)<2&&Math.abs(g.y+g.h-l.y)<2?m.forEach(r=>{r.id===g.id&&(g.x-=2,g.y-=2)}):Math.abs(g.x-l.x-l.w)<2&&Math.abs(g.y+g.h-l.y)<2&&m.forEach(r=>{r.id===g.id&&(g.x+=2,g.y-=2)}))}moveContext(g,m){g.forEach(l=>{const r=m.find(u=>u.nativeElement.getAttribute("id")===l.id.toString())?.nativeElement;r&&(r.style.top=l.y+"px",r.style.left=l.x+l.w+"px",r.style.width=l.w+"px",r.style.height=l.h+"px")})}updateContiguousTiles(g,m){const l=g??[],r=[];return 0===l.length?[]:(l.forEach(u=>{const v=this.inflateRect(u);m.forEach(E=>{!E.isContiguous&&this.doRectanglesOverlap(v,E)&&(E.isContiguous=!0,r.push(E))})}),this.updateContiguousTiles(r,m))}rearrangeNeeded(g){return g.forEach(l=>{l.isContiguous=!1}),this.updateContiguousTiles([g[0]],g),g.filter(l=>l.isContiguous).length!==g.length}resolveGaps(g){this.updateAlignedTiles(g),this.removeEdgeAbberation(g),this.resolveCornerTiles(g)}updateAlignedTiles(g){if(!this.rearrangeNeeded(g))return void this.logger.info("Rearrange not needed further");this.logger.info("Rearrange needed further");let m=[];m=this.getMaxContiguousTilesGroup(g);let l=g.filter(r=>!m.includes(r));for(this.cornerTiles=[],this.snappedTileAtX=null,this.snappedTileAtY=null;l.length>0;){const r=l.slice();this.logger.info("tilesToSnap, maxTilesClosedGroup = ",l,", ",m);const u=this.getClosestTileToSnapAtX(l,m);if(u)this.snapTileOnXAxis(u,g),m=this.getMaxContiguousTilesGroup(g),l=g.filter(v=>!m.includes(v));else{const v=this.getClosestTileToSnapAtY(l,m);if(v)this.snapTileOnYAxis(v,g),m=this.getMaxContiguousTilesGroup(g),l=g.filter(E=>!m.includes(E));else{const E=this.getClosestTileToSnapAtCorner(l,m);E&&(this.snapTileOnCorner(E,g),m=this.getMaxContiguousTilesGroup(g),l=g.filter(T=>!m.includes(T)))}}r.length-l.length>1&&(this.logger.info("Possible overlap after rearrange ",r),r.forEach(v=>{this.resolveOverlaps(v,g)}))}}getClosestTileToSnapAtX(g,m){const l=[];return g.forEach(r=>{m.forEach(u=>{if(!(r.y+r.h<u.y||r.y>u.y+u.h)){const v={...r},E=u.x+u.w/2-(r.x+r.w/2),R=E/Math.abs(E)>0?u.x-r.x-r.w:u.x+u.w-r.x;v.gapX=R,v.referenceTileId=u.id,l.push(v)}})}),this.logger.info("tilesSnappingAtX =",l),0===l.length?(this.logger.info("tilesSnappingAtX =",null),null):(l.sort((r,u)=>Math.abs(r.gapX)-Math.abs(u.gapX)),this.logger.info("tilesSnappingAtX =",l),l[0])}getClosestTileToSnapAtY(g,m){const l=[];return g.forEach(r=>{m.forEach(u=>{if(!(r.x+r.w<u.x||r.x>u.x+u.w)){const v={...r},E=u.y+u.h/2-(r.y+r.h/2),R=E/Math.abs(E)>0?u.y-r.y-r.h:u.y+u.h-r.y;v.gapY=R,v.referenceTileId=u.id,l.push(v)}})}),this.logger.info("tilesSnappingAtY =",l),0===l.length?null:(l.sort((r,u)=>Math.abs(r.gapY)-Math.abs(u.gapY)),l[0])}getClosestTileToSnapAtCorner(g,m){const l=[];return g.forEach(r=>{m.forEach(u=>{const v={...r},E=u.x+u.w/2-(r.x+r.w/2),R=E/Math.abs(E)>0?u.x-r.x-r.w:u.x+u.w-r.x;v.gapX=R;const B=u.y+u.h/2-(r.y+r.h/2),Y=B/Math.abs(B)>0?u.y-r.y-r.h:u.y+u.h-r.y;v.gapY=Y;const ae=Math.sqrt(Math.pow(E,2)+Math.pow(B,2));v.gapD=ae,v.referenceTileId=u.id,l.push(v)})}),this.logger.info("tilesSnappingAtCorner =",l),0===l.length?null:(l.sort((r,u)=>Math.abs(r.gapD)-Math.abs(u.gapD)),l[0])}resolveCornerTiles(g){let m=this.cornerTiles.length-1;for(this.logger.info("Corner tiles exists ",this.cornerTiles?.length>0);m>=0;){const l=g.find(u=>u.id===this.cornerTiles[m].id),r=g.find(u=>u.id===this.cornerTiles[m].referenceTileId);this.deflateRect(l,g,r),m--}this.updateAlignedTiles(g)}removeEdgeAbberation(g){if(this.snappedTileAtX){this.logger.info("X tile to snap to found ",this.snappedTileAtX);const m=g.find(u=>u.id===this.snappedTileAtX),l=Math.abs(m.y-this.draggedTile.y),r=Math.abs(m.y+m.h-this.draggedTile.y-this.draggedTile.h);l<=h.nQ?g.forEach(u=>{u.id===this.draggedTile.id&&(u.y=m.y,this.logger.info("Snap up by ",u.y))}):r<=h.nQ?g.forEach(u=>{u.id===this.draggedTile.id&&(u.y=m.y+m.h-this.draggedTile.h,this.logger.info("Snap down by ",u.y))}):this.logger.info("Threshold didnt cross ",m," , ",l," , ",r)}else if(this.snappedTileAtY){this.logger.info("Y tile to snap to found ",this.snappedTileAtY);const m=g.find(u=>u.id===this.snappedTileAtY),l=Math.abs(m.x-this.draggedTile.x),r=Math.abs(m.x+m.w-this.draggedTile.x-this.draggedTile.w);l<=h.nQ?g.forEach(u=>{u.id===this.draggedTile.id&&(u.x=m.x,this.logger.info("Snap left by ",u.x))}):r<=h.nQ?g.forEach(u=>{u.id===this.draggedTile.id&&(u.x=m.x+m.w-this.draggedTile.w,this.logger.info("Snap right by ",u.x))}):this.logger.info("Threshold didnt cross ",m," , ",l," , ",r)}else this.logger.info("No tile found to snap to ")}updateSnappingTile(g,m){g!==this.draggedTile.id?m?this.snappedTileAtX||(this.snappedTileAtX=g,this.logger.info("Snapped tile X ",g)):this.snappedTileAtY||(this.snappedTileAtY=g,this.logger.info("Snapped tile Y ",g)):this.logger.info("Reference tile is the dragged tile, no abberation correction required")}snapTileOnXAxis(g,m){m.forEach((l,r)=>{l.id===g.id&&(this.logger.info("Snapping tile on X axis",m[r],", by ",g.gapX),m[r].x+=g.gapX,this.updateSnappingTile(g.referenceTileId,!0))})}snapTileOnYAxis(g,m){m.forEach((l,r)=>{l.id===g.id&&(this.logger.info("Snapping tile on Y axis ",m[r],", by ",g.gapY),m[r].y+=g.gapY,this.updateSnappingTile(g.referenceTileId,!1))})}snapTileOnCorner(g,m){m.forEach((l,r)=>{l.id===g.id&&(this.logger.info("Snapping tile on corner ",m[r],", by ",g.gapY),m[r].x+=g.gapX,m[r].y+=g.gapY),this.cornerTiles.find(u=>u.id===g.id)||this.cornerTiles.push(g)})}getMaxContiguousTilesGroup(g){let m=0,l=[];return g.forEach(r=>{g.forEach(v=>{v.isContiguous=!1}),this.updateContiguousTiles([r],g);const u=g.filter(v=>v.isContiguous).length;u>m&&(m=u,l=g.filter(v=>v.isContiguous))}),this.logger.info("maxTilesGroup length = ",l.length),l.slice()}reStackTiles(g){g?.sort((m,l)=>m.isSelected?1:l.isSelected?-1:0)}isPositionReallyChanged(g,m){if(g.length!==m.length)return!0;const l=B=>({id:B.id,x:B.x,y:B.y}),r=(0,i.map)(g,l).sort((B,U)=>B.id-U.id),u=(0,i.map)(m,l).sort((B,U)=>B.id-U.id),v=r.map((B,U)=>Math.abs(B.x-u[U].x)),E=r.map((B,U)=>Math.abs(B.y-u[U].y)),T=v.some(B=>Math.floor(B)>1)&&v.some(B=>Math.floor(B)!==Math.floor(v[0])),R=E.some(B=>Math.floor(B)>1)&&E.some(B=>Math.floor(B)!==Math.floor(E[0]));return T||R}isDragAboveThreshold(g,m){const l=m.find(v=>v.id===g.id),r=Math.abs(g.x-l.x),u=Math.abs(g.y-l.y);return r>h.nQ||u>h.nQ}static{this.\u0275fac=function(m){return new(m||x)(C.KVO(S.J6),C.KVO(M.c$))}}static{this.\u0275prov=C.jDH({token:x,factory:x.\u0275fac,providedIn:"root"})}}return x})()},11182:(St,z,s)=>{"use strict";s.d(z,{v:()=>g});var i=s(85735),n=s(43848),h=s(83915),C=s(91384),S=s(14714),M=s(30627),P=s(58527),x=s(92602),A=s(86088);let g=(()=>{class m{get displayState$(){return this._displayState.asObservable()}get isMultiCloneSystem$(){return this._multiCloneSystem.asObservable()}constructor(r,u){this.loggingService=r,this.nvAppBridgeService=u,this._displayState=new i.m(1),this._multiCloneSystem=new i.m(1),this.logger=this.loggingService.getLogger("nvapp/MultiDisplaysSupportAPIService")}getDisplaysState(){this.logger.info("calling GetDisplaysState API");const r=performance.now();return this.nvAppBridgeService.executeWithPluginStatusTelemetry(M.$X,{},{},!1,!1).pipe((0,h.T)(u=>(this.logger.info("Received GetDisplaysState",u),u)),(0,C.M)(u=>{const v=performance.now();this.checkMultiCloneSystem(u?.displaysState),this.logger.info("GetDisplaysState API took (ms): ",v-r),this._displayState.next(u?.displaysState)}),(0,S.W)(u=>{this.logger.error("Error while getting GetDisplaysState",u);const v={topology:null,inactiveDisplays:[]};return this._displayState.next(v),this._multiCloneSystem.next(!1),(0,n.of)({displaysState:v})}))}checkMultiCloneSystem(r){const u=r?.topology?.surfaces?.filter(v=>v?.displays?.length>1);this._multiCloneSystem.next(u?.length>1)}static{this.\u0275fac=function(u){return new(u||m)(P.KVO(x.J6),P.KVO(A.S))}}static{this.\u0275prov=P.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}}return m})()},40018:(St,z,s)=>{"use strict";s.d(z,{b:()=>Ce});var i=s(85735),n=s(80583),h=s(26513),C=s(36466),S=s(43848),M=s(31315),P=s(16229),x=s(59859),A=s(65726),g=s(65706),m=s(83915),l=s(91384),r=s(14714),u=s(75707),v=s(72147),E=s(10174),T=s(43615),R=s(8619),B=s(67431),U=s(30325),Y=s(26875),ae=s(21912),G=s(30627),k=s(99066),X=s(3321),q=s(1242);class Q{constructor(rt,me,le,Xe,Se,fe,Ne,ye,Ot,sn,dn){this.loggingService=fe,this.nvAppBridgeService=Ne,this.nvAppTelemetryUtilService=ye,this.bridgeService=Ot,this.overlayLoadingSpinnerService=sn,this.displayUtilService=dn,this.logger=this.loggingService.getLogger("DisplayItem");const yn=rt;this.currentResolution=rt.currentResolution,this.name=me?me.name:yn.name,this.index=rt.index,this.identifier=rt.identifier,this.hdcpState=rt.hdcpState,this.gsyncState=rt.gsyncState,this.connectorType=me?me.connectorType:yn.connectorType,this.deviceType=me?me.deviceType:yn.deviceType,this.rotationState=rt.rotationState,this.isHideModeEnabled=!me&&yn.isHideModeEnabled,this.isClonePrimary=rt.isClonePrimary,this.logicalDisplayType=rt.logicalDisplayType,this.nvDisplayId=rt.nvDisplayId,this.cloneGroupId=Se,this.gpuIndex=le,this.isSelected=Xe,this.position=rt.position,this.gpuId=rt.gpuId,this.initializeEventStreams()}refreshAllSettings(){this.refreshColorAccuracyMode(),this.refreshColorCombinationInfo(),this.refreshDesktopColorContentType(),this.refreshDesktopColorDigitalVibrance(),this.refreshDesktopColorEnhancementInfo(),this.refreshDesktopColorHue(),this.refreshIsColorSettingsOsControlled(),this.refreshResolutionList(),this.refreshScaling()}initializeEventStreams(){this.scalingEventStream=new k.T(()=>this.getScaling(),!0),this.resolutionListEventStream=new k.T(()=>this.getResolutionListForDisplay(),!0),this.colorEnhancementInfoEventStream=new k.T(()=>this.getColorEnhancementInfoForDisplay(),!0),this.desktopColorCombinationInfoEventStream=new k.T(()=>this.getDesktopColorCombinationInfo(),!0),this.desktopColorDigitalVibranceStream=new k.T(()=>this.getDesktopColorDigitalVibrance(),!0),this.desktopColorHueStream=new k.T(()=>this.getDesktopColorHue(),!0),this.desktopColorContentTypeStream=new k.T(()=>this.getDesktopColorContentType(),!0),this.colorAccuracyModeStream=new k.T(()=>this.getColorAccuracyMode(),!0),this.isColorSettingsOsControlledStream=new k.T(()=>this.getIsColorSettingsOsControlled(),!0),this.luidStream=new k.T(()=>this.getDisplayLUID(),!0)}get getScalingSetting$(){return this.scalingEventStream.get$()}refreshScaling(){this.scalingEventStream.refresh()}getScaling(){return this.nvAppBridgeService.executeWithPluginStatusTelemetry(G.ZE,{gpuIndex:this.gpuIndex,displayIndex:this.index},{},!1,!1).pipe((0,m.T)(rt=>(this.logger.info("GetScalingSettings returns data ",rt),rt)))}applyScaling(rt){const me={scalingSettings:rt,gpuIndex:this.gpuIndex,displayIndex:this.index},le=performance.now();return this.nvAppBridgeService.executeWithPluginStatusTelemetry(G.hA,me,{},!0,!1).pipe((0,l.M)(Xe=>{const Se=performance.now();this.logger.info("setScaling API took (ms): ",Se-le),this.logger.info("setScaling is successful",Xe),this.displayUtilService.scalingChange(),this.refreshScaling(),this.refreshResolutionList()},Xe=>(this.logger.error("Error in setScaling",Xe),this.refreshScaling(),(0,x.$)(Xe))))}applyScalingOverride(rt){const me={isOverrideScalingEnabled:rt,gpuIndex:this.gpuIndex,displayIndex:this.index},le=performance.now();return this.nvAppBridgeService.executeWithPluginStatusTelemetry(G.um,me,{},!0,!1).pipe((0,l.M)(Xe=>{const Se=performance.now();this.logger.info("SetScalingOverride API took (ms): ",Se-le),this.logger.info("SetScalingOverride is successful",Xe),this.refreshScaling()},Xe=>(this.logger.error("Error in SetScalingOverride",Xe),this.refreshScaling(),(0,x.$)(Xe))))}get resolutionList$(){return this.resolutionListEventStream.get$()}refreshResolutionList(){this.resolutionListEventStream.refresh()}getResolutionListForDisplay(){return this.nvAppBridgeService.executeWithPluginStatusTelemetry(G.NU,{gpuIndex:this.gpuIndex,displayIndex:this.index},{},!1,!1).pipe((0,g.s)(1),(0,m.T)(rt=>{this.logger.info("GetResolutionListForDisplay for gpuIndex: ",this.gpuIndex,"displayIndex: ",this.index,"resolutions: ",rt?.resolutions);const me=rt?.resolutions;return me?.forEach(le=>{le.tvFormat=X.b_.get(le.tvFormat)||le.tvFormat}),me}),(0,r.W)(rt=>(this.logger.error(`Failed to fetch resolution list: ${rt}`),(0,x.$)(rt))))}getSetResolutionParamsForTelemetry(rt,me){const le={...rt??{},resolution:{...rt?.resolution??{},flags:{...rt?.resolution?.flags??{}}},...me??{}},Xe=rt?.resolution?.flags;if(Xe){const Se={};for(const fe in Xe)rt.resolution.flags[fe]&&(Se[fe]=Xe[fe]);le.resolution.flags=Se}return JSON.stringify(le)}applyResolution(rt,me,le){this.overlayLoadingSpinnerService.triggerOverlaySpinner(!0);const Xe={apiName:G.zd.method,pluginName:G.zd.module,status:q.L1.Success,params:this.getSetResolutionParamsForTelemetry(rt,le),errorMessage:"",subApiName:""},Se=performance.now();return this.bridgeService.executeCommand(G.zd,rt).pipe((0,l.M)(fe=>{const Ne=performance.now();this.logger.info("SetResolution API took (ms): ",Ne-Se),this.logger.info("SetResolution is successful",fe),this.overlayLoadingSpinnerService.triggerOverlaySpinner(!1),this.nvAppTelemetryUtilService.sendPluginApiStatusTelemetry(Xe),this.nvAppTelemetryUtilService.sendSettingChangeEvent(me,`${rt.resolution.horizontal} x ${rt.resolution.vertical} x ${rt.resolution.refreshRate}`,`${q.d3.System_Displays}/${le.name}`,!0),this.refreshDesktopColorEnhancementInfo()}),(0,r.W)(fe=>(this.overlayLoadingSpinnerService.triggerOverlaySpinner(!1),this.logger.error("Error in SetResolution",fe),this.nvAppTelemetryUtilService.sendPluginApiStatusTelemetry({...Xe,status:q.L1.Failure,errorMessage:fe&&fe.message?fe.message:""}),this.nvAppTelemetryUtilService.sendSettingChangeEvent(me,`${rt.resolution.horizontal} x ${rt.resolution.vertical} x ${rt.resolution.refreshRate}`,`${q.d3.System_Displays}/${le.name}`,!0,fe&&fe.message?fe.message:""),(0,x.$)(fe))))}get desktopColorEnhancementInfo$(){return this.colorEnhancementInfoEventStream.get$()}getColorEnhancementInfoForDisplay(){return this.nvAppBridgeService.executeWithPluginStatusTelemetry(G.qS,{gpuIndex:this.gpuIndex,displayIndex:this.index},{},!1,!1).pipe((0,l.M)(rt=>{this.logger.info("GetColorEnhancementInfo for display success: ",rt)}),(0,r.W)(rt=>(this.logger.error("Failed GetColorEnhancementInfo API for display",rt),(0,x.$)(rt))))}refreshDesktopColorEnhancementInfo(){this.colorEnhancementInfoEventStream.refresh()}applyDesktopColorDepth(rt){this.overlayLoadingSpinnerService.triggerOverlaySpinner(!0);const me=performance.now();return this.nvAppBridgeService.executeWithPluginStatusTelemetry(G.G8,{gpuIndex:this.gpuIndex,displayIndex:this.index,desktopColorDepth:rt},{},!0,!1).pipe((0,u.ZZ)(le=>{const Xe=performance.now();return this.logger.info("SetDesktopColorDepth API took (ms): ",Xe-me),this.logger.info("SetDesktopColorDepth is successful",le),this.getColorEnhancementInfoForDisplay().pipe((0,l.M)(Se=>this.colorEnhancementInfoEventStream.setData(Se,!0)),(0,E.u)(!0))}),(0,l.M)(le=>this.overlayLoadingSpinnerService.triggerOverlaySpinner(!1)),(0,r.W)(le=>(this.overlayLoadingSpinnerService.triggerOverlaySpinner(!1),this.logger.error("Error in SetDesktopColorDepth",le),(0,S.of)(!1))))}applyOutputColorDepth(rt){this.overlayLoadingSpinnerService.triggerOverlaySpinner(!0);const me=performance.now();return this.nvAppBridgeService.executeWithPluginStatusTelemetry(G.E2,{gpuIndex:this.gpuIndex,displayIndex:this.index,outputColorDepth:rt},{},!0,!1).pipe((0,u.ZZ)(le=>{const Xe=performance.now();return this.logger.info("SetOutputColorDepth API took (ms): ",Xe-me),this.logger.info("SetOutputColorDepth is successful",le),this.getColorEnhancementInfoForDisplay().pipe((0,l.M)(Se=>this.colorEnhancementInfoEventStream.setData(Se,!0)),(0,E.u)(!0))}),(0,l.M)(le=>{this.overlayLoadingSpinnerService.triggerOverlaySpinner(!1),this.nvAppTelemetryUtilService.sendSettingChangeEvent(X.MB,rt?.toString(),`${q.d3.System_Displays}/${this.name}`,!0)}),(0,r.W)(le=>(this.overlayLoadingSpinnerService.triggerOverlaySpinner(!1),this.logger.error("Error in SetOutputColorDepth",le),this.nvAppTelemetryUtilService.sendSettingChangeEvent(X.MB,rt?.toString(),`${q.d3.System_Displays}/${this.name}`,!0,le&&le.message?le.message:""),(0,S.of)(!1))))}applyOutPutColorFormat(rt){this.overlayLoadingSpinnerService.triggerOverlaySpinner(!0);const me=performance.now();return this.nvAppBridgeService.executeWithPluginStatusTelemetry(G.OZ,{gpuIndex:this.gpuIndex,displayIndex:this.index,outputColorFormat:rt},{},!0,!1).pipe((0,u.ZZ)(le=>{const Xe=performance.now();return this.logger.info("SetOutPutColorFormat API took (ms): ",Xe-me),this.logger.info("SetOutPutColorFormat is successful",le),this.getColorEnhancementInfoForDisplay().pipe((0,l.M)(Se=>this.colorEnhancementInfoEventStream.setData(Se,!0)),(0,E.u)(!0))}),(0,l.M)(le=>{this.overlayLoadingSpinnerService.triggerOverlaySpinner(!1),this.nvAppTelemetryUtilService.sendSettingChangeEvent(X.Up,rt?.toString(),`${q.d3.System_Displays}/${this.name}`,!0)}),(0,r.W)(le=>(this.overlayLoadingSpinnerService.triggerOverlaySpinner(!1),this.logger.error("Error in SetOutPutColorFormat",le),this.nvAppTelemetryUtilService.sendSettingChangeEvent(X.Up,rt?.toString(),`${q.d3.System_Displays}/${this.name}`,!0,le&&le.message?le.message:""),(0,S.of)(!1))))}applyDynamicRange(rt){this.overlayLoadingSpinnerService.triggerOverlaySpinner(!0);const me=performance.now();return this.nvAppBridgeService.executeWithPluginStatusTelemetry(G.f7,{gpuIndex:this.gpuIndex,displayIndex:this.index,dynamicRange:rt},{},!0,!1).pipe((0,u.ZZ)(le=>{const Xe=performance.now();return this.logger.info("SetDynamicRange API took (ms): ",Xe-me),this.logger.info("SetDynamicRange is successful",le),this.getColorEnhancementInfoForDisplay().pipe((0,l.M)(Se=>this.colorEnhancementInfoEventStream.setData(Se,!0)),(0,E.u)(!0))}),(0,l.M)(le=>{this.overlayLoadingSpinnerService.triggerOverlaySpinner(!1),this.nvAppTelemetryUtilService.sendSettingChangeEvent(X.cj,rt?.toString(),`${q.d3.System_Displays}/${this.name}`,!0)}),(0,r.W)(le=>(this.overlayLoadingSpinnerService.triggerOverlaySpinner(!1),this.logger.error("Error in SetDynamicRange",le),this.nvAppTelemetryUtilService.sendSettingChangeEvent(X.cj,rt?.toString(),`${q.d3.System_Displays}/${this.name}`,!0,le&&le.message?le.message:""),(0,S.of)(!1))))}get colorCombinationInfo$(){return this.desktopColorCombinationInfoEventStream.get$()}getDesktopColorCombinationInfo(){return this.nvAppBridgeService.executeWithPluginStatusTelemetry(G.ZH,{gpuIndex:this.gpuIndex,displayIndex:this.index},{},!1,!1).pipe((0,l.M)(rt=>{this.logger.info("GetDesktopColorCombinationInfo display success:",rt)}),(0,r.W)(rt=>(this.logger.error("Failed GetDesktopColorCombinationInfo API for display",rt),(0,x.$)(rt))))}refreshColorCombinationInfo(){this.desktopColorCombinationInfoEventStream.refresh()}applyColorCombinationInfo(rt,me,le){const Xe=performance.now();return this.nvAppBridgeService.executeWithPluginStatusTelemetry(G.J6,{gpuIndex:this.gpuIndex,displayIndex:this.index,brightnessInfo:rt,contrastInfo:me,gammaInfo:le},{},!0,!1).pipe((0,m.T)(Se=>{const fe=performance.now();return this.logger.info("SetColorCombinationInfo API took (ms): ",fe-Xe),this.logger.info("SetColorCombinationInfo is successful",Se),!0}),(0,r.W)(Se=>(this.logger.error("Error in SetColorCombinationInfo",Se),(0,S.of)(!1))))}get desktopColorDigitalVibrance$(){return this.desktopColorDigitalVibranceStream.get$()}getDesktopColorDigitalVibrance(){return this.nvAppBridgeService.executeWithPluginStatusTelemetry(G.To,{gpuIndex:this.gpuIndex,displayIndex:this.index},{},!1,!1).pipe((0,l.M)(rt=>{this.logger.info("GetDigitalVibranceInfo for display",rt)}),(0,r.W)(rt=>(this.logger.error("Failed to get GetDigitalVibranceInfo for display",rt),(0,x.$)(rt))))}refreshDesktopColorDigitalVibrance(){this.desktopColorDigitalVibranceStream.refresh()}applyDesktopColorDigitalVibrance(rt){const me=performance.now();return this.nvAppBridgeService.executeWithPluginStatusTelemetry(G.J1,{gpuIndex:this.gpuIndex,displayIndex:this.index,digitalVibranceValue:rt},{},!0,!1).pipe((0,l.M)(le=>{const Xe=performance.now();this.logger.info("SetDigitalVibrance API took (ms): ",Xe-me),this.logger.info("SetDigitalVibrance is successful",le)}),(0,r.W)(le=>(this.logger.error("Error in SetDigitalVibrance",le),(0,S.of)(!1))))}get desktopColorHue$(){return this.desktopColorHueStream.get$()}getDesktopColorHue(){return this.nvAppBridgeService.executeWithPluginStatusTelemetry(G.Fh,{gpuIndex:this.gpuIndex,displayIndex:this.index},{},!1,!1).pipe((0,l.M)(rt=>{this.logger.info("GetHueInfo for display",rt)}),(0,r.W)(rt=>(this.logger.error("Failed to get GetHueInfo for display",rt),(0,x.$)(rt))))}refreshDesktopColorHue(){this.desktopColorHueStream.refresh()}applyDesktopColorHue(rt){const me=performance.now();return this.nvAppBridgeService.executeWithPluginStatusTelemetry(G.Z1,{gpuIndex:this.gpuIndex,displayIndex:this.index,hueValue:rt},{},!0,!1).pipe((0,l.M)(le=>{const Xe=performance.now();this.logger.info("SetHue API took (ms): ",Xe-me),this.logger.info("SetHue is successful",le)}),(0,r.W)(le=>(this.logger.error("Error in SetHue",le),(0,S.of)(!1))))}get desktopColorContentType$(){return this.desktopColorContentTypeStream.get$()}getDesktopColorContentType(){return this.nvAppBridgeService.executeWithPluginStatusTelemetry(G.W6,{gpuIndex:this.gpuIndex,displayIndex:this.index},{},!1,!1).pipe((0,l.M)(rt=>{this.logger.info("GetContentType for display",rt)}),(0,r.W)(rt=>(this.logger.error("Failed to get GetContentType for display",rt),(0,x.$)(rt))))}refreshDesktopColorContentType(){this.desktopColorContentTypeStream.refresh()}applyDesktopColorContentType(rt){const me=performance.now();return this.nvAppBridgeService.executeWithPluginStatusTelemetry(G.oP,{gpuIndex:this.gpuIndex,displayIndex:this.index,contentType:rt},{},!0,!1).pipe((0,l.M)(le=>{const Xe=performance.now();this.logger.info("SetContentType API took (ms): ",Xe-me),this.logger.info("SetContentType is successful",le),this.refreshDesktopColorContentType(),this.nvAppTelemetryUtilService.sendSettingChangeEvent(X.uz,rt?.toString(),`${q.d3.System_Displays}/${this.name}`,!0)}),(0,r.W)(le=>(this.logger.error("Error in SetContentType",le),this.refreshDesktopColorContentType(),this.nvAppTelemetryUtilService.sendSettingChangeEvent(X.uz,rt?.toString(),`${q.d3.System_Displays}/${this.name}`,!0,le&&le.message?le.message:""),(0,S.of)(!1))))}get getColorAccuracyMode$(){return this.colorAccuracyModeStream.get$()}getColorAccuracyMode(){return this.nvAppBridgeService.executeWithPluginStatusTelemetry(G.kl,{gpuIndex:this.gpuIndex,displayIndex:this.index},{},!1,!1).pipe((0,l.M)(rt=>{this.logger.info("GetColorAccuracyMode for display",rt)}),(0,r.W)(rt=>(this.logger.error("Failed to get GetColorAccuracyMode for display",rt),(0,x.$)(rt))))}refreshColorAccuracyMode(){this.colorAccuracyModeStream.refresh()}applyColorAccuracyMode(rt){const me=performance.now();return this.nvAppBridgeService.executeWithPluginStatusTelemetry(G.Ep,{gpuIndex:this.gpuIndex,displayIndex:this.index,colorAccuracyMode:rt},{},!0,!1).pipe((0,l.M)(le=>{const Xe=performance.now();this.logger.info("SetColorAccuracyMode API took (ms): ",Xe-me),this.logger.info("SetColorAccuracyMode is successful",le),this.refreshColorAccuracyMode(),this.refreshDesktopColorHue(),this.refreshDesktopColorDigitalVibrance(),this.nvAppTelemetryUtilService.sendSettingChangeEvent(X.aZ,rt?.toString(),`${q.d3.System_Displays}/${this.name}`,!0)}),(0,r.W)(le=>(this.logger.error("Error in SetColorAccuracyMode",le),this.refreshColorAccuracyMode(),this.nvAppTelemetryUtilService.sendSettingChangeEvent(X.aZ,rt?.toString(),`${q.d3.System_Displays}/${this.name}`,!0,le&&le.message?le.message:""),(0,S.of)(!1))))}get getIsColorSettingsOsControlled$(){return this.isColorSettingsOsControlledStream.get$()}getIsColorSettingsOsControlled(){return this.nvAppBridgeService.executeWithPluginStatusTelemetry(G.P8,{gpuIndex:this.gpuIndex,displayIndex:this.index},{},!1,!1).pipe((0,l.M)(rt=>{this.logger.info("GetIsColorSettingsOsControlled for display",rt)}),(0,r.W)(rt=>(this.logger.error("Failed to get GetIsColorSettingsOsControlled for display",rt),(0,x.$)(rt))))}refreshIsColorSettingsOsControlled(){this.isColorSettingsOsControlledStream.refresh()}applyIsColorSettingsOsControlled(rt){const me=performance.now();return this.nvAppBridgeService.executeWithPluginStatusTelemetry(G.n0,{gpuIndex:this.gpuIndex,displayIndex:this.index,isColorSettingsOsControlled:rt},{},!0,!1).pipe((0,l.M)(le=>{const Xe=performance.now();this.logger.info("SetIsColorSettingsOsControlled API took (ms): ",Xe-me),this.logger.info("SetIsColorSettingsOsControlled is successful",le),this.refreshIsColorSettingsOsControlled(),this.nvAppTelemetryUtilService.sendSettingChangeEvent(X.Xy,rt?q.T8.TRUE:q.T8.FALSE,`${q.d3.System_Displays}/${this.name}`,!0)}),(0,r.W)(le=>(this.logger.error("Error in SetIsColorSettingsOsControlled",le),this.refreshIsColorSettingsOsControlled(),this.nvAppTelemetryUtilService.sendSettingChangeEvent(X.Xy,rt?q.T8.TRUE:q.T8.FALSE,`${q.d3.System_Displays}/${this.name}`,!0,le&&le.message?le.message:""),(0,S.of)(!1))))}getDisplayLUID(){return this.nvAppBridgeService.executeWithPluginStatusTelemetry(G.Fs,{gpuIndex:this.gpuIndex,displayIndex:this.index},{},!1,!1).pipe((0,l.M)(rt=>{this.logger.info("GetDisplayLuid for display",rt)}),(0,r.W)(rt=>(this.logger.error("Failed to get GetDisplayLuid for display",rt),(0,x.$)(rt))))}get getDisplayLUID$(){return this.luidStream.get$()}isCloneSecondaryDisplay(){return this.logicalDisplayType===G.QE.CloneDisplay&&!this.isClonePrimary}isSurroundDisplay(){return this.logicalDisplayType===G.QE.SurroundDisplay}}var ce=s(58527),te=s(892),Ee=s(48765),it=s(92602),Fe=s(96542),Qe=s(60990),ct=s(97888),Ge=s(40514),nt=s(47973),Je=s(92626),ze=s(61142);let Ke=(()=>{class be{constructor(me,le){this.translateService=le,this.disableControls=!1,this.loadingSpinner=!1,this.revertSubString="",this.revertTimeInSeconds=X.g,this.applySettings=new ce.bkB,this.revertSettings=new ce.bkB,this.logger=me.getLogger("nvapp/ApplyRevertComponent"),this.revertSubString=this.translateService.instant("system.applyRevertDialog.revertTimerWarning",{time:this.revertTimeInSeconds})}updateRemainingRevertTime(){this.revertTimeIntervalSub?.unsubscribe(),this.revertTimeIntervalSub=(0,te.Y)(1e3).pipe((0,Ee.v)(()=>this.revertTimeInSeconds>0)).subscribe(()=>{this.revertSubString=this.translateService.instant("system.applyRevertDialog.revertTimerWarning",{time:this.revertTimeInSeconds}),this.revertTimeInSeconds--},me=>this.logger.error("Error in updateRemainingRevertTime",me),()=>{this.revertSetting()})}ngOnInit(){this.updateRemainingRevertTime()}onApplyClicked(me){this.applySettings.emit(me)}onRevertClicked(me){this.cleanupTimer(),this.loadingSpinner=!0,this.revertSetting(me)}ngOnDestroy(){this.cleanupTimer()}revertSetting(me){this.disableControls=!0,this.revertSubString=this.translateService.instant("system.applyRevertDialog.reverting"),this.revertSettings.emit(me)}cleanupTimer(){this.revertTimeIntervalSub&&this.revertTimeIntervalSub.unsubscribe()}static{this.\u0275fac=function(le){return new(le||be)(ce.rXU(it.J6),ce.rXU(Fe.c$))}}static{this.\u0275cmp=ce.VBU({type:be,selectors:[["nv-app-apply-revert"]],outputs:{applySettings:"applySettings",revertSettings:"revertSettings"},decls:18,vars:20,consts:[[1,"apply-revert-dialog-main-container"],[1,"apply-revert-dialog-title-container","font-header6","font-color-primary"],[1,"apply-revert-dialog-data-container"],[1,"font-body2","apply-revert-descritpion",3,"innerHTML"],[1,"font-body2"],["align","end"],["mat-button","","nvAppTextButtonSpinner","",1,"font-button2","revert-button",3,"click","showSpinner","buttonText","disabled"],["mat-button","","mat-raised-button","",1,"font-button2","mat-accent",3,"click","disabled"]],template:function(le,Xe){1&le&&(ce.j41(0,"div",0)(1,"div",1),ce.EFF(2),ce.nI1(3,"translate"),ce.k0s(),ce.j41(4,"div",2),ce.nrm(5,"div",3),ce.nI1(6,"translate"),ce.j41(7,"div",4),ce.EFF(8),ce.k0s()(),ce.j41(9,"div",5)(10,"button",6),ce.nI1(11,"translate"),ce.nI1(12,"uppercase"),ce.bIt("click",function(fe){return Xe.onRevertClicked(fe)}),ce.k0s(),ce.j41(13,"button",7),ce.bIt("click",function(fe){return Xe.onApplyClicked(fe)}),ce.j41(14,"span"),ce.EFF(15),ce.nI1(16,"translate"),ce.nI1(17,"uppercase"),ce.k0s()()()()),2&le&&(ce.R7$(2),ce.SpI(" ",ce.bMT(3,8,"system.applyRevertDialog.title")," "),ce.R7$(3),ce.Y8G("innerHTML",ce.bMT(6,10,"system.applyRevertDialog.description"),ce.npT),ce.R7$(3),ce.SpI(" ",Xe.revertSubString," "),ce.R7$(2),ce.Y8G("showSpinner",Xe.loadingSpinner)("buttonText",ce.bMT(12,14,ce.bMT(11,12,"common.no")))("disabled",Xe.disableControls),ce.R7$(3),ce.Y8G("disabled",Xe.disableControls),ce.R7$(2),ce.JRh(ce.bMT(17,18,ce.bMT(16,16,"common.yes"))))},dependencies:[Qe.r,ct.Aq,Ge.e,nt.iV,Je.u,ze.Pc,Fe.D9],styles:[".apply-revert-dialog-main-container[_ngcontent-%COMP%]{width:528px;max-width:528px;max-height:87vh;padding:20px 8px 8px 24px;overflow:hidden}.apply-revert-dialog-main-container[_ngcontent-%COMP%] .apply-revert-dialog-title-container[_ngcontent-%COMP%], .apply-revert-dialog-main-container[_ngcontent-%COMP%] .apply-revert-descritpion[_ngcontent-%COMP%]{margin-bottom:16px}.apply-revert-dialog-main-container[_ngcontent-%COMP%] .revert-button[_ngcontent-%COMP%]{margin-top:16px;margin-right:8px}"]})}}return be})();var Ve=s(26772),$e=s(86088),dt=s(30843),Pe=s(3306),J=s(55347),vt=s(58108),ve=s(26537),ue=s(29761),et=s(473),se=s(11182);let Ce=(()=>{class be{get selectedSurface(){return this._selectedSurface.asObservable()}get surfaces$(){return this._surfaces.asObservable()}get dirtySurfaces$(){return this._dirtySurfaces.asObservable()}get displayState$(){return this.multiDisplaySupportApiService.displayState$}get gpuAndDisplayPhysicalInformation$(){return this._gpuAndDisplayPhysicalInformation.asObservable()}get gpuAndPhysicalDisplayInfo$(){return this._gpuAndPhysicalDisplayInfo.asObservable()}get displayMetaData$(){return this._displayMetaData$.asObservable().pipe((0,A.c)(0))}get isSumdDirty$(){return this._isSumdDirty$.asObservable()}set isSumdDirty$(me){this._isSumdDirty$.next(me)}get applyOnLeave$(){return this._applyOnLeave$.asObservable()}set applyOnLeave$(me){this._applyOnLeave$.next(me)}get isMultiCloneSystem$(){return this.multiDisplaySupportApiService.isMultiCloneSystem$}constructor(me,le,Xe,Se,fe,Ne,ye,Ot,sn,dn,yn,At,Vt){this.loggingService=me,this.nvAppBridgeService=le,this.bridgeService=Xe,this.nvAppTelemetryUtilService=Se,this.overlayLoadingSpinnerService=fe,this.displayUtilService=Ne,this.multiDisplaysRearrangeService=ye,this.translate=Ot,this.genericDialog=sn,this.matDialog=dn,this.multiDisplayDbService=yn,this.surroundMosaicAPIService=At,this.multiDisplaySupportApiService=Vt,this._selectedSurface=new i.m(1),this._surfaces=new i.m(1),this._dirtySurfaces=new n.B7,this._gpuAndDisplayPhysicalInformation=new i.m(1),this._gpuAndPhysicalDisplayInfo=new i.m(1),this._displayMetaData$=new i.m(1),this._isSumdDirty$=new h.t(!1),this._applyOnLeave$=new h.t(!1),this.dialogData={},this.logger=me.getLogger("nvapp/MultiDisplaysSupportService"),this.updateDisplayCanvasData()}refreshState(){this.logger.info("Refresh the state on system page visit"),this._surfaces.pipe((0,g.s)(1)).subscribe(me=>{me?.forEach(le=>{le?.displayItems?.forEach(Xe=>Xe.refreshAllSettings())})},me=>{this.logger.error("Failed to refresh the state",me)})}initialize(){this.getSurfaces().subscribe(C.l,me=>{this.logger.error("failed to get surfaces",me)}),this.gpuAndDisplayPhysicalInfoListener(),this.refreshGetGpuAndDisplaysPhysicalInformation().subscribe(C.l,C.l)}refreshDisplayState(){return this.getDisplaysState().pipe((0,g.s)(1))}getDisplaysState(){return this.multiDisplaySupportApiService.getDisplaysState()}getGpuAndDisplaysPhysicalInformation(){this.logger.info("calling getGpuAndDisplaysPhysicalInformation API");const me=performance.now();return this.nvAppBridgeService.executeWithPluginStatusTelemetry(G.K,{},{},!1,!1).pipe((0,m.T)(le=>(this.logger.info("Received getGpuAndDisplaysPhysicalInformation",le),le)),(0,l.M)(le=>{const Xe=performance.now();this.logger.info("getGpuAndDisplaysPhysicalInformation API took (ms): ",Xe-me),this._gpuAndDisplayPhysicalInformation.next(le)}),(0,r.W)(le=>{this.logger.error("Error while getting getGpuAndDisplaysPhysicalInformation",le);const Xe={physicalGpus:[]};return this._gpuAndDisplayPhysicalInformation.next(Xe),(0,S.of)(Xe)}))}getDisplayPhysicalInfo(me,le,Xe){const Se=Xe.find(fe=>fe.id===me);if(Se)return{...Se.displays.find(Ne=>Ne.nvDisplayId===le)}}getDisplayLogicalInfo(me,le){return le?.find(Se=>Se.nvDisplayId===me)??{}}refreshGetGpuAndDisplaysPhysicalInformation(){return this.getGpuAndDisplaysPhysicalInformation().pipe((0,g.s)(1))}gpuAndDisplayPhysicalInfoListener(){(0,M.zV)([this.displayState$,this.gpuAndDisplayPhysicalInformation$]).pipe((0,m.T)(([me,le])=>this.mergePhysicalAndLogicalDisplayInfo(me,le)),(0,l.M)(me=>{this.logger.info("Physical gpu info with display logical and physical info",me),this._gpuAndPhysicalDisplayInfo.next(me)})).subscribe(C.l,me=>{this.logger.error("failed to listen to getGpuAndDisplayPhysicalInfoListener",me)})}mergePhysicalAndLogicalDisplayInfo(me,le){const Xe=(0,Y.flatMap)(me?.topology?.surfaces,Se=>Se.displays);return le?.physicalGpus.map(Se=>{const fe=this.getInactiveDisplayListForGpu(Se,me?.inactiveDisplays),Ne=Se?.displays.map(ye=>{const Ot=this.getDisplayLogicalInfo(ye?.nvDisplayId,Xe),sn=fe?.find(dn=>dn.nvDisplayId===ye.nvDisplayId);return{...ye,inactive:!!sn,...Ot??{},originalName:ye.name,name:this.displayUtilService.getDisplayName({...Ot,...ye})}});return{...Se,displays:[...Ne??[]]}})}getInactiveDisplayListForGpu(me,le){return le?.filter(Xe=>Xe.gpuId===me.id)?.map(Xe=>({...Xe,inactive:!0}))}getSurfaces(){return this.displayState$.pipe((0,u.ZZ)(me=>this.gpuAndDisplayPhysicalInformation$.pipe((0,g.s)(1),(0,m.T)(le=>[me,le]))),(0,m.T)(([me,le])=>{let Xe=!1;le&&le.physicalGpus.length>0&&(Xe=le.physicalGpus.some(fe=>fe.displays.length>0));let Se=[];return Xe?Se=this.processStateSurfaces(me,le):this.logger.info("No display found in gpuAndDisplayPhysicalInfo"),Se}),(0,l.M)(me=>{this.surfaces=me,this._surfaces.next(this.surfaces)}))}updateDirtySurfaces(me){return this._gpuAndDisplayPhysicalInformation.pipe((0,g.s)(1),(0,m.T)(le=>this.processStateSurfaces(me,le)),(0,l.M)(le=>{this._dirtySurfaces.next(le)}))}processStateSurfaces(me,le){const Xe=[];let Se=!1,fe=-1;return me?.topology?.surfaces?.forEach(Ne=>{const ye=[];Ne.displays?.length>1&&fe++;const Ot=Ne.id===this.selectedSurfaceId;Ne.displays.forEach(dn=>{this.logger.info("Processing display: ",dn?.index,"gpuIndex: ",dn?.gpuIndex);const yn=this.getDisplayPhysicalInfo(dn.gpuId,dn.nvDisplayId,le.physicalGpus);yn.name=this.displayUtilService.getDisplayName({...dn,...yn}),dn.logicalDisplayType=Ne.displays.length>1?G.QE.CloneDisplay:dn.logicalDisplayType;const At=new Q(dn,yn,dn.gpuIndex,!1,fe,this.loggingService,this.nvAppBridgeService,this.nvAppTelemetryUtilService,this.bridgeService,this.overlayLoadingSpinnerService,this.displayUtilService);ye.push(At)});const sn={id:Ne.id,displayItems:ye,isSelected:Ot};Xe.push(sn),Ot&&(Se=!0,this._selectedSurface.next(sn))}),!Se&&Xe?.length>0&&(this.selectedSurfaceId=Xe[0].id,Xe[0].isSelected=!0,this._selectedSurface.next(Xe[0])),Xe}selectSurfaceById(me){this.surfaces?.forEach(le=>{le.id===me?(this.selectedSurfaceId=le.id,le.isSelected=!0,this._selectedSurface.next(le)):le.isSelected=!1})}updateDisplayCanvasData(){(0,P.h)(this.surfaces$,this.dirtySurfaces$).pipe((0,A.c)(0),(0,m.T)(me=>this.fetchSurfaceDisplayMetaData(me)),(0,v.n)(me=>(0,M.zV)([(0,S.of)(me),this.getSurroundConfig()])),(0,m.T)(([me,le])=>{if(le){const Xe=me.find(Se=>Se.surroundInfo?.enabled);Xe&&(Xe.surroundInfo=le)}return me})).subscribe(me=>{this._displayMetaData$.next(me)},me=>{this.logger.error("Some error occured in fetching initial DisplayMetaData ",me?.message)})}fetchSurfaceDisplayMetaData(me){this.logger.info("Sumd surface refreshed");let le=[];me.forEach(fe=>{if(fe.displayItems[0]){const ye=this.extractDisplayProps(fe.displayItems[0],fe);le.push(ye),this.logger.info(`Position received for ${ye.id} primary(${ye.isPrimary}) is ${ye.x}, ${ye.y}`)}}),this.logger.info("Initial scale factor:",{domain:this.scaleFactor?.domain(),range:this.scaleFactor?.range()}),this.scaleFactor=this.scaleFactor??(0,U.A)().domain([0,(0,B.czq)(le,fe=>fe.w>fe.h?fe.w:fe.h)]).range([0,ae.ZK]),this.logger.info("Updated scale factor:",{domain:this.scaleFactor.domain(),range:this.scaleFactor.range()});let Xe=0,Se=0;return le=le.map((fe,Ne)=>(Xe=fe.x,Se=fe.y,this.logger.info(`Width ${fe.w} and height ${fe.h} updated to: ${this.scaleFactor(fe.w)}, ${this.scaleFactor(fe.h)}`),{id:fe.id,isPrimary:fe.isPrimary,surfaceId:fe.surfaceId,isSelected:fe.isSelected,w:this.scaleFactor(fe.w),h:this.scaleFactor(fe.h),x:this.scaleFactor(Xe),y:this.scaleFactor(Se),wO:fe.w,hO:fe.h,xO:fe.x,yO:fe.y,text:fe.text,cloneDisplayContextText:fe.cloneDisplayContextText,isClonePrimary:fe.isClonePrimary,gsyncInfo:fe.gsyncInfo,surroundInfo:fe.surroundInfo,gpuId:fe.gpuId})),this.logger.info("Display meta data received after processing: ",le),le}extractDisplayProps(me,le){const Xe=this.fetchGsyncInfo(me);return{id:me.identifier,surfaceId:le.id,isSelected:le.isSelected,w:me.currentResolution.horizontal,h:me.currentResolution.vertical,x:me.position.X,y:me.position.Y,isPrimary:0===me.position.X&&0===me.position.Y,text:this.getIdentifierText(le.displayItems,ae.Fc),cloneDisplayContextText:this.getIdentifierText(le.displayItems,ae.YD),isClonePrimary:le?.displayItems?.length>1&&me.isClonePrimary,gsyncInfo:{enabled:Xe[0],src:Xe[1]},surroundInfo:{enabled:me.logicalDisplayType===G.QE.SurroundDisplay,rows:0,columns:0},gpuId:me.gpuId}}getIdentifierList(me){const le=me.map(Xe=>Xe.identifier);return le.length>=2?le.sort((Xe,Se)=>Xe-Se):le}getIdentifierText(me,le){const Xe=this.getIdentifierList(me);let Se="";return Se=Xe.length>=2?Xe.join(le):""+Xe?.[0],Se}getSurfaceOfDisplay(me,le){let Xe;return this.surfaces?.forEach(Se=>{Se.displayItems.find(fe=>fe.index===me&&fe.gpuIndex===le)&&(Xe=Se)}),Xe}setDisplaysState(me){this.logger.info("calling setDisplaysState API");const le=performance.now();return this.nvAppBridgeService.executeWithPluginStatusTelemetry(G.Bw,{topology:me.topology},{},!1,!1).pipe((0,g.s)(1),(0,m.T)(Se=>{if(this.logger.info("Received SetDisplaysState",Se),Se?.isValidationSuccess)return Se;throw new Error("Validation failed")}),(0,l.M)(Se=>{const fe=performance.now();this.logger.info("SetDisplaysState API took (ms): ",fe-le)}),(0,r.W)(Se=>(this.logger.error("Error while getting SetDisplaysState",Se),(0,x.$)(Se))))}cancelStateChange(){return this.bridgeService.executeCommand(G.Mr).pipe((0,l.M)(me=>{this.logger.info("State change cancelled successfully",me)}),(0,g.s)(1),(0,r.W)(me=>(this.logger.error("Failure cancelling state change:",me),(0,x.$)(me))))}remapCoordinatesForApply(me){const le=me.find(Xe=>Xe.isPrimary);le?me.forEach(Xe=>{Xe.xMap=Xe.x-le.x,Xe.yMap=Xe.y-le.y}):(this.logger.info("No nvidia display found as gdiPrimary. Preserving positions as received."),me.forEach(Xe=>{Xe.xMap=Xe.x,Xe.yMap=Xe.y}))}reorderSurfaceByPosition(me){const le=me.topology.surfaces.findIndex(Xe=>0===Xe.displays[0].position.X&&0===Xe.displays[0].position.Y);if(le>=0){const Xe=me.topology.surfaces.splice(le,1);me.topology.surfaces.unshift(Xe[0])}else this.logger.error("while reordering surface newGdiPrimarySurfaceIndex not found, so preserving surface order")}commitSumdTopology(){return this.applyStateChange().pipe((0,g.s)(1),(0,r.W)(me=>(this.logger.error("Error occured while sumd commit.."),this.logger.error(me),(0,x.$)(me))))}applyUpdatedPositions(me){return this.remapCoordinatesForApply(me),this.displayState$.pipe((0,g.s)(1),(0,m.T)(le=>(le.topology.surfaces.forEach(Xe=>{const Se=me.find(fe=>fe.surfaceId===Xe.id);Xe.displays.forEach(fe=>{this.updateRemappedCoordinatesForDisplay(fe,Se)})}),this.reorderSurfaceByPosition(le),this.logger.info("Apply data set after position update = ",le),le)),(0,v.n)(le=>this.setDisplaysState(le)),(0,v.n)(le=>this.updateDirtySurfaces(le.displaysState)),(0,l.M)(le=>{this.logger.info("Soft change for updated positions after rearrange ")}),(0,E.u)(!0),(0,r.W)(le=>(this.logger.error(le),this.logger.error("Error updating positions after rearrange",le),(0,x.$)(le))))}applyStateChange(){return this.bridgeService.executeCommand(G.p0).pipe((0,l.M)(me=>{this.logger.info("State change applied successfully",me)}),(0,g.s)(1),(0,r.W)(me=>(this.logger.error("Failure applying state change:",me),(0,x.$)(me))))}remapCoordinatesForPrimary(me,le){const Xe=me.find(Se=>Se.surfaceId===le);Xe.isPrimary=!0,me.forEach(Se=>{Se.xMap=Se.x-Xe.x,Se.yMap=Se.y-Xe.y,Se.id!==Xe.id&&(Se.isPrimary=!1)})}makePrimary(me,le){this.remapCoordinatesForPrimary(me,le),this.displayState$.pipe((0,g.s)(1),(0,m.T)(Xe=>(Xe.topology.surfaces.forEach(Se=>{const fe=me.find(Ne=>Ne.surfaceId===Se.id);Se.displays.forEach(Ne=>{this.updateRemappedCoordinatesForDisplay(Ne,fe)})}),this.reorderSurfaceByPosition(Xe),this.logger.info("Apply data set for make primary = ",Xe),Xe)),(0,v.n)(Xe=>this.setDisplaysState(Xe)),(0,v.n)(Xe=>this.updateDirtySurfaces(Xe.displaysState))).subscribe(Xe=>{this._isSumdDirty$.next(!0),this.logger.info("Soft change for primary done for ",le)},Xe=>{this.logger.error(Xe),this.logger.error("Error updating primary display",Xe)})}rescaleDisplayTiles(me,le,Xe,Se,fe){fe=fe??this.scaleFactor;let Ne=1,[ye,Ot,sn,dn]=this.fetchTopologySize(le,Xe,me,Se),yn=me.some(At=>At.w>ae.mu[0]||At.h>ae.mu[1]);if(Math.abs(sn)>2&&Math.abs(dn)>2)if(this.logger.info("Rescaling needed.."),sn<0&&dn<0){if(yn){for(this.logger.info("Scaling down until tile shrinks to max tile size.."),this.saveOrigDisplayMetaValues(me,fe);yn;){const At=fe.range();At[1]=At[1]-1,fe.range(At),this.updatedScaledValues(me,fe),yn=me.some(Vt=>Vt.w>ae.mu[0]||Vt.h>ae.mu[1])}return me}this.logger.info("Canvas > topology, scaling up.."),Ne=1}else this.logger.info("Canvas < topology, scaling down.."),Ne=-1;else{if(!(sn>0||dn>0))return this.logger.info("Rescaling not needed"),me;Ne=-1,this.logger.info("Canvas < topology, scaling down..")}if(this.saveOrigDisplayMetaValues(me,fe),sn>0||dn>0)for(;sn>0||dn>0||yn;){const At=fe.range();At[1]=At[1]-1,fe.range(At),this.updatedScaledValues(me,fe),yn=me.some(Vt=>Vt.w>ae.mu[0]||Vt.h>ae.mu[1]),[ye,Ot,sn,dn]=this.fetchTopologySize(le,Xe,me,Se)}else for(;Math.abs(sn)>2&&Math.abs(dn)>2;){const At=fe.range();if(At[1]=At[1]+1*Ne,fe.range(At),this.updatedScaledValues(me,fe),Ne>0&&(yn=me.some(Vt=>Vt.w>ae.mu[0]||Vt.h>ae.mu[1]),yn)){this.logger.info("Max tile size reached, not rescaling further.");break}[ye,Ot,sn,dn]=this.fetchTopologySize(le,Xe,me,Se)}return me}fetchTopologySize(me,le,Xe,Se){const[fe,Ne,ye,Ot,sn,dn]=this.multiDisplaysRearrangeService.findStartCoordinates(me,le,Xe);this.multiDisplayDbService.cacheStartAlignCoordinates(fe,Ne,Se);const yn=ye-sn,At=Ot-dn;return[yn,At,yn-me+ae.wS,At-le+ae.wS]}saveOrigDisplayMetaValues(me,le){me.forEach(Xe=>{Xe.xO=le.invert(Xe.x),Xe.yO=le.invert(Xe.y),Xe.wO=le.invert(Xe.w),Xe.hO=le.invert(Xe.h)})}updatedScaledValues(me,le){me.forEach(Xe=>{Xe.w=le(Xe.wO),Xe.h=le(Xe.hO),Xe.x=le(Xe.xO),Xe.y=le(Xe.yO)})}cloneDisplay(me,le,Xe){const Se=me.find(Ne=>Ne.surfaceId===Xe);let fe=!1;Se.isPrimary&&(fe=!0,this.remapCoordinatesForPrimary(me,Se.isClonePrimary?Xe:le)),this.displayState$.pipe((0,g.s)(1),(0,m.T)(Ne=>{this.logger.info("original state",Ne);const ye=Ne.topology.surfaces.findIndex(yn=>yn.id===Xe),Ot=Ne.topology.surfaces.splice(ye,1)?.[0],sn=Ot?.displays,dn=!!sn.filter(yn=>0===yn.position.X&&0===yn.position.Y)?.length;return Ne.topology.surfaces.forEach(yn=>{const At=me.find(Vt=>Vt.surfaceId===yn.id);fe&&yn.displays.forEach(Vt=>{this.updateRemappedCoordinatesForDisplay(Vt,At)}),yn.id===le&&this.mergeCloneSurfaces(yn,Ot,sn,dn)}),this.reorderSurfaceByPosition(Ne),this.logger.info("clonedWith state",Ne),Ne}),(0,v.n)(Ne=>this.setDisplaysState(Ne)),(0,v.n)(Ne=>(this.logger.info("new state for set display dirty state for clone",Ne),this.updateDirtySurfaces(Ne.displaysState)))).subscribe(Ne=>{this._isSumdDirty$.next(!0),this.logger.info("Soft change for clone done for ",le)},Ne=>{this.logger.error("Error updating clone display",Ne)})}restructureSurfacesForExtend(me,le){this.logger.info("surfaces before extend restructure ",le.topology.surfaces);const Xe=[];le.topology.surfaces.forEach(Se=>{Se.id===me&&Se.displays.forEach((fe,Ne)=>{if(fe.isClonePrimary=!1,Ne>0){const ye=(0,Y.cloneDeep)(Se);ye.displays=ye.displays.splice(Ne,1),Xe.push(ye)}})}),le.topology.surfaces.forEach(Se=>{Se.id===me&&Se.displays.splice(1,Se.displays.length-1)}),le.topology.surfaces.push(...Xe),this.logger.info("surfaces after extend restructure ",le.topology.surfaces)}extendDisplays(me,le){this.remapCoordinatesForApply(me),this.displayState$.pipe((0,g.s)(1),(0,m.T)(Xe=>{this.restructureSurfacesForExtend(le,Xe),Xe.topology.surfaces.forEach(ye=>{const Ot=me.find(sn=>sn.surfaceId===ye.id);ye.displays.forEach(sn=>{this.updateRemappedCoordinatesForDisplay(sn,Ot)})});const Se=me.reduce((ye,Ot)=>Ot.x>ye.x?Ot:ye);let fe=Xe.topology.surfaces.find(ye=>ye.id===Se.surfaceId);this.logger.info("Last original surface index = ",fe.id);let Ne=me.length;for(;Ne<Xe.topology.surfaces.length;){const ye=fe.displays[0].position.X+fe.displays[0].currentResolution.horizontal;Xe.topology.surfaces[Ne].displays[0].position.X=ye,this.logger.info(`Position to apply for ${Xe.topology.surfaces[Ne].id} \n isClonePrimary(${Xe.topology.surfaces[Ne].displays[0].isClonePrimary}) is ${ye}, ${Xe.topology.surfaces[Ne].displays[0].position.Y}`),fe=(0,Y.cloneDeep)(Xe.topology.surfaces[Ne]),Ne++}return this.reorderSurfaceByPosition(Xe),this.logger.info("Apply data set for extend displays = ",Xe),Xe}),(0,v.n)(Xe=>this.setDisplaysState(Xe).pipe((0,l.M)(Se=>{this.updateCurrentDisplayStateWithExtendedDisplayState(Se,Xe)}))),(0,v.n)(Xe=>this.updateDirtySurfaces(Xe.displaysState))).subscribe(Xe=>{this._isSumdDirty$.next(!0),this.logger.info("Soft change for Extend done for ",le)},Xe=>{this.logger.error(Xe),this.logger.error("Error extending displays",Xe)})}updateCurrentDisplayStateWithExtendedDisplayState(me,le){me.isValidationSuccess&&le.topology.surfaces.forEach(Xe=>{const Se=me?.displaysState?.topology.surfaces.find(fe=>fe?.displays?.[0]?.nvDisplayId===Xe?.displays?.[0]?.nvDisplayId);Se&&(Xe.id=Se?.id)})}mergeCloneSurfaces(me,le,Xe,Se){const fe=Xe?.length>1&&!!Xe.filter(ye=>ye.isClonePrimary)?.length,Ne=me?.displays?.length>1&&!!me.displays.filter(ye=>ye.isClonePrimary)?.length;fe&&Se?(fe&&!Ne&&(me.id=le.id),me.displays[0].position.X=Xe[0].position.X,me.displays[0].position.Y=Xe[0].position.Y):(Xe[0].position.X=me.displays?.[0]?.position.X,Xe[0].position.Y=me.displays?.[0]?.position.Y),fe||Ne?Ne&&fe?(Xe.forEach(ye=>ye.isClonePrimary=!1),me.displays=[...me?.displays,...Xe??[]]):Ne?me.displays=[...me?.displays,...Xe??[]]:fe&&(me.displays=[...Xe??[],...me?.displays]):(me.displays[0].isClonePrimary=!0,me.displays=[...me?.displays,...Xe??[]])}updateRemappedCoordinatesForDisplay(me,le){const Xe=Math.round(this.scaleFactor.invert(le.xMap)),Se=Math.round(this.scaleFactor.invert(le.yMap));me.position.X=Xe,me.position.Y=Se,this.logger.info(`Position to apply for ${le.id} primary(${le.isPrimary}) is ${Xe}, ${Se}`)}updateContextAndTip(me,le,Xe,Se,fe,Ne,ye,Ot,sn){const dn=(sn?ye:Ot)?.find(Vt=>Vt.id===Ne.surfaceId);if(!dn)return;const yn=dn.displayItems.length>1?dn.displayItems.map((Vt,Qt)=>Vt.identifier+". "+Vt.name+(Qt+1===dn.displayItems.length?"":"<br/>")).join(""):dn.displayItems[0].name,At=this.translate.instant(dn.displayItems.length>1?ae.gM:ae.X5,{surfaceName:yn,horizontal:dn.displayItems[0].currentResolution.horizontal,vertical:dn.displayItems[0].currentResolution.vertical});this.updateTipPosition(me,Se,fe,Ne,At,le,Xe)}updateTipPosition(me,le,Xe,Se,fe,Ne,ye){if(me.visible=!0,me.x=le+Se.x,me.y=Xe+Se.y+Se.h,me.w=Se.w,me.selectedSurfaceId=Se.id,me.tooltipText=fe,me.w<ae.Gj){const Ot=Math.round(ae.Gj-me.w)/2;me.x-=Ot,me.w=ae.Gj}Ne.visible=!1,ye.forEach(Ot=>{Ot.isHovered=Ot.id===Se.id})}updateCoordinatesTip(me,le,Xe,Se,fe,Ne){let ye="";ye=Ne.isPrimary?"0, 0":Math.round(this.scaleFactor.invert(Ne.x))+", "+Math.round(this.scaleFactor.invert(Ne.y)),this.updateTipPosition(me,Se,fe,Ne,ye,le,Xe)}applyRevertSettingsDialog(me=(0,S.of)(!0)){this.logger.info("Launching Apply-Revert Settings Dialog");const le=this.matDialog.open(Ke,{panelClass:["dialogPaddingRemove","common-dialog"],disableClose:!0,autoFocus:!1}),Xe=le.componentInstance.applySettings.pipe((0,g.s)(1),(0,T.j)(()=>{this.logger.info("refresh settings"),le?.close()})).pipe((0,l.M)(()=>{this.logger.info("Apply Settings Clicked")}),(0,E.u)(!0),(0,r.W)(Ne=>(this.logger.error("Error in applySettings listener",Ne),(0,S.of)(!1))));let Se=0;const fe=le.componentInstance.revertSettings.pipe((0,u.ZZ)(Ne=>(Se=performance.now(),this.nvAppBridgeService.executeWithPluginStatusTelemetry(G.oD,{},{},!0,!1))),(0,u.ZZ)(Ne=>{const ye=performance.now();return this.logger.info("RevertState API took (ms): ",ye-Se),me}),(0,g.s)(1),(0,T.j)(()=>{this.logger.info("Settings Refreshed"),le?.close()})).pipe((0,l.M)(()=>{this.logger.info("Reverted the Settings")}),(0,E.u)(!1),(0,r.W)(Ne=>(this.logger.error("Error in revertSettings",Ne),(0,S.of)(!1))));return(0,P.h)(Xe,fe)}dialogEscape(me){return me.dialogKeydownEvents.pipe((0,g.s)(1),(0,R.p)(le=>"Escape"===le.key),(0,E.u)(!1))}confirmSaveOnLeave(){this._applyOnLeave$.next(!0);const me={};this.dialogData={showSpinner:!1,headerText:{text:"multipleDisplays.confirmationTitle"},bodyText:{text:"multipleDisplays.confirmationText",translated:!1},primaryButton:{text:"common.apply",accentColor:!0},secondaryButton:{text:"common.cancel"},autoFocusOnPrimaryButton:Ve.X6},me.panelClass=["dialogPaddingRemove"],me.disableClose=!0,me.data=this.dialogData,this.confirmSaveDialogRef=this.genericDialog.open(me);const le=this.confirmSaveDialogRef.primaryButtonClick.pipe((0,g.s)(1),(0,E.u)(!0)),Xe=this.confirmSaveDialogRef.secondaryButtonClick.pipe((0,g.s)(1),(0,E.u)(!1));return(0,P.h)(le,Xe,this.dialogEscape(this.confirmSaveDialogRef)).pipe((0,v.n)(Se=>Se?(this.dialogData.primaryButton.spinnerOverlay=!0,this.dialogData.secondaryButton.isDisabled=!0,this.dialogData.primaryButton.removeButtonTextOnClick=!0,this.confirmSaveDialogRef.close(),this.applyStateChange().pipe((0,g.s)(1),(0,v.n)(()=>this.applyRevertSettingsDialog(this.refreshDisplayState().pipe((0,l.M)(fe=>{this._applyOnLeave$.next(!1)}),(0,E.u)(!0)))),(0,E.u)(!0))):(this.confirmSaveDialogRef.close(),(0,S.of)(!1))))}saveOnTabChange(){return this.isSumdDirty$.pipe((0,g.s)(1),(0,v.n)(me=>(0,M.zV)(me?[this.confirmSaveOnLeave(),(0,S.of)(me)]:[(0,S.of)(!0),(0,S.of)(me)])),(0,v.n)(([me,le])=>(this.applyOnLeave$=!1,me&&this._isSumdDirty$.next(!1),le?me?this.refreshDisplayState().pipe((0,E.u)(!0)):(0,S.of)(!1):(0,S.of)(!0))),(0,g.s)(1))}fetchGsyncInfo(me){const le=me?.gsyncState.gsyncType===G.rc.GsyncUltimate||me?.gsyncState.gsyncType===G.rc.GSyncCompatible||me?.gsyncState.gsyncType===G.rc.GSyncCapable,Xe=X.qN.get(me?.gsyncState.gsyncType)??"";return[le,!0===le?X.AJ.get(me?.gsyncState.gsyncType):"",Xe]}getSurroundConfig(){return this.surroundMosaicAPIService.surroundOrMosaicConfig$.pipe((0,m.T)(me=>(this.logger.info("GetSurroundOrMosaicConfig returned ",me.rows," x ",me.columns," topology"),me.rows>1||me.columns>1?{enabled:!0,rows:me.rows,columns:me.columns}:null)),(0,g.s)(1),(0,r.W)(me=>(this.logger.error("Failure GetSurroundOrMosaicConfig:",me),(0,S.of)(null))))}static{this.\u0275fac=function(le){return new(le||be)(ce.KVO(it.J6),ce.KVO($e.S),ce.KVO(it.NZ),ce.KVO(q.AY),ce.KVO(dt.t),ce.KVO(Pe.Q),ce.KVO(J.Z),ce.KVO(Fe.c$),ce.KVO(vt.uh),ce.KVO(ve.bZ),ce.KVO(ue.b),ce.KVO(et.w),ce.KVO(se.v))}}static{this.\u0275prov=ce.jDH({token:be,factory:be.\u0275fac,providedIn:"root"})}}return be})()},473:(St,z,s)=>{"use strict";s.d(z,{w:()=>G});var i=s(31315),n=s(85735),h=s(26513),C=s(43848),S=s(59859),M=s(83915),P=s(14714),x=s(65706),A=s(72147),g=s(79539),m=s(43615),l=s(91384),r=s(26875),v=s(30627),E=s(3321),T=s(58527),R=s(86088),B=s(92602),U=s(9658),Y=s(11182),ae=s(30843);let G=(()=>{class k{get surroundOrMosaicConfig$(){return this._surroundOrMosaicConfig$.asObservable()}get dirtySurroundOrMosaicConfig$(){return this._dirtySurroundOrMosaicConfig$.asObservable()}get defaultSurroundOrMosaicConfig$(){return this._defaultSurroundOrMosaicConfig$.asObservable()}get surroundOrMosaicDisplaySettings$(){return this._surroundOrMosaicDisplaySettings$.asObservable()}get defaultSurroundOrMosaicDisplaySettings$(){return this._defaultSurroundOrMosaicDisplaySettings$.asObservable()}get maxSurroundResolution$(){return this._maxSurroundResolution$.asObservable()}get isSurroundOrMosaicSettingDirty$(){return(0,i.zV)([this.surroundOrMosaicConfig$,this.dirtySurroundOrMosaicConfig$,this._defaultSurroundOrMosaicConfig$.asObservable()]).pipe((0,M.T)(([q,Q,ce])=>{const te=(0,r.merge)((0,r.cloneDeep)(q),(0,r.cloneDeep)(ce)),Ee=(0,r.cloneDeep)(Q);return!(0,r.isEqual)(te,Ee)}))}constructor(q,Q,ce,te,Ee){this.nvAppBridgeService=q,this.loggingService=Q,this.surroundUtilsService=ce,this.multiDisplaySupportApiService=te,this.overlayLoadingSpinnerService=Ee,this._surroundOrMosaicConfig$=new n.m(1),this._dirtySurroundOrMosaicConfig$=new n.m(1),this._defaultSurroundOrMosaicConfig$=new h.t({}),this._surroundOrMosaicDisplaySettings$=new n.m(1),this._defaultSurroundOrMosaicDisplaySettings$=new h.t(null),this._maxSurroundResolution$=new n.m(1),this.logger=this.loggingService.getLogger("nvapp/SurroundMosaicAPIService")}initialize(){this.listenerForMaxResolutionOnDisplaySettings(),this.overlayLoadingSpinnerService.setOverlayIndicatorParams({assistiveText:E.up})}setSurroundMosaicDisplaySettings(q){this._surroundOrMosaicDisplaySettings$.next(q)}setDefaultSurroundMosaicDisplaySettings(q){this._defaultSurroundOrMosaicDisplaySettings$.next(q)}setDirtySurroundOrMosaicConfig(q){q.rows||(q.rows=0),q.columns||(q.columns=0),this._dirtySurroundOrMosaicConfig$.next(q)}setDefaultSurroundOrMosaicConfig(q){this._defaultSurroundOrMosaicConfig$.next(q)}getSurroundConfig(q=v.Be.NEXTGENSURROUND,Q=!1,ce=!1){const te={mosaicType:q};return this.logger.info("Calling GetSurroundOrMosaicConfig"),this.nvAppBridgeService.executeWithPluginStatusTelemetry(v.ap,te).pipe((0,M.T)(Ee=>(this.logger.info("Surround config",Ee),this._surroundOrMosaicConfig$.next((0,r.cloneDeep)(Ee?.MosaicGridTopoValue)),(!Q||Q&&ce!==Ee?.MosaicGridTopoValue?.displayCount>1)&&(this.setDirtySurroundOrMosaicConfig((0,r.cloneDeep)(Ee?.MosaicGridTopoValue)),this.setDefaultSurroundOrMosaicConfig((0,r.cloneDeep)(Ee?.MosaicGridTopoValue))),Ee.MosaicGridTopoValue)),(0,P.W)(Ee=>(this.logger.error("there was a problem while fetching GetSurroundOrMosaicConfig API",Ee),(0,C.of)({}))))}setSurroundConfig(q,Q,ce,te){return this.overlayLoadingSpinnerService.triggerOverlaySpinner(!0,0),(0,i.zV)([this.dirtySurroundOrMosaicConfig$,this.surroundOrMosaicConfig$]).pipe((0,x.s)(1),(0,A.n)(([Ee,it])=>{let Fe=te.horizontal,Qe=te.vertical;te?.flags?.isSurround?(Fe=te.horizontal/Ee.columns,Qe=te.vertical/Ee.rows):(Fe=te.horizontal,Qe=te.vertical),Fe=Q?it?.displaySettings?.width:Fe,Qe=Q?it?.displaySettings?.height:Qe;const ct=this.surroundUtilsService.isLandscapeRotation(ce),Ge={MosaicGridTopoValue:{...Ee,displaySettings:{...Ee?.displaySettings,width:ct||Q?Fe:Qe,height:ct||Q?Qe:Fe},mosaicType:q}};return this.logger.info("surround config params",Ge),this.nvAppBridgeService.executeWithPluginStatusTelemetry(v.kw,Ge).pipe((0,g.H)(()=>this.updateSurroundConfigAndIdentifyAllDisplays()),(0,P.W)(nt=>(this.logger.error("there was a problem while setting SurroundConfig",nt),this.updateSurroundConfigAndIdentifyAllDisplays())))}),(0,m.j)(()=>{this.overlayLoadingSpinnerService.triggerOverlaySpinner(!1)}))}getSurroundMosaicDisplaySetting(q,Q,ce,te){return this.dirtySurroundOrMosaicConfig$.pipe((0,x.s)(1),(0,A.n)(Ee=>{const it=ce??Ee.displays.map(Qe=>Qe.displayId)?.filter(Qe=>!!Qe),Fe={mosaicDisplayConfigIn:{rows:q.row??Ee.rows,columns:q.col??Ee.columns,displayCount:it?.length,displayIds:it,mosaicType:Q,displaySettingsCount:0,errorFlags:it?.map(Qe=>0)??[],displaySettings:[],isPlusN:!1,useTopologyWithMaxGpus:!1}};return this.logger.info("getSurroundMosaicDisplaySetting params",Fe),this.nvAppBridgeService.executeWithPluginStatusTelemetry(v.kf,Fe).pipe((0,g.H)(Qe=>(this.logger.info("get surround mosaic display settings",Qe),this.setSurroundMosaicDisplaySettings(Qe?.mosaicDisplayConfigOut),te?(this.setDefaultSurroundMosaicDisplaySettings((0,r.cloneDeep)(Qe?.mosaicDisplayConfigOut)),this.updateDefaultConfigWithDisplaySetting(Qe)):(0,C.of)(Qe))),(0,P.W)(Qe=>(this.logger.error("error fetching surround mosaic display settings",Qe),this.setSurroundMosaicDisplaySettings({}),(0,S.$)(()=>new Error(Qe)))))}))}setResolution(q,Q){this.overlayLoadingSpinnerService.triggerOverlaySpinner(!0,0);let ce=q.refreshRates.find(it=>it.isSelected)?.value;ce||(ce=q?.refreshRates?.[0].value);const te={horizontal:q.horizontal,vertical:q.vertical,flags:q.flags,tvFormat:q.tvFormat,refreshRate:ce};return this.nvAppBridgeService.executeWithPluginStatusTelemetry(v.zd,{resolution:te,gpuIndex:Q.gpuIndex,displayIndex:Q.index}).pipe((0,g.H)(it=>this.updateSurroundConfigAndIdentifyAllDisplays()),(0,A.n)(it=>this.updateDefaultConfigWithResolution(te)),(0,P.W)(it=>(this.logger.error("there was a problem while setting resolution",it),(0,S.$)(()=>new Error(it)))),(0,m.j)(()=>{this.overlayLoadingSpinnerService.triggerOverlaySpinner(!1)}))}disableSurroundConfig(q=!0,Q=!0){return q&&this.overlayLoadingSpinnerService.triggerOverlaySpinner(!0,0),this.nvAppBridgeService.executeWithPluginStatusTelemetry(v.Mi).pipe((0,g.H)(()=>(this.setSurroundMosaicDisplaySettings({}),this.logger.info("successfully disabled the surround config"),this.updateSurroundConfigAndIdentifyAllDisplays(Q))),(0,P.W)(ce=>(this.logger.error("there was a problem while disabling surround config",ce),this.updateSurroundConfigAndIdentifyAllDisplays(Q))),(0,m.j)(()=>{q&&this.overlayLoadingSpinnerService.triggerOverlaySpinner(!1)}))}extendAllDisplays(){return this.nvAppBridgeService.executeWithPluginStatusTelemetry(v.xv).pipe((0,P.W)(q=>(this.logger.error("there was a problem while extend all displays",q),(0,C.of)(null))))}getSpanIdentifiers(){return this.nvAppBridgeService.executeWithPluginStatusTelemetry(v.Tr).pipe((0,M.T)(q=>(this.logger.info("identifiers fetched successfully",q),q?.spanIdentifiers??[])),(0,P.W)(q=>(this.logger.error("problem getting span identifiers",q),(0,C.of)([]))))}identifyAllSurroundDisplays(q,Q){return this.nvAppBridgeService.executeWithPluginStatusTelemetry(v.OH,{showSpanIdentifiers:!!q,hideIdentifiers:!!Q,isAllDisplays:!0,monitorIdentifiers:[]}).pipe((0,P.W)(te=>(this.logger.error("failed to identify displays",te),(0,C.of)(null))))}updateSelectedTopology(q,Q=!1){this.dirtySurroundOrMosaicConfig$.pipe((0,x.s)(1)).subscribe(ce=>{const te={...ce,rows:q?.row,columns:q?.col};this.setDirtySurroundOrMosaicConfig(te),Q&&this.setDefaultSurroundOrMosaicConfig((0,r.cloneDeep)(ce))},ce=>this.logger.error("error updating selected topology",ce))}updateSelectedDisplayList(q,Q=!1){(0,i.zV)([this.dirtySurroundOrMosaicConfig$,this.surroundOrMosaicConfig$]).pipe((0,x.s)(1)).subscribe(([ce,te])=>{ce={...ce,displays:(0,r.cloneDeep)(te.displays)};const Ee=q?.filter(it=>it.isSelected);Ee?.forEach((it,Fe)=>{ce.displays[Fe].displayId=it.nvDisplayId}),ce.displayCount=Ee?.length,this.setDirtySurroundOrMosaicConfig(ce),Q&&this.setDefaultSurroundOrMosaicConfig((0,r.cloneDeep)(ce))},ce=>this.logger.error("there was a problem updating selected display list",ce))}updateSelectedDisplayListOnSurroundCanvas(q){this.dirtySurroundOrMosaicConfig$.pipe((0,x.s)(1)).subscribe(Q=>{Q={...Q,displays:(0,r.cloneDeep)(Q.displays)},q=q.sort(this.surroundUtilsService.sortDisplaysOnCanvasXPosition),q?.forEach((ce,te)=>{Q.displays[te].displayId=ce.nvDisplayId}),this.setDirtySurroundOrMosaicConfig(Q)})}updateRotation(q){this.dirtySurroundOrMosaicConfig$.pipe((0,x.s)(1)).subscribe(Q=>{Q.displays.forEach(ce=>ce.rotation=q),this.setDirtySurroundOrMosaicConfig(Q)},Q=>this.logger.error("there was a problem updating selected rotation",Q))}updateMaxResolutionWithDefaultInCaseSurroundEnabled(){this._maxSurroundResolution$.next({})}updateDisplaySetting(q){return this.dirtySurroundOrMosaicConfig$.pipe((0,x.s)(1),(0,l.M)(Q=>{if(q?.horizontal&&q?.vertical){const te=this.surroundUtilsService.findSelectedRefreshRate(q?.refreshRates);Q.displaySettings.width=q.horizontal,Q.displaySettings.height=q.vertical,Q.displaySettings.freq=te?.value??0}else Q.displaySettings.width=0,Q.displaySettings.height=0,Q.displaySettings.freq=0;this.setDirtySurroundOrMosaicConfig(Q)}))}updateDefaultConfigWithResolution(q){return this._defaultSurroundOrMosaicConfig$.asObservable().pipe((0,x.s)(1),(0,M.T)(Q=>{const ce=Q.displaySettings;ce.width===q.horizontal&&ce.height===q.vertical&&ce.freq===q.refreshRate||(Q.displaySettings={...Q.displaySettings,width:q.horizontal,height:q.vertical,freq:q.refreshRate},this.setDefaultSurroundOrMosaicConfig(Q))}))}listenerForMaxResolutionOnDisplaySettings(){this.maxResolutionSubscription?.unsubscribe(),this.maxResolutionSubscription=this.surroundOrMosaicDisplaySettings$.subscribe(q=>{if(!q)return void this._maxSurroundResolution$.next({});const Q=this.surroundUtilsService.findMaxDisplaySettingForEnableSurround(q),ce=this.surroundUtilsService.getMaxSurroundResolutionFromMosaicDisplaySetting(Q,q);this._maxSurroundResolution$.next(ce)},q=>{this.logger.error("error while setting listener for max surround resolution",q)})}updateDefaultConfigWithDisplaySetting(q){return this._defaultSurroundOrMosaicConfig$.asObservable().pipe((0,x.s)(1),(0,M.T)(Q=>{const ce=this.surroundUtilsService.findMaxDisplaySettingForEnableSurround(q?.mosaicDisplayConfigOut);return ce.width*=Q.columns,ce.height*=Q.rows,Q.displaySettings=(0,r.cloneDeep)(ce),this.setDefaultSurroundOrMosaicConfig(Q),this.setDirtySurroundOrMosaicConfig((0,r.cloneDeep)(Q)),q}))}updateSurroundConfigAndIdentifyAllDisplays(q=!0){return this.identifyAllSurroundDisplays(!1,!0).pipe((0,g.H)(Q=>this.getDisplaysState()),(0,g.H)(Q=>this.getSurroundConfig()),(0,g.H)(Q=>q?this.identifyAllSurroundDisplays(!0).pipe((0,M.T)(ce=>Q)):(0,C.of)(null)))}getDisplaysState(){return this.multiDisplaySupportApiService.getDisplaysState().pipe((0,x.s)(1))}cleanUpListeners(){this.maxResolutionSubscription?.unsubscribe(),this.overlayLoadingSpinnerService.setOverlayIndicatorParams({assistiveText:void 0})}static{this.\u0275fac=function(Q){return new(Q||k)(T.KVO(R.S),T.KVO(B.J6),T.KVO(U.f),T.KVO(Y.v),T.KVO(ae.t))}}static{this.\u0275prov=T.jDH({token:k,factory:k.\u0275fac,providedIn:"root"})}}return k})()},63332:(St,z,s)=>{"use strict";s.d(z,{j:()=>l});var i=s(16229),n=s(83915),h=s(75597),C=s(9231),S=s(26513),M=s(8619),P=s(14749);class x{constructor(u){this.defaultTabList=[...u],this.tabList=[...u],this.tabChange=new S.t(this.tabList[0])}getTabList(){return this.tabList}refreshTabList(u=[]){return this.tabList=[...this.defaultTabList],u.forEach(v=>{const E=this.getTabIndex(v);-1!==E&&this.tabList.splice(E,1)}),this.tabList}tabChanged(u){this.tabChange.next(this.tabList[u])}getTabIndex(u){return this.tabList.findIndex(v=>v===u)}tabEntered$(u){return this.tabChange.asObservable().pipe((0,n.T)(v=>v===u),(0,M.p)(v=>v))}tabExited$(u){return this.tabChange.asObservable().pipe((0,P.J)(),(0,n.T)(([v,E])=>v===u),(0,M.p)(v=>v))}}var A=s(1242),g=s(58527),m=s(92602);let l=(()=>{class r{constructor(v){this.systemTabs=new x(C.H),this.logger=v.getLogger("nvapp/SystemUtilService")}getTabList(){return this.systemTabs.getTabList()}tabChanged(v){this.systemTabs.tabChanged(v)}resetTabList(v){return this.systemTabs.refreshTabList(v)}getTabIndex(v){return this.systemTabs.getTabIndex(v)}tabEntered$(v){return this.systemTabs.tabEntered$(v)}tabExited$(v){return this.systemTabs.tabExited$(v)}isTabActive(v){return(0,i.h)(this.tabEntered$(v).pipe((0,n.T)(E=>!0)),this.tabExited$(v).pipe((0,n.T)(E=>!1)))}getSystemViewNameFromSystemTab(v){switch(v){case h.c.Overview:return A.d3.System_Overview;case h.c.Performance:return A.d3.System_Performance;case h.c.Video:return A.d3.System_Video;case h.c.Display:return A.d3.System_Displays}}static{this.\u0275fac=function(E){return new(E||r)(g.KVO(m.J6))}}static{this.\u0275prov=g.jDH({token:r,factory:r.\u0275fac,providedIn:"root"})}}return r})()},51325:(St,z,s)=>{"use strict";s.d(z,{P3:()=>M,QX:()=>C,Rh:()=>h,S9:()=>n,bS:()=>i,po:()=>S});const i=2,n=4,h=5,C=2160,S=3840,M={isCurrent:!0,isSurround:!0,isSupported:!0,isBezelCorrected:!1,isInterlaced:!1,isHD:!1,isCustom:!1,isNative:!1,isRecommended:!0,isCloneSupported:!1,isHD_3D:!1,isChecked:!1,isBlindlyExposedHD:!1,isCustomUnderscan:!1,isDefaultUnderscan:!1,isScalingFactor12000:!1,isScalingFactor15000:!1,isScalingFactor17777:!1,isScalingFactor20000:!1,isScalingFactor22500:!1,isScalingFactor30000:!1,isScalingFactor40000:!1,isScalingFactor60000:!1,isScalingFactor90000:!1,isScalingFactor5000:!1,isScalingFactor6667:!1,isScalingFactor7500:!1,isScalingFactor7693:!1,isScalingFactor8500:!1,isScalingFactor5883:!1,isDLDSRFactor:!1}},9658:(St,z,s)=>{"use strict";s.d(z,{f:()=>M});var i=s(51325),n=s(30627),h=s(58527),C=s(92602),S=s(96542);let M=(()=>{class P{constructor(A,g){this.loggingService=A,this.translateService=g,this.logger=this.loggingService.getLogger("nvapp/SurroundUtilsService")}prepareDisplayTopologyList(A){const g=[];A=this.getMaxDisplayLengthForSurround(A);for(let m=i.bS;m<=A;m++)g[m-i.bS]={row:1,col:m},g[m-i.bS+A-1]={row:m,col:1};return A>=i.S9&&g.push({row:i.bS,col:i.bS}),g}populateCurrentRotationType(A,g){const m=A?.find(r=>0===r?.position?.X&&0===r?.position?.Y),l=g.rows>0&&g.columns>0?g?.displays[0]:null;return l?l.rotation:m?m?.rotationState:n.H_.Rotation0}isLandscapeRotation(A){return[n.H_.Rotation0,n.H_.Rotation180].includes(A)}isTopologyVertical(A){return A?.row>A?.col}selectDisplayMetadataById(A,g){A?.forEach(m=>{m.isSelected=!(!m.nvDisplayId||m.nvDisplayId!==g)})}resetSelectedDisplays(A){A?.forEach(g=>{g.isSelected=!1})}isSurroundDisplay(A){return A.logicalDisplayType===n.QE.SurroundDisplay}findMaxDisplaySettingForEnableSurround(A){if(!A||A.displayCount<i.bS||!A.displaySettings)return{};const g=A?.displaySettings;let m=g?.[0];g?.forEach(u=>{(u.width===m.width&&u.height>m.height||u.width>m.width)&&(m=u)});const l=g?.filter(u=>u.width===m.width&&u.height===m.height)?.map(u=>u.freq),r=Math.max(...l);return{...m,freq:r}}getSelectedDisplayCount(A){return A?.filter(g=>g.isSelected)?.length}getSurroundResolutionMatKey(A){return A?A.horizontal+"x"+A.vertical:""}sortRefreshRate(A,g){return A?.value!==g?.value?g?.value-A?.value:0}sortDisplaysOnDisplayId(A,g){return A?.nvDisplayId-g?.nvDisplayId}sortPhysicalGpuOnGpuId(A,g){return A?.id-g?.id}sortDisplaysOnCanvasXPosition(A,g){return A?.x-g?.x}sortDisplaysOnSelectionOrder(A,g){return A?.selectionOrder-g?.selectionOrder}sortResolutions(A,g){return g?.horizontal!==A?.horizontal?g.horizontal-A.horizontal:g?.vertical!==A?.vertical?g?.vertical-A?.vertical:0}createUIResolution(A){return A?.horizontal&&A?.vertical?{...A,refreshRates:[{translateParam:this.getRefreshRateTranslateParams(A),value:A.refreshRate,isSelected:!1}],resolutionTranslateParams:this.getResolutionTranslateParam(A)}:{}}getRefreshRateTranslateParams(A){return{refreshRate:A.refreshRate}}getMaxSurroundResolutionFromMosaicDisplaySetting(A,g){const m={horizontal:A.width,vertical:A.height,flags:i.P3,refreshRate:A.freq,tvFormat:null};this.multiplyResolutionWithTopology(g.rows,g.columns,m);const l=this.createUIResolution(m);return l.refreshRates=this.getRefreshListForResolutionFromDisplaySettings(A,g?.displaySettings),l}getResolutionTranslateParam(A,g=!1){if(!(A&&A.horizontal&&A.vertical))return{};let m="";return A.flags.isBezelCorrected?m="system.display.resolutions.bezelAdjusted":A.flags.isRecommended&&!A.flags.isBezelCorrected&&(m="system.display.resolutions.recommended"),m=m?this.translateService.instant(m):"",{horizontal:A.horizontal,vertical:A.vertical,recommended:g?"":m}}getRefreshListForResolutionFromDisplaySettings(A,g){const m=new Map;return g?.forEach(l=>{l.width===A.width&&l.height===A.height&&!m.has(l.freq)&&m.set(l.freq,{translateParam:this.getRefreshRateTranslateParams({refreshRate:l.freq}),value:l.freq,isSelected:!1})}),[...m.values()].sort(this.sortRefreshRate)}updatedSelectedRefreshRate(A,g){g?.horizontal&&g?.vertical&&(g?A.refreshRates.forEach(m=>m.isSelected=m.value===g.refreshRate):A.refreshRates[0].isSelected=!0)}findSelectedRefreshRate(A,g){const m=A?.find(r=>r.isSelected),l=g?A?.find(r=>r.value===g):null;return m??l??A[0]}getDisplayNameMap(A){const g=new Map;return A.forEach(m=>{if(!g.has(m.name))return g.set(m.name,[m.nvDisplayId]);g.get(m.name).push(m.nvDisplayId)}),g}setSurroundDisplaysSelected(A,g){A?.forEach(m=>{const l=g?.findIndex(r=>r.displayId===m.nvDisplayId);m.isSelected=!1,l>=0&&(m.isSelected=!0,m.selectionOrder=l+1)})}multiplyResolutionWithTopology(A,g,m){m.horizontal*=g,m.vertical*=A}getMaxDisplayLengthForSurround(A){return A>i.Rh?i.Rh:A}static{this.\u0275fac=function(g){return new(g||P)(h.KVO(C.J6),h.KVO(S.c$))}}static{this.\u0275prov=h.jDH({token:P,factory:P.\u0275fac,providedIn:"root"})}}return P})()},75831:(St,z,s)=>{"use strict";s.d(z,{B_:()=>ve,D6:()=>Je,Et:()=>U,I:()=>g,IR:()=>Qe,OC:()=>k,PZ:()=>n,U:()=>P,Uc:()=>q,Wc:()=>Ce,X0:()=>h,XW:()=>ue,Xl:()=>S,Yx:()=>Ge,Zo:()=>nt,_1:()=>Fe,aP:()=>Q,cL:()=>J,cp:()=>ae,i4:()=>M,i8:()=>se,iH:()=>C,ij:()=>vt,lK:()=>G,lh:()=>et,lz:()=>ze,mi:()=>Y,oE:()=>ct,py:()=>A,yY:()=>x});var i=s(19559);const n="common.on",h="common.off",C="common.active",S="common.inactive",M="common.disabled",P="common.default",x="system.video.status",A="system.video.quality",g="system.video.qualityWithValue",l="system.video.veryLow",r="system.video.gpuUtilization.low",u="system.video.gpuUtilization.medium",v="system.video.gpuUtilization.high",U=2e3,Y=200,ae="570",G=new Map([[i.FW.SuperResValue_Auto,"common.auto"],[i.FW.SuperResValue_1,l],[i.FW.SuperResValue_2,r],[i.FW.SuperResValue_3,u],[i.FW.SuperResValue_4,v]]),k=new Map([[i.ap.SuperResStatus_Off,h],[i.ap.SuperResStatus_1,l],[i.ap.SuperResStatus_2,r],[i.ap.SuperResStatus_3,u],[i.ap.SuperResStatus_4,v]]),q=new Map([[i.FO.NO_HDR_DISPLAY_CONNECTED,"system.video.hdrInfoPopup.errorNoHdrDisplay"],[i.FO.ENABLE_HDR_FROM_WINDOWS,"system.video.hdrInfoPopup.errorWindowsSetting"],[i.FO.SURROUND_ENABLED,"system.video.hdrInfoPopup.hdrDialogSurroundErrorString"]]),Q=new Map([[i.FO.NO_HDR_DISPLAY_CONNECTED,"system.video.hdrInfoPopup.errorNoHdrDisplay"],[i.FO.ENABLE_HDR_FROM_WINDOWS,"system.video.hdrDialogWindowsErrorString"],[i.FO.SURROUND_ENABLED,"system.video.hdrInfoPopup.hdrDialogSurroundErrorString"]]),Fe=100,Qe=400,ct=10,Ge=100,nt=-100,Je=100,ze=1,J=1,vt=4,ve=0,ue=2,et={isSupported:!1,isEnabled:!1,quality:i.FW.SuperResValue_Off,isActive:!1,status:i.ap.SuperResStatus_Off,gpuUtil:i.Ms.SuperResGpuUtil_Low,disableVsrOnGameLaunch:i.uJ.DisableVSROnGameLaunch_Off,vsrStatusIndicator:i.Th.SuperResIndicator_Off},se={isSupported:!1,isEnabled:!1,errorCode:i.FO.NO_HDR_DISPLAY_CONNECTED,isActive:!1,peakBrightness:0,minPeakBrightness:0,maxPeakBrightness:0,middleGray:0,contrast:0,saturation:0,disableHdrOnGameLaunch:i.V3.DisableHDROnGameLaunch_Off,hdrStatusIndicator:i.el.HDRIndicator_Off},Ce=Object.values(i.IN)},19559:(St,z,s)=>{"use strict";s.d(z,{F8:()=>ae,FO:()=>S,FW:()=>n,Fe:()=>q,IN:()=>X,MC:()=>k,Mr:()=>B,Ms:()=>C,Th:()=>P,V3:()=>x,Vk:()=>u,Wg:()=>r,Y4:()=>g,ap:()=>h,el:()=>A,fc:()=>m,jT:()=>T,jj:()=>Y,mp:()=>E,o6:()=>G,oi:()=>U,p0:()=>R,st:()=>Q,uJ:()=>M,uM:()=>l,vm:()=>v});var i=s(20924),n=i.Or.Nvapp.Nvcpldisplayplugin.SuperResolutionValue,h=i.Or.Nvapp.Nvcpldisplayplugin.SuperResolutionStatus,C=i.Or.Nvapp.Nvcpldisplayplugin.SuperResolutionGpuUtilization,S=i.Or.Nvapp.Nvcpldisplayplugin.HdrErrorCodeInfo,M=i.Or.Nvapp.Nvcpldisplayplugin.DisableVsrOnGameLaunch,P=i.Or.Nvapp.Nvcpldisplayplugin.SuperResolutionIndicator,x=i.Or.Nvapp.Nvcpldisplayplugin.DisableHdrOnGameLaunch,A=i.Or.Nvapp.Nvcpldisplayplugin.HdrIndicator;const g=i.Ts.Nvapp.Nvcpldisplayplugin.GetSuperResolutionInfo,m=i.Ts.Nvapp.Nvcpldisplayplugin.SetSuperResolutionValue,l=i.Ts.Nvapp.Nvcpldisplayplugin.GetSuperResolutionCurrentStatus,r=i.Ts.Nvapp.Nvcpldisplayplugin.SetSuperResolutionGpuUtilization,u=i.Ts.Nvapp.Nvcpldisplayplugin.GetSuperResolutionGpuUtilization,v=i.Ts.Nvapp.Nvcpldisplayplugin.GetHDRInfo,E=i.Ts.Nvapp.Nvcpldisplayplugin.SetHDRInfo,T=i.Ts.Nvapp.Nvcpldisplayplugin.GetHDRCurrentStatus,R=i.Ts.Nvapp.Nvcpldisplayplugin.CommitState,B=i.Ts.Nvapp.Nvcpldisplayplugin.CancelState,U=i.Ts.Nvapp.Nvcpldisplayplugin.RestoreDefaultVideoSettings,Y=i.Ts.Nvapp.Nvcpldisplayplugin.GetRTXVideoFlags,ae=i.Ts.Nvapp.Nvcpldisplayplugin.SetRTXVSRFlags,G=i.Ts.Nvapp.Nvcpldisplayplugin.SetRTXHDRFlags;var k=function(ce){return ce[ce.Full=0]="Full",ce[ce.Limited=1]="Limited",ce}(k||{}),X=function(ce){return ce.Auto="common.auto",ce.Manual="performance.perfLimiters.manual",ce}(X||{}),q=function(ce){return ce.quality="system.video.qualityLevels",ce.gpuUtilization="system.video.gpuUtilization.title",ce}(q||{}),Q=function(ce){return ce.VeryLow="system.video.veryLow",ce.Low="system.video.gpuUtilization.low",ce}(Q||{})},95364:(St,z,s)=>{"use strict";s.d(z,{r:()=>Fe});var i=s(85735),n=s(93181),h=s(16229),C=s(36466),S=s(31315),M=s(43848),P=s(35146),x=s(59859),A=s(26513),g=s(3496),m=s(53461),l=s(91384),r=s(8619),u=s(72147),v=s(4208),E=s(43615),T=s(75707),R=s(14714),B=s(65706),U=s(83915),Y=s(75597),ae=s(1242),G=s(75831),k=s(19559),X=s(76907),q=s(58527),Q=s(92602),ce=s(63332),te=s(59584),Ee=s(86088),it=s(78812);let Fe=(()=>{class Qe{get vsrInfo$(){return this.vsrInfo.asObservable()}get vsrStatus$(){return this.vsrStatus.asObservable().pipe((0,m.F)((Ge,nt)=>Ge.isActive===nt.isActive&&Ge.status===nt.status))}get hdrInfo$(){return this.hdrInfo.asObservable()}get hdrStatus$(){return this.hdrStatus.asObservable().pipe((0,m.F)())}constructor(Ge,nt,Je,ze,Ke,Ve,$e){this.bridgeService=nt,this.systemUtilService=Je,this.displaysService=ze,this.nvappBridgeService=Ke,this.telemetryService=Ve,this.hardwareService=$e,this.isInitialized=!1,this.isPolling=!1,this.vsrInfo=new i.m(1),this.vsrStatus=new i.m(1),this.hdrInfo=new i.m(1),this.hdrStatus=new i.m(1),this.logger=Ge.getLogger("nvapp/VideoService")}initialize(){this.isInitialized?(0,n.p)([this.getVsrState(),this.getHdrState()]).subscribe(C.l,C.l):((0,n.p)([this.getVsrState(),this.getHdrState()]).pipe((0,l.M)(([Ge,nt])=>{const Je={errorInfo:(0,X.pK)(nt.errorCode)};this.telemetryService.push(new ae.kR(Je))})).subscribe({next:Ge=>this.logger.info("VideoService initialized"),error:Ge=>this.logger.error("Error fetching video information",Ge)}),(0,h.h)(this.isOnVideoTab().pipe((0,r.p)(Ge=>Ge)),this.displaysService.displayChanged$).pipe((0,u.n)(Ge=>(0,n.p)([this.getVsrState(),this.getHdrState()]))).subscribe(C.l,C.l)),this.isInitialized=!0}startPollingStatus(Ge){this.isPolling||(this.isOnVideoTab().pipe((0,u.n)(nt=>(this.logger.info((nt?"Is":"Is not")+" on video tab"),nt?(0,S.zV)([this.vsrInfo$,this.hdrInfo$]):(0,M.of)([null,null]))),(0,u.n)(([nt,Je])=>this.pollStatusApiIfValid(nt,Je)),(0,l.M)(([nt,Je])=>{nt&&this.vsrStatus.next({status:nt.superResStatus,isActive:nt.superResStatus!==k.ap.SuperResStatus_Off}),Je&&this.hdrStatus.next(Je.hdrStatus)}),(0,v.Q)(Ge),(0,E.j)(()=>{this.isPolling=!1,this.logger.info("Video Component destroyed, likely exited system page")})).subscribe(C.l,nt=>this.logger.error("Error polling VSR/HDR status:",nt)),this.isPolling=!0)}setVsrState(Ge){const nt=this.setVsrInfo(Ge);this.isGPUUtilizationSupported().pipe((0,u.n)(Je=>{if(Je){const ze=this.setVsrGpuUtilization(Ge),Ke=this.setVsrFlags(Ge);return(0,P.yU)(nt,ze,Ke)}return(0,P.yU)(nt,(0,M.of)(null),(0,M.of)(null))}),(0,T.ZZ)(Je=>this.getVsrState()),(0,R.W)(Je=>(this.logger.error("Error setting VSR state:",Je),(0,M.of)(null)))).subscribe(C.l,C.l)}setHdrState(Ge){const nt=this.setHdrInfo(Ge);this.isGPUUtilizationSupported().pipe((0,u.n)(Je=>{if(Je){const ze=this.setHdrFlags(Ge);return(0,P.yU)(nt,ze)}return(0,P.yU)(nt,(0,M.of)(null),(0,M.of)(null))}),(0,T.ZZ)(Je=>this.getHdrState()),(0,R.W)(Je=>(this.logger.error("Error setting HDR state:",Je),(0,M.of)(null)))).subscribe(C.l,C.l)}restoreDefaults(){return this.nvappBridgeService.executeWithPluginStatusTelemetry(k.oi).pipe((0,T.ZZ)(Ge=>(this.logger.info("Defaults restored, refreshing Video data"),(0,n.p)([this.getVsrState(),this.getHdrState()]))))}applyStateChange(Ge=(0,M.of)(null)){this.bridgeService.executeCommand(k.p0).pipe((0,T.ZZ)(nt=>Ge)).subscribe(nt=>this.logger.info("State change applied successfully"),nt=>this.logger.error("Failure applying state change:",nt))}cancelStateChange(Ge=(0,M.of)(null)){this.bridgeService.executeCommand(k.Mr).pipe((0,T.ZZ)(nt=>Ge)).subscribe(nt=>this.logger.info("State change cancelled successfully"),nt=>this.logger.error("Failure cancelling state change:",nt))}getVsrState(){const Ge=this.getVsrInfo();return this.isGPUUtilizationSupported().pipe((0,B.s)(1),(0,u.n)(nt=>{if(nt){const Je=this.getVsrGpuUtilization(),ze=this.getVideoFlags();return(0,P.yU)(Ge,Je,ze)}return(0,P.yU)(Ge,(0,M.of)(null),(0,M.of)(null))}),(0,U.T)(([nt,Je,ze])=>({isSupported:nt?.SuperResolutionInfoValue.isSupported,isEnabled:nt?.SuperResolutionInfoValue.superResolutionValue!==k.FW.SuperResValue_Off,quality:nt?.SuperResolutionInfoValue.superResolutionValue,isActive:nt?.SuperResolutionInfoValue.superResolutionStatus!==k.ap.SuperResStatus_Off,status:nt?.SuperResolutionInfoValue.superResolutionStatus,gpuUtil:Je?.superResolutionGpuUtilization,disableVsrOnGameLaunch:ze?.disableVSROnGameLaunch,vsrStatusIndicator:ze?.superResolutionIndicator})),(0,l.M)(nt=>{this.logger.info("VSR state fetched:",nt),this.vsrInfo.next(nt),this.vsrStatus.next({status:nt.status,isActive:nt.isActive})}),(0,R.W)(nt=>(this.logger.error("Get VSR info failed:",nt),this.vsrInfo.next(G.lh),this.vsrStatus.next(G.lh),(0,M.of)(null))))}getHdrState(){const Ge=this.getHdrInfo();return this.isGPUUtilizationSupported().pipe((0,B.s)(1),(0,u.n)(nt=>{if(nt){const Je=this.getVideoFlags();return(0,P.yU)(Ge,Je)}return(0,P.yU)(Ge,(0,M.of)(null))}),(0,U.T)(([nt,Je])=>({isSupported:nt?.HDRInfoValue.isSupported,isEnabled:nt?.HDRInfoValue.hdrValue,errorCode:nt?.HDRInfoValue.hdrErrorCodeInfo,isActive:nt?.HDRInfoValue.hdrStatus,peakBrightness:nt?.HDRInfoValue.hdrPeakBrightness,minPeakBrightness:nt?.HDRInfoValue.hdrPeakBrightnessMin,maxPeakBrightness:nt?.HDRInfoValue.hdrPeakBrightnessMax,middleGray:nt?.HDRInfoValue.hdrMiddleGray,contrast:nt?.HDRInfoValue.hdrContrast-G._1,saturation:nt?.HDRInfoValue.hdrSaturation-G._1,disableHdrOnGameLaunch:Je?.disableHDROnGameLaunch,hdrStatusIndicator:Je?.hdrIndicator})),(0,l.M)(nt=>{this.logger.info("HDR state fetched:",nt),this.hdrInfo.next(nt),this.hdrStatus.next(nt.isActive)}),(0,R.W)(nt=>(this.logger.error("Get HDR info failed:",nt),this.hdrInfo.next(G.i8),this.hdrStatus.next(!1),(0,M.of)(null))))}isGPUUtilizationSupported(){return this.hardwareService.getGenericInfo(!1).pipe((0,U.T)(Ge=>Ge?.DriverVersion>G.cp))}setVsrInfo(Ge){return this.nvappBridgeService.executeWithPluginStatusTelemetry(k.fc,{superResolutionValue:Ge?.quality}).pipe((0,R.W)(Je=>(this.logger.error("SetVsrValue failed:",Je),(0,M.of)(null))))}setVsrGpuUtilization(Ge){return this.nvappBridgeService.executeWithPluginStatusTelemetry(k.Wg,{superResolutionGpuUtilization:Ge?.gpuUtil}).pipe((0,R.W)(Je=>(this.logger.error("SetGpuUtilValue failed:",Je),(0,M.of)(null))))}setVsrFlags(Ge){return this.nvappBridgeService.executeWithPluginStatusTelemetry(k.F8,{disableVSROnGameLaunch:Ge?.disableVsrOnGameLaunch,superResolutionIndicator:Ge?.vsrStatusIndicator}).pipe((0,R.W)(Je=>(this.logger.error("SetVsrFlags failed:",Je),(0,M.of)(null))))}getVsrInfo(){return this.nvappBridgeService.executeWithPluginStatusTelemetry(k.Y4,{},{},!0,!1).pipe((0,R.W)(Ge=>(this.logger.error("GetVsrInfo failed:",Ge),(0,x.$)(Ge))))}getVsrGpuUtilization(){return this.nvappBridgeService.executeWithPluginStatusTelemetry(k.Vk,{},{},!0,!1).pipe((0,R.W)(Ge=>(this.logger.error("GetGpuUtilizationInfo failed:",Ge),(0,M.of)(null))))}getVideoFlags(){return this.nvappBridgeService.executeWithPluginStatusTelemetry(k.jj,{},{},!0,!1).pipe((0,R.W)(Ge=>(this.logger.error("GetVideoFlags failed:",Ge),(0,M.of)(null))))}isOnVideoTab(){return this.systemUtilService.isTabActive(Y.c.Video)}pollStatusApiIfValid(Ge,nt){if(this.logger.info("pollStatusApiIfValid",Ge,nt),!(Ge?.isSupported&&Ge?.isEnabled||nt?.isSupported&&nt?.isEnabled))return(0,M.of)([null,null]);const Je=new A.t(!0);return Je.asObservable().pipe((0,T.ZZ)(ze=>(0,g.O)(G.Et)),(0,T.ZZ)(ze=>{const Ke=Ge?.isSupported&&Ge?.isEnabled?this.getVsrStatus():(0,M.of)(null),Ve=nt?.isSupported&&nt?.isEnabled?this.getHdrStatus():(0,M.of)(null);return(0,n.p)([Ke,Ve]).pipe((0,E.j)(()=>Je.next(!0)))}))}getVsrStatus(){return this.nvappBridgeService.executeWithPluginStatusTelemetry(k.uM,{},{},!1,!0,"GetVsrStatus status info API failed")}getHdrStatus(){return this.nvappBridgeService.executeWithPluginStatusTelemetry(k.jT,{},{},!1,!0,"GetHdrStatus status info API failed")}setHdrInfo(Ge){return this.nvappBridgeService.executeWithPluginStatusTelemetry(k.mp,{HDRInfoValue:{isSupported:!0,hdrValue:Ge?.isEnabled,hdrPeakBrightness:Ge?.peakBrightness,hdrPeakBrightnessMax:Ge?.maxPeakBrightness,hdrPeakBrightnessMin:Ge?.minPeakBrightness,hdrMiddleGray:Ge?.middleGray,hdrContrast:Ge?.contrast+G._1,hdrSaturation:Ge?.saturation+G._1,hdrErrorCodeInfo:k.FO.SUCCESS,hdrStatus:!1}}).pipe((0,R.W)(Je=>(this.logger.error("SetHdrInfo failed:",Je),(0,M.of)(null))))}setHdrFlags(Ge){return this.nvappBridgeService.executeWithPluginStatusTelemetry(k.o6,{disableHDROnGameLaunch:Ge?.disableHdrOnGameLaunch,hdrIndicator:Ge?.hdrStatusIndicator}).pipe((0,R.W)(Je=>(this.logger.error("SetHdrFlags failed:",Je),(0,M.of)(null))))}getHdrInfo(){return this.nvappBridgeService.executeWithPluginStatusTelemetry(k.vm,{},{},!0,!1).pipe((0,R.W)(Ge=>(this.logger.error("GetHdrInfo failed:",Ge),(0,x.$)(Ge))))}getHierarchy(){return this.telemetryService.getScreen()+"/"+ae.d3.System_Video}getVideoPageSearchInfoUtil(){return(0,S.zV)([this.vsrInfo$.pipe((0,U.T)(Ge=>Ge.isSupported)),this.hdrInfo$.pipe((0,U.T)(Ge=>Ge.isSupported))]).pipe((0,m.F)(([Ge,nt],[Je,ze])=>nt===ze&&Ge===Je),(0,r.p)(([Ge,nt])=>Ge||nt),(0,U.T)(([Ge,nt])=>this.getVideoPageDataHeaders(Ge,nt)),(0,R.W)(Ge=>(this.logger.error("Error fetching Video page support data:",Ge),(0,M.of)([]))))}getVideoPageDataHeaders(Ge,nt){const Je=[];return Ge&&Je.push("system.video.videoSuperResolution"),nt&&Je.push("system.video.highDynamicRange"),Je}static{this.\u0275fac=function(nt){return new(nt||Qe)(q.KVO(Q.J6),q.KVO(Q.NZ),q.KVO(ce.j),q.KVO(te.R),q.KVO(Ee.S),q.KVO(it.H0),q.KVO(Q.SQ))}}static{this.\u0275prov=q.jDH({token:Qe,factory:Qe.\u0275fac,providedIn:"root"})}}return Qe})()},76907:(St,z,s)=>{"use strict";s.d(z,{NY:()=>g,WX:()=>S,ah:()=>A,lo:()=>M,pK:()=>x,qP:()=>C,xM:()=>m});var i=s(19559),n=s(75831),h=s(1242);function C(l,r,u,v,E){const T=[];if(r.isSupported){const R=[l.instant(r.isEnabled?n.PZ:n.X0),P(l,r,v),r.isEnabled?l.instant(v.isActive?n.iH:n.Xl):null].filter(B=>B).join(", ");T.push(l.instant("system.video.vsrCollapsedSummary",{summary:R}))}if(u.isSupported){const R=[l.instant(u.errorCode!==i.FO.SUCCESS?n.i4:u.isEnabled?n.PZ:n.X0),u.errorCode===i.FO.SUCCESS&&u.isEnabled?l.instant(E?n.iH:n.Xl):null].filter(B=>B).join(", ");T.push(l.instant("system.video.hdrCollapsedSummary",{summary:R}))}return T.join(" | ")}function S(l,r,u){return r.isSupported?[l.instant(r.isEnabled?n.PZ:n.X0),P(l,r,u),r.isEnabled?l.instant(n.yY,{status:l.instant(u.isActive?n.iH:n.Xl)}):null].filter(v=>v).join(", "):""}function M(l,r,u){return r.isSupported?[l.instant(r.errorCode!==i.FO.SUCCESS?n.i4:r.isEnabled?n.PZ:n.X0),r.errorCode===i.FO.SUCCESS&&r.isEnabled?l.instant(n.yY,{status:l.instant(u?n.iH:n.Xl)}):null].filter(v=>v).join(", "):""}function P(l,r,u){return r.isEnabled?l.instant(u.isActive&&r.quality===i.FW.SuperResValue_Auto?n.I:n.py,{quality:l.instant(n.lK.get(r.quality)),value:l.instant(n.OC.get(u.status))}):null}function x(l){switch(l){case i.FO.SUCCESS:return h.Mb.NA;case i.FO.NO_HDR_DISPLAY_CONNECTED:return h.Mb.NoHdrDisplayConnected;case i.FO.ENABLE_HDR_FROM_WINDOWS:return h.Mb.EnableHdrFromWindows;default:return h.Mb.NA}}function A(l){switch(l){case i.FW.SuperResValue_Auto:return h.V_.SuperResValueAuto;case i.FW.SuperResValue_1:return h.V_.SuperResValue1;case i.FW.SuperResValue_2:return h.V_.SuperResValue2;case i.FW.SuperResValue_3:return h.V_.SuperResValue3;case i.FW.SuperResValue_4:return h.V_.SuperResValue4;default:return h.V_.SuperResValueAuto}}function g(l){switch(l){case i.Ms.SuperResGpuUtil_Low:return h.C3.SuperResGpuUtil_Low;case i.Ms.SuperResGpuUtil_Medium:return h.C3.SuperResGpuUtil_Medium;case i.Ms.SuperResGpuUtil_High:return h.C3.SuperResGpuUtil_High;default:return h.C3.SuperResGpuUtil_Low}}function m(l){return`${l.instant(n.X0)} (${l.instant(n.U)})`}},53671:(St,z,s)=>{"use strict";var i=s(74150),n=s(58527),h=s(94485),C=s(40262);function M(De){return new n.wOt(3e3,!1)}function Pe(De){switch(De.length){case 0:return new C.sf;case 1:return De[0];default:return new C.ui(De)}}function J(De,Me,w=new Map,ie=new Map){const We=[],xt=[];let hn=-1,On=null;if(Me.forEach(Yn=>{const ti=Yn.get("offset"),Ri=ti==hn,ji=Ri&&On||new Map;Yn.forEach((Tr,ss)=>{let Xr=ss,ls=Tr;if("offset"!==ss)switch(Xr=De.normalizePropertyName(Xr,We),ls){case C.FX:ls=w.get(ss);break;case C.kp:ls=ie.get(ss);break;default:ls=De.normalizeStyleValue(ss,Xr,ls,We)}ji.set(Xr,ls)}),Ri||xt.push(ji),On=ji,hn=ti}),We.length)throw function Ee(De){return new n.wOt(3502,!1)}();return xt}function vt(De,Me,w,ie){switch(Me){case"start":De.onStart(()=>ie(w&&ve(w,"start",De)));break;case"done":De.onDone(()=>ie(w&&ve(w,"done",De)));break;case"destroy":De.onDestroy(()=>ie(w&&ve(w,"destroy",De)))}}function ve(De,Me,w){const xt=ue(De.element,De.triggerName,De.fromState,De.toState,Me||De.phaseName,w.totalTime??De.totalTime,!!w.disabled),hn=De._data;return null!=hn&&(xt._data=hn),xt}function ue(De,Me,w,ie,We="",xt=0,hn){return{element:De,triggerName:Me,fromState:w,toState:ie,phaseName:We,totalTime:xt,disabled:!!hn}}function et(De,Me,w){let ie=De.get(Me);return ie||De.set(Me,ie=w),ie}function se(De){const Me=De.indexOf(":");return[De.substring(1,Me),De.slice(Me+1)]}const Ce=typeof document>"u"?null:document.documentElement;function be(De){const Me=De.parentNode||De.host||null;return Me===Ce?null:Me}let me=null,le=!1;function Ne(De,Me){for(;Me;){if(Me===De)return!0;Me=be(Me)}return!1}function ye(De,Me,w){if(w)return Array.from(De.querySelectorAll(Me));const ie=De.querySelector(Me);return ie?[ie]:[]}let sn=(()=>{class De{validateStyleProperty(w){return function Xe(De){me||(me=function fe(){return typeof document<"u"?document.body:null}()||{},le=!!me.style&&"WebkitAppearance"in me.style);let Me=!0;return me.style&&!function rt(De){return"ebkit"==De.substring(1,6)}(De)&&(Me=De in me.style,!Me&&le&&(Me="Webkit"+De.charAt(0).toUpperCase()+De.slice(1)in me.style)),Me}(w)}matchesElement(w,ie){return!1}containsElement(w,ie){return Ne(w,ie)}getParentElement(w){return be(w)}query(w,ie,We){return ye(w,ie,We)}computeStyle(w,ie,We){return We||""}animate(w,ie,We,xt,hn,On=[],Yn){return new C.sf(We,xt)}static{this.\u0275fac=function(ie){return new(ie||De)}}static{this.\u0275prov=n.jDH({token:De,factory:De.\u0275fac})}}return De})();class dn{static{this.NOOP=new sn}}class yn{}const Vt=1e3,Zt="ng-enter",nn="ng-leave",Xt="ng-trigger",lt=".ng-trigger",Ue="ng-animating",wt=".ng-animating";function gt(De){if("number"==typeof De)return De;const Me=De.match(/^(-?[\.\d]+)(m?s)/);return!Me||Me.length<2?0:Ht(parseFloat(Me[1]),Me[2])}function Ht(De,Me){return"s"===Me?De*Vt:De}function bn(De,Me,w){return De.hasOwnProperty("duration")?De:function Ut(De,Me,w){let We,xt=0,hn="";if("string"==typeof De){const On=De.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===On)return Me.push(M()),{duration:0,delay:0,easing:""};We=Ht(parseFloat(On[1]),On[2]);const Yn=On[3];null!=Yn&&(xt=Ht(parseFloat(Yn),On[4]));const ti=On[5];ti&&(hn=ti)}else We=De;if(!w){let On=!1,Yn=Me.length;We<0&&(Me.push(function P(){return new n.wOt(3100,!1)}()),On=!0),xt<0&&(Me.push(function x(){return new n.wOt(3101,!1)}()),On=!0),On&&Me.splice(Yn,0,M())}return{duration:We,delay:xt,easing:hn}}(De,Me,w)}function V(De,Me,w){Me.forEach((ie,We)=>{const xt=kn(We);w&&!w.has(We)&&w.set(We,De.style[xt]),De.style[xt]=ie})}function de(De,Me){Me.forEach((w,ie)=>{const We=kn(ie);De.style[We]=""})}function ge(De){return Array.isArray(De)?1==De.length?De[0]:(0,C.K2)(De):De}const Wt=new RegExp("{{\\s*(.+?)\\s*}}","g");function Kt(De){let Me=[];if("string"==typeof De){let w;for(;w=Wt.exec(De);)Me.push(w[1]);Wt.lastIndex=0}return Me}function cn(De,Me,w){const ie=`${De}`,We=ie.replace(Wt,(xt,hn)=>{let On=Me[hn];return null==On&&(w.push(function g(De){return new n.wOt(3003,!1)}()),On=""),On.toString()});return We==ie?De:We}const En=/-+([a-z0-9])/g;function kn(De){return De.replace(En,(...Me)=>Me[1].toUpperCase())}function Zi(De,Me,w){switch(Me.type){case C.If.Trigger:return De.visitTrigger(Me,w);case C.If.State:return De.visitState(Me,w);case C.If.Transition:return De.visitTransition(Me,w);case C.If.Sequence:return De.visitSequence(Me,w);case C.If.Group:return De.visitGroup(Me,w);case C.If.Animate:return De.visitAnimate(Me,w);case C.If.Keyframes:return De.visitKeyframes(Me,w);case C.If.Style:return De.visitStyle(Me,w);case C.If.Reference:return De.visitReference(Me,w);case C.If.AnimateChild:return De.visitAnimateChild(Me,w);case C.If.AnimateRef:return De.visitAnimateRef(Me,w);case C.If.Query:return De.visitQuery(Me,w);case C.If.Stagger:return De.visitStagger(Me,w);default:throw function m(De){return new n.wOt(3004,!1)}()}}function Rn(De,Me){return window.getComputedStyle(De)[Me]}const Gn=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class Kn extends yn{normalizePropertyName(Me,w){return kn(Me)}normalizeStyleValue(Me,w,ie,We){let xt="";const hn=ie.toString().trim();if(Gn.has(w)&&0!==ie&&"0"!==ie)if("number"==typeof ie)xt="px";else{const On=ie.match(/^[+-]?[\d\.]+([a-z]*)$/);On&&0==On[1].length&&We.push(function l(De,Me){return new n.wOt(3005,!1)}())}return hn+xt}}const lo="*";const ai=new Set(["true","1"]),Li=new Set(["false","0"]);function Lr(De,Me){const w=ai.has(De)||Li.has(De),ie=ai.has(Me)||Li.has(Me);return(We,xt)=>{let hn=De==lo||De==We,On=Me==lo||Me==xt;return!hn&&w&&"boolean"==typeof We&&(hn=We?ai.has(De):Li.has(De)),!On&&ie&&"boolean"==typeof xt&&(On=xt?ai.has(Me):Li.has(Me)),hn&&On}}const Qn=new RegExp("s*:selfs*,?","g");function Zn(De,Me,w,ie){return new yi(De).build(Me,w,ie)}class yi{constructor(Me){this._driver=Me}build(Me,w,ie){const We=new Br(w);return this._resetContextStyleTimingState(We),Zi(this,ge(Me),We)}_resetContextStyleTimingState(Me){Me.currentQuerySelector="",Me.collectedStyles=new Map,Me.collectedStyles.set("",new Map),Me.currentTime=0}visitTrigger(Me,w){let ie=w.queryCount=0,We=w.depCount=0;const xt=[],hn=[];return"@"==Me.name.charAt(0)&&w.errors.push(function r(){return new n.wOt(3006,!1)}()),Me.definitions.forEach(On=>{if(this._resetContextStyleTimingState(w),On.type==C.If.State){const Yn=On,ti=Yn.name;ti.toString().split(/\s*,\s*/).forEach(Ri=>{Yn.name=Ri,xt.push(this.visitState(Yn,w))}),Yn.name=ti}else if(On.type==C.If.Transition){const Yn=this.visitTransition(On,w);ie+=Yn.queryCount,We+=Yn.depCount,hn.push(Yn)}else w.errors.push(function u(){return new n.wOt(3007,!1)}())}),{type:C.If.Trigger,name:Me.name,states:xt,transitions:hn,queryCount:ie,depCount:We,options:null}}visitState(Me,w){const ie=this.visitStyle(Me.styles,w),We=Me.options&&Me.options.params||null;if(ie.containsDynamicStyles){const xt=new Set,hn=We||{};ie.styles.forEach(On=>{On instanceof Map&&On.forEach(Yn=>{Kt(Yn).forEach(ti=>{hn.hasOwnProperty(ti)||xt.add(ti)})})}),xt.size&&w.errors.push(function v(De,Me){return new n.wOt(3008,!1)}(0,xt.values()))}return{type:C.If.State,name:Me.name,style:ie,options:We?{params:We}:null}}visitTransition(Me,w){w.queryCount=0,w.depCount=0;const ie=Zi(this,ge(Me.animation),w),We=function js(De,Me){const w=[];return"string"==typeof De?De.split(/\s*,\s*/).forEach(ie=>function Vn(De,Me,w){if(":"==De[0]){const Yn=function Ei(De,Me){switch(De){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(w,ie)=>parseFloat(ie)>parseFloat(w);case":decrement":return(w,ie)=>parseFloat(ie)<parseFloat(w);default:return Me.push(function q(De){return new n.wOt(3016,!1)}()),"* => *"}}(De,w);if("function"==typeof Yn)return void Me.push(Yn);De=Yn}const ie=De.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==ie||ie.length<4)return w.push(function X(De){return new n.wOt(3015,!1)}()),Me;const We=ie[1],xt=ie[2],hn=ie[3];Me.push(Lr(We,hn)),"<"==xt[0]&&(We!=lo||hn!=lo)&&Me.push(Lr(hn,We))}(ie,w,Me)):w.push(De),w}(Me.expr,w.errors);return{type:C.If.Transition,matchers:We,animation:ie,queryCount:w.queryCount,depCount:w.depCount,options:bs(Me.options)}}visitSequence(Me,w){return{type:C.If.Sequence,steps:Me.steps.map(ie=>Zi(this,ie,w)),options:bs(Me.options)}}visitGroup(Me,w){const ie=w.currentTime;let We=0;const xt=Me.steps.map(hn=>{w.currentTime=ie;const On=Zi(this,hn,w);return We=Math.max(We,w.currentTime),On});return w.currentTime=We,{type:C.If.Group,steps:xt,options:bs(Me.options)}}visitAnimate(Me,w){const ie=function ds(De,Me){if(De.hasOwnProperty("duration"))return De;if("number"==typeof De)return An(bn(De,Me).duration,0,"");const w=De;if(w.split(/\s+/).some(xt=>"{"==xt.charAt(0)&&"{"==xt.charAt(1))){const xt=An(0,0,"");return xt.dynamic=!0,xt.strValue=w,xt}const We=bn(w,Me);return An(We.duration,We.delay,We.easing)}(Me.timings,w.errors);w.currentAnimateTimings=ie;let We,xt=Me.styles?Me.styles:(0,C.iF)({});if(xt.type==C.If.Keyframes)We=this.visitKeyframes(xt,w);else{let hn=Me.styles,On=!1;if(!hn){On=!0;const ti={};ie.easing&&(ti.easing=ie.easing),hn=(0,C.iF)(ti)}w.currentTime+=ie.duration+ie.delay;const Yn=this.visitStyle(hn,w);Yn.isEmptyStep=On,We=Yn}return w.currentAnimateTimings=null,{type:C.If.Animate,timings:ie,style:We,options:null}}visitStyle(Me,w){const ie=this._makeStyleAst(Me,w);return this._validateStyleAst(ie,w),ie}_makeStyleAst(Me,w){const ie=[],We=Array.isArray(Me.styles)?Me.styles:[Me.styles];for(let On of We)"string"==typeof On?On===C.kp?ie.push(On):w.errors.push(new n.wOt(3002,!1)):ie.push(new Map(Object.entries(On)));let xt=!1,hn=null;return ie.forEach(On=>{if(On instanceof Map&&(On.has("easing")&&(hn=On.get("easing"),On.delete("easing")),!xt))for(let Yn of On.values())if(Yn.toString().indexOf("{{")>=0){xt=!0;break}}),{type:C.If.Style,styles:ie,easing:hn,offset:Me.offset,containsDynamicStyles:xt,options:null}}_validateStyleAst(Me,w){const ie=w.currentAnimateTimings;let We=w.currentTime,xt=w.currentTime;ie&&xt>0&&(xt-=ie.duration+ie.delay),Me.styles.forEach(hn=>{"string"!=typeof hn&&hn.forEach((On,Yn)=>{const ti=w.collectedStyles.get(w.currentQuerySelector),Ri=ti.get(Yn);let ji=!0;Ri&&(xt!=We&&xt>=Ri.startTime&&We<=Ri.endTime&&(w.errors.push(function R(De,Me,w,ie,We){return new n.wOt(3010,!1)}()),ji=!1),xt=Ri.startTime),ji&&ti.set(Yn,{startTime:xt,endTime:We}),w.options&&function Ft(De,Me,w){const ie=Me.params||{},We=Kt(De);We.length&&We.forEach(xt=>{ie.hasOwnProperty(xt)||w.push(function A(De){return new n.wOt(3001,!1)}())})}(On,w.options,w.errors)})})}visitKeyframes(Me,w){const ie={type:C.If.Keyframes,styles:[],options:null};if(!w.currentAnimateTimings)return w.errors.push(function B(){return new n.wOt(3011,!1)}()),ie;let xt=0;const hn=[];let On=!1,Yn=!1,ti=0;const Ri=Me.steps.map(wa=>{const tl=this._makeStyleAst(wa,w);let xl=null!=tl.offset?tl.offset:function Sr(De){if("string"==typeof De)return null;let Me=null;if(Array.isArray(De))De.forEach(w=>{if(w instanceof Map&&w.has("offset")){const ie=w;Me=parseFloat(ie.get("offset")),ie.delete("offset")}});else if(De instanceof Map&&De.has("offset")){const w=De;Me=parseFloat(w.get("offset")),w.delete("offset")}return Me}(tl.styles),Ol=0;return null!=xl&&(xt++,Ol=tl.offset=xl),Yn=Yn||Ol<0||Ol>1,On=On||Ol<ti,ti=Ol,hn.push(Ol),tl});Yn&&w.errors.push(function U(){return new n.wOt(3012,!1)}()),On&&w.errors.push(function Y(){return new n.wOt(3200,!1)}());const ji=Me.steps.length;let Tr=0;xt>0&&xt<ji?w.errors.push(function ae(){return new n.wOt(3202,!1)}()):0==xt&&(Tr=1/(ji-1));const ss=ji-1,Xr=w.currentTime,ls=w.currentAnimateTimings,Yo=ls.duration;return Ri.forEach((wa,tl)=>{const xl=Tr>0?tl==ss?1:Tr*tl:hn[tl],Ol=xl*Yo;w.currentTime=Xr+ls.delay+Ol,ls.duration=Ol,this._validateStyleAst(wa,w),wa.offset=xl,ie.styles.push(wa)}),ie}visitReference(Me,w){return{type:C.If.Reference,animation:Zi(this,ge(Me.animation),w),options:bs(Me.options)}}visitAnimateChild(Me,w){return w.depCount++,{type:C.If.AnimateChild,options:bs(Me.options)}}visitAnimateRef(Me,w){return{type:C.If.AnimateRef,animation:this.visitReference(Me.animation,w),options:bs(Me.options)}}visitQuery(Me,w){const ie=w.currentQuerySelector,We=Me.options||{};w.queryCount++,w.currentQuery=Me;const[xt,hn]=function tr(De){const Me=!!De.split(/\s*,\s*/).find(w=>":self"==w);return Me&&(De=De.replace(Qn,"")),De=De.replace(/@\*/g,lt).replace(/@\w+/g,w=>lt+"-"+w.slice(1)).replace(/:animating/g,wt),[De,Me]}(Me.selector);w.currentQuerySelector=ie.length?ie+" "+xt:xt,et(w.collectedStyles,w.currentQuerySelector,new Map);const On=Zi(this,ge(Me.animation),w);return w.currentQuery=null,w.currentQuerySelector=ie,{type:C.If.Query,selector:xt,limit:We.limit||0,optional:!!We.optional,includeSelf:hn,animation:On,originalSelector:Me.selector,options:bs(Me.options)}}visitStagger(Me,w){w.currentQuery||w.errors.push(function G(){return new n.wOt(3013,!1)}());const ie="full"===Me.timings?{duration:0,delay:0,easing:"full"}:bn(Me.timings,w.errors,!0);return{type:C.If.Stagger,animation:Zi(this,ge(Me.animation),w),timings:ie,options:null}}}class Br{constructor(Me){this.errors=Me,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function bs(De){return De?(De={...De}).params&&(De.params=function qi(De){return De?{...De}:null}(De.params)):De={},De}function An(De,Me,w){return{duration:De,delay:Me,easing:w}}function zn(De,Me,w,ie,We,xt,hn=null,On=!1){return{type:1,element:De,keyframes:Me,preStyleProps:w,postStyleProps:ie,duration:We,delay:xt,totalTime:We+xt,easing:hn,subTimeline:On}}class Jn{constructor(){this._map=new Map}get(Me){return this._map.get(Me)||[]}append(Me,w){let ie=this._map.get(Me);ie||this._map.set(Me,ie=[]),ie.push(...w)}has(Me){return this._map.has(Me)}clear(){this._map.clear()}}const Wi=new RegExp(":enter","g"),qr=new RegExp(":leave","g");function ms(De,Me,w,ie,We,xt=new Map,hn=new Map,On,Yn,ti=[]){return(new us).buildKeyframes(De,Me,w,ie,We,xt,hn,On,Yn,ti)}class us{buildKeyframes(Me,w,ie,We,xt,hn,On,Yn,ti,Ri=[]){ti=ti||new Jn;const ji=new ks(Me,w,ti,We,xt,Ri,[]);ji.options=Yn;const Tr=Yn.delay?gt(Yn.delay):0;ji.currentTimeline.delayNextStep(Tr),ji.currentTimeline.setStyles([hn],null,ji.errors,Yn),Zi(this,ie,ji);const ss=ji.timelines.filter(Xr=>Xr.containsAnimation());if(ss.length&&On.size){let Xr;for(let ls=ss.length-1;ls>=0;ls--){const Yo=ss[ls];if(Yo.element===w){Xr=Yo;break}}Xr&&!Xr.allowOnlyTimelineStyles()&&Xr.setStyles([On],null,ji.errors,Yn)}return ss.length?ss.map(Xr=>Xr.buildKeyframes()):[zn(w,[],[],[],0,Tr,"",!1)]}visitTrigger(Me,w){}visitState(Me,w){}visitTransition(Me,w){}visitAnimateChild(Me,w){const ie=w.subInstructions.get(w.element);if(ie){const We=w.createSubContext(Me.options),xt=w.currentTimeline.currentTime,hn=this._visitSubInstructions(ie,We,We.options);xt!=hn&&w.transformIntoNewTimeline(hn)}w.previousNode=Me}visitAnimateRef(Me,w){const ie=w.createSubContext(Me.options);ie.transformIntoNewTimeline(),this._applyAnimationRefDelays([Me.options,Me.animation.options],w,ie),this.visitReference(Me.animation,ie),w.transformIntoNewTimeline(ie.currentTimeline.currentTime),w.previousNode=Me}_applyAnimationRefDelays(Me,w,ie){for(const We of Me){const xt=We?.delay;if(xt){const hn="number"==typeof xt?xt:gt(cn(xt,We?.params??{},w.errors));ie.delayNextStep(hn)}}}_visitSubInstructions(Me,w,ie){let xt=w.currentTimeline.currentTime;const hn=null!=ie.duration?gt(ie.duration):null,On=null!=ie.delay?gt(ie.delay):null;return 0!==hn&&Me.forEach(Yn=>{const ti=w.appendInstructionToTimeline(Yn,hn,On);xt=Math.max(xt,ti.duration+ti.delay)}),xt}visitReference(Me,w){w.updateOptions(Me.options,!0),Zi(this,Me.animation,w),w.previousNode=Me}visitSequence(Me,w){const ie=w.subContextCount;let We=w;const xt=Me.options;if(xt&&(xt.params||xt.delay)&&(We=w.createSubContext(xt),We.transformIntoNewTimeline(),null!=xt.delay)){We.previousNode.type==C.If.Style&&(We.currentTimeline.snapshotCurrentStyles(),We.previousNode=Qs);const hn=gt(xt.delay);We.delayNextStep(hn)}Me.steps.length&&(Me.steps.forEach(hn=>Zi(this,hn,We)),We.currentTimeline.applyStylesToKeyframe(),We.subContextCount>ie&&We.transformIntoNewTimeline()),w.previousNode=Me}visitGroup(Me,w){const ie=[];let We=w.currentTimeline.currentTime;const xt=Me.options&&Me.options.delay?gt(Me.options.delay):0;Me.steps.forEach(hn=>{const On=w.createSubContext(Me.options);xt&&On.delayNextStep(xt),Zi(this,hn,On),We=Math.max(We,On.currentTimeline.currentTime),ie.push(On.currentTimeline)}),ie.forEach(hn=>w.currentTimeline.mergeTimelineCollectedStyles(hn)),w.transformIntoNewTimeline(We),w.previousNode=Me}_visitTiming(Me,w){if(Me.dynamic){const ie=Me.strValue;return bn(w.params?cn(ie,w.params,w.errors):ie,w.errors)}return{duration:Me.duration,delay:Me.delay,easing:Me.easing}}visitAnimate(Me,w){const ie=w.currentAnimateTimings=this._visitTiming(Me.timings,w),We=w.currentTimeline;ie.delay&&(w.incrementTime(ie.delay),We.snapshotCurrentStyles());const xt=Me.style;xt.type==C.If.Keyframes?this.visitKeyframes(xt,w):(w.incrementTime(ie.duration),this.visitStyle(xt,w),We.applyStylesToKeyframe()),w.currentAnimateTimings=null,w.previousNode=Me}visitStyle(Me,w){const ie=w.currentTimeline,We=w.currentAnimateTimings;!We&&ie.hasCurrentStyleProperties()&&ie.forwardFrame();const xt=We&&We.easing||Me.easing;Me.isEmptyStep?ie.applyEmptyStep(xt):ie.setStyles(Me.styles,xt,w.errors,w.options),w.previousNode=Me}visitKeyframes(Me,w){const ie=w.currentAnimateTimings,We=w.currentTimeline.duration,xt=ie.duration,On=w.createSubContext().currentTimeline;On.easing=ie.easing,Me.styles.forEach(Yn=>{On.forwardTime((Yn.offset||0)*xt),On.setStyles(Yn.styles,Yn.easing,w.errors,w.options),On.applyStylesToKeyframe()}),w.currentTimeline.mergeTimelineCollectedStyles(On),w.transformIntoNewTimeline(We+xt),w.previousNode=Me}visitQuery(Me,w){const ie=w.currentTimeline.currentTime,We=Me.options||{},xt=We.delay?gt(We.delay):0;xt&&(w.previousNode.type===C.If.Style||0==ie&&w.currentTimeline.hasCurrentStyleProperties())&&(w.currentTimeline.snapshotCurrentStyles(),w.previousNode=Qs);let hn=ie;const On=w.invokeQuery(Me.selector,Me.originalSelector,Me.limit,Me.includeSelf,!!We.optional,w.errors);w.currentQueryTotal=On.length;let Yn=null;On.forEach((ti,Ri)=>{w.currentQueryIndex=Ri;const ji=w.createSubContext(Me.options,ti);xt&&ji.delayNextStep(xt),ti===w.element&&(Yn=ji.currentTimeline),Zi(this,Me.animation,ji),ji.currentTimeline.applyStylesToKeyframe(),hn=Math.max(hn,ji.currentTimeline.currentTime)}),w.currentQueryIndex=0,w.currentQueryTotal=0,w.transformIntoNewTimeline(hn),Yn&&(w.currentTimeline.mergeTimelineCollectedStyles(Yn),w.currentTimeline.snapshotCurrentStyles()),w.previousNode=Me}visitStagger(Me,w){const ie=w.parentContext,We=w.currentTimeline,xt=Me.timings,hn=Math.abs(xt.duration),On=hn*(w.currentQueryTotal-1);let Yn=hn*w.currentQueryIndex;switch(xt.duration<0?"reverse":xt.easing){case"reverse":Yn=On-Yn;break;case"full":Yn=ie.currentStaggerTime}const Ri=w.currentTimeline;Yn&&Ri.delayNextStep(Yn);const ji=Ri.currentTime;Zi(this,Me.animation,w),w.previousNode=Me,ie.currentStaggerTime=We.currentTime-ji+(We.startTime-ie.currentTimeline.startTime)}}const Qs={};class ks{constructor(Me,w,ie,We,xt,hn,On,Yn){this._driver=Me,this.element=w,this.subInstructions=ie,this._enterClassName=We,this._leaveClassName=xt,this.errors=hn,this.timelines=On,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Qs,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=Yn||new Ar(this._driver,w,0),On.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(Me,w){if(!Me)return;const ie=Me;let We=this.options;null!=ie.duration&&(We.duration=gt(ie.duration)),null!=ie.delay&&(We.delay=gt(ie.delay));const xt=ie.params;if(xt){let hn=We.params;hn||(hn=this.options.params={}),Object.keys(xt).forEach(On=>{(!w||!hn.hasOwnProperty(On))&&(hn[On]=cn(xt[On],hn,this.errors))})}}_copyOptions(){const Me={};if(this.options){const w=this.options.params;if(w){const ie=Me.params={};Object.keys(w).forEach(We=>{ie[We]=w[We]})}}return Me}createSubContext(Me=null,w,ie){const We=w||this.element,xt=new ks(this._driver,We,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(We,ie||0));return xt.previousNode=this.previousNode,xt.currentAnimateTimings=this.currentAnimateTimings,xt.options=this._copyOptions(),xt.updateOptions(Me),xt.currentQueryIndex=this.currentQueryIndex,xt.currentQueryTotal=this.currentQueryTotal,xt.parentContext=this,this.subContextCount++,xt}transformIntoNewTimeline(Me){return this.previousNode=Qs,this.currentTimeline=this.currentTimeline.fork(this.element,Me),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(Me,w,ie){const We={duration:w??Me.duration,delay:this.currentTimeline.currentTime+(ie??0)+Me.delay,easing:""},xt=new Ur(this._driver,Me.element,Me.keyframes,Me.preStyleProps,Me.postStyleProps,We,Me.stretchStartingKeyframe);return this.timelines.push(xt),We}incrementTime(Me){this.currentTimeline.forwardTime(this.currentTimeline.duration+Me)}delayNextStep(Me){Me>0&&this.currentTimeline.delayNextStep(Me)}invokeQuery(Me,w,ie,We,xt,hn){let On=[];if(We&&On.push(this.element),Me.length>0){Me=(Me=Me.replace(Wi,"."+this._enterClassName)).replace(qr,"."+this._leaveClassName);let ti=this._driver.query(this.element,Me,1!=ie);0!==ie&&(ti=ie<0?ti.slice(ti.length+ie,ti.length):ti.slice(0,ie)),On.push(...ti)}return!xt&&0==On.length&&hn.push(function k(De){return new n.wOt(3014,!1)}()),On}}class Ar{constructor(Me,w,ie,We){this._driver=Me,this.element=w,this.startTime=ie,this._elementTimelineStylesLookup=We,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(w),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(w,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(Me){const w=1===this._keyframes.size&&this._pendingStyles.size;this.duration||w?(this.forwardTime(this.currentTime+Me),w&&this.snapshotCurrentStyles()):this.startTime+=Me}fork(Me,w){return this.applyStylesToKeyframe(),new Ar(this._driver,Me,w||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(Me){this.applyStylesToKeyframe(),this.duration=Me,this._loadKeyframe()}_updateStyle(Me,w){this._localTimelineStyles.set(Me,w),this._globalTimelineStyles.set(Me,w),this._styleSummary.set(Me,{time:this.currentTime,value:w})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(Me){Me&&this._previousKeyframe.set("easing",Me);for(let[w,ie]of this._globalTimelineStyles)this._backFill.set(w,ie||C.kp),this._currentKeyframe.set(w,C.kp);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(Me,w,ie,We){w&&this._previousKeyframe.set("easing",w);const xt=We&&We.params||{},hn=function fo(De,Me){const w=new Map;let ie;return De.forEach(We=>{if("*"===We){ie??=Me.keys();for(let xt of ie)w.set(xt,C.kp)}else for(let[xt,hn]of We)w.set(xt,hn)}),w}(Me,this._globalTimelineStyles);for(let[On,Yn]of hn){const ti=cn(Yn,xt,ie);this._pendingStyles.set(On,ti),this._localTimelineStyles.has(On)||this._backFill.set(On,this._globalTimelineStyles.get(On)??C.kp),this._updateStyle(On,ti)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((Me,w)=>{this._currentKeyframe.set(w,Me)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((Me,w)=>{this._currentKeyframe.has(w)||this._currentKeyframe.set(w,Me)}))}snapshotCurrentStyles(){for(let[Me,w]of this._localTimelineStyles)this._pendingStyles.set(Me,w),this._updateStyle(Me,w)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const Me=[];for(let w in this._currentKeyframe)Me.push(w);return Me}mergeTimelineCollectedStyles(Me){Me._styleSummary.forEach((w,ie)=>{const We=this._styleSummary.get(ie);(!We||w.time>We.time)&&this._updateStyle(ie,w.value)})}buildKeyframes(){this.applyStylesToKeyframe();const Me=new Set,w=new Set,ie=1===this._keyframes.size&&0===this.duration;let We=[];this._keyframes.forEach((On,Yn)=>{const ti=new Map([...this._backFill,...On]);ti.forEach((Ri,ji)=>{Ri===C.FX?Me.add(ji):Ri===C.kp&&w.add(ji)}),ie||ti.set("offset",Yn/this.duration),We.push(ti)});const xt=[...Me.values()],hn=[...w.values()];if(ie){const On=We[0],Yn=new Map(On);On.set("offset",0),Yn.set("offset",1),We=[On,Yn]}return zn(this.element,We,xt,hn,this.duration,this.startTime,this.easing,!1)}}class Ur extends Ar{constructor(Me,w,ie,We,xt,hn,On=!1){super(Me,w,hn.delay),this.keyframes=ie,this.preStyleProps=We,this.postStyleProps=xt,this._stretchStartingKeyframe=On,this.timings={duration:hn.duration,delay:hn.delay,easing:hn.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let Me=this.keyframes,{delay:w,duration:ie,easing:We}=this.timings;if(this._stretchStartingKeyframe&&w){const xt=[],hn=ie+w,On=w/hn,Yn=new Map(Me[0]);Yn.set("offset",0),xt.push(Yn);const ti=new Map(Me[0]);ti.set("offset",vs(On)),xt.push(ti);const Ri=Me.length-1;for(let ji=1;ji<=Ri;ji++){let Tr=new Map(Me[ji]);const ss=Tr.get("offset");Tr.set("offset",vs((w+ss*ie)/hn)),xt.push(Tr)}ie=hn,w=0,We="",Me=xt}return zn(this.element,Me,this.preStyleProps,this.postStyleProps,ie,w,We,!0)}}function vs(De,Me=3){const w=Math.pow(10,Me-1);return Math.round(De*w)/w}function Zo(De,Me,w,ie,We,xt,hn,On,Yn,ti,Ri,ji,Tr){return{type:0,element:De,triggerName:Me,isRemovalTransition:We,fromState:w,fromStyles:xt,toState:ie,toStyles:hn,timelines:On,queriedElements:Yn,preStyleProps:ti,postStyleProps:Ri,totalTime:ji,errors:Tr}}const vo={};class Pa{constructor(Me,w,ie){this._triggerName=Me,this.ast=w,this._stateStyles=ie}match(Me,w,ie,We){return function fs(De,Me,w,ie,We){return De.some(xt=>xt(Me,w,ie,We))}(this.ast.matchers,Me,w,ie,We)}buildStyles(Me,w,ie){let We=this._stateStyles.get("*");return void 0!==Me&&(We=this._stateStyles.get(Me?.toString())||We),We?We.buildStyles(w,ie):new Map}build(Me,w,ie,We,xt,hn,On,Yn,ti,Ri){const ji=[],Tr=this.ast.options&&this.ast.options.params||vo,Xr=this.buildStyles(ie,On&&On.params||vo,ji),ls=Yn&&Yn.params||vo,Yo=this.buildStyles(We,ls,ji),wa=new Set,tl=new Map,xl=new Map,Ol="void"===We,Cd={params:Io(ls,Tr),delay:this.ast.options?.delay},Cc=Ri?[]:ms(Me,w,this.ast.animation,xt,hn,Xr,Yo,Cd,ti,ji);let Nl=0;return Cc.forEach(Gl=>{Nl=Math.max(Gl.duration+Gl.delay,Nl)}),ji.length?Zo(w,this._triggerName,ie,We,Ol,Xr,Yo,[],[],tl,xl,Nl,ji):(Cc.forEach(Gl=>{const Ad=Gl.element,pd=et(tl,Ad,new Set);Gl.preStyleProps.forEach(zc=>pd.add(zc));const eh=et(xl,Ad,new Set);Gl.postStyleProps.forEach(zc=>eh.add(zc)),Ad!==w&&wa.add(Ad)}),Zo(w,this._triggerName,ie,We,Ol,Xr,Yo,Cc,[...wa.values()],tl,xl,Nl))}}function Io(De,Me){const w={...Me};return Object.entries(De).forEach(([ie,We])=>{null!=We&&(w[ie]=We)}),w}class Fo{constructor(Me,w,ie){this.styles=Me,this.defaultParams=w,this.normalizer=ie}buildStyles(Me,w){const ie=new Map,We=Io(Me,this.defaultParams);return this.styles.styles.forEach(xt=>{"string"!=typeof xt&&xt.forEach((hn,On)=>{hn&&(hn=cn(hn,We,w));const Yn=this.normalizer.normalizePropertyName(On,w);hn=this.normalizer.normalizeStyleValue(On,Yn,hn,w),ie.set(On,hn)})}),ie}}class So{constructor(Me,w,ie){this.name=Me,this.ast=w,this._normalizer=ie,this.transitionFactories=[],this.states=new Map,w.states.forEach(We=>{this.states.set(We.name,new Fo(We.style,We.options&&We.options.params||{},ie))}),Go(this.states,"true","1"),Go(this.states,"false","0"),w.transitions.forEach(We=>{this.transitionFactories.push(new Pa(Me,We,this.states))}),this.fallbackTransition=function ta(De,Me,w){return new Pa(De,{type:C.If.Transition,animation:{type:C.If.Sequence,steps:[],options:null},matchers:[(hn,On)=>!0],options:null,queryCount:0,depCount:0},Me)}(Me,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(Me,w,ie,We){return this.transitionFactories.find(hn=>hn.match(Me,w,ie,We))||null}matchStyles(Me,w,ie){return this.fallbackTransition.buildStyles(Me,w,ie)}}function Go(De,Me,w){De.has(Me)?De.has(w)||De.set(w,De.get(Me)):De.has(w)&&De.set(Me,De.get(w))}const Mo=new Jn;class As{constructor(Me,w,ie){this.bodyNode=Me,this._driver=w,this._normalizer=ie,this._animations=new Map,this._playersById=new Map,this.players=[]}register(Me,w){const ie=[],xt=Zn(this._driver,w,ie,[]);if(ie.length)throw function it(De){return new n.wOt(3503,!1)}();this._animations.set(Me,xt)}_buildPlayer(Me,w,ie){const We=Me.element,xt=J(this._normalizer,Me.keyframes,w,ie);return this._driver.animate(We,xt,Me.duration,Me.delay,Me.easing,[],!0)}create(Me,w,ie={}){const We=[],xt=this._animations.get(Me);let hn;const On=new Map;if(xt?(hn=ms(this._driver,w,xt,Zt,nn,new Map,new Map,ie,Mo,We),hn.forEach(Ri=>{const ji=et(On,Ri.element,new Map);Ri.postStyleProps.forEach(Tr=>ji.set(Tr,null))})):(We.push(function Fe(){return new n.wOt(3300,!1)}()),hn=[]),We.length)throw function Qe(De){return new n.wOt(3504,!1)}();On.forEach((Ri,ji)=>{Ri.forEach((Tr,ss)=>{Ri.set(ss,this._driver.computeStyle(ji,ss,C.kp))})});const ti=Pe(hn.map(Ri=>{const ji=On.get(Ri.element);return this._buildPlayer(Ri,new Map,ji)}));return this._playersById.set(Me,ti),ti.onDestroy(()=>this.destroy(Me)),this.players.push(ti),ti}destroy(Me){const w=this._getPlayer(Me);w.destroy(),this._playersById.delete(Me);const ie=this.players.indexOf(w);ie>=0&&this.players.splice(ie,1)}_getPlayer(Me){const w=this._playersById.get(Me);if(!w)throw function ct(De){return new n.wOt(3301,!1)}();return w}listen(Me,w,ie,We){const xt=ue(w,"","","");return vt(this._getPlayer(Me),ie,xt,We),()=>{}}command(Me,w,ie,We){if("register"==ie)return void this.register(Me,We[0]);if("create"==ie)return void this.create(Me,w,We[0]||{});const xt=this._getPlayer(Me);switch(ie){case"play":xt.play();break;case"pause":xt.pause();break;case"reset":xt.reset();break;case"restart":xt.restart();break;case"finish":xt.finish();break;case"init":xt.init();break;case"setPosition":xt.setPosition(parseFloat(We[0]));break;case"destroy":this.destroy(Me)}}}const Uo="ng-animate-queued",pa="ng-animate-disabled",Xa=[],Es={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},eo={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Ks="__ng_removed";class oa{get params(){return this.options.params}constructor(Me,w=""){this.namespaceId=w;const ie=Me&&Me.hasOwnProperty("value");if(this.value=function Eo(De){return De??null}(ie?Me.value:Me),ie){const{value:xt,...hn}=Me;this.options=hn}else this.options={};this.options.params||(this.options.params={})}absorbOptions(Me){const w=Me.params;if(w){const ie=this.options.params;Object.keys(w).forEach(We=>{null==ie[We]&&(ie[We]=w[We])})}}}const ar="void",la=new oa(ar);class wo{constructor(Me,w,ie){this.id=Me,this.hostElement=w,this._engine=ie,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+Me,_o(w,this._hostClassName)}listen(Me,w,ie,We){if(!this._triggers.has(w))throw function Ge(De,Me){return new n.wOt(3302,!1)}();if(null==ie||0==ie.length)throw function nt(De){return new n.wOt(3303,!1)}();if(!function no(De){return"start"==De||"done"==De}(ie))throw function Je(De,Me){return new n.wOt(3400,!1)}();const xt=et(this._elementListeners,Me,[]),hn={name:w,phase:ie,callback:We};xt.push(hn);const On=et(this._engine.statesByElement,Me,new Map);return On.has(w)||(_o(Me,Xt),_o(Me,Xt+"-"+w),On.set(w,la)),()=>{this._engine.afterFlush(()=>{const Yn=xt.indexOf(hn);Yn>=0&&xt.splice(Yn,1),this._triggers.has(w)||On.delete(w)})}}register(Me,w){return!this._triggers.has(Me)&&(this._triggers.set(Me,w),!0)}_getTrigger(Me){const w=this._triggers.get(Me);if(!w)throw function ze(De){return new n.wOt(3401,!1)}();return w}trigger(Me,w,ie,We=!0){const xt=this._getTrigger(w),hn=new Ro(this.id,w,Me);let On=this._engine.statesByElement.get(Me);On||(_o(Me,Xt),_o(Me,Xt+"-"+w),this._engine.statesByElement.set(Me,On=new Map));let Yn=On.get(w);const ti=new oa(ie,this.id);if(!(ie&&ie.hasOwnProperty("value"))&&Yn&&ti.absorbOptions(Yn.options),On.set(w,ti),Yn||(Yn=la),ti.value!==ar&&Yn.value===ti.value){if(!function il(De,Me){const w=Object.keys(De),ie=Object.keys(Me);if(w.length!=ie.length)return!1;for(let We=0;We<w.length;We++){const xt=w[We];if(!Me.hasOwnProperty(xt)||De[xt]!==Me[xt])return!1}return!0}(Yn.params,ti.params)){const ls=[],Yo=xt.matchStyles(Yn.value,Yn.params,ls),wa=xt.matchStyles(ti.value,ti.params,ls);ls.length?this._engine.reportError(ls):this._engine.afterFlush(()=>{de(Me,Yo),V(Me,wa)})}return}const Tr=et(this._engine.playersByElement,Me,[]);Tr.forEach(ls=>{ls.namespaceId==this.id&&ls.triggerName==w&&ls.queued&&ls.destroy()});let ss=xt.matchTransition(Yn.value,ti.value,Me,ti.params),Xr=!1;if(!ss){if(!We)return;ss=xt.fallbackTransition,Xr=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:Me,triggerName:w,transition:ss,fromState:Yn,toState:ti,player:hn,isFallbackTransition:Xr}),Xr||(_o(Me,Uo),hn.onStart(()=>{La(Me,Uo)})),hn.onDone(()=>{let ls=this.players.indexOf(hn);ls>=0&&this.players.splice(ls,1);const Yo=this._engine.playersByElement.get(Me);if(Yo){let wa=Yo.indexOf(hn);wa>=0&&Yo.splice(wa,1)}}),this.players.push(hn),Tr.push(hn),hn}deregister(Me){this._triggers.delete(Me),this._engine.statesByElement.forEach(w=>w.delete(Me)),this._elementListeners.forEach((w,ie)=>{this._elementListeners.set(ie,w.filter(We=>We.name!=Me))})}clearElementCache(Me){this._engine.statesByElement.delete(Me),this._elementListeners.delete(Me);const w=this._engine.playersByElement.get(Me);w&&(w.forEach(ie=>ie.destroy()),this._engine.playersByElement.delete(Me))}_signalRemovalForInnerTriggers(Me,w){const ie=this._engine.driver.query(Me,lt,!0);ie.forEach(We=>{if(We[Ks])return;const xt=this._engine.fetchNamespacesByElement(We);xt.size?xt.forEach(hn=>hn.triggerLeaveAnimation(We,w,!1,!0)):this.clearElementCache(We)}),this._engine.afterFlushAnimationsDone(()=>ie.forEach(We=>this.clearElementCache(We)))}triggerLeaveAnimation(Me,w,ie,We){const xt=this._engine.statesByElement.get(Me),hn=new Map;if(xt){const On=[];if(xt.forEach((Yn,ti)=>{if(hn.set(ti,Yn.value),this._triggers.has(ti)){const Ri=this.trigger(Me,ti,ar,We);Ri&&On.push(Ri)}}),On.length)return this._engine.markElementAsRemoved(this.id,Me,!0,w,hn),ie&&Pe(On).onDone(()=>this._engine.processLeaveNode(Me)),!0}return!1}prepareLeaveAnimationListeners(Me){const w=this._elementListeners.get(Me),ie=this._engine.statesByElement.get(Me);if(w&&ie){const We=new Set;w.forEach(xt=>{const hn=xt.name;if(We.has(hn))return;We.add(hn);const Yn=this._triggers.get(hn).fallbackTransition,ti=ie.get(hn)||la,Ri=new oa(ar),ji=new Ro(this.id,hn,Me);this._engine.totalQueuedPlayers++,this._queue.push({element:Me,triggerName:hn,transition:Yn,fromState:ti,toState:Ri,player:ji,isFallbackTransition:!0})})}}removeNode(Me,w){const ie=this._engine;if(Me.childElementCount&&this._signalRemovalForInnerTriggers(Me,w),this.triggerLeaveAnimation(Me,w,!0))return;let We=!1;if(ie.totalAnimations){const xt=ie.players.length?ie.playersByQueriedElement.get(Me):[];if(xt&&xt.length)We=!0;else{let hn=Me;for(;hn=hn.parentNode;)if(ie.statesByElement.get(hn)){We=!0;break}}}if(this.prepareLeaveAnimationListeners(Me),We)ie.markElementAsRemoved(this.id,Me,!1,w);else{const xt=Me[Ks];(!xt||xt===Es)&&(ie.afterFlush(()=>this.clearElementCache(Me)),ie.destroyInnerAnimations(Me),ie._onRemovalComplete(Me,w))}}insertNode(Me,w){_o(Me,this._hostClassName)}drainQueuedTransitions(Me){const w=[];return this._queue.forEach(ie=>{const We=ie.player;if(We.destroyed)return;const xt=ie.element,hn=this._elementListeners.get(xt);hn&&hn.forEach(On=>{if(On.name==ie.triggerName){const Yn=ue(xt,ie.triggerName,ie.fromState.value,ie.toState.value);Yn._data=Me,vt(ie.player,On.phase,Yn,On.callback)}}),We.markedForDestroy?this._engine.afterFlush(()=>{We.destroy()}):w.push(ie)}),this._queue=[],w.sort((ie,We)=>{const xt=ie.transition.ast.depCount,hn=We.transition.ast.depCount;return 0==xt||0==hn?xt-hn:this._engine.driver.containsElement(ie.element,We.element)?1:-1})}destroy(Me){this.players.forEach(w=>w.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,Me)}}class na{_onRemovalComplete(Me,w){this.onRemovalComplete(Me,w)}constructor(Me,w,ie,We){this.bodyNode=Me,this.driver=w,this._normalizer=ie,this.scheduler=We,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(xt,hn)=>{}}get queuedPlayers(){const Me=[];return this._namespaceList.forEach(w=>{w.players.forEach(ie=>{ie.queued&&Me.push(ie)})}),Me}createNamespace(Me,w){const ie=new wo(Me,w,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,w)?this._balanceNamespaceList(ie,w):(this.newHostElements.set(w,ie),this.collectEnterElement(w)),this._namespaceLookup[Me]=ie}_balanceNamespaceList(Me,w){const ie=this._namespaceList,We=this.namespacesByHostElement;if(ie.length-1>=0){let hn=!1,On=this.driver.getParentElement(w);for(;On;){const Yn=We.get(On);if(Yn){const ti=ie.indexOf(Yn);ie.splice(ti+1,0,Me),hn=!0;break}On=this.driver.getParentElement(On)}hn||ie.unshift(Me)}else ie.push(Me);return We.set(w,Me),Me}register(Me,w){let ie=this._namespaceLookup[Me];return ie||(ie=this.createNamespace(Me,w)),ie}registerTrigger(Me,w,ie){let We=this._namespaceLookup[Me];We&&We.register(w,ie)&&this.totalAnimations++}destroy(Me,w){Me&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{const ie=this._fetchNamespace(Me);this.namespacesByHostElement.delete(ie.hostElement);const We=this._namespaceList.indexOf(ie);We>=0&&this._namespaceList.splice(We,1),ie.destroy(w),delete this._namespaceLookup[Me]}))}_fetchNamespace(Me){return this._namespaceLookup[Me]}fetchNamespacesByElement(Me){const w=new Set,ie=this.statesByElement.get(Me);if(ie)for(let We of ie.values())if(We.namespaceId){const xt=this._fetchNamespace(We.namespaceId);xt&&w.add(xt)}return w}trigger(Me,w,ie,We){if(Ho(w)){const xt=this._fetchNamespace(Me);if(xt)return xt.trigger(w,ie,We),!0}return!1}insertNode(Me,w,ie,We){if(!Ho(w))return;const xt=w[Ks];if(xt&&xt.setForRemoval){xt.setForRemoval=!1,xt.setForMove=!0;const hn=this.collectedLeaveElements.indexOf(w);hn>=0&&this.collectedLeaveElements.splice(hn,1)}if(Me){const hn=this._fetchNamespace(Me);hn&&hn.insertNode(w,ie)}We&&this.collectEnterElement(w)}collectEnterElement(Me){this.collectedEnterElements.push(Me)}markElementAsDisabled(Me,w){w?this.disabledNodes.has(Me)||(this.disabledNodes.add(Me),_o(Me,pa)):this.disabledNodes.has(Me)&&(this.disabledNodes.delete(Me),La(Me,pa))}removeNode(Me,w,ie){if(Ho(w)){this.scheduler?.notify();const We=Me?this._fetchNamespace(Me):null;We?We.removeNode(w,ie):this.markElementAsRemoved(Me,w,!1,ie);const xt=this.namespacesByHostElement.get(w);xt&&xt.id!==Me&&xt.removeNode(w,ie)}else this._onRemovalComplete(w,ie)}markElementAsRemoved(Me,w,ie,We,xt){this.collectedLeaveElements.push(w),w[Ks]={namespaceId:Me,setForRemoval:We,hasAnimation:ie,removedBeforeQueried:!1,previousTriggersValues:xt}}listen(Me,w,ie,We,xt){return Ho(w)?this._fetchNamespace(Me).listen(w,ie,We,xt):()=>{}}_buildInstruction(Me,w,ie,We,xt){return Me.transition.build(this.driver,Me.element,Me.fromState.value,Me.toState.value,ie,We,Me.fromState.options,Me.toState.options,w,xt)}destroyInnerAnimations(Me){let w=this.driver.query(Me,lt,!0);w.forEach(ie=>this.destroyActiveAnimationsForElement(ie)),0!=this.playersByQueriedElement.size&&(w=this.driver.query(Me,wt,!0),w.forEach(ie=>this.finishActiveQueriedAnimationOnElement(ie)))}destroyActiveAnimationsForElement(Me){const w=this.playersByElement.get(Me);w&&w.forEach(ie=>{ie.queued?ie.markedForDestroy=!0:ie.destroy()})}finishActiveQueriedAnimationOnElement(Me){const w=this.playersByQueriedElement.get(Me);w&&w.forEach(ie=>ie.finish())}whenRenderingDone(){return new Promise(Me=>{if(this.players.length)return Pe(this.players).onDone(()=>Me());Me()})}processLeaveNode(Me){const w=Me[Ks];if(w&&w.setForRemoval){if(Me[Ks]=Es,w.namespaceId){this.destroyInnerAnimations(Me);const ie=this._fetchNamespace(w.namespaceId);ie&&ie.clearElementCache(Me)}this._onRemovalComplete(Me,w.setForRemoval)}Me.classList?.contains(pa)&&this.markElementAsDisabled(Me,!1),this.driver.query(Me,".ng-animate-disabled",!0).forEach(ie=>{this.markElementAsDisabled(ie,!1)})}flush(Me=-1){let w=[];if(this.newHostElements.size&&(this.newHostElements.forEach((ie,We)=>this._balanceNamespaceList(ie,We)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let ie=0;ie<this.collectedEnterElements.length;ie++)_o(this.collectedEnterElements[ie],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const ie=[];try{w=this._flushAnimations(ie,Me)}finally{for(let We=0;We<ie.length;We++)ie[We]()}}else for(let ie=0;ie<this.collectedLeaveElements.length;ie++)this.processLeaveNode(this.collectedLeaveElements[ie]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(ie=>ie()),this._flushFns=[],this._whenQuietFns.length){const ie=this._whenQuietFns;this._whenQuietFns=[],w.length?Pe(w).onDone(()=>{ie.forEach(We=>We())}):ie.forEach(We=>We())}}reportError(Me){throw function Ke(De){return new n.wOt(3402,!1)}()}_flushAnimations(Me,w){const ie=new Jn,We=[],xt=new Map,hn=[],On=new Map,Yn=new Map,ti=new Map,Ri=new Set;this.disabledNodes.forEach(gs=>{Ri.add(gs);const Hs=this.driver.query(gs,".ng-animate-queued",!0);for(let Ns=0;Ns<Hs.length;Ns++)Ri.add(Hs[Ns])});const ji=this.bodyNode,Tr=Array.from(this.statesByElement.keys()),ss=so(Tr,this.collectedEnterElements),Xr=new Map;let ls=0;ss.forEach((gs,Hs)=>{const Ns=Zt+ls++;Xr.set(Hs,Ns),gs.forEach(qo=>_o(qo,Ns))});const Yo=[],wa=new Set,tl=new Set;for(let gs=0;gs<this.collectedLeaveElements.length;gs++){const Hs=this.collectedLeaveElements[gs],Ns=Hs[Ks];Ns&&Ns.setForRemoval&&(Yo.push(Hs),wa.add(Hs),Ns.hasAnimation?this.driver.query(Hs,".ng-star-inserted",!0).forEach(qo=>wa.add(qo)):tl.add(Hs))}const xl=new Map,Ol=so(Tr,Array.from(wa));Ol.forEach((gs,Hs)=>{const Ns=nn+ls++;xl.set(Hs,Ns),gs.forEach(qo=>_o(qo,Ns))}),Me.push(()=>{ss.forEach((gs,Hs)=>{const Ns=Xr.get(Hs);gs.forEach(qo=>La(qo,Ns))}),Ol.forEach((gs,Hs)=>{const Ns=xl.get(Hs);gs.forEach(qo=>La(qo,Ns))}),Yo.forEach(gs=>{this.processLeaveNode(gs)})});const Cd=[],Cc=[];for(let gs=this._namespaceList.length-1;gs>=0;gs--)this._namespaceList[gs].drainQueuedTransitions(w).forEach(Ns=>{const qo=Ns.player,El=Ns.element;if(Cd.push(qo),this.collectedEnterElements.length){const Il=El[Ks];if(Il&&Il.setForMove){if(Il.previousTriggersValues&&Il.previousTriggersValues.has(Ns.triggerName)){const Od=Il.previousTriggersValues.get(Ns.triggerName),_c=this.statesByElement.get(Ns.element);if(_c&&_c.has(Ns.triggerName)){const Zl=_c.get(Ns.triggerName);Zl.value=Od,_c.set(Ns.triggerName,Zl)}}return void qo.destroy()}}const vc=!ji||!this.driver.containsElement(ji,El),Tl=xl.get(El),gd=Xr.get(El),Va=this._buildInstruction(Ns,ie,gd,Tl,vc);if(Va.errors&&Va.errors.length)return void Cc.push(Va);if(vc)return qo.onStart(()=>de(El,Va.fromStyles)),qo.onDestroy(()=>V(El,Va.toStyles)),void We.push(qo);if(Ns.isFallbackTransition)return qo.onStart(()=>de(El,Va.fromStyles)),qo.onDestroy(()=>V(El,Va.toStyles)),void We.push(qo);const Mu=[];Va.timelines.forEach(Il=>{Il.stretchStartingKeyframe=!0,this.disabledNodes.has(Il.element)||Mu.push(Il)}),Va.timelines=Mu,ie.append(El,Va.timelines),hn.push({instruction:Va,player:qo,element:El}),Va.queriedElements.forEach(Il=>et(On,Il,[]).push(qo)),Va.preStyleProps.forEach((Il,Od)=>{if(Il.size){let _c=Yn.get(Od);_c||Yn.set(Od,_c=new Set),Il.forEach((Zl,Du)=>_c.add(Du))}}),Va.postStyleProps.forEach((Il,Od)=>{let _c=ti.get(Od);_c||ti.set(Od,_c=new Set),Il.forEach((Zl,Du)=>_c.add(Du))})});if(Cc.length){const gs=[];Cc.forEach(Hs=>{gs.push(function $e(De,Me){return new n.wOt(3505,!1)}())}),Cd.forEach(Hs=>Hs.destroy()),this.reportError(gs)}const Nl=new Map,Gl=new Map;hn.forEach(gs=>{const Hs=gs.element;ie.has(Hs)&&(Gl.set(Hs,Hs),this._beforeAnimationBuild(gs.player.namespaceId,gs.instruction,Nl))}),We.forEach(gs=>{const Hs=gs.element;this._getPreviousPlayers(Hs,!1,gs.namespaceId,gs.triggerName,null).forEach(qo=>{et(Nl,Hs,[]).push(qo),qo.destroy()})});const Ad=Yo.filter(gs=>co(gs,Yn,ti)),pd=new Map;Co(pd,this.driver,tl,ti,C.kp).forEach(gs=>{co(gs,Yn,ti)&&Ad.push(gs)});const zc=new Map;ss.forEach((gs,Hs)=>{Co(zc,this.driver,new Set(gs),Yn,C.FX)}),Ad.forEach(gs=>{const Hs=pd.get(gs),Ns=zc.get(gs);pd.set(gs,new Map([...Hs?.entries()??[],...Ns?.entries()??[]]))});const Ou=[],th=[],Pu={};hn.forEach(gs=>{const{element:Hs,player:Ns,instruction:qo}=gs;if(ie.has(Hs)){if(Ri.has(Hs))return Ns.onDestroy(()=>V(Hs,qo.toStyles)),Ns.disabled=!0,Ns.overrideTotalTime(qo.totalTime),void We.push(Ns);let El=Pu;if(Gl.size>1){let Tl=Hs;const gd=[];for(;Tl=Tl.parentNode;){const Va=Gl.get(Tl);if(Va){El=Va;break}gd.push(Tl)}gd.forEach(Va=>Gl.set(Va,El))}const vc=this._buildAnimation(Ns.namespaceId,qo,Nl,xt,zc,pd);if(Ns.setRealPlayer(vc),El===Pu)Ou.push(Ns);else{const Tl=this.playersByElement.get(El);Tl&&Tl.length&&(Ns.parentPlayer=Pe(Tl)),We.push(Ns)}}else de(Hs,qo.fromStyles),Ns.onDestroy(()=>V(Hs,qo.toStyles)),th.push(Ns),Ri.has(Hs)&&We.push(Ns)}),th.forEach(gs=>{const Hs=xt.get(gs.element);if(Hs&&Hs.length){const Ns=Pe(Hs);gs.setRealPlayer(Ns)}}),We.forEach(gs=>{gs.parentPlayer?gs.syncPlayerEvents(gs.parentPlayer):gs.destroy()});for(let gs=0;gs<Yo.length;gs++){const Hs=Yo[gs],Ns=Hs[Ks];if(La(Hs,nn),Ns&&Ns.hasAnimation)continue;let qo=[];if(On.size){let vc=On.get(Hs);vc&&vc.length&&qo.push(...vc);let Tl=this.driver.query(Hs,wt,!0);for(let gd=0;gd<Tl.length;gd++){let Va=On.get(Tl[gd]);Va&&Va.length&&qo.push(...Va)}}const El=qo.filter(vc=>!vc.destroyed);El.length?Ko(this,Hs,El):this.processLeaveNode(Hs)}return Yo.length=0,Ou.forEach(gs=>{this.players.push(gs),gs.onDone(()=>{gs.destroy();const Hs=this.players.indexOf(gs);this.players.splice(Hs,1)}),gs.play()}),Ou}afterFlush(Me){this._flushFns.push(Me)}afterFlushAnimationsDone(Me){this._whenQuietFns.push(Me)}_getPreviousPlayers(Me,w,ie,We,xt){let hn=[];if(w){const On=this.playersByQueriedElement.get(Me);On&&(hn=On)}else{const On=this.playersByElement.get(Me);if(On){const Yn=!xt||xt==ar;On.forEach(ti=>{ti.queued||!Yn&&ti.triggerName!=We||hn.push(ti)})}}return(ie||We)&&(hn=hn.filter(On=>!(ie&&ie!=On.namespaceId||We&&We!=On.triggerName))),hn}_beforeAnimationBuild(Me,w,ie){const xt=w.element,hn=w.isRemovalTransition?void 0:Me,On=w.isRemovalTransition?void 0:w.triggerName;for(const Yn of w.timelines){const ti=Yn.element,Ri=ti!==xt,ji=et(ie,ti,[]);this._getPreviousPlayers(ti,Ri,hn,On,w.toState).forEach(ss=>{const Xr=ss.getRealPlayer();Xr.beforeDestroy&&Xr.beforeDestroy(),ss.destroy(),ji.push(ss)})}de(xt,w.fromStyles)}_buildAnimation(Me,w,ie,We,xt,hn){const On=w.triggerName,Yn=w.element,ti=[],Ri=new Set,ji=new Set,Tr=w.timelines.map(Xr=>{const ls=Xr.element;Ri.add(ls);const Yo=ls[Ks];if(Yo&&Yo.removedBeforeQueried)return new C.sf(Xr.duration,Xr.delay);const wa=ls!==Yn,tl=function Jo(De){const Me=[];return ka(De,Me),Me}((ie.get(ls)||Xa).map(Nl=>Nl.getRealPlayer())).filter(Nl=>!!Nl.element&&Nl.element===ls),xl=xt.get(ls),Ol=hn.get(ls),Cd=J(this._normalizer,Xr.keyframes,xl,Ol),Cc=this._buildPlayer(Xr,Cd,tl);if(Xr.subTimeline&&We&&ji.add(ls),wa){const Nl=new Ro(Me,On,ls);Nl.setRealPlayer(Cc),ti.push(Nl)}return Cc});ti.forEach(Xr=>{et(this.playersByQueriedElement,Xr.element,[]).push(Xr),Xr.onDone(()=>function ja(De,Me,w){let ie=De.get(Me);if(ie){if(ie.length){const We=ie.indexOf(w);ie.splice(We,1)}0==ie.length&&De.delete(Me)}return ie}(this.playersByQueriedElement,Xr.element,Xr))}),Ri.forEach(Xr=>_o(Xr,Ue));const ss=Pe(Tr);return ss.onDestroy(()=>{Ri.forEach(Xr=>La(Xr,Ue)),V(Yn,w.toStyles)}),ji.forEach(Xr=>{et(We,Xr,[]).push(ss)}),ss}_buildPlayer(Me,w,ie){return w.length>0?this.driver.animate(Me.element,w,Me.duration,Me.delay,Me.easing,ie):new C.sf(Me.duration,Me.delay)}}class Ro{constructor(Me,w,ie){this.namespaceId=Me,this.triggerName=w,this.element=ie,this._player=new C.sf,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(Me){this._containsRealPlayer||(this._player=Me,this._queuedCallbacks.forEach((w,ie)=>{w.forEach(We=>vt(Me,ie,void 0,We))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(Me.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(Me){this.totalTime=Me}syncPlayerEvents(Me){const w=this._player;w.triggerCallback&&Me.onStart(()=>w.triggerCallback("start")),Me.onDone(()=>this.finish()),Me.onDestroy(()=>this.destroy())}_queueEvent(Me,w){et(this._queuedCallbacks,Me,[]).push(w)}onDone(Me){this.queued&&this._queueEvent("done",Me),this._player.onDone(Me)}onStart(Me){this.queued&&this._queueEvent("start",Me),this._player.onStart(Me)}onDestroy(Me){this.queued&&this._queueEvent("destroy",Me),this._player.onDestroy(Me)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(Me){this.queued||this._player.setPosition(Me)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(Me){const w=this._player;w.triggerCallback&&w.triggerCallback(Me)}}function Ho(De){return De&&1===De.nodeType}function Fs(De,Me){const w=De.style.display;return De.style.display=Me??"none",w}function Co(De,Me,w,ie,We){const xt=[];w.forEach(Yn=>xt.push(Fs(Yn)));const hn=[];ie.forEach((Yn,ti)=>{const Ri=new Map;Yn.forEach(ji=>{const Tr=Me.computeStyle(ti,ji,We);Ri.set(ji,Tr),(!Tr||0==Tr.length)&&(ti[Ks]=eo,hn.push(ti))}),De.set(ti,Ri)});let On=0;return w.forEach(Yn=>Fs(Yn,xt[On++])),hn}function so(De,Me){const w=new Map;if(De.forEach(On=>w.set(On,[])),0==Me.length)return w;const We=new Set(Me),xt=new Map;function hn(On){if(!On)return 1;let Yn=xt.get(On);if(Yn)return Yn;const ti=On.parentNode;return Yn=w.has(ti)?ti:We.has(ti)?1:hn(ti),xt.set(On,Yn),Yn}return Me.forEach(On=>{const Yn=hn(On);1!==Yn&&w.get(Yn).push(On)}),w}function _o(De,Me){De.classList?.add(Me)}function La(De,Me){De.classList?.remove(Me)}function Ko(De,Me,w){Pe(w).onDone(()=>De.processLeaveNode(Me))}function ka(De,Me){for(let w=0;w<De.length;w++){const ie=De[w];ie instanceof C.ui?ka(ie.players,Me):Me.push(ie)}}function co(De,Me,w){const ie=w.get(De);if(!ie)return!1;let We=Me.get(De);return We?ie.forEach(xt=>We.add(xt)):Me.set(De,ie),w.delete(De),!0}class po{constructor(Me,w,ie,We){this._driver=w,this._normalizer=ie,this._triggerCache={},this.onRemovalComplete=(xt,hn)=>{},this._transitionEngine=new na(Me.body,w,ie,We),this._timelineEngine=new As(Me.body,w,ie),this._transitionEngine.onRemovalComplete=(xt,hn)=>this.onRemovalComplete(xt,hn)}registerTrigger(Me,w,ie,We,xt){const hn=Me+"-"+We;let On=this._triggerCache[hn];if(!On){const Yn=[],Ri=Zn(this._driver,xt,Yn,[]);if(Yn.length)throw function te(De,Me){return new n.wOt(3404,!1)}();On=function qs(De,Me,w){return new So(De,Me,w)}(We,Ri,this._normalizer),this._triggerCache[hn]=On}this._transitionEngine.registerTrigger(w,We,On)}register(Me,w){this._transitionEngine.register(Me,w)}destroy(Me,w){this._transitionEngine.destroy(Me,w)}onInsert(Me,w,ie,We){this._transitionEngine.insertNode(Me,w,ie,We)}onRemove(Me,w,ie){this._transitionEngine.removeNode(Me,w,ie)}disableAnimations(Me,w){this._transitionEngine.markElementAsDisabled(Me,w)}process(Me,w,ie,We){if("@"==ie.charAt(0)){const[xt,hn]=se(ie);this._timelineEngine.command(xt,w,hn,We)}else this._transitionEngine.trigger(Me,w,ie,We)}listen(Me,w,ie,We,xt){if("@"==ie.charAt(0)){const[hn,On]=se(ie);return this._timelineEngine.listen(hn,w,On,xt)}return this._transitionEngine.listen(Me,w,ie,We,xt)}flush(Me=-1){this._transitionEngine.flush(Me)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(Me){this._transitionEngine.afterFlushAnimationsDone(Me)}}class Sn{static{this.initialStylesByElement=new WeakMap}constructor(Me,w,ie){this._element=Me,this._startStyles=w,this._endStyles=ie,this._state=0;let We=Sn.initialStylesByElement.get(Me);We||Sn.initialStylesByElement.set(Me,We=new Map),this._initialStyles=We}start(){this._state<1&&(this._startStyles&&V(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(V(this._element,this._initialStyles),this._endStyles&&(V(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(Sn.initialStylesByElement.delete(this._element),this._startStyles&&(de(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(de(this._element,this._endStyles),this._endStyles=null),V(this._element,this._initialStyles),this._state=3)}}function ba(De){let Me=null;return De.forEach((w,ie)=>{(function uo(De){return"display"===De||"position"===De})(ie)&&(Me=Me||new Map,Me.set(ie,w))}),Me}class $o{constructor(Me,w,ie,We){this.element=Me,this.keyframes=w,this.options=ie,this._specialStyles=We,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=ie.duration,this._delay=ie.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(Me=>Me()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const Me=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,Me,this.options),this._finalKeyframe=Me.length?Me[Me.length-1]:new Map;const w=()=>this._onFinish();this.domPlayer.addEventListener("finish",w),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",w)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(Me){const w=[];return Me.forEach(ie=>{w.push(Object.fromEntries(ie))}),w}_triggerWebAnimation(Me,w,ie){return Me.animate(this._convertKeyframesToObject(w),ie)}onStart(Me){this._originalOnStartFns.push(Me),this._onStartFns.push(Me)}onDone(Me){this._originalOnDoneFns.push(Me),this._onDoneFns.push(Me)}onDestroy(Me){this._onDestroyFns.push(Me)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(Me=>Me()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(Me=>Me()),this._onDestroyFns=[])}setPosition(Me){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=Me*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const Me=new Map;this.hasStarted()&&this._finalKeyframe.forEach((ie,We)=>{"offset"!==We&&Me.set(We,this._finished?ie:Rn(this.element,We))}),this.currentSnapshot=Me}triggerCallback(Me){const w="start"===Me?this._onStartFns:this._onDoneFns;w.forEach(ie=>ie()),w.length=0}}class aa{validateStyleProperty(Me){return!0}validateAnimatableStyleProperty(Me){return!0}matchesElement(Me,w){return!1}containsElement(Me,w){return Ne(Me,w)}getParentElement(Me){return be(Me)}query(Me,w,ie){return ye(Me,w,ie)}computeStyle(Me,w,ie){return Rn(Me,w)}animate(Me,w,ie,We,xt,hn=[]){const Yn={duration:ie,delay:We,fill:0==We?"both":"forwards"};xt&&(Yn.easing=xt);const ti=new Map,Ri=hn.filter(ss=>ss instanceof $o);(function Gi(De,Me){return 0===De||0===Me})(ie,We)&&Ri.forEach(ss=>{ss.currentSnapshot.forEach((Xr,ls)=>ti.set(ls,Xr))});let ji=function Bt(De){return De.length?De[0]instanceof Map?De:De.map(Me=>new Map(Object.entries(Me))):[]}(w).map(ss=>new Map(ss));ji=function bt(De,Me,w){if(w.size&&Me.length){let ie=Me[0],We=[];if(w.forEach((xt,hn)=>{ie.has(hn)||We.push(hn),ie.set(hn,xt)}),We.length)for(let xt=1;xt<Me.length;xt++){let hn=Me[xt];We.forEach(On=>hn.set(On,Rn(De,On)))}}return Me}(Me,ji,ti);const Tr=function $s(De,Me){let w=null,ie=null;return Array.isArray(Me)&&Me.length?(w=ba(Me[0]),Me.length>1&&(ie=ba(Me[Me.length-1]))):Me instanceof Map&&(w=ba(Me)),w||ie?new Sn(De,w,ie):null}(Me,ji);return new $o(Me,ji,Yn,Tr)}}const Ae="@.disabled";class jo{constructor(Me,w,ie,We){this.namespaceId=Me,this.delegate=w,this.engine=ie,this._onDestroy=We,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(Me){this.delegate.destroyNode?.(Me)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(Me,w){return this.delegate.createElement(Me,w)}createComment(Me){return this.delegate.createComment(Me)}createText(Me){return this.delegate.createText(Me)}appendChild(Me,w){this.delegate.appendChild(Me,w),this.engine.onInsert(this.namespaceId,w,Me,!1)}insertBefore(Me,w,ie,We=!0){this.delegate.insertBefore(Me,w,ie),this.engine.onInsert(this.namespaceId,w,Me,We)}removeChild(Me,w,ie){this.engine.onRemove(this.namespaceId,w,this.delegate)}selectRootElement(Me,w){return this.delegate.selectRootElement(Me,w)}parentNode(Me){return this.delegate.parentNode(Me)}nextSibling(Me){return this.delegate.nextSibling(Me)}setAttribute(Me,w,ie,We){this.delegate.setAttribute(Me,w,ie,We)}removeAttribute(Me,w,ie){this.delegate.removeAttribute(Me,w,ie)}addClass(Me,w){this.delegate.addClass(Me,w)}removeClass(Me,w){this.delegate.removeClass(Me,w)}setStyle(Me,w,ie,We){this.delegate.setStyle(Me,w,ie,We)}removeStyle(Me,w,ie){this.delegate.removeStyle(Me,w,ie)}setProperty(Me,w,ie){"@"==w.charAt(0)&&w==Ae?this.disableAnimations(Me,!!ie):this.delegate.setProperty(Me,w,ie)}setValue(Me,w){this.delegate.setValue(Me,w)}listen(Me,w,ie){return this.delegate.listen(Me,w,ie)}disableAnimations(Me,w){this.engine.disableAnimations(Me,w)}}class fl extends jo{constructor(Me,w,ie,We,xt){super(w,ie,We,xt),this.factory=Me,this.namespaceId=w}setProperty(Me,w,ie){"@"==w.charAt(0)?"."==w.charAt(1)&&w==Ae?this.disableAnimations(Me,ie=void 0===ie||!!ie):this.engine.process(this.namespaceId,Me,w.slice(1),ie):this.delegate.setProperty(Me,w,ie)}listen(Me,w,ie){if("@"==w.charAt(0)){const We=function Wa(De){switch(De){case"body":return document.body;case"document":return document;case"window":return window;default:return De}}(Me);let xt=w.slice(1),hn="";return"@"!=xt.charAt(0)&&([xt,hn]=function Xi(De){const Me=De.indexOf(".");return[De.substring(0,Me),De.slice(Me+1)]}(xt)),this.engine.listen(this.namespaceId,We,xt,hn,On=>{this.factory.scheduleListenerCallback(On._data||-1,ie,On)})}return this.delegate.listen(Me,w,ie)}}class Ao{constructor(Me,w,ie){this.delegate=Me,this.engine=w,this._zone=ie,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,w.onRemovalComplete=(We,xt)=>{const hn=xt?.parentNode(We);hn&&xt.removeChild(hn,We)}}createRenderer(Me,w){const We=this.delegate.createRenderer(Me,w);if(!Me||!w?.data?.animation){const ti=this._rendererCache;let Ri=ti.get(We);return Ri||(Ri=new jo("",We,this.engine,()=>ti.delete(We)),ti.set(We,Ri)),Ri}const xt=w.id,hn=w.id+"-"+this._currentId;this._currentId++,this.engine.register(hn,Me);const On=ti=>{Array.isArray(ti)?ti.forEach(On):this.engine.registerTrigger(xt,hn,Me,ti.name,ti)};return w.data.animation.forEach(On),new fl(this,hn,We,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(Me,w,ie){if(Me>=0&&Me<this._microtaskId)return void this._zone.run(()=>w(ie));const We=this._animationCallbacksBuffer;0==We.length&&queueMicrotask(()=>{this._zone.run(()=>{We.forEach(xt=>{const[hn,On]=xt;hn(On)}),this._animationCallbacksBuffer=[]})}),We.push([w,ie])}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}var ps=s(61142);const on=[{provide:yn,useFactory:function al(){return new Kn}},{provide:po,useClass:(()=>{class De extends po{constructor(w,ie,We){super(w,ie,We,(0,n.WQX)(n.An2,{optional:!0}))}ngOnDestroy(){this.flush()}static{this.\u0275fac=function(ie){return new(ie||De)(n.KVO(ps.qQ),n.KVO(dn),n.KVO(yn))}}static{this.\u0275prov=n.jDH({token:De,factory:De.\u0275fac})}}return De})()},{provide:n._9s,useFactory:function ga(De,Me,w){return new Ao(De,Me,w)},deps:[i.B7,po,n.SKi]}],Dt=[{provide:dn,useFactory:()=>new aa},{provide:n.bc$,useValue:"BrowserAnimations"},...on],Mt=[{provide:dn,useClass:sn},{provide:n.bc$,useValue:"NoopAnimations"},...on];let Dn=(()=>{class De{static withConfig(w){return{ngModule:De,providers:w.disableAnimations?Mt:Dt}}static{this.\u0275fac=function(ie){return new(ie||De)}}static{this.\u0275mod=n.$C({type:De})}static{this.\u0275inj=n.G2t({providers:Dt,imports:[i.Bb]})}}return De})();var Do=s(14354),Ws=s(31308),Bi=s(92602),Di=s(14709),Ea=s(35965);let vl=(()=>{class De{static{this.\u0275fac=function(ie){return new(ie||De)}}static{this.\u0275prov=n.jDH({token:De,factory:De.\u0275fac})}}return De})(),hs=(()=>{class De extends vl{static{this.\u0275fac=(()=>{let w;return function(We){return(w||(w=n.xGo(De)))(We||De)}})()}static{this.\u0275prov=n.jDH({token:De,factory:De.\u0275fac})}}return De})(),Is=(()=>{class De{static{this.\u0275fac=function(ie){return new(ie||De)}}static{this.\u0275mod=n.$C({type:De})}static{this.\u0275inj=n.G2t({})}}return De})();var da=s(85735),jr=s(43848),ia=s(19392),Oo=s(31315),ra=s(59859),$n=s(93181),mt=s(36466),Yt=s(35146),Un=s(75707),ii=s(65706),Hi=s(91384),Nr=s(14714),Or=s(12962),es=s(83915),Zs=s(55833),wr=s(26875),Us=s(72271),Vs=s(78812),Ma=s(40859),Ya=function(De){return De.OSName="osName",De}(Ya||{});class Qa extends Ma.yN{constructor(){super("Empty cloud variable",null)}}class za extends Ma.yN{constructor(){super("Cloud variable could not be retrieved via API call nor cache. Please handle this case and use defaults",null)}}var Bo=function(De){return De.GxTargetGetFeatureRollout="GetFeatureRollout",De.GxTargetGetCloudVariable="GetCloudVariable",De.GxTargetGetSurveyFeature="GetSurveyFeature",De.Other="Other",De}(Bo||{}),li=function(De){return De.GxTargetGetECommerceFeature="GetECommerceFeature",De.GxTargetGetSurveyFeature="GetSurveyFeature",De.GxTargetGetQueueETAConfig="GetQueueETAConfig",De.GxTargetGetAutohighlightFeature="GetAutohighlightFeature",De.GxTargetGetFreestyleFeature="GetFreestyleFeature",De.GxTargetGetStarfleetPhase1="GetStarfleetPhase1",De.GxTargetGetStarfleetPhase2="GetStarfleetPhase2",De.GxTargetGetKeyboardLayout="GetKeyboardLayout",De.GxTargetGetAnselFeature="GetAnselFeature",De.GxTargetGetGfnBroadcastFeature="GetGfnBroadcastFeature",De.GxTargetGetDeeplinkSupport="GetDeeplinkSupport",De.GxTargetGetKBLayoutsConfig="GetKBLayoutsConfig",De.GxTargetGetUpsellMessage="GetUpsellMessage",De.GxTargetGetAllCloudVariables="GetAllCloudVariables",De.GxTargetGetBrowserClientCanary="GetBrowserClientCanary",De.GxTargetGetReservedSKUEnabled="GetReservedSKUEnabled",De.GxTargetGetReservedSKUIBetaFlag="GetReservedSKUIBetaFlag",De.GxTargetGetPathToPurchaseConfig="GetPathToPurchaseConfig",De.GxTargetGetPunctualUIConfig="GetPunctualUIConfig",De.GxTargetGetEnableBrowserIGSS="GetEnableBrowserIGSS",De.GxTargetGetGuestFlowClientConfig="GxTargetGetGuestFlowClientConfig",De.GetClientIMESupportedConfig="GetClientIMESupportedConfig",De.GxTargetGetGameLaunchUniversalConfig="GetGameLaunchUniversalConfig",De.Other="Other",De}(li||{}),Dr=function(De){return De.StreamingClient="StreamingClient",De.MallClient="MallClient",De.StoreLibrary="StoreLibrary",De.Unknown="Unknown",De.BackgroundAgent="BackgroundAgent",De.NvAppClient="NvAppClient",De}(Dr||{}),ns=function(De){return De.GxTarget="GxTarget",De}(ns||{}),ws=function(De){return De.UNDEFINED="UNDEFINED",De.TRUE="TRUE",De.FALSE="FALSE",De}(ws||{});const oo={HTTPFailure:{name:"HTTPFailure",gdprLevel:Vs.EU.Functional},HTTPSuccess:{name:"HTTPSuccess",gdprLevel:Vs.EU.Functional},HTTPCallResult:{name:"HTTPCallResult",gdprLevel:Vs.EU.Functional}};class ao extends Vs.YH{constructor(Me){super(Me),this.name=oo.HTTPFailure.name,this.gdprLevel=oo.HTTPFailure.gdprLevel}}class Da extends Vs.YH{constructor(Me){super(Me),this.name=oo.HTTPSuccess.name,this.gdprLevel=oo.HTTPSuccess.gdprLevel}}class Sl extends Vs.YH{constructor(Me){super(Me),this.name=oo.HTTPCallResult.name,this.gdprLevel=oo.HTTPCallResult.gdprLevel}}var Vr=s(76449),Ca=s(72945),ua=s(71152);const sa="78589530426925203";let rl=(()=>{class De{constructor(w,ie,We,xt,hn,On,Yn,ti){this.config=w,this.loggingService=ie,this.telemetryService=We,this.sharedStorageService=xt,this.systemInfoService=hn,this.eventStreamFactory=On,this.localeService=Yn,this.distributedTracingUtilService=ti,this.isCvListInitialized$=new da.m(1),this.cacheMaxAge=1440,this.isInitialized$=new da.m(1),this.batchCvsInitialized=new da.m(1),this.commonClientParams={},this.cachedCloudVariableMap=new Map,this.deviceOSName="",this.readFromSharedStorage=Ri=>this.sharedStorageService.readBlock(Ri).pipe((0,Un.ZZ)(ji=>(0,jr.of)(ji||{}))),this.writeToSharedStorage=(Ri,ji)=>{const Tr=ji.name;if(this.storageUpdateQueue.unshift(ji),this.storageUpdateQueue.length>1)return void this.logger.info("Added experiment to storage update queue",Tr);const ss=Ri;let Xr;return(0,ia.H)(this.readFromSharedStorage(ss)).pipe((0,Un.ZZ)(ls=>(Xr=ls,this.updateExperimentRefreshDate(ji),(ls=this.cleanupStorageBlock(ls))[Tr]=ji,this.sharedStorageService.writeBlock(ss,ls)))).subscribe(()=>{this.logger.info("Cloud variable written to shared storage",ji.name,ji.value),this.processStorageUpdateQueue()},ls=>{this.logger.error(`Error while writing to shared storage for ${Tr}`,ls),this.processStorageUpdateQueue()}),null},this.getSharedStorageKey=Ri=>{let ji=this.clientInfo.userId!==Vs.oX.Undefined?this.clientInfo.userId:void 0;return Ri===Vs.CV.DEVICE_ID&&(ji=void 0),this.logger.info("Got SharedStorageKey: ",this.storageKey+"_"+ji),this.storageKey+"_"+ji},this.logger=ie.getLogger("experienceControl/service"),this.storageKey="experienceControl",this.storageUpdateQueue=[],this.clientInfo={deviceId:"",userId:Vs.oX.Undefined,idpId:Vs.oX.Undefined,clientId:this.config.clientId,clientVer:this.config.clientVersion,clientVariant:this.getCommonClientVariant(this.config.clientVariant),deviceOS:"",deviceType:"",deviceMake:"",deviceModel:"",deviceOSVersion:"",clientType:Us.CommonClientType.Undefined,browserType:""},this.cacheMaxAge=this.config.cacheMaxAge||this.cacheMaxAge,this.fetchCloudVariableStream=this.eventStreamFactory.createStream(this.fetchCloudVariables.bind(this))}getCommonClientVariant(w){switch(w){case"ibeta":return Us.CommonClientVariant.iBeta;case"release":return Us.CommonClientVariant.Release;default:return Us.CommonClientVariant.Undefined}}setUserInfo(w){this.clientInfo.userId=w.userId||Vs.oX.Undefined,this.clientInfo.idpId=w.idpId||Vs.oX.Undefined}setCvList(w){this.cvList=w,this.isCvListInitialized$.next(!0)}cvListInitialized(){return this.isCvListInitialized$.asObservable()}fetchCloudVariables(){return(0,Oo.zV)([this.isGxTargetConfiguredCorrectly(),this.cvListInitialized()]).pipe((0,ii.s)(1),(0,Un.ZZ)(([w,ie])=>w?(0,$n.p)([this.readFromSharedStorage(this.getSharedStorageKey(Vs.CV.USER_ID)),this.readFromSharedStorage(this.getSharedStorageKey(Vs.CV.DEVICE_ID))]):(this.batchCvsInitialized.next(!0),(0,ra.$)(`client info not available -> clientId, clientVersion, userId, idpId, deviceId, \n clientVariant, clientType, deviceOS, deviceOSVersion, deviceType, deviceModel, deviceMake:\n ${this.clientInfo.clientId}, ${this.clientInfo.clientVer}, ${this.clientInfo.userId},\n ${this.clientInfo.idpId}, ${this.clientInfo.deviceId}, ${this.clientInfo.clientVariant},\n ${this.clientInfo.clientType}, ${this.clientInfo.deviceOS}, ${this.clientInfo.deviceOSVersion},\n ${this.clientInfo.deviceType}, ${this.clientInfo.deviceModel}, ${this.clientInfo.deviceMake}`))),(0,Un.ZZ)(([w,ie])=>{const We=this.callGetMultipleCloudVariableApi({variant:this.config.clientVariant,...this.clientInfo.clientType===Us.CommonClientType.Browser&&{userDefaultUILanguage:this.localeService.getShortLocale()}}).pipe((0,Hi.M)(On=>{this.batchCvsInitialized.next(!0)}),(0,Nr.W)(On=>{this.logger.error("Error in batch call",On);const Yn=new Map;return this.batchCvsInitialized.next(!0),(0,jr.of)(Yn)}));let xt,hn;return this.logger.info("Requested cvs in batch call",this.cvList),(0,wr.isEmpty)(w)?We:(this.cvList.forEach(On=>{hn=w[On],hn?(xt={variation:hn.result,value:hn.value,activity:hn.activity,metadata:hn.metadata,isCachedResult:!0},this.cachedCloudVariableMap.set(On,xt)):ie&&ie[On]&&(hn=ie[On],hn&&(xt={variation:hn.result,value:hn.value,activity:hn.activity,metadata:hn.metadata,isCachedResult:!0},this.cachedCloudVariableMap.set(On,xt)))}),We.subscribe(mt.l),We.pipe((0,Or.o)(this.config.allCvNetworkTimeoutForCacheFallback,(0,jr.of)(this.cachedCloudVariableMap))))}))}callGetMultipleCloudVariableApi(w={}){const ie=new Map,We=[],xt=this.distributedTracingUtilService.startSpan(Vr.pB.ClientGetCloudVariable),hn=this.distributedTracingUtilService.extractContextFromSpan(xt);return(0,ia.H)(this.cloudVariableSdk.getCloudVariables(this.cvList,Us.CachePolicy.LIVE,{...this.commonClientParams,...w},hn).catch(On=>{this.logger.error("Error in getCloudVariables from cloudVariableSdk",On)})).pipe((0,Un.ZZ)(On=>{if(On?.size>0){this.sendCloudVariableFetchSuccessTelemetry(On,Bo.GxTargetGetCloudVariable,li.GxTargetGetAllCloudVariables);const Yn={name:void 0,variation:void 0,value:void 0,activity:void 0,isCachedResult:!1,state:Us.CloudVariableStatus.Unknown};return this.cvList.forEach(ti=>{if(On.get(ti)){const ji=On.get(ti);ji.clientRequestParams={commonClientParams:this.commonClientParams,additionalClientParams:w};const Tr={name:ji.name,variation:ji.result,value:ji.value,activity:ji.activity,metadata:ji.metadata,isCachedResult:!1,state:Us.CloudVariableStatus.Unknown};ie.set(ji.name,Tr),We.push((0,jr.of)(Tr))}else ie.set(ti,Yn)}),this.distributedTracingUtilService.closeSpan(xt),(0,Yt.yU)(...We)}return void 0===On?(this.sendCloudVariableFetchFailureTelemetry(On,Bo.GxTargetGetCloudVariable,li.GxTargetGetAllCloudVariables),this.logger.error("Batch call returned failure")):(this.sendCloudVariableFetchSuccessTelemetry(On,Bo.GxTargetGetCloudVariable,li.GxTargetGetAllCloudVariables),this.logger.error("Batch call returned empty result")),this.distributedTracingUtilService.setSpanAttribute(xt,Vr.NS.Error,!0),this.distributedTracingUtilService.closeSpan(xt),(0,jr.of)(new Map)}),(0,es.T)(()=>ie),(0,Zs.t)(1))}refreshCloudVariables(){this.fetchCloudVariableStream.refresh()}get batchCvsFetchedStatus$(){return this.batchCvsInitialized.asObservable()}processStorageUpdateQueue(){if(this.storageUpdateQueue.pop(),this.storageUpdateQueue.length){this.logger.info("Processing next experiment in queue");const w=this.storageUpdateQueue.pop(),ie=this.getSharedStorageKey(w.activity.activationType);this.writeToSharedStorage(ie,w)}}cleanupStorageBlock(w){const ie=new Set(Object.values(this.config.experiences));for(const We in w)ie.has(We)||(this.logger.info(`removing deprecated activity: ${We} from storage`),delete w[We]);return w}updateExperimentRefreshDate(w){return w.metadata||(w.metadata={}),w.metadata.refreshDate=new Date,w}initialize(w,ie){this.hostClientType=w||Dr.Unknown;const We=(0,Oo.zV)([this.systemInfoService.getDeviceOSType(),this.systemInfoService.getSystemInfo([Bi.Lu.DeviceId,Bi.Lu.OSName,Bi.Lu.OSVersion,Bi.Lu.DeviceType,Bi.Lu.BrowserName,Bi.Lu.SystemName,Bi.Lu.VendorName])]).pipe((0,es.T)(([xt,hn])=>({deviceId:this.config.piplExemption?Bi.Qe:hn.DeviceId,osName:hn.OSName,osVersion:hn.OSVersion,osType:xt,deviceType:hn.DeviceType,browserType:hn.BrowserName,deviceModel:hn.SystemName,deviceMake:hn.VendorName})));(0,Oo.zV)([We,ie]).pipe((0,Un.ZZ)(([xt,hn])=>{this.clientInfo.deviceId=xt.deviceId,this.clientInfo.browserType=xt.browserType,this.clientInfo.deviceOS=xt.osType,this.deviceOSName=xt.osName,this.clientInfo.deviceType=xt.deviceType||Vs.oX.Undefined,this.clientInfo.deviceMake=xt.deviceMake||Vs.oX.Undefined,this.clientInfo.deviceModel=xt.deviceModel||Vs.oX.Undefined,this.clientInfo.deviceOSVersion=xt.osVersion,this.clientInfo.clientType=Bi.zk.isBrowserPlatform()?Us.CommonClientType.Browser:Us.CommonClientType.Native,this.updateCommonClientParams(Ya.OSName,this.getSupportedOSName(xt.osName)),this.logger.info("Client info at initialize:",this.clientInfo);const Yn=this.config;return this.cloudVariableSdk=new Us.CloudVariableSdkService({url:Yn.server,defaultRetries:Yn.defaultRetries,defaultTimeBetweenRetries:Yn.defaultTimeBetweenRetries,defaultTimeout:Yn.defaultTimeout,cacheMaxAge:Yn.cacheMaxAge,storageConfig:{storageType:Us.StorageType.IndexedDB},loggingLevel:Us.LoggingLevel.Info,clientInfo:this.clientInfo},this.config.openTracingConfig.exportConfig,this.distributedTracingUtilService.isTracingDisabled(),this.config.storage===Vs.P6.IndexedDb?void 0:this.readFromSharedStorage,this.config.storage===Vs.P6.IndexedDb?void 0:this.writeToSharedStorage,this.getSharedStorageKey),this.initGlobalTagsForOpenTracing(hn,w),(0,jr.of)(!0)})).subscribe(()=>{this.logger.info("Initialized successfully"),this.isInitialized$.next(!0)},xt=>{this.logger.error("Error initializing service",xt),this.isInitialized$.next(!1)})}initGlobalTagsForOpenTracing(w,ie){this.cloudVariableSdk.updateGlobalTags({[Vr.NS.ServiceVersion]:this.clientInfo.clientVer,[Vr.NS.ServiceType]:Vr.Se.Pc_A7,[Vr.NS.SpanKind]:Vr.ls.Client,[Vr.NS.AppName]:ie,[Vr.NS.DeviceId]:this.clientInfo.deviceId,[Vr.NS.ClientOs]:this.clientInfo.deviceOS,[Vr.NS.ClientOsName]:this.deviceOSName,[Vr.NS.ClientOsVersion]:this.clientInfo.deviceOSVersion,[Vr.NS.CountryCode]:w})}getSupportedOSName(w){switch(w=w?.toLowerCase().includes("windows")?"windows":w,w?.toLowerCase()){case"windows":return"WINDOWS";case"mac":case"macos":return"MACOS";case"linux":return"LINUX";case"chrome os":case"chromeos":return"CHROMEOS";case"ios":return"IOS";case"ipados":return"IPADOS";case"webos":return"WEBOS";case"tizen":return"TIZEN";case"xbox":return"XBOX";case"android":return"ANDROID";case"visionos":return"VISIONOS";case"steamos":return"STEAMOS";default:return this.logger.info("Cannot get supported OS name for OS: ",w),""}}updateCommonClientParams(w,ie){w&&ie&&(this.commonClientParams[w]=ie)}getCloudVariable(w,ie={},We,xt,hn,On,Yn){return this.config.denyListExperiences.includes(w)?this.fetchSingleCloudVariable(w,ie,We,xt,hn,On,Yn).pipe((0,Hi.M)(ti=>this.logger.info("Received requested cloud variable information: ",w,ti))):this.batchCvsFetchedStatus$.pipe((0,ii.s)(1),(0,Un.ZZ)(()=>this.fetchCloudVariableStream.get$().pipe((0,Un.ZZ)(ti=>{const Ri=ti.get(w);return Ri?Ri?.value?(0,jr.of)(Ri):(0,ra.$)(Qa):this.fetchSingleCloudVariable(w,ie,We,xt,hn,On)}),(0,Hi.M)(ti=>{this.logger.info("Received requested cloud variable information: ",w,ti)}),(0,Nr.W)(ti=>(0,ra.$)(ti)))))}fetchSingleCloudVariable(w,ie={},We,xt,hn,On,Yn){let ti,Ri;return this.logger.info("fetchSingleCloudVariable called for ",w),this.isGxTargetConfiguredCorrectly(On).pipe((0,Un.ZZ)(([ji])=>(this.logger.info("cloud variable requested with params",w,ie,{...this.clientInfo}),ji?this.fetchCachedData(w):(0,ra.$)(`client info not available -> clientId, clientVersion, userId, \n idpId, deviceId, clientVariant, clientType, deviceOS, deviceOSVersion, deviceType, deviceModel, deviceMake:\n ${this.clientInfo.clientId}, ${this.clientInfo.clientVer}, ${this.clientInfo.userId},\n ${this.clientInfo.idpId}, ${this.clientInfo.deviceId}, ${this.clientInfo.clientVariant},\n ${this.clientInfo.clientType}, ${this.clientInfo.deviceOS}, ${this.clientInfo.deviceOSVersion},\n ${this.clientInfo.deviceType}, ${this.clientInfo.deviceModel}, ${this.clientInfo.deviceMake}`))),(0,Un.ZZ)(ji=>{ti=ji,Ri=ti&&ti[w];const Tr=this.callGetCloudVariableApi(w,ie,Ri,ti,xt,hn);if(Ri){const ss={additionalClientParams:ie,commonClientParams:this.commonClientParams},Xr=this.cacheIsCurrent(Ri,We?.cacheLifetimeOverride)&&(Yn||(0,wr.isEqual)(ss,Ri.clientRequestParams)),ls=(0,jr.of)({name:Ri.name,variation:Ri.result,value:Ri.value,activity:Ri.activity,metadata:Ri.metadata,isCachedResult:!0,state:Us.CloudVariableStatus.Unknown});if(We?.useCache){if(Xr)return ls}else if(We?.useNetworkTimeoutForCacheFallback)return Tr.subscribe(mt.l,Yo=>{this.logger.info(`Error while fetching ${w}`,Yo)}),Tr.pipe((0,Or.o)(this.config.networkTimeoutForCacheFallback,ls))}return Tr}))}callGetCloudVariableApi(w,ie={},We,xt,hn,On){const Yn=this.distributedTracingUtilService.startSpan(Vr.pB.ClientGetCloudVariable),ti=this.distributedTracingUtilService.extractContextFromSpan(Yn);return(0,ia.H)(this.cloudVariableSdk.getCloudVariable(w,Us.CachePolicy.LIVE,{...this.commonClientParams,...ie},ti).catch(Ri=>{this.logger.error("Error in getCloudVariable from cloudVariableSdk",Ri)})).pipe((0,Un.ZZ)(Ri=>{if(Ri){if(this.sendCloudVariableFetchSuccessTelemetry(Ri,hn,On),(0,wr.isEmpty)(Ri))return(0,ra.$)(new Qa);this.distributedTracingUtilService.closeSpan(Yn);const ji=Ri;return ji.clientRequestParams={commonClientParams:this.commonClientParams,additionalClientParams:ie},(0,jr.of)({name:ji.name,variation:ji.result,value:ji.value,activity:ji.activity,metadata:ji.metadata,isCachedResult:!1,state:Us.CloudVariableStatus.Unknown})}return void 0===Ri?(0,ra.$)(new za):(this.sendCloudVariableFetchSuccessTelemetry(Ri,hn,On),(0,ra.$)(new Qa))}),(0,Nr.W)(Ri=>(this.distributedTracingUtilService.setSpanAttribute(Yn,Vr.NS.Error,!0),this.distributedTracingUtilService.closeSpan(Yn),Ri instanceof Qa?We?this.cleanupExperienceForCloudVariable(w,xt).pipe((0,Un.ZZ)(()=>(0,ra.$)(Ri))):(this.logger.info("Empty cloud variable and no cached response"),(0,ra.$)(Ri)):We?(this.logger.info(`Applying cached experiment: ${w}`),this.sendCloudVariableFetchFailureTelemetry(Ri,hn,On),(0,jr.of)({name:We.name,variation:We.result,value:We.value,activity:We.activity,metadata:We.metadata,isCachedResult:!0,state:Us.CloudVariableStatus.Unknown})):(this.sendCloudVariableFetchFailureTelemetry(Ri,hn,On),(0,ra.$)(Ri)))),(0,Zs.t)(1))}cleanupExperienceForCloudVariable(w,ie){const hn=this.getSharedStorageKey(ie[w].activity.activationType);return this.logger.info(`Empty experiment list clearing the cache for: ${w}`),delete ie[w],this.sharedStorageService.writeBlock(hn,ie)}fetchCachedData(w){let ie=(0,jr.of)({});if(this.clientInfo.userId!==Vs.oX.Undefined){const We=this.getSharedStorageKey(Vs.CV.USER_ID);ie=this.readFromSharedStorage(We)}return(0,$n.p)([ie,this.readFromSharedStorage(this.getSharedStorageKey(Vs.CV.DEVICE_ID))]).pipe((0,Un.ZZ)(([We,xt])=>{let hn;return We&&We[w]?(this.logger.info("found activity in user storage",w,We[w]),hn=We):xt&&xt[w]?(this.logger.info("found activity in global storage",w,xt[w]),hn=xt):hn={},(0,jr.of)(hn)}))}cacheIsCurrent(w,ie=this.cacheMaxAge){return-1===ie?!!w:!!(w&&Bi.Nq.getDifferenceInTime(new Date,this.getExperimentRefreshDate(w),Bi.yr.MINUTES)<=ie)}getExperimentRefreshDate(w){return w.metadata&&w.metadata.refreshDate}isGxTargetConfiguredCorrectly(w){let ie=this.isInitialized$;return w&&(ie=this.isInitialized$.pipe((0,Un.ZZ)(()=>w),(0,Un.ZZ)(We=>(this.logger.info("Setting user info"),this.setUserInfo(We),(0,jr.of)(We))))),ie.pipe((0,ii.s)(1),(0,es.T)(()=>[!!(this.clientInfo.clientId&&this.clientInfo.clientVer&&this.clientInfo.deviceId),this.clientInfo.clientId,this.clientInfo.clientVer,this.clientInfo.deviceId,this.clientInfo.userId,this.clientInfo.idpId,this.clientInfo.browserType,this.clientInfo.clientVariant,this.clientInfo.clientType,this.clientInfo.deviceOS,this.clientInfo.deviceOSVersion,this.clientInfo.deviceType,this.clientInfo.deviceModel,this.clientInfo.deviceMake]))}sendCloudVariableFetchFailureTelemetry(w,ie,We){if(0===this.config.clientId.localeCompare(sa)){const xt=new ao({sourceComponent:this.hostClientType||Dr.Unknown,originalService:ns.GxTarget,serviceUseCase:ie,serviceSubUseCase:We,url:w?.config?.url||"",networkErrorCode:String(w&&w.response?w.response.status:0),destinationIp:"",xRequestId:w&&w.xRequestId?w.xRequestId:"",retryCount:0,wasSWCacheBypassed:ws.UNDEFINED,networkErrorMessage:w?.response?.message?.substring(0,1024)||""});this.telemetryService.push(xt)}else{const xt=new Sl({sourceComponent:this.hostClientType||Dr.Unknown,originalService:ns.GxTarget,serviceUseCase:ie,serviceSubUseCase:We,url:w?.config?.url||"",networkErrorCode:String(w&&w.response?w.response.status:0),destinationIp:"",xRequestId:w&&w.xRequestId?w.xRequestId:"",httpStatus:w?.response?.status||0,responseData:"",durationMs:0,retryCount:0,wasSWCacheBypassed:ws.UNDEFINED});this.telemetryService.push(xt)}}sendCloudVariableFetchSuccessTelemetry(w,ie,We){if(0===this.config.clientId.localeCompare(sa)){const xt=new Da({sourceComponent:this.hostClientType||Dr.Unknown,originalService:ns.GxTarget,serviceUseCase:ie,serviceSubUseCase:We,url:w?.url||"",httpStatus:w?.httpStatus||200,durationMs:Math.round(w?.durationMs)||0,destinationIp:"",responseData:"",xRequestId:w?.xRequestId||"",retryCount:0,wasSWCacheBypassed:ws.UNDEFINED});this.telemetryService.push(xt)}else{const xt=new Sl({sourceComponent:this.hostClientType||Dr.Unknown,originalService:ns.GxTarget,serviceUseCase:ie,serviceSubUseCase:We,url:w?.url||"",networkErrorCode:"",destinationIp:"",xRequestId:w?.xRequestId||"",httpStatus:w?.httpStatus||200,responseData:"",durationMs:Math.round(w?.durationMs)||0,retryCount:0,wasSWCacheBypassed:ws.UNDEFINED});this.telemetryService.push(xt)}}static{this.\u0275fac=function(ie){return new(ie||De)(n.KVO(hs),n.KVO(Bi.J6),n.KVO(Vs.H0),n.KVO(Ca.yQ),n.KVO(Bi.zW),n.KVO(ua.mZ),n.KVO(Bi.iH),n.KVO(Vr.Z1))}}static{this.\u0275prov=n.jDH({token:De,factory:De.\u0275fac,providedIn:"root"})}}return De})();var ll=s(20812),Os=s(58108),lr=s(47847),zs=s(26772),xa=s(40018),ho=s(43071),br=s(31627),ya=s(8427),rs=s(26513),cl=s(80583),Ta=s(8619),pl=s(10174),io=s(72147),Fa=s(81262),Mr=s(58474),Ze=s(79539),_=s(62931),D=s(51917);class j{constructor(Me,w={}){this.filterType=Me,Object.assign(this,w),this.uId=this.generateId()}getRoute(){return this.route}getRouteParams(){return{searchParamsId:this.uId,...this.routeParams}}cloneMetadata(){const{uId:Me,...w}=this;return new j(this.filterType,{...w})}cloneMetadataWith(Me){const{uId:w,...ie}=this;return new j(this.filterType,{...ie,...Me})}getId(){return this.uId}generateId(){const Me=crypto.getRandomValues(new Uint32Array(1))[0];return this.base64Encode(Me).slice(0,12)}saveMetadata(Me,w){const ie={};for(const We in w)w.hasOwnProperty(We)&&(ie[We]=w[We]);this.matchMetadata=ie,this.matchedFullText=Me}canScrollToElementViaMatchedTerm(){return this.getMatchedTerms().length>0}getMatchedTerms(){return this.matchMetadata?Object.keys(this.matchMetadata):[]}getFieldsForMatchedTerm(Me){const w=this.matchMetadata[Me];return w?Object.keys(w):[]}getPositionsForMatchedTerm(Me,w){const ie=this.matchMetadata?this.matchMetadata[Me]:void 0,We=ie?ie[w]:null;return We?We.position:[]}base64Encode(Me){return window.btoa(Me.toString())}}var pe=function(De){return De.GraphicsContent="GraphicsContent",De.SettingsContent="SettingsContent",De.RewardContent="RewardContent",De.SystemContent="SystemContent",De}(pe||{});const _e={GraphicsContent:s(1956),SettingsContent:s(39332),RewardContent:s(72978),SystemContent:s(75576)};var xe=function(De){return De.Overview="overview",De.Performance="performance",De.Display="display",De.Video="video",De}(xe||{}),He=function(De){return De.Program="program",De.Global="global",De}(He||{}),ht=function(De){return De.Notifications="notifications",De.About="about",De.Features="features",De}(ht||{}),yt=s(96542),Gt=s(61519);let $t=(()=>{class De{constructor(w,ie,We){this.loggingService=w,this.translateService=ie,this.searchDbService=We,this.dataMap=new Map,this.logger=this.loggingService.getLogger("nvapp/StaticContentService")}loadStaticJsonData(){Object.keys(_e).forEach(w=>{const ie=_e[w];ie&&this.storeStaticJsonData(w,ie)})}storeStaticJsonData(w,ie){try{this.dataMap.set(w,ie),this.logger.info(`Static content loaded for service key: ${w}`)}catch(We){this.logger.error(`Failed to load static content for service key ${w}: ${We.message}`)}}getStaticIndexableData(w,ie,We){const xt=this.dataMap.get(w);return xt?[...this.getPageStaticData(xt,ie,We),...this.getAllTabStaticData(xt,ie,We)]:(this.logger.error(`No static content found for service key: ${w}`),[])}getPageTitleByKey(w){const ie=this.dataMap.get(w);return ie?this.translateService.instant(ie.pageTitle):(this.logger.error(`No static content found for service key: ${w}`),"")}getPageContainerSubTitle(w){return this.translateService.instant(this.getPageTitle(w))}getPageStaticData(w,ie,We){return this.getPageIndexableContent(w).map(xt=>{const hn=new j(ie,{containerSubTitle:this.getPageContainerSubTitle(w),pageHighlightSection:this.getPageHighlightSection(w),route:We});return this.searchDbService.addSearchParams(hn),{title:this.translateService.instant(xt),param:hn.getId()}})}getCommonTabSearchMetadata(w,ie,We,xt,hn={}){const On=this.dataMap.get(w);if(!On)return this.logger.error(`No static content found for search key: ${w}, filterGroup: ${We}`),null;const Yn=this.getTab(w,ie);return Yn?new j(We,{containerSubTitle:this.translateService.instant(Yn.text),route:xt,pageHighlightSection:this.getTabHighlightSection(Yn.tabName,On.pageName),routeParams:{activeTab:Yn.tabName,activeTabIndex:Yn.tabIndex,...hn}}):(this.logger.error(`No tab found with name: ${ie} for search key: ${w}, filterGroup: ${We}`),null)}getCommonPageSearchMetadata(w,ie,We,xt={}){const hn=this.dataMap.get(w);return hn?new j(ie,{containerSubTitle:this.getPageContainerSubTitle(hn),route:We,routeParams:xt,pageHighlightSection:this.getPageHighlightSection(hn)}):(this.logger.error(`No static content found for search key: ${w}, filterGroup: ${ie}`),null)}getAllTabStaticData(w,ie,We){return(0,wr.flatMap)(this.getTabs(w),(xt,hn)=>{const On=new j(ie,{containerSubTitle:this.getPageContainerSubTitle(w),route:We,pageHighlightSection:this.getTabHighlightSection(xt.tabName,w.pageName),routeParams:{activeTab:xt.tabName,activeTabIndex:hn}});return On?(this.searchDbService.addSearchParams(On),[{title:this.translateService.instant(xt.text),param:On.getId()},...this.getTabIndexableContent(w,xt.tabName).map(Ri=>{const ji=On.cloneMetadataWith({containerSubTitle:this.translateService.instant(xt.text)});return this.searchDbService.addSearchParams(ji),{title:this.translateService.instant(Ri),param:ji.getId()}})]):[]})}getTabStaticData(w,ie,We,xt,hn,On=[]){const Yn=this.dataMap.get(w);if(!Yn)return this.logger.error(`No static content found for service key: ${w}`),[];const ti=this.getTab(w,ie);if(!ti)return this.logger.error(`No tab found with name: ${ie} in service: ${w}`),[];const Ri=new j(We,{containerSubTitle:this.getPageContainerSubTitle(Yn),route:xt,pageHighlightSection:this.getTabHighlightSection(ti.tabName,Yn.pageName),routeParams:{activeTab:ti.tabName,activeTabIndex:hn.activeTabIndex,...hn}});return this.searchDbService.addSearchParams(Ri),[{title:this.translateService.instant(ti.text),param:Ri.getId()},...[...this.getTabIndexableContent(Yn,ti.tabName),...On].map(Tr=>{const ss=Ri.cloneMetadataWith({containerSubTitle:this.translateService.instant(ti.text)});return this.searchDbService.addSearchParams(ss),{title:this.translateService.instant(Tr),param:ss.getId()}})]}getTabs(w){return w.tabs.map((ie,We)=>(ie.tabIndex=We,ie))}getPageName(w){return this.dataMap.get(w)?.pageName}getPageTitle(w){return w.pageTitle}getPageHighlightSection(w){const ie=this.capitalize(w.pageName);return br.kA[ie]}getTabHighlightSection(w,ie){const We=this.capitalize(w),xt=this.capitalize(ie);return br.kA[We]??br.kA[xt]??br.kA.None}getPageTabsIndexableContent(w){return w?.tabs?.map(ie=>ie.text)}getPageIndexableContent(w){return w.content.strings.map(ie=>ie.text)}getTab(w,ie){const We=this.dataMap.get(w);if(!We)return;const xt=We.tabs.findIndex(hn=>hn.tabName===ie);if(-1!==xt){const hn=We.tabs[xt];return hn.tabIndex=xt,hn}}getTabIndexableContent(w,ie){const We=w[ie]?.content;return We?We.strings.map(xt=>xt.text):[]}getPageContentStrings(w){return w.content.strings.map(ie=>ie.text)}getTabContentStrings(w,ie){const We=this.getTab(w,ie),xt=this.dataMap.get(w);if(xt)return xt[We?.tabName]?.content.strings.map(hn=>hn.text)??[]}capitalize(w){return w.charAt(0).toUpperCase()+w.slice(1).toLowerCase()}static{this.\u0275fac=function(ie){return new(ie||De)(n.KVO(Bi.J6),n.KVO(yt.c$),n.KVO(Gt.u))}}static{this.\u0275prov=n.jDH({token:De,factory:De.\u0275fac,providedIn:"root"})}}return De})(),st=(()=>{class De{constructor(w,ie,We){this.translateService=w,this.staticContentService=ie,this.searchDbService=We}getBaselineAppSearchDocList(w=[]){return w.map(ie=>{const We=this.getProgramSearchMetadata(ie,{localId:ie?.localId?.toString()});if(We)return this.searchDbService.addSearchParams(We),{title:ie?.title??ie?.displayName,displayName:ie?.displayName,param:We.getId(),keywords:[]}}).filter(Boolean)}getProgramSearchMetadata(w,ie={}){const We={containerSubTitle:this.getProgramContainerSubTitle(w),appGameIcon:this.getAppGameIcon(w),pageHighlightSection:br.kA.Program,route:zs.f.Manage3dSettings,routeParams:{activeTab:He.Program,localId:w?.localId?.toString(),activeTabIndex:0,...ie}};return new j(br.I8.Graphics,We)}getProgramContainerSubTitle(w){const ie=w?.displayName,We=this.staticContentService.getTab(pe.GraphicsContent,He.Program);return w?`${this.translateService.instant(We?.text)} | ${ie}`:`${this.translateService.instant(We?.text)}`}getGlobalContainerSubTitle(){const w=this.staticContentService.getTab(pe.GraphicsContent,He.Global);return`${this.translateService.instant(w?.text)}`}getOpsContainerSubTitle(w){const ie=w?.displayName;return`${this.translateService.instant(w?.isCreativeApp?"ops.inApp":"ops.inGame")} ${this.translateService.instant("ops.setting")} | ${ie}`}getDriverContainerSubTitle(){return this.translateService.instant("drivers.title")}getAppGameIcon(w){return w?.images?.GAME_ICON??"game_controller"}static{this.\u0275fac=function(ie){return new(ie||De)(n.KVO(yt.c$),n.KVO($t),n.KVO(Gt.u))}}static{this.\u0275prov=n.jDH({token:De,factory:De.\u0275fac,providedIn:"root"})}}return De})(),tt=(()=>{class De{constructor(w,ie,We){this.loggingService=w,this.programService=ie,this.searchUtilsService=We,this.appsListMap=new Map,this.appsListMapSubject=new rs.t(new Map),this.appsListMap$=this.appsListMapSubject.asObservable(),this.programsSearchDocSubject=new rs.t([]),this.programsSearchDoc$=this.programsSearchDocSubject.asObservable(),this.logger=this.loggingService.getLogger("nvapp/ProgramSearchDataSourceService")}refreshProgramsData(){return this.getAllProgramsSearchDocs().pipe((0,Hi.M)(w=>{this.programsSearchDocSubject.next(w),this.logger.info(`Updated program search docs with ${w.length} items`)}),(0,es.T)(()=>{}),(0,Nr.W)(w=>(this.logger.error("Error refreshing program data:",w),this.programsSearchDocSubject.next([]),(0,jr.of)(void 0))))}getAllProgramsSearchDocs(){return this.programService.getAllPrograms().pipe((0,es.T)((w=[])=>{const ie=w.filter(We=>!We.isHidden);return this.updateAppsListMap(ie),ie.length>0?this.searchUtilsService.getBaselineAppSearchDocList(ie):[]}))}updateAppsListMap(w){this.appsListMap.clear(),w.forEach(ie=>{const We=ie.localId.toString();this.appsListMap.set(We,ie)}),this.appsListMapSubject.next(this.appsListMap),this.logger.info(`Updated appsListMap with ${this.appsListMap.size} programs`)}getProgramById(w){return this.appsListMap&&this.appsListMap.has(w)?this.appsListMap.get(w):null}static{this.\u0275fac=function(ie){return new(ie||De)(n.KVO(Bi.J6),n.KVO(D.Z),n.KVO(st))}}static{this.\u0275prov=n.jDH({token:De,factory:De.\u0275fac,providedIn:"root"})}}return De})();var Tt=s(6538),Ye=s(60213),kt=s(17543);let It=(()=>{class De{constructor(w,ie,We,xt,hn,On,Yn){this.loggingService=w,this.opsService=ie,this.opsApiService=We,this.localeService=xt,this.programService=hn,this.searchDbService=On,this.searchUtilsService=Yn,this.opsSettingsSearchDocSubject=new rs.t([]),this.opsSettingsSearchDoc$=this.opsSettingsSearchDocSubject.asObservable(),this.logger=this.loggingService.getLogger("nvapp/OpsSearchDataSourceService")}initialize(){this.subscribeToAllAppsProcessed()}subscribeToAllAppsProcessed(){this.opsService.allAppsProcessed$.pipe((0,_.B)(100),(0,io.n)(()=>(this.logger.info("Search: Handling all apps processed event for search ....."),this.createOpsSettingSearchDocuments()))).subscribe(w=>{this.opsSettingsSearchDocSubject.next(w),this.logger.info("Search: Ops Search index built successfully.")},w=>{this.opsSettingsSearchDocSubject.next([]),this.logger.error("Search: Error building search index:",w)})}createOpsSettingSearchDocuments(){const w=this.localeService.getLocale();return(0,Oo.zV)([this.opsApiService.getOpsDBState(),this.programService.getAllPrograms().pipe((0,ii.s)(1))]).pipe((0,es.T)(([ie,We])=>{const xt=[];for(const hn of We){const On=hn?.localId,ti=ie.get(On)?.translationData,Ri=ti&&ti.get(w);if(Ri)for(const[ji,Tr]of Object.entries(Ri)){const ss=Tr.nameTranslation,Xr=Tr.values;if(hn?.isCreativeApp&&(Tr.name===Tt.jY.DisplayMode||Tr.name===Tt.jY.Resolution))continue;const ls=[ss];for(const tl of Object.values(Xr))ls.push(tl?.valueTranslation);const Yo={containerSubTitle:this.searchUtilsService.getOpsContainerSubTitle(hn),appGameIcon:this.searchUtilsService.getAppGameIcon(hn),pageHighlightSection:br.kA.Program,route:zs.f.Manage3dSettings,routeParams:{activeTab:He.Program,activeTabIndex:0,localId:hn?.localId?.toString()}},wa=new j(br.I8.Graphics,Yo);if(wa){this.searchDbService.addSearchParams(wa);const tl={title:ss,appDisplayName:hn?.displayName,keywords:ls,param:wa.getId()};xt.push(tl)}else this.logger.warn("Search: Search metadata not created for app:",hn?.displayName)}else this.logger.warn("Search: No translation data found for app:",hn?.displayName)}return this.logger.info("Search: OpsSettingSearchDocs, Total Count - ",xt?.length),xt}))}static{this.\u0275fac=function(ie){return new(ie||De)(n.KVO(Bi.J6),n.KVO(Ye.s),n.KVO(kt.M),n.KVO(Bi.iH),n.KVO(D.Z),n.KVO(Gt.u),n.KVO(st))}}static{this.\u0275prov=n.jDH({token:De,factory:De.\u0275fac,providedIn:"root"})}}return De})();var un=s(30081);let xn=(()=>{class De{constructor(w,ie,We){this.searchDbService=w,this.layoutService=ie,this.loggingService=We,this.discoverSearchDocSubject=new rs.t([]),this.discoverSearchDoc$=this.discoverSearchDocSubject.asObservable(),this.logger=this.loggingService.getLogger("nvapp/DiscoverSearchDataSourceService")}initialize(){this.subscribeToAppsMetaData()}subscribeToAppsMetaData(){this.layoutService.layoutItems$.subscribe(w=>{this.logger.info("Handling appMetaData processed event"),this.discoverSectionTitle=w?.appsTitle;const We=this.createDiscoverSearchDocuments(w?.appMetadata??[]);this.discoverSearchDocSubject.next(We)},w=>{this.logger.error("Error subscribing to layoutItems:",w),this.discoverSearchDocSubject.next([])})}getDiscoverSectionTitle(){return this.discoverSectionTitle}createDiscoverSearchDocuments(w){const ie=[];return w.forEach(We=>{const xt=new j(br.I8.Home,{containerSubTitle:this.getDiscoverSectionTitle(),appGameIcon:We?.images?.GAME_ICON,route:zs.f.Home,pageHighlightSection:br.kA.Discover}),hn={title:We.title,subTitle:We.shortDescription,description:We.longDescription,keywords:[],param:xt.getId()};this.searchDbService.addSearchParams(xt),ie.push(hn)}),ie}static{this.\u0275fac=function(ie){return new(ie||De)(n.KVO(Gt.u),n.KVO(un.Y),n.KVO(Bi.J6))}}static{this.\u0275prov=n.jDH({token:De,factory:De.\u0275fac,providedIn:"root"})}}return De})();var In=s(34593),Nn=s(90975),ri=s(51067),ui=s(98207),ne=s(26990),Ie=s(54569);let _t=(()=>{class De{constructor(w,ie,We,xt,hn,On,Yn,ti,Ri,ji){this.loggingService=w,this.localeService=ie,this.programService=We,this.manage3dSettingsUtilService=xt,this.translateService=hn,this.program3dSettingsService=On,this.searchDbService=Yn,this.programSearchDataSourceService=ti,this.staticContentService=Ri,this.searchUtilsService=ji,this.programSettingsMapSubject=new rs.t(new Map),this.programSettingsMap$=this.programSettingsMapSubject.asObservable(),this.globalSettingsSearchDocSubject=new rs.t([]),this.globalSettingsSearchDoc$=this.globalSettingsSearchDocSubject.asObservable(),this.programSettingsSearchDocSubject=new rs.t([]),this.programSettingsSearchDoc$=this.programSettingsSearchDocSubject.asObservable(),this.logger=this.loggingService.getLogger("nvapp/ProgramAndGlobalSearchDataSourceService"),this.logger.info("ProgramAndGlobalSearchDataSourceService initialized")}initiateGlobalSettingsRefresh(){return this.logger.info("Initiating global settings refresh"),this.refreshGlobalSettings().pipe((0,In.Z)([]),(0,io.n)(w=>this.getGlobalSettingsSearchDoc(w)),(0,Hi.M)(w=>{this.logger.info("Global settings search doc updated, Total Docs: ",w?.length),this.globalSettingsSearchDocSubject.next(w)}),(0,Nr.W)(w=>(this.logger.error("Error fetching global settings:",w),this.globalSettingsSearchDocSubject.next([]),(0,jr.of)([]))),(0,es.T)(()=>{}))}getStaticIndexableData(){return this.staticContentService.getStaticIndexableData(pe.GraphicsContent,br.I8.Graphics,zs.f.Manage3dSettings)}initiateAllProgramSettingsRefresh(){return this.logger.info("Initiating all program settings refresh"),this.getAllProgramSettingsWithAppId().pipe((0,Un.ZZ)(w=>w&&0!==w.size?this.getAllProgramSettingsSearchDocs(w):(this.programSettingsSearchDocSubject.next([]),(0,jr.of)(new Map))),(0,Hi.M)(w=>{this.logger.info("Program settings search doc updated, Total Docs:",w?.length),this.programSettingsSearchDocSubject.next(w)}),(0,Nr.W)(w=>(this.logger.error("Error fetching program settings:",w),this.programSettingsSearchDocSubject.next([]),(0,jr.of)(new Map))),(0,es.T)(()=>{}))}getProgramSettings(w){this.logger.info("Search: Fetching program settings for - ",w?.displayName);const ie={};return ie.profileName=w.drsProfileName??w.shortName,ie.cmsId=w.cmsId,ie.applicationId=0,this.program3dSettingsService.refreshProgramSettings(ie,w.drsAppSubPath,!1)}getAllProgramSettingsWithAppId(){this.logger.info("Fetching all program settings");const w=new Map;return this.programService.getAllPrograms().pipe((0,io.n)(ie=>{if(ie.length>0){const We=ie.filter(xt=>!xt.isHidden);return(0,ia.H)(We).pipe((0,Ze.H)(xt=>this.getProgramSettings(xt).pipe((0,es.T)(hn=>[xt?.localId?.toString(),hn]))),(0,Nn.T)((xt,[hn,On])=>(xt.set(hn,On),xt),new Map),(0,In.Z)(w))}return(0,jr.of)(w)}))}getGlobalSettingsSearchDoc(w=[]){return this.logger.info("Generating global settings doc"),0===w.length?(0,jr.of)([]):this.translateService.get("manage3dSettings").pipe((0,es.T)(ie=>w.filter(xt=>!(xt.settingName in ui.CuratedGlobalSettings)&&xt?.settingValue?.SettingInfo?.isSupported).map(xt=>{const hn=xt.settingName;if(ie[hn]){const On=new j(br.I8.Graphics,{containerSubTitle:this.searchUtilsService.getGlobalContainerSubTitle(),route:zs.f.Manage3dSettings,pageHighlightSection:br.kA.Global,routeParams:{activeTab:He.Global,activeTabIndex:1}});return this.searchDbService.addSearchParams(On),{title:ie[hn]?.name,subtitle:ie[hn]?.subtitle,description:ie[hn]?.description,keywords:ie[hn]?.keywords||[],param:On.getId()}}this.logger.warn("Search: Translation not found for key:",hn)})))}refreshGlobalSettings(w=!0){return this.logger.info("Refreshing global settings for search"),this.manage3dSettingsUtilService.refreshGlobalSettings({profileName:ui.ProfileNames.BaseProfile,applicationId:0,cmsId:0},w)}getAllProgramSettingsSearchDocs(w){this.logger.info("Generating all program settings search docs");try{const ie=Array.from(w.entries());return ie.length>0?(0,ia.H)(ie).pipe((0,Ze.H)(([We,xt])=>this.getProgramSettingsSearchDoc(We,xt)),(0,Un.ZZ)(We=>(0,ia.H)(We)),(0,ri.$)(),(0,Nr.W)(We=>(this.logger.error("Search: Error while creating program setting search docs:",We),(0,jr.of)([])))):(0,jr.of)([])}catch(ie){return this.logger.info("Search: Error while preparing program setting search docs:",ie),(0,jr.of)([])}}getProgramSettingsSearchDoc(w,ie){return this.logger.info("Generating program settings doc for appId:",w),this.translateService.get("manage3dSettings").pipe((0,es.T)(We=>{const xt=ie.map((On,Yn)=>({setting:On,index:Yn})).filter(({setting:On})=>!(On.settingName in ui.CuratedGlobalSettings)&&On?.settingValue?.SettingInfo?.isSupported),hn=this.programSearchDataSourceService.getProgramById(w);return xt.map(({setting:On})=>{const Yn=On.settingName;if(We[Yn]){const ti=this.searchUtilsService.getProgramSearchMetadata(hn);if(ti)return this.searchDbService.addSearchParams(ti),{title:We[Yn]?.name,appDisplayName:hn?.displayName,description:We[Yn]?.description,param:ti.getId()}}else this.logger.warn("Search: Translation not found for key:",Yn)})}))}static{this.\u0275fac=function(ie){return new(ie||De)(n.KVO(Bi.J6),n.KVO(Bi.iH),n.KVO(D.Z),n.KVO(ne.f),n.KVO(yt.c$),n.KVO(Ie.g),n.KVO(Gt.u),n.KVO(tt),n.KVO($t),n.KVO(st))}}static{this.\u0275prov=n.jDH({token:De,factory:De.\u0275fac,providedIn:"root"})}}return De})();var Nt=s(82102);let en=(()=>{class De{constructor(w,ie,We,xt){this.driverUpdateService=w,this.loggingService=ie,this.searchDbService=We,this.searchUtilsService=xt,this.driverSearchDocSubject=new rs.t([]),this.driverSearchDoc$=this.driverSearchDocSubject.asObservable(),this.logger=this.loggingService.getLogger("nvapp/DriverSearchDataSourceService"),this.subscribeToDriversData()}subscribeToDriversData(){(0,Oo.zV)([this.driverUpdateService.getRecommendedDriver(),this.driverUpdateService.getInstalledDriver(),this.driverUpdateService.getAvailableDriverRecommendation()]).subscribe(([w,ie,We])=>{w={...w??{},...We??{}};const xt=this.createDriverSearchDocuments(w),hn=this.createDriverSearchDocuments(ie);this.driverSearchDocSubject.next([...xt,...hn])})}createDriverSearchDocuments(w){const ie=[];if((0,wr.isEmpty)(w))return ie;const We=this.createSearchParams(),xt={title:w?.name,param:We.getId()};return ie.push(xt),w?.content?.releaseHighlight.forEach(hn=>{hn?.elements?.forEach(On=>{const Yn=this.createSearchParams();Yn&&ie.push({title:On?.title,param:Yn.getId()}),On?.elements?.forEach(ti=>{const Ri=this.createSearchParams();Ri&&ie.push({title:ti?.title,param:Ri.getId()})})})}),ie}createSearchParams(){const w=new j(br.I8.Drivers,{route:zs.f.Drivers,pageHighlightSection:br.kA.Drivers,containerSubTitle:this.searchUtilsService.getDriverContainerSubTitle()});return w?this.searchDbService.addSearchParams(w):this.logger.warn("No search parameters created for driver search documents."),w}static{this.\u0275fac=function(ie){return new(ie||De)(n.KVO(Nt.f),n.KVO(Bi.J6),n.KVO(Gt.u),n.KVO(st))}}static{this.\u0275prov=n.jDH({token:De,factory:De.\u0275fac,providedIn:"root"})}}return De})();var vn=s(148),fn=s(20225),Cn=s(59085);let Tn=(()=>{class De{constructor(w,ie,We,xt,hn,On){this.loggingService=w,this.translateService=ie,this.featureReadinessService=We,this.searchDbService=xt,this.preferenceService=hn,this.staticContentService=On,this.featurePreferenceSearchDocSubject=new rs.t([]),this.featurePreferenceSearchDoc$=this.featurePreferenceSearchDocSubject.asObservable(),this.logger=this.loggingService.getLogger("nvapp/PreferenceSearchDataSourceService")}getStaticIndexableData(){return[...this.staticContentService.getStaticIndexableData(pe.SettingsContent,br.I8.Settings,zs.f.Preferences),...this.getAppAboutInfoSearchDoc()]}initialize(){this.featureReadinessService.getOverlayFeatures().pipe((0,ii.s)(2),(0,Hi.M)(w=>{this.logger.info("Search: fetched overlay features info - ",w?.length);const ie=[...this.createDynamicDataSearchDoc(w,ht.Features)];this.featurePreferenceSearchDocSubject.next(ie)}),(0,Nr.W)(w=>(this.logger.error("Search: Error fetching overlay feature settings:",w),this.featurePreferenceSearchDocSubject.next([]),(0,jr.of)([])))).subscribe(()=>{this.logger.info("Search: initialized overlay features info")},w=>{this.logger.error("Search: Error initializing overlay features info",w)})}getAppAboutInfoSearchDoc(){const w=[],ie=this.staticContentService.getCommonTabSearchMetadata(pe.SettingsContent,ht.About,br.I8.Settings,zs.f.Preferences);if(ie){this.searchDbService.addSearchParams(ie);const We=this.translateService.instant(vn.CM.appTitle),xt=`${this.translateService.instant(vn.CM.appVersion)} ${this.preferenceService.getNvAppVersionString()}`,hn=this.translateService.instant(vn.CM.copyRight,{year:(new Date).getFullYear()});w.push({title:`${xt}`,subTitle:xt,description:hn,keywords:[We],param:ie.getId()})}return w}createDynamicDataSearchDoc(w,ie){const We=[];return w.forEach(xt=>{const hn=this.staticContentService.getCommonTabSearchMetadata(pe.SettingsContent,ie,br.I8.Settings,zs.f.Preferences);hn&&(this.searchDbService.addSearchParams(hn),We.push({title:this.translateService.instant(xt?.header),subTitle:this.translateService.instant(ie),description:xt?.descriptions?.map(On=>this.translateService.instant(On))?.join(", "),keywords:[],param:hn.getId()}))}),We}static{this.\u0275fac=function(ie){return new(ie||De)(n.KVO(Bi.J6),n.KVO(yt.c$),n.KVO(fn.E),n.KVO(Gt.u),n.KVO(Cn.N),n.KVO($t))}}static{this.\u0275prov=n.jDH({token:De,factory:De.\u0275fac,providedIn:"root"})}}return De})();var Wn=s(82546),gi=s(7486);let ln=(()=>{class De{constructor(w,ie,We,xt,hn,On){this.loggingService=w,this.rewardService=ie,this.translateService=We,this.datePipe=xt,this.searchDbService=hn,this.staticContentService=On,this.isUserLoggedIn=!1,this.rewardsSearchDocSubject=new rs.t([]),this.rewardsSearchDoc$=this.rewardsSearchDocSubject.asObservable(),this.logger=this.loggingService.getLogger("nvapp/RewardsSearchDataSourceService")}initialize(){this.rewardService.getRewards().pipe((0,io.n)(w=>{const ie=this.prepareRewardSearchDoc(w);return this.logger.info("Search: Rewards search documents fetched successfully, total:",ie?.length),(0,jr.of)(ie)}),(0,Nr.W)(w=>(this.logger.error("Search: Error occurred while initializing rewards search data source:",w),(0,jr.of)([])))).subscribe(w=>{this.rewardsSearchDocSubject.next(w)},w=>{this.logger.error("Search: Error occurred while fetching rewards info:",w),this.rewardsSearchDocSubject.next([])})}getStaticIndexableData(){return[...this.staticContentService.getStaticIndexableData(pe.RewardContent,br.I8.Redeem,zs.f.Rewards)]}convertRewardToSearchDoc(w){const ie=this.staticContentService.getCommonPageSearchMetadata(pe.RewardContent,br.I8.Redeem,zs.f.Rewards);return ie?w.map(We=>{const xt=ie.cloneMetadata();return this.searchDbService.addSearchParams(xt),{title:We?.campaign?.title,subTitle:We?.getRewardDate(this.datePipe,this.translateService),keywords:[],param:xt.getId()}})||[]:(this.logger.warn("Search: No search parameters found for rewards."),[])}prepareRewardSearchDoc(w){let ie=[];if(w){w?.available&&w.available.length>0&&(ie=ie.concat(this.convertRewardToSearchDoc(w[Wn.E.Available]||[])));let We=[];w?.redeemed&&w.redeemed.length>0&&(We=w?.redeemed||[]),w?.expired&&w.expired.length>0&&(We=We.concat(w?.expired||[]),ie=ie.concat(this.convertRewardToSearchDoc(We)))}else this.logger.warn("Search: No rewards history found.");return ie}static{this.\u0275fac=function(ie){return new(ie||De)(n.KVO(Bi.J6),n.KVO(gi.y),n.KVO(yt.c$),n.KVO(ps.vh),n.KVO(Gt.u),n.KVO($t))}}static{this.\u0275prov=n.jDH({token:De,factory:De.\u0275fac,providedIn:"root"})}}return De})();var ki=s(97462),rr=s(75597),Ki=s(29997),pr=s(95364),Ti=s(31454),Qi=s(88484),Gr=s(52960),vr=s(45598);let Fi=(()=>{class De{constructor(w,ie,We,xt,hn,On,Yn,ti,Ri,ji){this.loggingService=w,this.staticContentService=ie,this.systemDetailsService=We,this.searchDbService=xt,this.translateService=hn,this.videoService=On,this.perfStatsService=Yn,this.perfTuningService=ti,this.perfLimitersService=Ri,this.displaySearchService=ji,this.myRigSearchDocSubject=new rs.t([]),this.myRigSearchDoc$=this.myRigSearchDocSubject.asObservable(),this.videoPageSearchDocSubject=new rs.t([]),this.videoPageSearchDoc$=this.videoPageSearchDocSubject.asObservable(),this.performancePageSearchDocSubject=new rs.t([]),this.performancePageSearchDoc$=this.performancePageSearchDocSubject.asObservable(),this.displayPageSearchDocSubject=new rs.t([]),this.displayPageSearchDoc$=this.displayPageSearchDocSubject.asObservable(),this.logger=this.loggingService.getLogger("nvapp/SystemSearchDataSourceService")}initiateSystemVideoDataRefresh(){this.logger.info("Initiating system video data refresh for search"),this.videoService.getVideoPageSearchInfoUtil().pipe((0,Hi.M)(w=>{this.logger.info("Received video page data headers",{count:w?.length});const ie=this.processVideoPageHeadersForSearch(w);this.videoPageSearchDocSubject.next(ie)}),(0,Nr.W)(w=>(this.logger.error("Error fetching system video tab details",w),this.videoPageSearchDocSubject.next([]),(0,jr.of)(null)))).subscribe({error:w=>this.logger.error("Unexpected error in video data refresh subscription",w),complete:()=>this.logger.info("Video data refresh completed")})}initiateMySystemDetailsRefresh(){this.logger.info("Initiating system details refresh for search"),this.systemDetailsService.getMyRig().pipe((0,Hi.M)(w=>{this.logger.info("Received my rig system details",{isQuadro:w.isQuadro,rigItemsCount:w.rigItems?.length});const{rigItems:ie,isQuadro:We}=w;this.logger.info("Processing my rig details",{itemsCount:ie?.length,isQuadro:We});const xt=this.featureUIStateToSearchDoc(ie,xe.Overview,We);this.logger.info("Generated my rig search documents",{count:xt?.length}),this.myRigSearchDocSubject.next(xt)}),(0,Nr.W)(w=>(this.logger.error("Error fetching my rig details",w),this.myRigSearchDocSubject.next([]),(0,jr.of)(null)))).subscribe({error:w=>this.logger.error("Unexpected error in system details refresh subscription",w),complete:()=>this.logger.info("System details refresh completed")})}getPerformanceStatisticsMetrics$(){return this.perfStatsService.performanceMetricNames$.pipe((0,Hi.M)(w=>{this.logger.info("Received performance statistics metrics",{count:w?.length})}),this.handlePerfDataWithError("statisticsmetric header"))}getPerformanceAutoTuningData$(){return this.perfTuningService.getPerformanceTuningHeadersForSearch().pipe((0,Hi.M)(w=>{this.logger.info("Received performance auto tuning data",{count:w?.length})}),this.handlePerfDataWithError("auto tuning"))}getPerformanceLimiterData$(){return this.perfLimitersService.refreshPerfLimitersHeadersForSearch(!0).pipe((0,io.n)(()=>this.perfLimitersService.perfLimitersHeaders$),(0,ii.s)(1),(0,Hi.M)(w=>{this.logger.info("Received performance limiters data",{count:w?.length})}),this.handlePerfDataWithError("limiter"))}initiateSystemPerformanceDataRefresh(){this.logger.info("Initiating system performance data refresh for search"),(0,Oo.zV)([this.getPerformanceStatisticsMetrics$(),this.getPerformanceAutoTuningData$(),this.getPerformanceLimiterData$()]).pipe((0,Hi.M)(([w,ie,We])=>{this.logger.info("Combined performance data retrieved",{metricsCount:w?.length,tuningCount:ie?.length,limitersCount:We?.length});const xt=this.processPerformanceHeadersForSearch(w,ie,We);this.performancePageSearchDocSubject.next(xt)}),(0,Nr.W)(w=>(this.logger.error("Error fetching system performance tab details",w),this.performancePageSearchDocSubject.next([]),(0,jr.of)(null)))).subscribe({error:w=>this.logger.error("Unexpected error in performance data refresh subscription",w),complete:()=>this.logger.info("Performance data refresh completed")})}processPerformanceHeadersForSearch(w,ie,We){let xt=[];const hn=[...w,...ie,...We];return 0===hn.length?(this.logger.info("No performance page headers available for creating search documents"),[]):(xt=this.staticContentService.getTabStaticData(pe.SystemContent,xe.Performance,br.I8.System,zs.f.System,{activeTab:rr.c.Performance},hn),this.logger.info("Generated performance page search documents",{count:xt?.length}),xt)}handlePerfDataWithError(w){return(0,ki.F)((0,In.Z)([]),(0,Nr.W)(ie=>(this.logger.error(`Error fetching performance page ${w} details`,ie),(0,jr.of)([]))))}featureUIStateToSearchDoc(w,ie,We=!1){const xt=[],hn=We?"system.overview.workstationTitle":this.staticContentService.getTab(pe.SystemContent,ie)?.text,On=this.staticContentService.getCommonTabSearchMetadata(pe.SystemContent,ie,br.I8.System,zs.f.System,{activeTab:rr.c.Overview});if(On){this.logger.info("Creating search metadata for overview tab",{tabName:ie,overviewTabTitle:hn});const Yn=On.cloneMetadataWith({containerSubTitle:this.staticContentService.getPageTitleByKey(pe.SystemContent)});this.searchDbService.addSearchParams(Yn),xt.push({title:this.translateService.instant(hn),param:Yn.getId()}),this.logger.info("Processing features for search documents",{featuresCount:w?.length}),w.forEach(ji=>{const Tr=On.cloneMetadataWith({containerSubTitle:this.translateService.instant(hn)});this.searchDbService.addSearchParams(Tr),xt.push({title:this.translateService.instant(ji?.header),subTitle:this.translateService.instant(ie),description:ji?.descriptions?.map(ss=>this.translateService.instant(ss))?.join(", "),param:Tr.getId()})});const ti=this.getOverviewTabStrings(ie,We),Ri=this.processOverviewTabStringsToSearchDoc(ti,On,hn);xt.push(...Ri)}else this.logger.warn("Could not get search metadata for tab",{staticContentTabName:ie});return this.logger.info("Feature UI state converted to search documents",{totalDocuments:xt?.length}),xt}processVideoPageHeadersForSearch(w){if(0===w.length)return this.logger.info("No video page headers available for creating search documents"),[];this.logger.info("Processing video page headers for indexing",{count:w?.length});const ie=[...w],We=this.staticContentService.getTabStaticData(pe.SystemContent,xe.Video,br.I8.System,zs.f.System,{activeTab:rr.c.Video},ie);return this.logger.info("Generated video page search documents",{count:We?.length}),We}getOverviewTabStrings(w,ie){const hn=[ie?"preferences.myRig.workstationHeader":"preferences.myRig.geforceHeader",ie?"system.overview.viewSystemDetails":"system.overview.viewRigDetails",...this.staticContentService.getTabContentStrings(pe.SystemContent,w)];return this.logger.info("Retrieved overview tab strings",{count:hn?.length,isQuadro:ie,staticContentTabName:w}),hn}processOverviewTabStringsToSearchDoc(w=[],ie,We){return this.logger.info("Processing overview tab strings for search documents",{stringsCount:w?.length}),w.map(xt=>{const hn=ie.cloneMetadataWith({containerSubTitle:this.translateService.instant(We)});return this.searchDbService.addSearchParams(hn),{title:this.translateService.instant(xt),param:hn.getId()}})}initiateDisplayDataRefresh(){this.logger.info("Initiating display data refresh for search"),this.displaySearchService.getDisplayPageSearchInfoUtil().pipe((0,Hi.M)(w=>{this.logger.info("Received display page data headers",{count:w?.length});const ie=this.processDisplayPageHeadersForSearch(w);this.displayPageSearchDocSubject.next(ie)}),(0,Nr.W)(w=>(this.logger.error("Error fetching system display tab details",w),this.displayPageSearchDocSubject.next([]),(0,jr.of)(null)))).subscribe({error:w=>this.logger.error("Unexpected error in display data refresh subscription",w),complete:()=>this.logger.info("Display data refresh completed")})}processDisplayPageHeadersForSearch(w){let ie=[];return 0===w.length?(this.logger.info("No display page headers available for creating search documents"),ie):(ie=this.staticContentService.getTabStaticData(pe.SystemContent,xe.Display,br.I8.System,zs.f.System,{activeTab:rr.c.Display},w),this.logger.info("Generated display page search documents",{count:ie?.length}),ie)}static{this.\u0275fac=function(ie){return new(ie||De)(n.KVO(Bi.J6),n.KVO($t),n.KVO(Ki.j),n.KVO(Gt.u),n.KVO(yt.c$),n.KVO(pr.r),n.KVO(Ti.q),n.KVO(Qi.K),n.KVO(Gr.u),n.KVO(vr.w))}}static{this.\u0275prov=n.jDH({token:De,factory:De.\u0275fac,providedIn:"root"})}}return De})(),kr=(()=>{class De{constructor(w,ie,We,xt,hn,On,Yn,ti,Ri,ji,Tr){this.programSearchDataSourceService=w,this.opsSearchDataSourceService=ie,this.discoverSearchDataSourceService=We,this.programAndGlobalSearchDataSourceService=xt,this.driverSearchDataSourceService=hn,this.preferenceSearchDataSourceService=On,this.rewardsSearchDataSourceService=Yn,this.systemSearchDataSourceService=ti,this.searchDbService=Ri,this.staticContentService=ji,this.SEARCH_DATA_SOURCES_DEBOUNCE_TIME=200,this.searchIndexDocSubject=new rs.t([]),this.searchIndexDoc$=this.searchIndexDocSubject.asObservable(),this.logger=Tr.getLogger("nvapp/SearchDataAggregatorService"),this.staticContentService.loadStaticJsonData()}initializeSeqentialDataSources(){this.programSearchDataSourceService.refreshProgramsData().pipe((0,Ze.H)(()=>this.programAndGlobalSearchDataSourceService.initiateGlobalSettingsRefresh()),(0,Ze.H)(()=>this.programAndGlobalSearchDataSourceService.initiateAllProgramSettingsRefresh())).subscribe()}initializeParallelDataSources(){try{this.opsSearchDataSourceService.initialize(),this.discoverSearchDataSourceService.initialize(),this.preferenceSearchDataSourceService.initialize(),this.rewardsSearchDataSourceService.initialize(),this.systemSearchDataSourceService.initiateSystemVideoDataRefresh(),this.systemSearchDataSourceService.initiateSystemPerformanceDataRefresh(),this.systemSearchDataSourceService.initiateMySystemDetailsRefresh(),this.systemSearchDataSourceService.initiateDisplayDataRefresh()}catch(w){this.logger.error("Error during parallel data source initialization for search:",w)}}initialize(){this.logger.info("Initializing search data sources in aggregator"),this.initializeSeqentialDataSources(),this.initializeParallelDataSources()}listenToDataSourcesInternal(){return(0,Oo.zV)([this.programSearchDataSourceService.programsSearchDoc$,this.programAndGlobalSearchDataSourceService.globalSettingsSearchDoc$,this.programAndGlobalSearchDataSourceService.programSettingsSearchDoc$,this.opsSearchDataSourceService.opsSettingsSearchDoc$,this.discoverSearchDataSourceService.discoverSearchDoc$,this.driverSearchDataSourceService.driverSearchDoc$,this.preferenceSearchDataSourceService.featurePreferenceSearchDoc$,this.rewardsSearchDataSourceService.rewardsSearchDoc$,this.systemSearchDataSourceService.videoPageSearchDoc$,this.systemSearchDataSourceService.performancePageSearchDoc$,this.systemSearchDataSourceService.myRigSearchDoc$,this.systemSearchDataSourceService.displayPageSearchDoc$]).pipe((0,_.B)(this.SEARCH_DATA_SOURCES_DEBOUNCE_TIME),(0,es.T)(([w,ie,We,xt,hn,On,Yn,ti,Ri,ji,Tr,ss])=>[...[...w,...ie,...We,...xt,...hn,...On,...Yn,...ti,...Ri,...ji,...Tr,...ss].filter(Yo=>this.isValidSearchDoc(Yo)),...this.getStaticSearchDocs()]),(0,Zs.t)(1))}listenToDataSources(){this.listenToDataSourcesInternal().subscribe({next:w=>{this.logger.info(`Search: Updated Search Index Documents with ${w.length} items`),this.searchIndexDocSubject.next(w)},error:w=>{this.logger.error("Search: Error occurred while creating Search Index Documents:",w),this.searchIndexDocSubject.next([])}})}getStaticSearchDocs(){return[...this.programAndGlobalSearchDataSourceService.getStaticIndexableData(),...this.preferenceSearchDataSourceService.getStaticIndexableData(),...this.rewardsSearchDataSourceService.getStaticIndexableData()]}isValidSearchDoc(w){return!(0,wr.isNil)(w)&&!(0,wr.isNil)(w.title)&&!(0,wr.isNil)(w.param)}fetchApplicationBySearchParams(w){const ie=this.searchDbService.getSearchParams(w);if(ie&&ie.appId)return this.programSearchDataSourceService.getProgramById(ie.appId)}static{this.\u0275fac=function(ie){return new(ie||De)(n.KVO(tt),n.KVO(It),n.KVO(xn),n.KVO(_t),n.KVO(en),n.KVO(Tn),n.KVO(ln),n.KVO(Fi),n.KVO(Gt.u),n.KVO($t),n.KVO(Bi.J6))}}static{this.\u0275prov=n.jDH({token:De,factory:De.\u0275fac,providedIn:"root"})}}return De})(),cr=(()=>{class De{constructor(w,ie,We,xt,hn,On,Yn,ti){this.indexService=We,this.localeService=xt,this.routeHandlerService=hn,this.router=On,this.searchDataAggregatorService=Yn,this.searchDbService=ti,this.enableLazySearch=!1,this.isSearchActiveSub=new rs.t(!1),this.MinSearchRelevantScore=50,this.readyForSearchIndexingSubject=new rs.t(!1),this.searchInputActivatedSubject=new cl.B7,this.searchInputActivated$=this.searchInputActivatedSubject.asObservable().pipe((0,Ta.p)(Ri=>Ri),(0,ii.s)(1),(0,Hi.M)(()=>this.logger.info("Search input activated for the first time")),(0,Zs.t)(1)),this.buildTimeConfig=br.gd,this.logger=w.getLogger("nvapp/SearchManagerService"),this.enableLazySearch=!!ie.searchConfig?.lazySearch?.enabled,this.logger.info("SearchManagerService initialized")}markSearchInputActivated(w=!0){this.searchInputActivatedSubject.next(w)}getSearchInputActivated(){return this.searchInputActivated$}getLayoutReadyForSearchIndexing(){return this.readyForSearchIndexingSubject.asObservable()}setLayoutReadyForSearchIndexing(w){this.readyForSearchIndexingSubject.next(w)}isLayoutReadyForSearchIndexing(){return this.readyForSearchIndexingSubject.getValue()}get isSearchActive$(){return this.isSearchActiveSub.asObservable()}set isSearchActive(w){w&&this.router.url!==zs.f.SearchResults&&this.routeHandlerService.routeToUrl(zs.f.SearchResults),this.isSearchActiveSub.next(w)}get isSearchActive(){return this.isSearchActiveSub.value}get isSearchIndexAvailable(){return this.indexService.isSearchIndexAvailable()}updateSearchResultItem(w,ie){const We=this.searchDataAggregatorService.fetchApplicationBySearchParams(w?.param);(0,wr.isNil)(We)||(w.telemetryTitle=We.shortName,w.indexInCategory=ie)}processSearchedResults(w){let ie=0;const We=(0,wr.size)(br.sb),xt=(0,wr.mapValues)(w,hn=>{if(ie+=(0,wr.size)(hn),(0,wr.size)(hn)){const On={};return hn.forEach((Yn,ti)=>{this.updateSearchResultItem(Yn,ti),On[Yn.telemetryTitle]={sortOrder:ti}}),(0,wr.sortBy)(hn,Yn=>{let ti=0;return ti=(0,wr.has)(br.sb,Yn.telemetryTitle)?br.sb[Yn.telemetryTitle].sortOrder:We+On[Yn.telemetryTitle].sortOrder,ti})}});return(0,jr.of)({resultsLength:ie,categorizedResult:xt})}processRecentResultsCallback(w){return w=w.filter(ie=>!(0,wr.isNil)(this.searchDataAggregatorService.fetchApplicationBySearchParams(ie?.param))),(0,wr.forEach)(w,(ie,We)=>{this.updateSearchResultItem(ie,We)}),(0,jr.of)(w)}getAppsAndSettingsFromSearchResults(w){const ie=[];if(w){const We=w[br.P4.Common];if(We){const xt=We.filter(hn=>hn.score>=this.MinSearchRelevantScore).map(hn=>{const On=this.searchDbService.getSearchParams(hn.param);if(On)return On.saveMetadata(hn?.title,hn?.matchData?.metadata),{params:On,matchedTerms:On.getMatchedTerms(),title:hn?.title}}).filter(Boolean);ie.push(...xt)}}return ie}initIndexService(w,ie){return this.indexService.init(Fa.dJ,w,ie).pipe((0,Un.ZZ)(()=>(this.indexService.setCallbacks(this.processSearchedResults.bind(this),this.processRecentResultsCallback.bind(this)),this.indexService.setLocalSearchConfig({buildTimeConfig:this.buildTimeConfig}))),(0,Zs.t)(1))}buildSearchIndexAllAppsAndSettings(w){return w&&0!==w.length?this.indexService.buildStateIndex(br.P4.Common,w,{customStopWords:[]}):(0,jr.of)(!1)}getSearchDataAndBuildIndex(){return this.logger.info("Starting search data and index building process"),this.indexService.setSearchIndexAvailable(!1),this.logger.info("Initializing search data sources"),this.searchDataAggregatorService.initialize(),this.searchDataAggregatorService.searchIndexDoc$.pipe((0,Hi.M)(w=>{this.logger.info("Received search index documents:",{documentsCount:w?.length??0})}),(0,Un.ZZ)(w=>(this.logger.info("Building search index for apps and settings"),this.buildSearchIndexAllAppsAndSettings(w).pipe((0,Hi.M)(We=>{this.logger.info("Index building completed",{success:We,documentsIndexed:w?.length??0}),this.indexService.setSearchIndexAvailable(!0)}),(0,es.T)(()=>!0),(0,Nr.W)(We=>(this.logger.error("Search: error building apps index:",{error:We,documentsAttempted:w?.length??0}),(0,jr.of)(!1)))))),(0,Hi.M)(w=>{this.logger.info("Search index process completed!"),this.indexService.setSearchIndexAvailable(!0)}),(0,es.T)(()=>!0),(0,Nr.W)(w=>(this.logger.error("Search: Error in overall search index building process:",{error:w}),(0,jr.of)(!1))))}init(w){this.logger.info(`init searchManager, lazy search indexing enabled : ${this.enableLazySearch}`),this.searchDataAggregatorService.listenToDataSources(),this.initSearchFunctionality(w,this.enableLazySearch),this.listenToTriggerBuildingSearchIndex()}waitForSearchActivationAndLayoutReady(){return(0,Oo.zV)([this.searchInputActivated$,this.getLayoutReadyForSearchIndexing()]).pipe((0,Ta.p)(([w,ie])=>w&&ie),(0,ii.s)(1),(0,Hi.M)(([w,ie])=>{this.logger.info(`Both conditions met - Search activated: ${w}, Layout ready: ${ie}`)}),(0,pl.u)(!0))}initSearchFunctionality(w,ie){this.initIndexService(w,ie).pipe((0,Un.ZZ)(()=>ie?(this.logger.info("Lazy search indexing enabled, waiting for both search activation and layout ready"),this.waitForSearchActivationAndLayoutReady()):(this.logger.info("Immediate search indexing, waiting for application ready signal"),this.getLayoutReadyForSearchIndexing().pipe((0,Ta.p)(xt=>xt),(0,ii.s)(1),(0,Hi.M)(()=>this.logger.info("Application ready, now building search index")),(0,pl.u)(!0))))).subscribe(xt=>{xt&&this.indexService.triggerBuildingSearchIndex()},xt=>{this.logger.error("Error in initSearchFunctionality:",xt)})}listenToTriggerBuildingSearchIndex(){const w=this.localeService.localeChanged;(0,Oo.zV)([this.indexService.onTriggerBuildingSearchIndex(),w]).pipe((0,io.n)((ie,We)=>(this.logger.info(`fetching data to build search index for locale - ${We}`),this.getSearchDataAndBuildIndex())),(0,io.n)(ie=>ie?(0,jr.of)(!0):this.indexService.getSearchIndexAvailability())).subscribe(ie=>{this.indexService.setServerConnectivityStatus(ie),this.isSearchActive&&this.indexService.triggerSearch()},ie=>{this.logger.error("Error in listenToTriggerBuildingSearchIndex:",ie)})}getCurrentSearchQuery(){return this.currentSearchQuery}updateSearchQuery(w){this.currentSearchQuery=w}clearSearchQuery(){this.indexService.clearSearchQuery()}static{this.\u0275fac=function(ie){return new(ie||De)(n.KVO(Bi.J6),n.KVO(lr.Vk),n.KVO(ya.G),n.KVO(Bi.iH),n.KVO(Mr.V),n.KVO(Do.Ix),n.KVO(kr),n.KVO(Gt.u))}}static{this.\u0275prov=n.jDH({token:De,factory:De.\u0275fac,providedIn:"root"})}}return De})();var Kr=s(3960),Wr=s(47973),Qr=s(99204),Rs=s(44224),Hr=s(97888),as=s(46906),Wo=s(54803),_i=s(29370);const Er=De=>({"search-term-highlight":De});function Ui(De,Me){if(1&De&&(n.qex(0),n.j41(1,"span",11),n.EFF(2),n.k0s(),n.bVm()),2&De){const w=Me.$implicit;n.R7$(),n.Y8G("ngClass",n.eq3(2,Er,w.highlight)),n.R7$(),n.JRh(w.text)}}function Te(De,Me){1&De&&n.nrm(0,"mat-icon",16)}function ft(De,Me){if(1&De&&n.nrm(0,"img",17),2&De){const w=n.XpG(2);n.Y8G("src",w.gameIcon,n.B4B)}}function Be(De,Me){if(1&De&&n.nrm(0,"mat-icon",18),2&De){const w=n.XpG(2);n.Y8G("svgIcon",w.appIcon)}}function at(De,Me){if(1&De&&(n.j41(0,"div",12),n.DNE(1,Te,1,0,"mat-icon",13)(2,ft,1,1,"img",14)(3,Be,1,1,"mat-icon",15),n.k0s()),2&De){const w=n.XpG();n.R7$(),n.Y8G("ngIf",!w.gameIcon&&!w.appIcon),n.R7$(),n.Y8G("ngIf",w.gameIcon),n.R7$(),n.Y8G("ngIf",w.appIcon)}}let jt=(()=>{class De{constructor(){this.pageIcon="",this.sectionHeader="",this.containerSubTitle="",this.matchedContent="",this.searchedTerms=[],this.showVisualAsset=!0,this.highlightedMatchedParts=[]}ngOnInit(){if(this.searchedTerms?.length){const w=new RegExp(`(${this.searchedTerms.join("|")})`,"gi");this.highlightedMatchedParts=this.splitText(this.matchedContent,this.searchedTerms,w)}}splitText(w,ie,We){return ie.length&&w?w.split(We).map(hn=>({text:hn,highlight:We.test(hn)})):[{text:w,highlight:!1}]}static{this.\u0275fac=function(ie){return new(ie||De)}}static{this.\u0275cmp=n.VBU({type:De,selectors:[["nv-app-search-result-card"]],inputs:{pageIcon:"pageIcon",sectionHeader:"sectionHeader",containerSubTitle:"containerSubTitle",matchedContent:"matchedContent",searchedTerms:"searchedTerms",showVisualAsset:"showVisualAsset",gameIcon:"gameIcon",appIcon:"appIcon"},decls:12,vars:4,consts:[[1,"search-result-card-container"],[1,"icon-section-header-area"],[1,"page-icon"],[3,"svgIcon"],[1,"content"],[1,"content-area"],[1,"container-title","font-body1","desc-line-clamp"],[4,"ngFor","ngForOf"],[1,"content-desc","font-body2"],[1,"visual-asset"],["class","program-icon-container",4,"ngIf"],[3,"ngClass"],[1,"program-icon-container"],["class","material-icons program-icon","svgIcon","game_controller",4,"ngIf"],["class","material-icons program-icon",3,"src",4,"ngIf"],["class","material-icons app-icon",3,"svgIcon",4,"ngIf"],["svgIcon","game_controller",1,"material-icons","program-icon"],[1,"material-icons","program-icon",3,"src"],[1,"material-icons","app-icon",3,"svgIcon"]],template:function(ie,We){1&ie&&(n.j41(0,"div",0)(1,"div",1)(2,"div",2),n.nrm(3,"mat-icon",3),n.k0s()(),n.j41(4,"div",4)(5,"div",5)(6,"div",6),n.DNE(7,Ui,3,4,"ng-container",7),n.k0s(),n.j41(8,"div",8),n.EFF(9),n.k0s()(),n.j41(10,"div",9),n.DNE(11,at,4,3,"div",10),n.k0s()()()),2&ie&&(n.R7$(3),n.Y8G("svgIcon",We.pageIcon),n.R7$(4),n.Y8G("ngForOf",We.highlightedMatchedParts),n.R7$(2),n.SpI(" ",We.containerSubTitle," "),n.R7$(2),n.Y8G("ngIf",We.showVisualAsset))},dependencies:[_i.An,ps.YU,ps.Sq,ps.bT],styles:["[_ngcontent-%COMP%]:root{--rwd-column-count: 4;--rwd-gutter-count: 3 ;--rwd-gutter-size: 8px;--rwd-container-side-spacing: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 3 ) / 4);--rwd-sidebar-width: 0px;--rwd-container-width: 100vw}@media screen and (min-width: 480px){[_ngcontent-%COMP%]:root{--rwd-column-count: 6;--rwd-gutter-count: 5 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 5 ) / 6)}}@media screen and (min-width: 720px){[_ngcontent-%COMP%]:root{--rwd-column-count: 8;--rwd-gutter-count: 7 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 7 ) / 8)}}@media screen and (min-width: 960px){[_ngcontent-%COMP%]:root{--rwd-column-count: 12;--rwd-gutter-count: 11 ;--rwd-container-side-spacing: 24px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 8px * 11 ) / 12)}}@media screen and (min-width: 1440px){[_ngcontent-%COMP%]:root{--rwd-gutter-size: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 16px * 11 ) / 12)}}.isRtl[_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{transform:scaleX(-1)}html[dir=rtl][_ngcontent-%COMP%] .flip-rtl-element[_ngcontent-%COMP%]{--dummy: 0;transform:scaleX(-1)}.hotkey-border[_ngcontent-%COMP%]{border:1px solid #ffffff;padding:4px 8px;font-weight:500;line-height:32px;margin:4px}[_ngcontent-%COMP%]:root{--hig-marquee-ratio: .3229;--hig-marquee-parent-container-width: 100vw;--hig-marquee-container-height: calc(var(--hig-marquee-ratio) * 100vw);--hig-marquee-corner-column: 56px;--hig-marquee-text-column: 14vw;--hig-marquee-padded-image-first-row: calc(var(--hig-marquee-ratio) * (100vw - var(--hig-marquee-corner-column) - var(--hig-marquee-text-column)));--hig-marquee-padded-image-second-row: calc(var(--hig-marquee-container-height) - var(--hig-marquee-padded-image-first-row))}.ellipsified-text-with-tooltip[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden}.ellipsified-text-with-tooltip.multi-line-ellipsis[_ngcontent-%COMP%]{display:-webkit-box;-webkit-box-orient:vertical;white-space:wrap}.ellipsified-text-with-tooltip.single-line-ellipsis[_ngcontent-%COMP%]{white-space:nowrap}.ellipsis[_ngcontent-%COMP%], .content-area[_ngcontent-%COMP%] .container-title[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden}.search-result-card-container[_ngcontent-%COMP%]{display:flex;align-items:center;width:100%;height:64px;flex-shrink:0;background:var(--primary-850);padding:10px 16px;box-sizing:border-box;cursor:pointer;margin-top:5px;margin-bottom:5px;max-width:692px}.search-result-card-container[_ngcontent-%COMP%]:hover{background:#ffffff14}.search-result-card-container[_ngcontent-%COMP%]:active{background:#fff6}@media (min-width: 720px) and (max-width: 959px){.search-result-card-container[_ngcontent-%COMP%]{max-width:692px;width:692px}}@media (min-width: 960px) and (max-width: 1439px){.search-result-card-container[_ngcontent-%COMP%]{max-width:765px;width:765px}}@media (min-width: 1440px) and (max-width: 1919px),(min-width: 1920px){.search-result-card-container[_ngcontent-%COMP%]{max-width:870px;width:870px}}.icon-section-header-area[_ngcontent-%COMP%]{flex:0 0 8%;display:flex;flex-direction:column;align-items:center;color:var(--primary-500);text-align:center}.icon-section-header-area[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .icon-section-header-area[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{font-size:32px;height:32px;width:32px}.icon-section-header-area[_ngcontent-%COMP%] .page-icon[_ngcontent-%COMP%]{width:32px;height:32px}.icon-section-header-area[_ngcontent-%COMP%] .section-header[_ngcontent-%COMP%]{width:62px;height:16px;flex-shrink:0}.content[_ngcontent-%COMP%]{flex:0 0 92%;display:flex;padding-left:16px;align-items:center}.content[_ngcontent-%COMP%] .content-area[_ngcontent-%COMP%]{flex:1}.content-area[_ngcontent-%COMP%] .container-title[_ngcontent-%COMP%]{flex:1;color:var(--hig-ui-text-primary-color);margin:0;-webkit-box-orient:vertical;-webkit-line-clamp:4;display:-webkit-box}.content-area[_ngcontent-%COMP%] .content-desc[_ngcontent-%COMP%]{margin:0;color:var(--primary-contrast-500)}.content-area[_ngcontent-%COMP%] .desc-line-clamp[_ngcontent-%COMP%]{-webkit-line-clamp:1}.visual-asset[_ngcontent-%COMP%]{flex:0 0 auto;display:flex;align-items:center;justify-content:center;width:32px;height:32px;padding:0 16px}.visual-asset[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .visual-asset[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{font-size:32px;height:32px;width:32px}.program-icon-container[_ngcontent-%COMP%]{width:32px;height:32px;position:relative}.program-icon[_ngcontent-%COMP%], .program-icon[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{width:32px;height:32px}.app-icon[_ngcontent-%COMP%]{width:32px;height:32px;color:#76b900}"]})}}return De})();function pn(De,Me){1&De&&(n.j41(0,"div",3),n.nrm(1,"mat-spinner"),n.k0s())}function Xn(De,Me){if(1&De){const w=n.RV6();n.j41(0,"div",4)(1,"nv-app-search-result-card",5),n.bIt("click",function(){n.eBV(w);const We=n.XpG();return n.Njj(We.navigateOnClick())}),n.k0s()()}if(2&De){const w=n.XpG();n.R7$(),n.Y8G("pageIcon",w.getSearchResultIcon())("containerSubTitle",w.getContainerSubTitle())("matchedContent",w.getMainContent())("gameIcon",w.getIcon())("showVisualAsset",w.showVisualAsset)("searchedTerms",null==w.searchResult?null:w.searchResult.matchedTerms)}}let mi=(()=>{class De{constructor(w,ie){this.routerHandlerService=ie,this.logger=w.getLogger("nvapp/SearchResultRowComponent")}getIcon(){const ie=this.searchResult?.params?.appGameIcon??null;if(ie)return this.showVisualAsset=!0,ie}getSearchResultIcon(){const w=this.searchResult?.params;return Wo.Q[w?.filterType]??""}getContainerSubTitle(){return`${this.searchResult?.params?.containerSubTitle??""}`}navigateOnClick(){const w=this.searchResult.params;w?this.routerHandlerService.routeToUrl(w?.getRoute(),w?.getRouteParams()):this.logger.error("No search params found for search result")}getMainContent(){return this.searchResult?.title}static{this.\u0275fac=function(ie){return new(ie||De)(n.rXU(Bi.J6),n.rXU(Mr.V))}}static{this.\u0275cmp=n.VBU({type:De,selectors:[["nv-search-result-row"]],inputs:{searchResult:"searchResult",isLoading:"isLoading"},decls:3,vars:2,consts:[[1,"search-result-row"],["class","loading-container",4,"ngIf"],["class","search-result-row-container",4,"ngIf"],[1,"loading-container"],[1,"search-result-row-container"],[3,"click","pageIcon","containerSubTitle","matchedContent","gameIcon","showVisualAsset","searchedTerms"]],template:function(ie,We){1&ie&&(n.j41(0,"div",0),n.DNE(1,pn,2,0,"div",1)(2,Xn,2,6,"div",2),n.k0s()),2&ie&&(n.R7$(),n.Y8G("ngIf",We.isLoading),n.R7$(),n.Y8G("ngIf",!We.isLoading))},dependencies:[Qr.LG,ps.bT,jt],styles:[".search-result-row[_ngcontent-%COMP%]{justify-content:space-evenly}.loading-container[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:100px}.search-result-row-container[_ngcontent-%COMP%]{justify-content:center}"]})}}return De})();function Ci(De,Me){1&De&&(n.j41(0,"div",7),n.nrm(1,"mat-progress-spinner",8),n.k0s())}function _r(De,Me){if(1&De){const w=n.RV6();n.j41(0,"mat-chip",15),n.bIt("click",function(){const We=n.eBV(w).$implicit,xt=n.XpG(2);return n.Njj(xt.setActiveGroup(We))})("keyup.enter",function(){const We=n.eBV(w).$implicit,xt=n.XpG(2);return n.Njj(xt.setActiveGroup(We))}),n.j41(1,"span",16),n.EFF(2),n.nI1(3,"translate"),n.k0s()()}if(2&De){const w=Me.$implicit,ie=n.XpG(2);n.Y8G("selected",ie.activeGroup===w),n.R7$(2),n.JRh(n.bMT(3,2,w))}}function ut(De,Me){if(1&De&&(n.j41(0,"div"),n.nrm(1,"nv-search-result-row",19),n.k0s()),2&De){const w=Me.$implicit;n.R7$(),n.Y8G("searchResult",w)}}function Pt(De,Me){if(1&De&&(n.j41(0,"div",17),n.DNE(1,ut,2,1,"div",18),n.k0s()),2&De){const w=n.XpG(2);n.R7$(),n.Y8G("ngForOf",w.allSearchResults)}}function Re(De,Me){if(1&De&&(n.j41(0,"div"),n.nrm(1,"nv-search-result-row",19),n.k0s()),2&De){const w=Me.$implicit;n.R7$(),n.Y8G("searchResult",w)}}function rn(De,Me){if(1&De&&(n.j41(0,"div"),n.DNE(1,Re,2,1,"div",18),n.k0s()),2&De){const w=n.XpG(2);n.R7$(),n.Y8G("ngForOf",w.groupedSearchResults[w.searchResultGroups.Home])}}function an(De,Me){if(1&De&&(n.j41(0,"div"),n.nrm(1,"nv-search-result-row",19),n.k0s()),2&De){const w=Me.$implicit;n.R7$(),n.Y8G("searchResult",w)}}function Hn(De,Me){if(1&De&&(n.j41(0,"div"),n.DNE(1,an,2,1,"div",18),n.k0s()),2&De){const w=n.XpG(2);n.R7$(),n.Y8G("ngForOf",w.groupedSearchResults[w.searchResultGroups.Drivers])}}function xi(De,Me){if(1&De&&(n.j41(0,"div"),n.nrm(1,"nv-search-result-row",19),n.k0s()),2&De){const w=Me.$implicit;n.R7$(),n.Y8G("searchResult",w)}}function yr(De,Me){if(1&De&&(n.j41(0,"div",17),n.DNE(1,xi,2,1,"div",18),n.k0s()),2&De){const w=n.XpG(2);n.R7$(),n.Y8G("ngForOf",w.groupedSearchResults[w.searchResultGroups.Graphics])}}function ts(De,Me){if(1&De&&(n.j41(0,"div"),n.nrm(1,"nv-search-result-row",19),n.k0s()),2&De){const w=Me.$implicit;n.R7$(),n.Y8G("searchResult",w)}}function gr(De,Me){if(1&De&&(n.j41(0,"div"),n.DNE(1,ts,2,1,"div",18),n.k0s()),2&De){const w=n.XpG(2);n.R7$(),n.Y8G("ngForOf",w.groupedSearchResults[w.searchResultGroups.System])}}function Cr(De,Me){if(1&De&&(n.j41(0,"div"),n.nrm(1,"nv-search-result-row",19),n.k0s()),2&De){const w=Me.$implicit;n.R7$(),n.Y8G("searchResult",w)}}function os(De,Me){if(1&De&&(n.j41(0,"div"),n.DNE(1,Cr,2,1,"div",18),n.k0s()),2&De){const w=n.XpG(2);n.R7$(),n.Y8G("ngForOf",w.groupedSearchResults[w.searchResultGroups.Settings])}}function Xo(De,Me){if(1&De&&(n.j41(0,"div"),n.nrm(1,"nv-search-result-row",19),n.k0s()),2&De){const w=Me.$implicit;n.R7$(),n.Y8G("searchResult",w)}}function Ps(De,Me){if(1&De&&(n.j41(0,"div"),n.DNE(1,Xo,2,1,"div",18),n.k0s()),2&De){const w=n.XpG(2);n.R7$(),n.Y8G("ngForOf",w.groupedSearchResults[w.searchResultGroups.Redeem])}}function sl(De,Me){if(1&De&&(n.j41(0,"div",9)(1,"div",10)(2,"div",11)(3,"mat-chip-list"),n.DNE(4,_r,4,4,"mat-chip",12),n.k0s()()(),n.nrm(5,"mat-divider"),n.j41(6,"div",13),n.DNE(7,Pt,2,1,"div",14)(8,rn,2,1,"div",5)(9,Hn,2,1,"div",5)(10,yr,2,1,"div",14)(11,gr,2,1,"div",5)(12,os,2,1,"div",5)(13,Ps,2,1,"div",5),n.k0s()()),2&De){const w=n.XpG();n.R7$(4),n.Y8G("ngForOf",w.groups),n.R7$(3),n.Y8G("ngIf",w.activeGroup===w.searchResultGroups.All),n.R7$(),n.Y8G("ngIf",w.activeGroup===w.searchResultGroups.Home),n.R7$(),n.Y8G("ngIf",w.activeGroup===w.searchResultGroups.Drivers),n.R7$(),n.Y8G("ngIf",w.activeGroup===w.searchResultGroups.Graphics),n.R7$(),n.Y8G("ngIf",w.activeGroup===w.searchResultGroups.System),n.R7$(),n.Y8G("ngIf",w.activeGroup===w.searchResultGroups.Settings),n.R7$(),n.Y8G("ngIf",w.activeGroup===w.searchResultGroups.Redeem)}}function Aa(De,Me){1&De&&(n.j41(0,"div")(1,"div",20)(2,"div",21),n.EFF(3),n.nI1(4,"translate"),n.k0s(),n.j41(5,"div",22),n.EFF(6),n.nI1(7,"translate"),n.k0s()()()),2&De&&(n.R7$(3),n.SpI(" ",n.bMT(4,2,"search.nothingToSee")," "),n.R7$(3),n.SpI(" ",n.bMT(7,4,"search.adjustSearchQuery")," "))}function ma(De,Me){1&De&&(n.j41(0,"div")(1,"div",20)(2,"div",21),n.EFF(3),n.nI1(4,"translate"),n.k0s(),n.j41(5,"div",22),n.EFF(6),n.nI1(7,"translate"),n.k0s()()()),2&De&&(n.R7$(3),n.SpI(" ",n.bMT(4,2,"search.nothingToSee")," "),n.R7$(3),n.SpI(" ",n.bMT(7,4,"search.emptyInputQuery")," "))}function lc(De,Me){if(1&De&&(n.j41(0,"div",23)(1,"div",23)(2,"span",24),n.EFF(3),n.nI1(4,"translate"),n.k0s(),n.j41(5,"div",25)(6,"button",26),n.EFF(7),n.nI1(8,"translate"),n.k0s()()()()),2&De){const w=n.XpG();n.R7$(3),n.JRh(n.bMT(4,2,w.errorMessage)),n.R7$(4),n.SpI(" ",n.bMT(8,4,"common.retry")," ")}}const sd=[{path:"",pathMatch:"full",redirectTo:zs.f.Home},{path:zs.f.Home,loadChildren:()=>Promise.all([s.e(880),s.e(588)]).then(s.bind(s,26588)).then(De=>De.HomeModule),data:{reuse:!0}},{path:zs.f.Drivers,loadChildren:()=>Promise.all([s.e(880),s.e(909)]).then(s.bind(s,75909)).then(De=>De.DriversModule),data:{reuse:!0}},{path:zs.f.Manage3dSettings,loadChildren:()=>Promise.all([s.e(109),s.e(76),s.e(600)]).then(s.bind(s,39600)).then(De=>De.Manage3dSettingsModule),data:{reuse:!0}},{path:zs.f.Rewards,loadChildren:()=>s.e(586).then(s.bind(s,52586)).then(De=>De.RewardsModule),data:{reuse:!0}},{path:zs.f.Preferences,loadChildren:()=>Promise.all([s.e(109),s.e(76),s.e(538)]).then(s.bind(s,99538)).then(De=>De.PreferencesModule),data:{reuse:!1}},{path:zs.f.System,loadChildren:()=>Promise.all([s.e(109),s.e(76),s.e(55)]).then(s.bind(s,55055)).then(De=>De.SystemModule),data:{reuse:!0},canDeactivate:[(De,Me,w,ie)=>{const We=(0,n.WQX)(xa.b),xt=(0,n.WQX)(ho.o);return We.saveOnTabChange().pipe((0,Hi.M)(hn=>{hn||xt.updateSidebarPageItems(zs.f.System)}))}]},{path:zs.f.SearchResults,component:(()=>{class De{get allSearchResults(){return this._allSearchResults}set allSearchResults(w){this._allSearchResults=w}get groupedSearchResults(){return this._groupedSearchResults}set groupedSearchResults(w){this._groupedSearchResults=w}setActiveGroup(w){this.activeGroup=w}constructor(w,ie,We,xt){this.indexService=ie,this.searchManagerService=We,this.appBarService=xt,this.activeView=br.Pf.Loading,this.viewState=br.Pf,this._allSearchResults=[],this._groupedSearchResults={},this.allResultGroups=br.Jx,this.searchResultGroups=br.I8,this.groups=[br.I8.All],this.activeGroup=br.I8.All,this.destroyRef=(0,n.WQX)(n.abz),this.logger=w.getLogger("search/SearchResultsComponent"),this.appBarService.setTitle("appBar.search")}ngOnInit(){this.initializeDataListeners()}groupSearchResultsByTabs(w){return w.reduce((ie,We)=>{const xt=We.params?.filterType;return ie[xt]||(ie[xt]=[]),ie[xt].push(We),ie},{})}initializeDataListeners(){this.searchResultsChangedSub=(0,Oo.zV)([this.indexService.onSearchResultChanged(),this.searchManagerService.isSearchActive$]).pipe((0,Hi.M)(([w,ie])=>{this.logger.info("Search state update",{hasResponse:!!w,isSearchActivated:ie,resultsCount:w?.processedSearchResult?.resultsLength})})).subscribe(([w,ie])=>{if(ie){const We=w?.processedSearchResult.categorizedResult,xt=this.searchManagerService.getAppsAndSettingsFromSearchResults(We),hn=this.groupSearchResultsByTabs(xt);this.allSearchResults=xt,this.groupedSearchResults=hn,0===this.allSearchResults.length?this.activeView=br.Pf.ReadyWithEmptyResults:(this.updateGroups(Object.keys(hn)),this.activeView=br.Pf.Ready)}},w=>{this.logger.error("Error processing search results",{error:w}),this.activeView=br.Pf.Error,this.errorMessage="Error processing search results"})}updateGroups(w){this.groups=this.allResultGroups.filter(ie=>ie===br.I8.All||w.includes(ie))}ngOnDestroy(){this.searchResultsChangedSub?.unsubscribe(),this.searchManagerService.clearSearchQuery(),this.searchManagerService.isSearchActive=!1}static{this.\u0275fac=function(ie){return new(ie||De)(n.rXU(Bi.J6),n.rXU(ya.G),n.rXU(cr),n.rXU(Kr.g))}}static{this.\u0275cmp=n.VBU({type:De,selectors:[["nv-app-search-results"]],decls:8,vars:5,consts:[[1,"search-results-view"],["fxFlex","",1,"flex-row"],["fxFlex","1 1 100%",1,"flex-col"],["class","spinner-container flex-col align-items-center","fxFlexFill","",4,"ngIf"],["fxLayout","column","fxFill","",4,"ngIf"],[4,"ngIf"],["class","flex-col align-items-center",4,"ngIf"],["fxFlexFill","",1,"spinner-container","flex-col","align-items-center"],["mode","indeterminate","color","accent","diameter","24","strokeWidth","4"],["fxLayout","column","fxFill",""],[1,"tab-container"],[1,"flex-row","gap-8"],["selectable","",3,"selected","click","keyup.enter",4,"ngFor","ngForOf"],[1,"tab-content"],["class","fill-center",4,"ngIf"],["selectable","",3,"click","keyup.enter","selected"],[1,"font-body2"],[1,"fill-center"],[4,"ngFor","ngForOf"],[3,"searchResult"],[1,"search-results-empty-state"],[1,"warning-title","font-header5"],[1,"warning-text","font-body2"],[1,"flex-col","align-items-center"],[1,"layout-error-page-action-section-text","font-body1"],[1,"layout-error-page-action-section-button-wrapper"],["mat-raised-button","","mat-button","","color","accent",1,"launch-button","font-button2"]],template:function(ie,We){1&ie&&(n.j41(0,"div",0)(1,"div",1)(2,"div",2),n.DNE(3,Ci,2,0,"div",3)(4,sl,14,8,"div",4)(5,Aa,8,6,"div",5)(6,ma,8,6,"div",5)(7,lc,9,6,"div",6),n.k0s()()()),2&ie&&(n.R7$(3),n.Y8G("ngIf",We.activeView===We.viewState.Loading),n.R7$(),n.Y8G("ngIf",We.activeView===We.viewState.Ready),n.R7$(),n.Y8G("ngIf",We.activeView===We.viewState.ReadyWithEmptyResults),n.R7$(),n.Y8G("ngIf",We.activeView===We.viewState.ReadyWithEmptyQuery),n.R7$(),n.Y8G("ngIf",We.activeView===We.viewState.Error))},dependencies:[Wr.iV,Qr.LG,Rs.q,Hr.Aq,as.O_,as.Id,ps.Sq,ps.bT,mi,yt.D9],styles:[".search-results-view[_ngcontent-%COMP%]{height:100%;overflow:hidden}.search-results[_ngcontent-%COMP%]{padding:16px}.spinner-container[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;height:100vh}.search-results-empty-state[_ngcontent-%COMP%]{height:300px;width:100%;display:flex;flex-direction:column;justify-content:flex-start;align-items:center;flex:1 1 auto;text-align:center}.search-results-empty-state[_ngcontent-%COMP%] .warning-title[_ngcontent-%COMP%]{margin-top:181px;width:560px}.search-results-empty-state[_ngcontent-%COMP%] .warning-text[_ngcontent-%COMP%]{margin-top:9px;width:560px}.tab-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;margin-top:10px;margin-bottom:10px;justify-content:center;align-items:center}.tab-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;align-items:center;overflow-y:auto;width:100%}.fill-center[_ngcontent-%COMP%]{max-height:100%}"]})}}return De})()},{path:"**",pathMatch:"full",redirectTo:zs.f.Home}];class Ic extends Do.Gl{shouldReuseRoute(Me,w){return Me.data.reuse}}let dl=(()=>{class De{static{this.\u0275fac=function(ie){return new(ie||De)}}static{this.\u0275mod=n.$C({type:De})}static{this.\u0275inj=n.G2t({imports:[Do.iI.forRoot(sd,{useHash:!0}),Do.iI]})}}return De})();var kl=s(45768),zl=s(70279),Fl=s(26537),wc=s(83983),Kd=s(60990),Ys=s(40514);function ec(De,Me){if(1&De&&(n.j41(0,"p",10),n.EFF(1),n.k0s()),2&De){const w=Me.$implicit;n.R7$(),n.SpI(" ",w," ")}}let Rc=(()=>{class De{constructor(w,ie,We,xt,hn,On){this.appConfig=w,this.redirectService=ie,this.loggingService=We,this.dialogRef=xt,this.eulaService=hn,this.localeService=On,this.productVersionText={productVersion:""},this.logger=this.loggingService.getLogger("nvapp/EulaModalComponent")}ngOnInit(){this.getDisclosureInfo(),this.productVersionText.productVersion=this.appConfig?.build?.version;const w=this.redirectService.getRedirectUrl(zl.r7.PrivacyPolicy),ie=this.redirectService.getRedirectUrl(zl.r7.TermsConditions);(0,Yt.yU)(w,ie).pipe((0,ii.s)(1)).subscribe(([We,xt])=>{this.privacyPolicyLink=We,this.termsOfUseLink=xt},We=>{this.logger.error("Error occurred while initializing EULA details ",We)})}agreeAndContinue(){this.logger.info("Closing dialog box and setting up the user consent"),this.dialogRef.close(),this.eulaService.setEulaAccepted().pipe((0,ii.s)(1)).subscribe(w=>{this.eulaService.updateEulaAccepted(!0),this.logger.info("Consent has been set")},w=>{this.eulaService.updateEulaAccepted(!0),this.logger.error("Error occurred while setting user consent",w)})}getDisclosureInfo(){this.localeService.localeChanged.pipe((0,io.n)(w=>this.eulaService.getDisclosureText(w)),(0,ii.s)(1)).subscribe(w=>{this.disclosureInfo=w.split("\n").filter(ie=>"\r"!==ie)},w=>this.logger.info("Error occurred while getting disclosure text ",w))}static{this.\u0275fac=function(ie){return new(ie||De)(n.rXU(lr.Vk),n.rXU(zl.Q5),n.rXU(Bi.J6),n.rXU(Fl.CP),n.rXU(wc.h),n.rXU(Bi.iH))}}static{this.\u0275cmp=n.VBU({type:De,selectors:[["nv-app-eula-modal"]],decls:23,vars:19,consts:[[1,"eula-modal"],[1,"eula-header"],["svgIcon","nvidiaBranding",1,"logo"],["mat-dialog-title","",1,"font-header6","title"],[1,"font-body2","eula-content"],["class","font-body2 text",4,"ngFor","ngForOf"],[1,"text","end-text"],["target","_blank",1,"font-body2-link",3,"href"],["align","end",1,"eula-actions"],["mat-raised-button","",1,"font-button2","mat-accent",3,"click"],[1,"font-body2","text"]],template:function(ie,We){1&ie&&(n.j41(0,"div",0)(1,"div",1),n.nrm(2,"mat-icon",2),n.j41(3,"p",3),n.EFF(4),n.nI1(5,"translate"),n.k0s()(),n.j41(6,"mat-dialog-content",4),n.DNE(7,ec,2,1,"p",5),n.j41(8,"p",6),n.EFF(9),n.nI1(10,"translate"),n.k0s(),n.j41(11,"span")(12,"a",7),n.EFF(13),n.nI1(14,"translate"),n.k0s()(),n.j41(15,"span")(16,"a",7),n.EFF(17),n.nI1(18,"translate"),n.k0s()()(),n.j41(19,"mat-dialog-actions",8)(20,"button",9),n.bIt("click",function(){return We.agreeAndContinue()}),n.EFF(21),n.nI1(22,"translate"),n.k0s()()()),2&ie&&(n.R7$(4),n.SpI(" ",n.i5U(5,8,"eula.nvAppVersionText",We.productVersionText)," "),n.R7$(3),n.Y8G("ngForOf",We.disclosureInfo),n.R7$(2),n.JRh(n.bMT(10,11,"eula.textFive")),n.R7$(3),n.Y8G("href",We.termsOfUseLink,n.B4B),n.R7$(),n.SpI(" ",n.bMT(14,13,"eula.agreeToTermsOfUse")," "),n.R7$(3),n.Y8G("href",We.privacyPolicyLink,n.B4B),n.R7$(),n.SpI(" ",n.bMT(18,15,"eula.privacyText")," "),n.R7$(4),n.SpI(" ",n.bMT(22,17,"eula.agreeAndContinue")," "))},dependencies:[ps.Sq,Kd.r,Hr.Aq,Ys.e,Wr.iV,_i.An,Fl.BI,Fl.Yi,Fl.E7,yt.D9],styles:[".eula-modal[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100%}.eula-modal[_ngcontent-%COMP%] .eula-header[_ngcontent-%COMP%]{display:flex;flex-direction:column}.eula-modal[_ngcontent-%COMP%] .eula-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:0 24px;margin:0;flex:1 1 auto}.eula-modal[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{margin:9px 0}.eula-modal[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%]{width:168px;height:30px;margin-top:38px;margin-left:24px}.eula-modal[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{margin:30px 24px 10px;letter-spacing:.15px;padding:0}.eula-modal[_ngcontent-%COMP%] .end-text[_ngcontent-%COMP%]{margin-bottom:0}.eula-modal[_ngcontent-%COMP%] .eula-actions[_ngcontent-%COMP%]{height:52px;padding:12px 8px 0;align-items:flex-end;margin:0 0 8px}"]})}}return De})();var Zr=s(1242),od=s(83128);const y=Symbol("Comlink.proxy"),c=Symbol("Comlink.endpoint"),p=Symbol("Comlink.releaseProxy"),O=Symbol("Comlink.finalizer"),F=Symbol("Comlink.thrown"),Z=De=>"object"==typeof De&&null!==De||"function"==typeof De,je=new Map([["proxy",{canHandle:De=>Z(De)&&De[y],serialize(De){const{port1:Me,port2:w}=new MessageChannel;return Ct(De,Me),[w,[w]]},deserialize:De=>(De.start(),qt(De))}],["throw",{canHandle:De=>Z(De)&&F in De,serialize({value:De}){let Me;return Me=De instanceof Error?{isError:!0,value:{message:De.message,name:De.name,stack:De.stack}}:{isError:!1,value:De},[Me,[]]},deserialize(De){throw De.isError?Object.assign(new Error(De.value.message),De.value):De.value}}]]);function Ct(De,Me=globalThis,w=["*"]){Me.addEventListener("message",function ie(We){if(!We||!We.data)return;if(!function ot(De,Me){for(const w of De)if(Me===w||"*"===w||w instanceof RegExp&&w.test(Me))return!0;return!1}(w,We.origin))return void console.warn(`Invalid origin '${We.origin}' for comlink proxy`);const{id:xt,type:hn,path:On}=Object.assign({path:[]},We.data),Yn=(We.data.argumentList||[]).map(Fr);let ti;try{const Ri=On.slice(0,-1).reduce((Tr,ss)=>Tr[ss],De),ji=On.reduce((Tr,ss)=>Tr[ss],De);switch(hn){case"GET":ti=ji;break;case"SET":Ri[On.slice(-1)[0]]=Fr(We.data.value),ti=!0;break;case"APPLY":ti=ji.apply(Ri,Yn);break;case"CONSTRUCT":ti=function nr(De){return Object.assign(De,{[y]:!0})}(new ji(...Yn));break;case"ENDPOINT":{const{port1:Tr,port2:ss}=new MessageChannel;Ct(De,ss),ti=function er(De,Me){return $i.set(De,Me),De}(Tr,[Tr])}break;case"RELEASE":ti=void 0;break;default:return}}catch(Ri){ti={value:Ri,[F]:0}}Promise.resolve(ti).catch(Ri=>({value:Ri,[F]:0})).then(Ri=>{const[ji,Tr]=ys(Ri);Me.postMessage(Object.assign(Object.assign({},ji),{id:xt}),Tr),"RELEASE"===hn&&(Me.removeEventListener("message",ie),Et(Me),O in De&&"function"==typeof De[O]&&De[O]())}).catch(Ri=>{const[ji,Tr]=ys({value:new TypeError("Unserializable return value"),[F]:0});Me.postMessage(Object.assign(Object.assign({},ji),{id:xt}),Tr)})}),Me.start&&Me.start()}function Et(De){(function Rt(De){return"MessagePort"===De.constructor.name})(De)&&De.close()}function qt(De,Me){return si(De,[],Me)}function gn(De){if(De)throw new Error("Proxy has been released and is not useable")}function tn(De){return Si(De,{type:"RELEASE"}).then(()=>{Et(De)})}const Pn=new WeakMap,Bn="FinalizationRegistry"in globalThis&&new FinalizationRegistry(De=>{const Me=(Pn.get(De)||0)-1;Pn.set(De,Me),0===Me&&tn(De)});function si(De,Me=[],w=function(){}){let ie=!1;const We=new Proxy(w,{get(xt,hn){if(gn(ie),hn===p)return()=>{(function jn(De){Bn&&Bn.unregister(De)})(We),tn(De),ie=!0};if("then"===hn){if(0===Me.length)return{then:()=>We};const On=Si(De,{type:"GET",path:Me.map(Yn=>Yn.toString())}).then(Fr);return On.then.bind(On)}return si(De,[...Me,hn])},set(xt,hn,On){gn(ie);const[Yn,ti]=ys(On);return Si(De,{type:"SET",path:[...Me,hn].map(Ri=>Ri.toString()),value:Yn},ti).then(Fr)},apply(xt,hn,On){gn(ie);const Yn=Me[Me.length-1];if(Yn===c)return Si(De,{type:"ENDPOINT"}).then(Fr);if("bind"===Yn)return si(De,Me.slice(0,-1));const[ti,Ri]=bi(On);return Si(De,{type:"APPLY",path:Me.map(ji=>ji.toString()),argumentList:ti},Ri).then(Fr)},construct(xt,hn){gn(ie);const[On,Yn]=bi(hn);return Si(De,{type:"CONSTRUCT",path:Me.map(ti=>ti.toString()),argumentList:On},Yn).then(Fr)}});return function ei(De,Me){const w=(Pn.get(Me)||0)+1;Pn.set(Me,w),Bn&&Bn.register(De,Me,De)}(We,De),We}function vi(De){return Array.prototype.concat.apply([],De)}function bi(De){const Me=De.map(ys);return[Me.map(w=>w[0]),vi(Me.map(w=>w[1]))]}const $i=new WeakMap;function ys(De){for(const[Me,w]of je)if(w.canHandle(De)){const[ie,We]=w.serialize(De);return[{type:"HANDLER",name:Me,value:ie},We]}return[{type:"RAW",value:De},$i.get(De)||[]]}function Fr(De){switch(De.type){case"HANDLER":return je.get(De.name).deserialize(De.value);case"RAW":return De.value}}function Si(De,Me,w){return new Promise(ie=>{const We=function dr(){return new Array(4).fill(0).map(()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)).join("-")}();De.addEventListener("message",function xt(hn){!hn.data||!hn.data.id||hn.data.id!==We||(De.removeEventListener("message",xt),ie(hn.data))}),De.start&&De.start(),De.postMessage(Object.assign({id:We},Me),w)})}let Vo=(()=>{class De{constructor(w){this.logger=w.getLogger("NvWebWorkerService")}setupSearchWorker(){if(typeof Worker<"u"){const w=new Worker(s.tu(new URL(s.p+s.u(981),s.b)),{type:void 0,name:"nvapp-web"});this.searchWorker=qt(w)}else this.logger.warn("Web workers not supported, will use fallback mechanism");return this.searchWorker}static{this.\u0275fac=function(ie){return new(ie||De)(n.KVO(Bi.J6))}}static{this.\u0275prov=n.jDH({token:De,factory:De.\u0275fac,providedIn:"root"})}}return De})();var Ds=s(5932),Ss=s(20924),Js=s(53698),xo=s(4760);let va=(()=>{class De{constructor(w,ie,We,xt,hn,On){this.bridgeService=w,this.genericDialog=We,this.downloaderService=xt,this.telemetryService=hn,this.redirectService=On,this.errorDialogLinkClicked=(Yn,ti,Ri)=>{this.logger.info("link clicked"),this.redirectService.getRedirectUrl(zl.r7.NvappMainPage).pipe((0,ii.s)(1)).subscribe(ji=>{this.logger.info("Redirect to URL",ji),window.open(ji)?this.sendTelemetryEvent(Yn,ti,Zr.fs.Redirect,Zr.fb.Success):this.sendTelemetryEvent(Yn,ti,Zr.fs.Redirect,Zr.fb.Failure,Ri)})},this.handleDownloadProgress=Yn=>{Yn?.downloadStatus===Ss.Or.Common.Downloader.DownloadStatus.Prohibited&&this.showUpdateFailedErrorDialog("nvAppSelfUpdate.errorDialogHeaderText","nvAppSelfUpdate.errorDialogDescText",Yn?.version,Zr.zP.DownloadAttemptExhausted)},this.logger=ie.getLogger("SelfUpdateService"),this.updateInternalSubject=new Ds.Subject}initialize(){this.checkLastInstallerStatus(),this.registerForNotifications()}registerForNotifications(){this.registerDriverUpdateCheckProgressNotification(),this.registerAutoUpdateProgressNotification(),this.triggerAutoUpdateCheck()}getUpdateAvailableObservable(){return this.updateInternalSubject.asObservable()}restartApp(){this.bridgeService.executeCommand(Ss.Ts.Common.Applicationcontrol.Restart,{launchArguments:""}).subscribe()}showUpdateFailedErrorDialog(w,ie,We,xt,hn){const On={text:"nvAppSelfUpdate.errorDialogLinkText",linkClickedCallback:this.errorDialogLinkClicked.bind(this,We,xt,hn)};let Yn;hn&&(Yn={text:"common.errorCode",placeholders:{errorCode:hn}});const ti=this.genericDialog.open({panelClass:"dialogPaddingRemove",disableClose:!0,data:{headerText:{text:w},bodyText:{text:ie},primaryButton:{text:"common.close"},link:On,errorCodeText:hn?Yn:null}});xt&&this.sendTelemetryEvent(We,xt,Zr.fs.PopupShown,Zr.fb.Success),ti.primaryButtonClick.pipe((0,ii.s)(1)).subscribe(()=>{this.logger.info("close clicked "),ti.close()})}triggerAutoUpdateCheck(){const w={componentName:Js.ZX.NVAPP};this.logger.info("Triggering TriggerAutoUpdate() call"),this.bridgeService.executeCommand(Ss.Ts.Common.Downloader.TriggerAutoUpdate,w).subscribe(ie=>{this.logger.info("self update triggered successfully with response: ",ie)},ie=>{this.logger.info("self update failed with error: ",ie)})}registerDriverUpdateCheckProgressNotification(){this.bridgeService.executeCommand(Ss.Ts.Common.Downloader.RegisterCheckForUpdateProgress).subscribe(w=>{this.logger.info("received check for update event for nvapp with status :",w)},w=>{this.logger.error("Failed to RegisterCheckForUpdateProgress with Error :",w)})}registerAutoUpdateProgressNotification(){this.bridgeService.executeCommand(Ss.Ts.Common.Downloader.RegisterAutoUpdateProgress).pipe((0,Ta.p)(w=>w.componentName===Js.ZX.NVAPP)).subscribe(w=>{this.logger.info("received AutoUpdateProgressInfo event for nvapp with status :",w),w.updateState===Ss.Or.Common.Downloader.UpdateState.UpdateSuccessful&&w.updateExecutionPhase===Ss.Or.Common.Downloader.UpdateExecutionPhase.PostProcessingEnd?this.handleDownloadCompleted(w.taskId):w.updateState===Ss.Or.Common.Downloader.UpdateState.UpdateFailed&&(w.updateExecutionPhase===Ss.Or.Common.Downloader.UpdateExecutionPhase.UpdateCheckEnd?this.handleUpdateCheckFailure():this.handleDownloadFailed(w))},w=>{this.logger.error("Failed to RegisterCheckForUpdateProgress with Error :",w)})}getLatestUpdateCheckTime(){return this.bridgeService.executeCommand(Ss.Ts.Common.Downloader.GetLatestUpdateCheckTime,{componentName:Js.ZX.NVAPP}).pipe((0,Hi.M)(ie=>{this.logger.info("GetLatestUpdateCheckTime returns ",ie)}),(0,es.T)(ie=>ie?.latestUpdatecheckTime))}getFirstBootTimeAfterInstall(){return this.bridgeService.executeCommand(Ss.Ts.Common.Downloader.GetFirstBootTimeAfterInstall).pipe((0,Hi.M)(w=>{this.logger.info("GetFirstBootTimeAfterInstall returns ",w)}),(0,es.T)(w=>w.firstBootTime))}getMaxDaysBetweenReleases(){return this.bridgeService.executeCommand(Ss.Ts.Common.Downloader.GetMaxDaysBetweenReleases,{componentName:Js.ZX.NVAPP}).pipe((0,Hi.M)(ie=>{this.logger.info("getMaxDaysBetweenReleases returns ",ie)}),(0,es.T)(ie=>ie.maxDaysBetweenReleases),(0,Nr.W)(ie=>(this.logger.error("Error Calling GetMaxDaysBetweenReleases api",ie),(0,ra.$)(ie))))}handleUpdateCheckFailure(){this.getLatestUpdateCheckTime().pipe((0,io.n)(w=>w.length>0?(0,jr.of)(w):this.getFirstBootTimeAfterInstall()),(0,Un.ZZ)(w=>(0,Oo.zV)([(0,jr.of)(w),this.getMaxDaysBetweenReleases()])),(0,ii.s)(1)).subscribe(([w,ie])=>{if(this.logger.info("lastUpdateOrBootTime is: ",w,"maxDays between check for udpate",ie),w.length>0&&ie>0){const We=60*ie*60*24,xt=new Date(w).getTime(),hn=(new Date).getTime();Math.max(0,Math.floor((hn-xt)/1e3))>We&&this.showUpdateFailedErrorDialog("nvAppSelfUpdate.updateCheckErrorDialogHeaderText","nvAppSelfUpdate.updateCheckErrorDialogDescText","",Zr.zP.UpdateAttemptExhausted)}},w=>{this.logger.error("GetLatestUpdateCheckTime() failed with error: ",w)})}handleDownloadFailed(w){w.taskId?this.downloaderService.getTaskDownloadStatus(Js.ZX.NVAPP,w.taskId).pipe((0,ii.s)(1)).subscribe(ie=>{this.logger.info("gtTaskDownloadStatus for Nvapp is",ie),this.handleDownloadProgress(ie)},ie=>{this.logger.error("Failed getTaskDownloadStatus with Error :",ie)}):this.logger.info("update failed with task id is empty")}isLastInstallationDataValid(w){return!!w&&!(0,wr.isEmpty)(w.errorcode)}checkLastInstallerStatus(){this.bridgeService.executeCommand(Ss.Ts.Common.Applicationcontrol.RequestLastInstallerStatus).subscribe(w=>{this.logger.info("getRequestLastInstallerStatus",w),this.isLastInstallationDataValid(w)?(this.installationFailedForClientVersion=w.clientversion,this.showUpdateFailedErrorDialog("nvAppSelfUpdate.errorDialogHeaderText","nvAppSelfUpdate.errorDialogDescText",this.installationFailedForClientVersion,Zr.zP.InstallationAttemptExhausted,w.errorcode)):(this.logger.error("Last Installation Data is not valid",w),this.installationFailedForClientVersion=null)},w=>{this.logger.error("getRequestLastInstallerStatus returns error ",w),this.installationFailedForClientVersion=null})}handleDownloadCompleted(w){this.logger.info("fetching download status for taskId: ",w),this.downloaderService.getTaskDownloadStatus(Js.ZX.NVAPP,w).pipe((0,ii.s)(1)).subscribe(ie=>{this.logger.info("getTaskDownloadStatus for Nvapp is:",ie),this.logger.info("this.installationFailedForClientVersion ",this.installationFailedForClientVersion),ie?.version?.toLowerCase()!==this.installationFailedForClientVersion?.toLowerCase()&&(this.logger.info("updating auto update observable with version:",ie.version),this.updateInternalSubject.next(ie.version))},ie=>{this.logger.error("Failed getTaskDownloadStatus with Error :",ie)})}sendTelemetryEvent(w,ie,We,xt,hn){(0,Yt.yU)(this.telemetryService.getCommonDataObservable(),this.telemetryService.getDeviceConsentObservable()).pipe((0,ii.s)(1)).subscribe(On=>{const Yn={category:ie,action:We,errorDetails:hn||"",status:xt,newVersion:w||""};this.logger.info("send telemetry of data",Yn);const ti=new Zr.OC(Yn);this.telemetryService.push(ti,null)})}static{this.\u0275fac=function(ie){return new(ie||De)(n.KVO(Bi.NZ),n.KVO(Bi.J6),n.KVO(Os.uh),n.KVO(xo.z),n.KVO(Vs.H0),n.KVO(zl.Q5))}}static{this.\u0275prov=n.jDH({token:De,factory:De.\u0275fac,providedIn:"root"})}}return De})();var to=s(10404);let Ul=(()=>{class De{constructor(w,ie,We,xt){this.loggingService=w,this.experienceControlService=ie,this.bridgeService=We,this.appConfig=xt,this.featureToggles$=new da.m(1),this.logger=this.loggingService.getLogger("nvapp/CloudVariableHelperService")}getFeatureToggles(){return this.featureToggles$.asObservable()}writeToOverrideJson(w){const ie={appname:"NVIDIA App",data:["nv-combine-processes="+w.toString()]};return this.bridgeService.executeCommand(Ss.Ts.Common.Applicationcontrol.WriteConfig,ie)}fetchGxCvAndUpdateConfig(){this.experienceControlService.setUserInfo({userId:Bi.Qe,idpId:Bi.Qe}),this.experienceControlService.setCvList(Object.values(this.appConfig.cloudVariables.experiences)),this.experienceControlService.refreshCloudVariables(),this.experienceControlService.getCloudVariable(this.appConfig.cloudVariables.experiences.nvappFeatureToggle,{},{useCache:!1,useNetworkTimeoutForCacheFallback:!0},Bo.GxTargetGetCloudVariable,li.Other).pipe((0,io.n)(w=>{const ie={processCountReduction:w?.value?.processCountReduction,hevcRecording:w?.value?.hevcRecording,lightstepToggle:w?.value?.lightstepToggle};return this.featureToggles$.next(ie),this.logger.info("Received response for ",w,ie),(0,jr.of)(ie)}),(0,Nr.W)(w=>{this.logger.error("GX CV fetch failed, using default value ",w);const ie={processCountReduction:!1,hevcRecording:!1,lightstepToggle:!1};return this.featureToggles$.next(ie),(0,jr.of)(ie)}),(0,Un.ZZ)(w=>this.writeToOverrideJson(w.processCountReduction)),(0,ii.s)(1)).subscribe(w=>{this.logger.info("Write to override succesfull ",w)},w=>{this.logger.error("Write to override failed with error ",w)})}static{this.\u0275fac=function(ie){return new(ie||De)(n.KVO(Bi.J6),n.KVO(rl),n.KVO(Bi.NZ),n.KVO(lr.Vk))}}static{this.\u0275prov=n.jDH({token:De,factory:De.\u0275fac,providedIn:"root"})}}return De})();var wl=s(55808);let Gs=(()=>{class De{constructor(w,ie,We,xt,hn,On,Yn,ti){this.loggingService=w,this.appConfig=ie,this.distributedTracingUtilService=We,this.systemInfoService=xt,this.localeService=hn,this.loginService=On,this.cloudHelperService=Yn,this.nvAccountInterfaceService=ti,this.disableTracingReplaySubject=new da.m(1),this.globalTagsReplaySubject=new da.m(1),this.logger=w.getLogger("nvapp/DistributedTracingBootstrapService")}initializeDistributedTracing(){this.distributedTracingUtilService.initializeDistributedTracing(this.appConfig.otelTracerConfig,this.appConfig.statusCodeZeroAnalyzerConfig,this.disableTracingReplaySubject,this.globalTagsReplaySubject),this.setGlobalTags(),(0,Oo.zV)([this.nvAccountInterfaceService.getPrivacySettingsConsentInfo(),this.cloudHelperService.getFeatureToggles()]).subscribe(([ie,We])=>{this.logger.info(`Tracing Toggle from Cloud: ${We?.lightstepToggle}, Functional Consent: ${ie?.deviceConsent?.hasFunctionalConsent}`),this.disableTracingReplaySubject.next(!(We?.lightstepToggle&&ie?.deviceConsent?.hasFunctionalConsent))},ie=>this.logger.error("Error occurred while getting privacy consent and cloud variable details ",ie)),this.listenToPrivacySettingConsentInfoChangeNotification()}listenToPrivacySettingConsentInfoChangeNotification(){this.nvAccountInterfaceService.getPrivacySettingsConsentInfoChangeNotification().subscribe(w=>{this.logger.info("Device consent info updated ",w),this.disableTracingReplaySubject.next(!w?.deviceConsent?.hasFunctionalConsent)},w=>this.logger.error("Error occurred while listening to privacy settings consent change notification ",w))}setGlobalTags(){const w=(0,jr.of)({[Vr.NS.ServiceVersion]:this.appConfig?.build?.version,[Vr.NS.ServiceType]:Vr.Se.Native_Windows,[Vr.NS.SpanKind]:Vr.ls.Client,[Vr.NS.AppName]:"NvApp"}),ie=this.systemInfoService.getSystemInfo([Bi.Lu.DeviceId]).pipe((0,es.T)(On=>({[Vr.NS.DeviceId]:On.DeviceId})),(0,In.Z)({})),We=this.systemInfoService.getSystemInfo([Bi.Lu.Platform,Bi.Lu.OSName,Bi.Lu.OSVersion]).pipe((0,es.T)(On=>({[Vr.NS.ClientOs]:On.Platform,[Vr.NS.ClientOsName]:On.OSName,[Vr.NS.ClientOsVersion]:On.OSVersion})),(0,In.Z)({}),(0,Nr.W)(On=>(this.logger.info(`Error fetching osInfo: ${On}`),(0,jr.of)({})))),xt=this.localeService.localeChanged.pipe((0,es.T)(On=>({[Vr.NS.Locale]:On})),(0,In.Z)({})),hn=this.loginService.accountStatusChanged.pipe((0,es.T)(On=>({[Vr.NS.LoginStatus]:On?.isAuthenticated})),(0,In.Z)({}));(0,Oo.zV)([w,ie,We,xt,hn]).subscribe(([On,Yn,ti,Ri,ji])=>{const Tr=(0,wr.merge)({},On,Yn,ti,Ri,ji);this.logger.info("Setting the global tags:",Tr),this.globalTagsReplaySubject.next(Tr)})}static{this.\u0275fac=function(ie){return new(ie||De)(n.KVO(Bi.J6),n.KVO(lr.Vk),n.KVO(Vr.Z1),n.KVO(Bi.zW),n.KVO(Bi.iH),n.KVO(to.HF),n.KVO(Ul),n.KVO(wl.W))}}static{this.\u0275prov=n.jDH({token:De,factory:De.\u0275fac,providedIn:"root"})}}return De})();var Sa=s(56237),Ua=s(5798);let Za=(()=>{class De{constructor(w,ie,We){this.injector=w,this.statusCodeZeroAnalyzerFactoryService=We,this.logger=ie.getLogger("http-telemetry.service"),this.reverseOriginalService=new Map,Object.keys(Zr.Uu).forEach(xt=>{this.reverseOriginalService.set(Zr.Uu[xt],xt)})}getStatusCodeZeroAnalyzer(){if(this.statusCodeZeroAnalyzer)return this.statusCodeZeroAnalyzer;const w=this.injector.get(lr.Vk)?.statusCodeZeroAnalyzerConfig;return this.statusCodeZeroAnalyzer=this.statusCodeZeroAnalyzerFactoryService.createAnalyzer(w),this.statusCodeZeroAnalyzer}getRetryCount(w){return(0,wr.isNil)(w)||(0,wr.isNil)(w.retryCount)?0:parseInt(w.retryCount,10)}getResponseData(w){let ie="";if(!(0,wr.isNil)(w.body)&&!(0,wr.isNil)(w.status)){const We=w.status;We>0&&(We<200||We>=300)&&(ie=JSON.stringify(w.body),ie=ie.substring(0,1024))}return ie}getOriginalService(w){return(0,wr.isNil)(w)||(0,wr.isNil)(w.originalService)||(0,wr.isNil)(this.reverseOriginalService.get(w.originalService))?Zr.Uu.Other:Zr.Uu[this.reverseOriginalService.get(w.originalService)]}getServiceUseCase(w){return(0,wr.isNil)(w)||(0,wr.isNil)(w.serviceUseCase)?Zr.We.Other:w.serviceUseCase}getServiceSubUseCase(w){return(0,wr.isNil)(w)||(0,wr.isNil)(w.serviceSubUseCase)?Zr.We.Other:w.serviceSubUseCase}sendHTTPCallResult(w,ie){(0,wr.isNil)(this.telemetryService)&&(this.telemetryService=this.injector.get(Vs.H0)),(0,wr.isNil)(this.telemetryUtilService)&&(this.telemetryUtilService=this.injector.get(Zr.AY));const We=ie?w.options.includeRequestId?w.options.headers[Ua.SA.xRequestId]:"":w.response.xRequestId?w.response.xRequestId:"";ie||(this.getErrorInfo$=0!==w.response.status?(0,jr.of)({statusCode:w.response.status}):this.getStatusCodeZeroAnalyzer().getFailureCode({requestUrl:w.response.url,uniqueRequestId:We})),(0,wr.isNil)(this.telemetryService)||(0,wr.isNil)(this.telemetryUtilService)?this.logger.warn("Unable to send event for http request: ",w.response.url):(0,Yt.yU)(this.telemetryService.getCommonDataObservable(),this.telemetryService.getDeviceConsentObservable()).pipe((0,Un.ZZ)(xt=>(0,Sa.T)(()=>!ie,this.getErrorInfo$,(0,jr.of)({})))).subscribe(xt=>{const On=xt?.cachedDNSEntry?.destinationIp||"",Yn=ie?"":String(xt.statusCode),ti=new Zr.VD({sourceComponent:Zr.sK.NvAppClient,originalService:this.getOriginalService(w.options.reportRequestData),serviceUseCase:this.getServiceUseCase(w.options.reportRequestData),serviceSubUseCase:this.getServiceSubUseCase(w.options.reportRequestData),url:w.response.url,networkErrorCode:Yn,destinationIp:On,xRequestId:We,httpStatus:w.response.status||0,responseData:this.getResponseData(w.response),durationMs:parseInt(w.options.reportRequestData.requestEndTime,10)-parseInt(w.options.reportRequestData.requestStartTime,10)||0,retryCount:this.getRetryCount(w.options.reportRequestData),wasSWCacheBypassed:Zr.T8.UNDEFINED});this.telemetryService.push(ti)})}initialize(){this.logger.info("Initializing HTTP Telemetry Service"),Ua.sl.httpErrorEvents$().subscribe(w=>{this.sendHTTPCallResult(w,!1)}),Ua.sl.httpSuccessEvents$().subscribe(w=>{this.sendHTTPCallResult(w,!0)})}static{this.\u0275fac=function(ie){return new(ie||De)(n.KVO(n.zZn),n.KVO(Bi.J6),n.KVO(Bi.pZ))}}static{this.\u0275prov=n.jDH({token:De,factory:De.\u0275fac,providedIn:"root"})}}return De})();var Ja=s(58332),bl=s(70521);let gl=(()=>{class De{constructor(w,ie){this.serviceWorkerService=w,this.loggingService=ie,this.logger=this.loggingService.getLogger("ServiceWorkerUpdateService")}initialize(){this.serviceWorkerService.serviceWorkerSupported()&&(this.serviceWorkerService.swIsActive()&&this.logger.info("Initialize: SW already active"),this.handleServiceWorkerActivated(),this.autoUpdateOnAppLaunch())}activateServiceWorker(){return this.logger.info("NvApp SW Activation requested"),this.serviceWorkerService.activateServiceWorker()}checkForUpdates(){return(0,ia.H)(this.serviceWorkerService.checkForUpdates()).pipe((0,ii.s)(1))}handleServiceWorkerActivated(){this.logger.info("NvApp SW Activated: Init"),this.serviceWorkerService.swActivated.subscribe(w=>{this.logger.info("NvApp SW Activated: New Service worker activated",w)},w=>this.logger.error("NvApp SW Activated: Error -",w.toString()))}autoUpdateOnAppLaunch(){this.logger.info("NvApp SW Auto Update: Init"),this.checkForUpdates().pipe((0,Ta.p)(w=>w.updateAvailable),(0,Un.ZZ)(w=>(this.logger.info("NvApp SW Auto Update: Requesting to activate."),this.activateServiceWorker()))).subscribe(w=>{this.logger.info("NvApp SW Auto Update: Activation result",w)},w=>this.logger.error("NvApp SW Auto Update: Request failed",w.toString()))}static{this.\u0275fac=function(ie){return new(ie||De)(n.KVO(bl.lS),n.KVO(Bi.J6))}}static{this.\u0275prov=n.jDH({token:De,factory:De.\u0275fac,providedIn:"root"})}}return De})();var Ka=s(45032),cc=s(73370),dc=s(45276),Bl=s(44272),Nc=s(21172),tc=s(96306),ul=s(37898),Kl=s(66340),Zc=s(15294),Lc=s(59584),kc=s(7428),No=s(1794),Fc=s(98456),uc=s(25864),$l=s(398),$a=s(4208);let Jr=(()=>{class De{constructor(w,ie,We,xt,hn,On){this.offDeviceLinkService=ie,this.localeService=We,this.appConfig=xt,this.loginService=hn,this.telemetryUtilService=On,this.destroy$=new cl.B7,this.logger=w.getLogger("AccountService"),this.redirectUrl=xt.redirect.serverUrl,this.loginService.accountStatusChanged.pipe((0,$a.Q)(this.destroy$)).subscribe(Yn=>{this.user=Yn})}openAccountProfilePage(w){this.openBrowserWindow(zl.r7.NvAppAccountManagementSSO,to.fx.AppBar,zl.lp[zl.r7.NvAppAccountManagementSSO],w)}openBrowserWindow(w,ie,We,xt){this.telemetryUtilService.sendClickEvent(Zr.EB.AccountManagementSso,ie,!1),this.prepareProductMatrixURL(w,xt).subscribe(hn=>{this.logger.info("opening browser with url: ",hn),this.offDeviceLinkService.open(hn,{shortUrl:We})},hn=>{this.logger.error("Failed to open web page "+w+" with error: ",hn.message)})}prepareProductMatrixURL(w,ie){return this.localeService.localeChanged.pipe((0,ii.s)(1),(0,es.T)(We=>{const xt=new URL(this.redirectUrl+We);return xt.searchParams.append("page",w),ie&&xt.searchParams.append("jso",btoa(JSON.stringify({Plt:zl.Gl.PC,idpId:this.user.idpId,loginHint:ie}))),xt.toString()}))}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static{this.\u0275fac=function(ie){return new(ie||De)(n.KVO(Bi.J6),n.KVO(Os.nO),n.KVO(Bi.iH),n.KVO(lr.Vk),n.KVO(to.HF),n.KVO(Zr.AY))}}static{this.\u0275prov=n.jDH({token:De,factory:De.\u0275fac,providedIn:"root"})}}return De})();var hc=s(51006);var el=s(3457),Ia=s(28139);const nc=["surveyFrame"];function xd(De,Me){if(1&De){const w=n.RV6();n.j41(0,"div",5)(1,"iframe",6,0),n.bIt("load",function(We){n.eBV(w);const xt=n.XpG();return n.Njj(xt.onLoad(We))})("error",function(){n.eBV(w);const We=n.XpG();return n.Njj(We.onError())}),n.k0s()()}if(2&De){const w=n.XpG();n.Y8G("hidden",w.loadingFrame)("ngStyle",w.nvContainerSize),n.R7$(),n.Y8G("src",w.getSource(),n.f$h)("ngStyle",w.nvSize)}}function Hu(De,Me){if(1&De){const w=n.RV6();n.j41(0,"div")(1,"nv-hig-dialog",7),n.bIt("primaryButtonClick",function(){n.eBV(w);const We=n.XpG();return n.Njj(We.dismiss())}),n.k0s()()}if(2&De){const w=n.XpG();n.R7$(),n.Y8G("data",w.dialogData)}}function yd(De,Me){if(1&De&&(n.j41(0,"div",8)(1,"div"),n.nrm(2,"mat-progress-spinner",9),n.k0s()()),2&De){const w=n.XpG();n.Y8G("ngStyle",w.nvContainerSize),n.R7$(2),n.Y8G("diameter",35)}}let Sc=(()=>{class De{get state(){return this._state}set state(w){this.logger.info("state updated:",w),this._state=w}constructor(w,ie){this.networkStatusService=ie,this.continue=new n.bkB,this.nvOnClose=new n.bkB,this.nvOnSend=new n.bkB,this.loadingFrame=!0,this.firstLoad=!0,this.isLoading=!1,this.loadEvent=null,this._state="main",this.errorText="",this.errorTitle="",this.buttonText="",this.dialogData={},this.logger=w.getLogger("survey-feedback/surveyComponent"),this.logger.info("Attempting to open survey form")}ngOnInit(){this.isLoading=!1,this.loadEvent=null,this.activateOnlineSubscription(),this.isSurveyError&&(this.loadingFrame=!1),this.errorTitle=this.isSurveyError?"feedback.feedbackErrorTitle":"",this.errorText=this.isSurveyError?"feedback.feedbackErrorMessage":"feedback.problemConnectingToNvidia",this.buttonText="feedback.dismiss",this.dialogData={headerText:{text:this.errorTitle},bodyText:{text:this.errorText},primaryButton:{text:this.buttonText}}}onKeyUp(){this.dismiss()}getSource(){return this.nvSource}onError(){this.state="error",this.loadingFrame=!1,this.firstLoad=!1}dismiss(){this.loadEvent&&!this.isSurveyError&&!this.loadingFrame&&this.nvOnClose.emit("escape"),this.nvOnClose.emit("closed")}onLoad(w){this.loadEvent=w,this.isLoading=!0,this.loadEvent&&this.loadEvent.target&&this.loadEvent.target.src&&("main"!==this.state&&(this.state="main"),this.firstLoad=!1,this.logger.info("survey form opened"),this.loadingFrame=!1,setTimeout(()=>this.surveyFrame?.nativeElement.focus()),this.isSurveyError&&this.onError())}eventListener(w){switch(w.data){case"surveyengine.error":this.logger.error("invalid survey response",w.data),this.checkIfFailSilently(),this.onError();break;case"surveyengine.nosurvey":case"surveyengine.cancel":this.dismiss();break;case"surveyengine.thanks":this.nvOnSend.emit("sent")}}checkIfFailSilently(){this.failSilently&&this.firstLoad&&(this.firstLoad=!1,this.logger.error("failing silently .."),this.continue.emit("continue"))}activateOnlineSubscription(){this.onlineSubscription=this.networkStatusService.onlineStatusChanged.subscribe(w=>{"main"!==this.state&&(this.state="main"),this.loadingFrame=!this.isSurveyError,w?this.isLoading||window.addEventListener("message",ie=>{this.eventListener(ie)}):(this.isLoading||this.checkIfFailSilently(),this.logger.info("showing survey error"),this.onError())},w=>{this.logger.error("Error fetching online status at load",w),this.onError()})}ngOnDestroy(){this.onlineSubscription&&this.onlineSubscription.unsubscribe()}static{this.\u0275fac=function(ie){return new(ie||De)(n.rXU(Bi.J6),n.rXU(Bi.CF))}}static{this.\u0275cmp=n.VBU({type:De,selectors:[["nv-survey"]],viewQuery:function(ie,We){if(1&ie&&n.GBs(nc,5),2&ie){let xt;n.mGM(xt=n.lsd())&&(We.surveyFrame=xt.first)}},hostBindings:function(ie,We){1&ie&&n.bIt("keyup.esc",function(){return We.onKeyUp()},!1,n.tSv)},inputs:{nvSize:"nvSize",nvContainerSize:"nvContainerSize",nvErrorSize:"nvErrorSize",nvSource:"nvSource",failSilently:"failSilently",isSurveyError:"isSurveyError"},outputs:{continue:"continue",nvOnClose:"nvOnClose",nvOnSend:"nvOnSend"},standalone:!0,features:[n.aNF],decls:4,vars:3,consts:[["surveyFrame",""],["nvTrapFocus","",1,"survey-container-parent",3,"ngSwitch"],["class","survey-container",3,"hidden","ngStyle",4,"ngSwitchDefault"],[4,"ngSwitchCase"],["class","survey-loading-dialog-pane","fxLayoutAlign","center center",3,"ngStyle",4,"ngIf"],[1,"survey-container",3,"hidden","ngStyle"],["data-focus-loss-exempt","","id","survey-frame","allow","gamepad",1,"survey-iframe",3,"load","error","src","ngStyle"],[3,"primaryButtonClick","data"],["fxLayoutAlign","center center",1,"survey-loading-dialog-pane",3,"ngStyle"],["mode","indeterminate",1,"mat-accent",3,"diameter"]],template:function(ie,We){1&ie&&(n.j41(0,"div",1),n.DNE(1,xd,3,4,"div",2)(2,Hu,2,1,"div",3),n.k0s(),n.DNE(3,yd,3,2,"div",4)),2&ie&&(n.Y8G("ngSwitch",We.state),n.R7$(2),n.Y8G("ngSwitchCase","error"),n.R7$(),n.Y8G("ngIf",We.loadingFrame))},dependencies:[Os.ur,Os.D2,ps.ux,ps.fG,ps.B3,ps.e1,ps.bT,hc.YF,el.sA,Ia.eI,Qr.D6,Qr.LG],styles:["[_ngcontent-%COMP%]:root{--rwd-column-count: 4;--rwd-gutter-count: 3 ;--rwd-gutter-size: 8px;--rwd-container-side-spacing: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 3 ) / 4);--rwd-sidebar-width: 0px;--rwd-container-width: 100vw}@media screen and (min-width: 480px){[_ngcontent-%COMP%]:root{--rwd-column-count: 6;--rwd-gutter-count: 5 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 5 ) / 6)}}@media screen and (min-width: 720px){[_ngcontent-%COMP%]:root{--rwd-column-count: 8;--rwd-gutter-count: 7 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 7 ) / 8)}}@media screen and (min-width: 960px){[_ngcontent-%COMP%]:root{--rwd-column-count: 12;--rwd-gutter-count: 11 ;--rwd-container-side-spacing: 24px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 8px * 11 ) / 12)}}@media screen and (min-width: 1440px){[_ngcontent-%COMP%]:root{--rwd-gutter-size: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 16px * 11 ) / 12)}}.survey-loading-dialog-pane[_ngcontent-%COMP%]{background-color:#1f2224;height:610px;width:472px;border:0;overflow-y:overlay;overflow-x:hidden;max-height:80vh}.survey-loading-pane[_ngcontent-%COMP%]{margin:24px}.survey-bottom-filler[_ngcontent-%COMP%]{height:64px}.survey-iframe[_ngcontent-%COMP%]{border:0;max-height:80vh}button.survey-mat-raised-button.mat-accent[_ngcontent-%COMP%]:not([disabled]):hover{background-color:#6ba800}button.survey-mat-raised-button.mat-accent[_ngcontent-%COMP%]:not([disabled]):focus{background-color:#6ba800}button.survey-mat-raised-button.mat-accent[_ngcontent-%COMP%]:not([disabled]):active{background-color:#619900}.survey-nav-icon-container[_ngcontent-%COMP%]{display:block;text-align:center;line-height:48px;font-size:48px;height:48px;width:48px}.isLtr[_nghost-%COMP%] .survey-nav-icon-container[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .survey-nav-icon-container[_ngcontent-%COMP%]{margin-left:25px}html[dir=ltr][_ngcontent-%COMP%] .survey-nav-icon-container[_ngcontent-%COMP%]{--dummy3: 0;margin-left:25px}.isRtl[_nghost-%COMP%] .survey-nav-icon-container[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .survey-nav-icon-container[_ngcontent-%COMP%]{margin-right:25px}html[dir=rtl][_ngcontent-%COMP%] .survey-nav-icon-container[_ngcontent-%COMP%]{--dummy3: 0;margin-right:25px}.survey-container[_ngcontent-%COMP%]{overflow-y:hidden;overflow-x:hidden;max-height:80vh;background:#1f2224}@media (max-width: 599.98px) and (orientation: portrait),(max-width: 959.98px) and (orientation: landscape){.survey-container[_ngcontent-%COMP%]{overflow-y:hidden;background:#393939}.survey-iframe[_ngcontent-%COMP%]{width:inherit!important;height:inherit!important;min-height:inherit!important;max-height:inherit;padding-bottom:inherit}}@media (max-width: 599.98px) and (orientation: portrait) and (orientation: portrait),(max-width: 959.98px) and (orientation: landscape) and (orientation: portrait){.survey-iframe[_ngcontent-%COMP%]{height:-webkit-fill-available!important}}@media (max-width: 599.98px) and (orientation: portrait),(max-width: 959.98px) and (orientation: landscape){.survey-container[_ngcontent-%COMP%], .survey-loading-dialog-pane[_ngcontent-%COMP%]{width:100vw!important;height:calc(100% - env(safe-area-inset-bottom))!important;min-height:unset!important;max-height:100%;padding-bottom:env(safe-area-inset-bottom)}.survey-container-parent[_ngcontent-%COMP%]{height:100%}}.tv-view[_nghost-%COMP%] .survey-container[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .survey-container[_ngcontent-%COMP%]{overflow-y:hidden;background:#393939}.tv-view[_nghost-%COMP%] .survey-iframe[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .survey-iframe[_ngcontent-%COMP%]{width:inherit!important;height:inherit!important;min-height:inherit!important;max-height:inherit;padding-bottom:inherit}@media (orientation: portrait){.tv-view[_nghost-%COMP%] .survey-iframe[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .survey-iframe[_ngcontent-%COMP%]{height:-webkit-fill-available!important}}.tv-view[_nghost-%COMP%] .survey-container[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .survey-container[_ngcontent-%COMP%], .tv-view[_nghost-%COMP%] .survey-loading-dialog-pane[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .survey-loading-dialog-pane[_ngcontent-%COMP%]{width:100vw!important;height:calc(100% - env(safe-area-inset-bottom))!important;min-height:unset!important;max-height:100%;padding-bottom:env(safe-area-inset-bottom)}.tv-view[_nghost-%COMP%] .survey-container-parent[_ngcontent-%COMP%], .tv-view [_nghost-%COMP%] .survey-container-parent[_ngcontent-%COMP%]{height:100%}"]})}}return De})();var uh=s(65597);let ju=(()=>{class De{constructor(w,ie,We,xt,hn,On){this.sanitizer=ie,this.dialog=We,this.translateService=xt,this.snackbar=hn,this.focusManager=On,this.feedbackUrl="",this.feedbackUrlLoaded=new rs.t(!1),this.logger=w.getLogger("FeedbackService"),this.userInfo$=new da.m(1)}getUserInfoUpdated(){return this.userInfo$.asObservable()}onAccountStatusChanged(w){this.userInfo$.next(w)}initializeFeedback(w,ie,We,xt){return this.isAdminHubSurvey=!1,this.isAdminHubSurveyError=!1,We().pipe((0,Un.ZZ)(hn=>hn?ie().pipe((0,ii.s)(1),(0,es.T)(On=>(On?(this.logger.info("AdminHub Feedback Survey feature is enabled and survey found"),this.setFeedbackUrl(On.surveyContainerUrl),this.feedbackUrlLoaded.next(!0),this.isAdminHubSurvey=!0,this.subscribeToSurveyEvents(On)):(this.logger.info("initializeFeedback - AdminHub Feedback Survey is not availanble"),this.isAdminHubSurveyError=!0,this.setFeedbackUrl("")),!0))):(this.logger.info("Surveys Feature rollout is disabled, show error dialog"),this.isAdminHubSurveyError=!0,this.setFeedbackUrl(""),(0,jr.of)(!1))))}setFeedbackUrl(w){this.feedbackUrl=this.sanitizer.bypassSecurityTrustResourceUrl(w)}closeFeedbackDialog(){this.logger.trace(ua.N_.UserGesture,ua.YD.Feedback,ua.PC.close," by clicking dismiss"),this.isFeedbackDialogOpen()&&this.globalDialogref.close()}isFeedbackDialogOpen(){return!(0,wr.isNil)(this.globalDialogref)&&0===this.globalDialogref.getState()}setUpToastContainer(w){this.tc=w}onOpenFeedbackDialog(w){if(this.logger.trace(ua.N_.UserGesture,ua.YD.Feedback,ua.PC.open,"feedback option"),!this.isFeedbackDialogOpen())return this.globalDialogref=this.focusManager.restoreFocusAfterClosed(()=>{const ie=["dialogPaddingRemove","survey-cdk-overlay-pane"];return this.isAdminHubSurveyError&&ie.push("survey-cdk-overlay-error-pane"),this.dialog.open(Sc,{panelClass:ie,autoFocus:!1,hasBackdrop:!0,disableClose:!0,maxWidth:"100vw"})}),this.globalDialogref.componentInstance.nvSource=this.feedbackUrl,this.globalDialogref.componentInstance.nvContainerSize={width:this.isAdminHubSurvey?"477px":"472px",height:this.isAdminHubSurvey?"700px":"610px"},this.globalDialogref.componentInstance.nvSize={width:this.isAdminHubSurvey?"477px":"472px",height:this.isAdminHubSurvey?"700px":"610px"},this.globalDialogref.componentInstance.isSurveyError=this.isAdminHubSurveyError,this.globalDialogref.componentInstance.nvOnSend.pipe((0,ii.s)(1)).subscribe(ie=>{this.onSurveySent(),this.globalDialogref.close()}),this.globalDialogref.componentInstance.nvOnClose.pipe((0,ii.s)(1)).subscribe(ie=>{"escape"===ie&&w(),this.globalDialogref.close()}),this.globalDialogref;this.logger.info("Feedback Dialog is already open")}feedbackUrlInitialized(){return this.feedbackUrlLoaded.asObservable()}onSurveySent(){this.logger.trace(ua.N_.UserGesture,ua.YD.Feedback,ua.PC.close," by clicking send"),this.translateService.get("feedback.thanksMessage").subscribe(w=>{this.snackbar.open(w,"",{duration:7e3,horizontalPosition:"left",verticalPosition:"bottom",panelClass:["nv-hig"]})}),this.logger.info("survey sent")}subscribeToSurveyEvents(w){w?(this.surveyEventReferenceSubmitted=(0,No.subscribeToIFrameEvents)({surveyId:w.surveyId,type:No.SurveyEventType.Submitted},this.surveyEventListenerSubmitted.bind(this)),this.surveyEventReferenceDismissed=(0,No.subscribeToIFrameEvents)({surveyId:w.surveyId,type:No.SurveyEventType.Dismissed},this.surveyEventListenerDismissed.bind(this)),this.surveyEventReferenceCloseDialog=(0,No.subscribeToIFrameEvents)({surveyId:w.surveyId,type:No.SurveyEventType.CloseDialog},this.surveyEventListenerCloseDialog.bind(this))):this.logger.info("Error subscribing to survey events since survey result is empty")}surveyEventListenerSubmitted(){this.logger.info("Feedback Service - Survey Submitted, close Modal Dialog..."),this.onSurveySent(),this.closeFeedbackDialog(),this.surveyEventReferenceSubmitted.unsubscribe()}surveyEventListenerDismissed(){this.logger.info("Feedback Service - Survey Dismissed, close Modal Dialog..."),this.closeFeedbackDialog(),this.surveyEventReferenceDismissed.unsubscribe()}surveyEventListenerCloseDialog(){this.logger.info("Feedback Service - closing Modal Dialog..."),this.closeFeedbackDialog(),this.surveyEventReferenceCloseDialog.unsubscribe()}static{this.\u0275fac=function(ie){return new(ie||De)(n.KVO(Bi.J6),n.KVO(i.up),n.KVO(Fl.bZ),n.KVO(yt.c$),n.KVO(uh.UG),n.KVO(Os.c_))}}static{this.\u0275prov=n.jDH({token:De,factory:De.\u0275fac,providedIn:"root"})}}return De})();var bc=function(De){return De.Stage="STAGE",De.Prod="PROD",De}(bc||{}),Hh=s(56347);let jh=(()=>{class De{constructor(w,ie,We,xt,hn,On,Yn,ti,Ri,ji,Tr,ss,Xr){this.systemInfoService=w,this.piplLocaleConfigService=ie,this.feedbackService=We,this.telemetryService=xt,this.telemetryUtilService=On,this.localeService=Yn,this.appConfig=ti,this.exceptionInfoService=Ri,this.libraryLoggingService=ji,this.loginService=Tr,this.distributedTracingUtilService=ss,this.appThemeService=Xr,this.currentUser=to.OV,this.surveyUrlSubject=new da.m,this.surveyTimeout={},this.logger=hn.getLogger("SurveyService"),this.logger.info("Init Survey SDK for NvApp"),this.sdk=new No.SurveySdkService,this.surveySdkClientConfig={url:ti.survey.server,defaultRetries:ti.survey.defaultRetries,defaultTimeBetweenRetries:ti.survey.defaultTimeBetweenRetries,defaultTimeout:ti.survey.defaultTimeout,env:ti.survey.server.includes("stg")?bc.Stage:bc.Prod,clientId:ti.survey.clientId,clientVersion:ti.build.version,clientVariant:this.telemetryUtilService.getClientVariantType(ti.build.variant),surveyContainerBaseUrl:this.appConfig.survey.containerBaseUrl},this.clientSurveyResults=new Map,this.surveyEventReferenceSubmittedMap=new Map,this.surveyEventReferenceDismissedMap=new Map,this.surveyEventReferenceErrorMap=new Map,this.surveyEventReferenceSubmissionErrorMap=new Map,this.surveyEventReferenceCloseDialogMap=new Map,this.surveyEventReferenceLogListenerMap=new Map,this.registerForPiplLocalizationConfigUpdateEvent(),this.logger.info("Survey SDK Client Configs: ",this.surveySdkClientConfig)}subscribeToSurveyEvents(w){const ie=w.triggerType,We=(0,No.subscribeToIFrameEvents)({surveyId:w.surveyId,type:No.SurveyEventType.Submitted},()=>this.surveyEventListenerSubmitted(ie));this.surveyEventReferenceSubmittedMap.set(ie,We);const xt=(0,No.subscribeToIFrameEvents)({surveyId:w.surveyId,type:No.SurveyEventType.Dismissed},()=>this.surveyEventListenerDismissed(ie));this.surveyEventReferenceDismissedMap.set(ie,xt);const hn=(0,No.subscribeToIFrameEvents)({surveyId:w.surveyId,type:No.SurveyEventType.Errored},()=>this.surveyEventListenerErrored(ie));this.surveyEventReferenceErrorMap.set(ie,hn);const On=(0,No.subscribeToIFrameEvents)({surveyId:w.surveyId,type:No.SurveyEventType.SubmissionErrored},()=>this.surveyEventListenerSubmissionErrored(ie));this.surveyEventReferenceSubmissionErrorMap.set(ie,On);const Yn=(0,No.subscribeToIFrameEvents)({surveyId:w.surveyId,type:No.SurveyEventType.CloseDialog},()=>this.surveyEventListenerCloseDialog(ie));this.surveyEventReferenceCloseDialogMap.set(ie,Yn),this.logger.info("Survey Event Reference Close Dialog Map:",this.surveyEventReferenceCloseDialogMap.size);const ti=(0,No.subscribeToIFrameEvents)({surveyId:w.surveyId,type:No.SurveyEventType.Log},Ri=>this.libraryLoggingService.sendLog(Ri));this.surveyEventReferenceLogListenerMap.set(ie,ti)}surveyEventListenerSubmitted(w){this.logger.info("Survey has been submitted; triggerType: ",w);const ie=this.clientSurveyResults.get(w)?.surveySessionId;this.triggerFeedbackLogUpload(ie),this.surveyEventReferenceSubmittedMap.get(w).unsubscribe(),this.unsubscribeFromLogListener(w)}surveyEventListenerDismissed(w){this.logger.info("Survey has been dismissed"),this.surveyEventReferenceDismissedMap.get(w).unsubscribe(),this.unsubscribeFromLogListener(w)}surveyEventListenerCloseDialog(w){this.logger.info("User closed dialog from Survey; triggerType: ",w),this.surveyEventReferenceCloseDialogMap.get(w).unsubscribe(),this.unsubscribeFromLogListener(w)}surveyEventListenerErrored(w){this.logger.info("Survey has error"),this.surveyEventReferenceErrorMap.get(w).unsubscribe(),this.unsubscribeFromLogListener(w)}surveyEventListenerSubmissionErrored(w){this.logger.info("Survey has submission error"),this.surveyEventReferenceSubmissionErrorMap.get(w).unsubscribe(),this.unsubscribeFromLogListener(w)}getAvailableSurvey(w,ie="0",We="",xt=0,hn=!1){const On=We;return(0,Oo.zV)([this.loginService.accountStatusChanged,this.systemInfoService.getSystemInfo([Bi.Lu.DeviceId]),this.systemInfoService.getDeviceOSType(),this.prepareClientParams(ie,On,xt,hn)]).pipe((0,Ze.H)(([Yn,ti,Ri])=>{this.updateUserInfo(Yn),this.sdk.initializeClientConfig(this.surveySdkClientConfig,this.appConfig.otelTracerConfig.exportConfig,this.distributedTracingUtilService.isTracingDisabled()),this.initGlobalTagsForOpenTracing(ti.DeviceId,this.osInfo,"",this.currentUser.userId,this.currentUser.idpId);const Tr=this.startGetSurveyClientSpan(!1),ss=this.distributedTracingUtilService.extractContextFromSpan(Tr),Xr=this.getCommonParams(Ri);this.logger.info("ClientParams passed to survey sdk: ",{surveyClientParams:this.surveyClientParams,commonParams:Xr});const ls=performance.now();return(0,ia.H)(this.sdk.getUserSurvey(this.currentUser.userId,this.currentUser.idpId,ti.DeviceId,this.surveyTimeout,this.surveyClientParams,w,this.surveyClientParams.locale,Xr.deviceOS,Xr.deviceType,Xr.deviceMake,Xr.deviceModel,Xr.deviceOSVersion,Xr.clientType,Xr.browserType,ss)).pipe((0,Hi.M)(Yo=>{const wa=performance.now();this.handleClientSurveyResponse(Yo,Tr,wa-ls)}),(0,Nr.W)(Yo=>this.handleUsabilityStudyError(Yo,Tr)))}))}getSurveyUrl(){return this.surveyUrlSubject.asObservable()}prepareClientParams(w,ie,We,xt){const hn=xt?(0,jr.of)({NetworkType:Bi.Sd.Unknown}):this.systemInfoService.getSystemInfo([Bi.Lu.Network]).pipe((0,es.T)(On=>On.Network));return(0,Yt.yU)(hn,this.systemInfoService.getSystemInfo([Bi.Lu.OSName,Bi.Lu.OSVersion,Bi.Lu.Platform,Bi.Lu.DeviceType,Bi.Lu.VendorName,Bi.Lu.SystemName,Bi.Lu.OSVersion,Bi.Lu.BrowserName,Bi.Lu.BrowserVersion]),this.localeService.localeChanged).pipe((0,Un.ZZ)(([On,Yn,ti])=>(this.osInfo={OSName:Yn.OSName,OSVersion:Yn.OSVersion,Platform:Yn.Platform},this.systemInfo=Yn,this.surveyClientParams={nvappSessionId:ie||"",application:"NvApp",serverType:"",network:On&&On.NetworkType?On.NetworkType:Bi.Sd.Unknown,locale:ti,affiliate:"",browser:Yn.BrowserName||"",browserVersion:Yn.BrowserVersion||"",cmsId:w,sessionDurationMin:We,osName:Yn.OSName.toUpperCase(),productName:this.telemetryUtilService.getProductName(),productVersion:this.telemetryUtilService.getProductVersion(),currentAppTheme:this.getCurrentAppTheme()},(0,jr.of)(this.surveyClientParams))))}unsubscribeFromLogListener(w){this.surveyEventReferenceLogListenerMap.get(w).unsubscribe()}handleClientSurveyResponse(w,ie,We){if(w){this.logger.info("Got User Survey, Data is: ",w);const xt=w;this.clientSurveyResults.set(xt.triggerType,xt),this.distributedTracingUtilService.setSpanAttributes(ie,{[No.SurveySdkSpanTagNames.SurveyId]:xt.surveyId}),this.subscribeToSurveyEvents(xt),this.surveyUrlSubject.next(xt.surveyContainerUrl)}else this.logger.info("Cannot get User Survey data");this.sendSurveyHttpSuccessTelemetry({url:w?.config?.url,httpStatus:w?.status,durationMs:We,xRequestId:w?.xRequestId},Zr.OO.GetSurvey,Zr.LG.GetUsabilityStudy),this.distributedTracingUtilService.closeSpan(ie)}handleUsabilityStudyError(w,ie){return this.logger.error("Check for survey failed. Sending HTTPFailure telemetry: ",w),this.distributedTracingUtilService.setSpanAttribute(ie,Vr.NS.Error,!0),this.distributedTracingUtilService.closeSpan(ie),this.sendSurveyFailureTelemetry(w,Zr.OO.GetSurvey,Zr.LG.GetUsabilityStudy),(0,jr.of)(void 0)}checkUserAuthenticatedForSurveys(w){return this.logger.info("check User Authenticated For Survey Feedback"),!!w.isAuthenticated}triggerFeedbackLogUpload(w){this.exceptionInfoService.SendUserFeedbackInfo(w,this.telemetryUtilService.getCurrentUiPage(),this.surveyClientParams.locale).pipe((0,ii.s)(1)).subscribe(ie=>{ie&&this.logger.info("Send User Feedback Info called with response:",ie)},ie=>{this.logger.error("Error sending Feedback Params with error: ",ie)})}updateUserInfo(w){this.checkUserAuthenticatedForSurveys(w)?w.userId&&(this.currentUser=w):(this.currentUser.userId=Bi.Qe,this.currentUser.idpId=Bi.Qe)}startGetSurveyClientSpan(w=!1){const ie=this.distributedTracingUtilService.startSpan(Vr.pB.ClientGetSurvey);return ie&&this.distributedTracingUtilService.setSpanAttributes(ie,{[No.SurveySdkSpanTagNames.ReadOnly]:w}),ie}initGlobalTagsForOpenTracing(w,ie,We,xt,hn){const On={[Vr.NS.ServiceVersion]:this.appConfig.build.version,[Vr.NS.ServiceType]:Vr.Se.Pc_A7,[Vr.NS.SpanKind]:Vr.ls.Client,[Vr.NS.AppName]:this.telemetryUtilService.getProductName(),[Vr.NS.DeviceId]:w,[Vr.NS.ClientOs]:ie.Platform,[Vr.NS.ClientOsName]:ie.OSName,[Vr.NS.ClientOsVersion]:ie.OSVersion,[Vr.NS.CountryCode]:We,[No.SurveySdkSpanTagNames.ClientVariant]:this.surveySdkClientConfig.clientVariant,[No.SurveySdkSpanTagNames.ClientVersion]:this.getClientVersionRevision(this.surveySdkClientConfig.clientVersion),[No.SurveySdkSpanTagNames.Environment]:this.surveySdkClientConfig.env,[No.SurveySdkSpanTagNames.UserId]:xt||"",[No.SurveySdkSpanTagNames.IdpId]:hn||""};this.sdk.updateGlobalTags(On)}getClientVersionRevision(w){return 4===w.split(".").length?w.substring(0,w.lastIndexOf(".")+1).concat("x"):w}sendSurveyHttpSuccessTelemetry(w,ie,We){const xt=new Zr.VD({sourceComponent:Zr.sK.NvAppClient,originalService:Zr.Uu.GxTarget,serviceUseCase:ie,serviceSubUseCase:We,url:w.url||"",httpStatus:w.httpStatus||200,durationMs:Math.round(w.durationMs)||0,destinationIp:"",responseData:"",networkErrorCode:"",xRequestId:w.xRequestId||"",retryCount:0,wasSWCacheBypassed:Zr.T8.UNDEFINED});this.telemetryService.push(xt)}sendSurveyFailureTelemetry(w,ie,We){const xt=new Zr.VD({sourceComponent:Zr.sK.NvAppClient,originalService:Zr.Uu.GxTarget,serviceUseCase:ie,serviceSubUseCase:We,url:w?.config?.url||"",networkErrorCode:String(w&&w.response?w.response.status:0),destinationIp:"",xRequestId:w&&w.xRequestId?w.xRequestId:"",retryCount:0,responseData:"",httpStatus:0,durationMs:0,wasSWCacheBypassed:Zr.T8.UNDEFINED});this.telemetryService.push(xt)}getCommonParams(w){return{deviceOS:w,deviceType:this.systemInfo.DeviceType||Vs.oX.Undefined,deviceMake:this.systemInfo.VendorName||Vs.oX.Undefined,deviceModel:this.systemInfo.SystemName||Vs.oX.Undefined,deviceOSVersion:this.systemInfo.OSVersion,clientType:Us.CommonClientType.Native,browserType:this.systemInfo.BrowserName}}registerForPiplLocalizationConfigUpdateEvent(){this.piplLocaleConfigService.piplLocalizationConfigUpdated$.subscribe(w=>{this.feedbackService.isFeedbackDialogOpen()&&this.feedbackService.closeFeedbackDialog(),w.survey&&""!==w.survey.server&&""!==w.survey.containerBaseUrl&&(this.surveySdkClientConfig=(0,wr.merge)(this.surveySdkClientConfig,{url:w.survey.server,surveyContainerBaseUrl:w.survey.containerBaseUrl,env:w.survey.server.includes("stg")?bc.Stage:bc.Prod}))})}getCurrentAppTheme(){return"light"===this.appThemeService.getCurrentAppliedTheme()?.key?No.ThemeType.Light:No.ThemeType.Dark}isBugReportFormAvailable(){return"true"===this.appConfig?.survey?.isBugReportFormAvailable||!0===this.appConfig?.survey?.isBugReportFormAvailable}static{this.\u0275fac=function(ie){return new(ie||De)(n.KVO(Bi.zW),n.KVO(cc.X),n.KVO(ju),n.KVO(Vs.H0),n.KVO(Bi.J6),n.KVO(Hh.A),n.KVO(Bi.iH),n.KVO(lr.Vk),n.KVO(Bi.FK),n.KVO(Bi.wt),n.KVO(to.HF),n.KVO(Vr.Z1),n.KVO(Bi.gB))}}static{this.\u0275prov=n.jDH({token:De,factory:De.\u0275fac,providedIn:"root"})}}return De})();var Sd=s(38132),ad=s(98504),du=s(54504),ld=s(44186),cd=s(44296);const dd=De=>({newUpdateVersion:De});function Wh(De,Me){if(1&De){const w=n.RV6();n.j41(0,"div",1)(1,"div",2)(2,"div",3)(3,"i",4),n.EFF(4,"info"),n.k0s(),n.j41(5,"div",5),n.EFF(6),n.nI1(7,"translate"),n.k0s()(),n.j41(8,"div",6)(9,"div")(10,"button",7),n.nI1(11,"translate"),n.nI1(12,"translate"),n.bIt("click",function(){n.eBV(w);const We=n.XpG();return n.Njj(We.onClickRestart())}),n.EFF(13),n.nI1(14,"translate"),n.k0s()()()()()}if(2&De){const w=n.XpG();n.R7$(),n.Y8G("ngClass",w.notificationAvailable?"notification":"notification-animate"),n.R7$(5),n.SpI(" ",n.i5U(7,6,"nvAppSelfUpdate.recommendedUpdateAvailable",n.eq3(16,dd,w.newUpdateVersion))," "),n.R7$(4),n.qtP("aria-label","",n.i5U(11,9,"nvAppSelfUpdate.recommendedUpdateAvailable",n.eq3(18,dd,w.newUpdateVersion))," ",n.bMT(12,12,"common.relaunchNow"),""),n.R7$(3),n.SpI(" ",n.bMT(14,14,"common.relaunchNow")," ")}}let Wu=(()=>{class De{constructor(w,ie,We,xt,hn){this.selfUpdateService=ie,this.telemetryService=We,this.element=xt,this.renderer=hn,this.notificationAvailable=!1,this.destroyRef=(0,n.WQX)(n.abz),this.newUpdateVersion="",this.logger=w.getLogger("nvapp/BannerNotificationComponent")}ngOnInit(){this.checkForClientUpdates()}checkForClientUpdates(){this.logger.info("check for update called"),this.selfUpdateService.getUpdateAvailableObservable().pipe((0,kl.pQ)(this.destroyRef)).subscribe(w=>{this.logger.info("New update available ",w),this.newUpdateVersion=w,this.notificationAvailable=!0,this.element?.nativeElement.setAttribute("style","display:block"),this.renderer.setProperty(document?.querySelector(".nv-app-content"),"style",`--banner-height: ${zs.g4}`),this.sendTelemetryEvent(Zr.fs.PopupShown,Zr.fb.Success)},w=>{this.logger.error("Received error from getUpdate$ observable: ",w),this.notificationAvailable=!1})}onClickRestart(){this.sendTelemetryEvent(Zr.fs.RelaunchNow,Zr.fb.Success,{afterDone:()=>{this.selfUpdateService.restartApp()}})}sendTelemetryEvent(w,ie,We,xt){const hn={category:Zr.zP.Banner,action:w,errorDetails:xt||"",status:ie,newVersion:this.newUpdateVersion};this.logger.info("send telemetry of data",hn);const On=new Zr.OC(hn);this.telemetryService.push(On,0,We)}static{this.\u0275fac=function(ie){return new(ie||De)(n.rXU(Bi.J6),n.rXU(va),n.rXU(Vs.H0),n.rXU(n.aKT),n.rXU(n.sFG))}}static{this.\u0275cmp=n.VBU({type:De,selectors:[["nv-app-banner-notification"]],decls:1,vars:1,consts:[["class","notification-container","fxLayout","column","fxLayoutAlign","center",4,"ngIf"],["fxLayout","column","fxLayoutAlign","center",1,"notification-container"],[1,"notification-base",3,"ngClass"],[1,"icon-title-row"],[1,"material-icons","info-icon","notification-info-icon"],[1,"notification-base-message-description","font-body2"],[1,"button-alignment"],["mat-button","",1,"font-button2",3,"click"]],template:function(ie,We){1&ie&&n.DNE(0,Wh,15,20,"div",0),2&ie&&n.Y8G("ngIf",We.notificationAvailable)},dependencies:[ps.YU,ps.bT,Wr.iV,el.DJ,el.sA,Ia.PW,yt.D9],styles:["[_ngcontent-%COMP%]:root{--hig-marquee-ratio: .3229;--hig-marquee-parent-container-width: 100vw;--hig-marquee-container-height: calc(var(--hig-marquee-ratio) * 100vw);--hig-marquee-corner-column: 56px;--hig-marquee-text-column: 14vw;--hig-marquee-padded-image-first-row: calc(var(--hig-marquee-ratio) * (100vw - var(--hig-marquee-corner-column) - var(--hig-marquee-text-column)));--hig-marquee-padded-image-second-row: calc(var(--hig-marquee-container-height) - var(--hig-marquee-padded-image-first-row))}.ellipsified-text-with-tooltip[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden}.ellipsified-text-with-tooltip.multi-line-ellipsis[_ngcontent-%COMP%]{display:-webkit-box;-webkit-box-orient:vertical;white-space:wrap}.ellipsified-text-with-tooltip.single-line-ellipsis[_ngcontent-%COMP%]{white-space:nowrap}[_ngcontent-%COMP%]:root{--rwd-column-count: 4;--rwd-gutter-count: 3 ;--rwd-gutter-size: 8px;--rwd-container-side-spacing: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 3 ) / 4);--rwd-sidebar-width: 0px;--rwd-container-width: 100vw}@media screen and (min-width: 480px){[_ngcontent-%COMP%]:root{--rwd-column-count: 6;--rwd-gutter-count: 5 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 5 ) / 6)}}@media screen and (min-width: 720px){[_ngcontent-%COMP%]:root{--rwd-column-count: 8;--rwd-gutter-count: 7 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 7 ) / 8)}}@media screen and (min-width: 960px){[_ngcontent-%COMP%]:root{--rwd-column-count: 12;--rwd-gutter-count: 11 ;--rwd-container-side-spacing: 24px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 8px * 11 ) / 12)}}@media screen and (min-width: 1440px){[_ngcontent-%COMP%]:root{--rwd-gutter-size: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 16px * 11 ) / 12)}}.ellipsis[_ngcontent-%COMP%], .notification-base-message-description[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden}[_nghost-%COMP%]{display:none}.notification-base[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;background:var(--notification-container-bg);width:100%;z-index:2}.notification-base[_ngcontent-%COMP%] .icon-title-row[_ngcontent-%COMP%]{display:flex;align-items:center}.notification-base-message-description[_ngcontent-%COMP%]{-webkit-box-orient:vertical;-webkit-line-clamp:3;display:-webkit-box}.isLtr[_nghost-%COMP%] .notification-base-message-description[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .notification-base-message-description[_ngcontent-%COMP%]{margin-left:24px}html[dir=ltr][_ngcontent-%COMP%] .notification-base-message-description[_ngcontent-%COMP%]{--dummy3: 0;margin-left:24px}.isRtl[_nghost-%COMP%] .notification-base-message-description[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .notification-base-message-description[_ngcontent-%COMP%]{margin-right:24px}html[dir=rtl][_ngcontent-%COMP%] .notification-base-message-description[_ngcontent-%COMP%]{--dummy3: 0;margin-right:24px}.isLtr[_nghost-%COMP%] .notification-base-message-description[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .notification-base-message-description[_ngcontent-%COMP%]{margin-right:36px}html[dir=ltr][_ngcontent-%COMP%] .notification-base-message-description[_ngcontent-%COMP%]{--dummy4: 0;margin-right:36px}.isRtl[_nghost-%COMP%] .notification-base-message-description[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .notification-base-message-description[_ngcontent-%COMP%]{margin-left:36px}html[dir=rtl][_ngcontent-%COMP%] .notification-base-message-description[_ngcontent-%COMP%]{--dummy4: 0;margin-left:36px}.notification[_ngcontent-%COMP%]{z-index:1}.notification.ng-hide-add[_ngcontent-%COMP%]{transition:ease-in-out 1s;transition-delay:1s}.notification-animate[_ngcontent-%COMP%]{z-index:1}.notification-animate.ng-hide[_ngcontent-%COMP%]{margin-top:-32px}.notification-animate.ng-hide-add[_ngcontent-%COMP%], .notification-animate.ng-hide-remove[_ngcontent-%COMP%]{transition:ease-in-out .8s;transition-delay:0s}.notification-info-icon[_ngcontent-%COMP%]{color:var(--primary-contrast-750);font-size:24px}.isLtr[_nghost-%COMP%] .notification-info-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .notification-info-icon[_ngcontent-%COMP%]{margin-left:16px}html[dir=ltr][_ngcontent-%COMP%] .notification-info-icon[_ngcontent-%COMP%]{--dummy3: 0;margin-left:16px}.isRtl[_nghost-%COMP%] .notification-info-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .notification-info-icon[_ngcontent-%COMP%]{margin-right:16px}html[dir=rtl][_ngcontent-%COMP%] .notification-info-icon[_ngcontent-%COMP%]{--dummy3: 0;margin-right:16px}.icon-title-row[_ngcontent-%COMP%] .al-icon[_ngcontent-%COMP%]{flex-shrink:0;width:24px;height:24px}.isLtr[_nghost-%COMP%] .icon-title-row[_ngcontent-%COMP%] .al-icon[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .icon-title-row[_ngcontent-%COMP%] .al-icon[_ngcontent-%COMP%]{margin-left:16px}html[dir=ltr][_ngcontent-%COMP%] .icon-title-row[_ngcontent-%COMP%] .al-icon[_ngcontent-%COMP%]{--dummy3: 0;margin-left:16px}.isRtl[_nghost-%COMP%] .icon-title-row[_ngcontent-%COMP%] .al-icon[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .icon-title-row[_ngcontent-%COMP%] .al-icon[_ngcontent-%COMP%]{margin-right:16px}html[dir=rtl][_ngcontent-%COMP%] .icon-title-row[_ngcontent-%COMP%] .al-icon[_ngcontent-%COMP%]{--dummy3: 0;margin-right:16px}.notification-container[_ngcontent-%COMP%] button.mat-accent[_ngcontent-%COMP%]{color:var(--accent-500)}.notification-container[_ngcontent-%COMP%]{background:var(--notification-container-bg);box-shadow:var(--notification-container-box-shadow);box-sizing:border-box;height:100%;margin-top:1px}.notification-container.ng-hide[_ngcontent-%COMP%]{margin-top:-32px}.notification-container.ng-hide-add[_ngcontent-%COMP%], .notification-container.ng-hide-remove[_ngcontent-%COMP%]{transition:ease-in-out .8s;transition-delay:0s}button[_ngcontent-%COMP%]{height:36px;min-width:36px}.isLtr[_nghost-%COMP%] button[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] button[_ngcontent-%COMP%]{padding-left:8px}html[dir=ltr][_ngcontent-%COMP%] button[_ngcontent-%COMP%]{--dummy1: 0;padding-left:8px}.isRtl[_nghost-%COMP%] button[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] button[_ngcontent-%COMP%]{padding-right:8px}html[dir=rtl][_ngcontent-%COMP%] button[_ngcontent-%COMP%]{--dummy1: 0;padding-right:8px}.isLtr[_nghost-%COMP%] button[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] button[_ngcontent-%COMP%]{padding-right:8px}html[dir=ltr][_ngcontent-%COMP%] button[_ngcontent-%COMP%]{--dummy2: 0;padding-right:8px}.isRtl[_nghost-%COMP%] button[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] button[_ngcontent-%COMP%]{padding-left:8px}html[dir=rtl][_ngcontent-%COMP%] button[_ngcontent-%COMP%]{--dummy2: 0;padding-left:8px}.isLtr[_nghost-%COMP%] button[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] button[_ngcontent-%COMP%]{margin-right:8px}html[dir=ltr][_ngcontent-%COMP%] button[_ngcontent-%COMP%]{--dummy4: 0;margin-right:8px}.isRtl[_nghost-%COMP%] button[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] button[_ngcontent-%COMP%]{margin-left:8px}html[dir=rtl][_ngcontent-%COMP%] button[_ngcontent-%COMP%]{--dummy4: 0;margin-left:8px}.isLtr[_nghost-%COMP%] mat-progress-spinner[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] mat-progress-spinner[_ngcontent-%COMP%]{margin-right:16px}html[dir=ltr][_ngcontent-%COMP%] mat-progress-spinner[_ngcontent-%COMP%]{--dummy4: 0;margin-right:16px}.isRtl[_nghost-%COMP%] mat-progress-spinner[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] mat-progress-spinner[_ngcontent-%COMP%]{margin-left:16px}html[dir=rtl][_ngcontent-%COMP%] mat-progress-spinner[_ngcontent-%COMP%]{--dummy4: 0;margin-left:16px}.button-alignment[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;align-self:flex-end;line-height:36px}.isLtr[_nghost-%COMP%] .button-alignment[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .button-alignment[_ngcontent-%COMP%]{margin-left:auto}html[dir=ltr][_ngcontent-%COMP%] .button-alignment[_ngcontent-%COMP%]{--dummy3: 0;margin-left:auto}.isRtl[_nghost-%COMP%] .button-alignment[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .button-alignment[_ngcontent-%COMP%]{margin-right:auto}html[dir=rtl][_ngcontent-%COMP%] .button-alignment[_ngcontent-%COMP%]{--dummy3: 0;margin-right:auto}"]})}}return De})();var Id=s(62302);const hh=["searchButton"],Xl=De=>({login_hint:De}),zh=De=>({"user-info-override":De});function wd(De,Me){if(1&De&&(n.j41(0,"div",20)(1,"span",21),n.EFF(2),n.nI1(3,"translate"),n.k0s()()),2&De){const w=Me.ngIf;n.R7$(2),n.SpI(" ",n.bMT(3,1,w)," ")}}function fc(De,Me){if(1&De){const w=n.RV6();n.j41(0,"div",22)(1,"nv-search",23),n.nI1(2,"translate"),n.bIt("searchInputInteraction",function(We){n.eBV(w);const xt=n.XpG();return n.Njj(xt.onSearchInputInteraction(We))})("searchInputFocusOut",function(We){n.eBV(w);const xt=n.XpG();return n.Njj(xt.onSearchInputFocusOut(We))}),n.k0s()()}if(2&De){const w=n.XpG();n.R7$(),n.Y8G("searchDebounceTime",w.searchDebounceTime)("inputType",w.searchInputType)("isWebSearch",w.isWebSearch)("inputPlaceholder",n.bMT(2,4,"search.inputPlaceholder"))}}function Qd(De,Me){if(1&De){const w=n.RV6();n.j41(0,"button",24),n.nI1(1,"translate"),n.nI1(2,"translate"),n.bIt("click",function(){n.eBV(w);const We=n.XpG();return n.Njj(We.openGAssistChatboxInIgo())}),n.nrm(3,"mat-icon",25),n.k0s()}if(2&De){const w=n.XpG();n.FS9("matTooltip",n.bMT(1,3,w.gAssistToolTip)),n.Y8G("tabindex",w.isGassistEnabled?0:-1),n.BMQ("aria-label",n.bMT(2,5,"gAssist.projectGAssist"))}}function Rd(De,Me){1&De&&n.nrm(0,"mat-progress-spinner",29),2&De&&n.Y8G("diameter",20)}function Zd(De,Me){1&De&&n.nrm(0,"mat-icon",30)}function zu(De,Me){if(1&De){const w=n.RV6();n.j41(0,"button",26),n.nI1(1,"translate"),n.nI1(2,"translate"),n.bIt("click",function(){n.eBV(w);const We=n.XpG();return n.Njj(We.handleOverlayClick())}),n.DNE(3,Rd,1,1,"mat-progress-spinner",27)(4,Zd,1,0,"mat-icon",28),n.k0s()}if(2&De){const w=n.XpG();n.FS9("matTooltip",n.bMT(1,6,w.overlayToolTip)),n.Y8G("disabled",w.overlayInProcess)("tabindex",w.isGassistEnabled?-1:0),n.BMQ("aria-label",n.bMT(2,8,w.overlayToolTip)),n.R7$(3),n.Y8G("ngIf",w.overlayInProcess),n.R7$(),n.Y8G("ngIf",!w.overlayInProcess)}}function Rl(De,Me){if(1&De&&(n.j41(0,"button",31),n.nI1(1,"translate"),n.nI1(2,"translate"),n.nrm(3,"mat-icon",32),n.k0s()),2&De){const w=n.XpG(),ie=n.sdS(22);n.FS9("matTooltip",n.bMT(1,4,"feedback.options")),n.Y8G("matMenuTriggerFor",ie)("disabled",w.isFeedbackCalled||w.isBugReportCalled),n.BMQ("aria-label",n.bMT(2,6,"feedback.options"))}}function fh(De,Me){if(1&De&&(n.j41(0,"button",34)(1,"div",35),n.nrm(2,"mat-icon",36),n.j41(3,"div",37,3)(5,"span",38),n.EFF(6),n.k0s()(),n.j41(7,"mat-icon",39),n.EFF(8,"arrow_drop_down"),n.k0s()()()),2&De){const w=n.XpG(2),ie=n.sdS(12);n.Y8G("matMenuTriggerFor",ie)("matTooltip",w.user.displayName),n.R7$(6),n.JRh(w.user.displayName)}}function pc(De,Me){if(1&De){const w=n.RV6();n.j41(0,"div",43)(1,"button",44)(2,"mat-icon",45),n.EFF(3,"arrow_drop_down"),n.k0s()(),n.j41(4,"mat-menu",15,4)(6,"button",46),n.bIt("click",function(){n.eBV(w);const We=n.XpG(3);return n.Njj(We.login())}),n.EFF(7),n.nI1(8,"translate"),n.k0s(),n.j41(9,"button",16),n.bIt("click",function(){n.eBV(w);const We=n.XpG(3);return n.Njj(We.login(!0))}),n.j41(10,"span"),n.EFF(11),n.nI1(12,"translate"),n.k0s()()()()}if(2&De){const w=n.sdS(5),ie=n.XpG(3);n.R7$(),n.Y8G("matMenuTriggerFor",w),n.R7$(6),n.SpI(" ",n.i5U(8,3,"toolbar.continueAs",n.eq3(8,Xl,ie.ssoLoginHint))," "),n.R7$(4),n.SpI(" ",n.bMT(12,6,"toolbar.switchAccount")," ")}}function uu(De,Me){if(1&De){const w=n.RV6();n.j41(0,"button",40),n.nI1(1,"translate"),n.bIt("click",function(){n.eBV(w);const We=n.XpG(2);return n.Njj(We.login())}),n.nrm(2,"mat-icon",36),n.j41(3,"span",41),n.EFF(4),n.nI1(5,"translate"),n.k0s()(),n.DNE(6,pc,13,10,"div",42)}if(2&De){const w=n.XpG(2);n.FS9("matTooltip",n.i5U(1,5,"toolbar.continueAs",n.eq3(10,Xl,w.ssoLoginHint))),n.Y8G("ngClass",n.eq3(12,zh,w.ssoLoginHint))("matTooltipDisabled",!w.ssoLoginHint),n.R7$(4),n.JRh(n.bMT(5,8,"toolbar.login")),n.R7$(2),n.Y8G("ngIf",w.ssoLoginHint)}}function Jd(De,Me){if(1&De&&(n.qex(0),n.DNE(1,fh,9,3,"button",33)(2,uu,7,14,"ng-template",null,2,n.C5r),n.bVm()),2&De){const w=n.sdS(3),ie=n.XpG();n.R7$(),n.Y8G("ngIf",ie.user.isAuthenticated)("ngIfElse",w)}}function Nd(De,Me){if(1&De){const w=n.RV6();n.j41(0,"button",17),n.bIt("click",function(){n.eBV(w);const We=n.XpG();return n.Njj(We.openBugReportDialog())}),n.EFF(1),n.nI1(2,"translate"),n.k0s()}if(2&De){const w=n.XpG();n.Y8G("disabled",w.isBugReportCalled),n.R7$(),n.SpI(" ",n.bMT(2,2,"feedback.reportIssue")," ")}}let gc=(()=>{class De{constructor(w,ie,We,xt,hn,On,Yn,ti,Ri,ji,Tr,ss,Xr,ls){this.appConfig=w,this.appBarService=ie,this.loggingService=We,this.loginService=xt,this.accountService=hn,this.telemetryUtilService=On,this.feedbackService=Yn,this.surveyService=ti,this.overlayService=Ri,this.errorHandlerService=ji,this.translateService=Tr,this.layoutService=ss,this.router=Xr,this.injector=ls,this.searchInputType="text",this.isSearchResultRoute=!1,this.destroyRef=(0,n.WQX)(n.abz),this.loading=!0,this.isFeedbackCalled=!1,this.isBugReportCalled=!1,this.isBugReportAvailable=!1,this.overlayInProcess=!1,this.ssoLoginHint=null,this.isGassistEnabled=!1,this.isWebSearch=!1,this.showNvSearch=!1,this.lastQuery="",this.logger=this.loggingService.getLogger("nvapp/AppBarComponent"),this.appConfig?.featureEnablement?.nvSearch?.enabled&&(this.searchManagerService=this.injector.get(cr),this.searchDebounceTime=this.appConfig?.searchConfig?.searchDebounceTime,this.logger.info("Search: debounce time: ",this.searchDebounceTime))}onSearchInputFocusOut(w){this.logger.info("Search: Activating search bar with query: ",w.currentQuery),this.lastQuery=w.currentQuery.length>0?w.currentQuery:""}enableSearchResultRoute(w){this.isSearchResultRoute=w,w&&(this.searchManagerService.isSearchActive=w)}onSearchInputInteraction(w){switch(w.interactionType){case Fa.BE.Click:0===this.lastQuery.length?(this.searchManagerService.markSearchInputActivated(),this.enableSearchResultRoute(!1)):(this.searchComponent.setQueryAndSelectText(this.lastQuery),this.lastQuery="",this.enableSearchResultRoute(!0));break;case Fa.BE.Input:this.enableSearchResultRoute(!0);break;case Fa.BE.Clear:this.enableSearchResultRoute(!0),this.lastQuery=""}}ngOnInit(){this.title$=this.appBarService.title,this.isBugReportAvailable=this.surveyService.isBugReportFormAvailable(),this.loginService.accountStatusChanged.pipe((0,kl.pQ)(this.destroyRef)).subscribe(w=>{this.setLoginData(w)}),this.listenToOverlayState()}login(w=!1){this.telemetryUtilService.sendClickEvent(Zr.EB.Login,to.fx.AppBar,!1),this.loginSub?.unsubscribe(),this.loginSub=this.loginService.startLogin(!1,null,w).subscribe()}goToAccount(){this.accountService.openAccountProfilePage(this.user.email)}logout(){this.telemetryUtilService.sendClickEvent(Zr.EB.Logout,to.fx.AppBar,!1),this.loginService.startLogout()}getSSOLoginHint(){this.loginService.ssoLoginHint().pipe((0,ii.s)(1),(0,kl.pQ)(this.destroyRef)).subscribe(w=>{this.ssoLoginHint=w})}handleOverlayClick(){if(this.logger.info("Overlay State - ",this.currentOverlayState),!this.overlayService.isMediaFoundationInstalled())return this.logger.info("Media Foundation not installed"),void this.router.navigate([zs.f.Preferences]);if(this.isDriverInstalled&&this.currentOverlayState?.feature?.overallState)this.currentOverlayState?.feature?.toggle?.value?(this.openIgoSub?.unsubscribe(),this.openIgoSub=this.overlayService.openIgo(!1).subscribe(mt.l,mt.l)):(this.enableAndOpenIgoSub?.unsubscribe(),this.enableAndOpenIgoSub=this.overlayService.toggleOverlay(!0).pipe((0,io.n)(w=>(this.logger.info("overlay is enabled, opening overlay"),this.overlayService.openIgo(!1)))).subscribe(w=>{this.logger.info("overlay opened")},w=>this.logger.error("Error occurred while enabling and opening overlay",w)));else{const w=this.translateService.instant("preferences.featureReadiness.share.header");this.errorHandlerService.showFeatureNotAvailableDialog("common.featureNotAvailable",this.isDriverInstalled?"common.updateDriverToAccessFeature":"common.installDriverToAccessFeature",null,{featureName:w},{feature:w})}}listenToOverlayState(){(0,Oo.zV)([this.overlayService.getOverlayState(),this.layoutService.isGAssistInstalled().pipe((0,In.Z)(!1)),this.overlayService.getGAssistState()]).pipe((0,kl.pQ)(this.destroyRef)).subscribe(([w,ie,We])=>{this.logger.info("overlay state",w?.feature?.toggle?.value),this.currentOverlayState=w,this.overlayToolTip=w?.description,this.gAssistToolTip=We?.description,this.overlayInProcess=w?.description===uc.FU.Enabling||w?.description===uc.FU.Disabling,this.appConfig?.featureEnablement?.gAssist?.enabled&&(this.isGassistEnabled=!!this.currentOverlayState?.feature?.overallState&&ie)},w=>{this.logger.error("Error occurred while fetching overlay feature",w)})}setLoginData(w){this.user=w,this.user?.isAuthenticated||this.getSSOLoginHint(),this.loading=!1}openFeedbackDialog(){this.isFeedbackCalled=!0,this.logger.info("Opening feedback dialog");const We=()=>this.surveyService.surveyEventListenerCloseDialog(No.TriggerType.Feedback);this.openFeedbackDialogSub=this.feedbackService.initializeFeedback("affiliateName",()=>this.surveyService.getAvailableSurvey([No.TriggerType.Feedback],"0","",0),()=>(0,jr.of)(!0)).pipe((0,Ta.p)(xt=>xt)).subscribe(()=>{this.feedbackService.onOpenFeedbackDialog(We),this.isFeedbackCalled=!1},xt=>{this.isFeedbackCalled=!1,this.logger.error("Error opening feedback dialog",xt)})}openGAssistChatboxInIgo(){this.overlayService.launchGAssist().subscribe(()=>{this.logger.info("Success launching Chatbox")},w=>{this.logger.error("Error while launching Chatbox",w)})}openBugReportDialog(){if(this.isBugReportCalled)return void this.logger.info("Bug report dialog already in progress, ignoring duplicate call");this.isBugReportCalled=!0,this.logger.info("Opening bug report dialog with BugReport trigger");const We=()=>this.surveyService.surveyEventListenerCloseDialog(No.TriggerType.BugReport);this.openBugReportDialogSub?.unsubscribe(),this.openBugReportDialogSub=this.feedbackService.initializeFeedback("affiliateName",()=>this.surveyService.getAvailableSurvey([No.TriggerType.BugReport],"0","",0),()=>(0,jr.of)(!0)).pipe((0,Ta.p)(xt=>xt),(0,kl.pQ)(this.destroyRef)).subscribe(()=>{this.feedbackService.onOpenFeedbackDialog(We),this.isBugReportCalled=!1},xt=>{this.isBugReportCalled=!1,this.logger.error("Error opening bug report dialog",xt)})}ngOnDestroy(){this.isFeedbackCalled=!1,this.isBugReportCalled=!1,this.openIgoSub?.unsubscribe(),this.enableAndOpenIgoSub?.unsubscribe(),this.loginSub?.unsubscribe(),this.openFeedbackDialogSub?.unsubscribe(),this.openBugReportDialogSub?.unsubscribe()}static{this.\u0275fac=function(ie){return new(ie||De)(n.rXU(lr.Vk),n.rXU(Kr.g),n.rXU(Bi.J6),n.rXU($l.H),n.rXU(Jr),n.rXU(Zr.AY),n.rXU(ju),n.rXU(jh),n.rXU(Sd.s),n.rXU(tc.c),n.rXU(yt.c$),n.rXU(un.Y),n.rXU(Do.Ix),n.rXU(n.zZn))}}static{this.\u0275cmp=n.VBU({type:De,selectors:[["nv-app-bar"]],viewQuery:function(ie,We){if(1&ie&&(n.GBs(hh,5,n.aKT),n.GBs(Fc.S,5)),2&ie){let xt;n.mGM(xt=n.lsd())&&(We.searchButton=xt.first),n.mGM(xt=n.lsd())&&(We.searchComponent=xt.first)}},inputs:{isDriverInstalled:"isDriverInstalled",isMinimumDriverInstalled:"isMinimumDriverInstalled"},decls:28,vars:25,consts:[["userInfoMenu","matMenu"],["feedbackMenu","matMenu"],["loggedOut",""],["accountField",""],["menu","matMenu"],["fxLayout","column"],["fxLayout","row","fxLayoutAlign","space-between center",1,"app-bar","mat-elevation-z4"],[1,"app-bar-title-container"],["class","app-bar-title",4,"ngIf"],["class","search-container-flex",4,"ngIf"],["fxLayout","row","fxLayoutAlign","space-between center","role","list",1,"user-actions"],["mat-button","","matTooltipClass","mat-tooltip-font-body3","class","hig-button-icon robot-icon","nvAppListKeyboardNav","horizontal","role","listitem",3,"matTooltip","tabindex","click",4,"ngIf"],["mat-button","","fxLayoutAlign","center center","matTooltipClass","mat-tooltip-font-body3","class","hig-button-icon","nvAppListKeyboardNav","horizontal","role","listitem",3,"matTooltip","disabled","tabindex","click",4,"ngIf"],["mat-button","","fxLayoutAlign","center center","matTooltipClass","mat-tooltip-font-body3","class","user-feedback hig-button-icon","tabindex","-1","nvAppListKeyboardNav","horizontal","role","listitem",3,"matMenuTriggerFor","matTooltip","disabled",4,"ngIf"],[4,"ngIf"],["xPosition","before",1,"app-bar-dropdown"],["mat-menu-item","",3,"click"],["mat-menu-item","",1,"feedback-menu-item",3,"click","disabled"],["mat-menu-item","","class","feedback-menu-item",3,"disabled","click",4,"ngIf"],[1,"banner-notification"],[1,"app-bar-title"],["fxFlex","",1,"title","font-header6"],[1,"search-container-flex"],["fxFlex","",1,"search-box-container",3,"searchInputInteraction","searchInputFocusOut","searchDebounceTime","inputType","isWebSearch","inputPlaceholder"],["mat-button","","matTooltipClass","mat-tooltip-font-body3","nvAppListKeyboardNav","horizontal","role","listitem",1,"hig-button-icon","robot-icon",3,"click","matTooltip","tabindex"],["svgIcon","g-assist"],["mat-button","","fxLayoutAlign","center center","matTooltipClass","mat-tooltip-font-body3","nvAppListKeyboardNav","horizontal","role","listitem",1,"hig-button-icon",3,"click","matTooltip","disabled","tabindex"],["class","mat-accent","mode","indeterminate",3,"diameter",4,"ngIf"],["svgIcon","overlayUtilityIcon",4,"ngIf"],["mode","indeterminate",1,"mat-accent",3,"diameter"],["svgIcon","overlayUtilityIcon"],["mat-button","","fxLayoutAlign","center center","matTooltipClass","mat-tooltip-font-body3","tabindex","-1","nvAppListKeyboardNav","horizontal","role","listitem",1,"user-feedback","hig-button-icon",3,"matMenuTriggerFor","matTooltip","disabled"],["svgIcon","feedback"],["mat-button","","class","user-info","matTooltipClass","mat-tooltip-font-body3","tabindex","-1","nvAppListKeyboardNav","horizontal","role","listitem",3,"matMenuTriggerFor","matTooltip",4,"ngIf","ngIfElse"],["mat-button","","matTooltipClass","mat-tooltip-font-body3","tabindex","-1","nvAppListKeyboardNav","horizontal","role","listitem",1,"user-info",3,"matMenuTriggerFor","matTooltip"],["fxLayout","row","fxLayoutAlign","start center"],["svgIcon","icon_avatar",1,"avatar-img"],["fxLayout","column","fxHide.lt-md","",1,"display-name"],[1,"username","font-body2"],[1,"material-icons","color-medium-gray-hue-1"],["matTooltipClass","mat-tooltip-font-body3","matTooltipPosition","below","fxLayout","row","fxLayoutAlign","start center","fxLayoutGap","8px","mat-button","","tabindex","-1","nvAppListKeyboardNav","horizontal","role","listitem",1,"user-info",3,"click","ngClass","matTooltipDisabled","matTooltip"],[1,"login"],["class","user-login-dropdown",4,"ngIf"],[1,"user-login-dropdown"],["mat-button","","fxLayoutAlign","center center","mat-icon-button","","tabindex","-1","nvAppListKeyboardNav","horizontal","role","listitem",1,"hig-button-icon",3,"matMenuTriggerFor"],[1,"material-icons","color-medium-gray-hue-1","icon-align"],["nvEllipsifiedTextWithTooltip","","tooltipClass","mat-tooltip-font-body3","mat-menu-item","",3,"click"]],template:function(ie,We){if(1&ie){const xt=n.RV6();n.j41(0,"div",5)(1,"div",6)(2,"div",7),n.DNE(3,wd,4,3,"div",8),n.nI1(4,"async"),n.k0s(),n.DNE(5,fc,3,6,"div",9),n.j41(6,"div",10),n.DNE(7,Qd,4,7,"button",11)(8,zu,5,10,"button",12)(9,Rl,4,8,"button",13)(10,Jd,4,2,"ng-container",14),n.j41(11,"mat-menu",15,0)(13,"button",16),n.nI1(14,"translate"),n.bIt("click",function(){return n.eBV(xt),n.Njj(We.goToAccount())}),n.EFF(15),n.nI1(16,"translate"),n.k0s(),n.j41(17,"button",16),n.nI1(18,"translate"),n.bIt("click",function(){return n.eBV(xt),n.Njj(We.logout())}),n.EFF(19),n.nI1(20,"translate"),n.k0s()(),n.j41(21,"mat-menu",15,1)(23,"button",17),n.bIt("click",function(){return n.eBV(xt),n.Njj(We.openFeedbackDialog())}),n.EFF(24),n.nI1(25,"translate"),n.k0s(),n.DNE(26,Nd,3,4,"button",18),n.k0s()()(),n.nrm(27,"nv-app-banner-notification",19),n.k0s()}2&ie&&(n.R7$(3),n.Y8G("ngIf",n.bMT(4,13,We.title$)),n.R7$(2),n.Y8G("ngIf",We.showNvSearch),n.R7$(2),n.Y8G("ngIf",We.isGassistEnabled),n.R7$(),n.Y8G("ngIf",!We.loading),n.R7$(),n.Y8G("ngIf",!We.loading),n.R7$(),n.Y8G("ngIf",!We.loading),n.R7$(3),n.BMQ("aria-label",n.bMT(14,15,"toolbar.account")),n.R7$(2),n.SpI(" ",n.bMT(16,17,"toolbar.account")," "),n.R7$(2),n.BMQ("aria-label",n.bMT(18,19,"toolbar.logout")),n.R7$(2),n.SpI(" ",n.bMT(20,21,"toolbar.logout")," "),n.R7$(4),n.Y8G("disabled",We.isFeedbackCalled),n.R7$(),n.SpI(" ",n.bMT(25,23,"feedback.send")," "),n.R7$(2),n.Y8G("ngIf",We.isBugReportAvailable))},dependencies:[ps.YU,ps.bT,ad.tH,du.a,Wr.iV,_i.An,ld.oV,cd.pI,cd.gy,cd.fS,Qr.LG,el.DJ,el.BO,el.sA,el.UI,Ia.Om,Ia.PW,Fc.S,Wu,Id._,ps.Jj,yt.D9],styles:["[_ngcontent-%COMP%]:root{--hig-marquee-ratio: .3229;--hig-marquee-parent-container-width: 100vw;--hig-marquee-container-height: calc(var(--hig-marquee-ratio) * 100vw);--hig-marquee-corner-column: 56px;--hig-marquee-text-column: 14vw;--hig-marquee-padded-image-first-row: calc(var(--hig-marquee-ratio) * (100vw - var(--hig-marquee-corner-column) - var(--hig-marquee-text-column)));--hig-marquee-padded-image-second-row: calc(var(--hig-marquee-container-height) - var(--hig-marquee-padded-image-first-row))}.ellipsified-text-with-tooltip[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden}.ellipsified-text-with-tooltip.multi-line-ellipsis[_ngcontent-%COMP%]{display:-webkit-box;-webkit-box-orient:vertical;white-space:wrap}.ellipsified-text-with-tooltip.single-line-ellipsis[_ngcontent-%COMP%]{white-space:nowrap}[_ngcontent-%COMP%]:root{--rwd-column-count: 4;--rwd-gutter-count: 3 ;--rwd-gutter-size: 8px;--rwd-container-side-spacing: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 3 ) / 4);--rwd-sidebar-width: 0px;--rwd-container-width: 100vw}@media screen and (min-width: 480px){[_ngcontent-%COMP%]:root{--rwd-column-count: 6;--rwd-gutter-count: 5 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 5 ) / 6)}}@media screen and (min-width: 720px){[_ngcontent-%COMP%]:root{--rwd-column-count: 8;--rwd-gutter-count: 7 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 7 ) / 8)}}@media screen and (min-width: 960px){[_ngcontent-%COMP%]:root{--rwd-column-count: 12;--rwd-gutter-count: 11 ;--rwd-container-side-spacing: 24px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 8px * 11 ) / 12)}}@media screen and (min-width: 1440px){[_ngcontent-%COMP%]:root{--rwd-gutter-size: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 16px * 11 ) / 12)}}.ellipsis[_ngcontent-%COMP%], .app-bar[_ngcontent-%COMP%] .user-login-dropdown[_ngcontent-%COMP%] .mat-menu-item[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden}.app-bar[_ngcontent-%COMP%]{height:56px;background:var(--appbar-bg);box-shadow:var(--appbar-box-shadow);box-sizing:border-box;z-index:2}.app-bar[_ngcontent-%COMP%] .nv-branding-icon[_ngcontent-%COMP%]{width:185px;height:56px;pointer-events:none;position:absolute;z-index:3}.app-bar[_ngcontent-%COMP%] .user-info[_ngcontent-%COMP%]{padding:0;height:40px;width:auto;margin-left:auto}.isLtr[_nghost-%COMP%] .app-bar[_ngcontent-%COMP%] .user-info[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .app-bar[_ngcontent-%COMP%] .user-info[_ngcontent-%COMP%]{margin-right:16px}html[dir=ltr][_ngcontent-%COMP%] .app-bar[_ngcontent-%COMP%] .user-info[_ngcontent-%COMP%]{--dummy4: 0;margin-right:16px}.isRtl[_nghost-%COMP%] .app-bar[_ngcontent-%COMP%] .user-info[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .app-bar[_ngcontent-%COMP%] .user-info[_ngcontent-%COMP%]{margin-left:16px}html[dir=rtl][_ngcontent-%COMP%] .app-bar[_ngcontent-%COMP%] .user-info[_ngcontent-%COMP%]{--dummy4: 0;margin-left:16px}.app-bar[_ngcontent-%COMP%] .user-info-override[_ngcontent-%COMP%]{padding:0;height:40px;width:auto;margin-left:auto}.isLtr[_nghost-%COMP%] .app-bar[_ngcontent-%COMP%] .user-info-override[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .app-bar[_ngcontent-%COMP%] .user-info-override[_ngcontent-%COMP%]{margin-right:1px}html[dir=ltr][_ngcontent-%COMP%] .app-bar[_ngcontent-%COMP%] .user-info-override[_ngcontent-%COMP%]{--dummy4: 0;margin-right:1px}.isRtl[_nghost-%COMP%] .app-bar[_ngcontent-%COMP%] .user-info-override[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .app-bar[_ngcontent-%COMP%] .user-info-override[_ngcontent-%COMP%]{margin-left:1px}html[dir=rtl][_ngcontent-%COMP%] .app-bar[_ngcontent-%COMP%] .user-info-override[_ngcontent-%COMP%]{--dummy4: 0;margin-left:1px}.app-bar[_ngcontent-%COMP%] .user-feedback[_ngcontent-%COMP%]{padding:0;height:40px;width:auto}.app-bar[_ngcontent-%COMP%] .avatar-img[_ngcontent-%COMP%]{width:30px;height:30px;align-self:center;margin-right:9px;margin-left:8px}.app-bar[_ngcontent-%COMP%] .display-name[_ngcontent-%COMP%] .username[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:64px;max-width:144px}.app-bar[_ngcontent-%COMP%] .app-bar-title-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:flex-start;align-items:center}.app-bar[_ngcontent-%COMP%] .app-bar-title[_ngcontent-%COMP%]{padding-left:16px;min-width:160px;display:flex;flex-direction:row;justify-content:center;align-items:center}.app-bar[_ngcontent-%COMP%] .back-button[_ngcontent-%COMP%]{padding:0}.app-bar[_ngcontent-%COMP%] .user-actions[_ngcontent-%COMP%]{gap:8px}.app-bar[_ngcontent-%COMP%] .user-login-dropdown[_ngcontent-%COMP%]{display:flex;align-items:center;width:40px;height:40px;flex-shrink:0}.isLtr[_nghost-%COMP%] .app-bar[_ngcontent-%COMP%] .user-login-dropdown[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .app-bar[_ngcontent-%COMP%] .user-login-dropdown[_ngcontent-%COMP%]{margin-right:8px}html[dir=ltr][_ngcontent-%COMP%] .app-bar[_ngcontent-%COMP%] .user-login-dropdown[_ngcontent-%COMP%]{--dummy4: 0;margin-right:8px}.isRtl[_nghost-%COMP%] .app-bar[_ngcontent-%COMP%] .user-login-dropdown[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .app-bar[_ngcontent-%COMP%] .user-login-dropdown[_ngcontent-%COMP%]{margin-left:8px}html[dir=rtl][_ngcontent-%COMP%] .app-bar[_ngcontent-%COMP%] .user-login-dropdown[_ngcontent-%COMP%]{--dummy4: 0;margin-left:8px}.isLtr[_nghost-%COMP%] .app-bar[_ngcontent-%COMP%] .user-login-dropdown[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .app-bar[_ngcontent-%COMP%] .user-login-dropdown[_ngcontent-%COMP%]{margin-left:-8px}html[dir=ltr][_ngcontent-%COMP%] .app-bar[_ngcontent-%COMP%] .user-login-dropdown[_ngcontent-%COMP%]{--dummy3: 0;margin-left:-8px}.isRtl[_nghost-%COMP%] .app-bar[_ngcontent-%COMP%] .user-login-dropdown[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .app-bar[_ngcontent-%COMP%] .user-login-dropdown[_ngcontent-%COMP%]{margin-right:-8px}html[dir=rtl][_ngcontent-%COMP%] .app-bar[_ngcontent-%COMP%] .user-login-dropdown[_ngcontent-%COMP%]{--dummy3: 0;margin-right:-8px}.app-bar[_ngcontent-%COMP%] .user-login-dropdown[_ngcontent-%COMP%] .mat-menu-item[_ngcontent-%COMP%]{max-width:280px;min-width:112px;white-space:nowrap;width:100%}.app-bar[_ngcontent-%COMP%] .user-login-dropdown[_ngcontent-%COMP%] mat-icon.icon-align[_ngcontent-%COMP%]{vertical-align:middle}.app-bar[_ngcontent-%COMP%] mat-divider[vertical][_ngcontent-%COMP%]{height:24px;margin:0 4px}.banner-notification[_ngcontent-%COMP%]{z-index:2;height:var(--banner-height)}.search-container-flex[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:flex-end;align-items:center;flex:1;gap:8px}.isLtr[_nghost-%COMP%] .search-box-container[_ngcontent-%COMP%], .isLtr [_nghost-%COMP%] .search-box-container[_ngcontent-%COMP%]{margin-left:20px}html[dir=ltr][_ngcontent-%COMP%] .search-box-container[_ngcontent-%COMP%]{--dummy3: 0;margin-left:20px}.isRtl[_nghost-%COMP%] .search-box-container[_ngcontent-%COMP%], .isRtl [_nghost-%COMP%] .search-box-container[_ngcontent-%COMP%]{margin-right:20px}html[dir=rtl][_ngcontent-%COMP%] .search-box-container[_ngcontent-%COMP%]{--dummy3: 0;margin-right:20px}"]})}}return De})();var bd=s(80282),xs=s(56315),Ld=s(94645);let Vc=(()=>{class De{constructor(w){this.el=w,this.currentFocusIndex=0,this.observer=new MutationObserver(()=>{this.initializeNavItems()})}ngOnInit(){this.initializeNavItems(),this.observer.observe(this.el.nativeElement,{childList:!0,subtree:!0})}initializeNavItems(){this.navItems=Array.from(this.el.nativeElement.querySelectorAll(".hig-sidebar-item button:not([hidden])")),this.navItems.forEach((w,ie)=>{w.setAttribute("tabindex",0===ie?"0":"-1")})}onKeyDown(w){const ie=Ld.tt[w.key];if(ie&&this.nvSidebarKeyboardNav===ie.navType)return w.preventDefault(),void this.navigateToElement(ie.direction);w.key===xs.PK.Enter&&this.activateElement()}navigateToElement(w){this.navItems.length&&(this.currentFocusIndex=w===uc.Ys.previous?(this.currentFocusIndex-1+this.navItems.length)%this.navItems.length:(this.currentFocusIndex+1)%this.navItems.length,this.navItems.forEach((ie,We)=>{ie.setAttribute("tabindex",We===this.currentFocusIndex?"0":"-1")}),this.navItems[this.currentFocusIndex].focus())}activateElement(){this.navItems[this.currentFocusIndex]&&this.navItems[this.currentFocusIndex].click()}ngOnDestroy(){this.observer?.disconnect()}static{this.\u0275fac=function(ie){return new(ie||De)(n.rXU(n.aKT))}}static{this.\u0275dir=n.FsC({type:De,selectors:[["","nvSidebarKeyboardNav",""]],hostBindings:function(ie,We){1&ie&&n.bIt("keydown",function(hn){return We.onKeyDown(hn)})},inputs:{nvSidebarKeyboardNav:"nvSidebarKeyboardNav"}})}}return De})();const ic=["nvAppPage"];let yo=(()=>{class De{get showSidebarSelection(){return!this.appConfig.featureEnablement.nvSearch.enabled||!this.routerHandlerService.isSearchRouteActive}constructor(w,ie,We,xt,hn,On,Yn,ti,Ri,ji,Tr,ss,Xr,ls,Yo,wa,tl,xl,Ol,Cd,Cc,Nl,Gl,Ad,pd,eh,zc,Ou,th,Pu,gs,Hs,Ns,qo,El,vc,Tl,gd,Va,Mu,yh,Il){this.localeService=w,this.appConfig=ie,this.gfwslService=We,this.hardwareService=xt,this.selfUpdateService=hn,this.driverUpdateService=On,this.loggingService=Yn,this.distributedTracingBootstrapService=ti,this.experienceControlService=Ri,this.httpTelemetryService=ji,this.dataConsentService=Tr,this.serviceWorkerService=ss,this.serviceWorkerUpdateService=Xr,this.ootbService=ls,this.rewardsService=Yo,this.loginService=wa,this.gfwslParamsService=tl,this.piplLocaleConfigService=xl,this.vrsSdkService=Ol,this.routerHandlerService=Cd,this.aemService=Cc,this.featureReadinessService=Nl,this.eulaService=Gl,this.matDialog=Ad,this.layoutService=pd,this.appListService=eh,this.sidebarService=zc,this.programsService=Ou,this.cloudVariableHelperService=th,this.pluginsNotificationService=Pu,this.errorHandlerService=gs,this.performanceMeasureService=Hs,this.nvAccountInterfaceService=Ns,this.telemetryUtilService=qo,this.nvcplSystemInfoService=El,this.pageVisitTelemetryService=vc,this.dateHandlerService=Tl,this.displayService=gd,this.videoService=Va,this.perfSharedService=Mu,this.appThemeService=yh,this.injector=Il,this.title="nvapp",this.sidebarPageItems=[],this.destroyRef=(0,n.WQX)(n.abz);const{remoteLogging:Od={enabled:!1},consoleLogging:_c={enabled:!0}}=this.appConfig.featureEnablement;if(this.pageVisitTelemetryService.initialize(),this.performanceMeasureService.markNvAppPerformanceMarkers([od.mM.NvAppJsInitEnd],od.fR.Home),this.logger=Yn.getLogger("nvapp/AppComponent"),this.logger.info("Using configuration:",ie),this.appThemeService.initialize().subscribe(()=>{const Zl=this.appThemeService.getThemeValToSendInTelemetry();this.telemetryUtilService.sendSettingsStateTelemetry({settingName:Zr.L4.AppTheme,settingValue:Zl,isSupported:Zr.T8.FALSE}),this.logger.info("initialized app theme service")},Zl=>{this.logger.error("failed to iniitalize app theme service",Zl)}),this.registerForPluginLoadNotification(),this.initializeSidebar(),this.hardwareService.fetchHardwareInfo().subscribe(()=>{this.initializeProgramsServices()},Zl=>{this.logger.error("failed to fetch hardware information",Zl),this.initializeProgramsServices()}),this.routerHandlerService.initialize(),this.registerForPiplLocalizationConfigUpdateEvent(),this.gfwslService.initialize(),this.navigateToDriverPage(),this.layoutService.initialize(),this.distributedTracingBootstrapService.initializeDistributedTracing(),this.experienceControlService.initialize(Dr.NvAppClient,(0,jr.of)("")),this.dataConsentService.initialize(),this.httpTelemetryService.initialize(),this.selfUpdateService.initialize(),this.serviceWorkerService.initialize(),this.serviceWorkerUpdateService.initialize(),this.rewardsService.initialize(),this.driverUpdateService.initialize(),this.nvcplSystemInfoService.invalidateCacheOnDriverInstallation(),this.appConfig.build.variant===Zr.zg.GenerateException&&setTimeout(()=>{throw new Error("Software Testing: Generating exception for QA verification")},1e3),this.displayService.initialize(),this.appConfig?.featureEnablement?.nvSearch?.enabled&&(this.searchManagerService=this.injector.get(cr),this.workerLoggingService=this.injector.get(Bi.To),this.nvWebWorkerService=this.injector.get(Vo),this.workerLoggingService&&this.workerLoggingService.initialize(Od.enabled,_c.enabled),this.searchManagerService&&this.nvWebWorkerService)){const Zl=this.nvWebWorkerService.setupSearchWorker();this.searchManagerService.init(Zl)}}registerForPluginLoadNotification(){const w=this.pluginsNotificationService.mandatoryPluginsLoaded$.subscribe(ie=>{ie.loaded||(this.logger.info("Mandatory plugin fails to load or inactive",ie),this.errorHandlerService.showPluginFailureErrorDialog()?.afterClosed().subscribe(xt=>{w.unsubscribe()}))},ie=>this.logger.error("Error in mandatoryPluginsLoaded notification",ie))}ngOnInit(){const w=this.checkEulaAcceptance(),ie=this.loginService.accountStatusChanged,We=this.nvAccountInterfaceService.getPrivacySettingsConsentInfoChangeNotification().pipe((0,In.Z)(null));(0,Oo.zV)([w,ie,We]).pipe((0,kl.pQ)(this.destroyRef)).subscribe(([xt,hn,On])=>{let Yn={};Yn=null!==On?On?.deviceConsent:xt?.deviceConsent,this.updateGfwslParams(hn,Yn)},xt=>this.logger.error("Some error occurred while getting privacyConsentInfo and accountStatus details ",xt)),this.appConfig?.featureEnablement?.ootb?.enabled&&this.ootbService.loadOotbExperience(),this.appConfig.redirect.defaultLocale&&""!==this.appConfig.redirect.defaultLocale&&this.setLocale(this.appConfig.redirect.defaultLocale),this.featureReadinessService.refreshOverlayFeatures(),this.cloudVariableHelperService.fetchGxCvAndUpdateConfig(),this.appConfig?.featureEnablement?.nvSearch?.enabled&&(this.videoService.initialize(),this.perfSharedService.initialize())}ngAfterViewInit(){this.routerHandlerService.restoreScrollToTopOnRouteChange(this.nvAppPageContainer),this.dateHandlerService.initialize()}routeToPage(w){this.routerHandlerService.routeToPage(w,this.isDriverInstalled,this.isMinimumDriverInstalled)}initializeProgramsServices(){this.appListService.initialize(),this.programsService.initialize()}navigateToDriverPage(){this.routerHandlerService.routeToDriverIfMinimumDriverNotInstalled().subscribe(({isDriverInstalled:w,isMinimumDriverInstalled:ie})=>{this.isDriverInstalled=w,this.isMinimumDriverInstalled=ie},w=>{this.logger.error("failed to route to Driver due to error",w)})}setLocale(w){this.localeService.setLocale(w).subscribe(()=>this.logger.info(`locale successfully set ${w}`),ie=>{this.logger.error(`Error while setting locale ${w}`,ie)})}registerForPiplLocalizationConfigUpdateEvent(){this.piplLocaleConfigService.piplLocalizationConfigUpdated$.subscribe(w=>{w.gfwsl&&""!==w.gfwsl.server&&(this.appConfig.gfwsl.server=w.gfwsl.server,this.gfwslService.setConfigServer(this.appConfig.gfwsl.server)),w.vrs&&""!==w.vrs.server&&(this.appConfig.vrs.server=w.vrs.server,this.vrsSdkService.setConfigServer(this.appConfig.vrs.server)),w.aem&&""!==w.aem.server&&(this.appConfig.aem.server=w.aem.server,this.aemService.setConfigServer(this.appConfig.aem.server))})}checkEulaAcceptance(){return this.eulaService.isEulaAccepted().pipe((0,io.n)(w=>(this.logger.info("Eula Status from NvAccount ",w),w?(0,jr.of)(!0):(this.logger.info("Eula is not accepted, ask for consent again"),this.eulaDialogRef=this.matDialog.open(Rc,{disableClose:!0,autoFocus:!1,panelClass:["eula-modal-container","common-dialog"]}),this.eulaDialogRef.afterClosed()))),(0,io.n)(w=>this.nvAccountInterfaceService.getPrivacySettingsConsentInfo()),(0,io.n)(w=>(this.logger.info("Setting the device consent using NvAccount Information ",w),this.dataConsentService.setDeviceConsent(w?.deviceConsent),this.telemetryUtilService.sendLaunchTimeTelemetry(),(0,jr.of)(w))),(0,Hi.M)(w=>this.logger.info("Consent has been set")),(0,Nr.W)(w=>(this.logger.error("Error occurred while fetching Eula State ",w),(0,ra.$)(w))),(0,ii.s)(1))}initializeSidebar(){this.sidebarService.initialize(),(0,Oo.zV)([this.sidebarService.getSidebarPageItemsObservable(),this.sidebarService.getSelectedPage(),this.localeService.localeChanged]).pipe((0,kl.pQ)(this.destroyRef)).subscribe(([w,ie,We])=>{this.sidebarPageItems=w,this.currentPage=ie},w=>this.logger.error("Error occurred while getting sidebar details",w))}updateGfwslParams(w,ie){this.logger.info("Update GFWSL Params ",ie);const We=this.dataConsentService.convertConsentData(ie);this.gfwslParamsService.onAccountStatusChanged(w.userId,w.isAuthenticated,We.functional,We.technical,w.behavioralConsent)}static{this.\u0275fac=function(ie){return new(ie||De)(n.rXU(Bi.iH),n.rXU(lr.Vk),n.rXU(Ea.XB),n.rXU(Bi.SQ),n.rXU(va),n.rXU(Nt.f),n.rXU(Bi.J6),n.rXU(Gs),n.rXU(rl),n.rXU(Za),n.rXU(Ja.M),n.rXU(bl.lS),n.rXU(gl),n.rXU(Ka.Q),n.rXU(gi.y),n.rXU(to.HF),n.rXU(Ea.Tg),n.rXU(cc.X),n.rXU(dc.T),n.rXU(Mr.V),n.rXU(Ea.PZ),n.rXU(fn.E),n.rXU(wc.h),n.rXU(Fl.bZ),n.rXU(un.Y),n.rXU(Bl.n),n.rXU(ho.o),n.rXU(D.Z),n.rXU(Ul),n.rXU(Nc.P),n.rXU(tc.c),n.rXU(ul.M),n.rXU(wl.W),n.rXU(Zr.AY),n.rXU(Kl.oY),n.rXU(Zc.V),n.rXU(Bi.I_),n.rXU(Lc.R),n.rXU(pr.r),n.rXU(kc.k),n.rXU(Bi.gB),n.rXU(n.zZn))}}static{this.\u0275cmp=n.VBU({type:De,selectors:[["nvapp-root"]],viewQuery:function(ie,We){if(1&ie&&n.GBs(ic,5),2&ie){let xt;n.mGM(xt=n.lsd())&&(We.nvAppPageContainer=xt.first)}},decls:7,vars:7,consts:[["nvAppPage",""],[1,"nv-app","nv-hig"],["nvSidebarKeyboardNav","vertical",1,"nv-app-sidebar",3,"itemClicked","expandable","pageNavSidebarItems","currentSelectedItem","showBorder","showBorderOnSelectedItem"],[1,"nv-app-content"],[3,"isDriverInstalled","isMinimumDriverInstalled"],[1,"nv-app-page"]],template:function(ie,We){if(1&ie){const xt=n.RV6();n.j41(0,"div",1)(1,"nv-hig-sidebar",2),n.bIt("itemClicked",function(On){return n.eBV(xt),n.Njj(We.routeToPage(On))}),n.k0s(),n.j41(2,"div",3),n.nrm(3,"nv-app-bar",4),n.j41(4,"div",5,0),n.nrm(6,"router-outlet"),n.k0s()()()}2&ie&&(n.R7$(),n.Y8G("expandable",!1)("pageNavSidebarItems",We.sidebarPageItems)("currentSelectedItem",We.currentPage)("showBorder",!0)("showBorderOnSelectedItem",We.showSidebarSelection),n.R7$(2),n.Y8G("isDriverInstalled",We.isDriverInstalled)("isMinimumDriverInstalled",We.isMinimumDriverInstalled))},dependencies:[Do.n3,gc,bd._,Vc],styles:[".nv-app[_ngcontent-%COMP%]{display:flex;height:100%;overflow:hidden}.nv-app[_ngcontent-%COMP%] .nv-app-sidebar[_ngcontent-%COMP%]{--hig-sidebar-collapse-width: var(--rwd-sidebar-width);--hig-sidebar-button-padding-top-bottom-size: 6px;--hig-sidebar-button-padding-left-right-size: 8px;--hig-sidebar-layout-gap-size: 6px;--hig-sidebar-item-selected-icon-color: var(--primary-contrast-900);--hig-sidebar-item-selected-text-color: var(--hig-ui-text-primary-color);--hig-sidebar-collapsed-icon-gap-size: 4px;--hig-sidebar-layout-first-item-top-gap: 0;--hig-sidebar-item-selected-border-radius: 2px;--hig-sidebar-item-selected-left-border-size: 0;--hig-sidebar-item-selected-border-width: 4px;--hig-sidebar-horizontal-padding: 4px;--hig-sidebar-item-selected-left-position: -4px;--hig-sidebar-border-color-rgba: var(--primary-contrast-80)}.nv-app[_ngcontent-%COMP%] .nv-app-content[_ngcontent-%COMP%]{width:100%;height:100%;position:relative;display:flex;flex-direction:column}.nv-app[_ngcontent-%COMP%] .nv-app-page[_ngcontent-%COMP%]{overflow-y:auto;scrollbar-gutter:stable;overflow-x:hidden;width:100%;height:100%;background:var(--primary-900)}.nv-app[_ngcontent-%COMP%] .nv-app-page[_ngcontent-%COMP%]:has(.tab-content){overflow:hidden;scrollbar-gutter:unset}"]})}}return De})();const qd={bridge:{mocks:[]},logger:{defaultLoggingLevel:Bi.q_.Info},window:{name:Bi.Sg.Nvapp},locale:{supportedLang:["cs_CZ","da_DK","de_DE","el_GR","en_GB","en_US","es_ES","es_MX","fi_FI","fr_FR","hu_HU","it_IT","ja_JP","ko_KR","nb_NO","nl_NL","pl_PL","pt_BR","pt_PT","ru_RU","sk_SK","sl_SI","sv_SE","th_TH","tr_TR","uk_UA","zh_CN","zh_TW"]},configFileName:"assets/config/config.json",production:!0};var kd=s(37202);let eu=(()=>{class De{constructor(w){this.loggingService=w,this.logger=this.loggingService.getLogger("HttpLoggingService")}intercept(w,ie){return this.logger.info("Going to call endpoint request url ",w.url),ie.handle(w).pipe((0,Hi.M)(We=>{We instanceof h.cS&&this.logger.info("Http response for request ",We.url," returns status: ",We.status)}),(0,Nr.W)(We=>(this.handleHttpError(We,w),(0,ra.$)(We))))}handleHttpError(w,ie){this.logger.error(`Http request method '${ie.method}', url '${ie.url}' FAILED with response`,w)}static{this.\u0275fac=function(ie){return new(ie||De)(n.KVO(Bi.J6))}}static{this.\u0275prov=n.jDH({token:De,factory:De.\u0275fac})}}return De})();var ud=s(36877);const Fd=["skipBtn"],Ec=["prevBtn"],Al=["actionBtn"];function tu(De,Me){1&De&&(n.j41(0,"button",8,1),n.EFF(2),n.nI1(3,"translate"),n.k0s()),2&De&&(n.R7$(2),n.SpI(" ",n.bMT(3,1,"ootb.previous")," "))}function $u(De,Me){1&De&&(n.j41(0,"button",9,2),n.EFF(2),n.nI1(3,"translate"),n.k0s()),2&De&&(n.R7$(2),n.SpI(" ",n.bMT(3,1,"ootb.skipToApp")," "))}let fu=(()=>{class De{set ootbActionState(w){this._ootbActionState=w,this.ootbAction=w.toString()}get ootbActionState(){return this._ootbActionState}constructor(w){this.loggingService=w,this.actionBtnClicked=new n.bkB,this.prevBtnClicked=new n.bkB,this.skipToAppBtnClicked=new n.bkB,this.logger=this.loggingService.getLogger("OotbActionComponent")}ngAfterViewInit(){this.skipBtn&&this.skipToApp(),this.prevBtn&&this.goToPrevExperience(),this.actionBtn&&this.onActionBtn()}skipToApp(){(0,ud.R)(this.skipBtn?.nativeElement,"click").pipe((0,ii.s)(1)).subscribe(w=>{this.logger.info("User has decided to skip the OOTB experience"),this.skipToAppBtnClicked.emit()},w=>{this.logger.error("Error occurred while clicking on skipToApp button ",w)})}goToPrevExperience(){(0,ud.R)(this.prevBtn?.nativeElement,"click").pipe((0,ii.s)(1)).subscribe(w=>{this.logger.info("Go to previous experience"),this.prevBtnClicked.emit()},w=>{this.logger.error("Error occurred while clicking on previous button ",w)})}onActionBtn(){(0,ud.R)(this.actionBtn?.nativeElement,"click").pipe((0,ii.s)(1)).subscribe(w=>{this.logger.info("User has clicked",this.ootbActionState),this.actionBtnClicked.emit(this.ootbActionState)},w=>{this.logger.error("Error occurred while clicking on next button ",w)})}static{this.\u0275fac=function(ie){return new(ie||De)(n.rXU(Bi.J6))}}static{this.\u0275cmp=n.VBU({type:De,selectors:[["nv-app-ootb-action"]],viewQuery:function(ie,We){if(1&ie&&(n.GBs(Fd,5,n.aKT),n.GBs(Ec,5,n.aKT),n.GBs(Al,5,n.aKT)),2&ie){let xt;n.mGM(xt=n.lsd())&&(We.skipBtn=xt.first),n.mGM(xt=n.lsd())&&(We.prevBtn=xt.first),n.mGM(xt=n.lsd())&&(We.actionBtn=xt.first)}},inputs:{isPrevEnabled:"isPrevEnabled",isSkipToAppEnabled:"isSkipToAppEnabled",ootbActionState:"ootbActionState"},outputs:{actionBtnClicked:"actionBtnClicked",prevBtnClicked:"prevBtnClicked",skipToAppBtnClicked:"skipToAppBtnClicked"},decls:8,vars:5,consts:[["actionBtn",""],["prevBtn",""],["skipBtn",""],["fxLayout","row","fxLayoutAlign","space-between center",1,"ootb-action-container"],["mat-button","","class","prev-btn font-button2",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center",1,"navigation-actions"],["mat-button","","class","skip-btn font-button2",4,"ngIf"],["mat-raised-button","",1,"action-btn","font-button2","mat-accent"],["mat-button","",1,"prev-btn","font-button2"],["mat-button","",1,"skip-btn","font-button2"]],template:function(ie,We){1&ie&&(n.j41(0,"div",3),n.DNE(1,tu,4,3,"button",4),n.j41(2,"div",5),n.DNE(3,$u,4,3,"button",6),n.j41(4,"button",7,0),n.EFF(6),n.nI1(7,"translate"),n.k0s()()()),2&ie&&(n.R7$(),n.Y8G("ngIf",We.isPrevEnabled),n.R7$(2),n.Y8G("ngIf",We.isSkipToAppEnabled),n.R7$(3),n.SpI(" ",n.bMT(7,3,We.ootbAction)," "))},dependencies:[ps.bT,Hr.Aq,Wr.iV,el.DJ,el.sA,yt.D9],styles:[".experience-container[_ngcontent-%COMP%]{height:100%}.experience-container[_ngcontent-%COMP%] .experience-title[_ngcontent-%COMP%], .experience-container[_ngcontent-%COMP%] .experience-content[_ngcontent-%COMP%]{width:395px;padding:30px 24px 0}.experience-container[_ngcontent-%COMP%] .experience-content-container[_ngcontent-%COMP%]{width:100%;position:relative}.experience-container[_ngcontent-%COMP%] .experience-content[_ngcontent-%COMP%]{height:100%}.experience-container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{z-index:1}.experience-container[_ngcontent-%COMP%] .mat-slide-toggle[_ngcontent-%COMP%]{height:28px}.update-note[_ngcontent-%COMP%]{color:var(--primary-contrast-1000);margin-top:24px}.default-letter-spacing[_ngcontent-%COMP%]{letter-spacing:.25px}.ootb-action-container[_ngcontent-%COMP%]{height:52px;width:100%;padding:0 8px}.ootb-action-container[_ngcontent-%COMP%] .navigation-actions[_ngcontent-%COMP%]{margin-left:auto}.ootb-action-container[_ngcontent-%COMP%] .action-btn[_ngcontent-%COMP%], .ootb-action-container[_ngcontent-%COMP%] .skip-btn[_ngcontent-%COMP%], .ootb-action-container[_ngcontent-%COMP%] .prev-btn[_ngcontent-%COMP%]{letter-spacing:.4px;color:var(--ootb-action-btn-color);cursor:pointer;outline:none;border:none;height:36px}.ootb-action-container[_ngcontent-%COMP%] .action-btn[_ngcontent-%COMP%]{background:var(--accent-500)}.ootb-action-container[_ngcontent-%COMP%] .skip-btn[_ngcontent-%COMP%], .ootb-action-container[_ngcontent-%COMP%] .prev-btn[_ngcontent-%COMP%]{background:none;padding:0 8px}.ootb-action-container[_ngcontent-%COMP%] .skip-btn[_ngcontent-%COMP%]{margin-right:8px}"]})}}return De})();var pu=s(12532),rc=s(2216),Gc=s(70445),Xu=s(72482),Ud=s(93964);const Yu=(De,Me,w)=>({"grd-image":De,"nsd-image":Me,"nwd-image":w}),Yl=(De,Me,w)=>({selected:De,"wide-driver-chip":Me,"driver-chip":w});function Kh(De,Me){1&De&&n.nrm(0,"nv-app-page-load-spinner")}function Qu(De,Me){if(1&De){const w=n.RV6();n.j41(0,"button",8),n.bIt("click",function(){const We=n.eBV(w).$implicit,xt=n.XpG(2);return n.Njj(xt.onPreferenceChange(We))}),n.j41(1,"div",9)(2,"span",10),n.EFF(3),n.nI1(4,"translate"),n.k0s(),n.j41(5,"span",11),n.EFF(6),n.nI1(7,"translate"),n.k0s()()()}if(2&De){const w=Me.$implicit,ie=n.XpG(2);n.Y8G("ngClass",n.sMw(8,Yl,w.isSelected,ie.canNWD,!ie.canNWD)),n.R7$(2),n.Y8G("isMultiLineEllipsis",!0),n.R7$(),n.JRh(n.bMT(4,4,w.title)),n.R7$(3),n.JRh(n.bMT(7,6,w.subtitle))}}function hd(De,Me){if(1&De&&(n.j41(0,"div",2)(1,"span",3),n.EFF(2),n.nI1(3,"translate"),n.nI1(4,"translate"),n.k0s(),n.j41(5,"div",4)(6,"div",5),n.DNE(7,Qu,8,12,"button",6),n.j41(8,"span",7),n.EFF(9),n.nI1(10,"translate"),n.k0s()()()()),2&De){const w=n.XpG();n.Y8G("ngClass",n.sMw(10,Yu,w.isGRD,w.isNSD,w.canNWD)),n.R7$(2),n.SpI(" ",w.canNWD?n.bMT(3,4,"ootb.workstationDriverExperienceTitle"):n.bMT(4,6,"ootb.driverExperienceTitle")," "),n.R7$(5),n.Y8G("ngForOf",w.driverTypes),n.R7$(2),n.JRh(n.bMT(10,8,w.driverDescription))}}let gu=(()=>{class De{constructor(w,ie,We,xt,hn,On){this.loggingService=w,this.hardwareInfoService=ie,this.driverInfoService=We,this.driverUpdateService=xt,this.ootbService=hn,this.appConfig=On,this.driverTypes=[],this.isLoading$=this.ootbService.loading,this.isGRD=!1,this.isNSD=!1,this.canNSD=!1,this.canNWD=!1,this.driverTypeSelected=new n.bkB,this.skipDriverExperience=new n.bkB,this.logger=this.loggingService.getLogger("nvapp/OotbDriverComponent")}ngOnInit(){this.ootbService.updateLoading(!0),this.initDriverExperienceInfo()}onPreferenceChange(w){this.logger.info("Selected Preference ",w.title),this.driverTypeSelected.emit(w),this.updateDriverExperience(w),this.driverTypes.forEach(ie=>{ie.isSelected=ie.id===w.id})}initDriverExperienceInfo(){(0,Oo.zV)([this.driverInfoService.getIsCRDSupported(),this.isPersonasEnabled()]).pipe((0,ii.s)(1),(0,io.n)(([w,ie])=>(this.logger.info("isNSDSupported ",w),this.driverTypes=ie?Gc.MA:Gc.cB,ie?this.driverUpdateService.getUpdateStrategyPreference().pipe((0,es.T)(We=>We||rc.eS.WsRecommendedDriver),(0,Hi.M)(We=>this.canNWD=!0),(0,ii.s)(1)):w?this.hardwareInfoService.getGenericInfo(!1).pipe((0,Hi.M)(We=>this.canNSD=!0),(0,es.T)(We=>We.DriverType),(0,ii.s)(1)):(!ie&&!w&&(this.driverTypes[rc.uj.GameReadyDriver].isInstalled=!0,this.driverTypeSelected.emit(this.driverTypes[rc.uj.GameReadyDriver]),this.ootbService.updateLoading(!1),this.skipDriverExperience.emit()),pu.w)))).subscribe(w=>{this.initializeDriverTypes(w),this.ootbService.updateLoading(!1)},w=>{this.logger.error("Error occurred while initializing driver experience details",w),this.driverTypes[rc.uj.GameReadyDriver].isSelected=!0,this.driverTypes[rc.uj.GameReadyDriver].isInstalled=!0,this.driverTypeSelected.emit(this.driverTypes[rc.uj.GameReadyDriver]),this.ootbService.updateLoading(!1)})}initializeDriverTypes(w){this.driverTypes.forEach(ie=>{const We=ie.id===w;ie.isInstalled=We,ie.isSelected=this.selectedDriverType?ie.id===this.selectedDriverType.id:We,ie.isSelected&&(this.logger.info("Preferred driverType ",ie.title),this.updateDriverExperience(ie),this.driverTypeSelected.emit(ie))})}updateDriverExperience(w){switch(this.isGRD=this.isNSD=!1,w?.id){case rc.uj.GameReadyDriver:this.driverDescription="ootb.grdDescription",this.isGRD=!0;break;case rc.uj.CreatorReadyDriver:this.driverDescription="ootb.nsdDescription",this.isNSD=!0;break;case rc.eS.WsRecommendedDriver:case rc.eS.WsLeadingEdgeDriver:case rc.eS.WsConservativeDriver:this.driverDescription=" ";break;default:this.isGRD=!0,this.driverDescription="ootb.grdDescription"}}isPersonasEnabled(){const w=this.appConfig?.featureEnablement?.workstation;return w?.enabled&&w?.personas?.enabled?this.hardwareInfoService.getQuadroSystemFlag():(0,jr.of)(!1)}static{this.\u0275fac=function(ie){return new(ie||De)(n.rXU(Bi.J6),n.rXU(Bi.SQ),n.rXU(Xu.u),n.rXU(Nt.f),n.rXU(Ka.Q),n.rXU(lr.Vk))}}static{this.\u0275cmp=n.VBU({type:De,selectors:[["nv-app-ootb-driver"]],inputs:{selectedDriverType:"selectedDriverType"},outputs:{driverTypeSelected:"driverTypeSelected",skipDriverExperience:"skipDriverExperience"},decls:2,vars:2,consts:[[4,"ngIf"],["class","experience-container","fxLayout","column",3,"ngClass",4,"ngIf"],["fxLayout","column",1,"experience-container",3,"ngClass"],[1,"experience-title","font-header6"],["fxFlex","",1,"experience-content-container"],["fxLayout","column",1,"experience-content","driver-experience-content"],["class","content","fxLayout","row","fxLayoutAlign","start center",3,"ngClass","click",4,"ngFor","ngForOf"],[1,"driver-desc","font-body2","default-letter-spacing","content"],["fxLayout","row","fxLayoutAlign","start center",1,"content",3,"click","ngClass"],["fxLayout","column","fxLayoutAlign","start start",1,"chip-info"],["nvEllipsifiedTextWithTooltip","","tooltipClass","mat-tooltip-font-body3",1,"font-sub1","title",3,"isMultiLineEllipsis"],[1,"chip-sub-title","font-sub2"]],template:function(ie,We){1&ie&&n.DNE(0,Kh,1,0,"nv-app-page-load-spinner",0)(1,hd,11,14,"div",1),2&ie&&(n.Y8G("ngIf",!We.canNSD&&!We.canNWD),n.R7$(),n.Y8G("ngIf",We.canNSD||We.canNWD))},dependencies:[ps.YU,ps.Sq,ps.bT,du.a,el.DJ,el.sA,el.UI,Ia.PW,Ud.Q,yt.D9],styles:[".experience-container[_ngcontent-%COMP%]{height:100%}.experience-container[_ngcontent-%COMP%] .experience-title[_ngcontent-%COMP%], .experience-container[_ngcontent-%COMP%] .experience-content[_ngcontent-%COMP%]{width:395px;padding:30px 24px 0}.experience-container[_ngcontent-%COMP%] .experience-content-container[_ngcontent-%COMP%]{width:100%;position:relative}.experience-container[_ngcontent-%COMP%] .experience-content[_ngcontent-%COMP%]{height:100%}.experience-container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{z-index:1}.experience-container[_ngcontent-%COMP%] .mat-slide-toggle[_ngcontent-%COMP%]{height:28px}.update-note[_ngcontent-%COMP%]{color:var(--primary-contrast-1000);margin-top:24px}.default-letter-spacing[_ngcontent-%COMP%]{letter-spacing:.25px}[_ngcontent-%COMP%]:root{--hig-marquee-ratio: .3229;--hig-marquee-parent-container-width: 100vw;--hig-marquee-container-height: calc(var(--hig-marquee-ratio) * 100vw);--hig-marquee-corner-column: 56px;--hig-marquee-text-column: 14vw;--hig-marquee-padded-image-first-row: calc(var(--hig-marquee-ratio) * (100vw - var(--hig-marquee-corner-column) - var(--hig-marquee-text-column)));--hig-marquee-padded-image-second-row: calc(var(--hig-marquee-container-height) - var(--hig-marquee-padded-image-first-row))}.ellipsified-text-with-tooltip[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden}.ellipsified-text-with-tooltip.multi-line-ellipsis[_ngcontent-%COMP%]{display:-webkit-box;-webkit-box-orient:vertical;white-space:wrap}.ellipsified-text-with-tooltip.single-line-ellipsis[_ngcontent-%COMP%]{white-space:nowrap}[_ngcontent-%COMP%]:root{--rwd-column-count: 4;--rwd-gutter-count: 3 ;--rwd-gutter-size: 8px;--rwd-container-side-spacing: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 3 ) / 4);--rwd-sidebar-width: 0px;--rwd-container-width: 100vw}@media screen and (min-width: 480px){[_ngcontent-%COMP%]:root{--rwd-column-count: 6;--rwd-gutter-count: 5 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 5 ) / 6)}}@media screen and (min-width: 720px){[_ngcontent-%COMP%]:root{--rwd-column-count: 8;--rwd-gutter-count: 7 ;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 16px - 8px * 7 ) / 8)}}@media screen and (min-width: 960px){[_ngcontent-%COMP%]:root{--rwd-column-count: 12;--rwd-gutter-count: 11 ;--rwd-container-side-spacing: 24px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 8px * 11 ) / 12)}}@media screen and (min-width: 1440px){[_ngcontent-%COMP%]:root{--rwd-gutter-size: 16px;--rwd-column-size: calc((var(--rwd-container-width) - var(--rwd-sidebar-width) - 2 * 24px - 16px * 11 ) / 12)}}.ellipsis[_ngcontent-%COMP%], .experience-content-container[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden}.experience-content-container[_ngcontent-%COMP%] .driver-experience-content[_ngcontent-%COMP%]{padding-top:20px}.experience-content-container[_ngcontent-%COMP%] .driver-chip[_ngcontent-%COMP%], .experience-content-container[_ngcontent-%COMP%] .wide-driver-chip[_ngcontent-%COMP%]{padding:10px 8px 10px 14px;margin:12px 0;width:254px;border:1px solid var(--ootb-driver-chip-border-color);cursor:pointer;background:none;text-align:left}.experience-content-container[_ngcontent-%COMP%] .driver-chip[_ngcontent-%COMP%]:hover, .experience-content-container[_ngcontent-%COMP%] .wide-driver-chip[_ngcontent-%COMP%]:hover{background:var(--ootb-driver-chip-hover-bg)}.experience-content-container[_ngcontent-%COMP%] .driver-chip[_ngcontent-%COMP%]:active, .experience-content-container[_ngcontent-%COMP%] .wide-driver-chip[_ngcontent-%COMP%]:active{background:var(--ootb-driver-chip-active-bg)}.experience-content-container[_ngcontent-%COMP%] .wide-driver-chip[_ngcontent-%COMP%]{width:300px}.experience-content-container[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{letter-spacing:.5px;-webkit-box-orient:vertical;-webkit-line-clamp:2;display:-webkit-box}.experience-content-container[_ngcontent-%COMP%] .chip-sub-title[_ngcontent-%COMP%]{opacity:.75;line-height:16px;font-weight:400}.experience-content-container[_ngcontent-%COMP%] .selected[_ngcontent-%COMP%]{background:var(--ootb-content-selected-bg);border:1px solid var(--accent-500)}.experience-content-container[_ngcontent-%COMP%] .driver-desc[_ngcontent-%COMP%]{margin-top:8px}.grd-image[_ngcontent-%COMP%]{background:url(assets/hashed/ootb-grd-driver-experience.ae47d97afbef711e.jpg) no-repeat center/auto 444px}.nsd-image[_ngcontent-%COMP%]{background:url(assets/hashed/ootb-nsd-driver-experience.35924f6290b36e3b.png) no-repeat center/auto 444px}.nwd-image[_ngcontent-%COMP%]{background:url(assets/hashed/ootb-nwd-driver-experience.69e0cbe2fa83bcdc.png) no-repeat center/auto 444px}"]})}}return De})();var Hc=s(18553);const nu=(De,Me)=>({"grd-image":De,"nsd-image":Me});function ed(De,Me){1&De&&n.nrm(0,"nv-app-page-load-spinner")}function Bd(De,Me){if(1&De&&(n.j41(0,"li",13),n.EFF(1),n.k0s()),2&De){const w=n.XpG().$implicit;n.R7$(),n.SpI(" ",w.campaign.title," ")}}function mu(De,Me){if(1&De&&(n.qex(0),n.DNE(1,Bd,2,1,"li",12),n.bVm()),2&De){const w=Me.$implicit;n.R7$(),n.Y8G("ngIf",null==w||null==w.campaign?null:w.campaign.title)}}function vu(De,Me){if(1&De&&(n.qex(0),n.j41(1,"span",9),n.EFF(2),n.nI1(3,"translate"),n.k0s(),n.j41(4,"ul",10),n.DNE(5,mu,2,1,"ng-container",11),n.k0s(),n.bVm()),2&De){const w=n.XpG(2);n.R7$(2),n.JRh(n.bMT(3,2,"ootb.currentAvailableRewards")),n.R7$(3),n.Y8G("ngForOf",w.availableRewards)}}function ph(De,Me){if(1&De&&(n.j41(0,"div",2)(1,"span",3),n.EFF(2),n.nI1(3,"translate"),n.k0s(),n.j41(4,"div",4)(5,"div",5),n.DNE(6,vu,6,4,"ng-container",6),n.j41(7,"span",7),n.EFF(8),n.nI1(9,"translate"),n.k0s(),n.j41(10,"p",8),n.EFF(11),n.nI1(12,"translate"),n.k0s()()()()),2&De){const w=n.XpG();n.Y8G("ngClass",n.l_i(11,nu,w.isGRD,w.isNSD)),n.R7$(2),n.SpI(" ",n.bMT(3,5,"ootb.redeemRewards")," "),n.R7$(4),n.Y8G("ngIf",w.isRewardsAvailable),n.R7$(2),n.SpI(" ",n.bMT(9,7,"ootb.availableRewards")," "),n.R7$(3),n.SpI(" ",n.bMT(12,9,"ootb.accessRewards")," ")}}let _u=(()=>{class De{set selectedDriverType(w){this.isGRD=this.ootbService.isGameReadyDriver(w),this.isNSD=this.ootbService.isCreatorReadyDriver(w),this.isNWD=this.ootbService.isWorkstationDriver(w)}constructor(w,ie,We,xt){this.loggingService=w,this.loginService=ie,this.ootbService=We,this.rewardsService=xt,this.isLoading$=this.ootbService.loading,this.loggedIn=new n.bkB,this.logger=this.loggingService.getLogger("nvapp/OotbLoginComponent")}ngOnInit(){this.ootbService.updateLoading(!0),this.initializeLoginExperience()}initializeLoginExperience(){(0,Yt.yU)(this.rewardsService.getRewards(),this.loginService.accountStatusChanged).pipe((0,ii.s)(1)).subscribe(([w,ie])=>{!this.rewardsService.isRewardUnAvailable()&&w?.available.length>0&&(this.isRewardsAvailable=!0,this.availableRewards=w[Wn.E.Available],this.availableRewards.length>Gc.Ik&&(this.availableRewards=this.availableRewards.slice(0,Gc.Ik))),this.loggedIn.emit(ie.isAuthenticated)},w=>{this.logger.error("Error occurred while initialize login experience",w),this.loggedIn.emit(!1)})}static{this.\u0275fac=function(ie){return new(ie||De)(n.rXU(Bi.J6),n.rXU(to.HF),n.rXU(Ka.Q),n.rXU(gi.y))}}static{this.\u0275cmp=n.VBU({type:De,selectors:[["nv-app-ootb-login"]],inputs:{selectedDriverType:"selectedDriverType"},outputs:{loggedIn:"loggedIn"},decls:4,vars:4,consts:[["loginExperience",""],[4,"ngIf","ngIfElse"],["fxLayout","column","tabindex","0",1,"experience-container",3,"ngClass"],[1,"font-header6","experience-title"],["fxFlex","",1,"experience-content-container"],["fxLayout","column",1,"experience-content"],[4,"ngIf"],[1,"font-body2","font-color-secondary","default-letter-spacing","content"],[1,"font-body2","font-color-secondary","default-letter-spacing","content","access-rewards-text"],[1,"font-body2","default-letter-spacing","content"],["role","list",1,"reward-list","content"],[4,"ngFor","ngForOf"],["role","listitem","class","reward-title",4,"ngIf"],["role","listitem",1,"reward-title"]],template:function(ie,We){if(1&ie&&(n.DNE(0,ed,1,0,"nv-app-page-load-spinner",1),n.nI1(1,"async"),n.DNE(2,ph,13,14,"ng-template",null,0,n.C5r)),2&ie){const xt=n.sdS(3);n.Y8G("ngIf",n.bMT(1,2,We.isLoading$))("ngIfElse",xt)}},dependencies:[ps.YU,ps.Sq,ps.bT,el.DJ,el.UI,Ia.PW,Ud.Q,ps.Jj,yt.D9],styles:['.experience-container[_ngcontent-%COMP%]{height:100%}.experience-container[_ngcontent-%COMP%] .experience-title[_ngcontent-%COMP%], .experience-container[_ngcontent-%COMP%] .experience-content[_ngcontent-%COMP%]{width:395px;padding:30px 24px 0}.experience-container[_ngcontent-%COMP%] .experience-content-container[_ngcontent-%COMP%]{width:100%;position:relative}.experience-container[_ngcontent-%COMP%] .experience-content[_ngcontent-%COMP%]{height:100%}.experience-container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{z-index:1}.experience-container[_ngcontent-%COMP%] .mat-slide-toggle[_ngcontent-%COMP%]{height:28px}.update-note[_ngcontent-%COMP%]{color:var(--primary-contrast-1000);margin-top:24px}.default-letter-spacing[_ngcontent-%COMP%]{letter-spacing:.25px}.grd-image[_ngcontent-%COMP%]{background:url(assets/hashed/ootb-grd-rewards-experience.1008af5a8d2a562b.png) no-repeat center/auto 444px}.nsd-image[_ngcontent-%COMP%]{background:url(assets/hashed/ootb-nsd-rewards-experience.7d5784c7ae5bef31.png) no-repeat center/auto 444px}.single-reward[_ngcontent-%COMP%]{padding-bottom:24px}.reward-list[_ngcontent-%COMP%]{padding:0 0 0 10px;margin:0 0 19px;list-style-type:"- "}.reward-list[_ngcontent-%COMP%] .reward-title[_ngcontent-%COMP%]{padding:0 0 5px}.access-rewards-text[_ngcontent-%COMP%]{margin:24px 0}']})}}return De})();var yu=s(3496),jc=s(62668),fd=s(54676),Su=s(62141),Wc=s(75723);const Vd=(De,Me,w)=>({"grd-image":De,"nsd-image":Me,"nwd-image":w});function Zu(De,Me){1&De&&n.nrm(0,"nv-app-page-load-spinner")}function $h(De,Me){if(1&De){const w=n.RV6();n.j41(0,"mat-slide-toggle",10),n.nI1(1,"translate"),n.bIt("change",function(){n.eBV(w);const We=n.XpG(2);return n.Njj(We.onOptimizeChange())}),n.k0s()}if(2&De){const w=n.XpG(2);n.Y8G("checked",w.isAutoOptimized)("nvAppAnnouncer",w.isAutoOptimized)("associatedMessage","ootb.optimizeExperienceTitle"),n.BMQ("aria-label",n.bMT(1,4,"ootb.optimizeExperienceTitle"))}}function gh(De,Me){if(1&De&&(n.j41(0,"div",2)(1,"div",3)(2,"span",4),n.EFF(3),n.nI1(4,"translate"),n.k0s(),n.DNE(5,$h,2,6,"mat-slide-toggle",5),n.k0s(),n.j41(6,"div",6)(7,"div",7)(8,"span",8),n.EFF(9),n.nI1(10,"translate"),n.k0s(),n.j41(11,"span",9),n.EFF(12),n.nI1(13,"translate"),n.k0s()()()()),2&De){const w=n.XpG();n.Y8G("ngClass",n.sMw(11,Vd,w.isGRD,w.isNSD,w.isNWD)),n.R7$(3),n.SpI(" ",n.bMT(4,5,"ootb.optimizeExperienceTitle")," "),n.R7$(2),n.Y8G("ngIf",w.showToggle),n.R7$(4),n.SpI(" ",n.bMT(10,7,"ootb.optimizeRecommendedSetting")," "),n.R7$(3),n.SpI(" ",n.bMT(13,9,"ootb.optimizeNewGames")," ")}}let td=(()=>{class De{set selectedDriverType(w){this.isGRD=this.ootbService.isGameReadyDriver(w),this.isNSD=this.ootbService.isCreatorReadyDriver(w),this.isNWD=this.ootbService.isWorkstationDriver(w)}constructor(w,ie,We,xt,hn){this.loggingService=w,this.ootbService=ie,this.rewardsService=We,this.overlayService=xt,this.appConfig=hn,this.optimizeChanged=new n.bkB,this.skipExperience=new n.bkB,this.noRewardsAvailable=new n.bkB,this.piplComplianceFailed=new n.bkB,this.isLoading$=this.ootbService.loading,this.isAutoOptimized=!0,this.showToggle=!1,this.logger=this.loggingService.getLogger("nvapp/OotbOptimizeComponent")}ngOnInit(){this.ootbService.updateLoading(!0),this.checkOverlayAndRewardsState(),(void 0===this.isOptimized?(0,jr.of)(this.isOptimized).pipe((0,Un.ZZ)(ie=>this.ootbService.getAutoOptimizeValue()),(0,Hi.M)(ie=>{this.logger.info("Auto Optimize Value",ie),this.optimizeChanged.emit(ie)}),(0,ii.s)(1)):(0,jr.of)(this.isOptimized)).pipe((0,Un.ZZ)(ie=>(this.isAutoOptimized=ie,(0,yu.O)(0)))).subscribe(ie=>{this.ootbService.updateLoading(!1),this.showToggle=!0},ie=>{this.logger.error("Error while fetching optimize value",ie),(ie?.code===Ld._O||ie instanceof jc.n)&&this.logger.error("Localgames plugin not found, not able to get autoOptimize flag value due to timeout ",ie),this.skipExperience.emit(),this.ootbService.updateLoading(!1)})}checkOverlayAndRewardsState(){this.overlayService.getOverlayState().pipe((0,ii.s)(1),(0,Ze.H)(w=>{let ie=!1;return w&&!w.feature?.overallState&&(this.logger.error("Not able to get contents for overlay feature"),ie=!0),w?.feature?.isPluginError&&(this.logger.error("Not able to get overlay state as NvIgoUtil plugin timed out/not found"),ie=!0),ie?this.appConfig?.gfwsl?.server&&this.appConfig?.vrs?.server?this.rewardsService.getRewards().pipe((0,ii.s)(1),(0,Hi.M)(We=>{const xt=!!We?.available&&0===We.available.length;xt&&this.logger.error("Not able to get rewards as no rewards are available"),this.noRewardsAvailable.emit(xt)})):(this.logger.error("Not able to get rewards as GFWSL or VRS URL is not available"),this.piplComplianceFailed.emit(!0),(0,jr.of)(null)):(0,jr.of)(null)})).subscribe(mt.l,w=>{this.logger.error("Error occurred while fetching overlay state and rewards during optimize experience",w)})}onOptimizeChange(){this.isAutoOptimized=!this.isAutoOptimized,this.logger.info("Optimize State: "+this.isAutoOptimized),this.optimizeChanged.emit(this.isAutoOptimized)}static{this.\u0275fac=function(ie){return new(ie||De)(n.rXU(Bi.J6),n.rXU(Ka.Q),n.rXU(gi.y),n.rXU(Sd.s),n.rXU(lr.Vk))}}static{this.\u0275cmp=n.VBU({type:De,selectors:[["nv-app-ootb-optimize"]],inputs:{selectedDriverType:"selectedDriverType",isOptimized:"isOptimized"},outputs:{optimizeChanged:"optimizeChanged",skipExperience:"skipExperience",noRewardsAvailable:"noRewardsAvailable",piplComplianceFailed:"piplComplianceFailed"},decls:4,vars:4,consts:[["optimizeStep",""],[4,"ngIf","ngIfElse"],[1,"experience-container",3,"ngClass"],[1,"experience-title"],[1,"font-header6"],["role","switch",3,"checked","nvAppAnnouncer","associatedMessage","change",4,"ngIf"],[1,"experience-content-container"],["tabindex","0",1,"experience-content"],[1,"font-body2","default-letter-spacing","content"],[1,"font-body2","optimize-text","default-letter-spacing","content"],["role","switch",3,"change","checked","nvAppAnnouncer","associatedMessage"]],template:function(ie,We){if(1&ie&&(n.DNE(0,Zu,1,0,"nv-app-page-load-spinner",1),n.nI1(1,"async"),n.DNE(2,gh,14,15,"ng-template",null,0,n.C5r)),2&ie){const xt=n.sdS(3);n.Y8G("ngIf",!0===n.bMT(1,2,We.isLoading$))("ngIfElse",xt)}},dependencies:[ps.YU,ps.bT,fd.tG,Su.P2,Ia.PW,Ud.Q,Wc.L,ps.Jj,yt.D9],styles:[".experience-container[_ngcontent-%COMP%]{height:100%}.experience-container[_ngcontent-%COMP%] .experience-title[_ngcontent-%COMP%], .experience-container[_ngcontent-%COMP%] .experience-content[_ngcontent-%COMP%]{width:395px;padding:30px 24px 0}.experience-container[_ngcontent-%COMP%] .experience-content-container[_ngcontent-%COMP%]{width:100%;position:relative}.experience-container[_ngcontent-%COMP%] .experience-content[_ngcontent-%COMP%]{height:100%}.experience-container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{z-index:1}.experience-container[_ngcontent-%COMP%] .mat-slide-toggle[_ngcontent-%COMP%]{height:28px}.update-note[_ngcontent-%COMP%]{color:var(--primary-contrast-1000);margin-top:24px}.default-letter-spacing[_ngcontent-%COMP%]{letter-spacing:.25px}.experience-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}.experience-container[_ngcontent-%COMP%] .experience-title[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;box-sizing:border-box}.experience-container[_ngcontent-%COMP%] .experience-content-container[_ngcontent-%COMP%]{flex:1 1 0;box-sizing:border-box}.experience-container[_ngcontent-%COMP%] .experience-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;box-sizing:border-box;padding:30px 32px 0 24px}.optimize-text[_ngcontent-%COMP%]{margin-top:20px}.grd-image[_ngcontent-%COMP%]{background:url(assets/hashed/ootb-grd-ops-experience.98c0923bd68cfd11.jpg) no-repeat center/auto 444px}.nsd-image[_ngcontent-%COMP%]{background:url(assets/hashed/ootb-nsd-ops-experience.7954f3c97e07a320.jpg) no-repeat center/auto 444px}.nwd-image[_ngcontent-%COMP%]{background:url(assets/hashed/ootb-nwd-ops-experience.bebbe17ec587266f.png) no-repeat center/auto 444px}"]})}}return De})();var Xh=s(56106),Ju=s(33328);const bu=(De,Me,w)=>({"grd-image":De,"nsd-image":Me,"nwd-image":w});function If(De,Me){if(1&De){const w=n.RV6();n.j41(0,"mat-slide-toggle",8),n.nI1(1,"translate"),n.mxI("ngModelChange",function(We){n.eBV(w);const xt=n.XpG();return n.DH7(xt.isOverlayEnabled,We)||(xt.isOverlayEnabled=We),n.Njj(We)}),n.bIt("change",function(){n.eBV(w);const We=n.XpG();return n.Njj(We.onOverlayToggle())}),n.k0s()}if(2&De){const w=n.XpG();n.R50("ngModel",w.isOverlayEnabled),n.Y8G("nvAppAnnouncer",w.isOverlayEnabled)("associatedMessage","ootb.nvidiaOverlay"),n.BMQ("aria-label",n.bMT(1,4,"ootb.nvidiaOverlay"))}}function Yh(De,Me){if(1&De&&(n.qex(0),n.nrm(1,"p",9),n.nI1(2,"translate"),n.nI1(3,"trustAsHtml"),n.bVm()),2&De){const w=n.XpG();n.R7$(),n.Y8G("ngClass","common.enabling"===w.igoHotKeyInfo?"font-sub2":"font-body2")("innerHtml",n.bMT(3,4,n.bMT(2,2,w.igoHotKeyInfo)),n.npT)}}let Qh=(()=>{class De{set selectedDriverType(w){this.isGRD=this.ootbService.isGameReadyDriver(w),this.isNSD=this.ootbService.isCreatorReadyDriver(w),this.isNWD=this.ootbService.isWorkstationDriver(w)}constructor(w,ie,We,xt,hn,On,Yn){this.loggingService=w,this.ootbService=ie,this.translateService=We,this.nvAppTelemetryUtilService=xt,this.appConfig=hn,this.overlayService=On,this.rewardsService=Yn,this.piplComplianceFailed=new n.bkB,this.noRewardsAvailable=new n.bkB,this.skipExperience=new n.bkB,this.showToggle=!1,this.destroyRef=(0,n.WQX)(n.abz),this.logger=this.loggingService.getLogger("nvapp/OotbIgoComponent")}ngOnInit(){if(this.ootbService.updateLoading(!0),!this.appConfig?.gfwsl?.server||!this.appConfig?.vrs?.server)return this.logger.error("Not able to get rewards as GFWSL or VRS URL is not available"),this.piplComplianceFailed.emit(!0),void this.initializeToggleState();this.rewardsService.getRewards().pipe((0,ii.s)(1)).subscribe(w=>{const ie=!!w?.available&&0===w.available.length;ie&&this.logger.error("Not able to get rewards as no rewards are available"),this.noRewardsAvailable.emit(ie)},w=>this.logger.error("Error occurred while getting rewards ",w)),this.initializeToggleState()}initializeToggleState(){this.initializeOverlayToggle(),(0,yu.O)(0).pipe((0,ii.s)(1)).subscribe(w=>this.showToggle=!0)}onOverlayToggle(){this.logger.info("Overlay State: "+this.isOverlayEnabled),this.nvAppTelemetryUtilService.sendSettingChangeEvent(Zr.XB,this.isOverlayEnabled.toString(),null,!0),this.toggleOverlaySub?.unsubscribe(),this.toggleOverlaySub=this.overlayService.toggleOverlay(this.isOverlayEnabled).subscribe(mt.l,w=>this.logger.error("Error occurred while toggling overlay ",w))}initializeOverlayToggle(){this.overlayService.getOverlayState().pipe((0,kl.pQ)(this.destroyRef)).subscribe(w=>{this.logger.info("Overlay state received ",w),w&&!w.feature?.overallState&&(this.logger.error("Not able to get contents for overlay feature"),this.skipExperience.emit()),w?.feature?.isPluginError?(this.logger.error("Not able to get overlay state as NvIgoUtil plugin timed out/not found"),this.skipExperience.emit()):this.handleOverlayState(w)},w=>{this.logger.error("Error occurred while fetching overlay feature",w),this.skipExperience.emit(),this.ootbService.updateLoading(!1)})}handleOverlayState(w){w?(this.isOverlayEnabled=w?.feature?.toggle?.value,this.igoHotKeyInfo=w.description===uc.FU.Enabling?uc.FU.Enabling:this.translateService.instant("ootb.igoHotKey",{hotKey:w?.feature?.hotKey}),this.ootbService.updateLoading(!1)):this.logger.error("OverlayState is not defined, some error occurred ",w)}ngOnDestroy(){this.toggleOverlaySub?.unsubscribe()}static{this.\u0275fac=function(ie){return new(ie||De)(n.rXU(Bi.J6),n.rXU(Ka.Q),n.rXU(yt.c$),n.rXU(Zr.AY),n.rXU(lr.Vk),n.rXU(Sd.s),n.rXU(gi.y))}}static{this.\u0275cmp=n.VBU({type:De,selectors:[["nv-app-ootb-igo"]],inputs:{selectedDriverType:"selectedDriverType"},outputs:{piplComplianceFailed:"piplComplianceFailed",noRewardsAvailable:"noRewardsAvailable",skipExperience:"skipExperience"},decls:12,vars:13,consts:[["fxLayout","column",1,"experience-container",3,"ngClass"],["fxLayout","row","fxLayoutAlign","space-between centre",1,"experience-title"],[1,"font-header6"],["role","switch",3,"ngModel","nvAppAnnouncer","associatedMessage","ngModelChange","change",4,"ngIf"],["fxFlex","",1,"experience-content-container"],["fxLayout","column","tabindex","0",1,"experience-content"],[1,"font-body2","default-letter-spacing","content"],[4,"ngIf"],["role","switch",3,"ngModelChange","change","ngModel","nvAppAnnouncer","associatedMessage"],[1,"igo-shortcut","default-letter-spacing","content",3,"ngClass","innerHtml"]],template:function(ie,We){1&ie&&(n.j41(0,"div",0)(1,"div",1)(2,"span",2),n.EFF(3),n.nI1(4,"translate"),n.k0s(),n.DNE(5,If,2,6,"mat-slide-toggle",3),n.k0s(),n.j41(6,"div",4)(7,"div",5)(8,"span",6),n.EFF(9),n.nI1(10,"translate"),n.k0s(),n.DNE(11,Yh,4,6,"ng-container",7),n.k0s()()()),2&ie&&(n.Y8G("ngClass",n.sMw(9,bu,We.isGRD,We.isNSD,We.isNWD)),n.R7$(3),n.SpI(" ",n.bMT(4,5,"ootb.nvidiaOverlay")," "),n.R7$(2),n.Y8G("ngIf",We.showToggle),n.R7$(4),n.SpI(" ",n.bMT(10,7,"ootb.igoCaptureFromGame")," "),n.R7$(2),n.Y8G("ngIf",We.isOverlayEnabled))},dependencies:[ps.YU,ps.bT,fd.tG,Xh.BC,Xh.vS,Su.P2,el.DJ,el.sA,el.UI,Ia.PW,Wc.L,Ju.O,yt.D9],styles:[".experience-container[_ngcontent-%COMP%]{height:100%}.experience-container[_ngcontent-%COMP%] .experience-title[_ngcontent-%COMP%], .experience-container[_ngcontent-%COMP%] .experience-content[_ngcontent-%COMP%]{width:395px;padding:30px 24px 0}.experience-container[_ngcontent-%COMP%] .experience-content-container[_ngcontent-%COMP%]{width:100%;position:relative}.experience-container[_ngcontent-%COMP%] .experience-content[_ngcontent-%COMP%]{height:100%}.experience-container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{z-index:1}.experience-container[_ngcontent-%COMP%] .mat-slide-toggle[_ngcontent-%COMP%]{height:28px}.update-note[_ngcontent-%COMP%]{color:var(--primary-contrast-1000);margin-top:24px}.default-letter-spacing[_ngcontent-%COMP%]{letter-spacing:.25px}.experience-content-container[_ngcontent-%COMP%] .igo-shortcut[_ngcontent-%COMP%]{margin:20px 0 0}.grd-image[_ngcontent-%COMP%]{background:url(assets/hashed/ootb-grd-overlay-experience.bdeebc393d8fb41d.png) no-repeat center/auto 444px}.nsd-image[_ngcontent-%COMP%]{background:url(assets/hashed/ootb-nsd-overlay-experience.213243bf6d078281.png) no-repeat center/auto 444px}.nwd-image[_ngcontent-%COMP%]{background:url(assets/hashed/ootb-nwd-overlay-experience.8524e30d36744c46.png) no-repeat center/auto 444px}"]})}}return De})(),Eu=(()=>{class De{static{this.\u0275fac=function(ie){return new(ie||De)}}static{this.\u0275mod=n.$C({type:De})}static{this.\u0275inj=n.G2t({imports:[kd.G,Bi._N,(0,Bi.BU)()]})}}return De})();n.wjB(Hc.j,function(){return[ps.bT,ps.ux,ps.e1,el.DJ,el.UI,gu,fu,_u,td,Qh]},function(){return[ps.Jj]});var Cu=s(10749);let qu=(()=>{class De extends Ma.tg{constructor(w,ie,We,xt){super(w.getLogger("ExceptionService"),ie,xt),this.exceptionInfoService=We,this.exceptionDataList=new Map,this.exceptionEvent$=new cl.B7}handleClientSideException(w,ie){this.registerExceptionLimiter(),this.timeLimiter=ie.exceptionTimeLimiter,this.exceptionEvent$.next(w)}registerExceptionLimiter(){let w;this.exceptionEvent$.pipe((0,Ta.p)(ie=>(w={message:ie.message,fileName:"",stackFrameSource:"",exceptionTrace:ie.exceptionString},!this.exceptionMatchFound(ie.name,w))),(0,Hi.M)(ie=>{this.exceptionDataList.set(ie.name,w),this.sendExceptionInfo(ie)}),(0,Cu.p)(()=>(this.logger.info("Exception rate limit timer started: ",this.timeLimiter),(0,yu.O)(this.timeLimiter)))).subscribe(()=>{this.clearExceptionDataList()})}exceptionMatchFound(w,ie){let We=!1;return!(0,wr.isNil)(this.exceptionDataList)&&!(0,wr.isEmpty)(this.exceptionDataList)&&this.exceptionDataList.has(w)&&(We=(0,wr.isEqual)(ie,this.exceptionDataList.get(w))),We}clearExceptionDataList(){this.logger.info("clearing exception data list"),this.exceptionDataList.clear()}sendExceptionInfo(w){const ie=this.injector.get(lr.Vk);this.exceptionInfoService.sendExceptionInfo(Bi.T6.NvApp,ie?.build?.version,w.name,w.message,w.exceptionString).pipe((0,ii.s)(1)).subscribe(We=>{We&&this.logger.info("Send Exception Info service called with response:",We)},We=>{this.logger.error("Error sending Exception Params with error: ",We)})}static{this.\u0275fac=function(ie){return new(ie||De)(n.KVO(Bi.J6),n.KVO(n.zZn),n.KVO(Bi.FK),n.KVO(Fl.bZ))}}static{this.\u0275prov=n.jDH({token:De,factory:De.\u0275fac})}}return De})();var wf=s(25172),Zh=s(51040);function mh(De){return De.starfleet}function Rf(De){return De.jsEvents||Vs.Op}function qp(De){return{appWindowName:Bi.Sg.Nvapp,storage:Vs.P6.IndexedDb,clientVersion:De.build.version,clientVariant:De.build.variant,...De.cloudVariables,openTracingConfig:De.otelTracerConfig,piplExemption:!0}}function Ql(){return{tvMode:!1,offDeviceLinkConfig:{title:"offDeviceLink.title",primaryButtonText:"offDeviceLink.button"}}}function vh(){return{implementationType:"no-op"}}function Jh(De){return{...De.aem}}function _h(De){return De.exception||Ma.u$}s(88058);const Ba=["SystemInfo","MessageBusRouter","DriverUpdateRecommendation","NVAccount"];let Au=(()=>{class De{static{this.\u0275fac=function(ie){return new(ie||De)}}static{this.\u0275mod=n.$C({type:De,bootstrap:[yo]})}static{this.\u0275inj=n.G2t({providers:[{provide:Di.aT,useValue:{filePath:qd.configFileName}},{provide:ll.X$,useFactory:mh,deps:[lr.Vk]},{provide:wf.ry,useValue:{mandatoryModuleNames:Ba,optionalModulesNames:[],mandatoryPluginTimeout:zs._V}},Di.LV,lr.ht,Bi.cr,{provide:Vs.i1,useFactory:Rf,deps:[lr.Vk]},{provide:Ea.Ev,useFactory:lr.OS,deps:[lr.Vk]},{provide:hs,useFactory:qp,deps:[lr.Vk]},{provide:Os.Xv,useFactory:Ql,deps:[lr.Vk]},{provide:h.a7,useClass:eu,deps:[Bi.J6],multi:!0},Vr.bZ,{provide:Os.Xv,useFactory:Ql},{provide:Zh.GJ,useFactory:vh},Zh.Oz,{provide:Ea.Kq,useFactory:Jh,deps:[lr.Vk]},{provide:Ma.sT,useFactory:_h,deps:[lr.Vk]},{provide:n.zcH,useClass:qu},{provide:Do.b,useClass:Ic}],imports:[i.Bb,Dn,dl,h.q1,Ws.Pd,Ea.XU,(0,Bi.BY)(),Bi._N.configure(qd),kd.G,ll.BF,Vs.zK,Is,Eu,Ma.Wj,Vr.Mn]})}}return De})();qd.production&&(0,n.SmG)(),i.sG().bootstrapModule(Au).catch(De=>console.error(De))},56123:(St,z,s)=>{"use strict";var i=s(8536).default;Object.defineProperty(z,Symbol.toStringTag,{value:"Module"});const n=s(352),h=s(55561);let C=!0,S=!0;function M(y,c,p){const O=y.match(c);return O&&O.length>=p&&parseInt(O[p],10)}function P(y,c,p){if(!y.RTCPeerConnection)return;const O=y.RTCPeerConnection.prototype,F=O.addEventListener;O.addEventListener=function(re,Oe){if(re!==c)return F.apply(this,arguments);const je=ot=>{const Ct=p(ot);Ct&&(Oe.handleEvent?Oe.handleEvent(Ct):Oe(Ct))};return this._eventMap=this._eventMap||{},this._eventMap[c]||(this._eventMap[c]=new Map),this._eventMap[c].set(Oe,je),F.apply(this,[re,je])};const Z=O.removeEventListener;O.removeEventListener=function(re,Oe){if(re!==c||!this._eventMap||!this._eventMap[c])return Z.apply(this,arguments);if(!this._eventMap[c].has(Oe))return Z.apply(this,arguments);const je=this._eventMap[c].get(Oe);return this._eventMap[c].delete(Oe),0===this._eventMap[c].size&&delete this._eventMap[c],0===Object.keys(this._eventMap).length&&delete this._eventMap,Z.apply(this,[re,je])},Object.defineProperty(O,"on"+c,{get(){return this["_on"+c]},set(re){this["_on"+c]&&(this.removeEventListener(c,this["_on"+c]),delete this["_on"+c]),re&&this.addEventListener(c,this["_on"+c]=re)},enumerable:!0,configurable:!0})}function x(y){return"boolean"!=typeof y?new Error("Argument type: "+typeof y+". Please use a boolean."):(C=y,y?"adapter.js logging disabled":"adapter.js logging enabled")}function A(y){return"boolean"!=typeof y?new Error("Argument type: "+typeof y+". Please use a boolean."):(S=!y,"adapter.js deprecation warnings "+(y?"disabled":"enabled"))}function g(){if("object"==typeof window){if(C)return;typeof console<"u"&&"function"==typeof console.log&&console.log.apply(console,arguments)}}function m(y,c){S&&console.warn(y+" is deprecated, please use "+c+" instead.")}function l(y){const{navigator:c}=y,p={browser:null,version:null};if(void 0===y||!y.navigator)return p.browser="Not a browser.",p;if(c.mozGetUserMedia)p.browser="firefox",p.version=M(c.userAgent,/Firefox\/(\d+)\./,1);else if(c.webkitGetUserMedia||!1===y.isSecureContext&&y.webkitRTCPeerConnection&&!y.RTCIceGatherer)p.browser="chrome",p.version=M(c.userAgent,/Chrom(e|ium)\/(\d+)\./,2);else if(c.mediaDevices&&c.userAgent.match(/Edge\/(\d+).(\d+)$/))p.browser="edge",p.version=M(c.userAgent,/Edge\/(\d+).(\d+)$/,2);else{if(!y.RTCPeerConnection||!c.userAgent.match(/AppleWebKit\/(\d+)\./))return p.browser="Not a supported browser.",p;p.browser="safari",p.version=M(c.userAgent,/AppleWebKit\/(\d+)\./,1),p.supportsUnifiedPlan=y.RTCRtpTransceiver&&"currentDirection"in y.RTCRtpTransceiver.prototype}return p}function r(y){return"[object Object]"===Object.prototype.toString.call(y)}function u(y){return r(y)?Object.keys(y).reduce(function(c,p){const O=r(y[p]),F=O?u(y[p]):y[p],Z=O&&!Object.keys(F).length;return void 0===F||Z?c:Object.assign(c,{[p]:F})},{}):y}function v(y,c,p){c&&!p.has(c.id)&&(p.set(c.id,c),Object.keys(c).forEach(O=>{O.endsWith("Id")?v(y,y.get(c[O]),p):O.endsWith("Ids")&&c[O].forEach(F=>{v(y,y.get(F),p)})}))}function E(y,c,p){const O=p?"outbound-rtp":"inbound-rtp",F=new Map;if(null===c)return F;const Z=[];return y.forEach(re=>{"track"===re.type&&re.trackIdentifier===c.id&&Z.push(re)}),Z.forEach(re=>{y.forEach(Oe=>{Oe.type===O&&Oe.trackId===re.id&&v(y,Oe,F)})}),F}const T=g;function R(y){const c=y&&y.navigator;if(!c.mediaDevices)return;const p=l(y),O=function(re){if("object"!=typeof re||re.mandatory||re.optional)return re;const Oe={};return Object.keys(re).forEach(je=>{if("require"===je||"advanced"===je||"mediaSource"===je)return;const ot="object"==typeof re[je]?re[je]:{ideal:re[je]};void 0!==ot.exact&&"number"==typeof ot.exact&&(ot.min=ot.max=ot.exact);const Ct=function(Rt,Et){return Rt?Rt+Et.charAt(0).toUpperCase()+Et.slice(1):"deviceId"===Et?"sourceId":Et};if(void 0!==ot.ideal){Oe.optional=Oe.optional||[];let Rt={};"number"==typeof ot.ideal?(Rt[Ct("min",je)]=ot.ideal,Oe.optional.push(Rt),Rt={},Rt[Ct("max",je)]=ot.ideal,Oe.optional.push(Rt)):(Rt[Ct("",je)]=ot.ideal,Oe.optional.push(Rt))}void 0!==ot.exact&&"number"!=typeof ot.exact?(Oe.mandatory=Oe.mandatory||{},Oe.mandatory[Ct("",je)]=ot.exact):["min","max"].forEach(Rt=>{void 0!==ot[Rt]&&(Oe.mandatory=Oe.mandatory||{},Oe.mandatory[Ct(Rt,je)]=ot[Rt])})}),re.advanced&&(Oe.optional=(Oe.optional||[]).concat(re.advanced)),Oe},F=function(re,Oe){if(p.version>=61)return Oe(re);if((re=JSON.parse(JSON.stringify(re)))&&"object"==typeof re.audio){const je=function(ot,Ct,Rt){Ct in ot&&!(Rt in ot)&&(ot[Rt]=ot[Ct],delete ot[Ct])};je((re=JSON.parse(JSON.stringify(re))).audio,"autoGainControl","googAutoGainControl"),je(re.audio,"noiseSuppression","googNoiseSuppression"),re.audio=O(re.audio)}if(re&&"object"==typeof re.video){let je=re.video.facingMode;je=je&&("object"==typeof je?je:{ideal:je});const ot=p.version<66;if(je&&("user"===je.exact||"environment"===je.exact||"user"===je.ideal||"environment"===je.ideal)&&(!c.mediaDevices.getSupportedConstraints||!c.mediaDevices.getSupportedConstraints().facingMode||ot)){let Ct;if(delete re.video.facingMode,"environment"===je.exact||"environment"===je.ideal?Ct=["back","rear"]:"user"!==je.exact&&"user"!==je.ideal||(Ct=["front"]),Ct)return c.mediaDevices.enumerateDevices().then(Rt=>{let Et=(Rt=Rt.filter(qt=>"videoinput"===qt.kind)).find(qt=>Ct.some(gn=>qt.label.toLowerCase().includes(gn)));return!Et&&Rt.length&&Ct.includes("back")&&(Et=Rt[Rt.length-1]),Et&&(re.video.deviceId=je.exact?{exact:Et.deviceId}:{ideal:Et.deviceId}),re.video=O(re.video),T("chrome: "+JSON.stringify(re)),Oe(re)})}re.video=O(re.video)}return T("chrome: "+JSON.stringify(re)),Oe(re)},Z=function(re){return p.version>=64?re:{name:{PermissionDeniedError:"NotAllowedError",PermissionDismissedError:"NotAllowedError",InvalidStateError:"NotAllowedError",DevicesNotFoundError:"NotFoundError",ConstraintNotSatisfiedError:"OverconstrainedError",TrackStartError:"NotReadableError",MediaDeviceFailedDueToShutdown:"NotAllowedError",MediaDeviceKillSwitchOn:"NotAllowedError",TabCaptureError:"AbortError",ScreenCaptureError:"AbortError",DeviceCaptureError:"AbortError"}[re.name]||re.name,message:re.message,constraint:re.constraint||re.constraintName,toString(){return this.name+(this.message&&": ")+this.message}}};if(c.getUserMedia=function(re,Oe,je){F(re,ot=>{c.webkitGetUserMedia(ot,Oe,Ct=>{je&&je(Z(Ct))})})}.bind(c),c.mediaDevices.getUserMedia){const re=c.mediaDevices.getUserMedia.bind(c.mediaDevices);c.mediaDevices.getUserMedia=function(Oe){return F(Oe,je=>re(je).then(ot=>{if(je.audio&&!ot.getAudioTracks().length||je.video&&!ot.getVideoTracks().length)throw ot.getTracks().forEach(Ct=>{Ct.stop()}),new DOMException("","NotFoundError");return ot},ot=>Promise.reject(Z(ot))))}}}function B(y){y.MediaStream=y.MediaStream||y.webkitMediaStream}function U(y){if("object"==typeof y&&y.RTCPeerConnection&&!("ontrack"in y.RTCPeerConnection.prototype)){Object.defineProperty(y.RTCPeerConnection.prototype,"ontrack",{get(){return this._ontrack},set(p){this._ontrack&&this.removeEventListener("track",this._ontrack),this.addEventListener("track",this._ontrack=p)},enumerable:!0,configurable:!0});const c=y.RTCPeerConnection.prototype.setRemoteDescription;y.RTCPeerConnection.prototype.setRemoteDescription=function(){return this._ontrackpoly||(this._ontrackpoly=p=>{p.stream.addEventListener("addtrack",O=>{let F;F=y.RTCPeerConnection.prototype.getReceivers?this.getReceivers().find(re=>re.track&&re.track.id===O.track.id):{track:O.track};const Z=new Event("track");Z.track=O.track,Z.receiver=F,Z.transceiver={receiver:F},Z.streams=[p.stream],this.dispatchEvent(Z)}),p.stream.getTracks().forEach(O=>{let F;F=y.RTCPeerConnection.prototype.getReceivers?this.getReceivers().find(re=>re.track&&re.track.id===O.id):{track:O};const Z=new Event("track");Z.track=O,Z.receiver=F,Z.transceiver={receiver:F},Z.streams=[p.stream],this.dispatchEvent(Z)})},this.addEventListener("addstream",this._ontrackpoly)),c.apply(this,arguments)}}else P(y,"track",c=>(c.transceiver||Object.defineProperty(c,"transceiver",{value:{receiver:c.receiver}}),c))}function Y(y){if("object"==typeof y&&y.RTCPeerConnection&&!("getSenders"in y.RTCPeerConnection.prototype)&&"createDTMFSender"in y.RTCPeerConnection.prototype){const c=function(F,Z){return{track:Z,get dtmf(){return void 0===this._dtmf&&(this._dtmf="audio"===Z.kind?F.createDTMFSender(Z):null),this._dtmf},_pc:F}};if(!y.RTCPeerConnection.prototype.getSenders){y.RTCPeerConnection.prototype.getSenders=function(){return this._senders=this._senders||[],this._senders.slice()};const F=y.RTCPeerConnection.prototype.addTrack;y.RTCPeerConnection.prototype.addTrack=function(re,Oe){let je=F.apply(this,arguments);return je||(je=c(this,re),this._senders.push(je)),je};const Z=y.RTCPeerConnection.prototype.removeTrack;y.RTCPeerConnection.prototype.removeTrack=function(re){Z.apply(this,arguments);const Oe=this._senders.indexOf(re);-1!==Oe&&this._senders.splice(Oe,1)}}const p=y.RTCPeerConnection.prototype.addStream;y.RTCPeerConnection.prototype.addStream=function(F){this._senders=this._senders||[],p.apply(this,[F]),F.getTracks().forEach(Z=>{this._senders.push(c(this,Z))})};const O=y.RTCPeerConnection.prototype.removeStream;y.RTCPeerConnection.prototype.removeStream=function(F){this._senders=this._senders||[],O.apply(this,[F]),F.getTracks().forEach(Z=>{const re=this._senders.find(Oe=>Oe.track===Z);re&&this._senders.splice(this._senders.indexOf(re),1)})}}else if("object"==typeof y&&y.RTCPeerConnection&&"getSenders"in y.RTCPeerConnection.prototype&&"createDTMFSender"in y.RTCPeerConnection.prototype&&y.RTCRtpSender&&!("dtmf"in y.RTCRtpSender.prototype)){const c=y.RTCPeerConnection.prototype.getSenders;y.RTCPeerConnection.prototype.getSenders=function(){const p=c.apply(this,[]);return p.forEach(O=>O._pc=this),p},Object.defineProperty(y.RTCRtpSender.prototype,"dtmf",{get(){return void 0===this._dtmf&&(this._dtmf="audio"===this.track.kind?this._pc.createDTMFSender(this.track):null),this._dtmf}})}}function ae(y){if(!y.RTCPeerConnection)return;const c=y.RTCPeerConnection.prototype.getStats;y.RTCPeerConnection.prototype.getStats=function(){const[p,O,F]=arguments;if(arguments.length>0&&"function"==typeof p)return c.apply(this,arguments);if(0===c.length&&(0===arguments.length||"function"!=typeof p))return c.apply(this,[]);const Z=function(Oe){const je={};return Oe.result().forEach(ot=>{const Ct={id:ot.id,timestamp:ot.timestamp,type:{localcandidate:"local-candidate",remotecandidate:"remote-candidate"}[ot.type]||ot.type};ot.names().forEach(Rt=>{Ct[Rt]=ot.stat(Rt)}),je[Ct.id]=Ct}),je},re=function(Oe){return new Map(Object.keys(Oe).map(je=>[je,Oe[je]]))};return arguments.length>=2?c.apply(this,[function(je){O(re(Z(je)))},p]):new Promise((Oe,je)=>{c.apply(this,[function(ot){Oe(re(Z(ot)))},je])}).then(O,F)}}function G(y){if(!("object"==typeof y&&y.RTCPeerConnection&&y.RTCRtpSender&&y.RTCRtpReceiver))return;if(!("getStats"in y.RTCRtpSender.prototype)){const p=y.RTCPeerConnection.prototype.getSenders;p&&(y.RTCPeerConnection.prototype.getSenders=function(){const F=p.apply(this,[]);return F.forEach(Z=>Z._pc=this),F});const O=y.RTCPeerConnection.prototype.addTrack;O&&(y.RTCPeerConnection.prototype.addTrack=function(){const F=O.apply(this,arguments);return F._pc=this,F}),y.RTCRtpSender.prototype.getStats=function(){const F=this;return this._pc.getStats().then(Z=>E(Z,F.track,!0))}}if(!("getStats"in y.RTCRtpReceiver.prototype)){const p=y.RTCPeerConnection.prototype.getReceivers;p&&(y.RTCPeerConnection.prototype.getReceivers=function(){const O=p.apply(this,[]);return O.forEach(F=>F._pc=this),O}),P(y,"track",O=>(O.receiver._pc=O.srcElement,O)),y.RTCRtpReceiver.prototype.getStats=function(){const O=this;return this._pc.getStats().then(F=>E(F,O.track,!1))}}if(!("getStats"in y.RTCRtpSender.prototype)||!("getStats"in y.RTCRtpReceiver.prototype))return;const c=y.RTCPeerConnection.prototype.getStats;y.RTCPeerConnection.prototype.getStats=function(){if(arguments.length>0&&arguments[0]instanceof y.MediaStreamTrack){const p=arguments[0];let O,F,Z;return this.getSenders().forEach(re=>{re.track===p&&(O?Z=!0:O=re)}),this.getReceivers().forEach(re=>(re.track===p&&(F?Z=!0:F=re),re.track===p)),Z||O&&F?Promise.reject(new DOMException("There are more than one sender or receiver for the track.","InvalidAccessError")):O?O.getStats():F?F.getStats():Promise.reject(new DOMException("There is no sender or receiver for the track.","InvalidAccessError"))}return c.apply(this,arguments)}}function k(y){y.RTCPeerConnection.prototype.getLocalStreams=function(){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},Object.keys(this._shimmedLocalStreams).map(Z=>this._shimmedLocalStreams[Z][0])};const c=y.RTCPeerConnection.prototype.addTrack;y.RTCPeerConnection.prototype.addTrack=function(Z,re){if(!re)return c.apply(this,arguments);this._shimmedLocalStreams=this._shimmedLocalStreams||{};const Oe=c.apply(this,arguments);return this._shimmedLocalStreams[re.id]?-1===this._shimmedLocalStreams[re.id].indexOf(Oe)&&this._shimmedLocalStreams[re.id].push(Oe):this._shimmedLocalStreams[re.id]=[re,Oe],Oe};const p=y.RTCPeerConnection.prototype.addStream;y.RTCPeerConnection.prototype.addStream=function(Z){this._shimmedLocalStreams=this._shimmedLocalStreams||{},Z.getTracks().forEach(je=>{if(this.getSenders().find(ot=>ot.track===je))throw new DOMException("Track already exists.","InvalidAccessError")});const re=this.getSenders();p.apply(this,arguments);const Oe=this.getSenders().filter(je=>-1===re.indexOf(je));this._shimmedLocalStreams[Z.id]=[Z].concat(Oe)};const O=y.RTCPeerConnection.prototype.removeStream;y.RTCPeerConnection.prototype.removeStream=function(Z){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},delete this._shimmedLocalStreams[Z.id],O.apply(this,arguments)};const F=y.RTCPeerConnection.prototype.removeTrack;y.RTCPeerConnection.prototype.removeTrack=function(Z){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},Z&&Object.keys(this._shimmedLocalStreams).forEach(re=>{const Oe=this._shimmedLocalStreams[re].indexOf(Z);-1!==Oe&&this._shimmedLocalStreams[re].splice(Oe,1),1===this._shimmedLocalStreams[re].length&&delete this._shimmedLocalStreams[re]}),F.apply(this,arguments)}}function X(y){if(!y.RTCPeerConnection)return;const c=l(y);if(y.RTCPeerConnection.prototype.addTrack&&c.version>=65)return k(y);const p=y.RTCPeerConnection.prototype.getLocalStreams;y.RTCPeerConnection.prototype.getLocalStreams=function(){const je=p.apply(this);return this._reverseStreams=this._reverseStreams||{},je.map(ot=>this._reverseStreams[ot.id])};const O=y.RTCPeerConnection.prototype.addStream;y.RTCPeerConnection.prototype.addStream=function(je){if(this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{},je.getTracks().forEach(ot=>{if(this.getSenders().find(Ct=>Ct.track===ot))throw new DOMException("Track already exists.","InvalidAccessError")}),!this._reverseStreams[je.id]){const ot=new y.MediaStream(je.getTracks());this._streams[je.id]=ot,this._reverseStreams[ot.id]=je,je=ot}O.apply(this,[je])};const F=y.RTCPeerConnection.prototype.removeStream;function Z(je,ot){let Ct=ot.sdp;return Object.keys(je._reverseStreams||[]).forEach(Rt=>{const Et=je._reverseStreams[Rt];Ct=Ct.replace(new RegExp(je._streams[Et.id].id,"g"),Et.id)}),new RTCSessionDescription({type:ot.type,sdp:Ct})}y.RTCPeerConnection.prototype.removeStream=function(je){this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{},F.apply(this,[this._streams[je.id]||je]),delete this._reverseStreams[this._streams[je.id]?this._streams[je.id].id:je.id],delete this._streams[je.id]},y.RTCPeerConnection.prototype.addTrack=function(je,ot){if("closed"===this.signalingState)throw new DOMException("The RTCPeerConnection's signalingState is 'closed'.","InvalidStateError");const Ct=[].slice.call(arguments,1);if(1!==Ct.length||!Ct[0].getTracks().find(Et=>Et===je))throw new DOMException("The adapter.js addTrack polyfill only supports a single stream which is associated with the specified track.","NotSupportedError");if(this.getSenders().find(Et=>Et.track===je))throw new DOMException("Track already exists.","InvalidAccessError");this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{};const Rt=this._streams[ot.id];if(Rt)Rt.addTrack(je),Promise.resolve().then(()=>{this.dispatchEvent(new Event("negotiationneeded"))});else{const Et=new y.MediaStream([je]);this._streams[ot.id]=Et,this._reverseStreams[Et.id]=ot,this.addStream(Et)}return this.getSenders().find(Et=>Et.track===je)},["createOffer","createAnswer"].forEach(function(je){const ot=y.RTCPeerConnection.prototype[je],Ct={[je](){const Rt=arguments;return arguments.length&&"function"==typeof arguments[0]?ot.apply(this,[Et=>{const qt=Z(this,Et);Rt[0].apply(null,[qt])},Et=>{Rt[1]&&Rt[1].apply(null,Et)},arguments[2]]):ot.apply(this,arguments).then(Et=>Z(this,Et))}};y.RTCPeerConnection.prototype[je]=Ct[je]});const re=y.RTCPeerConnection.prototype.setLocalDescription;y.RTCPeerConnection.prototype.setLocalDescription=function(){return arguments.length&&arguments[0].type?(arguments[0]=function(je,ot){let Ct=ot.sdp;return Object.keys(je._reverseStreams||[]).forEach(Rt=>{const Et=je._reverseStreams[Rt],qt=je._streams[Et.id];Ct=Ct.replace(new RegExp(Et.id,"g"),qt.id)}),new RTCSessionDescription({type:ot.type,sdp:Ct})}(this,arguments[0]),re.apply(this,arguments)):re.apply(this,arguments)};const Oe=Object.getOwnPropertyDescriptor(y.RTCPeerConnection.prototype,"localDescription");Object.defineProperty(y.RTCPeerConnection.prototype,"localDescription",{get(){const je=Oe.get.apply(this);return""===je.type?je:Z(this,je)}}),y.RTCPeerConnection.prototype.removeTrack=function(je){if("closed"===this.signalingState)throw new DOMException("The RTCPeerConnection's signalingState is 'closed'.","InvalidStateError");if(!je._pc)throw new DOMException("Argument 1 of RTCPeerConnection.removeTrack does not implement interface RTCRtpSender.","TypeError");if(je._pc!==this)throw new DOMException("Sender was not created by this connection.","InvalidAccessError");let ot;this._streams=this._streams||{},Object.keys(this._streams).forEach(Ct=>{this._streams[Ct].getTracks().find(Rt=>je.track===Rt)&&(ot=this._streams[Ct])}),ot&&(1===ot.getTracks().length?this.removeStream(this._reverseStreams[ot.id]):ot.removeTrack(je.track),this.dispatchEvent(new Event("negotiationneeded")))}}function q(y){const c=l(y);if(!y.RTCPeerConnection&&y.webkitRTCPeerConnection&&(y.RTCPeerConnection=y.webkitRTCPeerConnection),!y.RTCPeerConnection)return;const p=0===y.RTCPeerConnection.prototype.addIceCandidate.length;c.version<53&&["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach(function(F){const Z=y.RTCPeerConnection.prototype[F],re={[F](){return arguments[0]=new("addIceCandidate"===F?y.RTCIceCandidate:y.RTCSessionDescription)(arguments[0]),Z.apply(this,arguments)}};y.RTCPeerConnection.prototype[F]=re[F]});const O=y.RTCPeerConnection.prototype.addIceCandidate;y.RTCPeerConnection.prototype.addIceCandidate=function(){return p||arguments[0]?c.version<78&&arguments[0]&&""===arguments[0].candidate?Promise.resolve():O.apply(this,arguments):(arguments[1]&&arguments[1].apply(null),Promise.resolve())}}function Q(y){const c=l(y);P(y,"negotiationneeded",p=>{const O=p.target;if(!(c.version<72||O.getConfiguration&&"plan-b"===O.getConfiguration().sdpSemantics)||"stable"===O.signalingState)return p})}const ce=Object.freeze(Object.defineProperty({__proto__:null,fixNegotiationNeeded:Q,shimAddTrackRemoveTrack:X,shimAddTrackRemoveTrackWithNative:k,shimGetDisplayMedia:function(y,c){y.navigator.mediaDevices&&"getDisplayMedia"in y.navigator.mediaDevices||y.navigator.mediaDevices&&("function"==typeof c?y.navigator.mediaDevices.getDisplayMedia=function(p){return c(p).then(O=>{const F=p.video&&p.video.width,Z=p.video&&p.video.height;return p.video={mandatory:{chromeMediaSource:"desktop",chromeMediaSourceId:O,maxFrameRate:p.video&&p.video.frameRate||3}},F&&(p.video.mandatory.maxWidth=F),Z&&(p.video.mandatory.maxHeight=Z),y.navigator.mediaDevices.getUserMedia(p)})}:console.error("shimGetDisplayMedia: getSourceId argument is not a function"))},shimGetSendersWithDtmf:Y,shimGetStats:ae,shimGetUserMedia:R,shimMediaStream:B,shimOnTrack:U,shimPeerConnection:q,shimSenderReceiverGetStats:G},Symbol.toStringTag,{value:"Module"}));function te(y){return y&&y.__esModule&&Object.prototype.hasOwnProperty.call(y,"default")?y.default:y}var Ee,it,Fe,Qe={exports:{}};function ct(){return Ee||(Ee=1,y=Qe,(c={generateIdentifier:function(){return Math.random().toString(36).substr(2,10)}}).localCName=c.generateIdentifier(),c.splitLines=function(p){return p.trim().split("\n").map(function(O){return O.trim()})},c.splitSections=function(p){return p.split("\nm=").map(function(O,F){return(F>0?"m="+O:O).trim()+"\r\n"})},c.getDescription=function(p){var O=c.splitSections(p);return O&&O[0]},c.getMediaSections=function(p){var O=c.splitSections(p);return O.shift(),O},c.matchPrefix=function(p,O){return c.splitLines(p).filter(function(F){return 0===F.indexOf(O)})},c.parseCandidate=function(p){for(var O,F={foundation:(O=0===p.indexOf("a=candidate:")?p.substring(12).split(" "):p.substring(10).split(" "))[0],component:parseInt(O[1],10),protocol:O[2].toLowerCase(),priority:parseInt(O[3],10),ip:O[4],address:O[4],port:parseInt(O[5],10),type:O[7]},Z=8;Z<O.length;Z+=2)switch(O[Z]){case"raddr":F.relatedAddress=O[Z+1];break;case"rport":F.relatedPort=parseInt(O[Z+1],10);break;case"tcptype":F.tcpType=O[Z+1];break;case"ufrag":F.ufrag=O[Z+1],F.usernameFragment=O[Z+1];break;default:F[O[Z]]=O[Z+1]}return F},c.writeCandidate=function(p){var O=[];O.push(p.foundation),O.push(p.component),O.push(p.protocol.toUpperCase()),O.push(p.priority),O.push(p.address||p.ip),O.push(p.port);var F=p.type;return O.push("typ"),O.push(F),"host"!==F&&p.relatedAddress&&p.relatedPort&&(O.push("raddr"),O.push(p.relatedAddress),O.push("rport"),O.push(p.relatedPort)),p.tcpType&&"tcp"===p.protocol.toLowerCase()&&(O.push("tcptype"),O.push(p.tcpType)),(p.usernameFragment||p.ufrag)&&(O.push("ufrag"),O.push(p.usernameFragment||p.ufrag)),"candidate:"+O.join(" ")},c.parseIceOptions=function(p){return p.substr(14).split(" ")},c.parseRtpMap=function(p){var O=p.substr(9).split(" "),F={payloadType:parseInt(O.shift(),10)};return O=O[0].split("/"),F.name=O[0],F.clockRate=parseInt(O[1],10),F.channels=3===O.length?parseInt(O[2],10):1,F.numChannels=F.channels,F},c.writeRtpMap=function(p){var O=p.payloadType;void 0!==p.preferredPayloadType&&(O=p.preferredPayloadType);var F=p.channels||p.numChannels||1;return"a=rtpmap:"+O+" "+p.name+"/"+p.clockRate+(1!==F?"/"+F:"")+"\r\n"},c.parseExtmap=function(p){var O=p.substr(9).split(" ");return{id:parseInt(O[0],10),direction:O[0].indexOf("/")>0?O[0].split("/")[1]:"sendrecv",uri:O[1]}},c.writeExtmap=function(p){return"a=extmap:"+(p.id||p.preferredId)+(p.direction&&"sendrecv"!==p.direction?"/"+p.direction:"")+" "+p.uri+"\r\n"},c.parseFmtp=function(p){for(var O,F={},Z=p.substr(p.indexOf(" ")+1).split(";"),re=0;re<Z.length;re++)F[(O=Z[re].trim().split("="))[0].trim()]=O[1];return F},c.writeFmtp=function(p){var O="",F=p.payloadType;if(void 0!==p.preferredPayloadType&&(F=p.preferredPayloadType),p.parameters&&Object.keys(p.parameters).length){var Z=[];Object.keys(p.parameters).forEach(function(re){Z.push(p.parameters[re]?re+"="+p.parameters[re]:re)}),O+="a=fmtp:"+F+" "+Z.join(";")+"\r\n"}return O},c.parseRtcpFb=function(p){var O=p.substr(p.indexOf(" ")+1).split(" ");return{type:O.shift(),parameter:O.join(" ")}},c.writeRtcpFb=function(p){var O="",F=p.payloadType;return void 0!==p.preferredPayloadType&&(F=p.preferredPayloadType),p.rtcpFeedback&&p.rtcpFeedback.length&&p.rtcpFeedback.forEach(function(Z){O+="a=rtcp-fb:"+F+" "+Z.type+(Z.parameter&&Z.parameter.length?" "+Z.parameter:"")+"\r\n"}),O},c.parseSsrcMedia=function(p){var O=p.indexOf(" "),F={ssrc:parseInt(p.substr(7,O-7),10)},Z=p.indexOf(":",O);return Z>-1?(F.attribute=p.substr(O+1,Z-O-1),F.value=p.substr(Z+1)):F.attribute=p.substr(O+1),F},c.parseSsrcGroup=function(p){var O=p.substr(13).split(" ");return{semantics:O.shift(),ssrcs:O.map(function(F){return parseInt(F,10)})}},c.getMid=function(p){var O=c.matchPrefix(p,"a=mid:")[0];if(O)return O.substr(6)},c.parseFingerprint=function(p){var O=p.substr(14).split(" ");return{algorithm:O[0].toLowerCase(),value:O[1]}},c.getDtlsParameters=function(p,O){return{role:"auto",fingerprints:c.matchPrefix(p+O,"a=fingerprint:").map(c.parseFingerprint)}},c.writeDtlsParameters=function(p,O){var F="a=setup:"+O+"\r\n";return p.fingerprints.forEach(function(Z){F+="a=fingerprint:"+Z.algorithm+" "+Z.value+"\r\n"}),F},c.parseCryptoLine=function(p){var O=p.substr(9).split(" ");return{tag:parseInt(O[0],10),cryptoSuite:O[1],keyParams:O[2],sessionParams:O.slice(3)}},c.writeCryptoLine=function(p){return"a=crypto:"+p.tag+" "+p.cryptoSuite+" "+("object"==typeof p.keyParams?c.writeCryptoKeyParams(p.keyParams):p.keyParams)+(p.sessionParams?" "+p.sessionParams.join(" "):"")+"\r\n"},c.parseCryptoKeyParams=function(p){if(0!==p.indexOf("inline:"))return null;var O=p.substr(7).split("|");return{keyMethod:"inline",keySalt:O[0],lifeTime:O[1],mkiValue:O[2]?O[2].split(":")[0]:void 0,mkiLength:O[2]?O[2].split(":")[1]:void 0}},c.writeCryptoKeyParams=function(p){return p.keyMethod+":"+p.keySalt+(p.lifeTime?"|"+p.lifeTime:"")+(p.mkiValue&&p.mkiLength?"|"+p.mkiValue+":"+p.mkiLength:"")},c.getCryptoParameters=function(p,O){return c.matchPrefix(p+O,"a=crypto:").map(c.parseCryptoLine)},c.getIceParameters=function(p,O){var F=c.matchPrefix(p+O,"a=ice-ufrag:")[0],Z=c.matchPrefix(p+O,"a=ice-pwd:")[0];return F&&Z?{usernameFragment:F.substr(12),password:Z.substr(10)}:null},c.writeIceParameters=function(p){return"a=ice-ufrag:"+p.usernameFragment+"\r\na=ice-pwd:"+p.password+"\r\n"},c.parseRtpParameters=function(p){for(var O={codecs:[],headerExtensions:[],fecMechanisms:[],rtcp:[]},F=c.splitLines(p)[0].split(" "),Z=3;Z<F.length;Z++){var re=F[Z],Oe=c.matchPrefix(p,"a=rtpmap:"+re+" ")[0];if(Oe){var je=c.parseRtpMap(Oe),ot=c.matchPrefix(p,"a=fmtp:"+re+" ");switch(je.parameters=ot.length?c.parseFmtp(ot[0]):{},je.rtcpFeedback=c.matchPrefix(p,"a=rtcp-fb:"+re+" ").map(c.parseRtcpFb),O.codecs.push(je),je.name.toUpperCase()){case"RED":case"ULPFEC":O.fecMechanisms.push(je.name.toUpperCase())}}}return c.matchPrefix(p,"a=extmap:").forEach(function(Ct){O.headerExtensions.push(c.parseExtmap(Ct))}),O},c.writeRtpDescription=function(p,O){var F="";F+="m="+p+" ",F+=O.codecs.length>0?"9":"0",F+=" UDP/TLS/RTP/SAVPF ",F+=O.codecs.map(function(re){return void 0!==re.preferredPayloadType?re.preferredPayloadType:re.payloadType}).join(" ")+"\r\n",F+="c=IN IP4 0.0.0.0\r\n",F+="a=rtcp:9 IN IP4 0.0.0.0\r\n",O.codecs.forEach(function(re){F+=c.writeRtpMap(re),F+=c.writeFmtp(re),F+=c.writeRtcpFb(re)});var Z=0;return O.codecs.forEach(function(re){re.maxptime>Z&&(Z=re.maxptime)}),Z>0&&(F+="a=maxptime:"+Z+"\r\n"),F+="a=rtcp-mux\r\n",O.headerExtensions&&O.headerExtensions.forEach(function(re){F+=c.writeExtmap(re)}),F},c.parseRtpEncodingParameters=function(p){var O,F=[],Z=c.parseRtpParameters(p),re=-1!==Z.fecMechanisms.indexOf("RED"),Oe=-1!==Z.fecMechanisms.indexOf("ULPFEC"),je=c.matchPrefix(p,"a=ssrc:").map(function(Et){return c.parseSsrcMedia(Et)}).filter(function(Et){return"cname"===Et.attribute}),ot=je.length>0&&je[0].ssrc,Ct=c.matchPrefix(p,"a=ssrc-group:FID").map(function(Et){return Et.substr(17).split(" ").map(function(qt){return parseInt(qt,10)})});Ct.length>0&&Ct[0].length>1&&Ct[0][0]===ot&&(O=Ct[0][1]),Z.codecs.forEach(function(Et){if("RTX"===Et.name.toUpperCase()&&Et.parameters.apt){var qt={ssrc:ot,codecPayloadType:parseInt(Et.parameters.apt,10)};ot&&O&&(qt.rtx={ssrc:O}),F.push(qt),re&&((qt=JSON.parse(JSON.stringify(qt))).fec={ssrc:ot,mechanism:Oe?"red+ulpfec":"red"},F.push(qt))}}),0===F.length&&ot&&F.push({ssrc:ot});var Rt=c.matchPrefix(p,"b=");return Rt.length&&(Rt=0===Rt[0].indexOf("b=TIAS:")?parseInt(Rt[0].substr(7),10):0===Rt[0].indexOf("b=AS:")?1e3*parseInt(Rt[0].substr(5),10)*.95-16e3:void 0,F.forEach(function(Et){Et.maxBitrate=Rt})),F},c.parseRtcpParameters=function(p){var O={},F=c.matchPrefix(p,"a=ssrc:").map(function(Oe){return c.parseSsrcMedia(Oe)}).filter(function(Oe){return"cname"===Oe.attribute})[0];F&&(O.cname=F.value,O.ssrc=F.ssrc);var Z=c.matchPrefix(p,"a=rtcp-rsize");O.reducedSize=Z.length>0,O.compound=0===Z.length;var re=c.matchPrefix(p,"a=rtcp-mux");return O.mux=re.length>0,O},c.parseMsid=function(p){var O,F=c.matchPrefix(p,"a=msid:");if(1===F.length)return{stream:(O=F[0].substr(7).split(" "))[0],track:O[1]};var Z=c.matchPrefix(p,"a=ssrc:").map(function(re){return c.parseSsrcMedia(re)}).filter(function(re){return"msid"===re.attribute});return Z.length>0?{stream:(O=Z[0].value.split(" "))[0],track:O[1]}:void 0},c.parseSctpDescription=function(p){var O,F=c.parseMLine(p),Z=c.matchPrefix(p,"a=max-message-size:");Z.length>0&&(O=parseInt(Z[0].substr(19),10)),isNaN(O)&&(O=65536);var re=c.matchPrefix(p,"a=sctp-port:");if(re.length>0)return{port:parseInt(re[0].substr(12),10),protocol:F.fmt,maxMessageSize:O};if(c.matchPrefix(p,"a=sctpmap:").length>0){var Oe=c.matchPrefix(p,"a=sctpmap:")[0].substr(10).split(" ");return{port:parseInt(Oe[0],10),protocol:Oe[1],maxMessageSize:O}}},c.writeSctpDescription=function(p,O){var F=[];return F="DTLS/SCTP"!==p.protocol?["m="+p.kind+" 9 "+p.protocol+" "+O.protocol+"\r\n","c=IN IP4 0.0.0.0\r\n","a=sctp-port:"+O.port+"\r\n"]:["m="+p.kind+" 9 "+p.protocol+" "+O.port+"\r\n","c=IN IP4 0.0.0.0\r\n","a=sctpmap:"+O.port+" "+O.protocol+" 65535\r\n"],void 0!==O.maxMessageSize&&F.push("a=max-message-size:"+O.maxMessageSize+"\r\n"),F.join("")},c.generateSessionId=function(){return Math.random().toString().substr(2,21)},c.writeSessionBoilerplate=function(p,O,F){var Z=void 0!==O?O:2;return"v=0\r\no="+(F||"thisisadapterortc")+" "+(p||c.generateSessionId())+" "+Z+" IN IP4 127.0.0.1\r\ns=-\r\nt=0 0\r\n"},c.writeMediaSection=function(p,O,F,Z){var re=c.writeRtpDescription(p.kind,O);if(re+=c.writeIceParameters(p.iceGatherer.getLocalParameters()),re+=c.writeDtlsParameters(p.dtlsTransport.getLocalParameters(),"offer"===F?"actpass":"active"),re+="a=mid:"+p.mid+"\r\n",re+=p.direction?"a="+p.direction+"\r\n":p.rtpSender&&p.rtpReceiver?"a=sendrecv\r\n":p.rtpSender?"a=sendonly\r\n":p.rtpReceiver?"a=recvonly\r\n":"a=inactive\r\n",p.rtpSender){var Oe="msid:"+Z.id+" "+p.rtpSender.track.id+"\r\n";re+="a="+Oe,re+="a=ssrc:"+p.sendEncodingParameters[0].ssrc+" "+Oe,p.sendEncodingParameters[0].rtx&&(re+="a=ssrc:"+p.sendEncodingParameters[0].rtx.ssrc+" "+Oe,re+="a=ssrc-group:FID "+p.sendEncodingParameters[0].ssrc+" "+p.sendEncodingParameters[0].rtx.ssrc+"\r\n")}return re+="a=ssrc:"+p.sendEncodingParameters[0].ssrc+" cname:"+c.localCName+"\r\n",p.rtpSender&&p.sendEncodingParameters[0].rtx&&(re+="a=ssrc:"+p.sendEncodingParameters[0].rtx.ssrc+" cname:"+c.localCName+"\r\n"),re},c.getDirection=function(p,O){for(var F=c.splitLines(p),Z=0;Z<F.length;Z++)switch(F[Z]){case"a=sendrecv":case"a=sendonly":case"a=recvonly":case"a=inactive":return F[Z].substr(2)}return O?c.getDirection(O):"sendrecv"},c.getKind=function(p){return c.splitLines(p)[0].split(" ")[0].substr(2)},c.isRejected=function(p){return"0"===p.split(" ",2)[1]},c.parseMLine=function(p){var O=c.splitLines(p)[0].substr(2).split(" ");return{kind:O[0],port:parseInt(O[1],10),protocol:O[2],fmt:O.slice(3).join(" ")}},c.parseOLine=function(p){var O=c.matchPrefix(p,"o=")[0].substr(2).split(" ");return{username:O[0],sessionId:O[1],sessionVersion:parseInt(O[2],10),netType:O[3],addressType:O[4],address:O[5]}},c.isValidSDP=function(p){if("string"!=typeof p||0===p.length)return!1;for(var O=c.splitLines(p),F=0;F<O.length;F++)if(O[F].length<2||"="!==O[F].charAt(1))return!1;return!0},y.exports=c),Qe.exports;var y,c}var Ge=function(){if(Fe)return it;Fe=1;var y=ct();function c(re,Oe,je,ot,Ct){var Rt=y.writeRtpDescription(re.kind,Oe);if(Rt+=y.writeIceParameters(re.iceGatherer.getLocalParameters()),Rt+=y.writeDtlsParameters(re.dtlsTransport.getLocalParameters(),"offer"===je?"actpass":Ct||"active"),Rt+="a=mid:"+re.mid+"\r\n",Rt+=re.rtpSender&&re.rtpReceiver?"a=sendrecv\r\n":re.rtpSender?"a=sendonly\r\n":re.rtpReceiver?"a=recvonly\r\n":"a=inactive\r\n",re.rtpSender){var Et=re.rtpSender._initialTrackId||re.rtpSender.track.id;re.rtpSender._initialTrackId=Et;var qt="msid:"+(ot?ot.id:"-")+" "+Et+"\r\n";Rt+="a="+qt,Rt+="a=ssrc:"+re.sendEncodingParameters[0].ssrc+" "+qt,re.sendEncodingParameters[0].rtx&&(Rt+="a=ssrc:"+re.sendEncodingParameters[0].rtx.ssrc+" "+qt,Rt+="a=ssrc-group:FID "+re.sendEncodingParameters[0].ssrc+" "+re.sendEncodingParameters[0].rtx.ssrc+"\r\n")}return Rt+="a=ssrc:"+re.sendEncodingParameters[0].ssrc+" cname:"+y.localCName+"\r\n",re.rtpSender&&re.sendEncodingParameters[0].rtx&&(Rt+="a=ssrc:"+re.sendEncodingParameters[0].rtx.ssrc+" cname:"+y.localCName+"\r\n"),Rt}function p(re,Oe){var je={codecs:[],headerExtensions:[],fecMechanisms:[]},ot=function(Rt,Et){Rt=parseInt(Rt,10);for(var qt=0;qt<Et.length;qt++)if(Et[qt].payloadType===Rt||Et[qt].preferredPayloadType===Rt)return Et[qt]},Ct=function(Rt,Et,qt,gn){var tn=ot(Rt.parameters.apt,qt),Pn=ot(Et.parameters.apt,gn);return tn&&Pn&&tn.name.toLowerCase()===Pn.name.toLowerCase()};return re.codecs.forEach(function(Rt){for(var Et=0;Et<Oe.codecs.length;Et++){var qt=Oe.codecs[Et];if(Rt.name.toLowerCase()===qt.name.toLowerCase()&&Rt.clockRate===qt.clockRate){if("rtx"===Rt.name.toLowerCase()&&Rt.parameters&&qt.parameters.apt&&!Ct(Rt,qt,re.codecs,Oe.codecs))continue;(qt=JSON.parse(JSON.stringify(qt))).numChannels=Math.min(Rt.numChannels,qt.numChannels),je.codecs.push(qt),qt.rtcpFeedback=qt.rtcpFeedback.filter(function(gn){for(var tn=0;tn<Rt.rtcpFeedback.length;tn++)if(Rt.rtcpFeedback[tn].type===gn.type&&Rt.rtcpFeedback[tn].parameter===gn.parameter)return!0;return!1});break}}}),re.headerExtensions.forEach(function(Rt){for(var Et=0;Et<Oe.headerExtensions.length;Et++){var qt=Oe.headerExtensions[Et];if(Rt.uri===qt.uri){je.headerExtensions.push(qt);break}}}),je}function O(re,Oe,je){return-1!=={offer:{setLocalDescription:["stable","have-local-offer"],setRemoteDescription:["stable","have-remote-offer"]},answer:{setLocalDescription:["have-remote-offer","have-local-pranswer"],setRemoteDescription:["have-local-offer","have-remote-pranswer"]}}[Oe][re].indexOf(je)}function F(re,Oe){var je=re.getRemoteCandidates().find(function(ot){return Oe.foundation===ot.foundation&&Oe.ip===ot.ip&&Oe.port===ot.port&&Oe.priority===ot.priority&&Oe.protocol===ot.protocol&&Oe.type===ot.type});return je||re.addRemoteCandidate(Oe),!je}function Z(re,Oe){var je=new Error(Oe);return je.name=re,je.code={NotSupportedError:9,InvalidStateError:11,InvalidAccessError:15,TypeError:void 0,OperationError:void 0}[re],je}return it=function(re,Oe){function je(Et,qt){qt.addTrack(Et),qt.dispatchEvent(new re.MediaStreamTrackEvent("addtrack",{track:Et}))}function ot(Et,qt,gn,tn){var Pn=new Event("track");Pn.track=qt,Pn.receiver=gn,Pn.transceiver={receiver:gn},Pn.streams=tn,re.setTimeout(function(){Et._dispatchEvent("track",Pn)})}var Ct=function(Et){var Pn,Bn,ei,qt=this,gn=document.createDocumentFragment();if(["addEventListener","removeEventListener","dispatchEvent"].forEach(function(Pn){qt[Pn]=gn[Pn].bind(gn)}),this.canTrickleIceCandidates=null,this.needNegotiation=!1,this.localStreams=[],this.remoteStreams=[],this._localDescription=null,this._remoteDescription=null,this.signalingState="stable",this.iceConnectionState="new",this.connectionState="new",this.iceGatheringState="new",Et=JSON.parse(JSON.stringify(Et||{})),this.usingBundle="max-bundle"===Et.bundlePolicy,"negotiate"===Et.rtcpMuxPolicy)throw Z("NotSupportedError","rtcpMuxPolicy 'negotiate' is not supported");switch(Et.rtcpMuxPolicy||(Et.rtcpMuxPolicy="require"),Et.iceTransportPolicy){case"all":case"relay":break;default:Et.iceTransportPolicy="all"}switch(Et.bundlePolicy){case"balanced":case"max-compat":case"max-bundle":break;default:Et.bundlePolicy="balanced"}if(Et.iceServers=(Pn=Et.iceServers||[],Bn=Oe,ei=!1,(Pn=JSON.parse(JSON.stringify(Pn))).filter(function(jn){if(jn&&(jn.urls||jn.url)){var si=jn.urls||jn.url;jn.url&&!jn.urls&&console.warn("RTCIceServer.url is deprecated! Use urls instead.");var vi="string"==typeof si;return vi&&(si=[si]),si=si.filter(function(bi){return 0!==bi.indexOf("turn:")||-1===bi.indexOf("transport=udp")||-1!==bi.indexOf("turn:[")||ei?0===bi.indexOf("stun:")&&Bn>=14393&&-1===bi.indexOf("?transport=udp"):(ei=!0,!0)}),delete jn.url,jn.urls=vi?si[0]:si,!!si.length}})),this._iceGatherers=[],Et.iceCandidatePoolSize)for(var tn=Et.iceCandidatePoolSize;tn>0;tn--)this._iceGatherers.push(new re.RTCIceGatherer({iceServers:Et.iceServers,gatherPolicy:Et.iceTransportPolicy}));else Et.iceCandidatePoolSize=0;this._config=Et,this.transceivers=[],this._sdpSessionId=y.generateSessionId(),this._sdpSessionVersion=0,this._dtlsRole=void 0,this._isClosed=!1};Object.defineProperty(Ct.prototype,"localDescription",{configurable:!0,get:function(){return this._localDescription}}),Object.defineProperty(Ct.prototype,"remoteDescription",{configurable:!0,get:function(){return this._remoteDescription}}),Ct.prototype.onicecandidate=null,Ct.prototype.onaddstream=null,Ct.prototype.ontrack=null,Ct.prototype.onremovestream=null,Ct.prototype.onsignalingstatechange=null,Ct.prototype.oniceconnectionstatechange=null,Ct.prototype.onconnectionstatechange=null,Ct.prototype.onicegatheringstatechange=null,Ct.prototype.onnegotiationneeded=null,Ct.prototype.ondatachannel=null,Ct.prototype._dispatchEvent=function(Et,qt){this._isClosed||(this.dispatchEvent(qt),"function"==typeof this["on"+Et]&&this["on"+Et](qt))},Ct.prototype._emitGatheringStateChange=function(){var Et=new Event("icegatheringstatechange");this._dispatchEvent("icegatheringstatechange",Et)},Ct.prototype.getConfiguration=function(){return this._config},Ct.prototype.getLocalStreams=function(){return this.localStreams},Ct.prototype.getRemoteStreams=function(){return this.remoteStreams},Ct.prototype._createTransceiver=function(Et,qt){var tn={track:null,iceGatherer:null,iceTransport:null,dtlsTransport:null,localCapabilities:null,remoteCapabilities:null,rtpSender:null,rtpReceiver:null,kind:Et,mid:null,sendEncodingParameters:null,recvEncodingParameters:null,stream:null,associatedRemoteMediaStreams:[],wantReceive:!0};if(this.usingBundle&&this.transceivers.length>0)tn.iceTransport=this.transceivers[0].iceTransport,tn.dtlsTransport=this.transceivers[0].dtlsTransport;else{var Pn=this._createIceAndDtlsTransports();tn.iceTransport=Pn.iceTransport,tn.dtlsTransport=Pn.dtlsTransport}return qt||this.transceivers.push(tn),tn},Ct.prototype.addTrack=function(Et,qt){if(this._isClosed)throw Z("InvalidStateError","Attempted to call addTrack on a closed peerconnection.");var gn;if(this.transceivers.find(function(Pn){return Pn.track===Et}))throw Z("InvalidAccessError","Track already exists.");for(var tn=0;tn<this.transceivers.length;tn++)this.transceivers[tn].track||this.transceivers[tn].kind!==Et.kind||(gn=this.transceivers[tn]);return gn||(gn=this._createTransceiver(Et.kind)),this._maybeFireNegotiationNeeded(),-1===this.localStreams.indexOf(qt)&&this.localStreams.push(qt),gn.track=Et,gn.stream=qt,gn.rtpSender=new re.RTCRtpSender(Et,gn.dtlsTransport),gn.rtpSender},Ct.prototype.addStream=function(Et){var qt=this;if(Oe>=15025)Et.getTracks().forEach(function(tn){qt.addTrack(tn,Et)});else{var gn=Et.clone();Et.getTracks().forEach(function(tn,Pn){var Bn=gn.getTracks()[Pn];tn.addEventListener("enabled",function(ei){Bn.enabled=ei.enabled})}),gn.getTracks().forEach(function(tn){qt.addTrack(tn,gn)})}},Ct.prototype.removeTrack=function(Et){if(this._isClosed)throw Z("InvalidStateError","Attempted to call removeTrack on a closed peerconnection.");if(!(Et instanceof re.RTCRtpSender))throw new TypeError("Argument 1 of RTCPeerConnection.removeTrack does not implement interface RTCRtpSender.");var qt=this.transceivers.find(function(tn){return tn.rtpSender===Et});if(!qt)throw Z("InvalidAccessError","Sender was not created by this connection.");var gn=qt.stream;qt.rtpSender.stop(),qt.rtpSender=null,qt.track=null,qt.stream=null,-1===this.transceivers.map(function(tn){return tn.stream}).indexOf(gn)&&this.localStreams.indexOf(gn)>-1&&this.localStreams.splice(this.localStreams.indexOf(gn),1),this._maybeFireNegotiationNeeded()},Ct.prototype.removeStream=function(Et){var qt=this;Et.getTracks().forEach(function(gn){var tn=qt.getSenders().find(function(Pn){return Pn.track===gn});tn&&qt.removeTrack(tn)})},Ct.prototype.getSenders=function(){return this.transceivers.filter(function(Et){return!!Et.rtpSender}).map(function(Et){return Et.rtpSender})},Ct.prototype.getReceivers=function(){return this.transceivers.filter(function(Et){return!!Et.rtpReceiver}).map(function(Et){return Et.rtpReceiver})},Ct.prototype._createIceGatherer=function(Et,qt){var gn=this;if(qt&&Et>0)return this.transceivers[0].iceGatherer;if(this._iceGatherers.length)return this._iceGatherers.shift();var tn=new re.RTCIceGatherer({iceServers:this._config.iceServers,gatherPolicy:this._config.iceTransportPolicy});return Object.defineProperty(tn,"state",{value:"new",writable:!0}),this.transceivers[Et].bufferedCandidateEvents=[],this.transceivers[Et].bufferCandidates=function(Pn){var Bn=!Pn.candidate||0===Object.keys(Pn.candidate).length;tn.state=Bn?"completed":"gathering",null!==gn.transceivers[Et].bufferedCandidateEvents&&gn.transceivers[Et].bufferedCandidateEvents.push(Pn)},tn.addEventListener("localcandidate",this.transceivers[Et].bufferCandidates),tn},Ct.prototype._gather=function(Et,qt){var gn=this,tn=this.transceivers[qt].iceGatherer;if(!tn.onlocalcandidate){var Pn=this.transceivers[qt].bufferedCandidateEvents;this.transceivers[qt].bufferedCandidateEvents=null,tn.removeEventListener("localcandidate",this.transceivers[qt].bufferCandidates),tn.onlocalcandidate=function(Bn){if(!(gn.usingBundle&&qt>0)){var ei=new Event("icecandidate");ei.candidate={sdpMid:Et,sdpMLineIndex:qt};var jn=Bn.candidate,si=!jn||0===Object.keys(jn).length;if(si)"new"!==tn.state&&"gathering"!==tn.state||(tn.state="completed");else{"new"===tn.state&&(tn.state="gathering"),jn.component=1,jn.ufrag=tn.getLocalParameters().usernameFragment;var vi=y.writeCandidate(jn);ei.candidate=Object.assign(ei.candidate,y.parseCandidate(vi)),ei.candidate.candidate=vi,ei.candidate.toJSON=function(){return{candidate:ei.candidate.candidate,sdpMid:ei.candidate.sdpMid,sdpMLineIndex:ei.candidate.sdpMLineIndex,usernameFragment:ei.candidate.usernameFragment}}}var bi=y.getMediaSections(gn._localDescription.sdp);bi[ei.candidate.sdpMLineIndex]+=si?"a=end-of-candidates\r\n":"a="+ei.candidate.candidate+"\r\n",gn._localDescription.sdp=y.getDescription(gn._localDescription.sdp)+bi.join("");var $i=gn.transceivers.every(function(er){return er.iceGatherer&&"completed"===er.iceGatherer.state});"gathering"!==gn.iceGatheringState&&(gn.iceGatheringState="gathering",gn._emitGatheringStateChange()),si||gn._dispatchEvent("icecandidate",ei),$i&&(gn._dispatchEvent("icecandidate",new Event("icecandidate")),gn.iceGatheringState="complete",gn._emitGatheringStateChange())}},re.setTimeout(function(){Pn.forEach(function(Bn){tn.onlocalcandidate(Bn)})},0)}},Ct.prototype._createIceAndDtlsTransports=function(){var Et=this,qt=new re.RTCIceTransport(null);qt.onicestatechange=function(){Et._updateIceConnectionState(),Et._updateConnectionState()};var gn=new re.RTCDtlsTransport(qt);return gn.ondtlsstatechange=function(){Et._updateConnectionState()},gn.onerror=function(){Object.defineProperty(gn,"state",{value:"failed",writable:!0}),Et._updateConnectionState()},{iceTransport:qt,dtlsTransport:gn}},Ct.prototype._disposeIceAndDtlsTransports=function(Et){var qt=this.transceivers[Et].iceGatherer;qt&&(delete qt.onlocalcandidate,delete this.transceivers[Et].iceGatherer);var gn=this.transceivers[Et].iceTransport;gn&&(delete gn.onicestatechange,delete this.transceivers[Et].iceTransport);var tn=this.transceivers[Et].dtlsTransport;tn&&(delete tn.ondtlsstatechange,delete tn.onerror,delete this.transceivers[Et].dtlsTransport)},Ct.prototype._transceive=function(Et,qt,gn){var tn=p(Et.localCapabilities,Et.remoteCapabilities);qt&&Et.rtpSender&&(tn.encodings=Et.sendEncodingParameters,tn.rtcp={cname:y.localCName,compound:Et.rtcpParameters.compound},Et.recvEncodingParameters.length&&(tn.rtcp.ssrc=Et.recvEncodingParameters[0].ssrc),Et.rtpSender.send(tn)),gn&&Et.rtpReceiver&&tn.codecs.length>0&&("video"===Et.kind&&Et.recvEncodingParameters&&Oe<15019&&Et.recvEncodingParameters.forEach(function(Pn){delete Pn.rtx}),tn.encodings=Et.recvEncodingParameters.length?Et.recvEncodingParameters:[{}],tn.rtcp={compound:Et.rtcpParameters.compound},Et.rtcpParameters.cname&&(tn.rtcp.cname=Et.rtcpParameters.cname),Et.sendEncodingParameters.length&&(tn.rtcp.ssrc=Et.sendEncodingParameters[0].ssrc),Et.rtpReceiver.receive(tn))},Ct.prototype.setLocalDescription=function(Et){var qt,gn,tn=this;if(-1===["offer","answer"].indexOf(Et.type))return Promise.reject(Z("TypeError",'Unsupported type "'+Et.type+'"'));if(!O("setLocalDescription",Et.type,tn.signalingState)||tn._isClosed)return Promise.reject(Z("InvalidStateError","Can not set local "+Et.type+" in state "+tn.signalingState));if("offer"===Et.type)qt=y.splitSections(Et.sdp),gn=qt.shift(),qt.forEach(function(Bn,ei){var jn=y.parseRtpParameters(Bn);tn.transceivers[ei].localCapabilities=jn}),tn.transceivers.forEach(function(Bn,ei){tn._gather(Bn.mid,ei)});else if("answer"===Et.type){qt=y.splitSections(tn._remoteDescription.sdp),gn=qt.shift();var Pn=y.matchPrefix(gn,"a=ice-lite").length>0;qt.forEach(function(Bn,ei){var jn=tn.transceivers[ei],si=jn.iceGatherer,vi=jn.iceTransport,bi=jn.dtlsTransport,$i=jn.localCapabilities,er=jn.remoteCapabilities;if(!(y.isRejected(Bn)&&0===y.matchPrefix(Bn,"a=bundle-only").length||jn.rejected)){var nr=y.getIceParameters(Bn,gn),cs=y.getDtlsParameters(Bn,gn);Pn&&(cs.role="server"),tn.usingBundle&&0!==ei||(tn._gather(jn.mid,ei),"new"===vi.state&&vi.start(si,nr,Pn?"controlling":"controlled"),"new"===bi.state&&bi.start(cs));var ys=p($i,er);tn._transceive(jn,ys.codecs.length>0,!1)}})}return tn._localDescription={type:Et.type,sdp:Et.sdp},tn._updateSignalingState("offer"===Et.type?"have-local-offer":"stable"),Promise.resolve()},Ct.prototype.setRemoteDescription=function(Et){var qt=this;if(-1===["offer","answer"].indexOf(Et.type))return Promise.reject(Z("TypeError",'Unsupported type "'+Et.type+'"'));if(!O("setRemoteDescription",Et.type,qt.signalingState)||qt._isClosed)return Promise.reject(Z("InvalidStateError","Can not set remote "+Et.type+" in state "+qt.signalingState));var gn={};qt.remoteStreams.forEach(function(vi){gn[vi.id]=vi});var tn=[],Pn=y.splitSections(Et.sdp),Bn=Pn.shift(),ei=y.matchPrefix(Bn,"a=ice-lite").length>0,jn=y.matchPrefix(Bn,"a=group:BUNDLE ").length>0;qt.usingBundle=jn;var si=y.matchPrefix(Bn,"a=ice-options:")[0];return qt.canTrickleIceCandidates=!!si&&si.substr(14).split(" ").indexOf("trickle")>=0,Pn.forEach(function(vi,bi){var $i=y.splitLines(vi),er=y.getKind(vi),nr=y.isRejected(vi)&&0===y.matchPrefix(vi,"a=bundle-only").length,cs=$i[0].substr(2).split(" ")[2],ys=y.getDirection(vi,Bn),Fr=y.parseMsid(vi),Si=y.getMid(vi)||y.generateIdentifier();if(nr||"application"===er&&("DTLS/SCTP"===cs||"UDP/DTLS/SCTP"===cs))qt.transceivers[bi]={mid:Si,kind:er,protocol:cs,rejected:!0};else{var dr,go,Vo,Ds,Ss,Js,xo,va,to;!nr&&qt.transceivers[bi]&&qt.transceivers[bi].rejected&&(qt.transceivers[bi]=qt._createTransceiver(er,!0));var Ul,wl,Gs=y.parseRtpParameters(vi);nr||(Ul=y.getIceParameters(vi,Bn),(wl=y.getDtlsParameters(vi,Bn)).role="client"),xo=y.parseRtpEncodingParameters(vi);var Sa=y.parseRtcpParameters(vi),Ua=y.matchPrefix(vi,"a=end-of-candidates",Bn).length>0,Za=y.matchPrefix(vi,"a=candidate:").map(function(gl){return y.parseCandidate(gl)}).filter(function(gl){return 1===gl.component});if(("offer"===Et.type||"answer"===Et.type)&&!nr&&jn&&bi>0&&qt.transceivers[bi]&&(qt._disposeIceAndDtlsTransports(bi),qt.transceivers[bi].iceGatherer=qt.transceivers[0].iceGatherer,qt.transceivers[bi].iceTransport=qt.transceivers[0].iceTransport,qt.transceivers[bi].dtlsTransport=qt.transceivers[0].dtlsTransport,qt.transceivers[bi].rtpSender&&qt.transceivers[bi].rtpSender.setTransport(qt.transceivers[0].dtlsTransport),qt.transceivers[bi].rtpReceiver&&qt.transceivers[bi].rtpReceiver.setTransport(qt.transceivers[0].dtlsTransport)),"offer"!==Et.type||nr)"answer"!==Et.type||nr||(go=(dr=qt.transceivers[bi]).iceGatherer,Vo=dr.iceTransport,Ds=dr.dtlsTransport,Ss=dr.rtpReceiver,Js=dr.sendEncodingParameters,va=dr.localCapabilities,qt.transceivers[bi].recvEncodingParameters=xo,qt.transceivers[bi].remoteCapabilities=Gs,qt.transceivers[bi].rtcpParameters=Sa,Za.length&&"new"===Vo.state&&(!ei&&!Ua||jn&&0!==bi?Za.forEach(function(gl){F(dr.iceTransport,gl)}):Vo.setRemoteCandidates(Za)),jn&&0!==bi||("new"===Vo.state&&Vo.start(go,Ul,"controlling"),"new"===Ds.state&&Ds.start(wl)),!p(dr.localCapabilities,dr.remoteCapabilities).codecs.filter(function(gl){return"rtx"===gl.name.toLowerCase()}).length&&dr.sendEncodingParameters[0].rtx&&delete dr.sendEncodingParameters[0].rtx,qt._transceive(dr,"sendrecv"===ys||"recvonly"===ys,"sendrecv"===ys||"sendonly"===ys),!Ss||"sendrecv"!==ys&&"sendonly"!==ys?delete dr.rtpReceiver:(to=Ss.track,Fr?(gn[Fr.stream]||(gn[Fr.stream]=new re.MediaStream),je(to,gn[Fr.stream]),tn.push([to,Ss,gn[Fr.stream]])):(gn.default||(gn.default=new re.MediaStream),je(to,gn.default),tn.push([to,Ss,gn.default]))));else{(dr=qt.transceivers[bi]||qt._createTransceiver(er)).mid=Si,dr.iceGatherer||(dr.iceGatherer=qt._createIceGatherer(bi,jn)),Za.length&&"new"===dr.iceTransport.state&&(!Ua||jn&&0!==bi?Za.forEach(function(gl){F(dr.iceTransport,gl)}):dr.iceTransport.setRemoteCandidates(Za)),va=re.RTCRtpReceiver.getCapabilities(er),Oe<15019&&(va.codecs=va.codecs.filter(function(gl){return"rtx"!==gl.name})),Js=dr.sendEncodingParameters||[{ssrc:1001*(2*bi+2)}];var Ja,bl=!1;"sendrecv"===ys||"sendonly"===ys?(bl=!dr.rtpReceiver,Ss=dr.rtpReceiver||new re.RTCRtpReceiver(dr.dtlsTransport,er),bl&&(to=Ss.track,Fr&&"-"===Fr.stream||(Fr?(gn[Fr.stream]||(gn[Fr.stream]=new re.MediaStream,Object.defineProperty(gn[Fr.stream],"id",{get:function(){return Fr.stream}})),Object.defineProperty(to,"id",{get:function(){return Fr.track}}),Ja=gn[Fr.stream]):(gn.default||(gn.default=new re.MediaStream),Ja=gn.default)),Ja&&(je(to,Ja),dr.associatedRemoteMediaStreams.push(Ja)),tn.push([to,Ss,Ja]))):dr.rtpReceiver&&dr.rtpReceiver.track&&(dr.associatedRemoteMediaStreams.forEach(function(gl){var cc,dc,Ka=gl.getTracks().find(function(cc){return cc.id===dr.rtpReceiver.track.id});Ka&&((dc=gl).removeTrack(cc=Ka),dc.dispatchEvent(new re.MediaStreamTrackEvent("removetrack",{track:cc})))}),dr.associatedRemoteMediaStreams=[]),dr.localCapabilities=va,dr.remoteCapabilities=Gs,dr.rtpReceiver=Ss,dr.rtcpParameters=Sa,dr.sendEncodingParameters=Js,dr.recvEncodingParameters=xo,qt._transceive(qt.transceivers[bi],!1,bl)}}}),void 0===qt._dtlsRole&&(qt._dtlsRole="offer"===Et.type?"active":"passive"),qt._remoteDescription={type:Et.type,sdp:Et.sdp},qt._updateSignalingState("offer"===Et.type?"have-remote-offer":"stable"),Object.keys(gn).forEach(function(vi){var bi=gn[vi];if(bi.getTracks().length){if(-1===qt.remoteStreams.indexOf(bi)){qt.remoteStreams.push(bi);var $i=new Event("addstream");$i.stream=bi,re.setTimeout(function(){qt._dispatchEvent("addstream",$i)})}tn.forEach(function(er){bi.id===er[2].id&&ot(qt,er[0],er[1],[bi])})}}),tn.forEach(function(vi){vi[2]||ot(qt,vi[0],vi[1],[])}),re.setTimeout(function(){qt&&qt.transceivers&&qt.transceivers.forEach(function(vi){vi.iceTransport&&"new"===vi.iceTransport.state&&vi.iceTransport.getRemoteCandidates().length>0&&(console.warn("Timeout for addRemoteCandidate. Consider sending an end-of-candidates notification"),vi.iceTransport.addRemoteCandidate({}))})},4e3),Promise.resolve()},Ct.prototype.close=function(){this.transceivers.forEach(function(Et){Et.iceTransport&&Et.iceTransport.stop(),Et.dtlsTransport&&Et.dtlsTransport.stop(),Et.rtpSender&&Et.rtpSender.stop(),Et.rtpReceiver&&Et.rtpReceiver.stop()}),this._isClosed=!0,this._updateSignalingState("closed")},Ct.prototype._updateSignalingState=function(Et){this.signalingState=Et;var qt=new Event("signalingstatechange");this._dispatchEvent("signalingstatechange",qt)},Ct.prototype._maybeFireNegotiationNeeded=function(){var Et=this;"stable"===this.signalingState&&!0!==this.needNegotiation&&(this.needNegotiation=!0,re.setTimeout(function(){if(Et.needNegotiation){Et.needNegotiation=!1;var qt=new Event("negotiationneeded");Et._dispatchEvent("negotiationneeded",qt)}},0))},Ct.prototype._updateIceConnectionState=function(){var Et,qt={new:0,closed:0,checking:0,connected:0,completed:0,disconnected:0,failed:0};if(this.transceivers.forEach(function(tn){tn.iceTransport&&!tn.rejected&&qt[tn.iceTransport.state]++}),Et="new",qt.failed>0?Et="failed":qt.checking>0?Et="checking":qt.disconnected>0?Et="disconnected":qt.new>0?Et="new":qt.connected>0?Et="connected":qt.completed>0&&(Et="completed"),Et!==this.iceConnectionState){this.iceConnectionState=Et;var gn=new Event("iceconnectionstatechange");this._dispatchEvent("iceconnectionstatechange",gn)}},Ct.prototype._updateConnectionState=function(){var Et,qt={new:0,closed:0,connecting:0,connected:0,completed:0,disconnected:0,failed:0};if(this.transceivers.forEach(function(tn){tn.iceTransport&&tn.dtlsTransport&&!tn.rejected&&(qt[tn.iceTransport.state]++,qt[tn.dtlsTransport.state]++)}),qt.connected+=qt.completed,Et="new",qt.failed>0?Et="failed":qt.connecting>0?Et="connecting":qt.disconnected>0?Et="disconnected":qt.new>0?Et="new":qt.connected>0&&(Et="connected"),Et!==this.connectionState){this.connectionState=Et;var gn=new Event("connectionstatechange");this._dispatchEvent("connectionstatechange",gn)}},Ct.prototype.createOffer=function(){var Et=this;if(Et._isClosed)return Promise.reject(Z("InvalidStateError","Can not call createOffer after close"));var qt=Et.transceivers.filter(function(ei){return"audio"===ei.kind}).length,gn=Et.transceivers.filter(function(ei){return"video"===ei.kind}).length,tn=arguments[0];if(tn){if(tn.mandatory||tn.optional)throw new TypeError("Legacy mandatory/optional constraints not supported.");void 0!==tn.offerToReceiveAudio&&(qt=!0===tn.offerToReceiveAudio?1:!1===tn.offerToReceiveAudio?0:tn.offerToReceiveAudio),void 0!==tn.offerToReceiveVideo&&(gn=!0===tn.offerToReceiveVideo?1:!1===tn.offerToReceiveVideo?0:tn.offerToReceiveVideo)}for(Et.transceivers.forEach(function(ei){"audio"===ei.kind?--qt<0&&(ei.wantReceive=!1):"video"===ei.kind&&--gn<0&&(ei.wantReceive=!1)});qt>0||gn>0;)qt>0&&(Et._createTransceiver("audio"),qt--),gn>0&&(Et._createTransceiver("video"),gn--);var Pn=y.writeSessionBoilerplate(Et._sdpSessionId,Et._sdpSessionVersion++);Et.transceivers.forEach(function(ei,jn){var si=ei.track,vi=ei.kind,bi=ei.mid||y.generateIdentifier();ei.mid=bi,ei.iceGatherer||(ei.iceGatherer=Et._createIceGatherer(jn,Et.usingBundle));var $i=re.RTCRtpSender.getCapabilities(vi);Oe<15019&&($i.codecs=$i.codecs.filter(function(nr){return"rtx"!==nr.name})),$i.codecs.forEach(function(nr){"H264"===nr.name&&void 0===nr.parameters["level-asymmetry-allowed"]&&(nr.parameters["level-asymmetry-allowed"]="1"),ei.remoteCapabilities&&ei.remoteCapabilities.codecs&&ei.remoteCapabilities.codecs.forEach(function(cs){nr.name.toLowerCase()===cs.name.toLowerCase()&&nr.clockRate===cs.clockRate&&(nr.preferredPayloadType=cs.payloadType)})}),$i.headerExtensions.forEach(function(nr){(ei.remoteCapabilities&&ei.remoteCapabilities.headerExtensions||[]).forEach(function(cs){nr.uri===cs.uri&&(nr.id=cs.id)})});var er=ei.sendEncodingParameters||[{ssrc:1001*(2*jn+1)}];si&&Oe>=15019&&"video"===vi&&!er[0].rtx&&(er[0].rtx={ssrc:er[0].ssrc+1}),ei.wantReceive&&(ei.rtpReceiver=new re.RTCRtpReceiver(ei.dtlsTransport,vi)),ei.localCapabilities=$i,ei.sendEncodingParameters=er}),"max-compat"!==Et._config.bundlePolicy&&(Pn+="a=group:BUNDLE "+Et.transceivers.map(function(ei){return ei.mid}).join(" ")+"\r\n"),Pn+="a=ice-options:trickle\r\n",Et.transceivers.forEach(function(ei,jn){Pn+=c(ei,ei.localCapabilities,"offer",ei.stream,Et._dtlsRole),Pn+="a=rtcp-rsize\r\n",!ei.iceGatherer||"new"===Et.iceGatheringState||0!==jn&&Et.usingBundle||(ei.iceGatherer.getLocalCandidates().forEach(function(si){si.component=1,Pn+="a="+y.writeCandidate(si)+"\r\n"}),"completed"===ei.iceGatherer.state&&(Pn+="a=end-of-candidates\r\n"))});var Bn=new re.RTCSessionDescription({type:"offer",sdp:Pn});return Promise.resolve(Bn)},Ct.prototype.createAnswer=function(){var Et=this;if(Et._isClosed)return Promise.reject(Z("InvalidStateError","Can not call createAnswer after close"));if("have-remote-offer"!==Et.signalingState&&"have-local-pranswer"!==Et.signalingState)return Promise.reject(Z("InvalidStateError","Can not call createAnswer in signalingState "+Et.signalingState));var qt=y.writeSessionBoilerplate(Et._sdpSessionId,Et._sdpSessionVersion++);Et.usingBundle&&(qt+="a=group:BUNDLE "+Et.transceivers.map(function(Pn){return Pn.mid}).join(" ")+"\r\n"),qt+="a=ice-options:trickle\r\n";var gn=y.getMediaSections(Et._remoteDescription.sdp).length;Et.transceivers.forEach(function(Pn,Bn){if(!(Bn+1>gn)){if(Pn.rejected)return"application"===Pn.kind?qt+="DTLS/SCTP"===Pn.protocol?"m=application 0 DTLS/SCTP 5000\r\n":"m=application 0 "+Pn.protocol+" webrtc-datachannel\r\n":"audio"===Pn.kind?qt+="m=audio 0 UDP/TLS/RTP/SAVPF 0\r\na=rtpmap:0 PCMU/8000\r\n":"video"===Pn.kind&&(qt+="m=video 0 UDP/TLS/RTP/SAVPF 120\r\na=rtpmap:120 VP8/90000\r\n"),void(qt+="c=IN IP4 0.0.0.0\r\na=inactive\r\na=mid:"+Pn.mid+"\r\n");var ei;Pn.stream&&("audio"===Pn.kind?ei=Pn.stream.getAudioTracks()[0]:"video"===Pn.kind&&(ei=Pn.stream.getVideoTracks()[0]),ei&&Oe>=15019&&"video"===Pn.kind&&!Pn.sendEncodingParameters[0].rtx&&(Pn.sendEncodingParameters[0].rtx={ssrc:Pn.sendEncodingParameters[0].ssrc+1}));var jn=p(Pn.localCapabilities,Pn.remoteCapabilities);!jn.codecs.filter(function(si){return"rtx"===si.name.toLowerCase()}).length&&Pn.sendEncodingParameters[0].rtx&&delete Pn.sendEncodingParameters[0].rtx,qt+=c(Pn,jn,"answer",Pn.stream,Et._dtlsRole),Pn.rtcpParameters&&Pn.rtcpParameters.reducedSize&&(qt+="a=rtcp-rsize\r\n")}});var tn=new re.RTCSessionDescription({type:"answer",sdp:qt});return Promise.resolve(tn)},Ct.prototype.addIceCandidate=function(Et){var qt,gn=this;return Et&&void 0===Et.sdpMLineIndex&&!Et.sdpMid?Promise.reject(new TypeError("sdpMLineIndex or sdpMid required")):new Promise(function(tn,Pn){if(!gn._remoteDescription)return Pn(Z("InvalidStateError","Can not add ICE candidate without a remote description"));if(Et&&""!==Et.candidate){var Bn=Et.sdpMLineIndex;if(Et.sdpMid)for(var ei=0;ei<gn.transceivers.length;ei++)if(gn.transceivers[ei].mid===Et.sdpMid){Bn=ei;break}var jn=gn.transceivers[Bn];if(!jn)return Pn(Z("OperationError","Can not add ICE candidate"));if(jn.rejected)return tn();var si=Object.keys(Et.candidate).length>0?y.parseCandidate(Et.candidate):{};if("tcp"===si.protocol&&(0===si.port||9===si.port)||si.component&&1!==si.component)return tn();if((0===Bn||Bn>0&&jn.iceTransport!==gn.transceivers[0].iceTransport)&&!F(jn.iceTransport,si))return Pn(Z("OperationError","Can not add ICE candidate"));var vi=Et.candidate.trim();0===vi.indexOf("a=")&&(vi=vi.substr(2)),(qt=y.getMediaSections(gn._remoteDescription.sdp))[Bn]+="a="+(si.type?vi:"end-of-candidates")+"\r\n",gn._remoteDescription.sdp=y.getDescription(gn._remoteDescription.sdp)+qt.join("")}else for(var bi=0;bi<gn.transceivers.length&&(gn.transceivers[bi].rejected||(gn.transceivers[bi].iceTransport.addRemoteCandidate({}),(qt=y.getMediaSections(gn._remoteDescription.sdp))[bi]+="a=end-of-candidates\r\n",gn._remoteDescription.sdp=y.getDescription(gn._remoteDescription.sdp)+qt.join(""),!gn.usingBundle));bi++);tn()})},Ct.prototype.getStats=function(Et){if(Et&&Et instanceof re.MediaStreamTrack){var qt=null;if(this.transceivers.forEach(function(tn){tn.rtpSender&&tn.rtpSender.track===Et?qt=tn.rtpSender:tn.rtpReceiver&&tn.rtpReceiver.track===Et&&(qt=tn.rtpReceiver)}),!qt)throw Z("InvalidAccessError","Invalid selector.");return qt.getStats()}var gn=[];return this.transceivers.forEach(function(tn){["rtpSender","rtpReceiver","iceGatherer","iceTransport","dtlsTransport"].forEach(function(Pn){tn[Pn]&&gn.push(tn[Pn].getStats())})}),Promise.all(gn).then(function(tn){var Pn=new Map;return tn.forEach(function(Bn){Bn.forEach(function(ei){Pn.set(ei.id,ei)})}),Pn})},["RTCRtpSender","RTCRtpReceiver","RTCIceGatherer","RTCIceTransport","RTCDtlsTransport"].forEach(function(Et){var qt=re[Et];if(qt&&qt.prototype&&qt.prototype.getStats){var gn=qt.prototype.getStats;qt.prototype.getStats=function(){return gn.apply(this).then(function(tn){var Pn=new Map;return Object.keys(tn).forEach(function(Bn){var ei;tn[Bn].type={inboundrtp:"inbound-rtp",outboundrtp:"outbound-rtp",candidatepair:"candidate-pair",localcandidate:"local-candidate",remotecandidate:"remote-candidate"}[(ei=tn[Bn]).type]||ei.type,Pn.set(Bn,tn[Bn])}),Pn})}}});var Rt=["createOffer","createAnswer"];return Rt.forEach(function(Et){var qt=Ct.prototype[Et];Ct.prototype[Et]=function(){var gn=arguments;return"function"==typeof gn[0]||"function"==typeof gn[1]?qt.apply(this,[arguments[2]]).then(function(tn){"function"==typeof gn[0]&&gn[0].apply(null,[tn])},function(tn){"function"==typeof gn[1]&&gn[1].apply(null,[tn])}):qt.apply(this,arguments)}}),(Rt=["setLocalDescription","setRemoteDescription","addIceCandidate"]).forEach(function(Et){var qt=Ct.prototype[Et];Ct.prototype[Et]=function(){var gn=arguments;return"function"==typeof gn[1]||"function"==typeof gn[2]?qt.apply(this,arguments).then(function(){"function"==typeof gn[1]&&gn[1].apply(null)},function(tn){"function"==typeof gn[2]&&gn[2].apply(null,[tn])}):qt.apply(this,arguments)}}),["getStats"].forEach(function(Et){var qt=Ct.prototype[Et];Ct.prototype[Et]=function(){var gn=arguments;return"function"==typeof gn[1]?qt.apply(this,arguments).then(function(){"function"==typeof gn[1]&&gn[1].apply(null)}):qt.apply(this,arguments)}}),Ct},it}();const nt=te(Ge);function Je(y){const c=y&&y.navigator,p=c.mediaDevices.getUserMedia.bind(c.mediaDevices);c.mediaDevices.getUserMedia=function(O){return p(O).catch(F=>{return Promise.reject({name:{PermissionDeniedError:"NotAllowedError"}[(Z=F).name]||Z.name,message:Z.message,constraint:Z.constraint,toString(){return this.name}});var Z})}}function ze(y){"getDisplayMedia"in y.navigator&&y.navigator.mediaDevices&&(y.navigator.mediaDevices&&"getDisplayMedia"in y.navigator.mediaDevices||(y.navigator.mediaDevices.getDisplayMedia=y.navigator.getDisplayMedia.bind(y.navigator)))}function Ke(y){const c=l(y);if(y.RTCIceGatherer&&(y.RTCIceCandidate||(y.RTCIceCandidate=function(O){return O}),y.RTCSessionDescription||(y.RTCSessionDescription=function(O){return O}),c.version<15025)){const O=Object.getOwnPropertyDescriptor(y.MediaStreamTrack.prototype,"enabled");Object.defineProperty(y.MediaStreamTrack.prototype,"enabled",{set(F){O.set.call(this,F);const Z=new Event("enabled");Z.enabled=F,this.dispatchEvent(Z)}})}y.RTCRtpSender&&!("dtmf"in y.RTCRtpSender.prototype)&&Object.defineProperty(y.RTCRtpSender.prototype,"dtmf",{get(){return void 0===this._dtmf&&("audio"===this.track.kind?this._dtmf=new y.RTCDtmfSender(this):"video"===this.track.kind&&(this._dtmf=null)),this._dtmf}}),y.RTCDtmfSender&&!y.RTCDTMFSender&&(y.RTCDTMFSender=y.RTCDtmfSender);const p=nt(y,c.version);y.RTCPeerConnection=function(O){return O&&O.iceServers&&(O.iceServers=function(F){let Z=!1;return(F=JSON.parse(JSON.stringify(F))).filter(re=>{if(re&&(re.urls||re.url)){var Oe=re.urls||re.url;re.url&&!re.urls&&m("RTCIceServer.url","RTCIceServer.urls");const je="string"==typeof Oe;return je&&(Oe=[Oe]),Oe=Oe.filter(ot=>{if(0===ot.indexOf("stun:"))return!1;const Ct=ot.startsWith("turn")&&!ot.startsWith("turn:[")&&ot.includes("transport=udp");return Ct&&!Z?(Z=!0,!0):Ct&&!Z}),delete re.url,re.urls=je?Oe[0]:Oe,!!Oe.length}})}(O.iceServers),g("ICE servers after filtering:",O.iceServers)),new p(O)},y.RTCPeerConnection.prototype=p.prototype}function Ve(y){y.RTCRtpSender&&!("replaceTrack"in y.RTCRtpSender.prototype)&&(y.RTCRtpSender.prototype.replaceTrack=y.RTCRtpSender.prototype.setTrack)}const $e=Object.freeze(Object.defineProperty({__proto__:null,shimGetDisplayMedia:ze,shimGetUserMedia:Je,shimPeerConnection:Ke,shimReplaceTrack:Ve},Symbol.toStringTag,{value:"Module"}));function dt(y){const c=l(y),p=y&&y.navigator,O=y&&y.MediaStreamTrack;if(p.getUserMedia=function(F,Z,re){m("navigator.getUserMedia","navigator.mediaDevices.getUserMedia"),p.mediaDevices.getUserMedia(F).then(Z,re)},!(c.version>55&&"autoGainControl"in p.mediaDevices.getSupportedConstraints())){const F=function(re,Oe,je){Oe in re&&!(je in re)&&(re[je]=re[Oe],delete re[Oe])},Z=p.mediaDevices.getUserMedia.bind(p.mediaDevices);if(p.mediaDevices.getUserMedia=function(re){return"object"==typeof re&&"object"==typeof re.audio&&(re=JSON.parse(JSON.stringify(re)),F(re.audio,"autoGainControl","mozAutoGainControl"),F(re.audio,"noiseSuppression","mozNoiseSuppression")),Z(re)},O&&O.prototype.getSettings){const re=O.prototype.getSettings;O.prototype.getSettings=function(){const Oe=re.apply(this,arguments);return F(Oe,"mozAutoGainControl","autoGainControl"),F(Oe,"mozNoiseSuppression","noiseSuppression"),Oe}}if(O&&O.prototype.applyConstraints){const re=O.prototype.applyConstraints;O.prototype.applyConstraints=function(Oe){return"audio"===this.kind&&"object"==typeof Oe&&(Oe=JSON.parse(JSON.stringify(Oe)),F(Oe,"autoGainControl","mozAutoGainControl"),F(Oe,"noiseSuppression","mozNoiseSuppression")),re.apply(this,[Oe])}}}}function Pe(y){"object"==typeof y&&y.RTCTrackEvent&&"receiver"in y.RTCTrackEvent.prototype&&!("transceiver"in y.RTCTrackEvent.prototype)&&Object.defineProperty(y.RTCTrackEvent.prototype,"transceiver",{get(){return{receiver:this.receiver}}})}function J(y){const c=l(y);if("object"!=typeof y||!y.RTCPeerConnection&&!y.mozRTCPeerConnection)return;if(!y.RTCPeerConnection&&y.mozRTCPeerConnection&&(y.RTCPeerConnection=y.mozRTCPeerConnection),c.version<53&&["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach(function(F){const Z=y.RTCPeerConnection.prototype[F],re={[F](){return arguments[0]=new("addIceCandidate"===F?y.RTCIceCandidate:y.RTCSessionDescription)(arguments[0]),Z.apply(this,arguments)}};y.RTCPeerConnection.prototype[F]=re[F]}),c.version<68){const F=y.RTCPeerConnection.prototype.addIceCandidate;y.RTCPeerConnection.prototype.addIceCandidate=function(){return arguments[0]?arguments[0]&&""===arguments[0].candidate?Promise.resolve():F.apply(this,arguments):(arguments[1]&&arguments[1].apply(null),Promise.resolve())}}const p={inboundrtp:"inbound-rtp",outboundrtp:"outbound-rtp",candidatepair:"candidate-pair",localcandidate:"local-candidate",remotecandidate:"remote-candidate"},O=y.RTCPeerConnection.prototype.getStats;y.RTCPeerConnection.prototype.getStats=function(){const[F,Z,re]=arguments;return O.apply(this,[F||null]).then(Oe=>{if(c.version<53&&!Z)try{Oe.forEach(je=>{je.type=p[je.type]||je.type})}catch(je){if("TypeError"!==je.name)throw je;Oe.forEach((ot,Ct)=>{Oe.set(Ct,Object.assign({},ot,{type:p[ot.type]||ot.type}))})}return Oe}).then(Z,re)}}function vt(y){if("object"!=typeof y||!y.RTCPeerConnection||!y.RTCRtpSender||y.RTCRtpSender&&"getStats"in y.RTCRtpSender.prototype)return;const c=y.RTCPeerConnection.prototype.getSenders;c&&(y.RTCPeerConnection.prototype.getSenders=function(){const O=c.apply(this,[]);return O.forEach(F=>F._pc=this),O});const p=y.RTCPeerConnection.prototype.addTrack;p&&(y.RTCPeerConnection.prototype.addTrack=function(){const O=p.apply(this,arguments);return O._pc=this,O}),y.RTCRtpSender.prototype.getStats=function(){return this.track?this._pc.getStats(this.track):Promise.resolve(new Map)}}function ve(y){if("object"!=typeof y||!y.RTCPeerConnection||!y.RTCRtpSender||y.RTCRtpSender&&"getStats"in y.RTCRtpReceiver.prototype)return;const c=y.RTCPeerConnection.prototype.getReceivers;c&&(y.RTCPeerConnection.prototype.getReceivers=function(){const p=c.apply(this,[]);return p.forEach(O=>O._pc=this),p}),P(y,"track",p=>(p.receiver._pc=p.srcElement,p)),y.RTCRtpReceiver.prototype.getStats=function(){return this._pc.getStats(this.track)}}function ue(y){y.RTCPeerConnection&&!("removeStream"in y.RTCPeerConnection.prototype)&&(y.RTCPeerConnection.prototype.removeStream=function(c){m("removeStream","removeTrack"),this.getSenders().forEach(p=>{p.track&&c.getTracks().includes(p.track)&&this.removeTrack(p)})})}function et(y){y.DataChannel&&!y.RTCDataChannel&&(y.RTCDataChannel=y.DataChannel)}function se(y){if("object"!=typeof y||!y.RTCPeerConnection)return;const c=y.RTCPeerConnection.prototype.addTransceiver;c&&(y.RTCPeerConnection.prototype.addTransceiver=function(){this.setParametersPromises=[];const p=arguments[1],O=p&&"sendEncodings"in p;O&&p.sendEncodings.forEach(Z=>{if("rid"in Z&&!/^[a-z0-9]{0,16}$/i.test(Z.rid))throw new TypeError("Invalid RID value provided.");if("scaleResolutionDownBy"in Z&&!(parseFloat(Z.scaleResolutionDownBy)>=1))throw new RangeError("scale_resolution_down_by must be >= 1.0");if("maxFramerate"in Z&&!(parseFloat(Z.maxFramerate)>=0))throw new RangeError("max_framerate must be >= 0.0")});const F=c.apply(this,arguments);if(O){const{sender:Z}=F,re=Z.getParameters();"encodings"in re||(re.encodings=p.sendEncodings,Z.sendEncodings=p.sendEncodings,this.setParametersPromises.push(Z.setParameters(re).then(()=>{delete Z.sendEncodings}).catch(()=>{delete Z.sendEncodings})))}return F})}function Ce(y){if("object"!=typeof y||!y.RTCRtpSender)return;const c=y.RTCRtpSender.prototype.getParameters;c&&(y.RTCRtpSender.prototype.getParameters=function(){var p=c.apply(this,arguments);return"sendEncodings"in this?Object.assign({},{encodings:this.sendEncodings},p):p})}function be(y){if("object"!=typeof y||!y.RTCPeerConnection)return;const c=y.RTCPeerConnection.prototype.createOffer;y.RTCPeerConnection.prototype.createOffer=function(){return this.setParametersPromises&&this.setParametersPromises.length?Promise.all(this.setParametersPromises).then(()=>c.apply(this,arguments)).finally(()=>{this.setParametersPromises=[]}):c.apply(this,arguments)}}function rt(y){if("object"!=typeof y||!y.RTCPeerConnection)return;const c=y.RTCPeerConnection.prototype.createAnswer;y.RTCPeerConnection.prototype.createAnswer=function(){return this.setParametersPromises&&this.setParametersPromises.length?Promise.all(this.setParametersPromises).then(()=>c.apply(this,arguments)).finally(()=>{this.setParametersPromises=[]}):c.apply(this,arguments)}}const me=Object.freeze(Object.defineProperty({__proto__:null,shimAddTransceiver:se,shimCreateAnswer:rt,shimCreateOffer:be,shimGetDisplayMedia:function(y,c){y.navigator.mediaDevices&&"getDisplayMedia"in y.navigator.mediaDevices||y.navigator.mediaDevices&&(y.navigator.mediaDevices.getDisplayMedia=function(p){if(!p||!p.video){const O=new DOMException("getDisplayMedia without video constraints is undefined");return O.name="NotFoundError",O.code=8,Promise.reject(O)}return!0===p.video?p.video={mediaSource:c}:p.video.mediaSource=c,y.navigator.mediaDevices.getUserMedia(p)})},shimGetParameters:Ce,shimGetUserMedia:dt,shimOnTrack:Pe,shimPeerConnection:J,shimRTCDataChannel:et,shimReceiverGetStats:ve,shimRemoveStream:ue,shimSenderGetStats:vt},Symbol.toStringTag,{value:"Module"}));function le(y){if("object"==typeof y&&y.RTCPeerConnection){if("getLocalStreams"in y.RTCPeerConnection.prototype||(y.RTCPeerConnection.prototype.getLocalStreams=function(){return this._localStreams||(this._localStreams=[]),this._localStreams}),!("addStream"in y.RTCPeerConnection.prototype)){const c=y.RTCPeerConnection.prototype.addTrack;y.RTCPeerConnection.prototype.addStream=function(p){this._localStreams||(this._localStreams=[]),this._localStreams.includes(p)||this._localStreams.push(p),p.getAudioTracks().forEach(O=>c.call(this,O,p)),p.getVideoTracks().forEach(O=>c.call(this,O,p))},y.RTCPeerConnection.prototype.addTrack=function(p,...O){return O&&O.forEach(F=>{this._localStreams?this._localStreams.includes(F)||this._localStreams.push(F):this._localStreams=[F]}),c.apply(this,arguments)}}"removeStream"in y.RTCPeerConnection.prototype||(y.RTCPeerConnection.prototype.removeStream=function(c){this._localStreams||(this._localStreams=[]);const p=this._localStreams.indexOf(c);if(-1===p)return;this._localStreams.splice(p,1);const O=c.getTracks();this.getSenders().forEach(F=>{O.includes(F.track)&&this.removeTrack(F)})})}}function Xe(y){if("object"==typeof y&&y.RTCPeerConnection&&("getRemoteStreams"in y.RTCPeerConnection.prototype||(y.RTCPeerConnection.prototype.getRemoteStreams=function(){return this._remoteStreams?this._remoteStreams:[]}),!("onaddstream"in y.RTCPeerConnection.prototype))){Object.defineProperty(y.RTCPeerConnection.prototype,"onaddstream",{get(){return this._onaddstream},set(p){this._onaddstream&&(this.removeEventListener("addstream",this._onaddstream),this.removeEventListener("track",this._onaddstreampoly)),this.addEventListener("addstream",this._onaddstream=p),this.addEventListener("track",this._onaddstreampoly=O=>{O.streams.forEach(F=>{if(this._remoteStreams||(this._remoteStreams=[]),this._remoteStreams.includes(F))return;this._remoteStreams.push(F);const Z=new Event("addstream");Z.stream=F,this.dispatchEvent(Z)})})}});const c=y.RTCPeerConnection.prototype.setRemoteDescription;y.RTCPeerConnection.prototype.setRemoteDescription=function(){const p=this;return this._onaddstreampoly||this.addEventListener("track",this._onaddstreampoly=function(O){O.streams.forEach(F=>{if(p._remoteStreams||(p._remoteStreams=[]),p._remoteStreams.indexOf(F)>=0)return;p._remoteStreams.push(F);const Z=new Event("addstream");Z.stream=F,p.dispatchEvent(Z)})}),c.apply(p,arguments)}}}function Se(y){if("object"!=typeof y||!y.RTCPeerConnection)return;const c=y.RTCPeerConnection.prototype,p=c.createOffer,O=c.createAnswer,F=c.setLocalDescription,Z=c.setRemoteDescription,re=c.addIceCandidate;c.createOffer=function(je,ot){const Rt=p.apply(this,[arguments.length>=2?arguments[2]:arguments[0]]);return ot?(Rt.then(je,ot),Promise.resolve()):Rt},c.createAnswer=function(je,ot){const Rt=O.apply(this,[arguments.length>=2?arguments[2]:arguments[0]]);return ot?(Rt.then(je,ot),Promise.resolve()):Rt};let Oe=function(je,ot,Ct){const Rt=F.apply(this,[je]);return Ct?(Rt.then(ot,Ct),Promise.resolve()):Rt};c.setLocalDescription=Oe,Oe=function(je,ot,Ct){const Rt=Z.apply(this,[je]);return Ct?(Rt.then(ot,Ct),Promise.resolve()):Rt},c.setRemoteDescription=Oe,Oe=function(je,ot,Ct){const Rt=re.apply(this,[je]);return Ct?(Rt.then(ot,Ct),Promise.resolve()):Rt},c.addIceCandidate=Oe}function fe(y){const c=y&&y.navigator;if(c.mediaDevices&&c.mediaDevices.getUserMedia){const p=c.mediaDevices,O=p.getUserMedia.bind(p);c.mediaDevices.getUserMedia=F=>O(Ne(F))}!c.getUserMedia&&c.mediaDevices&&c.mediaDevices.getUserMedia&&(c.getUserMedia=function(p,O,F){c.mediaDevices.getUserMedia(p).then(O,F)}.bind(c))}function Ne(y){return y&&void 0!==y.video?Object.assign({},y,{video:u(y.video)}):y}function ye(y){if(!y.RTCPeerConnection)return;const c=y.RTCPeerConnection;y.RTCPeerConnection=function(p,O){if(p&&p.iceServers){const F=[];for(let Z=0;Z<p.iceServers.length;Z++){let re=p.iceServers[Z];!re.hasOwnProperty("urls")&&re.hasOwnProperty("url")?(m("RTCIceServer.url","RTCIceServer.urls"),re=JSON.parse(JSON.stringify(re)),re.urls=re.url,delete re.url,F.push(re)):F.push(p.iceServers[Z])}p.iceServers=F}return new c(p,O)},y.RTCPeerConnection.prototype=c.prototype,"generateCertificate"in c&&Object.defineProperty(y.RTCPeerConnection,"generateCertificate",{get:()=>c.generateCertificate})}function Ot(y){"object"==typeof y&&y.RTCTrackEvent&&"receiver"in y.RTCTrackEvent.prototype&&!("transceiver"in y.RTCTrackEvent.prototype)&&Object.defineProperty(y.RTCTrackEvent.prototype,"transceiver",{get(){return{receiver:this.receiver}}})}function sn(y){const c=y.RTCPeerConnection.prototype.createOffer;y.RTCPeerConnection.prototype.createOffer=function(p){if(p){void 0!==p.offerToReceiveAudio&&(p.offerToReceiveAudio=!!p.offerToReceiveAudio);const O=this.getTransceivers().find(Z=>"audio"===Z.receiver.track.kind);!1===p.offerToReceiveAudio&&O?"sendrecv"===O.direction?O.setDirection?O.setDirection("sendonly"):O.direction="sendonly":"recvonly"===O.direction&&(O.setDirection?O.setDirection("inactive"):O.direction="inactive"):!0!==p.offerToReceiveAudio||O||this.addTransceiver("audio"),void 0!==p.offerToReceiveVideo&&(p.offerToReceiveVideo=!!p.offerToReceiveVideo);const F=this.getTransceivers().find(Z=>"video"===Z.receiver.track.kind);!1===p.offerToReceiveVideo&&F?"sendrecv"===F.direction?F.setDirection?F.setDirection("sendonly"):F.direction="sendonly":"recvonly"===F.direction&&(F.setDirection?F.setDirection("inactive"):F.direction="inactive"):!0!==p.offerToReceiveVideo||F||this.addTransceiver("video")}return c.apply(this,arguments)}}function dn(y){"object"!=typeof y||y.AudioContext||(y.AudioContext=y.webkitAudioContext)}const yn=Object.freeze(Object.defineProperty({__proto__:null,shimAudioContext:dn,shimCallbacksAPI:Se,shimConstraints:Ne,shimCreateOfferLegacy:sn,shimGetUserMedia:fe,shimLocalStreamsAPI:le,shimRTCIceServerUrls:ye,shimRemoteStreamsAPI:Xe,shimTrackEventTransceiver:Ot},Symbol.toStringTag,{value:"Module"})),At=te(ct());function Vt(y){if(!y.RTCIceCandidate||y.RTCIceCandidate&&"foundation"in y.RTCIceCandidate.prototype)return;const c=y.RTCIceCandidate;y.RTCIceCandidate=function(p){if("object"==typeof p&&p.candidate&&0===p.candidate.indexOf("a=")&&((p=JSON.parse(JSON.stringify(p))).candidate=p.candidate.substr(2)),p.candidate&&p.candidate.length){const O=new c(p),F=At.parseCandidate(p.candidate),Z=Object.assign(O,F);return Z.toJSON=function(){return{candidate:Z.candidate,sdpMid:Z.sdpMid,sdpMLineIndex:Z.sdpMLineIndex,usernameFragment:Z.usernameFragment}},Z}return new c(p)},y.RTCIceCandidate.prototype=c.prototype,P(y,"icecandidate",p=>(p.candidate&&Object.defineProperty(p,"candidate",{value:new y.RTCIceCandidate(p.candidate),writable:"false"}),p))}function Qt(y){if(!y.RTCPeerConnection)return;const c=l(y);"sctp"in y.RTCPeerConnection.prototype||Object.defineProperty(y.RTCPeerConnection.prototype,"sctp",{get(){return void 0===this._sctp?null:this._sctp}});const p=y.RTCPeerConnection.prototype.setRemoteDescription;y.RTCPeerConnection.prototype.setRemoteDescription=function(){if(this._sctp=null,"chrome"===c.browser&&c.version>=76){const{sdpSemantics:O}=this.getConfiguration();"plan-b"===O&&Object.defineProperty(this,"sctp",{get(){return void 0===this._sctp?null:this._sctp},enumerable:!0,configurable:!0})}if(function(O){if(!O||!O.sdp)return!1;const F=At.splitSections(O.sdp);return F.shift(),F.some(Z=>{const re=At.parseMLine(Z);return re&&"application"===re.kind&&-1!==re.protocol.indexOf("SCTP")})}(arguments[0])){const O=function(je){const ot=je.sdp.match(/mozilla...THIS_IS_SDPARTA-(\d+)/);if(null===ot||ot.length<2)return-1;const Ct=parseInt(ot[1],10);return Ct!=Ct?-1:Ct}(arguments[0]),F=function(je){let ot=65536;return"firefox"===c.browser&&(ot=c.version<57?-1===je?16384:2147483637:c.version<60?57===c.version?65535:65536:2147483637),ot}(O),Z=function(je,ot){let Ct=65536;"firefox"===c.browser&&57===c.version&&(Ct=65535);const Rt=At.matchPrefix(je.sdp,"a=max-message-size:");return Rt.length>0?Ct=parseInt(Rt[0].substr(19),10):"firefox"===c.browser&&-1!==ot&&(Ct=2147483637),Ct}(arguments[0],O);let re;re=0===F&&0===Z?Number.POSITIVE_INFINITY:0===F||0===Z?Math.max(F,Z):Math.min(F,Z);const Oe={};Object.defineProperty(Oe,"maxMessageSize",{get:()=>re}),this._sctp=Oe}return p.apply(this,arguments)}}function Jt(y){if(!y.RTCPeerConnection||!("createDataChannel"in y.RTCPeerConnection.prototype))return;function c(O,F){const Z=O.send;O.send=function(){const re=arguments[0];if("open"===O.readyState&&F.sctp&&(re.length||re.size||re.byteLength)>F.sctp.maxMessageSize)throw new TypeError("Message too large (can send a maximum of "+F.sctp.maxMessageSize+" bytes)");return Z.apply(O,arguments)}}const p=y.RTCPeerConnection.prototype.createDataChannel;y.RTCPeerConnection.prototype.createDataChannel=function(){const O=p.apply(this,arguments);return c(O,this),O},P(y,"datachannel",O=>(c(O.channel,O.target),O))}function Zt(y){if(!y.RTCPeerConnection||"connectionState"in y.RTCPeerConnection.prototype)return;const c=y.RTCPeerConnection.prototype;Object.defineProperty(c,"connectionState",{get(){return{completed:"connected",checking:"connecting"}[this.iceConnectionState]||this.iceConnectionState},enumerable:!0,configurable:!0}),Object.defineProperty(c,"onconnectionstatechange",{get(){return this._onconnectionstatechange||null},set(p){this._onconnectionstatechange&&(this.removeEventListener("connectionstatechange",this._onconnectionstatechange),delete this._onconnectionstatechange),p&&this.addEventListener("connectionstatechange",this._onconnectionstatechange=p)},enumerable:!0,configurable:!0}),["setLocalDescription","setRemoteDescription"].forEach(p=>{const O=c[p];c[p]=function(){return this._connectionstatechangepoly||(this._connectionstatechangepoly=F=>{const Z=F.target;if(Z._lastConnectionState!==Z.connectionState){Z._lastConnectionState=Z.connectionState;const re=new Event("connectionstatechange",F);Z.dispatchEvent(re)}return F},this.addEventListener("iceconnectionstatechange",this._connectionstatechangepoly)),O.apply(this,arguments)}})}function nn(y){if(!y.RTCPeerConnection)return;const c=l(y);if("chrome"===c.browser&&c.version>=71||"safari"===c.browser&&c.version>=605)return;const p=y.RTCPeerConnection.prototype.setRemoteDescription;y.RTCPeerConnection.prototype.setRemoteDescription=function(O){return O&&O.sdp&&-1!==O.sdp.indexOf("\na=extmap-allow-mixed")&&(O.sdp=O.sdp.split("\n").filter(F=>"a=extmap-allow-mixed"!==F.trim()).join("\n")),p.apply(this,arguments)}}const Xt=Object.freeze(Object.defineProperty({__proto__:null,removeAllowExtmapMixed:nn,shimConnectionState:Zt,shimMaxMessageSize:Qt,shimRTCIceCandidate:Vt,shimSendThrowTypeError:Jt},Symbol.toStringTag,{value:"Module"}));!function({window:y}={},c={shimChrome:!0,shimFirefox:!0,shimEdge:!0,shimSafari:!0}){const p=g,O=l(y),F={browserDetails:O,commonShim:Xt,extractVersion:M,disableLog:x,disableWarnings:A};switch(O.browser){case"chrome":if(!ce||!q||!c.shimChrome)return p("Chrome shim is not included in this adapter release."),F;if(null===O.version)return p("Chrome shim can not determine version, not shimming."),F;p("adapter.js shimming chrome."),F.browserShim=ce,R(y),B(y),q(y),U(y),X(y),Y(y),ae(y),G(y),Q(y),Vt(y),Zt(y),Qt(y),Jt(y),nn(y);break;case"firefox":if(!me||!J||!c.shimFirefox)return p("Firefox shim is not included in this adapter release."),F;p("adapter.js shimming firefox."),F.browserShim=me,dt(y),J(y),Pe(y),ue(y),vt(y),ve(y),et(y),se(y),Ce(y),be(y),rt(y),Vt(y),Zt(y),Qt(y),Jt(y);break;case"edge":if(!$e||!Ke||!c.shimEdge)return p("MS edge shim is not included in this adapter release."),F;p("adapter.js shimming edge."),F.browserShim=$e,Je(y),ze(y),Ke(y),Ve(y),Qt(y),Jt(y);break;case"safari":if(!yn||!c.shimSafari)return p("Safari shim is not included in this adapter release."),F;p("adapter.js shimming safari."),F.browserShim=yn,ye(y),sn(y),Se(y),le(y),Xe(y),Ot(y),fe(y),dn(y),Vt(y),Qt(y),Jt(y),nn(y);break;default:p("Unsupported browser!")}}({window});const lt={ALL:"all",h:"relay"},Ue="Local";function wt(y){return y.os===n.PlatformOS.XBOX}function gt(y){return y.browser===n.PlatformBrowser.EDGE}function Ht(y){return wt(y)&>(y)}function bn(y){return y.os===n.PlatformOS.IPADOS}function Ut(y){return y.os===n.PlatformOS.IOS||bn(y)||Bt(y)}function Bt(y){return"VISIONPRO"===(y.model||y.deviceModel)}function Le(y){var c,p;return null!==(p=null===(c=y.model||y.deviceModel)||void 0===c?void 0:c.toUpperCase().startsWith("QUEST"))&&void 0!==p&&p}function V(y){return!!/^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/.test(y)}function de(y){return"0x"+("00000000"+(c=y,y=c>>>0).toString(16).toUpperCase()).slice(-8);var c}function ge(){return!!window.chrome}function Ft(y){return y.browser===n.PlatformBrowser.SAFARI}function Wt(y){return y.browser===n.PlatformBrowser.OPERAGX}function Kt(y){return y?y.os===n.PlatformOS.IOS:/iPhone|iPod/.test(navigator.userAgent)}function cn(y){return y.os===n.PlatformOS.WEBOS}function En(y){return y.os===n.PlatformOS.CHROME_OS}function kn(y){return y.os===n.PlatformOS.WINDOWS}function Ai(y){return y.os===n.PlatformOS.MAC}function Gi(y){return y.os===n.PlatformOS.TIZEN}function bt(y){return y.os===n.PlatformOS.LINUX}function Zi(y){return y.os===n.PlatformOS.ANDROID}function Rn(){var y,c;return null===(c=null===(y=window.matchMedia)||void 0===y?void 0:y.call(window,"(pointer:coarse)"))||void 0===c?void 0:c.matches}function Gn(){var y,c;return!!window.TouchEvent&&(null===(c=null===(y=window.matchMedia)||void 0===y?void 0:y.call(window,"(any-pointer:coarse)"))||void 0===c?void 0:c.matches)}function Kn(y){return y.os===n.PlatformOS.TIZEN||y.os===n.PlatformOS.WEBOS}function Ni(){let y=new Uint8Array(36);window.crypto.getRandomValues(y);let c="";for(let p=0;p<36;p++){let O=y[p]%16;8==p||13==p||18==p||23==p?c+="-":14==p?c+="4":(19==p&&(O=3&O|8),c+=O.toString(16))}return n.Log.i("{d988e7f}","{534eaf4}",c),c}function ir(y,c){for(let p=0;p<c.length&&p<y.length;++p){const O=y[p],F=c[p];if(O>F)return!0;if(O<F)return!1}if(y.length<c.length)for(let p=y.length;p<c.length;++p)if(c[p]>0)return!1;return!0}function Ir(y){return y.browser==n.PlatformBrowser.CHROME}function hr(y,c,p,O,F){if(y.browser!=n.PlatformBrowser.CHROME)return!1;const Z=[c,p??0,O??0,F??0];try{return ir(y.browserBestVer.split(".").map(re=>Number.parseInt(re)),Z)}catch{n.Log.w("{d988e7f}","{bcd8f94}")}return!0}function Ms(y,c,p,O){var F;if(!Ut(y))return!1;try{return Pr(null!==(F=y.osVersion)&&void 0!==F?F:y.osVer,c,p,O)}catch{n.Log.w("{d988e7f}","{cf4149f}")}return!c}function Pr(y,c,p,O){const F=y.replace(/[^0-9.]/,"").split(".").map(re=>Number.parseInt(re)),Z=[p,O??0];return 1===F.length&&F.push(0),c?F.every((re,Oe)=>re===Z[Oe]):ir(F,Z)}function lo(y,c,p){return Ms(y,!0,c,p)}function js(y,c,p){return Ms(y,!1,c,p)}function Vn(y,c,p){return{code:y,description:c,error:null!==p?p:void 0}}function Ei(y){switch(y){case n.NetworkType.ETHERNET:return"ETHERNET";case n.NetworkType.WIFI:return"WIFI";case n.NetworkType.WIFI_2_4:return"WIFI_2_4";case n.NetworkType.WIFI_5_0:return"WIFI_5_0";case n.NetworkType.MOBILE:return"MOBILE";case n.NetworkType.MOBILE_2G:return"MOBILE_2G";case n.NetworkType.MOBILE_3G:return"MOBILE_3G";case n.NetworkType.MOBILE_4G:return"MOBILE_4G";case n.NetworkType.MOBILE_5G:return"MOBILE_5G";case n.NetworkType.OTHER:case n.NetworkType.BLUETOOTH:case n.NetworkType.WIMAX:return"OTHER";default:return"UNKNOWN"}}function ai(y){return y.replace(/(partnerCustomData" *: *")((\\"|[^"])*)(?=")/g,"$1***")}function Li(y){const c=Object.values(lt);return y.iceTransportPolicy&&!c.includes(y.iceTransportPolicy)&&(n.Log.w("{d988e7f}","{5776afe}",JSON.stringify(y??"undefined",null,2)),y.iceTransportPolicy=void 0),y}let Lr={o:!0,l:!1};function Mn(y){if(y)switch(y){case"enable":case"on":case"1":case"true":return!0;case"disable":case"off":case"0":case"false":return!1}}class Qn{constructor(c){this.u=new Map,this.v=c}addListener(c,p){const O=this.u.get(c);if(void 0!==O)O.add(p);else{const F=new Set;F.add(p),this.u.set(c,F)}}removeListener(c,p){let O=this.u.get(c);O?.delete(p)}removeAllListenersOfEvent(c){this.u.delete(c)}removeAllListeners(){this.u.clear()}hasListener(c){const p=this.u.get(c);return void 0!==p&&p.size>0}emit(c,...p){try{let O=this.u.get(c);if(O)for(const F of O)this.v?F(...p):window.setTimeout(F,0,...p)}catch(O){console.log("Exception in emit: "+O)}}}function Zn(y,c,p,O){let F=[];(function(Oe,je){let ot=[];do{ot.push(Oe),Oe=Object.getPrototypeOf(Oe)}while(""!=Oe.name);ot.reverse();for(let Ct of ot)je.push(Ct.toString().replace(/(extends )[^ {]*\.([^ ]*[ {])/,"$1$2"))})(y,F),F.push(`${c.toString()}`),O?(F.push(`${O.toString()}`),F.push(`onconnect = (event) => { ${O.name}(${y.name}, event, ${c.name}); };`)):F.push(`onmessage = (event) => { ${c.name}(${y.name}, event); };`),F.push(`${p.toString()}`),F.push(`onerror = (event) => { ${p.name}(event); };`);const re=new Blob(F,{type:"text/javascript"});return URL.createObjectURL(re)}function fi(y,c,p){if(!y.prototype.m)throw new Error("Invalid Worker class provided");const O=Zn(y,An,zn),F=new Worker(O);return URL.revokeObjectURL(O),ds(F,c,p),F}function yi(y,c,p){const O=window;if(void 0===O.SharedWorker)throw new Error("SharedWorker not supported");if(!y.prototype.m)throw new Error("Invalid Worker class provided");const F=Zn(y,An,zn,bs),Z=new O.SharedWorker(F);return URL.revokeObjectURL(F),ds(Z,c,p),Z}Lr.o||n.Logger.setLogLevel(n.LogLevel.ERROR),Lr.l&&n.Logger.setLogMechanism(n.LogMechanism.Console);const tr=new Map;function qi(y){return"port"in y?y.port:y}function Br(y){y&&Sr(qi(y))}function Sr(y){if(tr.has(y))return;y.postMessage.bind(y)({S:2,data:null});const p=window.setTimeout(()=>{const O=tr.get(y);O&&(clearTimeout(O),tr.delete(y)),y instanceof Worker?y.terminate():y instanceof MessagePort&&y.close()},150);tr.set(y,p)}function ds(y,c,p){const O=qi(y),F=O.postMessage.bind(O);let Z=!1;const re=Oe=>{Z||(Z=!0,n.Log.e("{10ca8e2}","{03baf25}",Oe,typeof Oe),Sr(O),p(Oe))};O.onmessage=Oe=>{const je=Oe.data;let Ct=je.data;switch(je.S){case 1:F({S:3,data:null});break;case 4:c(Ct),Sr(O);break;case 5:re(Ct)}},"onmessageerror"in O&&(O.onmessageerror=re),y.onerror=re,F({S:0,data:null})}function bs(y,c,p){const O=globalThis;O.port=c.ports[0],O.port.onmessage=p.bind(self,y)}function An(y,c){var p,O;const F=globalThis;F.I=null!==(p=F.I)&&void 0!==p?p:{};const Z=c.data;let re=Z.S,Oe=Z.data,je="port"in F?F.port:self;switch(re){case 0:const ot=new y;F.I[y.name]=ot,je.postMessage({S:1,data:null});break;case 2:null===(O=self?.close)||void 0===O||O.call(self);break;case 3:Promise.resolve(F.I[y.name].m()).then(Rt=>{je.postMessage({S:4,data:Rt})});break;default:throw new Error(`Unknown message: ${re}:${Oe}`)}}function zn(y){const c=globalThis;("port"in c?c.port:self).postMessage({S:5,data:y})}const Jn="0";class di{constructor(){}C(){return this.T(this.M())}M(){return self.OffscreenCanvas?new OffscreenCanvas(1,1):document.createElement("canvas")}T(c){const p=c.getContext("webgl"),O=p&&p.getExtension("WEBGL_debug_renderer_info");return O?{P:p&&p.getParameter(O.UNMASKED_VENDOR_WEBGL),D:p&&p.getParameter(O.UNMASKED_RENDERER_WEBGL),R:!0}:{P:"",D:"",R:!1}}m(){return this.C()}}class Oi{constructor(){}m(){const c=navigator.userAgentData;return c?c.getHighEntropyValues(["platform","architecture","uaFullVersion","platformVersion","model","bitness","fullVersionList"]).then(p=>(p||(p={}),p.brands||(p.brands=c.brands),p.mobile||(p.mobile=c.mobile),p)):Promise.resolve(void 0)}}class Wi{constructor(){}m(){let c={N:!1,O:"",P:""};if(navigator.userAgent){const p=navigator.userAgent.toUpperCase(),O=["BRAVIA","TIZEN","PHILIPSTV","GOOGLETV","CRKEY","CHROMECAST","SHIELDTV"],F=["SONY","SAMSUNG","PHILIPS","GOOGLE","GOOGLE","GOOGLE","NVIDIA"];if(new RegExp(["BRAVIA","SMARTTV","SMART-TV","PHILIPSTV","GOOGLETV","CRKEY","CHROMECAST","SHIELD Android TV"].join("|"),"i").test(p)){c.N=!0;const Z=p.match(O.join("|"));if(Z)for(let re=0;re<O.length;re++)Z[0]==O[re]&&(c.O=O[re],c.P=F[re],"CRKEY"==Z[0]&&(c.O="CHROMECAST"))}}return Promise.resolve(c)}}class mr{constructor(){}m(){return{platform:navigator.platform}}}const qr=new class{constructor(){this.start=0,this.finish=0,this.F=!1,this.L=!1,this.U=!1,this.G=!1,this.H=!1,this.V=!1,this.W=!1,this._=!1,this.$=!1,this.K=!0,this.j=!1,this.J=!1,this.Z=!1,this.tt=!1,this.it=!1,this.st=!1,this.et=!1,this.nt=!1,this.ht=!1,this.ot=!1,this.rt=!1,this.dt=!1,this.ct=!1,this.lt=!1,this.ut=!1,this.At=!1,this.vt=!1,this.ft=!1,this.gt=!1,this.wt=!1,this.St=!1,this.bt=!1,this.kt=!1,this.yt=!1,this.It=!1,this.Ct=!1,this.Et=!1,this.Tt=!1,this.Mt=!1,this.Pt=!1,this.Dt=!1,this.Rt=!1,this.Nt=!1,this.xt=!1,this.Ot=!1,this.Bt=!1,this.Ft=!1,this.Lt=!1,this.Ut=!1,this.Gt=!1,this.Ht=!1,this.Vt=!1,this.Wt=!1,this._t=!1,this.qt=!1,this.$t=!1,this.zt=!1,this.Kt=!1,this.Qt=!1,this.Yt=!1,this.Xt=!1,this.jt=!1,this.Jt=!1,this.Zt=!1,this.ti=!1,this.ii=!1,this.si=!1,this.ei=!1,this.ni=!1,this.hi=!1,this.oi=!1,this.ri=!1,this.ai=!1,this.di=!1,this.ci=!1,this.li=!1,this.ui=!1,this.Ai=!1,this.fi=!1,this.pi=!1,this.mi=!1,this.gi=!1,this.wi=!1,this.Si=!1,this.bi=!1,this.ki=!1,this.yi=!1,this.Ii=!1,this.Ci=!1,this.Ei=!1,this.Ti=!1,this.Mi=!1,this.Pi=!1,this.Di=!1,this.Ri=!1,this.Ni=!1,this.xi=!1,this.Oi=!1,this.Bi=!1,this.Fi=!1,this.Li=!1,this.Ui=!1,this.Gi=!1,this.Hi=!1,this.Vi=!1,this.Wi=!1,this._i=!1,this.$i=!1,this.zi=!1,this.Ki=!1,this.Qi=!1,this.Yi=!1,this.Xi=!1,this.ji=!1,this.Ji=!1,this.Zi=!1,this.ss=!1,this.es=!1,this.ns=!1,this.hs=!1,this.rs=!1,this.ds=!1,this.cs=!1,this.ls=!1,this.us=!1,this.As=!1,this.vs=!1,this.fs=!1,this.ps=!1,this.gs=!1,this.ws=!1,this.Ss=!1,this.bs=!1,this.ks=!1,this.ys=!1,this.Is=0,this.Cs=0,this.Es=0,this.Ts=0,this.Ms=0,this.Ps=0,this.Ds=0,this.gpuDetail="",this.Rs={os:n.PlatformOS.UNKNOWN,osRawVer:Jn,osVer:Jn,osVersion:Jn,browser:n.PlatformBrowser.UNKNOWN,browserVer:Jn,browserFullVer:Jn,chromiumFullVer:Jn,browserBestVer:Jn,forging:!0,spoofing:!0,confidence:0,totalTime:0,vendor:"",make:"",gpuDetail:""},this.Ns=[],this.xs=/Chrome\/(([0-9]+)\.[0-9]+\.[0-9]+\.[0-9]+)/}Os(){return this.Bs||(this.Bs=this.Fs()),this.Bs}Fs(){return this.start=performance.now(),new Promise((y,c)=>{this.ws?y(this.Rs):this.Ls().then(()=>{this.ws=!0,y(this.Rs)})})}Us(){const y=window.speechSynthesis;if(y){const c=y.getVoices;let p=c?.call(y)||[];return new Promise((O,F)=>{if(!c||p.length)this.Gs(p),O();else{let Z=0;const re=()=>{p=c.call(y);const Oe=performance.now();if(0==p.length&&(0==Z||Oe-Z<600))return this.Is&&clearTimeout(this.Is),void(this.Is=window.setTimeout(re,150));this.Is&&(clearTimeout(this.Is),this.Is=0),this.Gs(p),O()};void 0!==y.onvoiceschanged&&(y.onvoiceschanged=re),this.Hs(()=>{p=c.call(y),p.length?re():(this.Is=window.setTimeout(re,150),Z=performance.now())})}})}return new Promise(c=>{c()})}Gs(y){if(!this.Ss){for(const c of y){const p=c.voiceURI||"";p.startsWith("Chrome OS")?this.F=!0:p.startsWith("Google")?this.L=!0:p.includes("moz-tts")?(p.includes("android")&&(this.G=!0,this.It=!0),this.U=!0):"English United States"==p&&(this.H=!0),p.includes("Microsoft")?(this.V=!0,p.includes("Online")?this._=!0:this.$=!0):p.includes("com.apple")?(this.W=!0,p.includes("Ellen")&&(this.K=!0)):"Zuzana"==p&&(this.W=!0)}this.j=this.W||this.V||this.L||this.F||this.U||this.H,this.Ss=!0}}Ls(){var y=this;return i(function*(){yield Promise.all([y.Vs(),y.Ws(),y._s(),y.Us(),y.qs(),y.$s(),y.zs(),y.Ks(),y.Qs(),y.Ys(),y.Xs(),y.js(),y.Js()]).then(()=>{y.Zs(),y.te()})})()}$s(){var y,c,p,O,F,Z,re,Oe,je,ot,Ct;const Rt=window,Et=Rt.hasOwnProperty,qt=Rt.navigator,gn=Rt.Intl,tn=Rt.CSS,Pn=tn?.supports,Bn=Rt.Promise;Et.call(Rt,"MSMediaKeys")?this.Z=!0:Et.call(Rt,"_firefoxTV_cachedScrollPosition")?this.ot=!0:void 0!==Rt.__edgeActiveElement||Rt.__edgeTrackingPreventionStatistics?this.tt=!0:Rt.safari?this.it=!0:Rt.opr?this.rt=!0:Rt.oprt?this.dt=!0:qt.brave?this.ut=!0:void 0!==Rt.OperaTouch||Rt.ethereum?(this.lt=!0,this.It=!0):Rt.OperaGXDownloads||Rt.OperaGXGames?(this.ct=!0,this.It=!0):Rt.yandex?this.At=!0:Rt.QuickAccess?this.vt=!0:Rt.chrome?this.st=!0:Rt.netscape?this.nt=!0:Rt.__firefox__?this.ht=!0:Rt.__gCrWeb?this.et=!0:Rt.ReactNativeWebView&&(this.ft=!0),void 0!==Rt.contacts||void 0!==Rt.ContactsManager?this.It=!0:Et.call(Rt,"onwebOSAccessibilityAlertDone")||Rt.webOSSystem||Et.call(Rt,"onwebosaccessibilityalertdone")?this.Ct=!0:Rt.tizen||Rt.TizenTVApiInfo||Rt.addEdgeEffectONSCROLLTizenUIF||Rt.tizentvwasm?this.Et=!0:Rt.HardkeyEvent&&(this.Tt=!0),!(null===(y=qt.mediaCapabilities)||void 0===y)&&y.decodingInfo&&(this.wi=!0),Rt.BigInt&&(this.mi=!0,Rt.BigInt64Array&&(this.gi=!0)),Rt.PerformanceNavigationTiming&&(this.Si=!0),Rt.WebAssembly&&Rt.WebAssembly.Exception&&(this.bi=!0),Rt.BroadcastChannel&&(this.ki=!0),Rt.GPUBuffer&&(this.yi=!0),Rt.SharedWorker&&(this.xi=!0),Rt.MediaRecorder&&(this.Ii=!0),Rt.CSSCounterStyleRule&&(this.Oi=!0);const ei=null===(c=Rt.ArrayBuffer)||void 0===c?void 0:c.prototype;if(ei?.hasOwnProperty("transfer")&&(this.Bi=!0),Et.call(Rt,"ondevicelight")&&(this.Ci=!0),!(null===(p=Rt.AbortSignal)||void 0===p)&&p.abort&&(this.Ei=!0),Et.call(Rt,"onbeforeinput")&&(this.Ti=!0),gn){gn.DisplayNames&&(this.Mi=!0);const er=new gn.Collator("zh",{se:"pinyin"});this.Pi="pinyin"==(null===(O=er.resolvedOptions())||void 0===O?void 0:O.se)}Rt.Credential&&(this.Ri=!0),!(null===(F=Rt.browser)||void 0===F)&&F.runtime&&(this.Ni=!0),Rt.LargestContentfulPaint&&(this.Fi=!0),tn?.registerProperty&&(this.Li=!0);const jn=null===(Z=Rt.HTMLElement)||void 0===Z?void 0:Z.prototype;jn?.hasOwnProperty("autofocus")&&(this.Ui=!0),qt.contacts&&(this.Gi=!0),Rt.TrustedHTML&&(this.Hi=!0),Rt.WakeLock&&(this.Vi=!0),Bn?.any&&(this.Wi=!0),Rt.FileSystemHandle&&(this._i=!0),!(null===(re=Rt.Atomics)||void 0===re)&&re.waitAsync&&(this.$i=!0),Pn?.call(tn,"aspect-ratio: auto")&&(this.zi=!0),Rt.ReadableStreamBYOBReader&&(this.Ki=!0),Pn?.call(tn,"overflow: clip")&&(this.Qi=!0),Pn?.call(tn,"content-visibility: auto")&&(this.Xi=!0),Rt.CSSStartingStyleRule&&(this.ji=!0),Bn?.withResolvers&&(this.Ji=!0);const si=null===(Oe=Rt.CanvasRenderingContext2D)||void 0===Oe?void 0:Oe.prototype;si?.hasOwnProperty("reset")&&(this.Zi=!0);const vi=null===(je=Rt.Set)||void 0===je?void 0:je.prototype;vi?.hasOwnProperty("difference")&&(this.ss=!0),Pn?.call(tn,"selector(:user-valid)")&&(this.es=!0);const bi=null===(ot=Rt.InputEvent)||void 0===ot?void 0:ot.prototype;bi?.hasOwnProperty("isComposing")&&(this.ns=!0),Rt.VRDisplay&&(this.hs=!0);const $i=null===(Ct=Rt.HTMLVideoElement)||void 0===Ct?void 0:Ct.prototype;this.Yi=$i?.hasOwnProperty("webkitSupportsPresentationMode")}Ks(){return new Promise((y,c)=>{const p="Plat",O=Rt=>{if(this.ys)return;const Et=Rt.platform;"MacIntel"===Et?this.gt=!0:"iPhone"===Et?this.wt=!0:"Win32"===Et?this.St=!0:"iPad"===Et?this.bt=!0:"FreeBSD amd64"===Et?this.yt=!0:"Windows"===Et&&(this.St=!0,this.ee=!0),Et.startsWith("Linux")&&(this.kt=!0),this.ys=!0};let F=!1;const Z=Rt=>{if(this.Ms)clearTimeout(this.Ms),this.Ms=0;else if(F)return n.Log.w("{3c72abb}","{b02109c}"),void this.ne(p,this.Ds-performance.now());O(Rt),y()};let re=!1,Oe=!1;const je=Rt=>{"string"==typeof Rt?this.he(p,Rt):"data"in Rt?this.oe(p,Rt):this.re(p,Rt),Oe=!0,n.Log.e("{3c72abb}","{6350135}",Rt)};let ot,Ct=0;try{re=!0,ot=fi(mr,Z,je),Ct=150}catch(Rt){Oe=!0,this.ae(p,Rt),n.Log.w("{3c72abb}","{79668e5}",Rt)}this.Hs(()=>{this.ys||(this.Ms=window.setTimeout(()=>{this.Ms=0,this.Ds=performance.now(),Oe?n.Log.w("{3c72abb}","{d9e1e01}"):re?(n.Log.w("{3c72abb}","{a8d68cb}"),this.de(p)):(n.Log.i("{3c72abb}","{53e2225}"),this.ce(p));const Rt=(new mr).m();Z(Rt),F=!0},Ct))})})}Qs(){const y=window;y.ApplePaySession&&y.ApplePaySession.canMakePayments&&(this.Di=!0)}Vs(){return new Promise((y,c)=>{const p="GL",O=Rt=>{if(this.bs)return;const Et=Rt.D;if(Et.startsWith("ANGLE")){let gn=Et.split(",");gn?.length>1&&(this.gpuDetail=gn[1].trim())}else this.gpuDetail=Et;const qt=Et.toLowerCase();if(Et.includes("SraKmd")){this.Qt=!0,Et.includes("SraKmd_arden")&&(this.Yt=!0);const gn=/D3D11-(\d{2,}\.\d{1,}\.\d{5,}\.\d{4,})/.exec(Et);gn&&gn.length>1&&(this.osVersion=gn[1])}else Et.includes("AMD")&&qt.includes("vangogh")&&(this.Xt=!0);this.us=Rt.R,this.bs=!0};let F=!1;const Z=Rt=>{if(this.Cs)clearTimeout(this.Cs),this.Cs=0;else if(F)return n.Log.w("{3c72abb}","{c1bb269}"),void this.ne(p,this.Ps-performance.now());O(Rt),y()};let re=!1,Oe=!1;const je=Rt=>{"string"==typeof Rt?this.he(p,Rt):"data"in Rt?this.oe(p,Rt):this.re(p,Rt),Oe=!0,n.Log.e("{3c72abb}","{9e45306}",Rt)};let ot,Ct=0;try{self.OffscreenCanvas&&(re=!0,ot=fi(di,Z,je),Ct=150)}catch(Rt){Oe=!0,this.ae(p,Rt),n.Log.w("{3c72abb}","{caf8cd7}",Rt)}this.Hs(()=>{this.bs||(this.Cs=window.setTimeout(()=>{this.Cs=0,this.Ps=performance.now(),Oe?n.Log.w("{3c72abb}","{fbe663c}"):re?(n.Log.w("{3c72abb}","{2577061}"),this.de(p)):(n.Log.i("{3c72abb}","{95c252e}"),this.ce(p));const Rt=(new di).m();Z(Rt),F=!0},Ct))})})}le(y){var c,p,O;this.As=!0,y.mobile&&(this.qt=!0);const F=y.brands||[],Z=y.fullVersionList;let re=0;for(let Oe=0;Oe<F.length;++Oe){const je=F[Oe],ot=je.brand,Ct=je.version,Rt=null===(c=Z?.[Oe])||void 0===c?void 0:c.version;"Google Chrome"===ot?(this.xt=!0,this.browserVersion=Ct,this.browserFullVer=Rt):"Microsoft Edge"===ot?(this.Ot=!0,this.browserVersion=Ct,this.browserFullVer=Rt):"OperaMobile"===ot?this.Ft||(this.Bt=!0,this.browserVersion=Ct,this.browserFullVer=Rt):"Opera"===ot?this.Bt||this.Ft||(this.Bt=!0,this.browserVersion=Ct,this.browserFullVer=Rt):"Opera GX"===ot?(this.Ft=!0,this.browserVersion=Ct,this.browserFullVer=Rt):"Yandex"===ot||"YaBrowser"===ot?(this.Lt=!0,this.browserVersion=Ct,this.browserFullVer=Rt):"Brave"===ot?(this.Ut=!0,this.browserVersion=Ct,this.browserFullVer=Rt):"Samsung Internet"===ot?(this.Gt=!0,this.browserVersion=Ct,this.browserFullVer=Rt):"Oculus Browser"==ot?(this.Ht=!0,this.Ai=!0,this.deviceName="QUEST",this.browserVersion=Ct,this.browserFullVer=Rt):"Chromium"===ot?(this.Vt=!0,this.browserVersion=null!==(p=this.browserVersion)&&void 0!==p?p:Ct,this.browserFullVer=null!==(O=this.browserFullVer)&&void 0!==O?O:Rt,this.ue=Ct,this.Ae=Rt):"Android WebView"===ot?(this.Wt=!0,this.browserVersion=Ct,this.browserFullVer=Rt):re++}re>2&&(this._t=!0)}Js(){return new Promise((y,c)=>{const p=Ct=>{Ct.N&&(this.fi=Ct.N,this.ve=Ct.P,this.fe=Ct.O)},O=Ct=>{this.Ts&&(clearTimeout(this.Ts),this.Ts=0),p(Ct),y()};let F=!1,Z=!1;const re="TV",Oe=Ct=>{"string"==typeof Ct?this.he(re,Ct):"data"in Ct?this.oe(re,Ct):this.re(re,Ct),Z=!0,n.Log.e("{3c72abb}","{f49e1b4}",Ct)};let je,ot=0;try{self.SharedWorker&&(F=!0,je=yi(Wi,O,Oe),ot=150)}catch(Ct){Z=!0,n.Log.w("{3c72abb}","{2066dd6}",Ct),this.ae(re,Ct)}this.Ts=window.setTimeout(()=>{Br(je),Z?n.Log.w("{3c72abb}","{cdb3848}"):F?(n.Log.w("{3c72abb}","{f01188c}"),this.de(re)):(n.Log.i("{3c72abb}","{db9e3f4}"),this.ce(re)),(new Wi).m().then(Ct=>{O(Ct)})},ot)})}Xs(){navigator.maxTouchPoints&&navigator.maxTouchPoints>0&&(this.Kt=!0)}js(){const y=window;this.rs=y.matchMedia("(hover: hover)").matches,this.ds=y.matchMedia("(hover: none)").matches,this.cs=y.matchMedia("(pointer: coarse)").matches,this.ls=y.matchMedia("(pointer: fine)").matches}Ys(){const y=navigator.plugins;for(const c of y){const p=c.name;"Native Client"===p?this.Mt=!0:p.startsWith("Microsoft Edge PDF")?(this.Rt=!0,this.J=!0):p.startsWith("Chrome PDF")?this.Pt=!0:p.startsWith("Chromium PDF")?this.Dt=!0:p.startsWith("PPAPI SAMSUNGHEALTH")&&(this.Nt=!0,this.Et=!0)}}pe(){return i(function*(){if(!window.createImageBitmap)return!1;const y=yield fetch("data:image/avif;base64,AAAAGGZ0eXBhdmlmAAAAAGF2aWZtaWYxAAADm21ldGEAAAAAAAAAIWhkbHIAAAAAAAAAAHBpY3QAAAAAAAAAAAAAAAAAAAAADnBpdG0AAAAAAAEAAAAiaWxvYwAAAABEQAABAAEAAAAAA7sAAQAAAAAAAAAjAAAAI2lpbmYAAAAAAAEAAAAVaW5mZQIAAAAAAQAAYXYwMQAAAAMbaXBycAAAAvxpcGNvAAACrGNvbHJwcm9mAAACoGxjbXMEMAAAbW50clJHQiBYWVogB+UACAAJAAsAEAAFYWNzcE1TRlQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAPbWAAEAAAAA0y1sY21zAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAANZGVzYwAAASAAAABAY3BydAAAAWAAAAA2d3RwdAAAAZgAAAAUY2hhZAAAAawAAAAsclhZWgAAAdgAAAAUYlhZWgAAAewAAAAUZ1hZWgAAAgAAAAAUclRSQwAAAhQAAAAgZ1RSQwAAAhQAAAAgYlRSQwAAAhQAAAAgY2hybQAAAjQAAAAkZG1uZAAAAlgAAAAkZG1kZAAAAnwAAAAkbWx1YwAAAAAAAAABAAAADGVuVVMAAAAkAAAAHABHAEkATQBQACAAYgB1AGkAbAB0AC0AaQBuACAAcwBSAEcAQm1sdWMAAAAAAAAAAQAAAAxlblVTAAAAGgAAABwAUAB1AGIAbABpAGMAIABEAG8AbQBhAGkAbgAAWFlaIAAAAAAAAPbWAAEAAAAA0y1zZjMyAAAAAAABDEIAAAXe///zJQAAB5MAAP2Q///7of///aIAAAPcAADAblhZWiAAAAAAAABvoAAAOPUAAAOQWFlaIAAAAAAAACSfAAAPhAAAtsRYWVogAAAAAAAAYpcAALeHAAAY2XBhcmEAAAAAAAMAAAACZmYAAPKnAAANWQAAE9AAAApbY2hybQAAAAAAAwAAAACj1wAAVHwAAEzNAACZmgAAJmcAAA9cbWx1YwAAAAAAAAABAAAADGVuVVMAAAAIAAAAHABHAEkATQBQbWx1YwAAAAAAAAABAAAADGVuVVMAAAAIAAAAHABzAFIARwBCAAAADGF2MUOBDQwAAAAAFGlzcGUAAAAAAAAAEAAAABAAAAAoY2xhcAAAAAEAAAABAAAAAQAAAAH////xAAAAAv////EAAAACAAAAF2lwbWEAAAAAAAAAAQABBIGCA4QAAAArbWRhdBIACgkfzP/IIEBA0oAyFGW+OwPr0bIHHHHBATZPtaQ3RWTA").then(c=>c.blob());return createImageBitmap(y).then(()=>!0,()=>!1)})()}_s(){var y=this;return i(function*(){const c=window;y.pi=!!c.chrome&&(yield y.pe())})()}Ws(){return new Promise((y,c)=>{if(!navigator.userAgentData)return void y();const p=Ct=>{var Rt,Et;if(this.ks)return;const qt=Ct.model,gn=Ct.platform,tn=Ct.platformVersion,Pn=Ct.uaFullVersion,Bn=Ct.bitness;this.$t=Ct.mobile,this.zt=navigator.userAgentData.mobile,""==qt&&""==gn&&""==tn&&""==Pn?this.lt&&this.It||this.Et||null==Bn||this.It&&!this.st||(this.vs=!0):""==Bn&&("Android"==gn||(this.vs=!0)),qt&&("Xbox"===qt?this.jt=!0:qt.startsWith("AFT")?(this.Jt=!0,this.ui=!0):qt.includes("BRAVIA")?(this.ui=!0,this.Zt=!0):"Chromecast"===qt?(this.ui=!0,this.ti=!0,this.deviceName="CHROMECAST"):"SHIELD Android TV"===qt?(this.ui=!0,this.ii=!0,this.deviceName="SHIELDTV"):qt.startsWith("MiTV")?(this.ui=!0,this.si=!0,this.deviceName="MITV"):qt.startsWith("TVision")?(this.ui=!0,this.ei=!0,this.deviceName="TVISION"):qt.startsWith("Quest")&&(this.Ai=!0,this.ni=!0,this.me=qt,this.deviceName="QUEST")),"Windows"===gn?this.hi=!0:"macOS"===gn?this.oi=!0:"Chrome OS"===gn||"ChromeOS"===gn?this.ri=!0:"Chromium OS"===gn?this.ai=!0:"Android"===gn?this.di=!0:"Linux"===gn&&(""==tn?(this.di=!0,this.li=!0):this.ci=!0);const ei=si=>{if(si&&"string"==typeof si)return si.replace(/[-._,:;|#@]/g,".")},jn=si=>{if(!si||!this.ue||+this.ue<95)return si;switch(si.split(".").map(vi=>Number.parseInt(vi))[0]){case 0:return"8-";case 1:return"10.0.10240";case 2:return"10.0.10586";case 3:return"10.0.14393";case 4:return"10.0.15063";case 5:return"10.0.16299";case 6:return"10.0.17134";case 7:return"10.0.17763";case 8:return"10.0.18362+";case 9:return"10.0.9";case 10:return"10.0.19041+";case 11:return"10.0.11";case 12:return"10.0.12";case 13:return"11.0.0";case 14:return"11.0.22000.0";case 15:return"11.0.22621.0";default:return"11.0.22621.0+"}};Ct.brands&&Ct.brands.length>0&&this.le(Ct),this.browserFullVer=null!==(Rt=ei(this.browserFullVer))&&void 0!==Rt?Rt:ei(Pn),this.ge=tn,this.osVersion=null!==(Et=this.osVersion)&&void 0!==Et?Et:(si=>this.hi&&!this.jt?jn(si):si)(ei(tn)),this.ks=!0},O=Ct=>{Ct&&(this.Es&&(clearTimeout(this.Es),this.Es=0),p(Ct),y())};let F=!1,Z=!1;const re="HE",Oe=Ct=>{"string"==typeof Ct?this.he(re,Ct):"data"in Ct?this.oe(re,Ct):this.re(re,Ct),Z=!0,n.Log.e("{3c72abb}","{217e106}",Ct)};let je,ot=0;try{self.SharedWorker&&(F=!0,je=yi(Oi,O,Oe),ot=300)}catch(Ct){Z=!0,n.Log.w("{3c72abb}","{a583546}",Ct),this.ae(re,Ct)}this.Es=window.setTimeout(()=>{Br(je),Z?n.Log.w("{3c72abb}","{dbf4b42}"):F?(n.Log.w("{3c72abb}","{0bf7a38}"),this.de(re),this.gs=!0):(n.Log.i("{3c72abb}","{7a82b59}"),this.ce(re)),(new Oi).m().then(Ct=>{O(Ct)})},ot)})}qs(){return new Promise(y=>{const c=navigator.userAgent;if(c){const p=c.match(this.xs);p&&(this.we=p?.[1],this.Se=p?.[2])}y()})}zs(){var y,c,p,O;const F=window.RequestCrowNativeApi;if(F){let Z=0;const re=new Promise((Et,qt)=>{Z=window.setTimeout(()=>{qt("timeout")},100)}),Oe=window.zoneless,je=null!==(c=null===(y=Oe?.windowAddEventListener)||void 0===y?void 0:y.bind(window))&&void 0!==c?c:window.addEventListener.bind(window),ot=null!==(O=null===(p=Oe?.windowRemoveEventListener)||void 0===p?void 0:p.bind(window))&&void 0!==O?O:window.removeEventListener.bind(window);let Ct;const Rt=new Promise(Et=>{Ct=qt=>{Et(qt.detail)},je("CrowNativeApiEvent",Ct),F(JSON.stringify({be:"RequestBrowserVersion"}))}).then(Et=>{var qt;const gn=null===(qt=Et.browserVersion)||void 0===qt?void 0:qt.match(this.xs);gn&&(this.browserFullVer=gn?.[1],this.browserVersion=gn?.[2])});return Promise.race([Rt,re]).catch(()=>{n.Log.d("{3c72abb}","{841bf6f}")}).finally(()=>{window.clearTimeout(Z),ot("CrowNativeApiEvent",Ct)})}return Promise.resolve()}ke(y,c){if(y==c)return!1;let p=/^(\d+)[.]?(.*)/,O=p.exec(y),F=p.exec(c);return null==O?null==F:null!=F&&O[1]==F[1]&&(""==O[2]||O[2].length<F[2].length)}Zs(){this.As&&(this.gt==this.oi&&this.St==this.hi||(this.vs=!0),(this.ri||this.ai||this.di||this.ci)&&!this.kt&&(this.vs=!0),this.browserVersion&&this.browserFullVer&&!this.ke(this.browserVersion,this.browserFullVer)&&(this.Bt||this.Ft?this.ue&&!this.ke(this.ue,this.browserFullVer)&&(this.vs=!0):this.vs=!0),(this.ri&&!this.xt||this.ai&&!this.Vt)&&(this.vs=!0),this.L?(this.V&&!this.hi||this.W&&!this.oi)&&(this.vs=!0):this.F?this.ri||(this.vs=!0):this.U?this.vs=!0:this.V||this.W&&(this.oi||(this.vs=!0)),this.fs=this.As&&!this.vs,this.ps=this.As&&this.vs)}te(){var y,c,p,O,F,Z,re,Oe,je,ot,Ct,Rt,Et,qt,gn,tn,Pn,Bn,ei,jn;this.ye(),this.finish=performance.now(),this.Rs.os=null!==(y=this.Ie)&&void 0!==y?y:n.PlatformOS.UNKNOWN,this.Rs.browser=null!==(c=this.Ce)&&void 0!==c?c:n.PlatformBrowser.UNKNOWN,this.Rs.osRawVer=null!==(p=this.ge)&&void 0!==p?p:Jn,this.Rs.osVersion=null!==(O=this.osVersion)&&void 0!==O?O:Jn,this.Rs.osVer=this.Rs.osVersion,this.Rs.browserVer=null!==(F=this.browserVersion)&&void 0!==F?F:Jn;let si=null!==(Z=this.browserFullVer)&&void 0!==Z?Z:void 0;this.Rs.browserFullVer=si??Jn,this.Rs.browserBestVer=null!==(re=si??this.Rs.browserVer)&&void 0!==re?re:Jn;let vi=null!==(Oe=this.Ae)&&void 0!==Oe?Oe:void 0;this.Rs.chromiumFullVer=null!==(je=vi??this.ue)&&void 0!==je?je:Jn,this.Rs.confidence=null!==(qt=null!==(Et=null!==(Rt=null!==(Ct=null!==(ot=this.Ee)&&void 0!==ot?ot:this.Ie===n.PlatformOS.UNKNOWN?0:void 0)&&void 0!==Ct?Ct:this.Ce===n.PlatformBrowser.UNKNOWN?5:void 0)&&void 0!==Rt?Rt:this.gs?6:void 0)&&void 0!==Et?Et:this.ps?8:void 0)&&void 0!==qt?qt:10,this.Rs.forging=null!==(gn=this.ee)&&void 0!==gn&&gn,this.Rs.spoofing=null!==(tn=this.ps)&&void 0!==tn&&tn,this.Rs.make=null!==(Pn=this.Te)&&void 0!==Pn?Pn:"",this.Rs.vendor=this.Rs.make,this.Rs.vendorFull=null!==(Bn=this.Me)&&void 0!==Bn?Bn:this.Rs.make,this.Rs.deviceOS=function($i){let er;switch($i){case n.PlatformOS.CHROME_OS:er="CHROMEOS";break;case n.PlatformOS.WINDOWS:er="WINDOWS";break;case n.PlatformOS.MAC:er="MACOS";break;case n.PlatformOS.LINUX:er="LINUX";break;case n.PlatformOS.IOS:er="IOS";break;case n.PlatformOS.IPADOS:er="IPADOS";break;case n.PlatformOS.TIZEN:er="TIZEN";break;case n.PlatformOS.WEBOS:er="WEBOS";break;case n.PlatformOS.ANDROID:er="ANDROID";break;case n.PlatformOS.XBOX:er="XBOX";break;case n.PlatformOS.STEAMOS:er="STEAMOS";break;case n.PlatformOS.CCOS:er="CCOS";break;case n.PlatformOS.VISIONOS:er="VISIONOS"}return er}(this.Rs.os),this.Rs.os===n.PlatformOS.VISIONOS?this.Rs.model="VISIONPRO":this.Xt?this.Rs.model="STEAMDECK":this.ni?this.Rs.model=null!==(ei=this.me)&&void 0!==ei?ei:"QUEST":this.me&&(this.Rs.model=this.me),this.Rs.deviceModel=this.Rs.model;const bi=null!==(jn=this.Pe)&&void 0!==jn?jn:function($i,er){if("STEAMDECK"===er)return n.PlatformType.CONSOLE;switch($i){case n.PlatformOS.IOS:return n.PlatformType.PHONE;case n.PlatformOS.IPADOS:return n.PlatformType.TABLET;case n.PlatformOS.XBOX:return n.PlatformType.CONSOLE;case n.PlatformOS.WEBOS:case n.PlatformOS.TIZEN:return n.PlatformType.TV;case n.PlatformOS.VISIONOS:return n.PlatformType.HMD;default:return n.PlatformType.DESKTOP}}(this.Rs.os,this.Rs.model);this.Rs.platformType=bi,this.Rs.deviceType=bi,this.Rs.totalTime=this.finish-this.start,this.Rs.gpuDetail=this.gpuDetail}ye(){var y,c,p;if(!this.us&&this.st)this.Ie=n.PlatformOS.UNKNOWN,this.Ce=n.PlatformBrowser.UNKNOWN,this.ee=!0,this.Ee=3,this.osVersion=Jn,this.browserVersion=Jn,this.browserFullVer=Jn,n.Log.d("{3c72abb}","{049d298}");else if(this.F)this.Ie=n.PlatformOS.CHROME_OS,this.De();else if(this.L)this.De(),this.V?this.Ie=n.PlatformOS.WINDOWS:this.W?(this.Ie=n.PlatformOS.MAC,this.Te="APPLE"):this.fs?this.hi?this.Ie=n.PlatformOS.WINDOWS:this.oi?(this.Ie=n.PlatformOS.MAC,this.Te="APPLE"):this.ri||this.ai?(this.Ie=n.PlatformOS.CHROME_OS,this.ee=!0,this.Ee=7):this.ci&&(this.Ie=this.Re()):this.St?this.Ie=n.PlatformOS.WINDOWS:this.gt?(this.Ie=n.PlatformOS.MAC,this.Te="APPLE"):this.kt?this.Ie=this.Re():this.yt?this.Ie=n.PlatformOS.FREEBSD:(this.Ie=n.PlatformOS.UNKNOWN,this.Ee=5,n.Log.d("{3c72abb}","{101497c}"));else if(this.U)this.Ne(),this.V?this.Ie=n.PlatformOS.WINDOWS:this.W?(this.Ie=n.PlatformOS.MAC,this.Te="APPLE"):this.G?(this.Ie=n.PlatformOS.ANDROID,this.xe()):this.kt?this.Ie=this.Re():this.yt?this.Ie=n.PlatformOS.FREEBSD:(this.Ie=n.PlatformOS.UNKNOWN,this.Ee=5,n.Log.d("{3c72abb}","{49fcccb}"));else if(this._)this.Ce=n.PlatformBrowser.EDGE,this.$?this.fs&&this.jt||this.Qt?(this.Ie=n.PlatformOS.XBOX,this.Te="MICROSOFT",this.Yt?this.me="XBOXSERIES":this.Qt&&(this.me="XBOXONE")):this.fs?this.hi?this.Ie=n.PlatformOS.WINDOWS:(this.Ie=n.PlatformOS.UNKNOWN,this.Ee=7):this.Ie=n.PlatformOS.UNKNOWN:this.W?(this.Ie=n.PlatformOS.MAC,this.Te="APPLE"):this.H?(this.Ie=n.PlatformOS.ANDROID,this.xe()):this.fs?this.jt?(this.Ie=n.PlatformOS.XBOX,this.Te="MICROSOFT",this.Yt?this.me="XBOXSERIES":this.Qt&&(this.me="XBOXONE")):this.hi?this.Ie=n.PlatformOS.WINDOWS:this.oi?(this.Ie=n.PlatformOS.MAC,this.Te="APPLE"):this.ri||this.ai?(this.Ie=n.PlatformOS.CHROME_OS,this.ee=!0,this.Ee=7):this.di?(this.Ie=n.PlatformOS.ANDROID,this.xe()):this.ci&&(this.Ie=this.Re()):this.St?this.Ie=n.PlatformOS.WINDOWS:this.gt?(this.Ie=n.PlatformOS.MAC,this.Te="APPLE"):this.It?(this.Ie=n.PlatformOS.ANDROID,this.xe()):this.kt?this.Ie=this.Re():this.yt?this.Ie=n.PlatformOS.FREEBSD:(this.Ie=n.PlatformOS.UNKNOWN,this.Ee=5);else if(this.V)this.$?this.Oe():(this.Oe(),this.ee=!0,this.Ee=5);else if(this.W)this.Be();else if(this.H)this.Fe();else if(this.fs&&(this.jt||this.hi)||this.St||this.Qt)this.Oe();else if(this.fs&&this.oi||this.bt||this.wt||this.gt)this.Be();else if(this.fs&&(this.ri||this.ai))this.Ie=n.PlatformOS.CHROME_OS,this.De();else if(this.Tt)this.Ie=n.PlatformOS.CCOS,this.Te="HKMC",this.Ce=n.PlatformBrowser.CHROMIUM;else if(this.fs&&this.di||this.It)this.Fe();else if(this.fs&&this.ci)this.Le();else if(this.Ct)this.Ie=n.PlatformOS.WEBOS,this.Te="LG",this.Ce=n.PlatformBrowser.CHROMIUM,this.browserFullVer=null!==(y=this.browserFullVer)&&void 0!==y?y:this.we,this.browserVersion=null!==(c=this.browserVersion)&&void 0!==c?c:this.Se,this.ps=!1;else if(this.Et){if(this.Ie=n.PlatformOS.TIZEN,this.Ce=n.PlatformBrowser.SAMSUNG,null===(p=window.webapis)||void 0===p?void 0:p.productinfo)try{this.osVersion=window.webapis.productinfo.getFirmware(),this.deviceName=window.webapis.productinfo.getRealModel(),this.Me=window.webapis.productinfo.getLicensedVendor()}catch{n.Log.e("{3c72abb}","{bc7dd9b}")}else n.Log.e("{3c72abb}","{844af47}"),this.osVersion=Jn,this.deviceName="";this.Te="Samsung"!==this.Me&&this.Me?"TIZENLICENSED":"SAMSUNG",this.Ue()}else this.kt?this.Ge():this.yt?this.He():this.et||this.ht||this.tt?(this.wt=!0,this.Be(),this.Ee=7):this.vt?(this.Fe(),this.Ee=7):(this.Ie=n.PlatformOS.UNKNOWN,this.Ce=n.PlatformBrowser.UNKNOWN,this.Ee=0,n.Log.d("{3c72abb}","{f2eecc9}"));this.ps&&(this.osVersion=Jn,this.browserVersion=Jn,this.browserFullVer=Jn)}Ge(){this.ot?(this.Ie=n.PlatformOS.ANDROID,this.Te="AMAZON",this.Ne(),this.Pe=n.PlatformType.TV):this.vt?(this.Ie=n.PlatformOS.ANDROID,this.Te="SAMSUNG",this.Ce=n.PlatformBrowser.SAMSUNG,this.xe()):this.Ve()?this.ps?this.Ie=this.Re():!this.Dt||this.Pt||this.Rt?this.hs?(this.Ie=n.PlatformOS.ANDROID,this.Ce=n.PlatformBrowser.PICO,this.xe()):this.Ie=n.PlatformOS.LINUX:(this.Ie=this.Re(),this.Ce=n.PlatformBrowser.CHROMIUM,this.Ee=7):(this.Ie=n.PlatformOS.UNKNOWN,this.Ce=n.PlatformBrowser.UNKNOWN,this.Ee=0,n.Log.d("{3c72abb}","{be86380}"))}Ue(){const c=navigator.userAgent;if(c){const p=c.match(/(([0-9]+\.)*[0-9]+)\/(([0-9]+\.)*[0-9]+)/);this.browserFullVer=p?.[0];const O=p?.[1];if(O){const F=O.split(".");this.browserVersion=F?.[0]}}}Le(){this.Ie=this.Re(),this.fs&&(this.zt||this.qt)||!this.fs&&this.Kt?(this.Ce=n.PlatformBrowser.UNKNOWN,this.Ee=3):this.Ve()||(this.Ce=n.PlatformBrowser.UNKNOWN,this.Ee=5,n.Log.d("{3c72abb}","{54c6569}"))}He(){this.Ie=n.PlatformOS.FREEBSD,this.st?this.Ce=n.PlatformBrowser.CHROME:this.nt?this.Ne():(this.Ce=n.PlatformBrowser.UNKNOWN,this.Ee=3,n.Log.d("{3c72abb}","{a2c16e4}"))}We(){this.Jt?(this.Te="AMAZON",this.Vt&&(this.Ce=n.PlatformBrowser.SILK)):this.Zt?this.Te="SONY":this.ti?this.Te="GOOGLE":this.ii?this.Te="NVIDIA":this.si?this.Te="XIAOMI":this.ei&&(this.Te="TVISION")}Fe(){this.Ie=n.PlatformOS.ANDROID,this.fs?this.Ot?this.Ce=n.PlatformBrowser.EDGE:this.Ft?this.Ce=n.PlatformBrowser.OPERAGX:this.Bt?this.Ce=n.PlatformBrowser.OPERA:this.Lt?this.Ce=n.PlatformBrowser.YANDEX:this.Ut?this.Ce=n.PlatformBrowser.BRAVE:this.Gt?this.Ce=n.PlatformBrowser.SAMSUNG:this.xt?(this.De(),this.We()):this.Ht?this.Ce=n.PlatformBrowser.CHROMIUM:this.Wt?this.ct?this.Ce=n.PlatformBrowser.OPERAGX:(this.De(),this.We()):this.Vt&&(this.Ce=n.PlatformBrowser.CHROMIUM,this.We()):this.nt?this.Ne():this.vt?(this.Ce=n.PlatformBrowser.SAMSUNG,this.Te="SAMSUNG"):this.ut?this.Ce=n.PlatformBrowser.BRAVE:this.At?this.Ce=n.PlatformBrowser.YANDEX:this.lt?this.Ce=n.PlatformBrowser.OPERA:this.ct?this.Ce=n.PlatformBrowser.OPERAGX:this.st?this.pi?this.hs?this.Ce=n.PlatformBrowser.PICO:this.De():this.Ce=this.Kt?n.PlatformBrowser.EDGE:n.PlatformBrowser.SILK:(this.De(),this.Ee=7),this.xe()}xe(){var y,c,p,O;if(this.fs&&this.ui?this.Pe=n.PlatformType.TV:this.fs&&this.Ai||this.hs?this.Pe=n.PlatformType.HMD:this.qt||this.Kt||!this.fi?this.rs&&!this.ls||(this.di?this.li?this.ds&&this.cs||(this.Pe=n.PlatformType.DESKTOP):this.rs&&this.ls&&(this.Pe=n.PlatformType.DESKTOP):this.ds&&this.cs||(this.Pe=n.PlatformType.DESKTOP)):(this.Pe=n.PlatformType.TV,this.Te=null!==(c=null!==(y=this.Te)&&void 0!==y?y:this.ve)&&void 0!==c?c:"",this.deviceName=null!==(O=null!==(p=this.deviceName)&&void 0!==p?p:this.fe)&&void 0!==O?O:"UNKNOWN",this.Ee=7),!this.Pe){const F=screen.width<screen.height?screen.width:screen.height;this.Pe=F>=600?n.PlatformType.TABLET:n.PlatformType.PHONE}}Oe(){this.Ie=n.PlatformOS.WINDOWS,this.Ve()||(this.Ce=n.PlatformBrowser.UNKNOWN,this.Ee=5,n.Log.d("{3c72abb}","{44ce1e0}"))}Be(){this.Te="APPLE";const y=()=>{this.Ie=this.Yi?n.PlatformOS.IPADOS:n.PlatformOS.VISIONOS};this.fs&&this.oi?(this.Ie=n.PlatformOS.MAC,this.Ve()||(this.Ce=n.PlatformBrowser.UNKNOWN,this.Ee=5,n.Log.d("{3c72abb}","{b80b712}"))):this.gt?this.Kt?(y(),this._e()):(this.Ie=n.PlatformOS.MAC,this.Ve()||(this.Ce=n.PlatformBrowser.UNKNOWN,this.Ee=5,n.Log.d("{3c72abb}","{0f3296f}")),this.Ce==n.PlatformBrowser.SAFARI&&this.qe()):this.wt?(this.Ie=n.PlatformOS.IOS,this._e()):this.bt?(y(),this._e()):(this.ee=!0,this.Ee=5,this.Kt?(this.Ie=n.PlatformOS.IOS,this._e(),n.Log.d("{3c72abb}","{cf1c572}")):(this.Ie=n.PlatformOS.MAC,this.Ce=n.PlatformBrowser.UNKNOWN,n.Log.d("{3c72abb}","{1eb1815}")))}Re(){return this.Xt?n.PlatformOS.STEAMOS:n.PlatformOS.LINUX}$e(){this.osVersion=this.mi?this.Mi?this.gi?this.Oi?this.Bi?"17.4+":"17+":this.xi?"16+":this.yi?this.K?"15.6+":"15.5+":this.ki?"15.4+":this.bi?"15.2+":this.Si?"15.1+":"15+":"14.5+":this.Ii?"14.3+":"14+":this.wi?"13+":"12-"}_e(){this.$e();const y=this.osVersion,c=!this.Ri&&!(y.startsWith("12")||y.startsWith("13"));this.ht?this.Ce=n.PlatformBrowser.FIREFOX:this.dt?this.Ce=n.PlatformBrowser.OPERA:this.ut?this.Ce=n.PlatformBrowser.BRAVE:this.At?this.Ce=n.PlatformBrowser.YANDEX:this.tt?this.Ce=n.PlatformBrowser.EDGE:this.et?this.Ce=n.PlatformBrowser.CHROME:this.Di&&!c?this.Ce=n.PlatformBrowser.SAFARI:this.ft?this.Ce=n.PlatformBrowser.REACT:c?(this.Ce=n.PlatformBrowser.UNKNOWN,this.Ee=7,n.Log.d("{3c72abb}","{5a39f60}")):(this.Ce=n.PlatformBrowser.UNKNOWN,this.Ee=5,n.Log.d("{3c72abb}","{147d6b4}"))}Ne(){this.Ce=n.PlatformBrowser.FIREFOX,this.browserVersion=this.Pi?this.Mi?this.Ti?this.Ei?this.Ci?"88":"89+":"87":"86":"85":"84-"}De(){this.Ce=n.PlatformBrowser.CHROME,this.browserVersion||this.Fi&&(this.browserVersion=this.Li?this.Ui?this.Gi?this.Mi?this.Hi?this.Vi?this.Wi?this._i?this.$i?this.zi?this.Ki?this.Qi?"90+":"89":"88":"87":"86":"85":"84":"83":"81":"80":"79":"78":"77")}qe(){this.browserVersion=this.Xi?"18+":this.ji?"17.5+":this.Ji?"17.4":this.Zi?"17.2+":this.ss?"17+":this.es?"16.5+":this.ns?"16.4":"16.3-"}Ve(){var y;if(this.Qt)this.Ie=n.PlatformOS.XBOX,this.Te="MICROSOFT",this.Ce=n.PlatformBrowser.EDGE,this.Yt?this.me="XBOXSERIES":this.Qt&&(this.me="XBOXONE");else if(this.fs)this.jt?(this.Ie=n.PlatformOS.XBOX,this.Te="MICROSOFT",this.Ce=n.PlatformBrowser.EDGE):this.Ot?this.Ce=n.PlatformBrowser.EDGE:this.Ft?this.Ce=n.PlatformBrowser.OPERAGX:this.Bt?this.Ce=n.PlatformBrowser.OPERA:this.Lt?this.Ce=n.PlatformBrowser.YANDEX:this.Ut?this.Ce=n.PlatformBrowser.BRAVE:this.xt?this.De():(this.Ht||this.Vt&&!this._t)&&(this.Ce=n.PlatformBrowser.CHROMIUM);else if(this.nt)this.Ne();else if(this.rt)this.Ce=n.PlatformBrowser.OPERA;else if(this.ut)this.Ce=n.PlatformBrowser.BRAVE;else if(this.At)this.Ce=n.PlatformBrowser.YANDEX;else if(this.st)this.pi?this.fs&&this.Vt?(this.Ce=n.PlatformBrowser.CHROMIUM,this.Ee=9):this.j?this.Ce=n.PlatformBrowser.CHROMIUM:(this.Ce=n.PlatformBrowser.CHROMIUM,this.Ee=7):(this.Ce=n.PlatformBrowser.EDGE,this.Ie=null!==(y=this.Ie)&&void 0!==y?y:n.PlatformOS.UNKNOWN,this.Ee=7);else if(this.it||this.Di)this.Ce=n.PlatformBrowser.SAFARI;else{if(!this.Z)return!1;this.Qt?(this.Ie=n.PlatformOS.XBOX,this.Te="MICROSOFT",this.Ce=n.PlatformBrowser.EDGE_LEGACY):this.Ce=n.PlatformBrowser.EDGE_LEGACY}return!0}Hs(y){window.setTimeout(y,0)}ze(y){var c;null===(c=this.telemetry)||void 0===c||c.Ke("TelemetryHandlerChanged"),this.telemetry=y;for(const p of this.Ns){const O=p.name,F=p.data;switch(p.type){case"ErrorEvent":this.re(O,F);break;case"MessageEvent":this.oe(O,F);break;case"WorkerUnused":this.ce(O);break;case"WorkerTimeout":this.de(O);break;case"WorkerCreateFailure":this.ae(O,F);break;case"ErrorString":this.he(O,F);break;case"WorkerOverlongDelay":this.ne(O,F)}}this.Ns=[]}re(y,c){this.telemetry?this.telemetry.Ke("WorkerProblem",y,`${c.message} in ${c.filename}@${c.lineno}:${c.colno}`,JSON.stringify(c.error)):this.Ns.push({type:"ErrorEvent",name:y,data:c})}he(y,c){this.telemetry?this.telemetry.Ke("WebWorkerProblem",y,c):this.Ns.push({type:"ErrorString",name:y,data:c})}oe(y,c){this.telemetry?this.telemetry.Ke("WorkerMessageProblem",JSON.stringify(c)):this.Ns.push({type:"MessageEvent",name:y,data:c})}ce(y){this.telemetry?this.telemetry.Ke("WorkerUnused",y):this.Ns.push({type:"WorkerUnused",name:y})}de(y){this.telemetry?this.telemetry.Ke("WorkerTimeout",y):this.Ns.push({type:"WorkerTimeout",name:y})}ae(y,c){var p;this.telemetry?this.telemetry.Ke("WorkerCreateFailure",y,null!==(p=c?.stack)&&void 0!==p?p:"",JSON.stringify(c)):this.Ns.push({type:"WorkerCreateFailure",name:y,data:c})}ne(y,c){this.telemetry?this.telemetry.Ke("WorkerOverlongDelay",y,c.toString()):this.Ns.push({type:"WorkerOverlongDelay",name:y,data:c})}};function ms(){return performance.mark("platformBegin"),qr.Os()}function us(y){qr.ze(y)}var Qs,ks,y;z.DeviceOS=void 0,z.DeviceType=void 0,z.DeviceVendor=void 0,z.DeviceModel=void 0,(ks=z.DeviceOS||(z.DeviceOS={})).WINDOWS="WINDOWS",ks.MACOS="MACOS",ks.SHIELD="SHIELD",ks.ANDROID="ANDROID",ks.IOS="IOS",ks.IPADOS="IPADOS",ks.CHROMEOS="CHROMEOS",ks.LINUX="LINUX",ks.TIZEN="TIZEN",ks.WEBOS="WEBOS",ks.TVOS="TVOS",ks.XBOX="XBOX",ks.STEAMOS="STEAMOS",ks.CCOS="CCOS",ks.VISIONOS="VISIONOS",(y=z.DeviceType||(z.DeviceType={})).DESKTOP="DESKTOP",y.LAPTOP="LAPTOP",y.TV="TV",y.PHONE="PHONE",y.TABLET="TABLET",y.CONSOLE="CONSOLE",y.HMD="HMD",function(y){y.APPLE="APPLE",y.LG="LG",y.SAMSUNG="SAMSUNG",y.TIZEN_LICENSED="TIZENLICENSED",y.MICROSOFT="MICROSOFT",y.AMAZON="AMAZON",y.HKMC="HKMC",y.SONY="SONY",y.PHILIPS="PHILIPS",y.GOOGLE="GOOGLE",y.NVIDIA="NVIDIA",y.XIAOMI="XIAOMI",y.TVISION="TVISION",y.UNKNOWN=""}(z.DeviceVendor||(z.DeviceVendor={})),function(y){y.STEAMDECK="STEAMDECK",y.XBOX_ONE="XBOXONE",y.XBOX_SERIES="XBOXSERIES",y.VISION_PRO="VISIONPRO",y.QUEST="QUEST"}(z.DeviceModel||(z.DeviceModel={}));class Ar extends Qn{constructor(c,p){super(p),this.Qe=[],this.Ye=c}Xe(c){const p={logModule:"R",timeStamp:c.timestamp,logLevel:c.level,logtag:c.tag,logstr:c.message};this.hasListener(this.Ye)?this.emit(this.Ye,p):this.Qe.push(p)}addListener(c,p){if(super.addListener(c,p),c==this.Ye&&this.Qe.length>0){for(const O of this.Qe)this.emit(this.Ye,O);this.Qe=[]}}}class Ur extends Array{constructor(){super(),this.push=this.je}Je(c,p){this.Ze=p}clear(){this.splice(0,this.length)}je(...c){let p=Array.prototype.push.apply(this,c);return this.Ze&&this.Ze(),p}}!function(y){y.UNKNOWN="UNKNOWN",y.RCONFIG="RCONFIG",y.GXT="GXT",y.LOCAL="LOCAL",y.OTHER="OTHER"}(Qs||(Qs={}));const vs={GridServer_GameLaunch_Request:{name:"GridServer_GameLaunch_Request",gdprLevel:n.GdprLevel.FUNCTIONAL},GS_Feature:{name:"GS_Feature",gdprLevel:n.GdprLevel.FUNCTIONAL},GS_SystemAPICallResult:{name:"GS_SystemAPICallResult",gdprLevel:n.GdprLevel.FUNCTIONAL},GS_DebugInfo:{name:"GS_DebugInfo",gdprLevel:n.GdprLevel.TECHNICAL},GS_ExceptionInfo:{name:"GS_ExceptionInfo",gdprLevel:n.GdprLevel.TECHNICAL},GS_ClientMetricEvent:{name:"GS_ClientMetricEvent",gdprLevel:n.GdprLevel.FUNCTIONAL},GS_ConnectivityCheck:{name:"GS_ConnectivityCheck",gdprLevel:n.GdprLevel.FUNCTIONAL},GS_Sleep_Event:{name:"GS_Sleep_Event",gdprLevel:n.GdprLevel.TECHNICAL},GS_WsCallResult:{name:"GS_WsCallResult",gdprLevel:n.GdprLevel.FUNCTIONAL},GS_HttpCallResult:{name:"GS_HttpCallResult",gdprLevel:n.GdprLevel.FUNCTIONAL},GS_PropertyChange_Event:{name:"GS_PropertyChange_Event",gdprLevel:n.GdprLevel.FUNCTIONAL},GS_CodecError_Event:{name:"GS_CodecError_Event",gdprLevel:n.GdprLevel.FUNCTIONAL}};class fo{constructor(c){this.name="",this.gdprLevel=n.GdprLevel.BEHAVIORAL,this.priority=!1,this.parameters=c,this.ts=(new Date).toISOString()}}class Zo extends fo{constructor(c){super(c),this.name=vs.GS_Feature.name,this.gdprLevel=vs.GS_Feature.gdprLevel}}class vo extends fo{constructor(c){super(c),this.name=vs.GS_DebugInfo.name,this.gdprLevel=vs.GS_DebugInfo.gdprLevel}}class Pa extends fo{constructor(c){super(c),this.name=vs.GS_ExceptionInfo.name,this.gdprLevel=vs.GS_ExceptionInfo.gdprLevel}}class fa extends fo{constructor(c){super(c),this.name=vs.GS_ClientMetricEvent.name,this.gdprLevel=vs.GS_ClientMetricEvent.gdprLevel}}class fs extends fo{constructor(c){super(c),this.name=vs.GS_Sleep_Event.name,this.gdprLevel=vs.GS_Sleep_Event.gdprLevel}}class Io extends fo{constructor(c){super(c),this.name=vs.GS_WsCallResult.name,this.gdprLevel=vs.GS_WsCallResult.gdprLevel}}class Fo extends fo{constructor(c){super(c),this.name=vs.GS_HttpCallResult.name,this.gdprLevel=vs.GS_HttpCallResult.gdprLevel}}class qs{constructor(c,p,O){this.tn=0,this.sn=0,this.en=0,this.nn=0,this.hn=0,this.rn="",this.an=0,this.dn=!1,this.cn=4,this.listener=c,this.frequency=p??1e4,this.ln=O??1e4,this.un=this.An()}vn(){this.fn(!1),this.tn=(new Date).getTime(),this.sn=0,this.en=0,this.nn=0,this.un=this.An(),this.rn="",this.dn=!1,n.Log.d("{0f7a7d0}","{456f7b1}"),this.hn=window.setInterval(()=>this.pn(),this.frequency)}fn(c){n.Log.d("{0f7a7d0}","{1d02c0d}"),this.mn();const p=()=>{this.hn&&(window.clearInterval(this.hn),this.hn=0)};c?this.an=window.setTimeout(()=>p(),this.un):p()}gn(){if(!this.hn)return;const c=(new Date).getTime();this.nn=c,this.wn(c),this.Sn("e"),this.dn=this.bn(),this.kn()}yn(c){this.un=c??this.An()}pn(){const c=(new Date).getTime();this.wn(c),this.Sn("p"),this.dn||(this.dn=this.bn()),this.tn=c}Sn(c){this.rn.endsWith(c)||(this.rn.length>=this.cn&&(this.rn=this.rn.substring(1)),this.rn+=c)}bn(){let c=!1,p=!1,O=!1;for(let F=0;F<this.rn.length;F++)"s"===this.rn.charAt(F)?p=!0:"e"===this.rn.charAt(F)&&(O=!0);return p&&O&&this.In()&&(c=!0,this.listener.Cn({En:this.nn,Tn:this.en,duration:this.sn,rn:this.rn})),c}wn(c){const p=this.Mn(c);p>this.ln&&(this.en=c,this.sn=p,this.Sn("s"),this.kn())}Mn(c){return Math.max(0,c-this.tn-this.frequency)}An(){return 2*this.frequency+500}In(){return Math.min(Math.abs(this.nn-this.en),Math.abs(this.nn-this.en+this.sn))<this.un}mn(){this.an&&(window.clearTimeout(this.an),this.an=0)}kn(){let c="n/a";this.en&&(c=new Date(this.en).toISOString()),n.Log.i("{0f7a7d0}","{e4526ad}",this.sn,c)}}function So(y,c,p){return{Pn:"online"===y,description:p?`${y}(${p.name}: ${p.message})`:c?`${y}(${c})`:y}}class ta{constructor(c,p,O=1500,F=!1){this.timeout=O,this.Dn=F,this.url=("http:"===window.location.protocol?"http://":"https://")+c,this.Rn=p??fetch,n.Log.i("{0ce6b17}","{dda0527}",this.url,this.timeout)}run(){var c=this;return i(function*(){if(c.Dn)return So("online");const p=performance.now();try{const O=new AbortController;window.setTimeout(()=>O.abort(),c.timeout);const F=yield c.Rn(c.url,{method:"OPTIONS",signal:O.signal}),Z=F.status,re=F.status>=200&&F.status<300||403==F.status?"online":"offline_wrong_status",Oe=performance.now(),je=Math.round(Oe-p);return n.Log.i("{0ce6b17}","{b7012d7}",re,je),So(re,Z)}catch(O){return So("AbortError"===O.name?"timeout":"offline",void 0,O)}})()}}const Go="30.0",Mo="GFN-PC";let As={Nn:{},xn:{type:"UNKNOWN",version:""},o:!0,l:!1,On:!0,Bn:!1};function Uo(y){var c,p,O,F;if(n.Log.i("{11b33a0}","{e65e133}",JSON.stringify(y)),function(Z){var re,Oe;if(Z.overrideData){const je=Z.overrideData.toLowerCase(),ot=new URLSearchParams(je);"lean"===ot.get("mode")&&(Lr.o=!1);const Ct=Rt=>Mn(ot.get(Rt));Lr.o=null!==(re=Ct("log"))&&void 0!==re?re:Lr.o,Lr.l=Lr.o&&(null!==(Oe=Ct("console"))&&void 0!==Oe?Oe:Lr.l)}}(y),y.gxtOverrideData){const Z=JSON.parse(y.gxtOverrideData);if(Z.params)for(const re of Z.params)"pmCommunication"===re.name&&(As.Nn.pmCommunication=re.value,As.xn={type:"GXT",version:re.version})}if(y.overrideData){const Z=y.overrideData.toLowerCase(),re=new URLSearchParams(Z),Oe=je=>Mn(re.get(je));As.o=null!==(c=Oe("log"))&&void 0!==c?c:As.o,As.l=As.o&&(null!==(p=Oe("console"))&&void 0!==p?p:As.l),As.On=null!==(O=Oe("websocketsignaling"))&&void 0!==O?O:As.On,As.Bn=null!==(F=Oe("webrtcstreamer"))&&void 0!==F?F:As.Bn}}class Rr extends fo{constructor(c){super(c),this.name="GridServer_GameLaunch_Request",this.gdprLevel=n.GdprLevel.FUNCTIONAL}}const pa={Fn:"GFN_GridServer",clientId:"93289439828086895",eventSchemaVer:"2.2"};class nl{constructor(){this.networkType="UNKNOWN",this.cmsId="",this.sessionId="",this.subSessionId="",this.Ln=new Map,this.Un=0,this.provider=n.TelemetryModule.createTelemetryProvider(pa)}Je(c){this.Gn=c}Hn(c,p,O){return{url:c,verb:p,statusCode:"0",requestStatusCode:"",sessionId:O??"",subSessionId:this.subSessionId,requestId:"",serverId:"",callDuration:0,response:"None",extendedError:""}}Vn(c,p,O){var F,Z,re;const Oe=n.TelemetryModule.getTelemetryEventIds();return{requestedZoneAddress:c,zoneName:"",networkSessionId:null!==(F=Oe.networkSessionId)&&void 0!==F?F:"",sessionId:O??"",subSessionId:"",resumeType:p?"MANUAL":"NONE",overrideConfigType:As.xn.type,overrideConfigVersion:As.xn.version,result:"",codec:"UNKNOWN",ipVersion:"UNKNOWN",launchDuration:0,networkType:this.networkType,streamingProfileGuid:null!==(Z=Oe.streamingProfileGuid)&&void 0!==Z?Z:"",systemInfoGuid:null!==(re=Oe.systemInfoGuid)&&void 0!==re?re:"",cmsId:this.cmsId}}Wn(c){const p=new Fo({callDuration:c.callDuration,verb:c.verb,sessionId:c.sessionId,subSessionId:c.subSessionId,serverId:c.serverId,url:c.url,overrideConfigType:As.xn.type,overrideConfigVersion:As.xn.version,requestStatusCode:c.requestStatusCode,requestId:c.requestId,networkType:this.networkType,statusCode:c.statusCode,cmsId:this.cmsId,moduleName:"GRID_SERVER",response:c.response,extendedError:c.extendedError});this.processEvent(p)}_n(c){var p,O,F;c.launchDuration=Math.round(c.launchDuration);const Z=new Rr(c);Z.parameters.sessionId||(Z.parameters.sessionId=this.sessionId),Z.parameters.subSessionId||(Z.parameters.subSessionId=this.subSessionId);const re=n.TelemetryModule.getTelemetryEventIds();Z.parameters.networkSessionId=null!==(p=re.networkSessionId)&&void 0!==p?p:"",Z.parameters.systemInfoGuid=null!==(O=re.systemInfoGuid)&&void 0!==O?O:"",Z.parameters.streamingProfileGuid=null!==(F=re.streamingProfileGuid)&&void 0!==F?F:"",this.processEvent(Z)}qn(c,p,O,F,Z){const re=new vo({key1:c??"",key2:p??"",key3:O??"",key4:F??"",key5:Z??"",moduleName:"GRID_SERVER",networkType:this.networkType,overrideConfigType:As.xn.type,overrideConfigVersion:As.xn.version,cmsId:this.cmsId,sessionId:this.sessionId,subSessionId:this.subSessionId});this.processEvent(re)}$n(c,p,O,F,Z,re,Oe){var je;if(!this.zn(p))return;!Oe&&c&&(Oe=c.name+": "+c.message);const ot=new Pa({filename:O,lineno:F,stacktrace:null!==(je=c?.stack)&&void 0!==je?je:"",colno:Z,handled:re?"TRUE":"FALSE",category:Oe??"",message:p,moduleName:"GRID_SERVER",sessionId:this.sessionId,subSessionId:this.subSessionId});this.processEvent(ot)}Kn(c,p,O,F){const Z=new fs({eventSequence:O,sleepTime:c,error:F,timeToSleep:p,moduleName:"GRID_SERVER",cmsId:this.cmsId,sessionId:this.sessionId,subSessionId:this.subSessionId});this.processEvent(Z)}Qn(c){this.sessionId=c}Yn(c){this.subSessionId=c,this.Ln.clear(),this.Un=0}Xn(c){this.cmsId=c}setNetworkType(c){this.networkType=Ei(c)}jn(){this.sessionId="",this.subSessionId="",this.cmsId=""}processEvent(c){this.Gn?this.Gn({name:c.name,parameters:c.parameters,gdprLevel:c.gdprLevel,ts:c.ts,clientConfig:pa}):this.provider.processEvent(c)}zn(c){var p;if(this.Un>=50)return!1;const O=null!==(p=this.Ln.get(c))&&void 0!==p?p:0;return!(O>=10||(this.Un++,this.Ln.set(c,O+1),0))}}function Ha(y){switch(y){case 15867905:case 15867906:case 15867907:return!0;default:return!1}}function bo(y){switch(y){case"ready_for_connection":case"streaming":case"paused":return!0;default:return!1}}function Xa(y){return[3237089282,3237101581,3237101582,3237101584,3237101585,3237101586,3237101588,3237101589,3237101592].includes(y)}const Es="sessioncontrolimpl";function eo(y){let c=3237093632;if(void 0!==y.statusCode){let p=y.statusCode;1==p?c=15859712:p>0&&p<255&&(c=3237093632+p)}if(y.unifiedErrorCode)switch(n.Log.i("{1daeef1}","{d2c9cc8}",de(y.unifiedErrorCode)),c){case 3237093632:case 3237093636:case 3237093381:c=y.unifiedErrorCode}return c}function Ks(y){switch(y){case 1:return"initializing";case 2:return"ready_for_connection";case 3:return"streaming";case 4:case 5:return"paused";case 6:return"resuming";case 7:return"finished";default:return"unknown"}}function oa(y){switch(y){case 3237085186:return"invalid operation";case 15859712:return"success";case 3237093379:case 3237093381:return"Invalid server response";case 3237093384:return"Exception";case 15867907:case 15867905:case 15867906:return"cancelled";case 15868417:return"no network";case 3237089282:return"network error";default:return"server error"}}var ar;!function(y){y[y.CREATE_SESSION=0]="CREATE_SESSION",y[y.RESUME_SESSION=1]="RESUME_SESSION",y[y.DELETE_SESSION=2]="DELETE_SESSION",y[y.GET_SESSIONINFO=3]="GET_SESSIONINFO",y[y.AD_UPDATE=4]="AD_UPDATE",y[y.GET_ACTIVE_SESSIONS=5]="GET_ACTIVE_SESSIONS"}(ar||(ar={}));const la="browser",wo="/v2/session";class na{constructor(){var c,p,O,F,Z,re,Oe,je,ot,Ct,Rt,Et,qt,gn,tn,Pn,Bn,ei,jn,si,vi,bi;this.Jn=new Map,this.Zn={method:"GET",headers:Object.create(null),body:""},this.th={type:n.AuthType.JWT_GFN},this.ih=new Map,this.protocol="https://",this.sh=new Ur,this.eh=new Map,this.serverAddress="",this.nh=!1,this.deviceId="",this.clientPlatformName="";let $i=0;$i+=null!==(p=null===(c=As.Nn.pmCommunication)||void 0===c?void 0:c.httpConnectionTimeout)&&void 0!==p?p:0,$i+=null!==(F=null===(O=As.Nn.pmCommunication)||void 0===O?void 0:O.httpDataReceiveTimeout)&&void 0!==F?F:0,this.Zn.timeout=$i?1e3*$i:13e3,this.Zn.retryCount=null!==(re=null===(Z=As.Nn.pmCommunication)||void 0===Z?void 0:Z.httpRetryCount)&&void 0!==re?re:3,this.Zn.backOffDelay=null!==(je=null===(Oe=As.Nn.pmCommunication)||void 0===Oe?void 0:Oe.httpBackOffDelay)&&void 0!==je?je:500,this.hh={oh:null!==(Ct=null===(ot=As.Nn.pmCommunication)||void 0===ot?void 0:ot.pollingIntervalMin)&&void 0!==Ct?Ct:1e3,rh:null!==(Et=null===(Rt=As.Nn.pmCommunication)||void 0===Rt?void 0:Rt.pollingIntervalMax)&&void 0!==Et?Et:1e4,step:null!==(gn=null===(qt=As.Nn.pmCommunication)||void 0===qt?void 0:qt.pollingIntervalStep)&&void 0!==gn?gn:1e3,ah:null!==(Pn=null===(tn=As.Nn.pmCommunication)||void 0===tn?void 0:tn.pollingQueueSizePerStep)&&void 0!==Pn?Pn:50,adsPollingIntervalMinMS:null!==(ei=null===(Bn=As.Nn.pmCommunication)||void 0===Bn?void 0:Bn.adsPollingIntervalMinMS)&&void 0!==ei?ei:3e3,adsThrottleIntervalMS:null!==(si=null===(jn=As.Nn.pmCommunication)||void 0===jn?void 0:jn.adsThrottleIntervalMS)&&void 0!==si?si:2e3,adsWaitTimeoutS:null!==(bi=null===(vi=As.Nn.pmCommunication)||void 0===vi?void 0:vi.adsWaitTimeoutS)&&void 0!==bi?bi:600},this.dh=new nl,this.uh=new qs({Cn:er=>{var nr;this.dh.Kn(Math.round(er.duration/1e3),Math.round((er.En-er.Tn)/1e3),er.rn,de(null!==(nr=this.Ah)&&void 0!==nr?nr:0)),this.nh=!0,this.uh.fn(!1)}})}init(c){var p,O;return function(F,Z){const Oe=n.translatePlatformInfoForClientHeader({os:Z.deviceOs,osVersion:Z.deviceOsVer,platformType:Z.deviceType,model:Z.deviceModel,make:Z.deviceMake,browser:Z.browserType});if(F["content-type"]="application/json",F["nv-client-type"]=Z.clientType,F["x-device-id"]=Z.deviceId,F["nv-browser-type"]=Oe.browser,F["nv-client-streamer"]=Z.clientStreamer,Oe.os===n.ClientHeaderOSType.UNKNOWN?Z.deviceOs&&(F["nv-device-os"]=Z.deviceOs):F["nv-device-os"]=Oe.os,void 0!==Oe.deviceType&&(F["nv-device-type"]=Oe.deviceType),void 0!==Z.deviceMake&&(F["nv-device-make"]=Z.deviceMake),void 0!==Z.deviceModel&&(F["nv-device-model"]=Z.deviceModel),void 0!==Z.clientAppVersion&&(F["nv-client-version"]=Z.clientAppVersion),void 0!==Z.clientId&&(F["nv-client-id"]=Z.clientId),Z.clientHeaders)for(const[je,ot]of Z.clientHeaders)"x-nv-client-identity"!==je.toLowerCase()&&(F[je.toLowerCase()]=ot)}(this.Zn.headers,c),this.ih.set("component","sessioncontrol"),this.ih.set("component.version","2.0"),this.ih.set("client.name",Mo),this.ih.set("client.version",Go),this.ih.set("client.os",null!==(p=c.deviceOs)&&void 0!==p?p:""),this.ih.set("client.os.version",null!==(O=c.deviceOsVer)&&void 0!==O?O:""),this.setDefaultServerAddress(c.serverAddress),this.clientPlatformName=c.clientPlatformName,this.deviceId=c.deviceId,this.Rs||this.clientPlatformName!==la||ms().then(F=>{this.Rs=F}),this.fh=c.authenticationProvider,this.customFetch=c.customFetch,!0}setAuthInfo(c){this.th=c}setNetworkType(c){this.dh.setNetworkType(c)}setDefaultServerAddress(c){this.serverAddress!=c&&(this.serverAddress=c,(this.serverAddress.startsWith("mockpm://")||"mockpm.com"===this.serverAddress.toLocaleLowerCase())&&(this.serverAddress=this.serverAddress.replace("mockpm://",""),this.protocol="http://"))}startSession(c,p,O){var F=this;return i(function*(){return yield n.TracingManager.getInstance().createSpan("StartSession",()=>(F.ph(),F.mh(c,p,O)))})()}resumeSession(c,p,O,F){var Z=this;return i(function*(){return yield n.TracingManager.getInstance().createSpan("ResumeSession",()=>(Z.ph(),Z.mh(p,O,F,c)))})()}deleteSession(c,p){var O=this;return i(function*(){return yield n.TracingManager.getInstance().createSpan("DeleteSession",()=>{if(O.ph(),!O.gh()){n.Log.e("{1daeef1}","{4fed44a}");const Z=3237085186;return O.wh(Z),Promise.resolve(Z)}const F=O.Sh(c);return O.bh(ar.DELETE_SESSION,F,"",p,c).then(Z=>(15859712==Z.result?(O.Jn.delete(c),n.Log.d("{1daeef1}","{6206c13}",c)):n.Log.e("{1daeef1}","{4de47e3}",c,de(Z.result)),O.wh(Z.result),Z.result)).catch(Z=>{O.kh(Z,"deleteSession");const re=3237093384;return O.wh(re),re})})})()}getActiveSessions(c){var p=this;return i(function*(){return yield n.TracingManager.getInstance().createSpan("GetSessionList",()=>{if(p.ph(),!p.gh()){n.Log.e("{1daeef1}","{dc27839}");const F=3237085186;return p.wh(F),Promise.resolve({code:F})}return p.bh(ar.GET_ACTIVE_SESSIONS,p.protocol+p.serverAddress+wo,"",c).then(F=>{const Z={code:F.result,activeSessions:F.activeSessions,zoneName:F.serverId};return p.wh(Z.code),15859712!==Z.code?n.Log.e("{1daeef1}","{9d2bb75}",de(Z.code)):n.Log.d("{1daeef1}","{081857f}"),Z}).catch(F=>{p.kh(F,"getActiveSessions");const Z={code:3237093384};return p.wh(Z.code),Z})})})()}getSessionInfo(c,p){var O=this;return i(function*(){return yield n.TracingManager.getInstance().createSpan("GetSession",()=>{if(!O.gh()){n.Log.e("{1daeef1}","{603fbab}");const Z=3237085186;return O.wh(Z),Promise.resolve({code:Z})}const F=O.Sh(c);return O.bh(ar.GET_SESSIONINFO,F,"",p,c).then(Z=>{const re={code:Z.result,session:Z.session,zoneName:Z.serverId};return 15859712!==re.code?n.Log.e("{1daeef1}","{021d0f4}",de(re.code)):n.Log.d("{1daeef1}","{fa53c7c}"),re}).catch(Z=>{O.kh(Z,"getSessionInfo");const re={code:3237093384};return O.wh(re.code),re})})})()}yh(){return!!this.Ih}ph(){const c=h.trace.getActiveSpan();if(c)for(const[p,O]of this.ih)c.setAttribute(p,O)}wh(c,p){const O=h.trace.getActiveSpan();O&&(Ha(c)?(O.setAttribute("error",!1),O.setAttribute("error.description",oa(c))):15859712==c?O.setAttribute("error",!1):(O.setAttribute("error",!0),O.setAttribute("error.description",p??oa(c))))}Ch(c){var p;const O=h.trace.getActiveSpan();O?.setAttribute("session.status",null!==(p=c.status)&&void 0!==p?p:"")}Eh(c){var p,O,F;const Z=h.trace.getActiveSpan();if(!Z)return;const re=new Map([["host.dc",null!==(p=c.serverId)&&void 0!==p?p:""],["request.id",null!==(O=c.requestId)&&void 0!==O?O:""],["request.status",null!==(F=c.statusDescription)&&void 0!==F?F:""]]);for(const[Oe,je]of re)Z.setAttribute(Oe,je)}Th(c){var p;let O={sessionId:c.sessionId,subSessionId:"",appId:0,appLaunchMode:0,state:Ks(c.status),zoneAddress:"",zoneName:"",deviceId:"",gpuType:"",monitorSettings:[],connectionInfo:[],finalizedStreamingFeatures:c.finalizedStreamingFeatures};if(O.appId=c.sessionRequestData?c.sessionRequestData.appId:0,c.connectionInfo){const F=c.connectionInfo;if(this.clientPlatformName===la){let Z=!1;for(const re of F)if(2===re.usage){if(!re.ip){n.Log.e("{1daeef1}","{93ef357}",JSON.stringify(re));continue}Z=!0,O.connectionInfo.push(re);const Oe={ip:"",port:49100,appLevelProtocol:5,protocol:1,usage:14};let je=re.ip.split(".");Oe.ip=je[0]+"-"+je[1]+"-"+je[2]+"-"+je[3];let ot=c.sessionControlInfo.ip.indexOf(".");Oe.ip+=c.sessionControlInfo.ip.substring(ot),n.Log.d("{1daeef1}","{cf7d7ea}",Oe.ip),O.connectionInfo.push(Oe);break}Z||(O.connectionInfo=F)}else O.connectionInfo=F}switch(c.monitorSettings&&(O.monitorSettings=c.monitorSettings),c.gpuType&&(O.gpuType=c.gpuType),null===(p=c.sessionRequestData)||void 0===p?void 0:p.appLaunchMode){case 3:O.appLaunchMode=2;break;case 2:O.appLaunchMode=1}if(c.sessionControlInfo){const F=c.sessionControlInfo.ip,Z=c.sessionControlInfo.port;if(F&&Z){if(this.Jn.has(O.sessionId)){const re=this.Jn.get(O.sessionId);re?.server===F&&re?.port===Z||n.Log.i("{1daeef1}","{f09f5be}",O.sessionId,re?.server,re?.port,F,Z)}this.Jn.set(O.sessionId,{server:F,port:Z})}F&&(O.zoneAddress=F,O.zoneName=F.split(".")[0].toUpperCase())}return O}Mh(c){return c.map(p=>this.Th(p))}Ph(c,p,O,F,Z,re){const Oe=()=>{this.ph();let qt=this.Sh(c),gn={action:6,adUpdates:Array.from(this.sh)};n.Log.d("{1daeef1}","{dbca4b1}",JSON.stringify(gn)),this.sh.clear(),this.bh(ar.AD_UPDATE,qt,JSON.stringify(gn),p,c).then(tn=>{O(tn)}).catch(tn=>F(tn))};let je=this.sh.length-1,ot=0;for(;je>=1;)3===this.sh[je].adAction&&2===this.sh[je-1].adAction?(this.sh.splice(je-1,2),ot++,je-=2):3===this.sh[je-1].adAction?je--:je-=2;ot&&n.Log.d("{1daeef1}","{98a2816}",ot);let Ct=!1,Rt=1e3*this.hh.adsWaitTimeoutS;const Et=this.sh.length;if(Et&&(4===this.sh[Et-1].adAction&&this.eh.size>1||2===this.sh[Et-1].adAction?Rt=this.hh.adsThrottleIntervalMS:Ct=!0),Ct)n.TracingManager.getInstance().createSpan("AdUpdateRequest",Oe);else{const qt=new Promise((tn,Pn)=>{this.sh.Je("push",tn)}),gn=new n.CancellableWait(Rt,p.signal);Promise.race([gn.getPromise(),qt]).then(tn=>{this.sh.Je("push",void 0),gn.cancel(),this.sh.length?this.sh.length==Et?n.TracingManager.getInstance().createSpan("AdUpdateRequest",Oe):this.Ph(c,p,O,F,Z,re):(n.Log.w("{1daeef1}","{5e1dfd0}"),re())}).catch(tn=>{this.sh.Je("push",void 0),gn.isAborted()?(n.Log.i("{1daeef1}","{d7114d7}"),Z()):F(tn)})}}updateAdState(c){if(!this.yh())return n.Log.e("{1daeef1}","{20d9281}"),3237085186;const p=this.eh.get(c.adId);if(!p)return n.Log.e("{1daeef1}","{74daa9c}",c.adId),3237093386;const O=function(F){switch(F){case 1:return 2;case 2:return 3;case 3:return 4;case 4:return 5;case 5:return 6;default:return 0}}(c.adAction);if(!function(F,Z){switch(Z){case 2:return 1==F||0==F;case 3:case 5:return 2==F||4==F;case 4:return 3==F;case 6:return 5!=F;default:return!1}}(p.Dh,O))return n.Log.e("{1daeef1}","{09d8184}",c.adAction,c.adId,p.Dh),3237093386;if(this.sh.length){const F=this.sh[this.sh.length-1].adId;if(F!==c.adId){const Z=this.sh[this.sh.length-1].adAction;if(4!=Z&&5!=Z)return n.Log.e("{1daeef1}","{c161587}",F),3237093386}}return c.clientTimestamp||(c.clientTimestamp=Math.round(Date.now()/1e3)),this.sh.push(c),p.Dh=O,this.eh.set(c.adId,p),15859712}Sh(c){let p=this.protocol;if(c&&this.Jn.has(c)){let O=this.Jn.get(c);void 0!==O&&(p+=O.server,0!=O.port&&(p+=":"+O.port))}else p+=this.serverAddress;return p+=wo+"/"+c,p}Rh(c,p){var O,F,Z;let re="";if(p)re=this.Sh(p);else{const Oe=null!==(O=c.serverAddress)&&void 0!==O?O:this.serverAddress;re=this.protocol+Oe+wo}return re+="?keyboardLayout="+(null!==(F=c.keyboardLayout)&&void 0!==F?F:"en_US"),re+="&languageCode="+(null!==(Z=c.clientLocale)&&void 0!==Z?Z:"en_US"),re}Nh(c,p,O){var F,Z,re,Oe,je,ot,Ct,Rt;let Et=1;switch(c.appLaunchMode){case 2:n.Log.d("{1daeef1}","{6d5cf87}"),Et=3;break;case 1:Et=2;break;default:Et=1}const qt=null!==(Z=null===(F=c.monitorSettings[0])||void 0===F?void 0:F.sdrHdrMode)&&void 0!==Z?Z:n.SdrHdrMode.SDR;let gn,tn={audioMode:2,remoteControllersBitmap:null!==(re=c.remoteControllersBitmap)&&void 0!==re?re:0,sdrHdrMode:qt,networkTestSessionId:null,availableSupportedControllers:[],clientVersion:Go,deviceHashId:this.deviceId,internalTitle:null,clientPlatformName:this.clientPlatformName,metaData:[{key:"SubSessionId",value:O},{key:"wssignaling",value:As.On?"1":"0"}],surroundAudioInfo:0,clientTimezoneOffset:null!==(Oe=c.clientTimeZoneOffset)&&void 0!==Oe?Oe:60*(new Date).getTimezoneOffset()*1e3*-1,clientIdentification:Mo,parentSessionId:null,appId:c.appId,streamerVersion:1,clientRequestMonitorSettings:c.monitorSettings,appLaunchMode:Et,sdkVersion:"1.0",enhancedStreamMode:1,useOps:!0,clientDisplayHdrCapabilities:null,accountLinked:null!==(je=c.accountLinked)&&void 0!==je&&je,partnerCustomData:null!==(ot=c.partnerCustomData)&&void 0!==ot?ot:"",enablePersistingInGameSettings:null!==(Ct=c.enablePersistingInGameSettings)&&void 0!==Ct&&Ct,secureRTSPSupported:!1,userAge:null!==(Rt=c.userAge)&&void 0!==Rt?Rt:0,requestedStreamingFeatures:c.streamingFeatures};As.Bn||this.clientPlatformName===la?tn.metaData.push({key:"GSStreamerType",value:"WebRTC"}):tn.secureRTSPSupported=!0;for(const Pn in c.metaData)tn.metaData.push({key:Pn,value:c.metaData[Pn]});return gn=p?JSON.stringify({action:2,data:"RESUME",sessionRequestData:tn,metaData:[]}):JSON.stringify({sessionRequestData:tn}),n.Log.i("{1daeef1}","{c6c3ed4}",p?"PUT":"POST",ai(gn)),gn}bh(c,p,O,F,Z,re){var Oe=this;return i(function*(){var je;const ot=tn=>!Ha(tn)&&(15859712!==tn||c!==ar.GET_SESSIONINFO);let Ct={method:(()=>{switch(c){case ar.CREATE_SESSION:return"POST";case ar.DELETE_SESSION:return"DELETE";case ar.RESUME_SESSION:case ar.AD_UPDATE:return"PUT";default:return"GET"}})(),headers:{},body:O,retryCount:Oe.Zn.retryCount,timeout:Oe.Zn.timeout};Object.keys(Oe.Zn.headers).forEach(tn=>{Ct.headers[tn]=Oe.Zn.headers[tn]}),c!==ar.DELETE_SESSION&&c!==ar.AD_UPDATE||(Ct.keepalive=!0,Oe.Rs&&Ir(Oe.Rs)&&!hr(Oe.Rs,81)&&(Ct.keepalive=!1));const Rt=new n.CancellableWait(12e4,F?.signal);try{const tn=Oe.getAuthHeader(re),Pn=yield Promise.race([tn,Rt.getPromise()]);if(!("string"==typeof Pn&&Pn.length>0)){let Bn=3237093377;return Rt.isTimedOut()?(Bn=3237093387,n.Log.e("{1daeef1}","{86436d3}")):n.Log.e("{1daeef1}","{cfb6326}"),{result:Bn}}Ct.headers.authorization=Pn}catch{let Pn=3237093377;return Rt.isAborted()?Pn=15867907:n.Log.e("{1daeef1}","{cfb6326}"),{result:Pn}}finally{Rt.cancel()}const Et=performance.now();let qt=Oe.dh.Hn(p,null!==(je=Ct.method)&&void 0!==je?je:"",Z);qt.statusCode="0";let gn="";return n.performHttpRequest(p,Ct,void 0,F,Oe.customFetch).then(tn=>{gn=tn.data;const Pn=performance.now();if(qt.statusCode=tn.status.toString(),qt.callDuration=Math.round(Pn-Et),!tn.data)throw n.Log.e("{1daeef1}","{ea40865}"),new SyntaxError("The response from server does not contain any data");let Bn;try{Bn=JSON.parse(tn.data)}catch(si){throw qt.response=tn.data,si}if(!Bn.requestStatus)throw n.Log.e("{1daeef1}","{862f264}",Ro(tn.data)),new SyntaxError("RequestStatus missing in response");const ei=Bn.requestStatus.serverId.toUpperCase();qt.requestId=Bn.requestStatus.requestId,qt.serverId=ei,qt.requestStatusCode=Bn.requestStatus.statusDescription;const jn={result:eo(Bn.requestStatus),xh:Bn,serverId:ei};if(Oe.Eh(Bn.requestStatus),c===ar.GET_ACTIVE_SESSIONS){const si=Bn.sessions;si&&(jn.activeSessions=Oe.Mh(si))}else if(c!==ar.DELETE_SESSION){const si=Bn.session;si&&(jn.session=Oe.Th(si),Oe.Ch(si),qt.sessionId=jn.session.sessionId);const vi=Bn.otherUserSessions;vi&&(jn.activeSessions=Oe.Mh(vi),jn.activeSessions.length&&n.Log.d("{1daeef1}","{ba4be1c}",jn.activeSessions.length))}return qt&&ot(jn.result)&&(qt.extendedError=de(jn.result),Oe.dh.Wn(qt),qt=void 0),function(si){switch(si){case 3237093646:case 3237093648:case 3237093669:return!0;default:return!1}}(jn.result)&&!re&&Oe.fh?Oe.bh(c,p,O,F,Z,jn.result):jn}).catch(tn=>{let Pn={result:3237089282};const Bn=performance.now();return tn.Oh?Pn.result=function(ei){switch(ei){case n.NativeNetworkError.NetworkError:return 3237089282;case n.NativeNetworkError.SocketError:return 3237101580;case n.NativeNetworkError.AddressResolveFailed:return 3237101581;case n.NativeNetworkError.ConnectFailed:return 3237101582;case n.NativeNetworkError.SslError:return 3237101583;case n.NativeNetworkError.ConnectionTimeout:return 3237101584;case n.NativeNetworkError.DataReceiveTimeout:return 3237101585;case n.NativeNetworkError.PeerNoResponse:return 3237101586;case n.NativeNetworkError.UnexpectedHttpRedirect:return 3237101587;case n.NativeNetworkError.DataSendFailure:return 3237101588;case n.NativeNetworkError.DataReceiveFailure:return 3237101589;case n.NativeNetworkError.CertificateRejected:return 3237101590;case n.NativeNetworkError.DataNotAllowed:return 3237101591;default:return 3237101592}}(tn.Oh):tn.code?Pn.result=function(ei){switch(ei){case n.HttpErrorCode.NoNetwork:return 15868417;case n.HttpErrorCode.NetworkError:return 3237089282;case n.HttpErrorCode.ResponseParseFailure:return 3237093379;case 3237089283:return 3237089283;case n.HttpErrorCode.UserAborted:return 15867907;default:return 3237093384}}(tn.code):function(ei){let jn=!1;return(ei instanceof SyntaxError||ei instanceof TypeError&&ei.message&&ei.message.includes("Cannot read property"))&&(jn=!0,n.Log.e("{1daeef1}","{d8979bb}",ei.name,ei.message)),jn}(tn)?(Pn.result=3237093379,n.Log.e("{1daeef1}","{04bcd6f}",Ro(gn))):(Pn.result=3237093384,n.Log.e("{1daeef1}","{94d55bb}",tn,tn.stack),Oe.dh.$n(tn,"performSessionRequest",Es+".ts",0,0,!0)),qt&&ot(Pn.result)&&(qt.extendedError=de(Pn.result),qt.callDuration=Math.round(Bn-Et),Oe.dh.Wn(qt)),n.Log.e("{1daeef1}","{9c647aa}",Ct.method,p),n.Log.e("{1daeef1}","{200d7ba}",Pn.result,tn.message||oa(Pn.result)),Pn})})()}Bh(c,p,O){var F,Z,re,Oe,je,ot;let Ct="Configuring",Rt=0;if(c.seatSetupInfo)switch(c.seatSetupInfo.seatSetupStep){case 0:Ct="Connecting";break;case 1:Ct="InQueue",Rt=c.seatSetupInfo.queuePosition<p?c.seatSetupInfo.queuePosition:p;break;case 5:Ct="PreviousSessionCleanup";break;default:Rt=0}const Et={sessionId:c.sessionId,subSessionId:O,queuePosition:Rt,eta:null!==(Z=null===(F=c.seatSetupInfo)||void 0===F?void 0:F.seatSetupEta)&&void 0!==Z?Z:0,progressState:Ct,isAdsRequired:c.sessionAdsRequired,ads:[]},qt=new Map(this.eh);if(this.eh.clear(),c.sessionAds){const gn=c.sessionAds.length;for(let tn=0;tn<gn;tn++){const Pn=c.sessionAds[tn];if(5==Pn.adState||6==Pn.adState)continue;const Bn=Pn.adId;this.eh.set(Bn,{Fh:Pn.adState,Dh:null!==(Oe=null===(re=qt.get(Bn))||void 0===re?void 0:re.Dh)&&void 0!==Oe?Oe:0});const ei={adId:Bn,adState:Pn.adState,adUrl:Pn.adUrl,adLengthInSeconds:Pn.adLengthInSeconds,adMediaFiles:[]},jn=null!==(ot=null===(je=Pn.adMediaFiles)||void 0===je?void 0:je.length)&&void 0!==ot?ot:0;for(let si=0;si<jn;si++){const vi=Pn.adMediaFiles[si];ei.adMediaFiles.push({mediaFileUrl:vi.mediaFileUrl,encodingProfile:vi.encodingProfile})}Et.ads.push(ei)}}return Et}Lh(c){let p=this.hh.oh;return 1===c.seatSetupInfo.seatSetupStep&&0!=this.hh.ah&&(p+=Math.floor(c.seatSetupInfo.queuePosition/this.hh.ah)*this.hh.step),c.sessionAdsRequired&&(p=Math.max(p,this.hh.adsPollingIntervalMinMS)),Math.min(p,this.hh.rh)}gh(){return!!this.fh||this.th.type===n.AuthType.NONE||!!this.th.token}getAuthHeader(c){var p=this;return i(function*(){if(p.fh)return p.fh.getAuthHeader(c);if(c)return Promise.reject();{let O="";switch(p.th.type){case n.AuthType.JWT_GFN:p.th.token&&(O="GFNJWT "+p.th.token);break;case n.AuthType.JWT_PARTNER:p.th.token&&(O="GFNPartnerJWT auth="+p.th.token)}return Promise.resolve(O)}})()}mh(c,p,O,F){this.nh=!1,this.uh.vn();const Z=Ni();return new Promise((re,Oe)=>{const je=!!F,ot=()=>{var gn;const tn={code:3237085186,subSessionId:Z};this.wh(tn.code);const Pn=this.dh.Vn(null!==(gn=c.serverAddress)&&void 0!==gn?gn:"",je,F);Pn.result=de(tn.code),Pn.subSessionId=Z,this.dh._n(Pn),re(tn)};if(!this.gh())return n.Log.e("{1daeef1}","{3781843}"),void ot();if(this.yh())return n.Log.e("{1daeef1}","{3753849}"),void ot();this.dh.Xn(c.appId),this.dh.Yn(Z);const Ct=this.Rh(c,F),Rt=new URL(Ct).hostname,Et=this.dh.Vn(Rt,je);this.Ih={resolve:re,reject:Oe,sessionId:F,subSessionId:Z,Uh:O,Gh:Number.MAX_VALUE,Hh:!1,Vh:p,Wh:Et,startTime:performance.now()};const qt=this.Nh(c,je,Z);this.bh(je?ar.RESUME_SESSION:ar.CREATE_SESSION,Ct,qt,p).then(gn=>{!je&&15859712===gn.result&&gn.session&&n.Log.i("{1daeef1}","{7c01bce}",gn.session.sessionId),this._h(gn)}).catch(gn=>{this.qh(gn)})}).catch(re=>(this.eh.clear(),this.sh.clear(),this.Ih=void 0,this.kh(re,"startOrResumeSession"),this.wh(3237093384),{code:3237093384,subSessionId:Z}))}$h(){var c,p;if(!this.Ih)return;const F=this.Sh(null!==(c=this.Ih.sessionId)&&void 0!==c?c:"");this.bh(ar.GET_SESSIONINFO,F,"",this.Ih.Vh,null!==(p=this.Ih.sessionId)&&void 0!==p?p:"").then(Z=>{this._h(Z)}).catch(Z=>{this.qh(Z)})}qh(c){n.Log.e("{1daeef1}","{e3be7ea}",c.message),this.dh.$n(c,"processSessionSetupException",Es+".ts",0,0,!0),this.zh(3237093384)}zh(c,p,O){var F=this;return i(function*(){var Z,re,Oe;if(F.Ah=c,F.Ih)try{F.uh.gn(),F.nh?(c=function(Ct){let Rt=Ct;switch(Ct){case 3237093701:case 3237093654:Rt=15867909}return Rt!==Ct&&n.Log.i("{fda9cda}","{49e2182}",de(Ct),de(Rt)),Rt}(c),F.uh.fn(!1)):F.uh.fn(!0),Xa(c)&&((yield new ta(F.serverAddress,F.customFetch).run()).Pn||(c=function(Ct){let Rt=Ct;return 3237089282===Ct&&(Rt=15868417),Rt!==Ct&&n.Log.i("{fda9cda}","{b84d4c8}",de(Ct),de(Rt)),Rt}(c)));const je={code:c,subSessionId:null!==(Z=F.Ih.subSessionId)&&void 0!==Z?Z:"",session:F.Ih.Kh,zoneName:p,activeSessions:O},ot=F.Ih.Wh;ot.result=de(c),ot.zoneName=p??"",ot.sessionId=null!==(re=F.Ih.sessionId)&&void 0!==re?re:"",ot.launchDuration+=performance.now()-F.Ih.startTime,F.dh._n(F.Ih.Wh),F.wh(c),n.Log.d("{1daeef1}","{c4902fa}",de(c),null!==(Oe=F.Ih.sessionId)&&void 0!==Oe?Oe:""),F.Ih.resolve(je),F.Ih=void 0,F.eh.clear(),F.sh.clear()}catch(je){F.Ih&&(F.Ih.reject(je),F.Ih=void 0)}})()}_h(c){var p,O,F;if(!this.Ih)return;const Z=()=>{this.zh(re.Hh?15867906:15867905)},re=this.Ih;if(c.session&&(c.session.subSessionId=this.Ih.subSessionId,this.Ih.Kh=c.session,this.Ih.sessionId=c.session.sessionId,re.Hh=1==c.xh.session.seatSetupInfo.seatSetupStep),15859712===c.result&&c.session){const Oe=c.session;if("ready_for_connection"===Oe.state||"streaming"===Oe.state)"streaming"==Oe.state&&this.dh.qn("InvalidSessionStateTransition","Streaming"),n.Log.i("{1daeef1}","{30d6f44}",null!==(p=this.Ih.sessionId)&&void 0!==p?p:""),this.zh(15859712,c.serverId);else if("initializing"==Oe.state||"resuming"==Oe.state){const je=this.Bh(c.xh.session,this.Ih.Gh,this.Ih.subSessionId);this.Ih.Uh(je),re.Hh&&(this.Ih.Gh=je.queuePosition),je.ads.length?(this.uh.yn(1e3*je.ads[0].adLengthInSeconds),this.Ph(null!==(O=re.sessionId)&&void 0!==O?O:"",re.Vh,this._h.bind(this),this.qh.bind(this),Z,this.$h.bind(this))):(this.uh.yn(),new n.CancellableWait(this.Lh(c.xh.session),null===(F=this.Ih.Vh)||void 0===F?void 0:F.signal).getPromise().then(this.$h.bind(this)).catch(Z))}else n.Log.e("{1daeef1}","{ce47cd1}",Ro(JSON.stringify(c.xh))),this.zh(3237093378,c.serverId)}else 15867907===c.result?Z():this.zh(c.result,c.serverId,c.activeSessions)}kh(c,p){n.Log.e("{1daeef1}","{32f1296}",p,c.message),n.Log.e("{1daeef1}","{94d55bb}",c,c.stack),this.dh.$n(c,p,Es+".ts",0,0,!0)}}function Ro(y){return ai(y).replace(/("clientIp" *: *")(\b\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\b)(?=")/g,"$1***")}z.AudioFormat=void 0,z.Protocol=void 0,z.AppLevelProtocol=void 0,z.Usage=void 0,z.AdState=void 0,z.SESSIONMODIFY_ACTION=void 0,z.AdAction=void 0,z.ClientType=void 0,z.SessionState=void 0,z.SessionProgressState=void 0,z.AppLaunchMode=void 0,z.ScErrorCode=void 0,function(y){y[y.UNKNOWN=0]="UNKNOWN",y[y.STEREO=1]="STEREO",y[y.UP_TO_5_1_SURROUND_PCM=2]="UP_TO_5_1_SURROUND_PCM",y[y.UP_TO_7_1_SURROUND_PCM=3]="UP_TO_7_1_SURROUND_PCM"}(z.AudioFormat||(z.AudioFormat={})),function(y){y[y.UNKNOWN=0]="UNKNOWN",y[y.TCP=1]="TCP",y[y.UDP=2]="UDP"}(z.Protocol||(z.Protocol={})),function(y){y[y.UNKNOWN=0]="UNKNOWN",y[y.RTSP=1]="RTSP",y[y.HTTP=2]="HTTP",y[y.RTSPRU=3]="RTSPRU",y[y.SOCKET=4]="SOCKET",y[y.HTTPS=5]="HTTPS",y[y.RTSPS=6]="RTSPS"}(z.AppLevelProtocol||(z.AppLevelProtocol={})),function(y){y[y.UNKNOWN=0]="UNKNOWN",y[y.CONTROL=1]="CONTROL",y[y.VIDEO=2]="VIDEO",y[y.AUDIO=3]="AUDIO",y[y.INPUT=4]="INPUT",y[y.CUSTOM=5]="CUSTOM",y[y.USB=6]="USB",y[y.RTSP=7]="RTSP",y[y.GAMESTREAM_CONTROL=8]="GAMESTREAM_CONTROL",y[y.GAMESTREAM_SECURE_CONTROL=9]="GAMESTREAM_SECURE_CONTROL",y[y.SESSION_CONTROL=10]="SESSION_CONTROL",y[y.NETWORK_TEST_CONTROL=11]="NETWORK_TEST_CONTROL",y[y.RTSPRU=12]="RTSPRU",y[y.AUDIO_INPUT=13]="AUDIO_INPUT",y[y.SIGNALING=14]="SIGNALING",y[y.MEDIA=15]="MEDIA",y[y.RTSPS=16]="RTSPS",y[y.BUNDLE=17]="BUNDLE"}(z.Usage||(z.Usage={})),function(y){y[y.UNKNOWN=0]="UNKNOWN",y[y.NOT_STARTED=1]="NOT_STARTED",y[y.STARTED=2]="STARTED",y[y.PAUSED=3]="PAUSED",y[y.RESUMED=4]="RESUMED",y[y.FINISHED=5]="FINISHED",y[y.CANCELED=6]="CANCELED"}(z.AdState||(z.AdState={})),function(y){y[y.UNKNOWN=0]="UNKNOWN",y[y.PAUSE=1]="PAUSE",y[y.RESUME=2]="RESUME",y[y.SESSION_RATING=3]="SESSION_RATING",y[y.JOIN=4]="JOIN",y[y.FORWARD=5]="FORWARD",y[y.AD_UPDATE=6]="AD_UPDATE",y[y.TRANSFER=7]="TRANSFER"}(z.SESSIONMODIFY_ACTION||(z.SESSIONMODIFY_ACTION={})),function(y){y[y.UNKNOWN=0]="UNKNOWN",y[y.START=1]="START",y[y.PAUSE=2]="PAUSE",y[y.RESUME=3]="RESUME",y[y.FINISH=4]="FINISH",y[y.CANCEL=5]="CANCEL"}(z.AdAction||(z.AdAction={})),function(y){y.BROWSER="BROWSER",y.GFNSDK="GFNSDK",y.NATIVE="NATIVE"}(z.ClientType||(z.ClientType={})),function(y){y.INITIALIZING="initializing",y.READY_FOR_CONNECTION="ready_for_connection",y.STREAMING="streaming",y.PAUSED="paused",y.RESUMING="resuming",y.FINISHED="finished",y.UNKNOWN="unknown"}(z.SessionState||(z.SessionState={})),function(y){y.CONNECTING="Connecting",y.IN_QUEUE="InQueue",y.CONFIGURING="Configuring",y.PREVIOUS_SESSION_CLEANUP="PreviousSessionCleanup",y.STARTING_STREAMER="StartingStreamer"}(z.SessionProgressState||(z.SessionProgressState={})),function(y){y[y.Default=0]="Default",y[y.GamepadFriendly=1]="GamepadFriendly",y[y.TouchFriendly=2]="TouchFriendly"}(z.AppLaunchMode||(z.AppLaunchMode={})),function(y){y[y.Success=15859712]="Success",y[y.InvalidOperation=3237085186]="InvalidOperation",y[y.NetworkError=3237089282]="NetworkError",y[y.GetActiveSessionServerError=3237089283]="GetActiveSessionServerError",y[y.AuthTokenNotUpdated=3237093377]="AuthTokenNotUpdated",y[y.SessionFinishedState=3237093378]="SessionFinishedState",y[y.ResponseParseFailure=3237093379]="ResponseParseFailure",y[y.InvalidServerResponse=3237093381]="InvalidServerResponse",y[y.PutOrPostInProgress=3237093382]="PutOrPostInProgress",y[y.GridServerNotInitialized=3237093383]="GridServerNotInitialized",y[y.DOMExceptionInSessionControl=3237093384]="DOMExceptionInSessionControl",y[y.InvalidAdStateTransition=3237093386]="InvalidAdStateTransition",y[y.AuthTokenUpdateTimeout=3237093387]="AuthTokenUpdateTimeout",y[y.SessionServerErrorBegin=3237093632]="SessionServerErrorBegin",y[y.RequestForbidden=3237093634]="RequestForbidden",y[y.ServerInternalTimeout=3237093635]="ServerInternalTimeout",y[y.ServerInternalError=3237093636]="ServerInternalError",y[y.ServerInvalidRequest=3237093637]="ServerInvalidRequest",y[y.ServerInvalidRequestVersion=3237093638]="ServerInvalidRequestVersion",y[y.SessionListLimitExceeded=3237093639]="SessionListLimitExceeded",y[y.InvalidRequestDataMalformed=3237093640]="InvalidRequestDataMalformed",y[y.InvalidRequestDataMissing=3237093641]="InvalidRequestDataMissing",y[y.RequestLimitExceeded=3237093642]="RequestLimitExceeded",y[y.SessionLimitExceeded=3237093643]="SessionLimitExceeded",y[y.InvalidRequestVersionOutOfDate=3237093644]="InvalidRequestVersionOutOfDate",y[y.SessionEntitledTimeExceeded=3237093645]="SessionEntitledTimeExceeded",y[y.AuthFailure=3237093646]="AuthFailure",y[y.InvalidAuthenticationMalformed=3237093647]="InvalidAuthenticationMalformed",y[y.InvalidAuthenticationExpired=3237093648]="InvalidAuthenticationExpired",y[y.InvalidAuthenticationNotFound=3237093649]="InvalidAuthenticationNotFound",y[y.EntitlementFailure=3237093650]="EntitlementFailure",y[y.InvalidAppIdNotAvailable=3237093651]="InvalidAppIdNotAvailable",y[y.InvalidAppIdNotFound=3237093652]="InvalidAppIdNotFound",y[y.InvalidSessionIdMalformed=3237093653]="InvalidSessionIdMalformed",y[y.InvalidSessionIdNotFound=3237093654]="InvalidSessionIdNotFound",y[y.EulaUnAccepted=3237093655]="EulaUnAccepted",y[y.MaintenanceStatus=3237093656]="MaintenanceStatus",y[y.ServiceUnAvailable=3237093657]="ServiceUnAvailable",y[y.SteamGuardRequired=3237093658]="SteamGuardRequired",y[y.SteamLoginRequired=3237093659]="SteamLoginRequired",y[y.SteamGuardInvalid=3237093660]="SteamGuardInvalid",y[y.SteamProfilePrivate=3237093661]="SteamProfilePrivate",y[y.InvalidCountryCode=3237093662]="InvalidCountryCode",y[y.InvalidLanguageCode=3237093663]="InvalidLanguageCode",y[y.MissingCountryCode=3237093664]="MissingCountryCode",y[y.MissingLanguageCode=3237093665]="MissingLanguageCode",y[y.SessionNotPaused=3237093666]="SessionNotPaused",y[y.EmailNotVerified=3237093667]="EmailNotVerified",y[y.InvalidAuthenticationUnsupportedProtocol=3237093668]="InvalidAuthenticationUnsupportedProtocol",y[y.InvalidAuthenticationUnknownToken=3237093669]="InvalidAuthenticationUnknownToken",y[y.InvalidAuthenticationCredentials=3237093670]="InvalidAuthenticationCredentials",y[y.SessionNotPlaying=3237093671]="SessionNotPlaying",y[y.InvalidServiceResponse=3237093672]="InvalidServiceResponse",y[y.AppPatching=3237093673]="AppPatching",y[y.GameNotFound=3237093674]="GameNotFound",y[y.NotEnoughCredits=3237093675]="NotEnoughCredits",y[y.InvitationOnlyRegistration=3237093676]="InvitationOnlyRegistration",y[y.RegionNotSupportedForRegistration=3237093677]="RegionNotSupportedForRegistration",y[y.SessionTerminatedByAnotherClient=3237093678]="SessionTerminatedByAnotherClient",y[y.DeviceIdAlreadyUsed=3237093679]="DeviceIdAlreadyUsed",y[y.ServiceNotExist=3237093680]="ServiceNotExist",y[y.SessionExpired=3237093681]="SessionExpired",y[y.SessionLimitPerDeviceReached=3237093682]="SessionLimitPerDeviceReached",y[y.ForwardingZoneOutOfCapacity=3237093683]="ForwardingZoneOutOfCapacity",y[y.RegionNotSupportedIndefinitely=3237093684]="RegionNotSupportedIndefinitely",y[y.RegionBanned=3237093685]="RegionBanned",y[y.RegionOnHoldForFree=3237093686]="RegionOnHoldForFree",y[y.RegionOnHoldForPaid=3237093687]="RegionOnHoldForPaid",y[y.AppMaintenanceStatus=3237093688]="AppMaintenanceStatus",y[y.ResourcePoolNotConfigured=3237093689]="ResourcePoolNotConfigured",y[y.InsufficientVmCapacity=3237093690]="InsufficientVmCapacity",y[y.InsufficientRouteCapacity=3237093691]="InsufficientRouteCapacity",y[y.InsufficientScratchSpaceCapacity=3237093692]="InsufficientScratchSpaceCapacity",y[y.RequiredSeatInstanceTypeNotSupported=3237093693]="RequiredSeatInstanceTypeNotSupported",y[y.ServerSessionQueueLengthExceeded=3237093694]="ServerSessionQueueLengthExceeded",y[y.RegionNotSupportedForStreaming=3237093695]="RegionNotSupportedForStreaming",y[y.SessionForwardRequestAllocationTimeExpired=3237093696]="SessionForwardRequestAllocationTimeExpired",y[y.SessionForwardGameBinariesNotAvailable=3237093697]="SessionForwardGameBinariesNotAvailable",y[y.GameBinariesNotAvailableInRegion=3237093698]="GameBinariesNotAvailableInRegion",y[y.UekRetrievalFailed=3237093699]="UekRetrievalFailed",y[y.EntitlementFailureForResource=3237093700]="EntitlementFailureForResource",y[y.SessionInQueueAbandoned=3237093701]="SessionInQueueAbandoned",y[y.MemberTerminated=3237093702]="MemberTerminated",y[y.SessionRemovedFromQueueMaintenance=3237093703]="SessionRemovedFromQueueMaintenance",y[y.ZoneMaintenanceStatus=3237093704]="ZoneMaintenanceStatus",y[y.GuestModeCampaignDisabled=3237093705]="GuestModeCampaignDisabled",y[y.RegionNotSupportedAnonymousAccess=3237093706]="RegionNotSupportedAnonymousAccess",y[y.InstanceTypeNotSupportedInSingleRegion=3237093707]="InstanceTypeNotSupportedInSingleRegion",y[y.InvalidZoneForQueuedSession=3237093710]="InvalidZoneForQueuedSession",y[y.SessionWaitingAdsTimeExpired=3237093711]="SessionWaitingAdsTimeExpired",y[y.UserCancelledWatchingAds=3237093712]="UserCancelledWatchingAds",y[y.StreamingNotAllowedInLimitedMode=3237093713]="StreamingNotAllowedInLimitedMode",y[y.ForwardRequestJPMFailed=3237093714]="ForwardRequestJPMFailed",y[y.MaxSessionNumberLimitExceeded=3237093715]="MaxSessionNumberLimitExceeded",y[y.GuestModePartnerCapacityDisabled=3237093716]="GuestModePartnerCapacityDisabled",y[y.SessionRejectedNoCapacity=3237093717]="SessionRejectedNoCapacity",y[y.SessionInsufficientPlayabilityLevel=3237093718]="SessionInsufficientPlayabilityLevel",y[y.SessionServerErrorEnd=3237093887]="SessionServerErrorEnd",y[y.SessionSetupCancelled=15867905]="SessionSetupCancelled",y[y.SessionSetupCancelledDuringQueuing=15867906]="SessionSetupCancelledDuringQueuing",y[y.RequestCancelled=15867907]="RequestCancelled",y[y.SystemSleepDuringSessionSetup=15867909]="SystemSleepDuringSessionSetup",y[y.NoInternetDuringSessionSetup=15868417]="NoInternetDuringSessionSetup",y[y.SessionControlErrorBegin=3237101568]="SessionControlErrorBegin",y[y.SocketError=3237101580]="SocketError",y[y.AddressResolveFailed=3237101581]="AddressResolveFailed",y[y.ConnectFailed=3237101582]="ConnectFailed",y[y.SslError=3237101583]="SslError",y[y.ConnectionTimeout=3237101584]="ConnectionTimeout",y[y.DataReceiveTimeout=3237101585]="DataReceiveTimeout",y[y.PeerNoResponse=3237101586]="PeerNoResponse",y[y.UnexpectedHttpRedirect=3237101587]="UnexpectedHttpRedirect",y[y.DataSendFailure=3237101588]="DataSendFailure",y[y.DataReceiveFailure=3237101589]="DataReceiveFailure",y[y.CertificateRejected=3237101590]="CertificateRejected",y[y.DataNotAllowed=3237101591]="DataNotAllowed",y[y.NetworkErrorUnknown=3237101592]="NetworkErrorUnknown",y[y.SessionControlErrorEnd=3237105663]="SessionControlErrorEnd"}(z.ScErrorCode||(z.ScErrorCode={}));const ja="gridserver";function Eo(y){const c={ip:"",port:0,protocol:""};for(const O of y.connectionInfo)if(14===O.usage){c.ip=O.ip,c.port=O.port,c.protocol=5===O.appLevelProtocol?"https":"http",c.resourcePath=O.resourcePath;break}const p={signalConnectionInfo:c,mediaConnectionInfo:y.connectionInfo,streamInfo:[],clientLocale:"",...y};for(const O of y.monitorSettings)p.streamInfo.push({width:O.widthInPixels,height:O.heightInPixels,fps:O.framesPerSecond,sdrHdrMode:O.sdrHdrMode});return p}function Ho(y){let c=[];if(y)for(const p of y)c.push({sessionId:p.sessionId,appId:p.appId,state:p.state,appLaunchMode:p.appLaunchMode});return c}z.ClientStreamer=void 0,z.GS_EVENTS=void 0,function(y){y.CLASSIC="NVIDIA-CLASSIC",y.WEBRTC="WEBRTC"}(z.ClientStreamer||(z.ClientStreamer={})),function(y){y.ACTIVE_SESSIONS_RESULT="ActiveSessionsResult",y.PROGRESS_UPDATE="ProgressUpdate",y.SESSION_UPDATE="SessionUpdate",y.TELEMETRY_EVENT="TelemetryEvent",y.LOG_EVENT="Log"}(z.GS_EVENTS||(z.GS_EVENTS={}));class no extends na{constructor(c,p){super(),this.subSessionId="",this.Qh=new Map,this.Yh=!1,this.Xh=new Map,this.jh=O=>{this.Jh.emit("TelemetryEvent",O)},this.Zh=O=>{this.io(O)},this.Rs=c,this.Jh=new Ar("Log",p),n.Logger.isCallbackRegistered()||(this.Yh=!0,n.Logger.register(this.Jh.Xe.bind(this.Jh))),this.dh.Je(this.jh)}initialize(c){var p;n.Log.i("{6bae601}","{6802390}",Ue);const O={deviceId:null!==(p=c.deviceHashId)&&void 0!==p?p:"",...c,clientStreamer:c.clientStreamer.toString()};super.init(O),this.dh.jn(),n.Log.d("{6bae601}","{5af3344}")}uninitialize(){this.cancelSessionSetup(),this.Yh&&n.Logger.unregister(),this.Jh.removeAllListeners()}addListener(c,p){this.Jh.addListener(c,p)}removeListener(c,p){this.Jh.removeListener(c,p)}updateTelemetryEventIds(c){n.TelemetryModule.setTelemetryEventIds(c)}getAllActiveSessions(){n.TracingManager.getInstance().createSpan("GetSessionList",()=>(this.ph(),this.so()))}so(){var c=this;return i(function*(){if(n.Log.d("{6bae601}","{1aef200}"),!c.serverAddress)return c.Jh.emit("ActiveSessionsResult",{sessionList:[],error:{code:3237093383,description:"GridServer not initialized"}}),void c.wh(3237093383);let p=c.protocol+c.serverAddress+"/v2/session";yield c.bh(ar.GET_ACTIVE_SESSIONS,p,"").then(O=>{let F={sessionList:Ho(O.activeSessions)};if(15859712!=O.result){let Z={code:O.result,description:oa(O.result)};F.error=Z,n.Log.e("{6bae601}","{9d2bb75}",de(Z.code))}else n.Log.d("{6bae601}","{081857f}");c.wh(O.result),c.Jh.emit("ActiveSessionsResult",F)}).catch(O=>{n.Log.e("{6bae601}","{63f9b57}",O.message),n.Log.e("{6bae601}","{94d55bb}",O,O.stack),c.dh.$n(O,"getAllActiveSessions",ja+".ts",0,0,!0);let F={sessionList:[],error:{code:3237093384,description:oa(3237093384)}};c.wh(3237093384),c.Jh.emit("ActiveSessionsResult",F)}),n.Log.d("{6bae601}","{a9e5439}")})()}eo(c,p=""){n.Log.d("{6bae601}","{1e04fe6}",p,c),this.subSessionId=c,this.dh.Qn(p),this.dh.Yn(c);const O=this.Qh.get(c);void 0===O||""===O?this.Qh.set(c,p):n.Log.w("{6bae601}","{7dd264b}",p)}getSessionId(){var c;return null!==(c=this.Qh.get(this.subSessionId))&&void 0!==c?c:""}getSubSessionId(){return this.subSessionId}putOrPostSession(c,p,O){return n.TracingManager.getInstance().createSpan(O?"PutSession":"PostSession",()=>(this.ph(),this.no(c,p,O)))}no(c,p,O){var F;const Z=!!O;if(this.eo(Ni(),O),!this.serverAddress)return this.ho({code:3237093383,description:"GridServer not initialized"});if(this.oo)return this.ho({code:3237093382,description:"Previous PutOrPost call is still in progress"});this.dh.Xn(c.appId),this.zoneName=void 0,this.zoneAddress=void 0,this.gpuType=void 0;const re=this.dh.Vn(this.serverAddress,Z,O);re.networkSessionId=null!==(F=c.networkSessionId)&&void 0!==F?F:"";const Oe=function(Rt){var Et;const qt={monitorSettings:[],...Rt};if(0===qt.monitorSettings.length)for(const gn of null!==(Et=Rt.streamParams)&&void 0!==Et?Et:[])qt.monitorSettings.push({heightInPixels:gn.height,framesPerSecond:gn.fps,widthInPixels:gn.width});return qt}(c);let je=this.Rh(Oe,O),ot=this.Nh(Oe,Z,this.subSessionId),Ct=performance.now();return new Promise((Rt,Et)=>{const qt=new AbortController;this.oo=qt,this.bh(Z?ar.RESUME_SESSION:ar.CREATE_SESSION,je,ot,qt,O).then(gn=>{var tn,Pn,Bn,ei,jn;let si;if(re.launchDuration=Math.round(performance.now()-Ct),!(null===(tn=gn.session)||void 0===tn)&&tn.sessionId&&(re.sessionId=null===(Pn=gn.session)||void 0===Pn?void 0:Pn.sessionId,O=null===(Bn=gn.session)||void 0===Bn?void 0:Bn.sessionId),this.zoneName=gn.serverId||this.zoneName,gn.session&&(si=Eo(gn.session),si.subSessionId=this.subSessionId,this.ro(si)),re.zoneName=null!==(ei=this.zoneName)&&void 0!==ei?ei:"",qt.signal.aborted&&!Ha(gn.result)&&(gn.result=15867905,n.Log.d("{6bae601}","{3ec0e11}")),15859712==gn.result)n.Log.d("{6bae601}","{30536f4}",O),this.eo(this.getSubSessionId(),O),"ready_for_connection"==(null===(jn=gn.session)||void 0===jn?void 0:jn.state)?(re.result=de(15859712),this.dh._n(re)):this.Xh.set(re.sessionId,re),this.wh(gn.result),Rt(si);else{15867907===gn.result&&(gn.result=15867905);const vi={code:gn.result,sessionId:O,description:oa(gn.result),sessionList:Ho(gn.activeSessions)};n.Log.e("{6bae601}","{17f93f3}",de(vi.code)),re.result=de(vi.code),this.dh._n(re),this.wh(vi.code),Et(vi)}}).catch(gn=>{let tn={code:3237093384,sessionId:O,description:oa(3237093384)};n.Log.e("{6bae601}","{4318505}",gn.message),n.Log.e("{6bae601}","{94d55bb}",gn,gn.stack),this.dh.$n(gn,"putOrPostSession",ja+".ts",0,0,!0),re.result=de(tn.code),this.dh._n(re),this.wh(tn.code),Et(tn)})}).finally(()=>{this.oo=void 0})}getSession(c,p){return n.TracingManager.getInstance().createSpan("GetSession",()=>(this.ph(),this.ao(c,p)))}ao(c,p){if(!this.serverAddress)return this.ho({code:3237093383,description:"GridServer not initialized"});if(p)return new Promise((O,F)=>{const Z=this.Sh(c),re=new URL(Z).hostname;let Oe=this.Xh.get(c);Oe?this.Xh.delete(c):(n.Log.e("{6bae601}","{bb9b2e3}",c),Oe=this.dh.Vn(re,!1,c));const je=new AbortController;this.do=je,this.Ih={resolve:O,reject:F,sessionId:c,subSessionId:this.subSessionId,Uh:this.Zh,Gh:Number.MAX_VALUE,Hh:!1,Vh:je,startTime:performance.now(),Wh:Oe},this.$h()}).then(O=>{let F;if(O.session&&(F=Eo(O.session),this.ro(F)),15859712===O.code&&F)return F;throw{code:O.code,description:oa(O.code)}}).finally(()=>{this.eh.clear(),this.sh.clear(),this.Ih=void 0});{const O=this.Sh(c);return this.bh(ar.GET_SESSIONINFO,O,"",void 0,c).then(F=>{if(this.wh(F.result),15859712===F.result&&F.session)return Eo(F.session);throw{code:F.result,description:oa(F.result)}})}}sendDeleteRequest(c){return n.TracingManager.getInstance().createSpan("DeleteSession",()=>(this.ph(),this.co(c)))}co(c){if(!this.serverAddress)return this.ho({code:3237093383,description:"Gridserver not initialized"});let p=this.Sh(c);return new Promise((O,F)=>{n.Log.d("{6bae601}","{bbad3ce}",c),this.bh(ar.DELETE_SESSION,p,"",void 0,c).then(Z=>{if(15859712==Z.result)n.Log.d("{6bae601}","{6206c13}",c),O();else{let re={code:Z.result,description:oa(Z.result),sessionId:c};n.Log.e("{6bae601}","{4de47e3}",c,de(Z.result)),F(re)}this.wh(Z.result)}).catch(Z=>{const re={code:3237093384,description:oa(3237093384)};n.Log.e("{6bae601}","{c4f620c}",Z.message),n.Log.e("{6bae601}","{94d55bb}",Z,Z.stack),this.dh.$n(Z,"sendDeleteRequestImpl",ja+".ts",0,0,!0),F(re)})})}cancelSessionSetup(){var c,p;n.Log.i("{6bae601}","{c73e640}"),null===(c=this.oo)||void 0===c||c.abort(),null===(p=this.do)||void 0===p||p.abort(),this.oo=void 0,this.do=void 0}getZoneName(){var c;return null!==(c=this.zoneName)&&void 0!==c?c:""}getZoneAddress(){var c;return null!==(c=this.zoneAddress)&&void 0!==c?c:""}getGpuType(){var c;return null!==(c=this.gpuType)&&void 0!==c?c:""}ho(c){return this.wh(c.code,c.description),Promise.reject(c)}ro(c){this.zoneAddress=c.zoneAddress||this.zoneAddress,this.zoneName=c.zoneName||this.zoneName,this.gpuType=c.gpuType||this.gpuType}yh(){return!!this.do}io(c){this.Jh.emit("SessionUpdate",c),this.Jh.emit("ProgressUpdate",{sessionId:c.sessionId,subSessionId:c.subSessionId,queuePosition:c.queuePosition,eta:c.eta,state:c.progressState})}}class Fs extends no{constructor(){super()}getAllActiveSessions(){window.setTimeout(()=>{n.Log.d("{6bae601}","{b575263}"),this.Jh.emit("ActiveSessionsResult",{sessionList:[]})},1)}putOrPostSession(c,p,O){var F;return n.Log.d("{6bae601}","{71c010f}"),this.eo(Ni(),null!==(F=c.sessionId)&&void 0!==F?F:"PassThruSessionId"),new Promise((Z,re)=>{window.setTimeout(()=>{var Oe;let je={sessionId:this.getSessionId(),subSessionId:this.getSubSessionId(),appId:parseInt(c.appId),state:"ready_for_connection",signalConnectionInfo:{ip:"",port:49100,protocol:"http"},mediaConnectionInfo:[],streamInfo:[],appLaunchMode:c.appLaunchMode?c.appLaunchMode:0,zoneName:this.getZoneName(),zoneAddress:this.getZoneAddress(),gpuType:this.getGpuType(),clientLocale:"",finalizedStreamingFeatures:null!==(Oe=c.streamingFeatures)&&void 0!==Oe?Oe:{}};if(this.serverAddress&&(je.signalConnectionInfo.ip=this.serverAddress),c.connectionInfo){je.mediaConnectionInfo=c.connectionInfo;for(const ot of je.mediaConnectionInfo)14===ot.usage&&(je.signalConnectionInfo.ip=ot.ip,je.signalConnectionInfo.port=ot.port,je.signalConnectionInfo.protocol=5===ot.appLevelProtocol?"https":"http",je.signalConnectionInfo.resourcePath=ot.resourcePath,n.Log.d("{6bae601}","{c6b8e0f}",ot.ip,ot.port))}if(je.signalConnectionInfo.ip||n.Log.e("{6bae601}","{a43f57e}"),c.monitorSettings)for(const ot of c.monitorSettings)je.streamInfo.push({width:ot.widthInPixels,height:ot.heightInPixels,fps:ot.framesPerSecond,sdrHdrMode:ot.sdrHdrMode});else for(const ot of c.streamParams)je.streamInfo.push({width:ot.width,height:ot.height,fps:ot.fps});n.Log.d("{6bae601}","{07dc276}",je.sessionId),Z(je)},1)})}getSession(c,p){return new Promise((O,F)=>{F({code:-1,description:"PassthruPollingNotSupported"})})}sendDeleteRequest(c){return new Promise((p,O)=>{p()})}updateAdState(c){return-1}}const Co={Fn:"Ragnarok",clientId:"62677554106929725",eventSchemaVer:"3.2"},so={Streamer_Start:{name:"Streamer_Start",gdprLevel:n.GdprLevel.FUNCTIONAL},Streamer_Exit:{name:"Streamer_Exit",gdprLevel:n.GdprLevel.FUNCTIONAL},Streamer_InputDevice:{name:"Streamer_InputDevice",gdprLevel:n.GdprLevel.FUNCTIONAL},Streamer_HotPlugEvent:{name:"Streamer_HotPlugEvent",gdprLevel:n.GdprLevel.FUNCTIONAL},Streamer_DecoderCaps:{name:"Streamer_DecoderCaps",gdprLevel:n.GdprLevel.FUNCTIONAL},Streamer_DisplayCaps:{name:"Streamer_DisplayCaps",gdprLevel:n.GdprLevel.FUNCTIONAL},Streamer_EncoderCaps:{name:"Streamer_EncoderCaps",gdprLevel:n.GdprLevel.FUNCTIONAL}};class _o extends fo{constructor(c){super(c),this.name=so.Streamer_Start.name,this.gdprLevel=so.Streamer_Start.gdprLevel}}class La extends fo{constructor(c){super(c),this.name=so.Streamer_Exit.name,this.gdprLevel=so.Streamer_Exit.gdprLevel,this.priority=!0}}class Ko extends fo{constructor(c){super(c),this.name=so.Streamer_InputDevice.name,this.gdprLevel=so.Streamer_InputDevice.gdprLevel}}z.HidType=void 0,z.InputType=void 0,z.VideoCodecType=void 0,z.MicState=void 0,z.DynamicStreamingMode=void 0,z.EditBoxActionType=void 0,z.TrackType=void 0,z.StreamStopReason=void 0,z.StreamWarningType=void 0,z.CursorType=void 0,z.StreamingState=void 0,z.EVENTS=void 0,z.HotkeyModifier=void 0,function(y){y[y.NONE=0]="NONE",y[y.DS4=1]="DS4",y[y.DS5=2]="DS5"}(z.HidType||(z.HidType={})),function(y){y[y.None=0]="None",y[y.Mouse=1]="Mouse",y[y.Keyboard=2]="Keyboard",y[y.Gamepad=4]="Gamepad",y[y.Touch=8]="Touch",y[y.All=15]="All"}(z.InputType||(z.InputType={})),function(y){y.H264="H264",y.H265="H265",y.AV1="AV1",y.UNKNOWN="UNKNOWN"}(z.VideoCodecType||(z.VideoCodecType={})),function(y){y[y.UNINITIALIZED=0]="UNINITIALIZED",y[y.PERMISSION_PENDING=1]="PERMISSION_PENDING",y[y.PERMISSION_DENIED=2]="PERMISSION_DENIED",y[y.STARTED=3]="STARTED",y[y.NO_SUITABLE_DEVICE=4]="NO_SUITABLE_DEVICE",y[y.STOPPED=5]="STOPPED",y[y.UNSUPPORTED=6]="UNSUPPORTED",y[y.ERROR=7]="ERROR"}(z.MicState||(z.MicState={})),function(y){y[y.NONE=0]="NONE",y[y.DRC=1]="DRC",y[y.DFC=2]="DFC",y[y.ALL=3]="ALL"}(z.DynamicStreamingMode||(z.DynamicStreamingMode={})),function(y){y[y.OPEN_KEYBOARD=0]="OPEN_KEYBOARD",y[y.CLOSE_KEYBOARD=1]="CLOSE_KEYBOARD",y[y.PASTE_CLIPBOARD=2]="PASTE_CLIPBOARD"}(z.EditBoxActionType||(z.EditBoxActionType={})),function(y){y.VIDEO="video",y.AUDIO="audio"}(z.TrackType||(z.TrackType={})),function(y){y[y.CLIENT_DISCONNECTED=0]="CLIENT_DISCONNECTED",y[y.SERVER_DISCONNECTED=1]="SERVER_DISCONNECTED",y[y.NETWORK_ERROR=2]="NETWORK_ERROR",y[y.ERROR=3]="ERROR"}(z.StreamStopReason||(z.StreamStopReason={})),function(y){y[y.Unknown=0]="Unknown",y[y.ApproachingEntitlementTimeout=1]="ApproachingEntitlementTimeout",y[y.ApproachingIdleTimeout=2]="ApproachingIdleTimeout",y[y.ApproachingSessionMaxTimeLimit=3]="ApproachingSessionMaxTimeLimit",y[y.ClearUserIdleTimeOut=4]="ClearUserIdleTimeOut"}(z.StreamWarningType||(z.StreamWarningType={})),function(y){y[y.SOFTWARE=0]="SOFTWARE",y[y.HARDWARE=1]="HARDWARE",y[y.FREE=2]="FREE"}(z.CursorType||(z.CursorType={})),function(y){y[y.NONE=0]="NONE",y[y.STARTING_STREAM=1]="STARTING_STREAM",y[y.STREAMING=2]="STREAMING",y[y.STOPPING_STREAM=3]="STOPPING_STREAM",y[y.STOPPED=4]="STOPPED"}(z.StreamingState||(z.StreamingState={})),function(y){y.SESSION_START_RESULT="SessionStartResult",y.SESSION_STOP_RESULT="SessionStopResult",y.ACTIVE_SESSIONS_RESULT="ActiveSessionsResult",y.PROGRESS_UPDATE="ProgressUpdate",y.SESSION_UPDATE="SessionUpdate",y.STREAM_STOPPED="StreamStopped",y.STREAMING_EVENT="StreamingEvent",y.GETSESSIONRESULT="GetSessionResult",y.GET_SESSION_RESULT="GetSessionResult",y.LOG_EVENT="Log",y.STREAMING_QUALITY="StreamingQuality",y.MIC_CAPTURE="MicCapture",y.CUSTOM_MESSAGE="CustomMessage",y.TEXT_COMPOSITION="TextComposition",y.STREAM_STATS_UPDATE="StreamStatsUpdate",y.TELEMETRY_EVENT="TelemetryEvent",y.STREAM_QUALITY_REPORT="StreamQualityReport",y.EDIT_BOX_EVENT="EditBoxEvent"}(z.EVENTS||(z.EVENTS={})),function(y){y[y.None=0]="None",y[y.Ctrl=1]="Ctrl",y[y.Alt=2]="Alt",y[y.Meta=4]="Meta",y[y.Shift=8]="Shift",y[y.Default=128]="Default"}(z.HotkeyModifier||(z.HotkeyModifier={}));const Jo={allowUnconfined:!1,preventNavigation:!1};z.StreamingProfilePreset=void 0,z.STREAMING_STATE=void 0,function(y){y[y.BALANCED=0]="BALANCED",y[y.DATASAVER=1]="DATASAVER",y[y.COMPETITIVE=2]="COMPETITIVE"}(z.StreamingProfilePreset||(z.StreamingProfilePreset={})),function(y){y.RECONNECTING="reconnecting",y.RECONNECTED="reconnected"}(z.STREAMING_STATE||(z.STREAMING_STATE={}));class ka{constructor(){this.lo=1}uo(){return this.lo++}}function il(y){if(!((15868672^y)>>8))return 256;let c=32769;switch(y){case 15859712:case 15867908:case 15868418:c=0;break;case 3237093894:case 3237093899:c=32776;break;case 3237093898:c=32772;break;case 3237093900:c=32773;break;case 3237093901:c=32770;break;case 15867910:c=1;break;default:n.Log.d("{c00be32}","{233ad08}",de(y))}return c}function co(y){let c=15868672;switch(y){case 256:c=15868704;break;case 257:c=15868705;break;case 258:c=15868706;break;case 259:c=15868707;break;case 260:c=15868708;break;case 261:c=15868709;break;case 262:c=15868710;break;case 263:c=15868711;break;case 264:c=15868712;break;case 265:c=15868713;break;case 266:c=15868714;break;case 267:c=15868715;break;case 268:c=15868716;break;case 269:c=15868719;break;case 270:c=15868688;break;case 512:c=15868736;break;case 513:c=15868737;break;case 514:c=15868738;break;case 515:c=15868739;break;case 516:c=15868740;break;case 517:c=15868741;break;case 518:c=15868742;break;case 519:c=15868743;break;case 520:c=15868744;break;case 521:c=15868745;break;case 33025:c=3237094145;break;case 33026:c=3237094146;break;case 33027:c=3237094147;break;case 33028:c=3237094148;break;case 33029:c=3237094149;break;case 33030:c=3237094150;break;case 33031:c=3237094151;break;case 33032:c=3237094152;break;case 33034:c=3237094153;break;case 33035:c=3237094154;break;case 33040:c=3237094155;break;case 33041:c=3237094156;break;case 33042:c=3237094157;break;case 37634:c=15868718;break;case 32768:c=3237094158;break;case 768:c=15868717;break;case 0:c=15868752;break;default:n.Log.d("{c00be32}","{1be40ed}",de(y))}return c}const po="streamkit-latency-indicator";class $s{constructor(){this.Ao=null,this.vo=""}static getInstance(){return $s.fo||($s.fo=new $s),$s.fo}initialize(c,p){this.Rs=p,this.po=this.mo(c),this.po.style.display="block",this.Ao=this.po.getContext("webgl"),this.wo()}wo(){"white"===this.vo?this.So():this.bo()}mo(c){let p=po,O=document.getElementById(p);if(O&&O instanceof HTMLCanvasElement&&O.parentElement===c.parentElement)return O;{if(O)do{p=po+Math.round(1e4*Math.random()),O=document.getElementById(p)}while(O);let F=document.createElement("canvas");return F.id=p,F.style.position="fixed",Ut(this.Rs)?(F.style.bottom="env(safe-area-inset-bottom, 0)",F.style.right="max(24px, env(safe-area-inset-right, 0))"):(F.style.bottom="0",F.style.right="0"),F.style.width="40px",F.style.height="40px",F.style.zIndex="300",F.style.pointerEvents="none",c.insertAdjacentElement("afterend",F),F}}bo(){this.Ao&&(this.Ao.clearColor(1,1,1,1),this.Ao.clear(this.Ao.COLOR_BUFFER_BIT),this.vo="white")}So(){this.Ao&&(this.Ao.clearColor(1,0,0,1),this.Ao.clear(this.Ao.COLOR_BUFFER_BIT),this.vo="red")}}let Sn={ko:{},clientConfigOverride:"",xn:{type:"UNKNOWN",version:""},yo:!1,o:!0,l:!1,Io:!0,Co:!0,Eo:!0,maxBitrate:0,To:0,Mo:0,Po:!1,Do:!0,Ro:!1,No:!0,xo:!1,Oo:!1,Bo:!1,Fo:!1,Lo:!0,Uo:!1,Go:!0,Ho:!0,Vo:!0,Wo:!0,_o:!0,fps:0,qo:!0,enableComputePressure:!0,$o:!1,zo:"",iceTransportPolicy:""},ba=[];function uo(y){if(y){const c=Number.parseInt(y);if(!Number.isNaN(c))return c}}function $o(y){var c,p,O,F,Z,re,Oe,je,ot,Ct,Rt,Et,qt,gn,tn,Pn,Bn,ei,jn,si,vi,bi,$i,er,nr,cs,ys,Fr,Si,dr,go,Vo,Ds,Ss,Js,xo,va,to,Ul,wl,Gs,Sa,Ua,Za,Ja,bl,gl,Ka,cc,dc,Bl,Nc,tc,ul,Kl,Zc,Lc,kc,No,Fc,uc;if(n.Log.i("{a112b01}","{db6044f}",JSON.stringify(y)),y.clientConfigOverride&&(Sn.clientConfigOverride=y.clientConfigOverride),y.gxtOverrideData){const $l=JSON.parse(y.gxtOverrideData);if($l.params)for(const $a of $l.params)"ragnarok"===$a.name&&(Sn.ko=$a.value,Sn.xn={type:"GXT",version:$a.version})}else y.remoteConfigData&&y.remoteConfigData.ragnarok&&(Sn.ko=JSON.parse(y.remoteConfigData.ragnarok),Sn.xn={type:"RCONFIG",version:null!==(c=y.remoteConfigData.version)&&void 0!==c?c:""});if(y.isInternalUser&&(Sn.isInternalUser=y.isInternalUser),y.overrideData){const $l=new URLSearchParams(y.overrideData);let $a=new URLSearchParams;for(const[hl,Oa]of $l.entries())$a.append(hl.toLowerCase(),Oa);"lean"===(null===(p=$a.get("mode"))||void 0===p?void 0:p.toLowerCase())?(Sn.yo=!0,Sn.o=!1,Sn.Io=!1,Sn.Co=!1,Sn.Eo=!1,Sn.Ko=!1,Sn.stutterIndicator=!0,Sn.isInternalUser=!0):"dev"===(null===(O=$a.get("mode"))||void 0===O?void 0:O.toLowerCase())&&(Sn.stutterIndicator=!0,Sn.isInternalUser=!0);const Jr=hl=>function(Oa){if(Oa)switch(Oa.toLowerCase()){case"enable":case"on":case"1":case"true":return!0;case"disable":case"off":case"0":case"false":return!1}}($a.get(hl)),hc=hl=>uo($a.get(hl)),Lo=hl=>function(Oa){if(Oa){const qa=Number.parseFloat(Oa);if(!Number.isNaN(qa))return qa}}($a.get(hl)),$d=hl=>function(Oa){if(Oa)return Oa.split(",")}($a.get(hl)),Uc=(hl,Oa)=>{const qa=$a.get(hl);return null===qa?Oa:qa||void 0};Sn.o=null!==(F=Jr("log"))&&void 0!==F?F:Sn.o,Sn.l=Sn.o&&(null!==(Z=Jr("console"))&&void 0!==Z?Z:Sn.l),Sn.Io=null!==(re=Jr("gamepad"))&&void 0!==re?re:Sn.Io,Sn.Co=null!==(Oe=Jr("webrtcstats"))&&void 0!==Oe?Oe:Sn.Co,Sn.Eo=null!==(je=Jr("statsupload"))&&void 0!==je?je:Sn.Eo,Sn.Ko=null!==(ot=Jr("mic"))&&void 0!==ot?ot:Sn.Ko,Sn.Qo=null!==(Ct=Jr("mousefilter"))&&void 0!==Ct?Ct:Sn.Qo,Sn.unadjustedMovement=null!==(Rt=Jr("unadjustedmovement"))&&void 0!==Rt?Rt:Sn.unadjustedMovement,Sn.maxBitrate=null!==(Et=hc("bitrate"))&&void 0!==Et?Et:Sn.maxBitrate,Sn.maxBitrate>0&&Sn.maxBitrate<=100&&(Sn.maxBitrate*=1e3),Sn.Fo=null!==(qt=Jr("gamepadtest"))&&void 0!==qt?qt:Sn.Fo;const Vl=$a.get("resolution");if(Vl){const hl=Vl.toLowerCase().split("x");if(2==hl.length){const Oa=parseInt(hl[0]),qa=parseInt(hl[1]);Oa&&qa?(Sn.To=Oa,Sn.Mo=qa):n.Log.e("{a112b01}","{c87835d}",Vl)}else n.Log.e("{a112b01}","{c87835d}",Vl)}Sn.fps=null!==(gn=hc("fps"))&&void 0!==gn?gn:Sn.fps,Sn.Po=null!==(tn=Jr("gamepadraf"))&&void 0!==tn?tn:Sn.Po,Sn.gamepadPollInterval=null!==(Pn=hc("gamepadpoll"))&&void 0!==Pn?Pn:Sn.gamepadPollInterval,Sn.Do=null!==(Bn=Jr("advancedgestures"))&&void 0!==Bn?Bn:Sn.Do,Sn.Ro=null!==(ei=Jr("forcetouchdevice"))&&void 0!==ei?ei:Sn.Ro;let Bc=Jr("touch");void 0!==Bc&&(Sn.appLaunchMode=Bc?2:0,Sn.Ro=Bc),Sn.xo=null!==(jn=Jr("storetouch"))&&void 0!==jn?jn:Sn.xo,Sn.Oo=null!==(si=Jr("storetouchgesture"))&&void 0!==si?si:Sn.Oo,Sn.No=null!==(vi=Jr("touchwarp"))&&void 0!==vi?vi:Sn.No,Sn.Bo=null!==(bi=Jr("latency"))&&void 0!==bi?bi:Sn.Bo,Sn.deviceOs=Uc("deviceos",Sn.deviceOs),Sn.deviceType=Uc("devicetype",Sn.deviceType),Sn.clientStreamer=Uc("clientstreamer",Sn.clientStreamer),Sn.clientType=Uc("clienttype",Sn.clientType),Sn.clientPlatformName=Uc("clientplatformname",Sn.clientPlatformName),Sn.clientId=Uc("clientid",Sn.clientId);const Xd=$a.get("applaunchmode");if(null!==Xd&&(Sn.appLaunchMode=uo(Xd)),Sn.Lo=null!==($i=Jr("rsdmm"))&&void 0!==$i?$i:Sn.Lo,Sn.Uo=null!==(er=Jr("rsdmmtoggle"))&&void 0!==er?er:Sn.Uo,null===(nr=Jr("ioswars"))||void 0===nr||nr||(Sn.Ho=!1,Sn.Vo=!1,Sn.Go=!1,Sn.Wo=!1,Sn._o=!1),Sn.Ho=null!==(cs=Jr("audioreset"))&&void 0!==cs?cs:Sn.Ho,Sn.Go=null!==(ys=Jr("sourcereset"))&&void 0!==ys?ys:Sn.Go,Sn.Vo=null!==(Fr=Jr("autoplaychange"))&&void 0!==Fr?Fr:Sn.Vo,Sn.bitsPerPixel=null!==(Si=Lo("bitsperpixel"))&&void 0!==Si?Si:Sn.bitsPerPixel,Sn.bitsPerPixel1440p=null!==(dr=Lo("bitsperpixel1440p"))&&void 0!==dr?dr:Sn.bitsPerPixel1440p,Sn.Yo=null!==(go=Jr("1440p"))&&void 0!==go?go:Sn.Yo,Sn.stutterIndicator=null!==(Vo=Jr("stutter"))&&void 0!==Vo?Vo:Sn.stutterIndicator,$a.has("meta")){Sn.Xo={};for(const hl of $a.getAll("meta")){const Oa=hl.split("~");2===Oa.length&&(Sn.Xo[Oa[0]]=Oa[1])}}Sn.allowHaptics=null!==(Ds=Jr("haptics"))&&void 0!==Ds?Ds:Sn.allowHaptics,Sn.enableAv1Support=null!==(Ss=Jr("av1"))&&void 0!==Ss?Ss:Sn.enableAv1Support,Sn.enableH265Support=null!==(Js=Jr("h265"))&&void 0!==Js?Js:Sn.enableH265Support,Sn.codecList=null!==(xo=$d("codeclist"))&&void 0!==xo?xo:Sn.codecList,Sn.isInternalUser=null!==(va=Jr("internaluser"))&&void 0!==va?va:Sn.isInternalUser,Sn.hdr=null!==(to=Jr("hdr"))&&void 0!==to?to:Sn.hdr,Sn.hdr10gParams=null!==(Ul=$a.get("hdr10gparams"))&&void 0!==Ul?Ul:Sn.hdr10gParams,Sn.jo=null!==(wl=Jr("sdr10"))&&void 0!==wl?wl:Sn.jo,Sn.qo=null!==(Gs=Jr("hotkeys"))&&void 0!==Gs?Gs:Sn.qo,Sn.Jo=null!==(Sa=Jr("forcehotkeys"))&&void 0!==Sa?Sa:Sn.Jo,Sn.synthesizeGamepadHid=null!==(Ua=Jr("synthesizegamepadhid"))&&void 0!==Ua?Ua:Sn.synthesizeGamepadHid,Sn.Zo=null!==(Za=Jr("synthesizedds4disabled"))&&void 0!==Za?Za:Sn.Zo,Sn.tr=null!==(Ja=Jr("synthesizedds5disabled"))&&void 0!==Ja?Ja:Sn.tr,Sn.ir=null!==(bl=Jr("synthesizedds4fromds5disabled"))&&void 0!==bl?bl:Sn.ir,Sn.sr=null!==(gl=Jr("synthesizedds5fromds4disabled"))&&void 0!==gl?gl:Sn.sr,Sn.er=null!==(Ka=Jr("synthesizedds4fromgenericenabled"))&&void 0!==Ka?Ka:Sn.er,Sn.nr=null!==(cc=Jr("synthesizedds5fromgenericenabled"))&&void 0!==cc?cc:Sn.nr,Sn.hr=null!==(dc=Jr("synthesizedds4allgamesenabled"))&&void 0!==dc?dc:Sn.hr,Sn.rr=null!==(Bl=Jr("synthesizedds5allgamesenabled"))&&void 0!==Bl?Bl:Sn.rr,Sn.ar=null!==(Nc=Jr("forceserverds4"))&&void 0!==Nc?Nc:Sn.ar,Sn.dr=null!==(tc=Jr("forceserverds5"))&&void 0!==tc?tc:Sn.dr,Sn.cursor=null!==(ul=$a.get("cursor"))&&void 0!==ul?ul:Sn.cursor,Sn.pointerLockEscape=null!==(Kl=Jr("pointerlockescape"))&&void 0!==Kl?Kl:Sn.pointerLockEscape,Sn.enableComputePressure=null!==(Zc=Jr("computepressure"))&&void 0!==Zc?Zc:Sn.enableComputePressure,Sn.cr=null!==(Lc=Jr("disableworkerws"))&&void 0!==Lc?Lc:Sn.cr,Sn.ko.useTelemetryV2=null!==(kc=Jr("usetelemetryv2"))&&void 0!==kc?kc:Sn.ko.useTelemetryV2,Sn.$o=null!==(No=Jr("rirecorder"))&&void 0!==No?No:Sn.$o,Sn.zo=null!==(Fc=$a.get("turn"))&&void 0!==Fc?Fc:Sn.zo,Sn.iceTransportPolicy=null!==(uc=$a.get("icetransportpolicy"))&&void 0!==uc?uc:Sn.iceTransportPolicy}Uo(y);for(const $l of ba)$l()}function aa(){const y=Do();if(y){const c=y.destination.maxChannelCount;return y.close(),n.Log.i("{d988e7f}","{fa78e0a}",c),c}return n.Log.w("{d988e7f}","{d018fac}"),2}function Xs(y){return y[0]<y[1]?[y[1],y[0]]:y}function _a(y,c,p,O,F){const Z=!!(1&p),re=!!(2&p),Oe=!!(4&p);if((Oe||8&p)&&(O=3840,F=2160),c&&c.length>0){[O,F]=Xs([O,F]),re&&O>=1366&&0===y&&(O=1600,F=1200);const je=O/F,ot=O*F;{const Rt=c.filter(Et=>Et.frameRate<120);Rt.length&&(c=Rt)}return c.sort((Rt,Et)=>{const qt=Rt.resolution,gn=Et.resolution,tn=Math.abs(qt.width/qt.height-je)-Math.abs(gn.width/gn.height-je);if(Math.abs(tn)>.05)return tn;const Bn=(1===y?1:-1)*(Rt.frameRate-Et.frameRate),ei=qt.width*qt.height,jn=gn.width*gn.height,si=ei-jn;return ei<=ot?jn<=ot?Rt.frameRate!==Et.frameRate?Bn:(0===y?-1:1)*si:-1:jn<=ot?1:si||Bn}),c[0]}{let je={resolution:{width:1280,height:720},frameRate:60};if(Z){let[ot,Ct]=Xs([O,F]);ot/Ct>2&&(je.resolution={width:1376,height:640})}else if(re)if(0!=y)je.resolution={width:1024,height:768};else{let[ot,Ct]=Xs([O,F]);je.resolution=ot<=1024?{width:1024,height:768}:ot<1366?{width:1112,height:834}:{width:1600,height:1200}}else{const ot=[[1920,1200],[1920,1080],[1280,1024],[1600,1200]];Oe&&ot.unshift([3840,2160]);let Ct=[O,F];Ct=function(Rt,Et){if(0==Et.length)return Rt;class qt{constructor(jn,si){this.w=jn,this.lr=si,this.a=jn/si}clip(jn){return Math.abs(jn.a-this.a)<.05?jn:jn.a>this.a?new qt(Math.floor(jn.w*(this.a/jn.a)),jn.lr):new qt(jn.w,Math.floor(jn.lr*(jn.a/this.a)))}ur(){return[this.w,this.lr]}}const gn=Et.map(ei=>new qt(ei[0],ei[1])),tn=new qt(Rt[0],Rt[1]);let Pn=gn[0];for(let ei=1;ei<gn.length;ei++){let jn=gn[ei];Math.abs(tn.a-jn.a)<Math.abs(tn.a-Pn.a)&&(Pn=jn)}const Bn=Pn.clip(tn);return Bn.w>Pn.w?Pn.ur():Bn.ur()}(Ct,0==y?ot:[[1280,800],[1280,720],[1280,1024],[1024,768]]),je.resolution={width:Ct[0],height:Ct[1]}}return je}}function zi(y){var c;let p=0;return Kt(y)&&(p|=1),((O=y)?O.os===n.PlatformOS.IPADOS:/^(?!.*chrome).*safari/i.test(navigator.userAgent)&&!Kt()&&Rn())&&(p|=2),!(null===(c=window.webapis)||void 0===c)&&c.productinfo&&window.webapis.productinfo.isUdPanelSupported()&&(p|=4),window.lge_webrtc_hevc_support&&(p|=8),p;var O}function Ae(){return getComputedStyle(document.documentElement)?(getComputedStyle(document.documentElement).getPropertyValue("--sat")||(document.documentElement.style.setProperty("--sat","env(safe-area-inset-top)"),document.documentElement.style.setProperty("--sar","env(safe-area-inset-right)"),document.documentElement.style.setProperty("--sab","env(safe-area-inset-bottom)"),document.documentElement.style.setProperty("--sal","env(safe-area-inset-left)")),{top:parseInt(getComputedStyle(document.documentElement).getPropertyValue("--sat")),left:parseInt(getComputedStyle(document.documentElement).getPropertyValue("--sal")),bottom:parseInt(getComputedStyle(document.documentElement).getPropertyValue("--sab")),right:parseInt(getComputedStyle(document.documentElement).getPropertyValue("--sar"))}):{top:0,left:0,bottom:0,right:0}}function jo(y,c,p){return y<c?c:y>p?p:y}function fl(y){let c=Ae();c.top=Math.max(c.top,21),c.bottom=jo(c.bottom,0,10);let p={x:y.clientX,y:y.clientY},O=.5;if(c.top>0&&y.clientY-y.radiusY<c.top){const F=y.clientY-Math.min(y.radiusY,21);let Z=(c.top-F)/y.radiusY;Z=jo(Z,0,1),O-=Z*Z*.5}else if(c.bottom>0&&y.clientY+y.radiusY>window.innerHeight-c.bottom){let F=(y.clientY+Math.min(y.radiusY,10)-(window.innerHeight-c.bottom))/y.radiusY;F=jo(F,0,1),O+=F*F*.5}return p.y=jo(p.y-y.radiusY+2*O*y.radiusY,0,window.innerHeight),p}function Wa(y,c){let p=y;if(!c.Pn)if(Sn.ko.offlineErrorsStreaming&&Sn.ko.offlineErrorsStreaming.includes(de(y)))p=15868418;else if(Sn.ko.offlineErrorsSessionSetup&&Sn.ko.offlineErrorsSessionSetup.includes(de(y)))p=15868417;else switch(y){case 3237093906:case 3237093899:p=15868418;break;case 3237089282:p=15868417}return p!==y&&n.Log.i("{d988e7f}","{b84d4c8}",de(y),de(p)),p}function Xi(y,c){let p=y;if(Sn.ko.sleepErrorsStreaming&&Sn.ko.sleepErrorsStreaming.includes(de(y)))p=15867908;else if(Sn.ko.sleepErrorsSessionSetup&&Sn.ko.sleepErrorsSessionSetup.includes(de(y)))p=15867909;else switch(y){case 3237093906:(Ut(c)||Ft(c))&&(p=15867908);break;case 3237094159:p=15867908;break;case 3237093701:case 3237093654:p=15867909}return p!==y&&n.Log.i("{d988e7f}","{49e2182}",de(y),de(p)),p}function Ao(y,c){let p=!1;switch(y){case 3237093896:case 3237093897:case 3237093898:case 3237093906:case 3237093899:case 3237093901:case 15868418:case 3237094159:p=!0;break;case 15867908:Ut(c)&&(p=!0)}return p}function ps(y,c){if(c)return!0;switch(y){case 15868706:case 15868714:case 15868742:case 15868744:case 15867910:return!0;default:return!1}}function ca(y,c){const p=y*c;return p>=2764800&&p<4953600}function al(y,c){return y*c>=4953600}function ga(y){switch(y){case"H264":return"H264";case"H265":return"HEVC";case"AV1":return"AV1";default:return"UNKNOWN"}}function on(y){var c;const p=En(y)||kn(y)||Ai(y)||bt(y)||Ut(y);return null!==(c=Sn.ko.enableCpm)&&void 0!==c?c:p}function Dt(y){const c=Sn.ko.disableUnadjustedMovementForAppIds;return c&&-1!==c.indexOf(y)?(n.Log.i("{d988e7f}","{265cfdc}",y),!1):Sn.unadjustedMovement}function Mt(y){return void 0!==y?y?"TRUE":"FALSE":"UNDEFINED"}function Dn(y){return y?"MANUAL":"NONE"}function qn(y){return`${y.width.toFixed()}x${y.height.toFixed()}`}function Yr(){return{width:screen.width,height:screen.height}}function _s(y,c,p){try{const O=document.createElement("a");O.style.display="none";const F=new Blob(y,{type:p}),Z=URL.createObjectURL(F);return O.href=Z,O.download=c,document.body.appendChild(O),O.click(),URL.revokeObjectURL(Z),document.body.removeChild(O),!0}catch(O){return n.Log.e("{d988e7f}","{8d57ba9}",O),!1}}function Do(y){const c=window.AudioContext||window.webkitAudioContext||void 0;if(c){let p;return p=y?new c({sampleRate:y}):new c,p}n.Log.w("{d988e7f}","{b74c037}")}function Ws(){var y;return!(null===(y=globalThis.PointerEvent)||void 0===y||!y.prototype)}function Bi(y,c,p){return Di.apply(this,arguments)}function Di(){return Di=i(function*(y,c,p){var O;const F=new RTCPeerConnection;try{yield F.setRemoteDescription({type:"offer",sdp:c}).catch(je=>{throw new Error("Audio munging setRemoteDescription failed. "+je)});const Z=yield F.createAnswer();yield F.setLocalDescription({type:"answer",sdp:null===(O=Z.sdp)||void 0===O?void 0:O.replace("opus/48000/2","multiopus/48000/"+y).replace("useinbandfec=1",p)}).catch(je=>{throw new Error("Audio munging setLocalDescription failed. "+je)});const re=F.getReceivers()[0];if(!re.getParameters)return n.Log.w("{d988e7f}","{4be0bf6}"),2;const{codecs:Oe}=re.getParameters();if(1!==Oe.length||"audio/multiopus"!==Oe[0].mimeType||Oe[0].channels!==y)throw new Error("Audio munging failed "+Oe[0]);return n.Log.i("{d988e7f}","{8919816}",y,Oe[0]),y}catch(Z){return n.Log.e("{d988e7f}","{4984c00}",y,Z),2}finally{F.close()}}),Di.apply(this,arguments)}function Ea(y){if(!y)return 8;switch(y?.bitDepth){case n.BitDepth.BIT_DEPTH_10:return 10;case n.BitDepth.BIT_DEPTH_8:return 8;default:return n.Log.w("{d988e7f}","{6f291f9}",y.bitDepth),8}}function vl(y){switch(y){case 1e3:return 3237101567;case 1001:return 3237101566;case 1002:return 3237101565;case 1003:return 3237101564;case 1005:return 3237101562;case 1006:return 3237093890;case 1007:return 3237101560;case 1008:return 3237101559;case 1009:return 3237101558;case 1010:return 3237101557;case 1011:return 3237101556;case 1012:return 3237101555;case 1013:return 3237101554;case 1014:return 3237101553;case 1015:return 3237101552;case 3e3:return 3237101551;case 3003:return 3237101550;case 3008:return 3237101549}return y>=4100&&y<=4999?y-4e3+3237097472:3237093890}function hs(y,c){return new ta(y,void 0,Sn.ko.connectivityCheckTimeout,!(!((3237093888^c)>>8)||3237089282===c)).run()}function Is(y){return y.getTransceivers().filter(c=>{var p;return"video"===(null===(p=c.receiver.track)||void 0===p?void 0:p.kind)&&("recvonly"===c.direction||"sendrecv"===c.direction)})}function da(y,c=!1){let p=c?fl(y):{x:y.clientX,y:y.clientY};return{identifier:y.identifier,clientX:p.x,clientY:p.y,deltaX:0,deltaY:0}}class jr{constructor(c,p,O,F,Z){this.target=c,this.videoAddEventListener=p,this.videoRemoveEventListener=O,this.Ar=F,this.vr=Z,this.pr=10,this.mr=[],this.gr=0,this.wr=0,this.Sr=0,this.br=re=>{let Oe=!1;const je=re.changedTouches,ot=this.vr.kr(re.timeStamp);for(let Ct=0;Ct<je.length;Ct++){const Rt=je[Ct];Rt.target===this.target&&(Oe=!0,$s.getInstance().wo(),0===this.mr.length?(this.Sr=1,this.gr=window.setTimeout(()=>{this.gr=0,1===this.wr&&(this.Sr=2,Sn.Do&&this.Ar.yr(this.target,ot,da(Rt)))},500)):1!==this.Sr&&(Sn.Do?4!==this.Sr&&2!==this.Sr||this.Ar.Ir(this.target,re.timeStamp,da(Rt),2===this.Sr):6===this.Sr&&Sn.Do&&this.Ar.Cr(this.target,ot),this.Sr=0),this.mr.push(da(Rt)),this.mr.length>this.wr&&(this.wr=this.mr.length))}this.Ar.Er()&&Oe&&re.preventDefault()},this.Tr=re=>{let Oe=!1;for(let Rt of this.mr)Rt.deltaX=0,Rt.deltaY=0;const je=re.changedTouches,ot=this.vr.kr(re.timeStamp);let Ct=[];for(let Rt=0;Rt<je.length;Rt++){const Et=je[Rt],qt=this.mr.findIndex(gn=>gn.identifier==Et.identifier);if(-1!=qt){Oe=!0;const gn=this.mr[qt],tn=Et.clientX-gn.clientX,Pn=Et.clientY-gn.clientY;let Bn=!1;if(0!==this.gr?(Math.abs(tn)>this.pr||Math.abs(Pn)>this.pr)&&(window.clearTimeout(this.gr),this.gr=0,Bn=!0):Bn=!0,Bn){const ei={identifier:Et.identifier,clientX:Et.clientX,clientY:Et.clientY,deltaX:tn,deltaY:Pn};Ct.push(qt),this.mr[qt]=ei}}}Ct.length>0&&0===this.gr&&0!==this.Sr&&(1===this.mr.length?(1===this.Sr?this.Sr=3:2===this.Sr&&(this.Sr=4),Sn.Do&&this.Ar.Mr(this.target,ot,this.mr[0])):2===this.mr.length?5===this.Sr?Sn.Do&&this.Ar.scroll(this.target,ot,this.mr):6===this.Sr?Sn.Do&&this.Ar.Pr(this.target,ot,this.mr):1===this.Sr&&(this.mr[0].deltaY*this.mr[1].deltaY>0&&(Math.sign(this.mr[0].deltaX)===Math.sign(this.mr[1].deltaX)||Math.abs(this.mr[0].deltaX)<this.pr&&Math.abs(this.mr[1].deltaX)<this.pr)?(this.Sr=5,Sn.Do&&this.Ar.scroll(this.target,ot,this.mr)):(this.Sr=6,Sn.Do&&this.Ar.Pr(this.target,ot,this.mr))):this.Sr=0),this.Ar.Er()&&Oe&&re.preventDefault()},this.Dr=re=>{this.Rr(re,!1)},this.Nr=re=>{this.Rr(re,!0)}}static isSupported(){return Sn.Ro||Gn()}Rr(c,p){let O=!1;const F=c.changedTouches,Z=this.vr.kr(c.timeStamp);for(let re=0;re<F.length;re++){const Oe=F[re],je=this.mr.findIndex(ot=>ot.identifier==Oe.identifier);-1!=je&&(O=!0,$s.getInstance().wo(),this.mr.splice(je,1),0===this.mr.length?(0!==this.gr?(window.clearTimeout(this.gr),this.gr=0,p&&this.Ar.Or(this.target,Z,da(Oe,!0),this.wr)):Sn.Do&&(4!==this.Sr&&2!==this.Sr||this.Ar.Ir(this.target,c.timeStamp,da(Oe),2===this.Sr)),this.wr=0,this.Sr=0):5===this.Sr?this.Sr=0:6===this.Sr&&(Sn.Do&&this.Ar.Cr(this.target,Z),this.Sr=0))}this.Ar.Er()&&O&&c.preventDefault()}start(){const c={passive:!Sn.Do};this.videoAddEventListener("touchstart",this.br,c),this.videoAddEventListener("touchmove",this.Tr,c),this.videoAddEventListener("touchcancel",this.Dr,c),this.videoAddEventListener("touchend",this.Nr,c)}stop(){if(this.videoRemoveEventListener("touchstart",this.br),this.videoRemoveEventListener("touchmove",this.Tr),this.videoRemoveEventListener("touchcancel",this.Dr),this.videoRemoveEventListener("touchend",this.Nr),this.mr=[],0!==this.gr&&(window.clearTimeout(this.gr),this.gr=0),this.wr=0,Sn.Do)switch(this.Sr){case 6:this.Ar.Cr(this.target,performance.now());break;case 2:case 4:this.Ar.Ir(this.target,performance.now())}this.Sr=0}}const ia=65535;class Oo{constructor(c,p,O){this.clientX=0,this.clientY=0,this.radiusX=0,this.radiusY=0,this.Br=!1,this.identifier=c.identifier,this.Fr=p,this.Lr=O,this.Ur(c),Sn.No&&navigator.standalone?this.Gr():this.Br=!1}update(c){this.Ur(c),this.Br&&this.Gr()}Ur(c){this.clientX=c.pageX-this.Lr.Hr,this.clientY=c.pageY-this.Lr.vertical,this.radiusX=c.radiusX,this.radiusY=c.radiusY}Gr(){const c=fl(this);this.Br=Math.abs(c.y-this.clientY)>.01,this.clientX=c.x,this.clientY=c.y}}class ra{constructor(c,p,O,F,Z){this.Fr=p,this.id=c.identifier,this.touchType=O,this.Vr=c.pageX,this.Wr=c.pageY,this._r=c.radiusX,this.qr=c.radiusY,this.$r=F,this.captureTs=Z}}class $n{constructor(c,p,O,F,Z,re,Oe){this.target=c,this.videoAddEventListener=p,this.videoRemoveEventListener=O,this.zr=F,this.Ar=Z,this.vr=Oe,this.Kr=0,this.Qr=0,this.Lr={Hr:1,vertical:1},this.Yr=new Map,this.Xr=new Set,this.jr=0,this.Jr=[],this.Zr=0,this.ta=!0,this.br=je=>{const ot=performance.now(),Ct=this.vr.kr(je.timeStamp);let Rt=!1;this.Ar.ia(!1);const Et=je.changedTouches;let qt=[];for(let gn=0;gn<Et.length;gn++){const tn=Et[gn];if(this.sa(tn)){Rt=!0,$s.getInstance().wo();let Pn=this.ea(tn);qt.push(Pn),this.xo(tn,Pn,1,ot,je)}}this.na(qt,1,Ct),Sn.xo&&Sn.Oo&&8==this.Yr.size&&this.ta&&(this.ha(),this.oa()),this.Ar.Er()&&Rt&&je.preventDefault()},this.Tr=je=>{const ot=performance.now(),Ct=this.vr.kr(je.timeStamp);let Rt=!1;const Et=je.changedTouches;let qt=[];for(let gn=0;gn<Et.length;gn++){const tn=Et[gn];if(this.sa(tn)){let Pn=this.Yr.get(tn.identifier);Pn&&(Rt=!0,Pn.update(tn),qt.push(Pn),this.xo(tn,Pn,4,ot,je))}}this.na(qt,4,Ct),this.Ar.Er()&&Rt&&je.preventDefault()},this.Dr=je=>{this.ra(je,8)},this.Nr=je=>{this.ra(je,2)},this.ha=this.aa.bind(this),this.oa=this.da.bind(this),this.ca=Ft(re)}static isSupported(){return Sn.Ro||Gn()}xo(c,p,O,F,Z){if(!Sn.xo)return;let re=new ra(c,p.Fr,O,F,Z.timeStamp);this.Jr.push(re)}aa(){const c=this.Jr.length;if(!c)return;let p=this.Jr[c-1].$r-3e4,O=-1;for(let F=0;F<c&&this.Jr[F].$r<p;F++)O=F;this.Jr.splice(0,O+1)}da(){for(let c of this.Jr)n.Log.d("{ec05004}","{3c6a946}",c.captureTs.toFixed(2),c.$r.toFixed(2),c.id,c.Fr,c.touchType,c.Vr.toFixed(2),c.Wr.toFixed(2),c._r.toFixed(0),c.qr.toFixed(0));this.Jr=[]}ea(c){let p=0;for(;this.Xr.has(p);)p++;let O=new Oo(c,p,this.Lr);return this.Yr.set(c.identifier,O),this.Xr.add(p),O}la(c){let p=this.Yr.get(c);p&&(this.Yr.delete(c),this.Xr.delete(p.Fr))}sa(c){return c.target===this.target}na(c,p,O){var F;let Z=0;for(let re of c){if(Z>40)return void n.Log.e("{ec05004}","{2faaf33}",c.length-Z);const Oe=null===(F=this.Yr.get(re.identifier))||void 0===F?void 0:F.Fr;if(void 0===Oe){n.Log.e("{ec05004}","{960ee4f}",re.identifier);continue}let je=this.Kr*re.clientX,ot=this.Qr*re.clientY;const Ct=this.Kr*re.radiusX,Rt=this.Qr*re.radiusY;if(je<0-Ct||je>ia+Ct||ot<0-Rt||ot>ia+Rt)switch(p){case 2:case 8:break;default:continue}if(je=Math.min(Math.max(je,0),ia),ot=Math.min(Math.max(ot,0),ia),!this.zr.ua(Z,Oe,p,je,ot,re.radiusX,re.radiusY,O)){this.jr+=c.length-Z;break}Z++}0!=Z&&(Z>c.length?n.Log.w("{ec05004}","{4e60a66}",Z,c.length):this.zr.Aa(Z)||n.Log.e("{ec05004}","{56a8404}"))}ra(c,p){const O=performance.now(),F=this.vr.kr(c.timeStamp);let Z=!1,re=[];const Oe=c.changedTouches;let je=[];for(let ot=0;ot<Oe.length;ot++){const Ct=Oe[ot];if(this.sa(Ct)){let Rt=this.Yr.get(Ct.identifier);re.push(Ct.identifier),Rt&&(Z=!0,$s.getInstance().wo(),Rt.update(Ct),je.push(Rt),this.xo(Ct,Rt,p,O,c))}}this.na(je,p,F);for(const ot of re)this.la(ot);Sn.xo&&(this.ta=0==this.Yr.size),this.Ar.Er()&&Z&&c.preventDefault()}start(){this.jr=0;const c={passive:!1};this.videoAddEventListener("touchstart",this.br,c),this.videoAddEventListener("touchmove",this.Tr,c),this.videoAddEventListener("touchcancel",this.Dr,c),this.videoAddEventListener("touchend",this.Nr,c),Sn.xo&&(n.Log.d("{ec05004}","{72764d2}",performance.now()),this.Jr=[],this.Zr=window.setInterval(this.ha,6e4)),this.Ar.ia(!1)}stop(){Sn.xo&&(this.Zr&&clearTimeout(this.Zr),this.ha(),this.oa()),this.Yr.size&&(this.na(Array.from(this.Yr.values()),8,performance.now()),this.Yr.clear(),this.Xr.clear()),this.jr&&n.Log.w("{ec05004}","{10858ae}",this.jr);const c={passive:!1};this.videoRemoveEventListener("touchstart",this.br,c),this.videoRemoveEventListener("touchmove",this.Tr,c),this.videoRemoveEventListener("touchcancel",this.Dr,c),this.videoRemoveEventListener("touchend",this.Nr,c)}va(c,p,O){this.Lr=p,this.Kr=65535/c.fa,this.Qr=65535/c.pa,this.Kr/=O,this.Qr/=O}}const mt=new Map([["Escape",27],["Digit0",48],["Digit1",49],["Digit2",50],["Digit3",51],["Digit4",52],["Digit5",53],["Digit6",54],["Digit7",55],["Digit8",56],["Digit9",57],["Minus",189],["Equal",187],["Backspace",8],["Tab",9],["KeyQ",81],["KeyW",87],["KeyE",69],["KeyR",82],["KeyT",84],["KeyY",89],["KeyU",85],["KeyI",73],["KeyO",79],["KeyP",80],["BracketLeft",219],["BracketRight",221],["Enter",13],["ControlLeft",162],["KeyA",65],["KeyS",83],["KeyD",68],["KeyF",70],["KeyG",71],["KeyH",72],["KeyJ",74],["KeyK",75],["KeyL",76],["Semicolon",186],["Quote",222],["Backquote",192],["ShiftLeft",160],["Backslash",220],["KeyZ",90],["KeyX",88],["KeyC",67],["KeyV",86],["KeyB",66],["KeyN",78],["KeyM",77],["Comma",188],["Period",190],["Slash",191],["ShiftRight",161],["NumpadMultiply",106],["AltLeft",164],["Space",32],["CapsLock",20],["F1",112],["F2",113],["F3",114],["F4",115],["F5",116],["F6",117],["F7",118],["F8",119],["F9",120],["F10",121],["Pause",19],["ScrollLock",145],["Numpad7",103],["Numpad8",104],["Numpad9",105],["NumpadSubtract",109],["Numpad4",100],["Numpad5",101],["Numpad6",102],["NumpadAdd",107],["Numpad1",97],["Numpad2",98],["Numpad3",99],["Numpad0",96],["NumpadDecimal",110],["PrintScreen",42],["IntlBackslash",226],["F11",122],["F12",123],["NumpadEqual",187],["F13",124],["F14",125],["F15",126],["F16",127],["F17",128],["F18",129],["F19",130],["F20",131],["F21",132],["F22",133],["F23",134],["F24",135],["KanaMode",233],["Lang2",25],["Lang1",21],["IntlRo",194],["Convert",234],["NonConvert",235],["IntlYen",193],["NumpadComma",188],["NumpadEnter",13],["ControlRight",163],["NumpadDivide",111],["PrintScreen",42],["AltRight",165],["NumLock",144],["Pause",19],["Home",36],["ArrowUp",38],["PageUp",33],["ArrowLeft",37],["ArrowRight",39],["End",35],["ArrowDown",40],["PageDown",34],["Insert",45],["Delete",46],["MetaLeft",91],["OSLeft",91],["MetaRight",92],["OSRight",92],["Lang2",25],["Lang1",21],["NumpadClear",12],["NumpadClearEntry",12]]),Yt=new Map([["HanjaMode",25],["HangulMode",21]]),Un=new Map([["1",{vkCode:49,shift:!1}],["2",{vkCode:50,shift:!1}],["3",{vkCode:51,shift:!1}],["4",{vkCode:52,shift:!1}],["5",{vkCode:53,shift:!1}],["6",{vkCode:54,shift:!1}],["7",{vkCode:55,shift:!1}],["8",{vkCode:56,shift:!1}],["9",{vkCode:57,shift:!1}],["0",{vkCode:48,shift:!1}],["!",{vkCode:49,shift:!0}],["@",{vkCode:50,shift:!0}],["#",{vkCode:51,shift:!0}],["$",{vkCode:52,shift:!0}],["%",{vkCode:53,shift:!0}],["^",{vkCode:54,shift:!0}],["&",{vkCode:55,shift:!0}],["*",{vkCode:56,shift:!0}],["(",{vkCode:57,shift:!0}],[")",{vkCode:48,shift:!0}],["-",{vkCode:189,shift:!1}],["_",{vkCode:189,shift:!0}],["=",{vkCode:187,shift:!1}],["+",{vkCode:187,shift:!0}],[",",{vkCode:188,shift:!1}],["<",{vkCode:188,shift:!0}],[".",{vkCode:190,shift:!1}],[">",{vkCode:190,shift:!0}],[";",{vkCode:186,shift:!1}],[":",{vkCode:186,shift:!0}],["/",{vkCode:191,shift:!1}],["?",{vkCode:191,shift:!0}],["`",{vkCode:192,shift:!1}],["~",{vkCode:192,shift:!0}],["[",{vkCode:219,shift:!1}],["{",{vkCode:219,shift:!0}],["\\",{vkCode:220,shift:!1}],["|",{vkCode:220,shift:!0}],["]",{vkCode:221,shift:!1}],["}",{vkCode:221,shift:!0}],["'",{vkCode:222,shift:!1}],['"',{vkCode:222,shift:!0}],[" ",{vkCode:32,shift:!1}],["A",{vkCode:65,shift:!0}],["B",{vkCode:66,shift:!0}],["C",{vkCode:67,shift:!0}],["D",{vkCode:68,shift:!0}],["E",{vkCode:69,shift:!0}],["F",{vkCode:70,shift:!0}],["G",{vkCode:71,shift:!0}],["H",{vkCode:72,shift:!0}],["I",{vkCode:73,shift:!0}],["J",{vkCode:74,shift:!0}],["K",{vkCode:75,shift:!0}],["L",{vkCode:76,shift:!0}],["M",{vkCode:77,shift:!0}],["N",{vkCode:78,shift:!0}],["O",{vkCode:79,shift:!0}],["P",{vkCode:80,shift:!0}],["Q",{vkCode:81,shift:!0}],["R",{vkCode:82,shift:!0}],["S",{vkCode:83,shift:!0}],["T",{vkCode:84,shift:!0}],["U",{vkCode:85,shift:!0}],["V",{vkCode:86,shift:!0}],["W",{vkCode:87,shift:!0}],["X",{vkCode:88,shift:!0}],["Y",{vkCode:89,shift:!0}],["Z",{vkCode:90,shift:!0}],["a",{vkCode:65,shift:!1}],["b",{vkCode:66,shift:!1}],["c",{vkCode:67,shift:!1}],["d",{vkCode:68,shift:!1}],["e",{vkCode:69,shift:!1}],["f",{vkCode:70,shift:!1}],["g",{vkCode:71,shift:!1}],["h",{vkCode:72,shift:!1}],["i",{vkCode:73,shift:!1}],["j",{vkCode:74,shift:!1}],["k",{vkCode:75,shift:!1}],["l",{vkCode:76,shift:!1}],["m",{vkCode:77,shift:!1}],["n",{vkCode:78,shift:!1}],["o",{vkCode:79,shift:!1}],["p",{vkCode:80,shift:!1}],["q",{vkCode:81,shift:!1}],["r",{vkCode:82,shift:!1}],["s",{vkCode:83,shift:!1}],["t",{vkCode:84,shift:!1}],["u",{vkCode:85,shift:!1}],["v",{vkCode:86,shift:!1}],["w",{vkCode:87,shift:!1}],["x",{vkCode:88,shift:!1}],["y",{vkCode:89,shift:!1}],["z",{vkCode:90,shift:!1}]]);function ii(y,c,p,O,F=1){const Z=4294967295&Math.floor(y*F),re=Math.floor(y/4294967296*F);O?(c.setUint32(p,Z,!0),c.setUint32(p+4,re,!0)):(c.setUint32(p,re,!1),c.setUint32(p+4,Z,!1))}class Hi{constructor(c){this.ma=0,this.ga=c}wa(){return this.ga.getUint8(this.ma)}getUint8(){const c=this.wa();return this.ma++,c}Sa(c=!1){return this.ga.getUint16(this.ma,c=null!=c&&c)}getUint16(c=!1){const p=this.Sa(c);return this.ma+=2,p}ba(c=!1){return this.ga.getInt16(this.ma,c=null!=c&&c)}getInt16(c=!1){const p=this.ba(c);return this.ma+=2,p}ka(c=!1){return this.ga.getUint32(this.ma,c=null!=c&&c)}getUint32(c=!1){const p=this.ka(c);return this.ma+=4,p}ya(c=!1){return function(p,O,F){let Z=0,re=0;return F?(Z=p.getUint32(O,!0),re=p.getUint32(O+4,!0)):(re=p.getUint32(O,!1),Z=p.getUint32(O+4,!1)),4294967296*re+Z}(this.ga,this.ma,c)}Ia(c=!1){const p=this.ya(c);return this.ma+=8,p}reset(){this.ma=0}get Ca(){return this.ma}done(){return this.ma===this.ga.byteLength}left(){return this.ga.byteLength-this.ma}Ea(c){c>=0&&c<=this.ga.byteLength&&(this.ma=c)}Ta(c){this.Ea(this.ma+c)}Ma(c){if(c>this.left())return;const p=new Hi(new DataView(this.ga.buffer,this.ga.byteOffset+this.ma,c));return this.Ta(c),p}}class Nr{constructor(c){this.Pa=0,this.ga=c,this.Pa=0}get offset(){return this.Pa}reset(){this.Pa=0}Da(c){this.Pa+=c}Ra(){return this.ga.byteLength-this.Pa}Na(c){this.ga.setUint8(this.Pa,c),this.Pa+=1}xa(c,p){this.ga.setUint16(this.Pa,c,p),this.Pa+=2}Oa(c,p){this.ga.setUint32(this.Pa,c,p),this.Pa+=4}Ba(c){this.ga.setInt8(this.Pa,c),this.Pa+=1}Fa(c,p){this.ga.setInt16(this.Pa,c,p),this.Pa+=2}La(c,p){this.ga.setInt32(this.Pa,c,p),this.Pa+=4}Ua(c,p){this.ga.setFloat32(this.Pa,c,p),this.Pa+=4}Ga(c,p){this.ga.setFloat64(this.Pa,c,p),this.Pa+=8}Ha(c,p,O=1){ii(c,this.ga,this.Pa,p,O),this.Pa+=8}}function Or(y,c,p){var O,F;let Z;if(y.length>c.length+22)Z=y;else{let Ct="";const Rt=null!==(F=null===(O=document.currentScript)||void 0===O?void 0:O.src)&&void 0!==F?F:p;if(Rt){const Et=Rt.lastIndexOf("/");-1!==Et&&(Ct+=Rt.substring(0,Et+1))}Ct+=c,Z="importScripts('"+Ct+"');"}const Oe=new Blob([Z],{type:"text/javascript"}),je=URL.createObjectURL(Oe),ot=new Worker(je);return URL.revokeObjectURL(je),ot}function es(y){return Math.floor(1e3*y)}function Zs(y){return y>=6&&y<=9}var wr;const Us=1314280009,Vs=null===(wr=document.currentScript)||void 0===wr?void 0:wr.src;function Ma(y,c){switch(y){case 3:case 4:return 14;case 8:case 9:case 10:case 5:case 7:return 26;case 12:return 24;case 18:return 2;case 17:return function(p){let O=1;return Zs(p.id)&&(O+=9),O}(c);default:return 0}}class Ya{constructor(c){this.vr=c,this.Va=0,this.buffer=new ArrayBuffer(8388608),this.Wa=new Nr(new DataView(this.buffer)),this.initialized=!1,this._a=[],this.vr=c}initialize(c){this.qa(),this.params=c,this.Va=this.vr.$a(),this.initialized=!0,n.Log.d("{5eeca93}","{46ee72b}")}za(c){return c>this.Va?c-this.Va:0}qa(){this.Wa.Oa(Us),this.Wa.Na(1),this.Wa.Na(0),this.Wa.Fa(0)}Ka(c){this.Wa.Ha(c.recordedTs,!1,1e3),this.Wa.Oa(c.packetId),this.Wa.Oa(c.size)}Qa(c){this.Wa.xa(c.keycode),this.Wa.xa(c.flags),this.Wa.xa(c.scancode),this.Wa.Ha(c.captureTs,!1,1e3)}Ya(c){this.Wa.xa(c.flags),this.Wa.xa(c.xpos),this.Wa.xa(c.ypos),this.Wa.xa(c.data1),this.Wa.xa(c.data2),this.Wa.Oa(c.windowHandle),this.Wa.xa(c.vwheel),this.Wa.xa(c.hwheel),this.Wa.Ha(c.captureTs,!1,1e3)}Xa(c){this.Wa.xa(c.index),this.Wa.xa(c.bitmap),this.Wa.xa(c.buttons),this.Wa.xa(c.trigger);for(let p=0;p<4;p++)this.Wa.Fa(c.axes[p]);this.Wa.Ha(c.captureTs,!1,1e3)}ja(c){this.Wa.Na(c.id),this.Wa.Na(c.control)}Ja(c){for(let p=0;p<4;p++)this.Wa.Na(c.axes[p]);this.Wa.Na(c.ds4Btns[0]),this.Wa.Na(c.ds4Btns[1]),this.Wa.Na(c.ds4Btns[2]),this.Wa.Na(c.triggers[0]),this.Wa.Na(c.triggers[1])}Za(c){this.Wa.Na(c.id),Zs(c.id)&&this.Ja(c.data)}td(c){const p={keycode:0,flags:0,scancode:0,captureTs:0};return p.keycode=c.getUint16(),p.flags=c.getUint16(),p.scancode=c.getUint16(),p.captureTs=this.za(c.Ia()/1e3),p}sd(c){const p={flags:0,xpos:0,ypos:0,data1:0,data2:0,windowHandle:0,vwheel:0,hwheel:0,captureTs:0};return p.data1=c.getUint8(),p.flags=c.getUint8(),p.windowHandle=c.getUint32(),p.captureTs=this.za(c.Ia()/1e3),p}ed(c){const p={flags:0,xpos:0,ypos:0,data1:0,data2:0,windowHandle:0,vwheel:0,hwheel:0,captureTs:0};return p.hwheel=c.getUint16(),p.vwheel=c.getUint16(),p.flags=c.getUint16(),p.windowHandle=c.getUint32(),p.captureTs=this.za(c.Ia()/1e3),p}nd(c,p){const O={flags:0,xpos:0,ypos:0,data1:0,data2:0,windowHandle:0,vwheel:0,hwheel:0,captureTs:0};return O.xpos=c.getUint16(),O.ypos=c.getUint16(),O.flags=c.getUint16(),p&&(O.data1=c.getUint16(),O.data2=c.getUint16()),O.windowHandle=c.getUint32(),O.captureTs=this.za(c.Ia()/1e3),O}hd(c){const p={index:0,bitmap:0,buttons:0,trigger:0,axes:[0,0,0,0],captureTs:0};c.getUint16(!0),p.index=c.getUint16(!0),p.bitmap=c.getUint16(!0),c.getUint16(!0),p.buttons=c.getUint16(!0),p.trigger=c.getUint16(!0);for(let O=0;O<4;O++)p.axes[O]=c.getInt16(!0);return c.getUint16(!0),c.getUint16(!0),c.getUint16(!0),p.captureTs=this.za(c.Ia(!0)/1e3),p}od(c){return{id:c.getUint8(),control:c.getUint8()}}rd(c){let p;const O=c.getUint8();return Zs(O)&&(p={id:O,data:this.ad(c)}),p}ad(c){const p={ds4Btns:[0,0,0],triggers:[0,0],axes:[0,0,0,0]};c.getUint8(),c.getUint8(),c.getUint8();for(let O=0;O<4;O++)p.axes[O]=c.getUint8();return p.ds4Btns[0]=c.getUint8(),p.ds4Btns[1]=c.getUint8(),p.ds4Btns[2]=c.getUint8(),p.triggers[0]=c.getUint8(),p.triggers[1]=c.getUint8(),p}dd(c,p){let O;const F=c.getUint32(!0);switch(F){case 3:case 4:O=this.td(c);break;case 8:case 9:O=this.sd(c);break;case 10:O=this.ed(c);break;case 5:case 7:O=this.nd(c,5==F);break;case 12:O=this.hd(c);break;case 13:c.getUint16();break;case 18:O=this.od(c);break;case 17:O=this.rd(c)}if(void 0!==O)return{header:{recordedTs:p,size:Ma(F,O),packetId:F},data:O};n.Log.d("{5eeca93}","{e255bfc}",F)}ld(c){const p=new Hi(c),O=this.za(this.vr.$a());for(;!p.done();){const F=p.getUint8();switch(F){case 36:p.Ia();break;case 33:case 34:const Z=33==F?p.getUint16():p.left(),re=p.Ma(Z);if(void 0===re)return void n.Log.e("{5eeca93}","{8400b62}",Z,p.left());const Oe=this.dd(re,O);if(void 0===Oe)break;this.ud(Oe);break;default:return void n.Log.e("{5eeca93}","{0028fe1}",F)}}}ud(c){switch(this.Ka(c.header),c.header.packetId){case 4:case 3:this.Qa(c.data);break;case 8:case 9:case 7:case 5:case 10:this.Ya(c.data);break;case 12:this.Xa(c.data);break;case 18:this.ja(c.data);break;case 17:this.Za(c.data)}this._a.push(c)}Ad(c){this.initialized&&this.ld(c)}vd(c){for(const p of c)p.header.recordedTs=es(p.header.recordedTs),p.data.captureTs&&(p.data.captureTs=es(p.data.captureTs))}fd(){var c,p,O;try{const F=null!==(p=null===(c=this.params)||void 0===c?void 0:c.fileName)&&void 0!==p?p:"inputrecordfile";_s([this.buffer.slice(0,this.Wa.offset)],`${F}.dat`,"application/octet-stream"),null!==(O=this.params)&&void 0!==O&&O.pd&&(this.vd(this._a),_s([JSON.stringify(this._a)],`${F}-events.json`,"application/json"))}catch(F){n.Log.e("{5eeca93}","{45fa32c}",F)}}}class Qa{constructor(c,p){this.vr=p,this.md=!0,this.gd=c,this.vr=p}wd(c){const p=c.data;p.input?this.gd.Sd(p.input):p.result?n.Log.d("{5eeca93}","{6ab9f7d}",p.result):p.log&&n.Log.d("{59381ac}","{0b0c6f9}",p.log)}bd(c){}stop(){var c;null===(c=this.kd)||void 0===c||c.terminate()}start(){var c;if(!this.playbackBuffer)return;const p={start:{playbackBuffer:this.playbackBuffer,loop:this.md,absStreamBeginTs:performance.timeOrigin+this.vr.yd()}};n.Log.d("{5eeca93}","{8a97b19}"),null===(c=this.kd)||void 0===c||c.postMessage(p)}Id(c){const p=c.getUint32(0),O=c.getInt8(4),F=c.getInt8(5);return p==Us&&1==O&&0==F}initialize(c){if(c.buffer.byteLength<8)return n.Log.e("{5eeca93}","{fbe135e}"),!1;const p=new DataView(c.buffer,0,8);if(!this.Id(p))return n.Log.e("{5eeca93}","{9946103}"),!1;try{this.kd=Or('class t{constructor(t){this.i=0,this.h=t}o(){return this.h.getUint8(this.i)}getUint8(){const t=this.o();return this.i++,t}u(t=!1){return t=null!=t&&t,this.h.getUint16(this.i,t)}getUint16(t=!1){const e=this.u(t);return this.i+=2,e}l(t=!1){return t=null!=t&&t,this.h.getInt16(this.i,t)}getInt16(t=!1){const e=this.l(t);return this.i+=2,e}m(t=!1){return t=null!=t&&t,this.h.getUint32(this.i,t)}getUint32(t=!1){const e=this.m(t);return this.i+=4,e}T(t=!1){return function(t,e,s){let i=0,r=0;return s?(i=t.getUint32(e,!0),r=t.getUint32(e+4,!0)):(r=t.getUint32(e,!1),i=t.getUint32(e+4,!1)),4294967296*r+i}(this.h,this.i,t)}D(t=!1){const e=this.T(t);return this.i+=8,e}reset(){this.i=0}get U(){return this.i}done(){return this.i===this.h.byteLength}left(){return this.h.byteLength-this.i}I(t){t>=0&&t<=this.h.byteLength&&(this.i=t)}v(t){this.I(this.i+t)}B(e){if(e>this.left())return;const s=new t(new DataView(this.h.buffer,this.h.byteOffset+this.i,e));return this.v(e),s}}const e=self;function s(t){const s={log:t};e.postMessage(s)}let i=new class{constructor(){this.absStreamBeginTs=0,this.H=0}S(t){return this.H+t}M(t){return t>0?this.S(t):0}P(){return performance.timeOrigin+performance.now()-this.absStreamBeginTs}C(t){return{recordedTs:t.D()/1e3,packetId:t.getUint32(),size:t.getUint32()}}G(t){return{keycode:t.getUint16(),flags:t.getUint16(),scancode:t.getUint16(),captureTs:this.M(t.D()/1e3)}}K(t){return{flags:t.getUint16(),xpos:t.getUint16(),ypos:t.getUint16(),data1:t.getUint16(),data2:t.getUint16(),windowHandle:t.getUint32(),vwheel:t.getUint16(),hwheel:t.getUint16(),captureTs:this.M(t.D()/1e3)}}L(t){const e=t.getUint16(),s=t.getUint16(),i=t.getUint16(),r=t.getUint16(),n=[0,0,0,0];for(let e=0;e<4;e++)n[e]=t.getInt16();return{index:e,bitmap:s,buttons:i,trigger:r,axes:n,captureTs:this.M(t.D()/1e3)}}R(t){return{id:t.getUint8(),control:t.getUint8()}}V(t){const e=[0,0,0,0];for(let s=0;s<4;s++)e[s]=t.getUint8();const s=[0,0,0];s[0]=t.getUint8(),s[1]=t.getUint8(),s[2]=t.getUint8();const i=[0,0];return i[0]=t.getUint8(),i[1]=t.getUint8(),{ds4Btns:s,axes:e,triggers:i}}j(t){let e;const s=t.getUint8();return function(t){return t>=6&&t<=9}(s)&&(e={id:s,data:this.V(t)}),e}A(t,e){let s;switch(t){case 3:case 4:s=this.G(e);break;case 8:case 9:case 10:case 5:case 7:s=this.K(e);break;case 12:s=this.L(e);break;case 18:s=this.R(e);break;case 17:s=this.j(e)}return s}F(t){if(t.length>0){const s={input:t};e.postMessage(s)}}async J(t,e){const s=e-this.P();s>0&&await new Promise((t=>setTimeout(t,s))),this.F(t)}async N(e,i=!1){do{this.H=this.P();const i=new t(e);let r=[],n=0;for(;!i.done();){const t=i.B(16);if(void 0===t)return s("{76ef155}16{0da0ef8}"+i.left()),!1;const e=this.C(t),a=i.B(e.size);if(void 0===a)return s("{fbf3a80}"+e.size+"{0da0ef8}"+i.left()),!1;const h=this.A(e.packetId,a);if(!h){s("{20d711f}"+e.packetId);continue}const c=this.S(e.recordedTs);n>0&&c>n&&(await this.J(r,n),r=[]),r.push({header:e,data:h}),n=c}await this.J(r,n)}while(i);return!0}async O(t){if(t.start){const s=t.start;this.absStreamBeginTs=s.absStreamBeginTs;const i={result:await this.N(s.playbackBuffer,s.loop)};e.postMessage(i)}}};e.onmessage=async t=>{i.O(t.data)};',"inputplaybackworker.js",Vs),this.kd.onmessage=this.wd.bind(this),this.kd.onerror=this.bd.bind(this)}catch(O){return n.Log.e("{5eeca93}","{cb06694}",O.message),!1}return this.playbackBuffer=new DataView(c.buffer,8,c.buffer.byteLength-8),this.md=c.loop,!0}}const za=9+4*(Math.max(38,72)+3),Bo=65535;class li extends DataView{constructor(c,p,O,F){super(c,p,O),this.shift=0,this.setUint8=(Z,re)=>super.setUint8(Z+this.shift,re),this.setUint16=(Z,re,Oe)=>super.setUint16(Z+this.shift,re,Oe),this.setUint32=(Z,re,Oe)=>super.setUint32(Z+this.shift,re,Oe),this.setInt8=(Z,re)=>super.setInt8(Z+this.shift,re),this.setInt16=(Z,re,Oe)=>super.setInt16(Z+this.shift,re,Oe),this.setInt32=(Z,re,Oe)=>super.setInt32(Z+this.shift,re,Oe),this.setFloat32=(Z,re,Oe)=>super.setFloat32(Z+this.shift,re,Oe),this.setFloat64=(Z,re,Oe)=>super.setFloat64(Z+this.shift,re,Oe),this.shift=F??0}}class Ii{constructor(c,p){this.Cd=new DataView(new ArrayBuffer(c)),this.Ed=new Nr(this.Cd),this.Td=p,this.Md()}get writer(){return this.Ed}get channel(){return this.Td}get Pd(){return this.Ed.offset-9}Md(){this.Ed.reset(),this.Ed.Da(9)}Ra(){return this.Ed.Ra()}data(){return new DataView(this.Cd.buffer,9,this.Pd)}Dd(c){if(c>this.Ra())return;const p=new li(this.Cd.buffer,this.Ed.offset,c);return this.Ed.Da(c),p}}function Pi(y){switch(y){case 3:case 4:case 8:case 9:return 18;case 10:return 22;case 5:case 7:return ns(5==y);case 12:return 38;case 18:return 10;case 17:return 72;default:return 0}}class Dr{constructor(c,p,O,F,Z,re,Oe,je,ot,Ct){if(this.Rd=0,this.Nd=0,this.buffer=new ArrayBuffer(1150),this.xd=new DataView(this.buffer),this.Od=new Ii(za,"input_channel_v1"),this.Bd=new ArrayBuffer(658),this.Fd=new DataView(this.Bd),this.Ld=new ArrayBuffer(100),this.Ud=new ArrayBuffer(1150),this.Gd=0,this.Hd=this.Vd,this.Wd=this._d,this.qd=[],this.$d=new Map,this.zd=0,this.Kd=[],this.Qd=!1,this.Yd=(Rt,Et)=>Math.round(Bo*(Rt/Et)),this.vr=je,this.Xd=c,this.jd=p,this.Jd=Z,this.Zd=F,this.tc=re,this.tc.onmessage=Rt=>this.onMessage(Rt),this.sc=ot,this.telemetry=Oe,this.ec=O,this.nc=this.hc.bind(this),this.Fd.setUint8(9,34),this.Fd.setUint32(10,24,!0),this.sc&&(this.$d=new Map,this.oc=new Ii(za+16,"input_channel_partially_reliable"),Ct)){this.zd=Ct.rc;for(let Et=0;Et<64;Et++){const qt=BigInt(1)<<BigInt(Et);(qt&Ct.ac)==qt&&(this.Kd[Et]=!0)}}this.Qd=Sn.$o,this.Qd&&(this.dc=new Ya(this.vr),this.dc.initialize({pd:!0}))}cc(c,p,O){return c.setUint32(p,19,!0),c.setUint8(p+4,O),p+5}lc(c){const p=this.Wd(5);this.cc(p,0,c);try{this.uc(p),n.Log.d("{57a6a4d}","{56c9613}",c.toString(2))}catch(O){n.Log.e("{57a6a4d}","{cbe483c}",O),this.telemetry.Ac(O,"LockKeys state synchronize exception","{57a6a4d}.ts",0,0,!0)}}onMessage(c){const p=new DataView(c.data);if(0===this.Nd){let O=p.getUint16(0,!0);526==O?(this.nc=this.vc.bind(this),this.Nd=p.getUint16(2,!0)):(this.nc=this.hc.bind(this),this.Nd=O),2==this.Nd?this.jd.fc=!0:this.Nd>2&&(this.jd.fc=!0,this.Hd=this.mc,this.Wd=this.gc),n.Log.i("{57a6a4d}","{68c4654}",this.Nd)}else this.nc(p,0)}vc(c,p){let O=c.getUint16(p,!0);if(267===O)this.hc(c,p+2);else{let F=255&O;switch(F){case 32:case 33:case 34:case 35:case 36:case 255:this.wc(F,c,1);break;default:n.Log.w("{57a6a4d}","{aea35b8}",O)}}}wc(c,p,O){34===c?this.Sc(p,O):n.Log.d("{57a6a4d}","{ba4ff6a}",c)}Sc(c,p){let O=c.getUint32(p+0,!0);switch(O){case 267:this.hc(c,p+4);break;case 17:this.bc(c,p+4);break;default:n.Log.w("{57a6a4d}","{25be6a3}",O)}}bc(c,p){let O=c.getUint8(p+0);if(Zs(O)){let F=O-6,Z=c.getUint8(p+3),re=c.getUint8(p+4);if(5!==Z||1&~re)n.Log.w("{57a6a4d}","{d8b7bec}",Z,re,O);else{const Oe=c.getUint8(p+7)<<8,je=c.getUint8(p+8)<<8;for(const ot of this.qd)ot.kc(F,Oe,je)}}else n.Log.w("{57a6a4d}","{6135ec1}",O)}hc(c,p){const O=c.getUint16(p+0,!0);if(1==O){const F=c.getUint16(p+2,!0);if(F<6)return void n.Log.e("{57a6a4d}","{1527181}",F);F>6&&n.Log.w("{57a6a4d}","{78db114}",F);const Z=c.getUint16(p+4,!0),re=c.getUint16(p+6,!0),Oe=c.getUint16(p+8,!0);for(const je of this.qd)je.yc(Z,re,Oe)}else 0==O?(c=new DataView(c.buffer,p+2),this.Jd.Ic(c)):n.Log.w("{57a6a4d}","{c7cf6da}",O)}Cc(c,p,O,F,Z){return c.setUint32(p,O,!0),c.setUint8(p+4,F),c.setUint8(p+5,0),c.setUint32(p+6,0),ii(Z,c,p+10,!1,1e3),p+18}Ec(c,p){const O=this.Wd(18);this.Cc(O,0,8,ao(c),p);try{this.uc(O)}catch(F){n.Log.e("{57a6a4d}","{b258856}",F),this.telemetry.Ac(F,"send mousedown exception","{57a6a4d}.ts",0,0,!0)}}Tc(c,p){const O=this.Wd(18);this.Cc(O,0,9,ao(c),p);try{this.uc(O)}catch(F){n.Log.e("{57a6a4d}","{c1ae1fc}",F),this.telemetry.Ac(F,"send mouseup exception","{57a6a4d}.ts",0,0,!0)}}Mc(c,p,O,F){return c.setUint32(p,10,!0),c.setUint16(p+4,0,!1),c.setUint16(p+6,O,!1),c.setUint16(p+8,0,!1),c.setUint32(p+10,0),ii(F,c,p+14,!1,1e3),p+22}Pc(c,p){const O=this.Wd(22);var F;this.Mc(O,0,-(F=c),p);try{this.uc(O)}catch(F){n.Log.e("{57a6a4d}","{3d81a57}",F),this.telemetry.Ac(F,"send mousewheel exception","{57a6a4d}.ts",0,0,!0)}}Dc(c,p,O,F=0){const Z=this.Wd(ns(c));this.Rc(Z,0,c,p,O,F);try{this.Nc()&&this.uc(Z)}catch(re){n.Log.e("{57a6a4d}","{dba1265}",re),this.telemetry.Ac(re,"send CursorPos exception","{57a6a4d}.ts",0,0,!0)}}xc(c,p,O,F,Z){return c.setUint8(p+0,32),c.setUint16(p+1,O,!1),ii(Z,c,p+3,!1,1e3),ii(F,c,p+11,!1,1e3),p+19}Oc(c,p,O,F){const Z=this.jd.Bc[O],re=p;p+=19;for(let je=0;je<Z.Fc;++je){const ot=this.jd.Bc[O+je];c.setUint8(p,ns(ot.Lc)),p++,p=this.Rc(c,p,ot.Lc,ot.x,ot.y,ot.Uc)}return this.xc(c,re,p-re,Z.Gc,F),p}Rc(c,p,O,F,Z,re=0,Oe=!1){let je=7,ot=this.Zd.fa,Ct=this.Zd.pa;O&&(je=5,this.Qd&&!Oe?(F=this.Yd(F,this.Zd.fa),Z=this.Yd(Z,this.Zd.pa),ot=Ct=Bo):Oe&&(ot=Ct=Bo));let Rt=0;return 5==je&&(Rt=4),c.setUint32(p+0,je,!0),c.setUint16(p+4,F,!1),c.setUint16(p+6,Z,!1),c.setUint16(p+8,0,!1),c.setUint32(p+10+Rt,0,!1),ii(re,c,p+14+Rt,!1,1e3),Rt&&(c.setUint16(p+10,ot,!1),c.setUint16(p+12,Ct,!1)),p+ns(O)}Hc(c,p,O,F,Z,re=0){return c.setUint32(p,O,!0),c.setUint16(p+4,F,!1),c.setUint16(p+6,Z,!1),c.setUint16(p+8,0,!1),ii(re,c,p+10,!1,1e3),p+18}Vc(c,p,O,F=0){if(4!==c&&3!==c)return void n.Log.e("{57a6a4d}","{66e269d}",c);const Z=this.Wd(18);this.Hc(Z,0,c,p,O,F),this.uc(Z)}Wc(){const c=this.Wd(4);c.setUint32(0,2,!0);try{this.tc.send(c),n.Log.d("{57a6a4d}","{5693344}")}catch(p){n.Log.e("{57a6a4d}","{ab52f04}",p),this.telemetry.Ac(p,"heartbeat exception","{57a6a4d}.ts",0,0,!0)}}uc(c,p=!0,O="input_channel_v1"){var F,Z;if("input_channel_partially_reliable"!=O&&this._c()&&(c=this.Hd(c)),void 0===c)return!1;this.Qd&&"input_channel_v1"==O&&(null===(F=this.dc)||void 0===F||F.Ad(c));const re=window.performance.now();if(!this.Xd.qc())return!1;let Oe=!1;this.Nd>2&&p&&(c.byteOffset<9?n.Log.w("{57a6a4d}","{0fc6121}"):((c=new DataView(c.buffer,c.byteOffset-9,9+c.byteLength)).setUint8(0,35),ii(this.vr.$a(),c,1,!1,1e3)));try{let je=performance.now();switch(O){case"input_channel_partially_reliable":null===(Z=this.sc)||void 0===Z||Z.send(c);break;case"input_channel_v1":this.tc.send(c);break;default:throw new Error(`Invalid input channel ${O}`)}let ot=performance.now();this.Jd.$c(ot-je);const Ct=window.performance.now();this.ec.zc+=1;const Rt=Ct-re;Rt>5&&(this.ec.Kc+=1),Rt>10&&(this.ec.Qc+=1),Oe=!0}catch(je){je.stack&&!je.stack.includes("Could not send data")&&(n.Log.e("{57a6a4d}","{7a6bf7c}",je),this.Nc()&&this.telemetry.Ac(je,"sendinput exception","{57a6a4d}.ts",0,0,!0))}return Oe}Yc(){let c=1,p=0;for(;p<this.jd.Xc;){c+=2;const O=this.jd.Bc[p].Fc;if(O>0){c+=19;for(let F=0;F<O;F++)c+=1+ns(this.jd.Bc[p+F].Lc);p+=O}else c+=ns(this.jd.Bc[p].Lc),p++}return c}jc(){let c=0,p=-1;for(let O=0;O<this.jd.Xc;O++)this.jd.Bc[O].Fc>0?(c+=9,p=this.jd.Bc[O].Fc):0===p&&(c+=9),c+=3+ns(this.jd.Bc[O].Lc),p--;return c}_c(){return this.jd.Xc>0}Jc(c){this.Gd=window.setTimeout(()=>{this.Gd=0,this.Zc()},c)}Zc(){this.uc()}Vd(c){0!==this.Gd&&(window.clearTimeout(this.Gd),this.Gd=0);const p=performance.now();this.Rd=p;const O=c?2+c.byteLength:0,F=this.Yc()+O;let Z;F>this.buffer.byteLength?(Z=new DataView(new ArrayBuffer(F)),this.ec.tl++):Z=new DataView(this.buffer,0,F),Z.setUint8(0,255);let re=1,Oe=0;for(;Oe<this.jd.Xc;){const je=re;re+=2;const ot=this.jd.Bc[Oe];ot.Fc>0?(re=this.Oc(Z,re,Oe,p),Oe+=ot.Fc):(re=this.Rc(Z,re,ot.Lc,ot.x,ot.y,ot.Uc),Oe++),Z.setUint16(je,re-je-2)}if(this.jd.clear(),c){Z.setUint16(re,c.byteLength),re+=2;for(let je=0;je<c.byteLength;je++)Z.setUint8(re+je,c.getUint8(je));re+=c.byteLength}return Z}mc(c){var p;if(c&&c.buffer!=this.buffer)return this.Zc(),c;0!==this.Gd&&(window.clearTimeout(this.Gd),this.Gd=0),this.Rd=performance.now();const O=this.jc()+(null!==(p=c?.byteLength)&&void 0!==p?p:0),F=9+O;let Z;if(F>this.buffer.byteLength){if(Z=new DataView(new ArrayBuffer(F),F-O,O),this.ec.tl++,c){const je=Z.byteLength-c.byteLength;for(let ot=0;ot<c.byteLength;ot++)Z.setUint8(je+ot,c.getUint8(ot))}}else Z=new DataView(this.buffer,this.buffer.byteLength-O,O);let re=0,Oe=-1;for(let je=0;je<this.jd.Xc;je++){const ot=this.jd.Bc[je];ot.Fc>0?(Oe=ot.Fc,Z.setUint8(re,36),ii(ot.Gc,Z,re+1,!1,1e3),re+=9):0===Oe&&(Z.setUint8(re,36),ii(0,Z,re+1,!1,1e3),re+=9),Z.setUint8(re,33),Z.setUint16(re+1,ns(ot.Lc)),re=this.Rc(Z,re+3,ot.Lc,ot.x,ot.y,ot.Uc),Oe--}return this.jd.clear(),Z}_d(c){return new li(this.Ld,0,c)}gc(c){const p=this.buffer.byteLength-(c+=1);let O=new li(this.buffer,p,c,1);return this.xd.setUint8(p,34),O}il(c){var p;const O=null!==(p=this.$d.get(c))&&void 0!==p?p:1;return this.$d.set(c,(O+1)%65536),O}sl(c,p){if(0===c.Pd)return;p=p??c.channel;const O=c.data();this.uc(O,!0,p),c.Md()}el(c,p,O=!1,F){const Z=p+(O?1:3)+(void 0===F?0:4);if(!(Z>c.Ra()&&(this.sl(c),Z>c.Ra()))){if(void 0!==F){const re=this.il(F);c.writer.Na(38),c.writer.Na(F),c.writer.xa(re)}return O?c.writer.Na(34):(c.writer.Na(33),c.writer.xa(p)),c.Dd(p)}}sendTextInput(c){let p=0,O=new DataView(c,0,c.byteLength),F=new ArrayBuffer(1021);for(;p<c.byteLength;){let Z=0;if(c.byteLength-p<=1016)Z=c.byteLength-p;else{Z=p+1016;let Oe=!1;for(let je=0;je<4;je++){if(128!=(192&O.getUint8(Z))){Oe=!0;break}Z--}if(!Oe){n.Log.e("{57a6a4d}","{938b0d3}");break}Z-=p}let re=new DataView(F,0,Z+5);re.setUint8(0,34),re.setUint32(1,23,!0),new Uint8Array(F).set(new Uint8Array(c,p,Z),5),p+=Z,this.uc(re,!1)}}nl(c,p){const O=c.byteLength;if(O>1135)return n.Log.e("{57a6a4d}","{d6be538}"),!1;const Z=new DataView(this.Ud,0,13+O),re=new Nr(Z);re.Na(34),re.Oa(1,!0),re.Oa(0,!0),re.Oa(O,!0);const Oe=new DataView(c);for(let ot=0;ot<O;ot++)re.Na(Oe.getUint8(ot));let je=!1;try{if(p)this.tc.send(Z);else{if(!this.sc)return n.Log.w("{57a6a4d}","{4908850}"),!1;this.sc.send(Z)}je=!0}catch(ot){ot.stack&&!ot.stack.includes("Could not send data")&&(n.Log.e("{57a6a4d}","{f3886c1}",ot),this.Nc()&&this.telemetry.Ac(ot,"sendinput (bulk payload) exception","{57a6a4d}.ts",0,0,!0))}return je}Nc(){return"open"===this.tc.readyState&&(!this.sc||"open"===this.sc.readyState)}stop(){var c;this.tc.bufferedAmount>0&&n.Log.w("{57a6a4d}","{5e5b9e5}",this.tc.bufferedAmount),this.sc&&this.sc.bufferedAmount>0&&n.Log.w("{57a6a4d}","{3a88bc1}",this.sc.bufferedAmount),this.Qd&&(null===(c=this.dc)||void 0===c||c.fd())}get hl(){return this.Nd}get ol(){return this.Rd}rl(c){let p=new Uint8Array(c);return Array.prototype.map.call(p,function(O){return("0"+(255&O).toString(16)).slice(-2)}).join("")}al(c){let p="";for(let O=0;O<c.byteLength;O++)p+=("0"+(255&c.getUint8(O)).toString(16)).slice(-2);return p}dl(c,p,O,F,Z,re,Oe=0,je=0){c.setUint32(p,12,!0),c.setUint16(p+4,26,!0),c.setUint16(p+6,O,!0),c.setUint16(p+8,je,!0),c.setUint16(p+6+4,20,!0),c.setUint16(p+6+6,F,!0),c.setUint16(p+6+8,Z,!0),c.setInt16(p+6+10,re[0],!0),c.setInt16(p+6+12,re[1],!0),c.setInt16(p+6+14,re[2],!0),c.setInt16(p+6+16,re[3],!0),c.setUint16(p+6+18,0,!0),c.setUint16(p+6+20,85,!0),c.setUint16(p+6+22,0,!0),ii(Oe,c,p+6+24,!0,1e3)}cl(c){const p=this.el(this.Od,38,!0);p&&(this.dl(p,0,0,0,0,oo([0,0,0,0]),0,c),this.sl(this.Od))}ll(c,p,O,F,Z,re,Oe,je){if(this.Nd<3)return;let ot;if(ot=this.ul(p)&&this.oc?this.el(this.oc,38,!1,p):this.el(this.Od,38),!ot)return;const Ct=this.vr.kr(re);this.dl(ot,0,p,O,F,oo(Z),Ct,Oe)}Al(c,p,O,F,Z=0){const re=this.el(this.Od,38,!0);re&&(this.dl(re,0,O,c,p,oo(F),0,Z),this.sl(this.Od))}vl(){this.Nd<3||(this.Zc(),this.sl(this.Od),this.oc&&this.sl(this.oc))}fl(c){}pl(c){}ml(c){const p=this.el(this.Od,6,!0);p&&(p.setUint32(0,13,!0),p.setUint16(4,c?1:0,!1),this.sl(this.Od))}gl(c,p,O){c.setUint32(0,18,!0),c.setUint8(4,p),c.setUint8(5,O),c.setUint32(6,1)}wl(c,p){const O=this.el(this.Od,10,!0);O&&(this.gl(O,c,p),this.sl(this.Od))}Sl(c){return c<4?c+2:0}bl(c){return c<4?c+6:0}kl(c){this.wl(this.Sl(c),1)}yl(c){this.wl(this.Sl(c),3)}Il(c){this.wl(this.bl(c),1)}Cl(c){this.wl(this.bl(c),3)}El(c,p,O,F,Z,re=0){c.setUint32(0,17,!0),c.setUint8(4,p),c.setUint8(5,4),c.setUint8(6,0);let Oe=7;c.setUint8(Oe+0,1),c.setUint8(Oe+1,Z[0]),c.setUint8(Oe+2,Z[1]),c.setUint8(Oe+3,Z[2]),c.setUint8(Oe+4,Z[3]),c.setUint8(Oe+5+0,O[0]),c.setUint8(Oe+5+1,O[1]),c.setUint8(Oe+5+2,O[2]),c.setUint8(Oe+8,F[0]),c.setUint8(Oe+9,F[1]),c.setUint16(Oe+10,0,!0),c.setUint8(Oe+12,0),c.setInt16(Oe+13,0,!0),c.setInt16(Oe+15,0,!0),c.setInt16(Oe+17,0,!0),c.setInt16(Oe+19,0,!0),c.setInt16(Oe+21,0,!0),c.setInt16(Oe+23,0,!0),c.setUint32(Oe+25,0,!0),c.setUint8(Oe+29,0),c.setUint8(Oe+30,11),c.setUint8(Oe+31,0),c.setUint8(Oe+32,0),c.setUint8(Oe+33,0),Oe+=34,new Uint8Array(c.buffer,c.byteOffset+Oe,72-Oe).fill(0)}Tl(c,p,O,F,Z,re,Oe,je){if(this.Nd<3)return;let ot;const Ct=this.bl(p);if(ot=this.Ml(Ct)&&this.oc?this.el(this.oc,72,!1,4+Ct):this.el(this.Od,72),!ot)return;const Rt=this.vr.kr(re);var Et;this.El(ot,Ct,function(Et,qt){let gn=0;const tn=!!(4&Et),Pn=!!(2&Et),Bn=!!(8&Et),ei=!!(1&Et);tn||Pn||Bn||ei?ei?gn=Bn?1:tn?7:0:Pn?gn=Bn?3:tn?5:4:Bn?gn=2:tn&&(gn=6):gn=8,gn|=16384&Et?16:0,gn|=4096&Et?32:0,gn|=8192&Et?64:0,gn|=32768&Et?128:0;let jn=0;jn|=256&Et?1:0,jn|=512&Et?2:0,jn|=255&qt?4:0,jn|=65280&qt?8:0,jn|=32&Et?16:0,jn|=16&Et?32:0,jn|=64&Et?64:0,jn|=128&Et?128:0;let si=0;return si|=0,si|=65536&Et?1:0,si|=131072&Et?2:0,[gn,jn,si]}(O,F),[255&(Et=F),(65280&Et)>>8],function(Et){const qt=gn=>127.5*(gn+1);return[qt(Et[0]),qt(Et[1]),qt(Et[2]),qt(Et[3])]}(Z),Rt)}ua(c,p,O,F,Z,re,Oe,je){if(c>=40)return!1;const ot=18+16*c;return this.Fd.setUint8(ot+0,p),this.Fd.setUint8(ot+1,O),this.Fd.setUint16(ot+2,F,!1),this.Fd.setUint16(ot+4,Z,!1),this.Fd.setUint8(ot+6,re),this.Fd.setUint8(ot+7,Oe),ii(je,this.Fd,ot+8,!1,1e3),!0}Aa(c){let p=8+16*c;this.Fd.setUint16(14,p,!1),this.Fd.setUint16(16,c,!1);let O=10;this.Nd>=3&&(p++,O--);const F=new DataView(this.Fd.buffer,O,p);return this.Zc(),this.uc(F)}Pl(c){this.qd.push(c)}Dl(c){const p=this.qd.indexOf(c);p>-1&&this.qd.splice(p,1)}ul(c){if(!this.sc)return!1;const p=1<<c;return(p&this.zd)==p}Ml(c){var p;return!!this.sc&&null!==(p=this.Kd[c])&&void 0!==p&&p}Rl(c){let p;switch(c.header.packetId){case 12:const O=c.data.index;this.ul(O)&&(p=O);break;case 17:const F=c.data.id;this.Ml(F)&&(p=F)}return p}Sd(c){void 0===this.playbackBuffer&&(this.playbackBuffer=new Ii(1150,"input_channel_v1"));let p="input_channel_v1";for(let O=0;O<c.length;O++){const F=c[O],Z=F.header.packetId,re=this.Rl(F);void 0!==re&&(p="input_channel_partially_reliable");const Oe=this.el(this.playbackBuffer,Pi(Z),!1,re);if(!Oe)return;switch(Z){case 4:case 3:{let je=F.data;this.Hc(Oe,0,Z,je.keycode,je.flags,je.captureTs);break}case 8:case 9:{let je=F.data;this.Cc(Oe,0,Z,je.data1,je.captureTs);break}case 7:case 5:{let je=F.data;this.Rc(Oe,0,5==F.header.packetId,je.xpos,je.ypos,je.captureTs,!0);break}case 10:{let je=F.data;this.Mc(Oe,0,je.vwheel,je.captureTs);break}case 12:{let je=F.data;this.dl(Oe,0,je.index,je.buttons,je.trigger,je.axes,je.captureTs,je.bitmap);break}case 18:{let je=F.data;this.gl(Oe,je.id,je.control);break}case 17:{let je=F.data;if(Zs(je.id)){const ot=je.data;this.El(Oe,je.id,ot.ds4Btns,ot.triggers,ot.axes,0)}break}}}this.sl(this.playbackBuffer,p)}}function ns(y){return y?26:22}class ws{constructor(c){this.fc=!1,this.Nl=0,this.xl=new Array(c);for(let p=0;p<this.Bc.length;p++)this.xl[p]={Lc:!1,x:0,y:0,Uc:0,Fc:0,Gc:0}}get Bc(){return this.xl}get Xc(){return this.Nl}clear(){this.Nl=0}Ol(c,p){this.xl[c].Fc=p}Bl(c,p,O,F,Z,re,Oe){if(Oe&&this.Nl>0){const ot=this.xl[this.Nl-1];if(ot.Lc===c&&ot.Gc===re)return void(c?(ot.x=p,ot.y=O):(ot.x+=p,ot.y+=O))}const je=this.fc?Z:0;if(this.Nl==this.xl.length)this.xl.push({Lc:c,x:p,y:O,Uc:F,Fc:je,Gc:re}),this.Nl++;else{const ot=this.xl[this.Nl++];ot.Lc=c,ot.x=p,ot.y=O,ot.Uc=F,ot.Fc=je,ot.Gc=re}}}function oo(y){const c=p=>Math.round(32767.5*(p+1))-32768;return[c(y[0]),c(-y[1]),c(y[2]),c(-y[3])]}function ao(y){return y+1}z.VirtualButton=void 0,function(y){y[y.A=4096]="A",y[y.B=8192]="B",y[y.X=16384]="X",y[y.Y=32768]="Y",y[y.LB=256]="LB",y[y.RB=512]="RB",y[y.LT=255]="LT",y[y.RT=65280]="RT",y[y.BACK=32]="BACK",y[y.START=16]="START",y[y.STICK_LEFT=64]="STICK_LEFT",y[y.STICK_RIGHT=128]="STICK_RIGHT",y[y.DPAD_UP=1]="DPAD_UP",y[y.DPAD_DOWN=2]="DPAD_DOWN",y[y.DPAD_LEFT=4]="DPAD_LEFT",y[y.DPAD_RIGHT=8]="DPAD_RIGHT"}(z.VirtualButton||(z.VirtualButton={}));class Da{constructor(c){this.Fl=c}enable(){this.Fl.Ll=!0}disable(){this.Fl.Ll=!1}updateInput(c,p,O){this.Fl.Ll&&($s.getInstance().wo(),this.Fl.Ul=c,this.Fl.Gl=p,this.Fl.Hl=O,this.Fl.Vl=!0)}}class Sl{constructor(c){this.buttons=c.Wl(c.device),this.axes=c._l(c.device),this.triggers=c.ql(c.device),this.timestamp=performance.now()}$l(c,p){for(let O=0;O<c.length;O++)if(Math.abs(c[O]-p[O])>.01)return!0;return!1}zl(c){return this.buttons==c.buttons&&this.triggers==c.triggers&&!this.$l(this.axes,c.axes)}}const Vr={startDelay:0,duration:0,weakMagnitude:0,strongMagnitude:0};class Ca{constructor(c,p){var O,F;this.Kl=new Set,this.telemetry=new Set,this.Ql=!1,this.Yl=0,this.Xl=0,this.jl=0,this.gamepadPollInterval=100,this.Jl=4,this.Zl=[],this.tu=[],this.iu=[],this.hapticsSupported=!1,this.su=!1,this.eu=!1,this.allowHaptics=!0,this.nu=!1,this.hu=new Set,this.ou=!1,this.ru=!1,this.au=!1,this.du=!1,this.cu=!1,this.lu=!1,this.uu=!1,this.Au=!1,this.vu=!1,this.maxSchedulingDelay=0,this.fu=[],this.pu=!1,this.mu=!1,this.gu=!1,this.wu=!0,this.Su=!1,this.bu=!1,this.ku=new Map,this.yu=new Map,this.windowAddEventListener=p&&p.windowAddEventListener?p.windowAddEventListener.bind(window):window.addEventListener.bind(window),this.windowRemoveEventListener=p&&p.windowRemoveEventListener?p.windowRemoveEventListener.bind(window):window.removeEventListener.bind(window),window.GamepadEvent&&(this.Ql=!0),this.Iu(),this.Cu=this.Eu.bind(this),this.Tu=this.Mu.bind(this),this.Pu=this.Du.bind(this),this.Ru=[],this.Nu=[],this.xu=[];const Z=c.os,re=null!==(F=null!==(O=c.osVersion)&&void 0!==O?O:c.osVer)&&void 0!==F?F:"",Oe=(Z==n.PlatformOS.IOS||Z==n.PlatformOS.IPADOS)&&c.browser==n.PlatformBrowser.SAFARI;this.ru=Oe&&re.startsWith("13"),this.au=Oe&&re.startsWith("14"),this.ou=Oe&&"12-"==re,this.du=Z==n.PlatformOS.CHROME_OS,this.cu=Z==n.PlatformOS.WEBOS,this.lu=Z==n.PlatformOS.TIZEN,this.uu=Z==n.PlatformOS.ANDROID,this.Au=Bt(c),this.Fl={Ou:0,Ll:!1,Bu:!1,Ul:0,Gl:0,Hl:[],Vl:!1},this.Fu=new Da(this.Fl),this.Lu(),this.Uu=!Sn.Zo,this.Gu=!1,this.Hu(void 0),n.Log.d("{515a922}","{b0c674b}")}Lu(){this.Jl=this.Vu(),this.allowHaptics=this.Wu(),this.pu=this._u()}Vu(){var c,p;return null!==(p=null!==(c=Sn.gamepadPollInterval)&&void 0!==c?c:Sn.ko.gamepadPollInterval)&&void 0!==p?p:4}Wu(){var c,p;return null===(p=null!==(c=Sn.allowHaptics)&&void 0!==c?c:Sn.ko.allowHaptics)||void 0===p||p}_u(){var c,p;return null===(p=null!==(c=Sn.synthesizeGamepadHid)&&void 0!==c?c:Sn.ko.synthesizeGamepadHid)||void 0===p||p}qu(c){this.Lu();const O=2&c;this.wu=Sn.ar||!!(4&c),this.Su=Sn.dr||0!=O,this.$u(!0)}zu(){this.Lu(),this.bu=!0,this.$u(!0)}Ku(){return!this.Fl.Bu&&(n.Log.i("{515a922}","{132d93a}",this.Fl.Ou),this.Fl.Bu=!0,this.Qu={Yu:"Nvidia Virtual Gamepad",state:0,buttons:0,triggers:0,axes:[]},this.Xu(this.Fl.Ou,!1),!0)}ju(){if(this.Qu){for(const c of this.telemetry)c.Ju(this.Qu.Yu,"0","0",0,!1,0,!0,this.Qu.state,this.Zu(this.Qu));this.Qu=void 0}}tA(){if(this.Fl.Bu){n.Log.i("{515a922}","{98ac7c2}",this.Fl.Ou),this.Fl.Bu=!1,this.ju();const c=this.Fl.Ou;for(const p of this.Ru)if(p&&1==p.iA&&p.sA===c)return!1;return this.eA(c)}return!1}nA(c){return c<4?1<<c:0}hA(c){return c<4?1<<c+8:0}oA(c){let p=[];for(let F of this.Ru)F&&F.iA==c&&(p[F.sA]=!0);let O=0;for(;p[O];)O++;return O}Xu(c,p){let O;O=this.Fl.Bu&&c===this.Fl.Ou?this.Fl.Ou:this.Ru[c].sA,this.Yl|=this.nA(O);const F=this.hA(O);p?this.Yl|=F:this.Yl&=~F}eA(c){return!(c===this.Fl.Ou&&this.Fl.Bu||(this.Yl&=~this.nA(c),this.Yl&=~this.hA(c),0))}rA(c){this.aA=c}dA(c){this.cA(c),this.Kl.delete(c),0==this.Kl.size&&this.lA()}uA(c){this.Kl.add(c),1==this.Kl.size&&this.AA()}cA(c){var p;for(let O of this.Ru){if(!O)continue;let F=O.device;this.vA(F)&&(1===O.iA?c.ll(F.index,O.sA,0,0,[0,0,0,0],performance.now(),this.Yl,F.id):null===(p=c.Tl)||void 0===p||p.call(c,F.index,O.sA,0,0,[0,0,0,0],performance.now(),this.Yl,F.id))}c.vl()}fA(c){this.telemetry.add(c)}pA(c){this.telemetry.delete(c)}mA(c,p=!1){return this.vu||(c|=2),p&&(c|=1),c}gA(c,p){return{Yu:p,state:this.Ru[c.index]?this.Ru[c.index].wA.state:this.mA(0),buttons:this.Ru[c.index]?this.Ru[c.index].wA.buttons:0,triggers:this.Ru[c.index]?this.Ru[c.index].wA.triggers:0,axes:this.Ru[c.index]?this.Ru[c.index].wA.axes:[]}}SA(c){if(!this.pu)return 1;const p=this.Uu&&this.mu&&this.wu&&!this.bu,O=this.Gu&&this.gu&&this.Su&&!this.bu;if(p||O){const F=Sn.er,Z=Sn.nr;if(!(c.id.includes("Vendor: 054c")||c.id.includes("Wireless Controller")&&c.id.includes("054c")||F||Z)||!(c.buttons.length>=18)||F||Z)return 1;const re=c.id.includes("Product: 09cc")||c.id.includes("Product: 05c4")||c.id.includes("Product: 0ba0")||c.id.includes("Wireless Controller")&&c.id.includes("09cc"),Oe=c.id.includes("Product: 0ce6")||c.id.includes("Product: 0df2");return O&&(Oe||(re||F)&&!Sn.sr||Z)?3:p&&(re||(Oe||Z)&&!Sn.ir||F)?2:1}return 1}bA(c){const p=this.SA(c);return{device:c,kA:!0,iA:p,Wl:this.yA,ql:this.IA,_l:this.CA,wA:this.gA(c,"Standard Gamepad"),sA:this.oA(p)}}EA(c){const p=this.SA(c);return{device:c,kA:!0,iA:p,Wl:this.yA,ql:this.IA,_l:this.CA,wA:this.gA(c,"Standard Gamepad"),TA:!0,sA:this.oA(p)}}MA(c){const p=this.SA(c);return{device:c,kA:!0,iA:p,Wl:this.yA,ql:this.PA,_l:this.CA,wA:this.gA(c,"Nvidia Shield Gamepad"),sA:this.oA(p)}}DA(c){const p=this.SA(c);return{device:c,kA:!0,iA:p,Wl:this.RA,ql:this.IA,_l:this.NA,wA:this.gA(c,"Standard Gamepad"),sA:this.oA(p)}}xA(c){const p=this.SA(c);return{device:c,kA:!1,iA:p,Wl:this.OA.bind(this),ql:this.BA.bind(this,3,4),_l:this.FA,wA:this.gA(c,"Dual Sense Gamepad"),sA:this.oA(p)}}LA(c){const p=this.SA(c);return{device:c,kA:!1,iA:p,Wl:this.UA.bind(this),ql:this.BA.bind(this,3,4),_l:this.FA,wA:this.gA(c,"Xbox Series Gamepad"),sA:this.oA(p)}}GA(c){const p=this.SA(c);return{device:c,kA:!1,iA:p,Wl:this.HA.bind(this),ql:this.BA.bind(this,2,5),_l:this.VA,wA:this.gA(c,"Xbox Series Wired Gamepad"),sA:this.oA(p)}}WA(c){return this.au?this.bA(c):this.ru?this.DA(c):this.ou?null:!this._A(c)||this.cu||this.lu?this.qA(c)?this.EA(c):this.$A(c)?this.bA(c):this.zA(c)?this.xA(c):this.KA(c)?this.LA(c):this.QA(c)?this.GA(c):(n.Log.e("{515a922}","{be4bfd9}",c),null):this.MA(c)}cl(c,p){const O=(F,Z)=>{F.cl(Z)};if(c)O(c,p??this.Yl);else for(const F of this.Kl)O(F,p??this.Yl)}Eu(c){this.YA(c.gamepad,c.gamepad.index)&&this.cl()}Mu(c){this.XA(c.gamepad.index,!0)&&this.cl()}jA(){0!=this.jl&&(clearInterval(this.jl),this.jl=0),this.jl=this.nu&&!Sn.Po?window.setInterval(this.Pu,this.gamepadPollInterval):0}JA(c){let p=["-1","-1"];const O=/Vendor:[ ]+([\w\d]+).+Product:[ ]+([\w\d]+)/.exec(c);return O&&O.length>=3&&(p=[O[1],O[2]]),p}ZA(c){if(this.Xl&&(this.cl(c,0),this.hu.size<=1)){let p=!0;for(let O of this.Ru)O&&(O.wA.state=this.mA(O.wA.state,!0),this.XA(O.device.index,!0,p),p=!1);this.ju(),this.Yl=0,this.Xl=0,this.Fl.Bu=!1,this.Iu(),this.jA(),this.Ru=[],this.vu=!1}}vA(c){return!!("standard"==c.mapping||this.au||this.ru||this.zA(c)||this.KA(c)||this.QA(c))}$A(c){return"standard"==c.mapping}qA(c){return c.id.includes("Vendor: 045e")&&(c.id.includes("Product: 0b13")||c.id.includes("Product: 0b20")||c.id.includes("Product: 0b05")||c.id.includes("Product: 02e0")||c.id.includes("Product: 02fd"))}_A(c){return"standard"==c.mapping&&c.id.includes("Vendor: 0955")}zA(c){return!this.uu&&"standard"!=c.mapping&&c.id.includes("Vendor: 054c")&&c.id.includes("Product: 0ce6")}KA(c){return"standard"!=c.mapping&&c.id.includes("Vendor: 045e")&&c.id.includes("Product: 0b13")}QA(c){return this.du&&"standard"!=c.mapping&&c.id.includes("Vendor: 045e")&&c.id.includes("Product: 0b12")}tv(c){return c.id.includes("Xbox")||c.id.includes("xinput")}YA(c,p){if(this.vA(c)){const O=this.WA(c);if(O){this.hapticsSupported=this.hapticsSupported||this.sv(O.device),this.ev();const F=this.Yl,Z=this.Ru[p],re=this.Xl,Oe=this.tv(c);this.Ru[p]=O,void 0===this.xu[p]&&(this.xu[p]=0),Z&&this.nv(c,p)?this.Ru[p].sA=Z.sA:(0==this.Xl&&(this.gamepadPollInterval=this.Jl,this.jA()),this.Xl++,2===O.iA?(this.hv(O),this.yu.set(O.sA,p)):(this.Xu(p,Oe),this.ku.set(O.sA,p)));const je=F!==this.Yl,ot=Z?"Changing":"Adding";return je?n.Log.i("{515a922}","{96051ae}",ot,p,Oe,O.device.id):re!=this.Xl&&n.Log.i("{515a922}","{98be0dd}",ot,p,O.device.id),je}for(const F of this.Kl)F.fl(c);return this.XA(p)}for(const O of this.Kl)O.fl(c);return this.XA(p)}ov(c,p){this.Ru[p].device=c,this.hapticsSupported=this.hapticsSupported||this.sv(c),this.ev()}rv(c){let p=!1;for(const O of this.Ru)if(O){c===O.device.index&&(p=!0);break}return p}XA(c,p=!1,O=void 0){let F=this.Ru[c];if(F){n.Log.i("{515a922}","{1b26b8a}",c,F.device.id);const Z=F.iA,re=this.Nu[c];if(re){const Oe=performance.now()-re.timestamp;if(Oe>=3e3&&re.axes.some(je=>Math.abs(je)>.5)){n.Log.w("{515a922}","{fde5612}",Oe,re.axes.join());for(const je of this.telemetry)je.Ke("GamepadStuck",F.device.id,Oe.toString(),re.axes.join())}}if(p){const[Oe,je]=this.JA(F.device.id);for(const ot of this.telemetry)ot.Ju(F.wA.Yu,Oe,je,F.device.index,!!F.device.hapticActuators&&F.device.hapticActuators.length>0,0,O??this.rv(F.device.index),F.wA.state,this.Zu(F.wA))}return delete this.Ru[c],delete this.xu[c],delete this.Nu[c],this.hapticsSupported=this.av(),this.ev(),this.Xl--,0==this.Xl&&(this.Iu(),this.jA()),2===Z?(this.dv(F),this.yu.delete(F.sA),!1):(this.ku.delete(F.sA),this.eA(F.sA))}return!1}Iu(){this.gamepadPollInterval=100}nv(c,p){var O,F;return null!=c.id&&c.id==(null===(F=null===(O=this.Ru[p])||void 0===O?void 0:O.device)||void 0===F?void 0:F.id)}hv(c){var p;switch(c.iA){case 3:n.Log.e("{515a922}","{ea001a4}",c.device.id);break;case 2:for(const O of this.Kl)null===(p=O.Il)||void 0===p||p.call(O,c.sA);break;default:n.Log.e("{515a922}","{36eeed4}",c.device.id)}}dv(c){var p;switch(c.iA){case 3:n.Log.e("{515a922}","{2b2d286}",c.device.id);break;case 2:for(const O of this.Kl)null===(p=O.Cl)||void 0===p||p.call(O,c.sA);break;default:n.Log.e("{515a922}","{fafe5f9}",c.device.id)}}$u(c=!1){let p=!1;this.Fl.Ll&&!this.Fl.Bu?p=this.Ku():!this.Fl.Ll&&this.Fl.Bu&&(p=this.tA());let O=navigator.getGamepads();for(var F=0;F<O.length;F++){let Z=O[F];if(Z)if(this.nv(Z,F)){if(this.ov(Z,F),c){let re=this.Ru[F];const Oe=re.iA,je=this.SA(Z);Oe!==je&&(1===Oe?(this.eA(re.sA),re.iA=je,re.sA=this.oA(je),this.hv(re)):(this.dv(re),re.iA=je,re.sA=this.oA(je),this.Xu(F,this.tv(Z)))),p=!0}}else this.XA(F,!0),this.YA(Z,F)&&(p=!0);else this.XA(F,!0)&&(p=!0)}if(p){this.cl();for(const Z of this.Ru)2==Z?.iA&&this.hv(Z)}this.vu=!0}yA(c){let p=c.buttons;return(p[0].value?4096:0)|(p[1].value?8192:0)|(p[2].value?16384:0)|(p[3].value?32768:0)|(p[4].value?256:0)|(p[5].value?512:0)|(p[8]&&p[8].value?32:0)|(p[9]&&p[9].value?16:0)|(p[10]&&p[10].value?64:0)|(p[11]&&p[11].value?128:0)|(p[12]&&p[12].value?1:0)|(p[13]&&p[13].value?2:0)|(p[14]&&p[14].value?4:0)|(p[15]&&p[15].value?8:0)|(p[16]&&p[16].value?65536:0)|(p[17]&&p[17].value?131072:0)}Zu(c){const p=c.buttons,O=c.triggers,F=c.axes;return"A:"+(4096&p?"1":"0")+"_B:"+(8192&p?"1":"0")+"_X:"+(16384&p?"1":"0")+"_Y:"+(32768&p?"1":"0")+"_LB:"+(256&p?"1":"0")+"_LSB:"+(64&p?"1":"0")+"_RB:"+(512&p?"1":"0")+"_RSB:"+(128&p?"1":"0")+"_LT:"+(255&O?"1":"0")+"_RT:"+(65280&O?"1":"0")+"_DU:"+(1&p?"1":"0")+"_DD:"+(2&p?"1":"0")+"_DL:"+(4&p?"1":"0")+"_DR:"+(8&p?"1":"0")+"_ST:"+(16&p?"1":"0")+"_BA:"+(32&p?"1":"0")+"_LS:"+(F.length>=2&&(2===F[0]||2===F[1])?"1":"0")+"_RS:"+(4!==F.length||2!==F[2]&&2!==F[3]?"0":"1")}IA(c){var p,O;let F=c.buttons,Z=Math.round(255*(null===(p=F[6])||void 0===p?void 0:p.value));return(255&Math.round(255*(null===(O=F[7])||void 0===O?void 0:O.value)))<<8|255&Z}PA(c){var p,O;let F=c.buttons,Z=Math.round(255*(null===(p=F[7])||void 0===p?void 0:p.value));return(255&Math.round(255*(null===(O=F[6])||void 0===O?void 0:O.value)))<<8|255&Z}BA(c,p,O){let F=Math.round(127.5*(O.axes[c]+1));return(255&Math.round(127.5*(O.axes[p]+1)))<<8|255&F}CA(c){return c.axes}NA(c){return[c.axes[0],-c.axes[1],c.axes[2],-c.axes[3]]}FA(c){return[c.axes[0],c.axes[1],c.axes[2],c.axes[5]]}VA(c){return[c.axes[0],c.axes[1],c.axes[3],c.axes[4]]}RA(c){var p,O,F,Z,re,Oe;let je=c.buttons,ot=c.axes;return(null!==(p=je[0])&&void 0!==p&&p.value?4096:0)|(null!==(O=je[1])&&void 0!==O&&O.value?8192:0)|(null!==(F=je[2])&&void 0!==F&&F.value?16384:0)|(null!==(Z=je[3])&&void 0!==Z&&Z.value?32768:0)|(null!==(re=je[4])&&void 0!==re&&re.value?256:0)|(null!==(Oe=je[5])&&void 0!==Oe&&Oe.value?512:0)|(ot[5]>0?1:0)|(ot[5]<0?2:0)|(ot[4]<0?4:0)|(ot[4]>0?8:0)}cv(c){switch(Number.parseFloat((c??0).toFixed(5))){case.71429:return 4;case-.42857:return 8;case-1:return 1;case.14286:return 2;case 1.28571:return 0;case 1:return 5;case-.71429:return 9;case.42857:return 6;case-.14286:return 10;default:return 0}}lv(c,p){return(p<0?1:0)|(p>0?2:0)|(c<0?4:0)|(c>0?8:0)}OA(c){var p,O,F,Z,re,Oe,je,ot,Ct,Rt;let Et=c.buttons;const qt=this.du?this.lv(c.axes[6],c.axes[7]):this.cv(c.axes[9]);return(null!==(p=Et[1])&&void 0!==p&&p.value?4096:0)|(null!==(O=Et[2])&&void 0!==O&&O.value?8192:0)|(null!==(F=Et[0])&&void 0!==F&&F.value?16384:0)|(null!==(Z=Et[3])&&void 0!==Z&&Z.value?32768:0)|(null!==(re=Et[4])&&void 0!==re&&re.value?256:0)|(null!==(Oe=Et[5])&&void 0!==Oe&&Oe.value?512:0)|(null!==(je=Et[8])&&void 0!==je&&je.value?32:0)|(null!==(ot=Et[9])&&void 0!==ot&&ot.value?16:0)|(null!==(Ct=Et[10])&&void 0!==Ct&&Ct.value?64:0)|(null!==(Rt=Et[11])&&void 0!==Rt&&Rt.value?128:0)|qt}UA(c){var p,O,F,Z,re,Oe,je,ot,Ct,Rt;let Et=c.buttons;const qt=this.cv(c.axes[9]);return(null!==(p=Et[0])&&void 0!==p&&p.value?4096:0)|(null!==(O=Et[1])&&void 0!==O&&O.value?8192:0)|(null!==(F=Et[3])&&void 0!==F&&F.value?16384:0)|(null!==(Z=Et[4])&&void 0!==Z&&Z.value?32768:0)|(null!==(re=Et[6])&&void 0!==re&&re.value?256:0)|(null!==(Oe=Et[7])&&void 0!==Oe&&Oe.value?512:0)|(null!==(je=Et[10])&&void 0!==je&&je.value?32:0)|(null!==(ot=Et[11])&&void 0!==ot&&ot.value?16:0)|(null!==(Ct=Et[13])&&void 0!==Ct&&Ct.value?64:0)|(null!==(Rt=Et[14])&&void 0!==Rt&&Rt.value?128:0)|qt}HA(c){var p,O,F,Z,re,Oe,je,ot,Ct,Rt;let Et=c.buttons;const qt=this.lv(c.axes[6],c.axes[7]);return(null!==(p=Et[0])&&void 0!==p&&p.value?4096:0)|(null!==(O=Et[1])&&void 0!==O&&O.value?8192:0)|(null!==(F=Et[2])&&void 0!==F&&F.value?16384:0)|(null!==(Z=Et[3])&&void 0!==Z&&Z.value?32768:0)|(null!==(re=Et[4])&&void 0!==re&&re.value?256:0)|(null!==(Oe=Et[5])&&void 0!==Oe&&Oe.value?512:0)|(null!==(je=Et[6])&&void 0!==je&&je.value?32:0)|(null!==(ot=Et[7])&&void 0!==ot&&ot.value?16:0)|(null!==(Ct=Et[9])&&void 0!==Ct&&Ct.value?64:0)|(null!==(Rt=Et[10])&&void 0!==Rt&&Rt.value?128:0)|qt}uv(){Sn.Io&&Sn.Po&&this.Du()}Al(){for(const c of this.Kl)c.Al(this.Fl.Ul,this.Fl.Gl,this.Fl.Ou,this.Fl.Hl,this.Yl)}Av(){return this.maxSchedulingDelay}vv(){this.maxSchedulingDelay=0}fv(){const c=performance.now();this.pv&&(this.maxSchedulingDelay=Math.max(this.maxSchedulingDelay,c-this.pv-this.gamepadPollInterval)),this.pv=c}Du(){var c;this.fv(),this.$u();let p=0;for(let O of this.Ru){if(!O)continue;const F=O.device.timestamp;let Z=O.device;if(!this.vA(Z))continue;if(O.device.timestamp<=this.xu[Z.index]){this.aA&&performance.now()-O.device.timestamp>=5e3&&this.aA();continue}this.xu[Z.index]=O.device.timestamp;const re=this.Nu[Z.index],Oe=new Sl(O);if(re&&re.zl(Oe))continue;this.Nu[Z.index]=Oe;let je=O.ql(Z),ot=O.Wl(Z),Ct=O._l(Z);const Rt=(Et,qt,gn)=>{var tn;const Pn=(qt|Et)===ot,Bn=sa(je,gn,255)&&sa(je,gn,65280),ei=!((null!==(tn=re?.buttons)&&void 0!==tn?tn:0)&Et||!(ot&Et));return Pn&&Bn&&ei};for(let Et of this.fu)Rt(Et.mv,Et.gv,Et.wv)&&Et.Gn();switch(O.iA){case 1:for(const Et of this.Kl)Et.ll(Z.index,O.sA,ot,je,Ct,F,this.Yl,Z.id);break;case 2:for(const Et of this.Kl)null===(c=Et.Tl)||void 0===c||c.call(Et,Z.index,O.sA,ot,je,Ct,O.device.timestamp,this.Yl,Z.id)}p++,this.Sv(O.wA,ot,je,Ct)}if(p){$s.getInstance().wo();for(const O of this.Kl)O.vl()}this.Fl.Bu&&this.Fl.Vl&&(this.Al(),this.Fl.Vl=!1,this.Qu&&this.Sv(this.Qu,this.Fl.Ul,this.Fl.Gl,this.Fl.Hl))}bv(c){for(let p=0;p<this.fu.length;p++){const O=this.fu[p];if(O.mv===c.mv&&O.gv===c.gv&&O.wv===c.wv&&O.Gn===c.Gn)return p}return-1}kv(c){this.fu.push(c)}yv(c){const p=this.bv(c);-1!==p&&this.fu.splice(p,1)}Sv(c,p,O,F){c.buttons|=p,c.triggers|=O,0===c.axes.length?c.axes=[F[0],F[1],F[2],F[3]]:(c.axes[0]=2==c.axes[0]||c.axes[0]!==F[0]?2:c.axes[0],c.axes[1]=2==c.axes[1]||c.axes[1]!==F[1]?2:c.axes[1],c.axes[2]=2==c.axes[2]||c.axes[2]!==F[2]?2:c.axes[2],c.axes[3]=2==c.axes[3]||c.axes[3]!==F[3]?2:c.axes[3])}Iv(c){var p;if(this.eu!=c&&(this.eu=c,this.allowHaptics))for(const O of this.Kl)null===(p=O.ml)||void 0===p||p.call(O,c)}AA(){this.nu=!0,this.Lu(),this.ev(),Sn.Io&&(this.windowAddEventListener("gamepadconnected",this.Cu),this.windowAddEventListener("gamepaddisconnected",this.Tu),this.jA(),this.$u(!0))}lA(){this.nu=!1,this.Lu(),this.ev(),Sn.Io&&(this.Cv(),this.windowRemoveEventListener("gamepadconnected",this.Cu),this.windowRemoveEventListener("gamepaddisconnected",this.Tu),this.jA())}Cv(){for(const c of this.Kl)this.cA(c)}getVirtualGamepadHandler(){return this.Fu}av(){let c=!1;for(let p of this.Ru)p&&(c=c||this.sv(p.device));return c}ev(){var c,p;if(this.su=this.nu&&this.hapticsSupported,this.Iv(this.su),!this.su){let O=navigator.getGamepads();for(let F of O)F&&(this.Zl[F.index]=0,this.tu[F.index]=0,null===(p=null===(c=F.vibrationActuator)||void 0===c?void 0:c.playEffect)||void 0===p||p.call(c,"dual-rumble",Vr))}}sv(c){var p;return"dual-rumble"==(null===(p=c.vibrationActuator)||void 0===p?void 0:p.type)}yc(c,p,O){const F=this.ku.get(c);void 0!==F&&this.Ev(F,p,O)}kc(c,p,O){const F=this.yu.get(c);void 0!==F&&this.Ev(F,p,O)}Ev(c,p,O){var F,Z;if(!this.su)return;let re=this.Ru[c];if(re){let Oe=re.device;if(Oe)if(0!=p||0!=O){const je=p/65535,ot=O/65535,Ct=performance.now();let Rt=Ct-this.iu[c];this.Zl[c]=je,this.tu[c]=ot,(!re.TA||Rt>500)&&(this.iu[c]=Ct,(()=>{var qt,gn;null===(gn=null===(qt=Oe.vibrationActuator)||void 0===qt?void 0:qt.playEffect)||void 0===gn||gn.call(qt,"dual-rumble",{startDelay:0,duration:1e3,weakMagnitude:this.tu[c],strongMagnitude:this.Zl[c]})})())}else this.iu[c]=performance.now(),this.Zl[c]=0,this.tu[c]=0,null===(Z=null===(F=Oe.vibrationActuator)||void 0===F?void 0:F.playEffect)||void 0===Z||Z.call(F,"dual-rumble",Vr)}}Tv(){return this.Lu(),this.$u(),this.Yl}Hu(c){var p,O;this.Lu();let F=c??0;return Sn.hr&&(F|=1),Sn.rr&&(F|=2),this.pu&&F?(this.mu=null!==(p=Sn.hr)&&void 0!==p?p:!!(1&F),this.gu=null!==(O=Sn.rr)&&void 0!==O?O:!!(2&F),void this.$u(!0)):(this.mu=!1,void(this.gu=!1))}static getInstance(c,p){return Ca.Mv||(Ca.Mv=new Ca(c,p)),Ca.Mv}}function ua(y,c){return(y&c)>=.9*c}function sa(y,c,p){return!!(p&c)===ua(y,p)}Ca.Mv=void 0;class rl{constructor(c,p){this.Pv=0,this.Dv=8,this.Rv=0,this.Nv=0,this.xv=0,this.Ov=0,this.Bv=!1,this.Fv=!1,this.scale=12,this.Lv="mousemove",this.Uv="mousedown",this.Gv="mouseup",this.Hv=2,this.Vv=3,this.Rs=p,this.Wv=c,this._v=this.qv.bind(this),Ht(this.Rs)&&(this.Hv=0,this.Vv=1)}ll(c,p,O,F,Z,re,Oe,je){this.$v(O,F,Z)}Tl(c,p,O,F,Z,re,Oe,je){this.$v(O,F,Z)}$v(c,p,O){const F=(Et=>{const qt=tn=>-.1<Et[tn]&&Et[tn]<.1?0:Et[tn],gn=[];return gn[0]=qt(0),gn[1]=qt(1),gn[2]=qt(2),gn[3]=qt(3),gn})(O),Z=F[this.Hv],re=F[this.Vv],Oe=4-3*Math.min(1,Math.sqrt(Z*Z+re*re));this.Rv=Z*this.scale/Oe,this.Nv=re*this.scale/Oe;const je=!!(4224&c)||ua(p,65280),ot=ua(p,255),Ct=this.Bv,Rt=this.Fv;this.Bv=je,this.Fv=ot,!je&&Ct&&this.zv(0,!1),!ot&&Rt&&this.zv(2,!1),je&&!Ct&&this.zv(0,!0),ot&&!Rt&&this.zv(2,!0)}qv(){this.xv=Math.sign(this.xv)!=Math.sign(this.Rv)?this.Rv:this.xv+this.Rv,this.Ov=Math.sign(this.Ov)!=Math.sign(this.Nv)?this.Nv:this.Ov+this.Nv;let c=0,p=0;if((this.xv>=1||this.xv<=-1)&&(c=Math.trunc(this.xv),this.xv-=c),(this.Ov>=1||this.Ov<=-1)&&(p=Math.trunc(this.Ov),this.Ov-=p),0!=c||0!=p){const O={movementX:c,movementY:p,isPrimary:!0};let F;F="pointerrawupdate"==this.Lv||"pointermove"==this.Lv?new PointerEvent(this.Lv,O):new MouseEvent("mousemove",O),this.Wv.dispatchEvent(F)}}Kv(){return(this.Bv?1:0)|(this.Fv?2:0)}zv(c,p){let O={button:c,buttons:this.Kv()};const F=new MouseEvent(p?this.Uv:this.Gv,O);this.Wv.dispatchEvent(F)}start(){this.Pv&&this.stop(),this.Pv=window.setInterval(this._v,this.Dv)}stop(){this.Pv&&(clearInterval(this.Pv),this.Pv=0)}Qv(c){this.Lv=c}Yv(c,p){this.Uv=c,this.Gv=p}reset(){this.Bv&&this.zv(0,!1),this.Fv&&this.zv(2,!1),this.Rv=this.Nv=0,this.xv=this.Ov=0,this.Bv=this.Fv=!1}cl(c){}vl(){}Al(c,p,O,F,Z){}fl(c){}pl(c){}}class ll{constructor(){this.x=0,this.y=0}Xv(){return this.x}jv(){return this.y}update(c,p,O){return this.x=c,this.y=p,!0}}class Os{constructor(){this.Jv=0,this.Zv=0,this.tf=0,this.if=0,this.sf=0,this.ef=0,this.nf=0,this.hf=0,this.rf=0,this.af=!1}Xv(){return this.Jv}jv(){return this.Zv}update(c,p,O){if(0===c&&0===p)return this.af?(this.hf=0,this.rf=0):this.af=!0,!1;if(this.af=!1,0===this.hf&&0===this.rf){if(O<this.tf)return this.hf=c,this.rf=p,!1}else c+=this.hf,p+=this.rf,this.hf=0,this.rf=0;const F=c*this.Jv+p*this.Zv,Z=c*c+p*p,re=this.Jv*this.Jv+this.Zv*this.Zv;let Oe=!0;if(O-this.tf<.95&&F<0&&0!==re&&F*F>.81*Z*re){const Rt=Math.sqrt(Z)/Math.sqrt(re);let Et=Math.abs(Rt-Math.trunc(Rt));Et>.5&&(Et=1-Et),Et<.1&&(Oe=!1)}const je=c-this.Jv,ot=p-this.Zv,Ct=je*je+ot*ot;if(Oe){const Rt=1+.1*Math.max(1,Math.min(16,O-this.tf)),Et=2*Rt*Math.abs(this.if),qt=2*Rt*Math.abs(this.sf),gn=Math.max(8100,Et*Et+qt*qt);if(Oe=Ct<gn,!Oe&&(this.ef||this.nf)){const tn=c-this.ef,Pn=p-this.nf;Oe=tn*tn+Pn*Pn<gn}}return Oe?(this.if=.4*this.if+.6*je,this.sf=.4*this.sf+.6*ot,this.Jv=c,this.Zv=p,this.tf=O,this.ef=0,this.nf=0,!0):(this.ef=c,this.nf=p,!1)}}function lr(y){return{df:"image/x-icon",scale:1,...y}}const zs={style:"default",cf:"AAABAAEAICACAAEAAQAwAQAAFgAAACgAAAAgAAAAQAAAAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAYAAAAOAAAADAAAABwAAAAYAAAAOAAABDAAAAZwAAAHYAAAB4AAAAf+AAAH/AAAB/gAAAfwAAAH4AAAB8AAAAeAAAAHAAAABgAAAAQAAAAAAAAAAAAAAAAAAAA////////////////////////////////////////////5////8P///+D////h////wf//98P///OD///xh///8Af///AP///wAH//8AD///AB///wA///8Af///AP///wH///8D////B////w////8f////P////3/////////8=",lf:2,uf:1},xa=[{style:"none",cf:"",lf:0,uf:0},zs,{style:"text",cf:"AAABAAEAICACAAEAAQAwAQAAFgAAACgAAAAgAAAAQAAAAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAfvwAAAAAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAfPwAAAAAAAAAAAAAAAAAA/////////////////////////////////////+BA///Agf///z////8/////P////z////8/////P////z////8/////P////z////8/////P////z////8/////P////z////8/////P////z///+BA///Agf////////////8=",lf:8,uf:13},{style:"wait",cf:"AAABAAEAICACAAEAAQAwAQAAFgAAACgAAAAgAAAAQAAAAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD/8AAAzzAAAHDgAABfoAAAb2AAADbAAAAfgAAABgAAAAYAAAAGAAAABgAAAAYAAAAGAAAABgAAAB+AAAA/wAAAaWAAAH/gAABWoAAA//AAAP/wAAAAAAAAAAAAA//////////////////////////////////////////+AAf//gAH//4AB//+AAf//wAP//8AD///gB///8A////gf///8P////D////w////8P////D////gf///wD///4Af//8AD///AA///gAH//4AB//+AAf//gAH///////8=",lf:7,uf:12},{style:"crosshair",cf:"AAABAAEAICACAAEAAQAwAQAAFgAAACgAAAAgAAAAQAAAAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAABjAAABgMAAAQBAAAIAIAACACAABAAQAAAIAAAEABAAAgAgAAIAIAABgMAAAICAAABjAAAAFAAAAAAAAA//////////////////////////////////////////////////////////////////////////////////////4////5T///53P//+97///fff//333//79+//+AAP//v37//999///fff//53P///d3///5T////j////////8=",lf:8,uf:8},{style:"progress",cf:"AAABAAEAICACAAEAAQAwAQAAFgAAACgAAAAgAAAAQAAAAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD4AAAAiAAAAPgAAABwAAAYIAAAOCAAADAgAABwcAAAYNgAAOCoABDA+AAZwAAAHYAAAB4AAAAf+AAAH/AAAB/gAAAfwAAAH4AAAB8AAAAeAAAAHAAAABgAAAAQAAAAAAAAAAAAAAAAAAAA///////////////////////+A////gP///4D///+A///5wf//8OP//+Dj///h4///wcH/98OA//ODgP/xh4D/8AeA//AP///wAH//8AD///AB///wA///8Af///AP///wH///8D////B////w////8f////P////3/////////8=",lf:2,uf:1},{style:"nwse-resize",cf:"AAABAAEAICACAAEAAQAwAQAAFgAAACgAAAAgAAAAQAAAAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP4AAAB+AAAAPgAAAB4AAABuAAAA5gAAAcIAAEOAAABnAAAAdgAAAHgAAAB8AAAAfgAAAH8AAAAAAAAAAAAAA/////////////////////////////////////////////////////////////////////////////////wA///+AP///wD///+A////gP///wD//34A//88GP//GDz//wB+//8A////Af///wH///8A////AH///wA////////8=",lf:9,uf:8},{style:"nesw-resize",cf:"AAABAAEAICACAAEAAQAwAQAAFgAAACgAAAAgAAAAQAAAAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAfwAAAH4AAAB8AAAAeAAAAHYAAABnAAAAQ4AAAAHCAAAA5gAAAG4AAAAeAAAAPgAAAH4AAAD+AAAAAAAAAAAAA////////////////////////////////////////////////////////////////////////////////wA///8Af///AP///wH///8B////AP///wB+//8YPP//PBj//34A////AP///4D///+A////AP///gD///wA///////8=",lf:9,uf:9},{style:"ew-resize",cf:"AAABAAEAICACAAEAAQAwAQAAFgAAACgAAAAgAAAAQAAAAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAEAABgBgAA4AcAAeAHgAPv98AH7/fgA+/3wAHgB4AA4AcAAGAGAAAgBAAAAAAAAAAAAAAAAAA//////////////////////////////////////////////////////////////////////////////////////+/3///P8///j/H//w/w//4P8H/8AAA/+AAAH/AAAA/4AAAf/AAAP/4P8H//D/D//4/x///P8///7/f//////8=",lf:13,uf:8},{style:"ns-resize",cf:"AAABAAEAICACAAEAAQAwAQAAFgAAACgAAAAgAAAAQAAAAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAADgAAAB8AAAA/gAAAf8AAAP/gAAAAAAAADgAAAA4AAAAOAAAADgAAAA4AAAAOAAAADgAAAA4AAAAAAAAA/+AAAH/AAAA/gAAAHwAAAA4AAAAEAAAAAAAAAAAAAA//////////////////////////////////////+/////H////g////wH///4A///8AH//+AA///AAH///g////4P///+D////g////4P///+D////g////4P///AAH//4AD///AB///4A////Af///4P////H////7////////8=",lf:9,uf:12},{style:"move",cf:"AAABAAEAICACAAEAAQAwAQAAFgAAACgAAAAgAAAAQAAAAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAAABwAAAA+AAAAHAAAABwAAAAcAAAAHAAAABwAAAgACAAf3fwAP93+AB/d/AAIAAgAABwAAAAcAAAAHAAAABwAAAAcAAAAPgAAABwAAAAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/////////////////////////////f////j////wf///4D///8Af///wf///8H///vB7//zwef/4AAD/8AAAf+AAAD/wAAB/+AAA//zwef/+8Hv///B////wf///wB///+A////wf///+P////3///////////////////////8=",lf:13,uf:12},zs,{style:"pointer",cf:"AAABAAEAICACAAEAAQAwAQAAFgAAACgAAAAgAAAAQAAAAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAH+AAAB/gAAA/4AAAP/AAAH/wAAB/8AAA//gAAP/4AAH/+AADttgABzbYAAY2wAAANsAAADYAAAAwAAAAMAAAAAAAAAAAAAA//////////////////////////////////////////////////////////////////////+Af///AD///wA///4AP//+AB///AAf//wAH//4AA//+AAP//AAD//gAA//wAAP/8IAH//mAH///gD///4H///+H////z////////8=",lf:8,uf:3},{style:"help",cf:"AAABAAEAICACAAEAAQAwAQAAFgAAACgAAAAgAAAAQAAAAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////AAAAAAAAAAAAAAAAAAAAGAAAAAAAAAAAAAAAAAAAABgAAAAYAAAYHAAAOAYAADADAABwwwAAYMMAAODDABDAZgAZwDwAHYAAAB4AAAAf+AAAH/AAAB/gAAAfwAAAH4AAAB8AAAAeAAAAHAAAABgAAAAQAAAAAAAAAAAAAAAAAAAA/////////////+f////D////5//////////n////w///58P//8PB//+D4P//hzB//wYYf98OGH/ODhh/xh8A/8Afgf/AP8P/wAH//8AD///AB///wA///8Af///AP///wH///8D////B////w////8f////P////3/////////8=",lf:2,uf:1}];class ho{constructor(c,p,O,F,Z,re,Oe,je,ot,Ct,Rt,Et){var qt,gn,tn,Pn,Bn,ei,jn,si,vi,bi,$i,er,nr,cs,ys,Fr,Si,dr;this.Xd=c,this.Jd=p,this.Af=O,this.vf=Z,this.Rs=re,this.ff=Oe,this.ec=je,this.jd=ot,this.gd=Ct,this.pf=Rt,this.vr=Et,this.mf=new Map,this.gf=xa.map(lr),this.wf=0,this.Sf=0,this.bf=!1,this.kf=new Set,this.yf=!1,this.If=!1,this.Cf=!1,this.Ef=!1,this.Tf=!1,this.Mf=!1,this.Pf=0,this.Df=0,this.Rf=!1,this.Nf={passive:!1},this.xf=!0,this.nu=!1,this.Of=0,this.Bf=0,this.Ff=null,this.Lf=void 0,this.Uf=()=>{this.Bf=0,this.Gf()&&!this.Hf()&&(this.bf=!0,this.Vf())},F.onmessage=Ss=>this.Wf(Ss),this.Zd={fa:O.clientWidth||window.screen.width,pa:O.clientHeight||window.screen.height,_f:1,qf:0,$f:0,videoWidth:0,videoHeight:0,zf:0,offsetX:0,offsetY:0,Kf:1};const go=window.zoneless;if(this.documentAddEventListener=null!==(gn=null===(qt=go?.documentAddEventListener)||void 0===qt?void 0:qt.bind(document))&&void 0!==gn?gn:document.addEventListener.bind(document),this.documentRemoveEventListener=null!==(Pn=null===(tn=go?.documentRemoveEventListener)||void 0===tn?void 0:tn.bind(document))&&void 0!==Pn?Pn:document.removeEventListener.bind(document),this.videoAddEventListener=null!==(si=null!==(ei=null===(Bn=go?.videoAddEventListener)||void 0===Bn?void 0:Bn.bind(O))&&void 0!==ei?ei:null===(jn=go?.documentAddEventListener)||void 0===jn?void 0:jn.bind(document))&&void 0!==si?si:O.addEventListener.bind(O),this.videoRemoveEventListener=null!==(er=null!==(bi=null===(vi=go?.videoRemoveEventListener)||void 0===vi?void 0:vi.bind(O))&&void 0!==bi?bi:null===($i=go?.documentRemoveEventListener)||void 0===$i?void 0:$i.bind(document))&&void 0!==er?er:O.removeEventListener.bind(O),this.Qf=this.Yf.bind(this),this.Xf=this.jf.bind(this),this.Jf=this.Zf.bind(this),this.tp=this.sp.bind(this),this.ep=this.np.bind(this),this.hp=this.op.bind(this),this.ap=this.cp.bind(this),this.lp=this.up.bind(this),this.Ap=this.vp.bind(this),this.fp=this.pp.bind(this),this.mp=this.gp.bind(this),this.wp=this.Sp.bind(this),this.bp=this.kp.bind(this),this.yp=!!Z.windowedStreaming,this.cursorType=null!==(cs=null!==(nr=function(){switch(Sn.cursor){case"hw":return 1;case"sw":return 0;case"free":return 2;default:return}}())&&void 0!==nr?nr:Z.cursorType)&&void 0!==cs?cs:this.yp?2:0,n.Log.i("{70cc40b}","{3277c0e}",this.cursorType),this.Ip={Cp:!1,Ep:0===this.cursorType&&!Z.allowUnconfined,Tp:0,Mp:0,Pp:0,Dp:0,style:"",cursor:this.gf[0]},this.Rp={Np:1,xp:!1,Op:!1,Bp:!1},this.Fp=["image-set","-webkit-image-set"].find(Ss=>CSS.supports("cursor",`${Ss}(url(image.bmp) 2x) 0 0, auto`)),0===this.cursorType?(this.Lp=this.Up(this.Af),this.Lp.style.visibility="hidden",this.Lp.style.display="none"):this.Lp=document.createElement("canvas"),this.Gp(),this.Hp(),this.yf="onpointerrawupdate"in this.Af,this.If=Ws(),this.Cf=this.If&&"getCoalescedEvents"in PointerEvent.prototype&&!(re.browser===n.PlatformBrowser.FIREFOX),n.Log.i("{70cc40b}","{f30b8ee}",this.Cf?"supported":"not supported"),this.yf){const Ss=function(){const xo=Sn.ko.mouseCoalesceInterval;if(void 0!==xo)return new Map([[0,0],[4,1],[8,2],[16,3]]).get(xo)}();void 0!==Ss?this.Vp(Ss):En(re)?this.Vp(3):this.Vp(1),n.Log.i("{70cc40b}","{20be0c0}",this.Df,void 0!==Ss?" (overridden)":"")}this.Ef=null!==(ys=Z.unadjustedMovement)&&void 0!==ys?ys:this.Wp();const Vo=En(re)&&hr(this.Rs,84,0,4147,94)&&!hr(this.Rs,88,0,4324,139),Ds=kn(this.Rs)||!Vo||!hr(this.Rs,84,0,4147,94);this.Qo=(null!==(Fr=Sn.Qo)&&void 0!==Fr?Fr:Ds)?new Os:new ll,["pointerlockchange","mozpointerlockchange"].forEach(Ss=>this.documentAddEventListener(Ss,this.fp)),["pointerlockerror","mozpointerlockerror"].forEach(Ss=>this.documentAddEventListener(Ss,this.mp)),this.pf._p(0,this.wp),this.pf._p(2,this.bp),this.qp=!(!cn(this.Rs)&&!Gi(this.Rs)&&(!Ir(re)||hr(re,99,0,4844,44)||Ai(re))&&(!Wt(re)||!Ai(re))),1===this.cursorType&&this.$p(1),this.zp=1===this.cursorType&&(null===(dr=null!==(Si=Sn.pointerLockEscape)&&void 0!==Si?Si:Sn.ko.pointerLockEscape)||void 0===dr||dr),this.Kp=1===this.cursorType&&Ft(re),n.Log.d("{70cc40b}","{ec7c4c5}")}uninitialize(){["pointerlockerror","mozpointerlockerror"].forEach(c=>this.documentRemoveEventListener(c,this.mp)),["pointerlockchange","mozpointerlockchange"].forEach(c=>this.documentRemoveEventListener(c,this.fp)),this.pf.Qp(0,this.wp),this.pf.Qp(2,this.bp),this.Yp(),this.Lp.remove()}Xp(c){this.Rp.xp&&(this.Rp.xp=!1,this.jp(this.Ip.Cp,this.Ip.Tp,this.Ip.Mp))}uv(){0===this.Pf&&this.gd.Zc()}jf(c){Vi(c)||(c.preventDefault(),this.Yf(c),2===this.cursorType&&this.Af.setPointerCapture(c.pointerId))}Yf(c){this.Jd.Jp(),this.pf.Zp(!0),this.bf=!0;const p=this.vr.kr(c.timeStamp);!this.Gf()||this.Hf()?(this.Kp&&this.Ip.Cp&&(this.Yp(),this.Bf=window.setTimeout(this.Uf,500)),$s.getInstance().wo(),this.Ec(c.button,p)):(this.Vf(),this.Ip.Cp&&(this.tm(c.offsetX,c.offsetY),this.im(),this.gd.Dc(!0,this.Ip.Tp,this.Ip.Mp,p)))}Yp(){this.Bf&&(window.clearTimeout(this.Bf),this.Bf=0)}sp(c){Vi(c)||(c.preventDefault(),this.Zf(c))}Zf(c){$s.getInstance().wo(),this.Tc(c.button,this.vr.kr(c.timeStamp))}np(c){this.yp&&c.target!==this.Af||(this.gd.Pc(c.deltaY,this.vr.kr(c.timeStamp)),c.preventDefault())}vp(c){if(!Vi(c)){if(c.preventDefault(),-1!==c.button){let p;switch(c.button){case 1:p=2;break;case 2:p=1;break;default:p=c.button}const O=this.vr.kr(c.timeStamp);c.buttons&1<<p?this.Ec(c.button,O):this.Tc(c.button,O)}this.up(c)}}up(c){this.tm(c.offsetX,c.offsetY),this.gd.Dc(!0,this.Ip.Tp,this.Ip.Mp,this.vr.kr(c.timeStamp))}sm(c){if(c instanceof PointerEvent){if(Vi(c))return;c.preventDefault()}let p=performance.now();if(!this.pf.nm()||this.Gf()&&!this.Hf()||0===c.movementX&&0===c.movementY)return;this.ia(!0);let O=1,F=0;const Z=this.Ip.Cp,re=this.jd.Xc,Oe=je=>{if(!this.Qo.update(je.movementX,je.movementY,je.timeStamp))return;let ot=this.Qo.Xv(),Ct=this.Qo.jv();if(Z)this.Ip.Ep?this.hm(ot,Ct):this.tm(je.offsetX,je.offsetY),this.Rp.xp=!0,ot=this.Ip.Tp,Ct=this.Ip.Mp;else if(this.qp){let Et=this.Rp.Np;ot+=this.Ip.Pp,Ct+=this.Ip.Dp,this.Ip.Pp=ot%Et,this.Ip.Dp=Ct%Et,ot/=Et,Ct/=Et}const Rt=F%O!=0;this.jd.Bl(Z,ot,Ct,this.vr.kr(je.timeStamp),0,p,Rt),F++};if(c instanceof PointerEvent&&this.Cf){const je=c.getCoalescedEvents();if(0==je.length)Oe(c);else{const ot=this.jd.Bc.length,Ct=je.length>2*ot?1:Math.max(ot-this.jd.Xc-4,1);je.length>Ct&&(O=Math.ceil(je.length/Ct),this.ec.om+=je.length);for(let Rt of je)Oe(Rt)}}else Oe(c);this.gd.hl>1&&0===re&&this.jd.Xc>re&&this.jd.Ol(re,this.jd.Xc-re)}op(c){this.sm(c)}cp(c){const p=this.gd._c();if(this.sm(c),!p&&this.gd._c()){const O=performance.now()-this.gd.ol;O>=this.Df?this.gd.Zc():this.gd.Jc(this.Df-O)}}tm(c,p){this.rm(c-this.Zd.qf,p-this.Zd.$f)}hm(c,p){const O=this.qp?this.Rp.Np:1;this.rm(this.Ip.Tp+c/O,this.Ip.Mp+p/O)}am(c,p){this.rm(c*this.Zd.fa/Bo,p*this.Zd.pa/Bo)}rm(c,p){this.Ip.Tp=Math.min(Math.max(c,0),this.Zd.fa),this.Ip.Mp=Math.min(Math.max(p,0),this.Zd.pa),this.im()}Up(c){let p=document.createElement("canvas");return p.style.touchAction="none",p.style.pointerEvents="none",p.style.willChange="transform",c.insertAdjacentElement("afterend",p),p}Gp(){var c,p;if(0!==this.cursorType)return;const O=this.Af.getBoundingClientRect(),F=null!==(p=null===(c=this.Af.parentElement)||void 0===c?void 0:c.getBoundingClientRect())&&void 0!==p?p:new DOMRect(0,0,0,0),Z=O.left-F.left+this.Zd.Kf*this.Zd.qf,re=O.top-F.top+this.Zd.Kf*this.Zd.$f;this.Lp.style.position="absolute",this.Lp.style.left=Z+"px",this.Lp.style.top=re+"px",this.Lp.style.zIndex="200"}va(c){if(this.Zd.fa&&this.Zd.pa){const O=c.pa/this.Zd.pa;this.Ip.Tp*=c.fa/this.Zd.fa,this.Ip.Mp*=O}this.Zd=c,this.Gp(),this.Hp()}Hp(){const c=this.Lp.getContext("2d");if(c){this.Rp.dm=c;const p=window.devicePixelRatio;if(this.Rp.Np!=p){n.Log.i("{70cc40b}","{b786ba9}",p),this.Rp.Np=p,this.Rp.Op=!0;for(const O of this.mf.values())O.style=void 0;this.im()}}}lm(c){return c>=1.499&&c<1.999?2:Math.max(1,Math.floor(c+.001))}jp(c,p,O){if(0===this.cursorType)if(this.xf&&c){const F=this.lm(this.Rp.Np/this.Ip.cursor.scale);this.Rp.Op&&(this.Rp.Op=!1,this.um(F)),this.Am(p,O,F),this.vm()}else this.fm()}pm(c){const p=()=>{if(this.Ip.gm=void 0,this.Ip.cursor=c,this.Rp.Op=!0,0===this.cursorType)this.im();else{if(!c.style){const O=this.Rp.Np;let F=1,Z=1;this.wm()&&(F=this.lm(O/c.scale),Z=F/O),this.um(F),c.style=this.Sm(this.Lp.toDataURL("image/bmp"),c.lf*Z,c.uf*Z)}this.Ip.style=c.style,this.bm()}};if(0!==this.cursorType&&c.style)p();else if(br(c))if(c.image)0!==c.image.width||0!==c.image.height?p():this.Ip.gm=c.image;else{const O=new Image;c.image=O,!O.decode&&O.decoding&&(O.decoding="sync"),O.src=this.km(c.cf,c.df),O.decode?(this.Ip.gm=O,O.decode().then(()=>{this.Ip.gm===O&&p()}).catch(F=>{this.Ip.gm===O&&(this.Ip.gm=void 0,this.pm(this.gf[1]))})):p()}else this.Ip.cursor=c,this.fm()}um(c){const p=this.Ip.cursor;if(!p.image)return void n.Log.e("{70cc40b}","{bc9bdcd}");const O=this.Rp.Np,F=this.Rp.dm,Z=p.image.width*c,re=p.image.height*c,Oe=Math.ceil(Z),je=Math.ceil(re);Oe!==this.Lp.width||je!==this.Lp.height?(this.Lp.style.width=Z/O+"px",this.Lp.style.height=re/O+"px",this.Lp.width=Oe,this.Lp.height=je,F.scale(1,1),F.imageSmoothingEnabled=!1):F.clearRect(0,0,this.Lp.width,this.Lp.height),F.drawImage(p.image,0,0,Z,re)}Am(c,p,O){const F=this.Ip.cursor,Z=this.Rp.Np,re=O/Z;let Oe=(c*this.Zd.Kf-F.lf*re)*Z,je=(p*this.Zd.Kf-F.uf*re)*Z;this.Rf||(Oe=Math.round(Oe),je=Math.round(je)),Oe/=Z,je/=Z,this.Lp.style.transform="translate("+Oe+"px, "+je+"px)"}vm(){this.Rp.Bp||(this.Rp.Bp=!0,this.Lp.style.visibility="visible")}fm(){this.Rp.Bp&&(this.Rp.Bp=!1,this.Lp.style.visibility="hidden")}Wf(c){let p=new Uint8Array(c.data);switch(p[0]){case 0:case 1:let O=p[1],F=p[2],Z=p[3],re=p[4],Oe=5,je=()=>{const tn=p[Oe]+(p[Oe+1]<<8);return Oe+=2,tn},ot="";if(0!=re){let tn=p.subarray(Oe,Oe+re);Oe+=re,ot=new TextDecoder("utf-8").decode(tn)}const Ct=je();let Rt,Et,qt,gn="";if(0!=Ct){let tn=p.subarray(Oe,Oe+Ct);Oe+=Ct,gn=new TextDecoder("utf-8").decode(tn)}Oe+4<=p.byteLength&&(Rt=je(),Et=je()),Oe+2<=p.byteLength&&(qt=je()/100),0==p[0]?this.$p(O,Rt,Et):this.ym(O,F,Z,ot,gn,Rt,Et,qt);break;case 10:this.vf.allowUnconfined&&this.Im(1==p[1])}}$p(c,p,O){c>=this.gf.length?n.Log.e("{70cc40b}","{de8eabe}",c):this.Cm(this.gf[c],p,O)}ym(c,p,O,F,Z,re,Oe,je){let ot;if(Z.length>0)ot={cf:Z,lf:p,uf:O,df:F,scale:je||1},this.mf.set(c,ot);else if(ot=this.mf.get(c),void 0===ot)return void n.Log.e("{70cc40b}","{0196577}",c);this.Cm(ot,re,Oe)}Cm(c,p,O){const F=br(c);!this.Ip.Cp&&F&&void 0!==p&&void 0!==O&&this.am(p,O),this.Em(F),this.Vf(),this.pm(c),this.bm()}Sm(c,p,O){const Z=this.Fp;return Z?`${Z}(url(${c}) ${this.Rp.Np}x) ${p} ${O}, auto`:`url(${c}) ${p} ${O}, auto`}wm(){return void 0!==this.Fp}km(c,p){return`data:${p};base64,${c}`}bm(){this.Af.style.cursor=!this.Tm()||this.Gf()&&!this.Hf()||2==this.cursorType?"default":0===this.cursorType?"none":this.Ip.style}im(){this.Rp.xp=!0}Em(c){this.Ip.Cp=c,c||(this.Ip.Pp=0,this.Ip.Dp=0)}Im(c){this.Ip.Ep=c,this.Vf()}kp(c){this.bf=c,this.Vf(),this.bm()}pp(c){if(document.pointerLockElement instanceof HTMLElement)return this.Ff=null,this.Lf=void 0,this.wf=2,void this.Xd.Mm();const p=2===this.wf;this.wf=0,this.Pm();const O=()=>{n.Log.i("{70cc40b}","{d4b3de3}"),this.bf=!1,this.bm()},F=this.Xd.Dm();if(!this.zp||!p||F)return p&&O(),void this.Xd.Rm(!1);this.Of=window.setTimeout(()=>{O(),this.Nm(!0)},50)}Nm(c){0!==this.Of&&(this.Pm(),this.Xd.Rm(c))}Pm(){0!==this.Of&&(window.clearTimeout(this.Of),this.Of=0)}gp(c){this.Mf||(this.wf=0,this.Ef?(this.Ef=!1,n.Log.e("{70cc40b}","{7599808}"),this.Vf()):(n.Log.e("{70cc40b}","{d633cd1}"),this.xm()))}xm(){this.bm()}Gf(){var c,p;return!Le(this.Rs)&&this.Tm()&&2!=this.cursorType&&this.pf.nm()&&(!this.Ip.Cp||this.Ip.Ep)&&(null===(p=null===(c=this.Jd.Om())||void 0===c?void 0:c.bf())||void 0===p||p)}Hf(){return 1===this.wf||2===this.wf}Vf(){const c=this.Gf(),p=this.Hf(),O=this.Ef&&!this.Ip.Cp;if(!this.bf||!c||p&&O===this.Tf)1==this.wf||!c&&p&&(document.exitPointerLock?(this.wf=3,document.exitPointerLock()):this.wf=0);else{const Z=this.Af;if(Z.requestPointerLock&&this.Sf<3){if(1===this.wf){if(O===this.Ff)return;if(this.Lf)return void this.Lf.then(()=>{this.Vf()});n.Log.e("{70cc40b}",this.Mf?"{d70c0a5}":"{da98287}")}this.wf=1,this.Ff=O;const Oe=Z.requestPointerLock({unadjustedMovement:O});this.Lf=Oe,Oe&&(this.Mf=!0,Oe.then(()=>{this.wf=2,this.Ff=null,this.Lf=void 0,this.Tf=O,this.Sf=0}).catch(je=>{this.wf=0,"NotSupportedError"===je.name&&O?(n.Log.i("{70cc40b}","{08fd91e}"),this.Ef=!1,this.Vf()):("UnknownError"==je.name?(this.Sf++,n.Log.w("{70cc40b}","{9f2ba9f}",this.Sf)):n.Log.e("{70cc40b}","{4cdd98f}",je.name,je.message),this.xm())}))}else this.wf=2}}AA(){this.nu||(this.nu=!0,Ut(this.Rs)||this.Bm(),this.documentAddEventListener("wheel",this.ep,this.Nf),this.Fm(),0===this.cursorType&&(this.Lp.style.display="block"),this.Vf(),this.bm())}lA(){this.nu&&(this.Lm(),this.nu=!1,Ut(this.Rs)||this.Um(),this.documentRemoveEventListener("wheel",this.ep,this.Nf),this.Gm(),0===this.cursorType&&(this.Lp.style.display="none"),this.Vf(),this.bm(),this.Pm())}Tm(){return this.nu}Vp(c){if(this.yf&&this.Pf!==c)switch(this.nu&&this.Gm(),this.Pf=c,this.nu&&this.Fm(),c){case 1:this.Df=4;break;case 2:this.Df=8;break;case 3:this.Df=16;break;default:this.Df=0}}Fm(){2==this.cursorType?(this.ff.Qv(this.Hm()),this.videoAddEventListener(this.Hm(),this.Vm())):0!==this.Pf?(this.ff.Qv("pointerrawupdate"),this.videoAddEventListener("pointerrawupdate",this.ap)):(this.ff.Qv(this.Hm()),this.videoAddEventListener(this.Hm(),this.hp))}Gm(){2==this.cursorType?this.videoRemoveEventListener(this.Hm(),this.Vm()):0!==this.Pf?this.videoRemoveEventListener("pointerrawupdate",this.ap):this.videoRemoveEventListener(this.Hm(),this.hp)}static Wm(c){c.preventDefault()}Bm(){2==this.cursorType&&this.If?(this.ff.Yv("pointerdown","pointerup"),this.videoAddEventListener("pointerdown",this.Xf),this.videoAddEventListener("pointerup",this.tp)):(this.ff.Yv("mousedown","mouseup"),this.videoAddEventListener("mousedown",this.Qf),this.videoAddEventListener("mouseup",this.Jf)),wt(this.Rs)||this.videoAddEventListener("contextmenu",ho.Wm)}Um(){2==this.cursorType&&this.If?(this.videoRemoveEventListener("pointerdown",this.Xf),this.videoRemoveEventListener("pointerup",this.tp)):(this.videoRemoveEventListener("mousedown",this.Qf),this.videoRemoveEventListener("mouseup",this.Jf)),wt(this.Rs)||this.videoRemoveEventListener("contextmenu",ho.Wm)}Sp(c){c?(this.pf._m()&&(this.bf=!0,this.Vf()),this.Hp()):(this.Vf(),this.Nm(!1))}Lm(){if(this.kf.size>0){n.Log.i("{70cc40b}","{041c67f}",this.kf.size);for(const c of this.kf)this.Tc(c,0)}}Hm(){return this.If?"pointermove":"mousemove"}Vm(){return this.If?this.Ap:this.lp}Ec(c,p){this.kf.has(c)||(this.kf.add(c),this.gd.Ec(c,p))}Tc(c,p){this.kf.has(c)&&(this.kf.delete(c),this.gd.Tc(c,p))}ia(c){this.xf!=c&&(this.im(),this.xf=c)}qm(c){this.Rf=c,this.im()}$m(){return this.Ip}zm(){this.Ef=!this.Ef,this.Jd.Km("UnadjustedMovement: "+(this.Ef?"ON":"OFF")),n.Log.i("{70cc40b}","{796c5cb}",this.Ef?"ON":"OFF")}Qm(){let c="UNSUPPORTED";if(this.yf)switch(this.Vp((this.Pf+1)%4),this.Pf){case 1:c="4ms";break;case 2:c="8ms";break;case 3:c="16ms";break;default:c="OFF"}this.Jd.Km("Non-vsync mouse events: "+c),n.Log.i("{70cc40b}","{bac28ff}",c)}Wp(){return!(Ir(this.Rs)&&(kn(this.Rs)&&(this.yp||!hr(this.Rs,84,0,4147,78))||(En(this.Rs)||Ai(this.Rs))&&!hr(this.Rs,86,0,4240,198)))}Ym(){return`${this.Ip.Cp?"local":"alt"} ${this.Hf()?"locked":"unlocked"}`}}function Vi(y){return!y.isPrimary||"touch"===y.pointerType||"pen"===y.pointerType}function br(y){return"none"!==y.style}const ya=65535;class rs{constructor(c,p,O,F){if(this.Xm=!1,this.id=c.id,this.jm=c.rect,c.flags)for(const Z of c.flags)1&Z&&(this.Xm=!0);this.Jm(p,O,F)}Zm(c,p){return this.clientRect.left<=c&&this.clientRect.right>=c&&this.clientRect.top<=p&&this.clientRect.bottom>=p}Jm(c,p,O){this.clientRect={left:this.jm.left*c.fa*O/ya+p.Hr,top:this.jm.top*c.pa*O/ya+p.vertical,right:this.jm.right*c.fa*O/ya+p.Hr,bottom:this.jm.bottom*c.pa*O/ya+p.vertical}}getClientRect(){return this.clientRect}}class cl{constructor(c,p,O){this.tg=c,this.Jh=p,this.telemetry=O,this.regions=[],this.ig=-1,this.sg=!1}va(c){if(this.eg=c,0===this.regions.length||!this.eg)return;const p=this.tg.ng();for(const O of this.regions)O.Jm(this.eg,p,this.eg.Kf)}hg(c){if(this.sg===c||(this.sg=c,!this.eg))return!1;const p=this.tg.ng();if(c){if(this.regions.length>0){for(const O of this.regions)O.Jm(this.eg,p,this.eg.Kf);if(-1===this.ig)return this.ig=0,!0;-1!==this.ig&&this.og()}}else if(-1!==this.ig)return this.rg(),!0;return!1}ag(c){const p=JSON.stringify(c);n.Log.d("{b61561f}","{012742b}",p),this.telemetry.Ke("EditBoxList",p);const O=this.tg.ng();this.regions=[];for(const F of c)this.regions.push(new rs(F,this.eg,O,this.eg.Kf));0===c.length&&this.sg&&(this.dg(1),this.rg()),this.sg&&this.cg()&&this.og()}lg(c,p){if(0===this.regions.length)return;const O=this.ig;this.ug(c,p),-1!==this.ig?this.ig===O?this.dg(2):(this.dg(0),-1!==O?(n.Log.d("{b61561f}","{28b6a30}"),this.og(!0)):this.og()):-1!==O&&this.dg(1)}og(c=!1){if(-1===this.ig||!this.eg)return;const p=this.regions[this.ig].getClientRect();if(!p)return;const O=window.innerHeight-p.bottom;!c&&O<0&&Math.abs(this.eg.offsetY-O)>5||O<0&&this.tg.Ag(this.eg.offsetX,O,this.eg.Kf)}vg(){return this.regions.length>0}cg(){return-1!==this.ig}rg(){this.ig=-1}ug(c,p){this.ig=this.regions.findIndex(O=>O.Zm(c,p))}dg(c){this.Jh.emit("EditBoxEvent",{action:c})}fg(c,p){if(0===this.regions.length)return;const O=this.ig;this.ug(c,p),-1!==this.ig?this.regions[this.ig].Xm?n.Log.d("{b61561f}","{ced563b}"):this.dg(2):-1!==O&&this.dg(1)}}const Ta=[{pg:8,mg:128,gg:Fa(),wg:27,Sg:[]},{pg:46,mg:128,gg:Fa(),wg:27,Sg:[]}];class pl{constructor(c,p,O,F,Z,re,Oe,je,ot,Ct,Rt,Et,qt,gn,tn,Pn,Bn,ei,jn){var si,vi,bi,$i,er,nr,cs,ys,Fr,Si,dr,go,Vo,Ds,Ss,Js,xo,va;this.Jd=c,this.bg=p,this.telemetry=Z,this.Jh=re,this.kg=ot,this.yg=Ct,this.Rs=Rt,this.Xd=Et,this.Ig=qt,this.pf=gn,this.vr=Pn,this.Cg=!1,this.Eg=0,this.Tg=new Set,this.Mg=0,this.sg=!1,this.Pg=!1,this.Dg=!1,this.Rg=!0,this.Ng=!1,this.xg=0,this.Og=new io,this.Fo=!1,this.Bg=0,this.Fg=!1,this.Lg=!0,this.Ug=!1,this.Gg=0,this.Hg=0,this.Vg=0,this.Wg="off",this._g="off",this.qg=new Map,this.$g=new Map,this.zg=!1,this.Kg=0,this.Qg=!1,this.Yg=Za=>{n.Log.d("{8bacfa5}","{9c2578a}"),this.Xg()},this.jg=()=>{this.zg=!0},this.Jg=()=>{this.zg=!1},this.Zd={fa:this.bg.clientWidth||window.screen.width,pa:this.bg.clientHeight||window.screen.height,_f:1,qf:0,$f:0,videoWidth:0,videoHeight:0,zf:0,offsetX:0,offsetY:0,Kf:1};const to=window.zoneless;this.windowAddEventListener=null!==(vi=null===(si=to?.windowAddEventListener)||void 0===si?void 0:si.bind(window))&&void 0!==vi?vi:window.addEventListener.bind(window),this.windowRemoveEventListener=null!==($i=null===(bi=to?.windowRemoveEventListener)||void 0===bi?void 0:bi.bind(window))&&void 0!==$i?$i:window.removeEventListener.bind(window),this.documentAddEventListener=null!==(nr=null===(er=to?.documentAddEventListener)||void 0===er?void 0:er.bind(document))&&void 0!==nr?nr:document.addEventListener.bind(document),this.documentRemoveEventListener=null!==(ys=null===(cs=to?.documentRemoveEventListener)||void 0===cs?void 0:cs.bind(document))&&void 0!==ys?ys:document.removeEventListener.bind(document),this.videoAddEventListener=null!==(Si=null===(Fr=to?.videoAddEventListener)||void 0===Fr?void 0:Fr.bind(this.bg))&&void 0!==Si?Si:this.bg.addEventListener.bind(this.bg),this.videoRemoveEventListener=null!==(go=null===(dr=to?.videoRemoveEventListener)||void 0===dr?void 0:dr.bind(this.bg))&&void 0!==go?go:this.bg.removeEventListener.bind(this.bg),this.Zg=this.tw.bind(this),this.iw=this.sw.bind(this),this.ew=this.nw.bind(this),this.wp=this.Sp.bind(this),this.hw=this.ow.bind(this),this.rw=this.aw.bind(this),this.dw=this.cw.bind(this),this.lw=this.uw.bind(this),this.Aw=this.fw.bind(this),this.pw=this.mw.bind(this),this.preventNavigation=!!Oe.preventNavigation;const Ul=Ht(this.Rs);this.gw={mv:Ul?64:128,gv:0,wv:255,Gn:this.ww.bind(this)};const wl=new ws(36);this.gd=new Dr(this,wl,tn,this.Zd,this.Jd,O,this.telemetry,this.vr,ei,Bn),this.ff=new rl(this.bg,this.Rs),this.Sw=new ho(this,c,this.bg,F,Oe,Rt,this.ff,tn,wl,this.gd,this.pf,this.vr),this.bw=new cl(this,this.Jh,this.telemetry),je?$n.isSupported()?(this.kw=this.yw(),n.Log.i("{8bacfa5}","{60f3637}")):n.Log.w("{8bacfa5}","{32104d3}"):n.Log.i("{8bacfa5}","{6be89bf}"),jr.isSupported()&&!Kn(this.Rs)&&(this.Iw=this.Cw()),this.Ew=kn(this.Rs),this.du=En(this.Rs),this.Tw=Ai(this.Rs),this.Mw=Zi(this.Rs),this.Au=Bt(this.Rs);const Gs=Ft(this.Rs),Sa=!!Oe.windowedStreaming;n.Log.i("{8bacfa5}","{fa2e72c}",Sa?"on":"off"),this.Ew?(n.Log.d("{8bacfa5}","{da5ae1d}"),this.Pw=[20,144,145]):this.du||bt(this.Rs)?(n.Log.d("{8bacfa5}","{b7becf9}"),this.Pw=[]):(n.Log.d("{8bacfa5}","{098ce9c}"),this.Pw=[20]),this.pf._p(2,this.ew),window.ResizeObserver?(this.Dw=new ResizeObserver(Za=>{this.ow()}),this.Dw.observe(this.bg)):this.windowAddEventListener("resize",this.hw),(Ut(Rt)||Gi(Rt))&&window.IntersectionObserver&&(this.Rw=new IntersectionObserver(Za=>{this.ow()},{threshold:[1]}),this.Rw.observe(this.bg)),this.videoAddEventListener("resize",this.hw),this.windowAddEventListener("orientationchange",this.Yg);const Ua=window.visualViewport;Ua&&(this.Zd.zf=Ua.height,Ua.addEventListener("resize",this.rw)),this.gd.Pl(this.yg),this.yg.fA(this.telemetry),Sn.Uo&&this.yg.kv(this.gw),this.nw(this.pf._m()),this.Nw(!0),Sn.Bo&&$s.getInstance().initialize(this.bg,this.Rs),(Kn(this.Rs)||this.Mw||Ut(this.Rs))&&(this.textInputElement=jn,this.Mw&&(this.Wg=null!==(Ds=null===(Vo=this.textInputElement)||void 0===Vo?void 0:Vo.getAttribute("autocapitalize"))&&void 0!==Ds?Ds:"off",this._g=null!==(Js=null===(Ss=this.textInputElement)||void 0===Ss?void 0:Ss.getAttribute("autocorrect"))&&void 0!==Js?Js:"off",null===(xo=this.textInputElement)||void 0===xo||xo.setAttribute("autocapitalize","off"),null===(va=this.textInputElement)||void 0===va||va.setAttribute("autocorrect","off"))),(Sn.Jo||Sn.qo&&(Gs||Sa))&&(this.xw(Oe.streamingHotkeys),this.Ow()),n.Log.d("{8bacfa5}","{cc9c05b}")}uninitialize(){var c,p,O,F,Z,re;Sn.Uo&&this.yg.yv(this.gw),this.Bw(!1);const Oe=this.bg.paused,je=void 0!==Oe?Oe?"paused":"playing":"unknown",ot=this.bg.currentTime;(Oe||(ot??1)<1)&&this.telemetry.Ke("VideoPaused",je,ot?.toFixed(2)),n.Log.i("{8bacfa5}","{fdc8bf7}",je,ot),null===(c=this.Rw)||void 0===c||c.disconnect(),null===(p=this.Dw)||void 0===p||p.disconnect(),this.yg.ZA(this.gd),this.gd.Dl(this.yg),this.toggleRsdmm(!1),this.yg.pA(this.telemetry),this.toggleUserInput(!1),this.gd.stop(),this.windowRemoveEventListener("resize",this.hw),this.windowRemoveEventListener("orientationchange",this.Yg),this.videoRemoveEventListener("resize",this.hw),null===(O=window.visualViewport)||void 0===O||O.removeEventListener("resize",this.rw),this.pf.Qp(2,this.ew),this.Fo&&(this.yg.dA(this.kg),this.kg.Fw(this.bg)),this.Sw.uninitialize(),null===(F=this.Lw)||void 0===F||F.stop(),this.Nw(!1),this.Uw(),null===(Z=this.textInputElement)||void 0===Z||Z.setAttribute("autocapitalize",this.Wg),null===(re=this.textInputElement)||void 0===re||re.setAttribute("autocorrect",this._g),n.Log.d("{8bacfa5}","{b6b2756}")}Cw(){return new jr(this.bg,this.videoAddEventListener,this.videoRemoveEventListener,this,this.vr)}yw(){return new $n(this.bg,this.videoAddEventListener,this.videoRemoveEventListener,this.gd,this,this.Rs,this.vr)}Nw(c){c?this.pf._p(0,this.wp):this.pf.Qp(0,this.wp)}Gw(c){if(this.du&&20===c.keyCode||Ut(this.Rs)&&20!==c.keyCode)return;let p=0;p|=16,!this.Hw()&&c.getModifierState("CapsLock")&&(p|=1),this.Ew&&(p|=32,p|=64,c.getModifierState("NumLock")&&(p|=2),c.getModifierState("ScrollLock")&&(p|=4)),p!=this.Eg&&(this.Eg=p,this.gd.lc(p))}Xp(c){this.Sw.Xp(c)}uv(){this.Sw.uv(),this.yg.uv()}Al(){this.gd.Nc()&&this.yg.Al()}ow(c){this.va(this.bg)}aw(c){this.Zd.zf=window.visualViewport.height,this.Vw(this.Zd.offsetX,this.Zd.offsetY,this.Zd.Kf)}cw(c){n.Log.d("{8bacfa5}","{b6fbd34}"),history.pushState(null,document.title,location.href)}Ww(c){var p;return this.Rg?this.Mw?(null!==(p=c.code)&&void 0!==p&&p.length?mt.get(c.code):mt.get(c.key))??0:(c.code?mt.get(c.code):Yt.get(c.key))??0:c.keyCode}_w(c){return"CapsLock"==c.code&&("Alphanumeric"==c.key||"Katakana"==c.key||"Hiragana"==c.key)||"KanaMode"==c.code&&("Hiragana"==(p=c.key)||"Katakana"==p||"Romaji"==p||"KanaMode"==p);var p}qw(c){return"Lang1"==c.code||"HangulMode"==c.key}Hw(){return this.Lg&&this.Tw&&this.Ug}$w(c){return!!this.Hw()&&"CapsLock"==c.code}tw(c){var p,O;let F=this.zg;this.Fg=!1;const Z=this.vr.kr(c.timeStamp);if(!this.pf.nm())return;this.zw(c)&&c.preventDefault();let re=this.$w(c);re&&(F=F||re),this.Gw(c);const Oe=this._w(c);F=F||Oe;const je=this.qw(c);if(F=F||je,this.Pw.includes(c.keyCode)&&!Oe&&!re)return;const ot=re?160:this.Ww(c);if(0===ot)return this.Cg=!0,void this.Jh.emit("TextComposition",{compositionText:c.key,imeRecommendation:!0});if(this.Cg&&(this.Cg=!1,this.Jh.emit("TextComposition",{compositionText:""})),this.Tg.has(ot))return;this.Tg.add(ot);let Ct=!1;const Rt=this.Jd.Om();let Et;if(187==ot)Ct=!this.Jd.Kw();else if(c.ctrlKey&&c.altKey)if(!Sn.isInternalUser&&!Sn.stutterIndicator||119!=ot&&219!=ot)if(Sn.isInternalUser)switch(ot){case 48:this.Sw.Qm();break;case 49:this.Jd.Qw();break;case 56:this.Jd.Yw();break;case 68:this.Jd.Xw();break;case 71:this.Fw();break;case 76:Rt?.jw(),this.Sw.Vf();break;case 83:this.Ig.Jw();break;case 115:this.Jd.Zw();break;case 116:this.Jd.tS();break;case 117:this.Jd.toggleOnScreenStats(c.shiftKey);break;case 118:case 192:this.Jd.iS();break;case 120:this.Sw.zm();break;case 189:this.Rg=!this.Rg,this.Jd.Km("Position dependent keys: "+(this.Rg?"ON":"OFF")),n.Log.i("{8bacfa5}","{61d2ab5}",this.Rg?"ON":"OFF");break;case 77:this.Jd.sS();break;case 81:c.shiftKey&&this.Jd.eS();break;default:Ct=!0}else Ct=!0;else this.Jd.toggleStutterIndicator();else if(Et=this.nS(c,ot)){let qt=this.hS(c);for(const gn of Et.gg){const tn=qt&~Ze(gn);qt!=tn&&(qt=tn,this.gd.Vc(4,gn,qt,Z)),this.Tg.delete(gn)}for(const gn of Et.Sg)qt|=Ze(gn),this.gd.Vc(3,gn,qt,Z);this.gd.Vc(3,Et.wg,qt,Z),this.gd.Vc(4,Et.wg,qt,Z);for(const gn of Et.Sg)qt&=~Ze(gn),this.gd.Vc(4,gn,qt,Z);this.Tg.delete(ot)}else Rt?.isVisible()?13==ot?(Rt.toggle(),this.Sw.Vf()):82==ot?(Rt.reset(),this.Sw.Vf()):65==ot?Rt.oS():83==ot?Rt.rS():67==ot?Rt.aS():77==ot?Rt.dS():Ct=!0:Ct=!0;if(Ct&&($s.getInstance().wo(),this.gd.Vc(3,ot,this.hS(c),Z)),"Hankaku"!=c.key&&"Zenkaku"!=c.key||192==ot&&(F=!0),this.Tw&&c.metaKey&&!Et&&(F=!0),this.Mw&&("Backspace"==c.code&&(F=!0),""==c.code&&"Enter"==c.key)){const qt=new CompositionEvent("compositionend",{data:null===(p=this.textInputElement)||void 0===p?void 0:p.value});null===(O=this.textInputElement)||void 0===O||O.dispatchEvent(qt)}F&&(this.gd.Vc(4,ot,this.hS(c),Z),this.Tg.delete(ot))}Ow(){var c,p,O,F,Z,re,Oe;for(const je of this.$g.values())n.Log.i("{8bacfa5}","{e7c6e9b}",null===(c=je.pg)||void 0===c?void 0:c.toString(16),null===(p=je.mg)||void 0===p?void 0:p.toString(16),null===(O=je.wg)||void 0===O?void 0:O.toString(16),null===(F=je.Sg)||void 0===F?void 0:F.map(ot=>ot.toString(16)));for(const je of this.qg.values())n.Log.i("{8bacfa5}","{b5e3a31}",je.cS,null===(Z=je.mg)||void 0===Z?void 0:Z.toString(16),null===(re=je.wg)||void 0===re?void 0:re.toString(16),null===(Oe=je.Sg)||void 0===Oe?void 0:Oe.map(ot=>ot.toString(16)))}xw(c){if(c)for(const p of c){const O=p.remote.code;if(!O)continue;const F=mt.get(O);if(!F)continue;const Z=Mr(p.remote.modifiers),re=p.local.key,Oe=p.local.code;if(Oe){const je=mt.get(Oe);if(!je)continue;this.$g.set(je,{pg:je,mg:p.local.modifiers,gg:Fa(),wg:F,Sg:Z})}else re&&this.qg.set(re,{cS:re,mg:p.local.modifiers,gg:Fa(),wg:F,Sg:Z})}else for(const p of Ta)p.cS?this.qg.set(p.cS,p):p.pg&&this.$g.set(p.pg,p)}nS(c,p){if(!(c.ctrlKey||c.shiftKey||c.metaKey||c.altKey))return;let O=this.$g.get(p);if(O||(O=this.qg.get(c.key)),O){let F=O.mg;128==F&&(F=this.Tw?4:1);const Z=c.ctrlKey,re=c.altKey,Oe=c.metaKey,je=c.shiftKey;if((1&F?Z:!Z)&&(2&F?re:!re)&&(4&F?Oe:!Oe)&&(8&F?je:!je))return O}}sw(c){let p=!1;const O=this.vr.kr(c.timeStamp);if(this.Mw&&""==c.code&&"Unidentified"==c.key&&!this.Fg)return this.gd.Vc(3,8,0,O),void this.gd.Vc(4,8,0,O);let F=this.$w(c);if(F&&(p=p||F),this.Gw(c),this.Pw.includes(c.keyCode)&&!F)return;const Z=F?160:this.Ww(c);p&&(this.gd.Vc(3,Z,this.hS(c),O),this.Tg.add(Z)),this.Tg.has(Z)&&(this.Tg.delete(Z),$s.getInstance().wo(),this.gd.Vc(4,Z,this.hS(c),O))}va(c){var p;if(c.videoWidth<=0||c.videoHeight<=0)return;let O,F,Z=1,re=0,Oe=0;c.clientWidth/c.clientHeight>c.videoWidth/c.videoHeight?(Z=c.clientHeight/c.videoHeight,O=c.videoWidth*Z,F=c.videoHeight*Z,Oe=(c.clientWidth-O)/2):(Z=c.clientWidth/c.videoWidth,O=c.videoWidth*Z,F=c.videoHeight*Z,re=(c.clientHeight-F)/2);let ot=1,Ct=1;this.Zd.fa&&this.Zd.pa&&(ot=O/this.Zd.fa,Ct=F/this.Zd.pa),this.Zd.fa=O,this.Zd.pa=F,this.Zd._f=Z,this.Zd.$f=re,this.Zd.qf=Oe,this.Zd.videoWidth=c.videoWidth,this.Zd.videoHeight=c.videoHeight,this.Vw(this.Zd.offsetX*ot,this.Zd.offsetY*Ct,this.Zd.Kf),this.Sw.va(this.Zd),null===(p=this.kw)||void 0===p||p.va(this.Zd,this.ng(),this.Zd.Kf),this.Ig.va(this.Zd.$f,this.Zd.qf),this.bw.va(this.Zd),this.Xg()}nw(c){if(n.Log.d("{8bacfa5}","{77df54c}",c?"fullscreen":"not fullscreen"),this.ow({}),c){if(window.isSecureContext){const p=window.navigator.keyboard;p&&p.lock&&p.lock(["Escape","F11","BrowserBack","BrowserForward","BrowserRefresh","BrowserHome","BrowserFavorites","BrowserSearch","BrowserStop","Sleep","Power","WakeUp","KeyT","KeyZ","Slash","Digit1","Digit2","Digit3","Digit4","Digit5","Digit6","Digit7","Digit8","Digit9","KeyM","KeyD","KeyN","KeyS","KeyK","KeyL","Space","PrintScreen","LaunchApp1","LaunchApp2","LaunchMail","Comma","Semicolon","ArrowLeft","ArrowRight","BracketLeft","BracketRight","KeyW","KeyQ","KeyR","KeyY","KeyO","KeyP","KeyF","KeyG"])}this.bg.onclick=null,this.bg.removeAttribute("controls")}else if(this.lS(),window.isSecureContext){const p=window.navigator.keyboard;p&&p.unlock&&p.unlock()}}uS(){this.Dg||(this.Dg=!0,history.pushState(null,document.title,location.href),this.windowAddEventListener("popstate",this.dw))}AS(){this.Dg&&(this.windowRemoveEventListener("popstate",this.dw),history.back(),this.Dg=!1)}vS(){return this.kw&&!this.sg}AA(c){var p,O,F,Z,re,Oe,je;const ot=!this.Tm(),Ct=(this.Mg^c)&c;return!!Ct&&(this.Mg|=Ct,4&Ct&&(this.fS()?(this.yg.uA(this.ff),this.ff.start()):(this.ff.stop(),this.ff.reset(),this.yg.uA(this.gd))),1&Ct&&this.Sw.AA(),2&Ct&&(this.documentAddEventListener("keydown",this.Zg),this.documentAddEventListener("keyup",this.iw),null===(p=this.textInputElement)||void 0===p||p.addEventListener("input",this.Aw),null===(O=this.textInputElement)||void 0===O||O.addEventListener("compositionstart",this.pw),null===(F=this.textInputElement)||void 0===F||F.addEventListener("compositionupdate",this.pw),null===(Z=this.textInputElement)||void 0===Z||Z.addEventListener("compositionend",this.pw),this.Bg=0,this.Au&&(null===(re=this.textInputElement)||void 0===re||re.addEventListener("focus",this.jg),null===(Oe=this.textInputElement)||void 0===Oe||Oe.addEventListener("blur",this.Jg))),8&Ct&&(this.vS()?this.kw.start():null===(je=this.Iw)||void 0===je||je.start()),ot&&this.preventNavigation&&this.uS(),!0)}lA(c){var p,O,F,Z,re,Oe,je,ot;const Ct=this.Mg&c;if(!Ct)return!1;this.Mg^=Ct;const Rt=!this.Tm();return 4&Ct&&(this.fS()?(this.yg.dA(this.ff),this.ff.stop(),this.ff.reset()):this.yg.dA(this.gd)),1&Ct&&this.Sw.lA(),2&Ct&&(this.pS(),this.documentRemoveEventListener("keydown",this.Zg),this.documentRemoveEventListener("keyup",this.iw),null===(p=this.textInputElement)||void 0===p||p.removeEventListener("input",this.Aw),null===(O=this.textInputElement)||void 0===O||O.removeEventListener("compositionstart",this.pw),null===(F=this.textInputElement)||void 0===F||F.removeEventListener("compositionupdate",this.pw),null===(Z=this.textInputElement)||void 0===Z||Z.removeEventListener("compositionend",this.pw),this.Au&&(null===(re=this.textInputElement)||void 0===re||re.removeEventListener("focus",this.jg),null===(Oe=this.textInputElement)||void 0===Oe||Oe.removeEventListener("blur",this.Jg))),8&Ct&&(null===(je=this.Iw)||void 0===je||je.stop(),null===(ot=this.kw)||void 0===ot||ot.stop(),0!==this.xg&&this.mS(),this.Og.clear()),Rt&&this.preventNavigation&&this.AS(),!0}toggleUserInput(c,p){if(this.Qg)return;n.Log.d("{8bacfa5}","{2424824}",c,p);const O=p??15;this.Qg=!0,c?this.AA(O):this.lA(O),this.Qg=!1}Tm(){return 0!==this.Mg}ww(){const c=performance.now();c<this.Kg+500?(this.Kg=0,this.toggleRsdmm(!this.Ng)):this.Kg=c}toggleRsdmm(c){Sn.Lo&&c!=this.Ng&&(c?(this.yg.uA(this.ff),this.yg.dA(this.gd),this.ff.start()):(this.ff.stop(),this.ff.reset(),this.yg.uA(this.gd),this.yg.dA(this.ff)),this.Ng=c)}fS(){return this.Ng}Sp(c){c?(this.Xg(),n.Log.d("{8bacfa5}","{cb19d31}")):(n.Log.d("{8bacfa5}","{8744dbe}"),this.lS())}Mm(){}Rm(c){c&&(this.pS(),n.Log.i("{8bacfa5}","{f46c4da}"),this.gd.Vc(3,27,0),this.gd.Vc(4,27,0))}Dm(){return this.Tg.has(27)}gS(c){let p;return Ut(this.Rs)&&1===c.key.length&&('!@#$%^&*()~_+{}|:"<>?'.includes(c.key)?p=1:"1234567890`-=[]\\;',./".includes(c.key)&&(p=0)),void 0===p&&c.shiftKey&&!c.code.startsWith("Shift")&&(p=1),p??0}hS(c){let p=0;return c.ctrlKey&&!c.code.startsWith("Control")&&(p|=2),c.altKey&&!c.code.startsWith("Alt")&&(p|=4),c.metaKey&&!c.code.startsWith("Meta")&&(p|=8),p|=this.gS(c),p}wS(){void 0!==this.SS&&(this.toggleUserInput(!1,15&~this.SS),this.SS=void 0),this.Bw(!1),this.Jh.emit("StreamingEvent",{streamingWarnings:{code:4}}),this.gd.Wc(),this.Xd.bS()}kS(){return[this.Sw.Hm(),"pointerdown","touchstart"]}uw(){this.Pg&&this.wS()}Bw(c){this.Pg=c,c&&15!==this.Mg&&(this.SS=this.Mg,this.toggleUserInput(!0)),c?this.kS().forEach(p=>this.documentAddEventListener(p,this.lw)):this.kS().forEach(p=>this.documentRemoveEventListener(p,this.lw))}pS(){if(this.Tg.size>0){n.Log.i("{8bacfa5}","{7998ee8}",this.Tg.size);for(const c of this.Tg)this.gd.Vc(4,c,0);this.Tg.clear()}}lS(){this.pS(),this.Sw.Lm()}getVirtualGamepadHandler(){return this.yg.getVirtualGamepadHandler()}sendTextInput(c){this.gd.sendTextInput(c)}nl(c,p){this.gd.Nc()?this.gd.nl(c,p):n.Log.e("{8bacfa5}","{97db405}")}yS(c){const p=(new TextEncoder).encode(c);this.sendTextInput(p.buffer),this.textInputElement.value=""}IS(c){for(let p=c.length-1;p>=0;p--)if(void 0===Un.get(c.charAt(p)))return!1;return!0}CS(c){let p=!1;16&this.Eg&&(p=!!(1&this.Eg));for(let O=0;O<c.length;O++){const F=Un.get(c.charAt(O));if(!F)return void n.Log.e("{8bacfa5}","{67554be}",c.charAt(O));const Z=F.vkCode;let re=F.shift?1:0;Z>=65&&Z<=90&&p&&(re=~re),re&&this.gd.Vc(3,160,0,performance.now()),this.gd.Vc(3,Z,re,performance.now()),this.gd.Vc(4,Z,re,performance.now()),re&&this.gd.Vc(4,160,0,performance.now())}this.textInputElement.value=""}mw(c){switch(c.type){case"compositionstart":this.Bg=1;break;case"compositionupdate":!Ut(this.Rs)&&this.IS(c.data)||this.Jh.emit("TextComposition",{compositionText:c.data,imeRecommendation:!0});break;case"compositionend":const p=this.Mw?c.data.trim():c.data;if(p.length){const O=Ut(this.Rs)||!this.IS(c.data);this.Mw&&!O?this.CS(p):this.yS(p),O&&this.Jh.emit("TextComposition",{compositionText:""})}this.Bg=0}}fw(){this.Fg=!0;let c=this.textInputElement.value;if(1==this.Bg&&(this.Mw&&c.length>1&&(c=c.charAt(c.length-1)),this.Bg=2),this.Mw&&this.IS(c))return this.CS(c),void(this.Bg=0);2!=this.Bg&&this.yS(c)}setVirtualKeyboardState(c){n.Log.i("{8bacfa5}","{60b2d45}",c),this.sg!==c&&(this.sg=c,this.Iw&&this.kw&&(this.sg?(this.kw.stop(),this.Iw.start(),this.bw.hg(!0)):(this.Iw.stop(),1!==this.Zd.Kf&&this.Vw(0,0,1),this.bw.hg(!1),this.kw.start())))}ES(){return this.sg}setKeyboardLayout(c){this.Ug="zh-TW"==c}MS(){return{Hr:this.Zd.fa*(this.Zd.Kf-1)/2,vertical:this.Zd.pa*(this.Zd.Kf-1)/2}}PS(c,p,O){this.Og.DS();const F=c.getBoundingClientRect(),Z=(p.clientX-F.left)/this.Zd.Kf,re=(p.clientY-F.top)/this.Zd.Kf;this.ia(!0),this.Sw.tm(Z,re);const{Tp:Oe,Mp:je}=this.Sw.$m();this.gd.Dc(!0,Oe,je,O)}Vw(c,p,O){this.Zd.Kf=O;const F=this.MS();F.Hr=Math.max(F.Hr-this.Zd.qf,0),F.vertical=Math.max(F.vertical-this.Zd.$f,0);const Z=Math.max(0,this.Zd.pa-this.Zd.zf+2*this.Zd.$f);let re=Math.max(F.vertical+Z,0),Oe=Math.max(F.vertical,0);F.Hr=Math.max(F.Hr,0),c=Math.min(Math.max(c,-1*F.Hr),F.Hr),p=Math.min(Math.max(p,-1*re),Oe),this.bg.style.transform=`translate3d(${c}px,${p}px,0px) scale3d(${O},${O},1)`,this.Zd.offsetX=c,this.Zd.offsetY=p,this.Sw.va(this.Zd),this.bw.va(this.Zd)}Ag(c,p,O){const F=window.visualViewport;F&&(this.Zd.zf=F.height),this.Vw(c,p,O)}Er(){return this.Pg?(this.wS(),!1):this.pf.nm()}zw(c){var p;if(null!==(p=this.Jd.Om())&&void 0!==p&&p.isVisible())return!1;if(this.du)switch(c.code){case"Tab":return!c.altKey;case"ZoomToggle":case"SelectTask":case"BrightnessDown":case"BrightnessUp":case"AudioVolumeMute":case"AudioVolumeDown":case"AudioVolumeUp":return!1}return!0}mS(){window.clearTimeout(this.xg),this.xg=0,this.Gg=0,this.Hg=0}Or(c,p,O,F){switch(this.Og.DS(),F){case 1:this.bw.lg(O.clientX,O.clientY),this.PS(c,O,p),this.Og.delay(()=>{this.RS(0,p)});break;case 2:this.Gg++,Sn.isInternalUser&&0===this.xg&&(this.xg=window.setTimeout(()=>{2===this.Gg?this.Jd.toggleOnScreenStats():3===this.Gg&&this.Jd.toggleOnScreenStats(!0),this.mS()},300)),this.RS(2,p);break;case 3:this.Hg++,Sn.isInternalUser&&0===this.xg&&(this.xg=window.setTimeout(()=>{2===this.Hg?this.Jd.sS():3===this.Hg&&this.Ig.Jw(),this.mS()},300)),this.RS(1,p);break;case 4:this.RS(3,p);break;case 5:this.RS(4,p)}}RS(c,p){this.Ec(c,p),this.Og.delay(()=>{this.Tc(c,p)})}yr(c,p,O){1===this.Zd.Kf&&(this.PS(c,O,p),this.Og.delay(()=>{this.Ec(0,p)}))}Ir(c,p,O,F){O&&F&&this.bw.fg(O.clientX,O.clientY),1===this.Zd.Kf&&(this.Og.DS(),this.Tc(0,p))}Mr(c,p,O){1!==this.Zd.Kf||this.sg||void 0!==this.kw?this.Vw(this.Zd.offsetX+O.deltaX,this.Zd.offsetY+O.deltaY,this.Zd.Kf):this.PS(c,O,p)}scroll(c,p,O){O.length>0&&this.gd.Pc(Math.sign(O[0].deltaY),p)}Pr(c,p,O){if(2===O.length){this.Sw.qm(!0);const F=O[0],Z=O[1],re=Math.hypot(F.clientX-Z.clientX,F.clientY-Z.clientY),Oe=Math.hypot(F.clientX-F.deltaX-(Z.clientX-Z.deltaX),F.clientY-F.deltaY-(Z.clientY-Z.deltaY)),je=this.bg.getBoundingClientRect(),ot=this.MS();let Ct=this.Zd.Kf*(re/Oe);Ct=Math.min(Math.max(Ct,1),3);let Rt=(F.clientX+Z.clientX)/2-je.left;Rt+=this.Zd.offsetX-ot.Hr-(je.width-Rt)/this.Zd.Kf,Rt=(Ct/this.Zd.Kf-1)*Rt*-1,Rt+=this.Zd.offsetX+(F.deltaX+Z.deltaX)/2;let Et=(F.clientY+Z.clientY)/2-je.top;Et+=this.Zd.offsetY-ot.vertical-(je.height-Et)/this.Zd.Kf,Et=(Ct/this.Zd.Kf-1)*Et*-1,Et+=this.Zd.offsetY+(F.deltaY+Z.deltaY)/2,this.Vw(Rt,Et,Ct)}}Cr(c,p){this.Sw.qm(!1),this.Zd.Kf<1.1&&this.Vw(this.Zd.offsetX,this.Zd.offsetY,1)}ng(){const c=this.bg.getBoundingClientRect();return{Hr:c.left+window.pageXOffset+this.Zd.qf*this.Zd.Kf,vertical:c.top+window.pageYOffset+this.Zd.$f*this.Zd.Kf}}sendKeyEvent(c){if(this.gd.Nc())if(this.Ww(c))"keydown"===c.type?this.tw(c):"keyup"===c.type&&this.sw(c);else if("keydown"===c.type&&1===c.key.length){const p=(new TextEncoder).encode(c.key);this.sendTextInput(p.buffer)}}Xg(){this.Uw(),this.Vg=window.setTimeout(()=>{this.Ig.send()},350)}Uw(){0!==this.Vg&&(window.clearTimeout(this.Vg),this.Vg=0)}Ec(c,p){this.Sw.Ec(c,p)}Tc(c,p){this.Sw.Tc(c,p)}qc(){return!this.Pg||(this.wS(),!1)}NS(){return this.Sw.Ym()}ia(c){this.Sw.ia(c)}Fw(){Sn.isInternalUser&&(this.Fo=!this.Fo,this.kg.Fw(this.bg),this.Fo?this.yg.uA(this.kg):this.yg.dA(this.kg))}startInputPlayback(c){var p;this.Lw||(this.Lw=new Qa(this.gd,this.vr)),null!==(p=this.Lw)&&void 0!==p&&p.initialize(c)&&this.Lw.start()}xS(c){this.bw.ag(c)}}class io{constructor(){this.hn=0,this.OS=!1}DS(){this.OS=!0,this.BS(),this.FS(),this.OS=!1}clear(){this.Gn=void 0,this.BS()}delay(c){this.OS?c():(this.DS(),this.Gn=c,this.hn=window.setTimeout(()=>{this.hn=0,this.FS()},io.LS))}FS(){const c=this.Gn;c&&(this.Gn=void 0,c())}BS(){0!==this.hn&&(window.clearTimeout(this.hn),this.hn=0)}}function Fa(y){let c=[];return c.push(162),c.push(163),c.push(164),c.push(165),c.push(91),c.push(92),c.push(160),c.push(161),c}function Mr(y){let c=[];return 1&y&&c.push(162),2&y&&c.push(164),4&y&&c.push(91),8&y&&c.push(160),c}function Ze(y){switch(y){case 162:case 163:return 2;case 164:case 165:return 4;case 91:case 92:return 8;case 160:case 161:return 1}return 0}io.LS=30;class _{constructor(c=0,p=0){this.maxBitrate=c/1e3,this.US=p/1e3,this.GS=250,this.HS=10,this.VS=16,this.qualityScore=100,this.latencyScore=100,this.bandwidthScore=100,this.networkLossScore=100,this.WS=100,this._S=25}qS(c){if(c.currentRoundTripTime>this.GS)this.latencyScore=0;else{const O=100*(this.GS-1e3*c.currentRoundTripTime)/(this.GS-this.HS);if(void 0===O||isNaN(O))return;this.latencyScore=this.$S(this.latencyScore,O,this.VS),this.latencyScore=Math.min(this.latencyScore,this.WS)}}zS(c){let p=0;c<this.GS&&(p=100*(this.GS-c)/(this.GS-this.HS),(void 0===p||isNaN(p))&&(p=0)),this.latencyScore=this.$S(this.latencyScore,p,this.VS),this.latencyScore=Math.min(this.latencyScore,this.WS)}KS(c,p){if(!this.maxBitrate||!this.US)return;let O=100;p>=this._S&&(O=(c-this.US)/(this.maxBitrate-this.US)*100),O>100&&(O=100),void 0===O||isNaN(O)||O<0||(this.bandwidthScore=this.$S(this.bandwidthScore,O,this.VS),this.bandwidthScore=Math.min(this.bandwidthScore,this.WS))}QS(c,p){if(void 0===c.packetsReceived||void 0===c.packetsLost||void 0===p.packetsReceived||void 0===p.packetsLost||void 0===p.pliCount||void 0===c.pliCount)return;const re=c.packetsLost-p.packetsLost;let Oe=100-re/(c.packetsReceived-p.packetsReceived+re)*100;(isNaN(Oe)||void 0===Oe)&&(Oe=0);const ot=c.pliCount-p.pliCount;ot>0&&re&&(Oe=0);for(let Ct=0;Ct<ot+1;Ct++)this.networkLossScore=this.$S(this.networkLossScore,Oe,this.VS/2)}YS(){const c=Math.min(this.latencyScore,this.networkLossScore,this.bandwidthScore);return this.qualityScore=this.$S(this.qualityScore,c,this.VS/4),{latencyScore:this.latencyScore,networkLossScore:this.networkLossScore,bandwidthScore:this.bandwidthScore,qualityScore:this.qualityScore}}$S(c,p,O){return c*(O-1)/O+p/O}reset(){this.qualityScore=100,this.latencyScore=100,this.bandwidthScore=100,this.networkLossScore=100,this.WS=100}}class D{constructor(c,p){this.Jh=null,this.currentState=0,this.Ko=!1,this.XS=new Set,this.jS=!1,this.initialized=!1,this.JS=0,this.ZS=!1,this.tb=!1,this.ib=!1,this.sb={eb:0,nb:0,ob:0},this.rb=new Map([["permissionDenied",0],["visibilityChange",0],["deviceChange",0]]),this.ab=!1,this.Rs=c,this.telemetry=p,this.cb=null,this.lb=null,this.ub=!1,this.paused=!1,js(c,15)&&(this.jS=!0)}Ab(c){let p=2;return"granted"==c?p=5:"prompt"==c&&(p=1),p}fb(){return!1===Sn.Ko?Promise.resolve(0):window.navigator.permissions?window.navigator.permissions.query({name:"microphone"}).then(c=>this.Ab(c.state)).catch(c=>0):Promise.resolve(0)}pb(){!1!==Sn.Ko&&(this.ub||3==this.currentState||2==this.currentState||6==this.currentState||7==this.currentState?this.mb(this.currentState):this.fb().then(c=>{0!==c&&this.mb(c)}))}static isMicSupported(){return D.gb}mb(c,p=!0){this.currentState=c,3===this.currentState&&(this.ab=!0),this.Jh&&p&&this.Jh.emit("MicCapture",{state:this.currentState})}getUserMedia(c){var p=this;return i(function*(){return p.ub=!0,navigator.mediaDevices.getUserMedia({audio:c}).then(O=>{if(n.Log.d("{223689a}","{b204737}"),p.mb(5,!1),p.ub=!1,p.lb=O,Ut(p.Rs)&&(O.getTracks()[0].onended=()=>{p.JS=performance.now(),n.Log.i("{223689a}","{6b60d82}"),p.wb()}),p.lb.oninactive=()=>{n.Log.d("{223689a}","{eee54f1}"),p.XS.clear(),p.lb=null},p.paused)n.Log.d("{223689a}","{21e76e1}"),p.lb=null,p.mb(7);else{var F=p.cb.getSenders()[0];F?F.replaceTrack(O.getTracks()[0]).then(()=>{var Z;n.Log.i("{223689a}","{6c92139}");const re=null!==(Z=p.Sb)&&void 0!==Z?Z:p.Af;if(Ut(p.Rs)&&!js(p.Rs,15,4)&&re&&!re.muted){let Oe;re.srcObject&&(Oe=re.play(),n.Log.i("{223689a}","{23a6493}",re.tagName)),Oe?Oe.then(()=>{n.Log.d("{223689a}","{5593cbe}"),p.bb()}).catch(je=>{p.bb();try{p.telemetry.Ke("WAR: Play Error",je?.name,je?.message),n.Log.e("{223689a}","{69aae72}",je?.name,je?.message)}catch{}}):n.Log.e("{223689a}","{b6a6508}")}p.mb(3),p.ib=!1,js(p.Rs,15,4)&&(p.ZS=!1,p.kb(!1))}).catch(Z=>{n.Log.e("{223689a}","{5c42246}",Z),p.lb=null,p.mb(7)}):(n.Log.e("{223689a}","{f7f0250}"),p.lb=null)}}).catch(O=>{var F,Z;Ut(p.Rs)&&!js(p.Rs,15,4)&&p.bb(),p.ub=!1,O instanceof DOMException&&"NotAllowedError"===O.name?(n.Log.e("{223689a}","{3f9bd66}"),p.mb(2),p.tb&&!p.ZS&&p.yb("permissionDenied")):O instanceof DOMException&&"NotFoundError"===O.name?(n.Log.e("{223689a}","{7f04869}"),p.mb(4)):O instanceof DOMException&&"NotReadableError"===O.name?(p.XS.add(null!==(F=c.deviceId)&&void 0!==F?F:"default"),n.Log.e("{223689a}","{af7e08c}",null!==(Z=c.deviceId)&&void 0!==Z?Z:"default",O.name,O.message),navigator.mediaDevices.enumerateDevices().then(re=>{for(const Oe of re)if("audioinput"===Oe.kind&&"default"!==Oe.deviceId&&!p.XS.has(Oe.deviceId)){n.Log.d("{223689a}","{655d8b0}",Oe.deviceId,Oe.label),c.deviceId=Oe.deviceId,p.getUserMedia(c);break}}).catch(re=>{n.Log.e("{223689a}","{930e826}",re.name,re.message)}),p.mb(7)):(n.Log.e("{223689a}","{c361fc5}",O.name,O.message),p.mb(7))})})()}Ib(c){var p=this;return i(function*(){var O,F;if(!p.initialized)return;if(!D.gb)return n.Log.e("{223689a}","{999b07b}"),void p.mb(6);if(p.Ko=!0,null!=p.lb||p.ub)return;n.Log.d("{223689a}","{981c872}",null!==(O=c?.deviceId)&&void 0!==O?O:"default"),p.Cb=c,p.paused=!1,p.mb(1,!1);let Z={sampleRate:48e3,deviceId:null===(F=p.Cb)||void 0===F?void 0:F.deviceId};En(p.Rs)&&(Z.googAutoGainControl2=!1),navigator.mediaDevices.ondevicechange=re=>{n.Log.i("{223689a}","{50d0169}",!!p.lb,p.ub),null!=p.lb||p.ub||(n.Log.d("{223689a}","{c849290}"),p.Ib(p.Cb))},yield p.getUserMedia(Z),p.Eb||p.Tb()})()}Mb(){let c=Do(48e3);if(c){let p=c.createMediaStreamDestination().stream.getAudioTracks()[0];return c.close(),p.enabled=!0,new MediaStream([p])}throw new Error("Mic stream is not supported")}initialize(c,p,O,F){if(!1!==Sn.Ko){if(this.cb=c,this.Jh=p,this.Af=O,this.Sb=F,D.gb){let Z=this.Mb();if(null==Z)return void n.Log.w("{223689a}","{360f38b}");this.cb.addTrack(Z.getAudioTracks()[0],Z),this.Ko&&this.Ib(this.Cb)}else n.Log.w("{223689a}","{5813c2b}");this.initialized=!0}}wb(){if(!this.initialized)return;if(!D.gb)return void this.mb(6);this.Ko=!1,this.paused=!0,this.Cb=void 0;const c=this.currentState;if(navigator.mediaDevices.ondevicechange=()=>{},this.cb){n.Log.d("{223689a}","{6faf5bb}");let O=this.Mb();var p=this.cb.getSenders()[0];p?p.replaceTrack(O.getTracks()[0]).then(()=>{n.Log.d("{223689a}","{797fa55}"),this.mb(5,!1),3===c&&(this.ib=!0)}).catch(F=>{n.Log.e("{223689a}","{79f26cc}",F),this.mb(7,!1)}).finally(()=>{let F=this.lb;this.lb=null,F&&F.getTracks().forEach(Z=>{Z.stop()}),this.mb(this.currentState),Ut(this.Rs)&&!js(this.Rs,15,4)&&this.bb()}):(n.Log.e("{223689a}","{f7f0250}"),this.lb=null)}else n.Log.e("{223689a}","{9e75fa2}"),this.mb(0)}Pb(){if(!1!==Sn.Ko){if(null!=this.lb){let c=this.lb;this.XS.clear(),this.lb=null,navigator.mediaDevices&&(navigator.mediaDevices.ondevicechange=()=>{}),c.getTracks().forEach(p=>{p.stop()})}this.Ko=!1,this.mb(5),this.telemetry.Db("AudioInputType",this.ab?"started":"not started",0,this.sb.eb,this.sb.nb,this.sb.ob),js(this.Rs,15,4)&&this.telemetry.Db("LowAudioVolume","",0,this.rb.get("permissionDenied"),this.rb.get("visibilityChange"),this.rb.get("deviceChange")),this.cb=null,this.Jh=null,this.Af=void 0,this.Sb=void 0,this.initialized=!1,this.sb={eb:0,nb:0,ob:0};for(const[c,p]of this.rb)this.rb.set(c,0);this.ZS=!1,this.ib=!1,this.kb(!1),this.ab=!1}}bb(){var c,p,O;if(!Sn.Ho||!this.jS)return;const F=null!==(p=null===(c=this.Sb)||void 0===c?void 0:c.srcObject)&&void 0!==p?p:null===(O=this.Af)||void 0===O?void 0:O.srcObject;if(!F)return;n.Log.i("{223689a}","{ad4b8c2}");const Z=F.getAudioTracks()[0];Z.enabled=!1,setTimeout(()=>{Z.enabled=!0},0)}getMicState(){return this.currentState}Rb(){return this.JS}kb(c){this.tb=c}Nb(){return this.ZS}xb(){return this.ib}Tb(){return navigator.mediaDevices.enumerateDevices().then(c=>{let p=0;n.Log.d("{223689a}","{fa1ec18}",JSON.stringify(c));for(const O of c)"audioinput"==O.kind&&p++;switch(p){case 0:this.Eb="No Audio Input",this.sb.eb++;break;case 1:this.Eb="Built-in Microphone",this.sb.nb++;break;default:this.Eb="Headset Microphone",this.sb.ob++}n.Log.d("{223689a}","{0d14ab6}",this.Eb)}).catch(c=>{n.Log.e("{223689a}","{21131d5}")})}Ob(){return"Built-in Microphone"===this.Eb}yb(c){var p;this.ZS=!0,this.rb.set(c,(null!==(p=this.rb.get(c))&&void 0!==p?p:0)+1),n.Log.d("{223689a}","{30f8637}",c)}Bb(c){this.Tb().then(()=>{0!==c&&js(this.Rs,15,4)&&!this.Nb()&&this.Ob()&&(this.Ko||this.xb())&&this.yb("deviceChange")})}}function I(y,c){switch(y){case 0:return function(p){var O;const F=window.RTCPeerConnection;if(!F)return!1;if(Ut(p))return js(p,14,3);let Z=!0;switch(ge()&&Ir(p)&&(hr(p,77)||(Z=!1)),p.browser){case n.PlatformBrowser.CHROME:hr(p,77)||(Z=!1);break;case n.PlatformBrowser.EDGE_LEGACY:Z=!1;break;case n.PlatformBrowser.SAFARI:const re=F?.prototype;re&&null!==(O=re.hasOwnProperty)&&void 0!==O&&O.call(re,"canTrickleIceCandidates")&&function(Oe){if(Oe.browser!=n.PlatformBrowser.SAFARI)return!1;try{return Pr(Oe.browserVer,!1,16,4)}catch{n.Log.w("{d988e7f}","{07fd1dd}")}return!0}(p)||(Z=!1)}return Z}(c);case 1:return D.isMicSupported();default:return!1}}function j(y){return!(cn(y)||Gi(y)||Ut(y))}function pe(y,c,p){var O,F,Z,re;const Oe=ca(y,c),je=al(y,c),ot=30===p?1.25*p:Math.min(p,60);let Ct=0,Rt=y*c*ot;if(Oe||je){Ct=null!==(F=null!==(O=Sn.bitsPerPixel1440p)&&void 0!==O?O:Sn.ko.bitsPerPixel1440p)&&void 0!==F?F:.325;let Et=2073600*ot,qt=3686400*ot;qt=Et+(qt-Et)/3,Rt=je?qt+(Rt-qt)/12:Et+(Rt-Et)/3}else Ct=null!==(re=null!==(Z=Sn.bitsPerPixel)&&void 0!==Z?Z:Sn.ko.bitsPerPixel)&&void 0!==re?re:.3;return Rt=Rt*Ct/1200,p>=120&&!je&&(Rt=Math.min(5e4,Math.round(1.15*Rt))),[Math.round(Rt),5e4]}function _e(y,c){const p=1e3*c;let O=3600*(120===y?.916*p+293098:.678*p+910569)/1e9/8;return 30===y&&(O*=.625),O*=.95,O=Math.round(O),O}z.BrowserFeature=void 0,D.gb=!(!navigator.mediaDevices||!window.AudioContext&&!window.webkitAudioContext),function(y){y[y.Streaming=0]="Streaming",y[y.MicCapture=1]="MicCapture"}(z.BrowserFeature||(z.BrowserFeature={}));const xe=new class{Fb(){this.Lb(),this.Ub()}Lb(){return this.Gb=this.Hb("av1").then(y=>(this.Vb=y,this.Vb)),this.Gb}Wb(){return this.Vb?Promise.resolve(this.Vb):this.Gb?this.Gb:this.Lb()}_b(){return this.Vb}Ub(){return this.qb=this.Hb("h265").then(y=>(this.$b=y,this.$b)),this.qb}zb(){return this.$b?Promise.resolve(this.$b):this.qb?this.qb:this.Ub()}Kb(){return this.$b}Hb(y,c=1920,p=1080,O=60){const F=navigator.mediaCapabilities;if(!F)return Promise.resolve(void 0);const Z={type:"webrtc",video:{contentType:"video/"+y,width:c,height:p,framerate:O,bitrate:1e3*pe(c,p,O)[0]}};return F.decodingInfo(Z).catch(re=>{n.Log.w("{2bbf952}","{f5c2155}",y,re)})}};function He(y){var c;if(RTCRtpReceiver.getCapabilities){const p=null===(c=RTCRtpReceiver.getCapabilities("video"))||void 0===c?void 0:c.codecs;if(p)return!!p.filter(O=>O.mimeType==="video/"+y).length}return!0}function ht(y,c){return c&&(al(c.width,c.height)&&!(4&y)||ca(c.width,c.height)&&!(2&y)||120===c.fps&&!(1&y))}function yt(y,c){return Gt.apply(this,arguments)}function Gt(){return Gt=i(function*(y,c){var p;let O=[];const F=null!==(p=Sn.codecList)&&void 0!==p?p:Sn.ko.codecList;if(F)for(const Z of F)O.push(Z);else{const Z=(Oe=i(function*(je,ot){var Ct,Rt,Et;const qt=null!==(Rt=null!==(Ct=Sn.enableAv1Support)&&void 0!==Ct?Ct:Sn.ko.enableAv1Support)&&void 0!==Rt?Rt:En(Pn=je)?Ir(Pn):!!kn(Pn)&&(Ir(Pn)||gt(Pn)||Wt(Pn)),gn=null!==(Et=Sn.ko.enableAv1ByResolutionAndFps)&&void 0!==Et?Et:7;var Pn;if(!qt||ht(gn,ot))return!1;if(cn(je)&&null!=window.lge_webrtc_av1_support)return window.lge_webrtc_av1_support;if(!He("AV1"))return!1;const tn=yield xe.Wb();return!!tn?.powerEfficient}),function(je,ot){return Oe.apply(this,arguments)})(y,c),re=function(){var Oe=i(function*(je){var ot,Ct,Rt;const Et=null!==(Ct=null!==(ot=Sn.enableH265Support)&&void 0!==ot?ot:Sn.ko.enableH265Support)&&void 0!==Ct?Ct:Gi(tn=je)||cn(tn)||Bt(tn),qt=null!==(Rt=Sn.ko.enableH265ByResolutionAndFps)&&void 0!==Rt?Rt:7;var tn;if(!Et||ht(qt,void 0))return!1;if(cn(je))return function(tn){if(!cn(tn))return!1;const Pn=window.lge_webrtc_hevc_support;return n.Log.i("{2bbf952}","{afaf4f3}",Pn,typeof Pn),"string"==typeof Pn?"true"===Pn:!!Pn}(je);if(Gi(je))return function(tn){var Pn,Bn,ei;if(!Gi(tn))return!1;const jn=null===(ei=null===(Bn=null===(Pn=window.webapis)||void 0===Pn?void 0:Pn.productinfo)||void 0===Bn?void 0:Bn.getSmartTVServerVersion)||void 0===ei?void 0:ei.call(Bn),si=function($i){if(!$i)return;const er=$i.match(/T-INFOLINK(\d+)-(\d+)/);return er?{Qb:parseInt(er[1],10),version:parseInt(er[2],10)}:void 0}(jn);if(!si)return n.Log.e("{2bbf952}","{e227976}",jn),!1;const{Qb:vi,version:bi}=si;return n.Log.i("{2bbf952}","{fc40a4b}",vi,bi),2021===vi||vi>=2023||2022===vi&&bi>=1008}(je);if(!He("H265"))return!1;const gn=yield xe.zb();return!!gn?.powerEfficient});return function(je){return Oe.apply(this,arguments)}}()(y);(yield Z)&&O.push("AV1"),(yield re)&&O.push("H265"),O.push("H264")}var Oe;return O}),Gt.apply(this,arguments)}function $t(y,c){return st.apply(this,arguments)}function st(){return st=i(function*(y,c){return un.Xb(y)}),st.apply(this,arguments)}const tt=$t;function Tt(y){var c,p,O,F,Z,re,Oe,je;const{Rs:ot,Zb:Ct,tk:Rt,ik:Et}=y,qt=bn(ot),gn=Le(ot),tn=(Si=Rt,dr=Et,!!Gi(ot)&&!navigator.userAgent.includes("SamsungBrowser")&&!(!dr||dr.panelWidth<3840||dr.panelHeight<2160)&&Si.includes("H265")||function(Fr,Si){return!!cn(Fr)&&!!navigator.userAgent.includes("PWA")&&Si.includes("H265")}(ot,Rt)||Bt(ot)),Pn=tn,Bn=null!==(c=Sn.hdr)&&void 0!==c?c:Sn.ko.forceHdrSupport,ei=Bn??(!!(null!==(p=Sn.ko.enableHdrSupport)&&void 0!==p?p:Gi(ot)||cn(ot))&&function(Fr,Si){return!(!Gi(Fr)&&!cn(Fr))&&It(Fr,Si)}(ot,Rt)),jn=null!==(F=null!==(O=Sn.jo)&&void 0!==O?O:Sn.ko.forceSdr10Support)&&void 0!==F?F:!(null!==(Z=Sn.ko.enableSdr10Support)&&void 0!==Z&&!Z)&&It(ot,Rt),[si,vi]=Xs([y.sk,y.ek]),bi={width:Math.round(si*Ct),height:Math.round(vi*Ct),fps:60,scaleFactor:Math.round(100*Ct)};var Si,dr;let $i;tn?$i={width:3840,height:2160,fps:bi.fps}:qt&&si>=1366?$i={width:1600,height:1200,fps:bi.fps}:gn?$i={width:2560,height:1440,fps:bi.fps}:Nn(ot,Et)?$i={width:1920,height:1080,fps:bi.fps}:ri(ot,Et)&&($i={width:1280,height:720,fps:bi.fps});let er=[{width:2560,height:1600,fps:120},{width:3840,height:1080,fps:120}];Pn?er.push({width:3840,height:2160,fps:60}):Nn(ot,Et)?er=[{width:1920,height:1080,fps:bi.fps}]:ri(ot,Et)&&(er=[{width:1280,height:720,fps:bi.fps}]);let nr,cs=!1;if(ei){const Fr=null===(re=window.matchMedia)||void 0===re?void 0:re.call(window,"(dynamic-range: high)").matches,Si=null===(Oe=window.matchMedia)||void 0===Oe?void 0:Oe.call(window,"(video-dynamic-range: high)").matches,dr=null===(je=window.matchMedia)||void 0===je?void 0:je.call(window,"(color-gamut: p3)").matches;n.Log.i("{5083445}","{f9f1c3b}",Fr,Si,dr),cs=cn(ot)?Fr||Si:(Fr||Si)&&dr,nr=function(go){var Vo,Ds;const Ss=null!==(Vo=Sn.hdr10gParams)&&void 0!==Vo?Vo:Sn.ko.hdr10gParams;if(Ss){const Js=Ss.split(",").map(xo=>parseInt(xo,10));if(n.Log.i("{5083445}","{4c54116}",Js.join(", ")),Js.length>=3&&!Js.some(xo=>isNaN(xo))){const[xo,va,to]=Js;return{version:xo,peakLuminanceIndex:va,peakFullFrameLuminanceIndex:to}}}if(Gi(go))try{const Js=window.webapis.hdr10pluscloud;if(!Js)return void n.Log.i("{5083445}","{e293b13}");if(null===(Ds=Js?.isHdr10plusGamingSupported())||void 0===Ds||!Ds)return void n.Log.i("{5083445}","{c91f105}");const xo=1,va=Js?.getPeakLuminanceIndex(),to=Js?.getFullFramePeakLuminanceIndex();return n.Log.i("{5083445}","{a5dcb3f}",xo,va,to),void 0===xo||void 0===va||void 0===to?void 0:{version:xo,peakLuminanceIndex:va,peakFullFrameLuminanceIndex:to}}catch(Js){return void n.Log.w("{5083445}","{b510204}",Js)}}(ot),!cs&&nr&&(n.Log.w("{5083445}","{e13aa38}"),cs=!0)}Bn&&(cs=!0);const ys=aa();return Ye={displayMode:bi,maxAutoMode:$i,maxSupportedModes:er,features:{vsync:0,vvsync:!1,hdr:cs,reflex:!1,audioChannelCount:ys,bitDepth:ei?10:8,sdrBitDepth:jn?10:8,hdr10PlusGamingData:nr}},Ye}let Ye;function kt(){return Ye}function It(y,c){return Gi(y)||cn(y)||Ut(y)?c.includes("H265"):c.includes("AV1")}z.VsyncType=void 0,function(y){y[y.OFF=0]="OFF",y[y.ON=1]="ON",y[y.ADAPTIVE=2]="ADAPTIVE"}(z.VsyncType||(z.VsyncType={}));const un=new class{constructor(){var y=this;this.nk=[],this.hk=!1,this.ak=()=>{if(!this.dk)return;const c=window.screen.width,p=window.screen.height,O=window.devicePixelRatio;if(c===this.dk.sk&&p===this.dk.ek&&O===this.dk.Zb)return;this.dk.sk=c,this.dk.ek=p,this.dk.Zb=O;const F=Tt(this.dk);this.ck(F)},this.lk=i(function*(){if(!y.dk)return;y.dk.tk=yield yt(y.dk.Rs);const c=Tt(y.dk);y.ck(c)})}Yb(){this.hk||(this.hk=!0,this.uk(),xe.Fb())}Xb(y){var c=this;return i(function*(){c.dk={Rs:y,tk:yield yt(y),sk:window.screen.width,ek:window.screen.height,Zb:window.devicePixelRatio,ik:yield In(y)};const p=Tt(c.dk);return c.ck(p),p})()}jb(y){this.nk.push(y),this.nk.length>0&&this.Ak()}Jb(y){this.nk=this.nk.filter(c=>c!==y),0===this.nk.length&&this.vk()}ck(y){for(const c of this.nk)c(y)}Ak(){var y;const c=window.screen;null===(y=c.addEventListener)||void 0===y||y.call(c,"change",this.ak),window.addEventListener("focus",this.ak),window.addEventListener("resize",this.ak),ba.push(this.lk)}vk(){var y,c;c=this.lk,ba=ba.filter(O=>O!==c),window.removeEventListener("resize",this.ak),window.removeEventListener("focus",this.ak);const p=window.screen;null===(y=p.removeEventListener)||void 0===y||y.call(p,"change",this.ak)}uk(){var y=this;return i(function*(){const c=yield y.fk(!0);return y.pk(c)})()}mk(){var y=this;return i(function*(){const c=yield y.fk(!1);return y.pk(c)})()}fk(y){return y&&(this.refreshRate=void 0),this.refreshRate?Promise.resolve(this.refreshRate):this.gk?this.gk:this.wk()}pk(y){return y>=117}wk(){return this.gk=this.Sk(2e3,4e3).then(y=>(this.refreshRate=y,this.refreshRate),()=>{var y;return null!==(y=this.refreshRate)&&void 0!==y?y:0}),this.gk}Sk(y,c){return new Promise((p,O)=>{let F=!1;const Z=window.setTimeout(()=>{F=!0},c),re=gn=>{n.Log.w("{5083445}","{0b0c6f9}",gn),window.clearTimeout(Z),O()};y>c&&re("Specified timeout less than the scan interval");const Oe=[];let je,ot=window.innerWidth,Ct=window.innerHeight,Rt=window.screenX,Et=window.screenY;const qt=()=>{window.requestAnimationFrame(()=>{if(F)re("Timed out during the refreshRate loop");else if(window.innerWidth==ot&&window.innerHeight==Ct&&Rt==window.screenX&&Et==window.screenY||(ot=window.innerWidth,Ct=window.innerHeight,Rt=window.screenX,Et=window.screenY,0)){const tn=performance.now();Oe.length&&Oe[0]<=tn-y?(je=Math.floor(Oe.length/(y/1e3)),n.Log.d("{5083445}","{8c3d290}",je,Oe[Oe.length-1]-Oe[0]),gn=je,window.clearTimeout(Z),p(gn)):(Oe.push(tn),qt())}else n.Log.w("{5083445}","{824b461}"),Oe.length=0,qt();var gn})};qt()})}},xn="PANEL";function In(y){const c={panelWidth:3840,panelHeight:2160};return new Promise((p,O)=>{var F,Z,re;Gi(y)?null!==(F=window.tizen)&&void 0!==F&&F.systeminfo?window.tizen.systeminfo.getPropertyValue(xn,Oe=>p(Oe)):(n.Log.w("{5083445}","{c258be7}"),null!==(re=null===(Z=window.webapis)||void 0===Z?void 0:Z.productinfo)&&void 0!==re&&re.isUdPanelSupported()?p(c):(n.Log.w("{5083445}","{ef1d74b}"),p(void 0))):p(void 0)}).catch(p=>{var O,F;return n.Log.w("{5083445}","{82c980c}",p),null!==(F=null===(O=window.webapis)||void 0===O?void 0:O.productinfo)&&void 0!==F&&F.isUdPanelSupported()?c:void n.Log.w("{5083445}","{ef1d74b}")})}function Nn(y,c){return!!Gi(y)&&!!c&&1920===c.panelWidth&&1080===c.panelHeight}function ri(y,c){return!!Gi(y)&&!!c&&c.panelWidth<1920&&c.panelHeight<1080}function ui(y){let c=0;return y?.supported&&(c|=1),y?.smooth&&(c|=2),y?.powerEfficient&&(c|=4),c}function ne(y,c,p,O,F){var Z;c=Math.max(4e3,c);const Oe=Math.max(4e3,Math.round(c/4));return{bk:y.width,kk:y.height,yk:y.fps,dynamicStreamingMode:F,Ik:c,Ck:Oe,Ek:Oe,Tk:p,Mk:4e3,Pk:Wn(null!==(Z=y.sdrHdrMode)&&void 0!==Z?Z:n.SdrHdrMode.SDR),bitDepth:Ea(O),Dk:"UNKNOWN"}}function Ie(y){return y.split(/\r?\n/)}function _t(y,c,p,O){const F=/^([^[.]+)(?:\[(\d+)\])?\.([^:]+): *(.+)$/;let Z=!0;for(const re of Ie(y)){const Oe=F.exec(re);if(Oe){const je=Oe[1],ot=void 0!==Oe[2]?Number.parseInt(Oe[2]):void 0,Rt=Oe[4],Et=je+"."+Oe[3],qt=Nt(je),gn=Cn(c,qt,ot),tn=Cn(p,qt,ot);if(!gn||!tn){n.Log.w("{eb7c2d0}","{a649ad8}",O,qt,ot),Z=!1;continue}if(!tn.has(Et)){n.Log.w("{eb7c2d0}","{cc4fdef}",O,Et,Rt),Z=!1;continue}n.Log.d("{eb7c2d0}","{2beb68f}",O,Et,Rt),gn.set(Et,Rt)}}return Z}function Nt(y){switch(y){case"video":case"vqos":case"qscore":case"bwe":case"clientPerfBr":case"packetPacing":return"video";case"audio":case"aqos":case"audioBitrate":return"audio";case"ri":return"application";case"mic":return"mic";default:return}}function en(y,c,p,O){var F;const Z=p.Dk;y.set("vqos.fec.rateDropWindow","10"),y.set("vqos.fec.minRequiredFecPackets","2"),y.set("vqos.drc.minRequiredBitrateCheckEnabled","1"),y.set("video.dx9EnableNv12","1"),y.set("video.dx9EnableHdr","1"),y.set("vqos.qpg.enable","1"),y.set("vqos.resControl.qp.qpg.featureSetting","7"),y.set("bwe.useOwdCongestionControl","1"),y.set("video.enableRtpNack","1"),y.set("vqos.bw.txRxLag.minFeedbackTxDeltaMs","200"),y.set("vqos.fec.repairMinPercent","5"),y.set("vqos.fec.repairPercent","5"),y.set("vqos.fec.repairMaxPercent","35"),y.set("vqos.drc.bitrateIirFilterFactor","18"),y.set("video.packetSize","1140"),y.set("packetPacing.minNumPacketsPerGroup","15"),y.set("vqos.bllFec.enable","0"),function(Bn){var ei;const jn=kn(Bn)||Ai(Bn);return null!==(ei=Sn.ko.enableOOFQosEnhancements)&&void 0!==ei?ei:jn}(O)&&(y.set("vqos.adjustStreamingFpsDuringOutOfFocus","1"),y.set("vqos.resControl.cpmRtc.ignoreOutOfFocusWindowState","1"),y.set("vqos.resControl.perfHistory.rtcIgnoreOutOfFocusWindowState","1"));const re=p.yk>=120,Oe=120===p.yk,je=240===p.yk,ot=ca(p.bk,p.kk),Ct=al(p.bk,p.kk),Rt=ot||Ct,Et=p.bk*p.kk>=2764800,qt=on(O);if(qt&&y.set("vqos.resControl.cpmRtc.featureMask","3"),re&&(y.set("bwe.iirFilterFactor","8"),y.set("video.encoderFeatureSetting","47"),y.set("video.encoderPreset","6"),y.set("vqos.resControl.cpmRtc.badNwSkipFramesCount"," 600"),y.set("vqos.resControl.cpmRtc.decodeTimeThresholdMs","9"),Oe?(y.set("video.fbcDynamicFpsGrabTimeoutMs","6"),y.set("vqos.resControl.cpmRtc.serverResolutionUpdateCoolDownCount","6000")):je&&(y.set("video.fbcDynamicFpsGrabTimeoutMs","18"),y.set("vqos.resControl.cpmRtc.serverResolutionUpdateCoolDownCount","12000"),y.set("video.enableNextCaptureMode","1"),y.set("vqos.maxStreamFpsEstimate","240"),y.set("video.videoSplitEncodeStripsPerFrame","3"),y.set("video.updateSplitEncodeStateDynamically","1"))),(Rt||p.Ik>=42e3)&&(y.set("packetPacing.numGroups",Oe?"3":"5"),y.set("packetPacing.maxDelayUs","1000"),y.set("packetPacing.minNumPacketsFrame","10"),y.set("video.rtpNackQueueLength","1024"),y.set("video.rtpNackQueueMaxPackets","512"),y.set("video.rtpNackMaxPacketCount","25"),y.set("vqos.drc.qpMaxResThresholdAdj","4"),y.set("vqos.grc.qpMaxResThresholdAdj","4"),y.set("vqos.drc.iirFilterFactor","100"),Rt&&(y.set("video.videoSplitEncodeStripsPerFrame","3"),y.set("video.updateSplitEncodeStateDynamically","1")),Ct&&(y.set("video.encoderPreset","6"),y.set("vqos.drc.add1440pResLevelFor4kDrcTable","1"),y.set("vqos.drc.minAdaptiveQpThreshold","40"),y.set("vqos.grc.minAdaptiveQpThreshold","40"),y.set("vqos.drc.upperQpThreshold","40"),y.set("vqos.grc.upperQpThreshold","40"),y.set("vqos.drc.qpMaxResThresholdAdj","5"),y.set("vqos.grc.qpMaxResThresholdAdj","5"),y.set("vqos.drc.iirFilterFactor","100"),y.set("vqos.fec.repairMinPercent","0"))),"AV1"===Z&&function(Bn,ei,jn){var si,vi,bi,$i,er,nr,cs,ys,Fr,Si,dr,go,Vo,Ds,Ss;Bn.set("vqos.drc.minQpHeadroom","20"),Bn.set("vqos.drc.lowerQpThreshold","100"),Bn.set("vqos.drc.upperQpThreshold","200"),Bn.set("vqos.drc.minAdaptiveQpThreshold","180");let Js=Number(null!==(si=Bn.get("vqos.drc.qpMaxResThresholdAdj"))&&void 0!==si?si:"0");Bn.set("vqos.drc.qpMaxResThresholdAdj",(5*Js).toString()),Bn.set("vqos.drc.qpCodecThresholdAdj","0"),Bn.set("vqos.dfc.minQpHeadroom",null!==(vi=Bn.get("vqos.drc.minQpHeadroom"))&&void 0!==vi?vi:"0"),Bn.set("vqos.dfc.qpLowerLimit",null!==(bi=Bn.get("vqos.drc.lowerQpThreshold"))&&void 0!==bi?bi:"0"),Bn.set("vqos.dfc.qpMaxUpperLimit",null!==($i=Bn.get("vqos.drc.upperQpThreshold"))&&void 0!==$i?$i:"0"),Bn.set("vqos.dfc.qpMinUpperLimit",null!==(er=Bn.get("vqos.drc.minAdaptiveQpThreshold"))&&void 0!==er?er:"0"),Bn.set("vqos.dfc.qpMaxResThresholdAdj",null!==(nr=Bn.get("vqos.drc.qpMaxResThresholdAdj"))&&void 0!==nr?nr:"0"),Bn.set("vqos.dfc.qpCodecThresholdAdj",null!==(cs=Bn.get("vqos.drc.qpCodecThresholdAdj"))&&void 0!==cs?cs:"0"),ei&&(Bn.set("vqos.drc.minAdaptiveQpThreshold",null!==(ys=Bn.get("vqos.drc.upperQpThreshold"))&&void 0!==ys?ys:"0"),Bn.set("vqos.dfc.qpMinUpperLimit",null!==(Fr=Bn.get("vqos.dfc.qpMaxUpperLimit"))&&void 0!==Fr?Fr:"0")),Bn.set("vqos.grc.minQpHeadroom",null!==(Si=Bn.get("vqos.drc.minQpHeadroom"))&&void 0!==Si?Si:"0"),Bn.set("vqos.grc.lowerQpThreshold",null!==(dr=Bn.get("vqos.drc.lowerQpThreshold"))&&void 0!==dr?dr:"0"),Bn.set("vqos.grc.upperQpThreshold",null!==(go=Bn.get("vqos.drc.upperQpThreshold"))&&void 0!==go?go:"0"),Bn.set("vqos.grc.minAdaptiveQpThreshold",null!==(Vo=Bn.get("vqos.drc.minAdaptiveQpThreshold"))&&void 0!==Vo?Vo:"0"),Bn.set("vqos.grc.qpMaxResThresholdAdj",null!==(Ds=Bn.get("vqos.drc.qpMaxResThresholdAdj"))&&void 0!==Ds?Ds:"0"),Bn.set("vqos.grc.qpCodecThresholdAdj",null!==(Ss=Bn.get("vqos.drc.qpCodecThresholdAdj"))&&void 0!==Ss?Ss:"0"),jn&&(Bn.set("video.videoSplitEncodeStripsPerFrame","63"),Bn.set("video.enableAv1RcPrecisionFactor","1")),Bn.set("video.minQp","25")}(y,Ct,Et),y.set("video.clientViewportWd",p.bk.toString()),y.set("video.clientViewportHt",p.kk.toString()),y.set("video.maxFPS",p.yk.toString()),y.set("video.initialBitrateKbps",p.Ck.toString()),y.set("video.initialPeakBitrateKbps",p.Ek.toString()),y.set("vqos.bw.maximumBitrateKbps",p.Ik.toString()),y.set("vqos.bw.minimumBitrateKbps",p.Mk.toString()),y.set("video.maxNumReferenceFrames","4"),y.set("video.mapRtpTimestampsToFrames",p.Tk?"1":"0"),Kt()&&(y.set("vqos.drc.stepDownMinHeight","480"),!js(O,14,5))){const Bn=p.bk/p.kk*100;y.set("vqos.drc.stepDownResolutionAlignment","16"),y.set("vqos.drc.stepDownTargetAspectRatioX100",Bn.toFixed(0))}!function(Bn,ei,jn,si){if((ei||2===si)&&(1!==si&&(Bn.set("vqos.drc.enable","0"),Bn.set("vqos.dfc.enable","1")),Bn.set("vqos.dfc.decodeFpsAdjPercent","85"),Bn.set("vqos.dfc.targetDownCooldownMs","250"),Bn.set("vqos.dfc.dfcAlgoVersion","1"),Bn.set("vqos.dfc.minTargetFps","60"),jn&&Bn.set("vqos.cpm.flags","1"),Bn.set("vqos.resControl.dfc.useClientFpsPerf","0")),void 0!==si)switch(si){case 3:vn(Bn,!0,ei);break;case 2:vn(Bn,!0,!0);break;case 1:vn(Bn,!0,!1);break;case 0:vn(Bn,!1,ei)}}(y,re,qt,p.dynamicStreamingMode);let gn=Gi(O)?2:3,tn=0,Pn=8;if("H265"===Z||"AV1"===Z){const Bn=kt();null!==(F=Bn?.features.hdr)&&void 0!==F&&F&&1===p.Pk?(c.has("video.encoderHdrCscMode")||(gn=4),tn=p.Pk,Pn=Math.max(10,Math.min(Bn?.features.bitDepth||10,p.bitDepth))):Pn=Math.max(8,Math.min(Bn?.features.sdrBitDepth||8,p.bitDepth))}10===Pn&&"H265"===Z&&y.set("video.minQp","14"),y.set("video.encoderCscMode",gn.toString()),y.set("video.encoderHdrCscMode","4"),y.set("video.dynamicRangeMode",tn.toString()),y.set("video.bitDepth",Pn.toString())}function vn(y,c,p){y.set(p?"vqos.dfc.adjustResAndFps":"vqos.drc.enable",c?"1":"0")}function fn(y,c){var p,O,F,Z;y.set("ri.partialReliableThresholdMs",null!==(p=c.attributes.get("ri.partialReliableThresholdMs"))&&void 0!==p?p:"0"),y.set("ri.hidDeviceMask",null!==(O=c.attributes.get("ri.hidDeviceMask"))&&void 0!==O?O:"0"),y.set("ri.enablePartiallyReliableTransferGamepad",null!==(F=c.attributes.get("ri.enablePartiallyReliableTransferGamepad"))&&void 0!==F?F:"0xff"),y.set("ri.enablePartiallyReliableTransferHid",null!==(Z=c.attributes.get("ri.enablePartiallyReliableTransferHid"))&&void 0!==Z?Z:"0xffffffffffffffff")}function Cn(y,c,p){var O;return void 0===c?y.Rk:null===(O=y.media.filter(F=>F.Nk===c)[p??0])||void 0===O?void 0:O.attributes}function Tn(y,c){let p=`v=0\no=${y.origin}\ns=-\nt=${y.time}\n`;const O=(F,Z)=>{for(const[re,Oe]of F)Oe!==Z.get(re)&&(p+=`a=${re}:${Oe}\n`)};O(y.Rk,c.Rk);for(const F of y.media){p+=`m=${F.Nk} 0 RTP/AVP\n`,p+=`a=msid:${F.xk}\n`;const Z=c.media.find(re=>re.xk===F.xk);O(F.attributes,Z.attributes)}return p}function Wn(y){switch(y){case n.SdrHdrMode.SDR:return 0;case n.SdrHdrMode.HDR:return 1;case n.SdrHdrMode.EDR:return n.Log.w("{eb7c2d0}","{30c875c}"),0;default:return n.Log.w("{eb7c2d0}","{7cd5754}",y),0}}class gi{constructor(){this.Ok=0,this.Bk=0,this.Fk=0,this.Lk=0}update(c,p){if(0==this.Ok&&0==this.Fk)return this.Ok=c,void(this.Fk=p);this.Lk=p,this.Bk=c}Uk(){const c=this.Lk-this.Fk;return 0!=c?(this.Bk-this.Ok)/c:0}reset(){this.Ok=this.Bk,this.Fk=this.Lk}}class ln{constructor(c,p,O){this.Rs=p,this.Gk=O,this.fps=0,this.Hk=0,this.Vk=4,this.Wk=0,this._k=0,this.qk=0,this.$k=0,this.zk=0,this.Kk=0,this.rtd=0,this.Qk=0,this.streamingResolution={width:0,height:0},this.Yk=0,this.Xk=0,this.jk={count:0,max:0,value:0},this.Jk={count:0,max:0,value:0},this.Zk=new gi,this.ty=0,this.iy=0,this.sy=0,this.codec="UNKNOWN",this.hdr=!1,this.ey=!1,this.ny=!1,this.bitDepth=8,this.hy=!1,this.oy="",this.markers=0,this.ly={qualityScore:0,bandwidthScore:0,networkLossScore:0,latencyScore:0};const F=this.uy();c.insertAdjacentElement("afterend",F),this.Ay=F,this.vy={py:!1,my:!1,Tm:!1,sg:!1,gy:0,fS:!1,keyboardLayout:"",appLaunchMode:0,inputMode:""},this.saScores={gpuPerfScore:-1,serverPerfScore:-1,visualScore:-1,decoderScore:-1,downlinkLag:-1,downlinkCongestion:-1,uplink:-1,overall:-1}}wy(c,p){var O,F,Z,re;const Oe=null!==(O=c.bytesReceived)&&void 0!==O?O:0,je=null!==(F=p.bytesReceived)&&void 0!==F?F:0,ot=null!==(Z=c.timestamp)&&void 0!==Z?Z:0,Ct=null!==(re=p.timestamp)&&void 0!==re?re:0;ot!=Ct&&(this.Hk=(Oe-je)/(125*(ot-Ct)))}Sy(c){return c&&this.Hk<=c&&(this.Vk=this.Hk/c*100),this.Wk=c,this.Vk}by(c){if(c.frameWidth&&c.frameHeight&&(this.streamingResolution={width:c.frameWidth,height:c.frameHeight}),c.framesDecoded){const p=this._k,O=c.timestamp;p!==O&&(this.fps=Math.floor((c.framesDecoded-this.qk)/(O-p)*1e3)),this.qk=c.framesDecoded,c.totalDecodeTime&&(this.Zk.update(c.totalDecodeTime,c.framesDecoded),this.ty=1e3*c.totalDecodeTime/c.framesDecoded)}c.framesReceived&&(this.$k=c.framesReceived,c.totalInterFrameDelay)&&(this.Yk=1e3*c.totalInterFrameDelay/(c.framesReceived-1)),c.framesDropped&&(this.zk=c.framesDropped),c.packetsLost&&(this.Qk=c.packetsLost),c.pliCount&&(this.iy=c.pliCount),this._k=c.timestamp}ky(c){this.ly=c}yy(c){this.rtd=c}Iy(c){this.Kk=c}Cy(c){this.avgGameFps=c}Ey(c){this.saScores=c}Ty(){return{fps:this.fps,ty:this.ty,avgDecodeTime:1e3*this.Zk.Uk(),My:this.Wk,Vk:this.Vk,width:this.streamingResolution.width,height:this.streamingResolution.height}}Py(){return this.qk}Dy(c){const p=(1e3*this.Zk.Uk()).toFixed(2);n.Log.i("{4155ac9}","{9a6628a}",c,this.qk,p,this.zk,this.Kk.toFixed(2),this.iy,this.rtd,this.Hk.toFixed(2),this.Vk.toFixed(2))}Ry(){var c;const p={avgGameFps:null!==(c=this.avgGameFps)&&void 0!==c?c:0,fps:this.fps,rtd:this.rtd,avgDecodeTime:1e3*this.Zk.Uk(),frameLoss:this.iy-this.sy,packetLoss:this.Qk,totalBandwidth:this.Wk,currentBitrateMbps:this.Hk,utilizedBandwidth:this.Vk,streamingResolution:this.streamingResolution,codec:this.codec,bitDepth:this.bitDepth,sdrHdrMode:this.hdr?n.SdrHdrMode.HDR:n.SdrHdrMode.SDR,hdr10PlusGaming:this.hdr&&this.ny&&this.ey};return this.sy=this.iy,p}Ny(c){this.xy(c),this.jk={value:0,count:0,max:0},this.Jk={value:0,count:0,max:0},this.Zk.reset()}xy(c){this.Ay.innerText=this.Oy(c)}By(c){this.Ay.style.display=c?"block":"none"}uy(){const c=document.createElement("div");return c.style.display="none",c.style.position="fixed",Ut(this.Rs)?(c.style.top="env(safe-area-inset-top, 0)",c.style.left="max(24px, env(safe-area-inset-left, 0))"):(c.style.top="0",c.style.left="0"),c.style.padding="0.5em",c.style.backgroundColor="rgba(0,0,0,0.5)",c.style.zIndex="300",c.style.fontSize="12px",c.style.fontFamily="monospace",c.style.color="white",c.style.whiteSpace="pre",c.style.lineHeight="100%",c.style.pointerEvents="none",c}Fy(c){this.jk.value+=c,this.jk.count+=1,this.jk.max=Math.max(c,this.jk.max)}Ly(c){this.Jk.value+=c,this.Jk.count+=1,this.Jk.max=Math.max(c,this.Jk.max)}Uy(c){this.Xk=Math.max(c,this.Xk)}Gy(c){this.vy=c}Hy(c){this.codec=c}Vy(){return this.codec}Wy(c){const p=c!==this.hdr;return this.hdr=c,p}_y(){return this.hdr}qy(c,p){return(this.ey!==c||this.ny!==p)&&(n.Log.i("{4155ac9}","{417fbf6}",Ki(c),Ki(p)),this.ey=c,this.ny=p,!0)}$y(c){this.bitDepth=c}zy(){return this.bitDepth}Ky(){this.markers++}Qy(c){this.hy=c}Yy(c){this.oy=c}Oy(c){const p=`Seat: ${this.Gk.zoneName} (${this.Gk.Xy}) / ${this.Gk.gpuType}\n`;let O=`Game: CMS ${this.Gk.appId}`;void 0!==this.avgGameFps&&(O+=` / fps ${this.avgGameFps.toFixed()}`),O+="\n";let F=p+O+`Stream: Current ${qn(this.streamingResolution)}@${this.fps} / Default: ${this.Gk.streamInfo.width}x${this.Gk.streamInfo.height}@${this.Gk.streamInfo.fps} / Codec ${this.codec}${this.jy()} ${this.bitDepth} bpc\nNetwork: RTD ${this.rtd}ms / FL ${this.iy} / PL ${this.Qk} / J ${this.Kk.toFixed(2)}ms / Bitrate ${this.Hk.toFixed(2)}Mbps / BWU ${this.Vk.toFixed(2)}%\nQOS: frame ${this.qk} / FT ${this.Yk.toFixed(2)} / D ${(1e3*this.Zk.Uk()).toFixed(2)} / Q ${Math.floor(this.ly.qualityScore)} / Marker ${this.markers}\nClient: ${this.Rs.os} ${this.Gk.clientAppVersion} ${this.Gk.clientLocale} Resolution ${qn({width:window.innerWidth*window.devicePixelRatio,height:window.innerHeight*window.devicePixelRatio})}\nInput ${this.vy.inputMode}\nSA: dec ${this.saScores.decoderScore.toFixed(2)} / lag ${this.saScores.downlinkLag.toFixed(2)} / cong ${this.saScores.downlinkCongestion.toFixed(2)} / up ${this.saScores.uplink.toFixed(2)} / gpu ${this.saScores.gpuPerfScore.toFixed(2)} / srv ${this.saScores.serverPerfScore.toFixed(2)} / vis ${this.saScores.visualScore.toFixed(2)} / ovr ${this.saScores.overall.toFixed(2)}\n`;const Z=`DC ${ki(this.jk)}ms (${rr(this.jk)}ms) / Blocked ${this.Xk}\n`,re=`Stats ${ki(this.Jk)}ms (${rr(this.Jk)}ms) / FR ${this.$k} / FDR ${this.zk}\n`,Oe=`Latency ${this.ly.latencyScore.toFixed(1)} / Network ${this.ly.networkLossScore.toFixed(1)} / Bandwidth ${this.ly.bandwidthScore.toFixed(1)}\n`,je=`VP ${Ki(this.vy.py)} / AP ${Ki(this.vy.my)} / UI ${Ki(this.vy.Tm)} / VKB ${Ki(this.vy.sg)} / MS ${this.vy.gy} / RSDMM ${+this.vy.fS}\n`,ot=`KBL ${this.vy.keyboardLayout} / ALM ${+this.vy.appLaunchMode} / SWD ${Ki(this.hy)} / ${this.oy}`;return c&&(F+=Z+re+Oe+je+ot),F}jy(){return this.hdr?this.ny?` HDR10+G (${this.ey?"C":"_"}${this.ny?"S":"_"})`:" HDR":""}uninitialize(){this.Ay.remove()}}function ki(y){let c=0;return y.count>0&&(c=y.value/y.count),c.toFixed(2)}function rr(y){return y.max.toFixed(2)}function Ki(y){return y?"y":"n"}class pr{constructor(c,p,O,F=120){this.vr=c,this.Jy=p,this.index=O,this.Zy=F,this.tI=0,this.iI=0,this.sI=0,this.eI=0,this.nI=0,this.framesDecoded=0,this.pliCount=0,this.hI=0,this.framesDropped=0,this.oI=0,this.rI=new Array,this.aI=-1}dI(c){return void 0!==c?c-this.vr.yd():0}za(){return this.vr.$a()}cI(c){const p=new ArrayBuffer(88),O=new DataView(p);O.setFloat64(0,Ti(c.audioLevel),!0),ii(Ti(c.concealedSamples),O,8,!0),ii(Ti(c.concealmentEvents),O,16,!0),ii(Ti(c.insertedSamplesForDeceleration),O,24,!0),O.setFloat64(32,Ti(c.jitterBufferDelay),!0),ii(Ti(c.jitterBufferEmittedCount),O,40,!0),ii(Ti(c.removedSamplesForAcceleration),O,48,!0),ii(Ti(c.silentConcealedSamples),O,56,!0),O.setFloat64(64,Ti(c.totalSamplesReceived),!0),O.setFloat64(72,Ti(c.totalSamplesDuration),!0),O.setFloat64(80,this.za(),!0),this.Jy.lI([p],4)}sendVideoTrack(c){const p=Ti(c.framesDropped);p>=this.oI&&(this.framesDropped=p-this.oI,this.oI=p);const O=new ArrayBuffer(44),F=new DataView(O);F.setUint32(0,Ti(c.framesDecoded),!0),F.setUint32(4,p,!0),F.setUint32(8,Ti(c.frameHeight),!0),F.setUint32(12,Ti(c.frameWidth),!0),F.setUint32(16,Ti(c.framesReceived),!0),F.setFloat64(20,Ti(c.jitterBufferDelay),!0),ii(Ti(c.jitterBufferEmittedCount),F,28,!0),F.setFloat64(36,this.za(),!0),this.Jy.lI([O],3)}uI(c){"audio"===c.kind?(this.AI(c),this.cI(c)):(this.vI(c),this.sendVideoTrack(c),this.fI(c))}AI(c){const p=new ArrayBuffer(48),O=new DataView(p);ii(Ti(c.packetsReceived),O,0,!0),ii(Ti(c.bytesReceived),O,8,!0),ii(Ti(c.packetsLost),O,16,!0),O.setFloat64(24,Ti(c.lastPacketReceivedTimestamp),!0),O.setFloat64(32,Ti(c.jitter),!0),O.setFloat64(40,this.za(),!0),this.Jy.lI([p],2)}pI(){return this.tI}mI(){return Math.round(this.iI)}gI(){return this.framesDecoded}wI(){return this.pliCount}SI(){return this.framesDropped}bI(c,p,O,F){c>=this.sI&&(this.tI=c-this.sI,this.sI=c),F>=this.hI&&(this.pliCount=F-this.hI,this.hI=F),this.framesDecoded=p-this.eI,this.framesDecoded>0&&O>this.nI&&(this.iI=1e3*(O-this.nI)/this.framesDecoded,this.eI=p,this.nI=O)}vI(c){const p=Ti(c.packetsLost),O=Ti(c.framesDecoded),F=Ti(c.totalDecodeTime),Z=Ti(c.pliCount);this.bI(p,O,F,Z);const re=new ArrayBuffer(80),Oe=new DataView(re);Oe.setUint32(0,O,!0),Oe.setUint32(4,Ti(c.keyFramesDecoded),!0),Oe.setUint32(8,Ti(c.nackCount),!0),Oe.setInt32(12,p,!0),Oe.setInt32(16,Z,!0),ii(Ti(c.bytesReceived),Oe,20,!0),ii(Ti(c.packetsReceived),Oe,28,!0),Oe.setFloat64(36,F,!0),Oe.setFloat64(44,Ti(c.totalInterFrameDelay),!0),Oe.setFloat64(52,Ti(c.totalSquaredInterFrameDelay),!0),Oe.setFloat64(60,Ti(c.totalAssemblyTime),!0),Oe.setUint32(68,Ti(c.framesAssembledFromMultiplePackets),!0),Oe.setFloat64(72,this.za(),!0),this.Jy.lI([re],1)}fI(c){if(c.perFrameEntries){const p=JSON.parse(c.perFrameEntries),O=[];let F=this.aI;for(let Z=0;Z<p.length;Z++){if(p[Z].frameNumber>this.aI){const re=new ArrayBuffer(20),Oe=new DataView(re);Oe.setUint32(0,p[Z].frameNumber,!0),Oe.setFloat64(4,p[Z].decodeTime,!0),Oe.setFloat64(12,p[Z].assemblyTime,!0),O.push(re)}F=Math.max(F,p[Z].frameNumber)}this.aI=F,O.length>0&&this.Jy.lI(O,6)}}kI(c){const p=c.timingFrameInfo.split(",",15);if(p.length<15)return;const O=new ArrayBuffer(70),F=new DataView(O);F.setUint32(0,Ti(c.targetDelayMs),!0),F.setUint32(4,Ti(c.minPlayoutDelayMs),!0),F.setUint32(8,Ti(c.currentDelayMs),!0),F.setFloat64(12,this.za(),!0),F.setFloat64(20,Ti(parseFloat(p[3])),!0),F.setFloat64(28,Ti(parseFloat(p[4])),!0),F.setFloat64(36,Ti(parseFloat(p[8])),!0),F.setFloat64(44,Ti(parseFloat(p[9])),!0),F.setFloat64(52,Ti(parseFloat(p[10])),!0),F.setFloat64(60,Ti(parseFloat(p[11])),!0),F.setUint8(68,Ti(parseFloat(p[13]))),F.setUint8(69,Ti(parseFloat(p[14]))),this.Jy.lI([O],0)}yI(c){var p,O,F;const Z=null!==(p=c.receiveTime)&&void 0!==p?p:0,re=c.presentationTime-Z,Oe=1e3*(null!==(O=c.processingDuration)&&void 0!==O?O:0),je=this.dI(c.presentationTime),ot=new ArrayBuffer(16),Ct=new DataView(ot);Ct.setFloat64(0,je,!0),Ct.setUint16(8,Math.min(100*re,65535),!0),Ct.setUint16(10,Math.min(100*Oe,65535),!0),Ct.setUint32(12,null!==(F=c.rtpTimestamp)&&void 0!==F?F:0,!0),this.rI.push(ot),this.rI.length==this.Zy&&this.II()}II(){this.rI.length>0&&(this.Jy.lI(this.rI,5),this.rI=[])}}function Ti(y){return y||0}class Qi{constructor(c){this.active=!1,this.CI=.06,this.EI=new DOMRect(0,0,0,0),this.TI=[],this.MI=[],this.Af=c,this.Qf=this.onmousedown.bind(this)}setActive(c){this.active!==c&&(this.active=c,c?(n.Log.i("{0c7ed7c}","{b56e30d}"),this.Af.dispatchEvent(new Event("focus",{bubbles:!0})),this.Af.addEventListener("pointerdown",this.Qf),this.Af.addEventListener("mousedown",this.Qf)):(n.Log.i("{0c7ed7c}","{00425c2}"),this.Af.removeEventListener("pointerdown",this.Qf),this.Af.removeEventListener("mousedown",this.Qf),this.TI=[],this.MI=[]))}isActive(){return this.active}DI(c){c<=0||c>=1?n.Log.e("{0c7ed7c}","{1cbd879}",c.toFixed(2)):this.CI=c}RI(){return this.CI}NI(c){c.width<=0||c.height<=0?n.Log.e("{0c7ed7c}","{3e0eb8f}",c.width,c.height):this.EI=c}xI(){return this.EI}OI(c){this.BI=c}FI(c,p){this.TI.push({presentedFrames:p.presentedFrames,LI:c,presentationTime:p.presentationTime,receiveTime:p.receiveTime,processingDuration:p.processingDuration});const O=this.UI(this.EI);Qi.GI(this.Af,O.x,O.y,O.width,O.height).then(F=>this.HI(F,p.presentedFrames))}onmousedown(c){if(this.TI.length){if(!(this.MI.length&&c.timeStamp-this.MI[this.MI.length-1].VI<100))for(this.MI.push({VI:c.timeStamp,WI:performance.now()});this.MI.length>32;)this.MI.shift()}else n.Log.w("{0c7ed7c}","{fe08a50}")}static GI(c,p,O,F,Z){return new Promise((re,Oe)=>{window.setTimeout(()=>{const je=Qi._I(c,p,O,F,Z);-1===je&&Oe(-1),re(je)},0)})}static _I(c,p,O,F,Z){if(F<=0||Z<=0)return-1;const re=new OffscreenCanvas(F,Z).getContext("2d");if(!re)return n.Log.e("{0c7ed7c}","{b72639c}"),-1;let Oe;try{re.drawImage(c,p,O,F,Z,0,0,F,Z),Oe=re.getImageData(0,0,F,Z).data}catch(Ct){return n.Log.e("{0c7ed7c}","{b16b792}",Ct),-1}let je=0,ot=0;for(let Ct=0;Ct<Oe.length-3;Ct+=4)je+=.2126*Oe[Ct]+.7152*Oe[Ct+1]+.0722*Oe[Ct+2],ot++;return je/ot/255}HI(c,p){var O;if(!this.TI.length)return;const F=this.TI[this.TI.length-1];if(p!==F.presentedFrames)return void n.Log.d("{0c7ed7c}","{06323ea}",p);for(F.qI=c;this.TI.length>32;)this.TI.shift();if(1==this.TI.length)return;const Z=this.TI[this.TI.length-2];if(!(Z.presentedFrames<p-2||void 0===Z.qI||-1===Z.qI)&&F.qI-Z.qI>this.CI){let re,Oe=0;const je={presentedFrames:p,LI:F.LI,presentationTime:F.presentationTime,receiveTime:F.receiveTime,processingDuration:F.processingDuration,VI:0,WI:0};for(;this.MI.length&&this.MI[0].VI<(null!==(O=F.receiveTime)&&void 0!==O?O:F.presentationTime);)Oe++,re=this.MI.shift();if(!re)return;Oe>1&&n.Log.d("{0c7ed7c}","{a4b8c55}",p,Oe),je.VI=re.VI,je.WI=re.WI,this.BI&&this.BI(je)}}$I(){const c=this.UI(this.EI);return!(c.x<0||c.y<0||c.x+c.width>this.Af.videoWidth||c.y+c.height>this.Af.videoHeight)}UI(c){const p=this.Af.videoWidth,O=this.Af.videoHeight;return new DOMRect(c.x*p,c.y*O,c.width*p,c.height*O)}zI(){const c={isPrimary:!0,pointerId:1,button:0};this.Af.dispatchEvent(new PointerEvent("pointerdown",c)),this.Af.dispatchEvent(new MouseEvent("mousedown")),window.setTimeout(()=>{this.Af.dispatchEvent(new PointerEvent("pointerup",c)),this.Af.dispatchEvent(new MouseEvent("mouseup"))},100)}}const Gr="Show hotkeys";class vr{constructor(c,p){this.pf=p,this.visible=!1,this.KI=[],this.QI=!1,this.YI=0,this.XI=0,this.jI={x:0,y:0},this.JI=0,this.Af=c,this.controller=new Qi(c),this.bp=this.onfullscreenchange.bind(this),this.ZI=this.onmousedown.bind(this),this.tC=this.onmousemove.bind(this),this.iC=this.sC(),this.eC=this.nC(),this.hC=this.oC(),this.rC=this.aC(),this.dC=this.createNotification(),c.insertAdjacentElement("afterend",this.iC),this.iC.insertAdjacentElement("afterend",this.eC),this.eC.insertAdjacentElement("afterend",this.hC),this.iC.insertAdjacentElement("beforebegin",this.rC),this.rC.insertAdjacentElement("beforebegin",this.dC),this.controller.OI(this.BI.bind(this)),this.cC(!1),this.lC(!1),this.uC(!0)}stop(){this.iC.remove(),this.eC.remove(),this.hC.remove(),this.rC.remove(),this.dC.remove(),this.AC(!1),this.KI=[]}reset(){this.setActive(!1),this.vC(this.fC,.06),this.vC(this.pC,20),this.vC(this.mC,1e3),this.cC(!1),this.lC(!1),this.uC(!0),this.gC(!1),this.wC.value="",this.SC.value="",this.KI=[]}jw(){this.AC(!this.isVisible())}AC(c){if(c!==this.visible){n.Log.i("{50c79eb}","{5595c14}",c),this.visible=c;for(const Z of[this.iC,this.eC,this.rC])Z===this.rC&&c?this.gC(this.bC.value!==Gr):Z.style.display=c?"block":"none";const p=Ws(),O=p?"pointerdown":"mousedown",F=p?"pointermove":"mousemove";if(c){this.kC(),this.yC(this.eC,this.IC),this.fC.oninput=re=>{const Oe=parseFloat(re.target.value);this.controller.DI(Oe),this.CC.innerHTML=this.EC(Oe)},this.TC.oninput=re=>{this.cC(re.target.checked)},this.pC.oninput=re=>{this.MC.innerHTML=re.target.value},this.mC.oninput=re=>{this.PC.innerHTML=this.DC(re.target.value)},this.RC.oninput=re=>{this.lC(re.target.checked)};const Z=(re,Oe)=>{const je=parseInt(re.target.value);Oe.value=Math.max(Math.min(je,100),0).toFixed(0),this.NC()};this.wC.oninput=re=>Z(re,this.wC),this.SC.oninput=re=>Z(re,this.SC),this.xC.onclick=re=>this.setActive("Start"===this.xC.value),this.bC.onclick=re=>this.gC(this.bC.value===Gr),this.eC.onmouseup=this.kC.bind(this),this.eC.onmousedown=re=>{this.isActive()&&this.controller.zI()},this.pf._p(2,this.bp),this.Af.addEventListener(O,this.ZI),this.Af.addEventListener(F,this.tC)}else this.setActive(!1),this.fC.oninput=null,this.TC.oninput=null,this.pC.oninput=null,this.mC.oninput=null,this.RC.oninput=null,this.wC.oninput=null,this.SC.oninput=null,this.xC.onclick=null,this.bC.onclick=null,this.eC.onmouseup=null,this.eC.onmousedown=null,this.IC.onmousedown=null,this.pf.Qp(2,this.bp),this.Af.removeEventListener(O,this.ZI),this.Af.removeEventListener(F,this.tC)}}isVisible(){return this.visible}toggle(){this.setActive(!this.isActive())}setActive(c){if(!c||this.controller.$I())if(c&&this.QI)n.Log.e("{50c79eb}","{89742e9}");else if(this.controller.setActive(c),this.uC(),c){if(this.xC.value="Stop",this.OC()){n.Log.i("{50c79eb}","{5974b2c}"),this.QI=!0,this.XI=parseInt(this.pC.value);const p=parseInt(this.mC.value);this.YI=window.setInterval(()=>this.BC(),p)}}else this.xC.value="Start",this.QI&&(this.YI?(n.Log.i("{50c79eb}","{d340c50}"),this.FC()):n.Log.w("{50c79eb}","{6d8948b}")),this.LC(),this.UC();else this.GC()}isActive(){return this.controller.isActive()}bf(){return!this.isVisible()||this.isActive()}oS(){this.cC(!this.OC())}HC(c){var p;const O=null!==(p=c.processingDuration)&&void 0!==p?p:0;return{VC:c.WI-c.VI,WC:c.receiveTime?c.receiveTime-c.WI:0,_C:c.receiveTime&&c.processingDuration?c.presentationTime-c.processingDuration-c.receiveTime:0,decode:O,qC:c.LI-c.presentationTime,total:c.LI-c.VI}}OC(){return this.TC.checked}rS(){if(!this.KI.length)return void n.Log.w("{50c79eb}","{2884507}");const c=`LDAT_${(new Date).toISOString()}.csv`,p=[["Sample #","Total","Render","Decode","Begin","Server + Rtd + Receive","Input Callback"].join(",")];for(let O=0;O<this.KI.length;O++){const Z=this.HC(this.KI[O]);p.push([O,Z.total,Z.qC,Z.decode,Z._C,Z.WC,Z.VC].join(","))}_s([p.join("\n")],c,"text/plain")&&n.Log.i("{50c79eb}","{690879e}",c)}aS(){n.Log.i("{50c79eb}","{d2811a7}"),this.wC.value="50",this.SC.value="50",this.$C(.5,.5)}dS(){this.lC(!this.RC.checked)}FI(c,p){this.controller.FI(c,p)}zC(){const c=document.createElement("div");return c.style.display="none",c.style.position="absolute",c.style.color="white",c.style.backgroundColor="rgb(105, 105, 105, 0.7)",c.style.padding="2px",c}KC(c){const p=document.createElement("div");return p.style.width="100%",p.style.borderBottom="1px dashed darkgray",p.style.paddingBottom="2px",p.innerHTML=c,p}QC(c){const p=document.createElement("input");return p.type="button",p.value=c,p.style.margin="5px",p.style.backgroundColor="rgb(132, 130, 143, .7)",p.style.color="white",p.style.padding="8px 40px",p.style.border="none",p.style.borderRadius="4px",p.style.cursor="pointer",p}YC(){const c=document.createElement("input");return c.type="checkbox",c}XC(c){const p=document.createElement("label");return p.innerHTML=c,p}jC(c,p,O,F=1){const Z=document.createElement("input");return Z.type="range",Z.min=p.toString(),Z.max=O.toString(),Z.step=F.toString(),Z.value=c.toString(),Z}sC(){const c=this.zC(),p=this.KC("Latency Display Analysis Tool (LDAT)");this.xC=this.QC("Start"),this.bC=this.QC(Gr),c.style.bottom="0px",c.style.left="0px",c.style.margin="5px",this.bC.style.border="1px solid white",this.bC.style.fontSize="10px",this.bC.style.padding="5px",this.bC.style.position="absolute",this.bC.style.right="0px",c.appendChild(p),c.appendChild(this.xC),c.appendChild(this.bC),c.appendChild(this.JC()),c.appendChild(this.ZC()),c.appendChild(this.tE()),this.RC=this.YC();const O=document.createElement("span");return O.title="Simulate mouse move event whenever a mouse click is detected. Introduces two 300 ms delays between move events and requires a minimum shot delay of 1 sec.",O.innerHTML="<sup> i </sup>",c.appendChild(this.XC("Move On Click")),c.appendChild(O),c.appendChild(this.RC),c}JC(){const c=document.createElement("div"),p=this.controller.RI();this.fC=this.jC(p,.01,.2,.01),this.CC=document.createElement("span");const O=this.XC("Activation Level"),F=document.createElement("span");return this.CC.innerHTML=this.EC(p),F.style.paddingRight="2px",F.title="% increase in luminance used to determine whether a flash occurred",F.innerHTML="<sup> i </sup>",c.appendChild(O),c.appendChild(F),c.appendChild(this.fC),c.appendChild(this.CC),c}ZC(){const c=document.createElement("div");this.iE=document.createElement("div"),this.TC=this.YC(),this.pC=this.jC(20,5,100,5),this.mC=this.jC(1e3,500,5e3,100);const p=this.XC("Autofire"),O=this.XC("# Shots"),F=this.XC("Shot Delay");return this.MC=document.createElement("span"),this.PC=document.createElement("span"),this.MC.innerHTML=this.pC.value,this.PC.innerHTML=this.DC(this.mC.value),this.pC.id="shot-count-slider",this.iE.appendChild(O),this.iE.appendChild(this.pC),this.iE.appendChild(this.MC),this.iE.appendChild(document.createElement("br")),this.iE.appendChild(F),this.iE.appendChild(this.mC),this.iE.appendChild(this.PC),c.appendChild(p),c.appendChild(this.TC),c.appendChild(this.iE),c}cC(c){this.TC.checked=c,this.pC.disabled=!c,this.mC.disabled=!c,this.iE.style.color=c?"white":"gray"}tE(){const c=document.createElement("div"),p=this.XC("Loupe Position:"),O=this.XC("X"),F=this.XC("Y");O.style.paddingLeft="10px",F.style.paddingLeft="10px",O.style.paddingRight="2px",F.style.paddingRight="2px";const Z=()=>{const re=document.createElement("input");return re.type="number",re.min="0",re.max="100",re.step="1",re.placeholder="Int",re.style.width="40px",re};return this.wC=Z(),this.SC=Z(),c.appendChild(p),c.appendChild(O),c.appendChild(this.wC),c.appendChild(this.XC("%")),c.appendChild(F),c.appendChild(this.SC),c.appendChild(this.XC("%")),c}nC(){const c=this.zC(),p=this.KC("Loupe");return this.IC=document.createElement("div"),this.IC.style.cursor="move",this.IC.style.width="100%",this.IC.style.height="100%",this.IC.innerHTML="Click here to drag the loupe to the area of the screen where flashes will occur. Then, press start.",c.appendChild(p),c.appendChild(this.IC),c}$C(c,p){const O=this.Af.getBoundingClientRect(),F=this.eC.getBoundingClientRect(),{paddingTop:Z,paddingRight:re,paddingBottom:Oe,paddingLeft:je}=this.sE(this.Af),Et=O.left+je+(O.width-je-re)*c-F.width*c;this.eC.style.top=(O.top+Z+(O.height-Z-Oe)*p-F.height*p).toString()+"px",this.eC.style.left=Et.toString()+"px",this.kC()}NC(){const c=p=>parseInt(p||"50")/100;this.$C(c(this.wC.value),c(this.SC.value))}uC(c=!1){c&&(this.eC.style.bottom="5px",this.eC.style.left="300px",this.eC.style.top="",this.eC.style.right="",this.eC.style.width="150px",this.eC.style.height="150px"),this.isActive()?(this.IC.style.display="none",this.eC.style.border="2px rgb(76, 175, 80) solid",this.eC.style.backgroundColor="transparent"):(this.IC.style.display="block",this.eC.style.border="none",this.eC.style.backgroundColor="rgb(105, 105, 105, 0.7)")}lC(c){this.RC.checked=c}onmousedown(c){if(this.RC.checked&&this.isActive()&&!c.eE){const O=(Oe,je)=>{switch(Oe){case 0:this.Af.dispatchEvent(new PointerEvent("pointerup",je)),this.Af.dispatchEvent(new MouseEvent("mouseup",je));break;case 1:const ot=new PointerEvent("pointerdown",je),Ct=new MouseEvent("mousedown",je);ot.eE=!0,Ct.eE=!0,this.Af.dispatchEvent(ot),this.Af.dispatchEvent(Ct);break;case 2:this.Af.dispatchEvent(new PointerEvent("pointerrawupdate",je)),this.Af.dispatchEvent(new PointerEvent("pointermove",je)),this.Af.dispatchEvent(new MouseEvent("mousemove",je))}},F={button:2,isPrimary:!0,pointerId:1},Z={clientX:(Math.max(c.clientX,0)||this.jI.x)+64,clientY:Math.max(c.clientY,0)||this.jI.y,movementX:64,isPrimary:!0};O(1,F);const re=300;window.setTimeout(()=>{O(2,Z),window.setTimeout(()=>{Z.clientX-=64,Z.movementX=-64,O(2,Z),window.setTimeout(()=>O(0,F),re)},re)},re)}}onmousemove(c){this.jI={x:c.clientX,y:c.clientY}}oC(){const c=this.zC();return c.style.position="relative",c.style.backgroundColor="gray",c.style.textAlign="center",c.innerHTML="Warning: Must place loupe over video element to activate the LDAT. Please reposition the loupe and then click start.",c}aC(){const c=this.zC(),p=this.KC("LDAT Hot Keys"),O=document.createElement("ul");c.style.bottom="195px",c.style.left="0px",c.style.margin="5px",O.style.listStyle="none",O.style.paddingLeft="2px",O.style.margin="5px";for(const F of["Enter - Start/Stop","R - Reset","A - Turn On/Off Auto-Fire Mode","S - Save Log File","C - Center Loupe on Screen"]){const Z=document.createElement("li");Z.innerHTML=F,O.append(Z)}return c.appendChild(p),c.appendChild(O),c}gC(c){c?(this.bC.value="Hide hotkeys",this.rC.style.display="block"):(this.bC.value=Gr,this.rC.style.display="none")}createNotification(){const c=this.zC();return c.style.bottom="325px",c.style.left="0px",c.style.margin="5px",c}kC(){const c=this.Af.getBoundingClientRect(),p=this.eC.getBoundingClientRect();if(this.Af.style.paddingTop||this.Af.style.paddingRight||this.Af.style.paddingBottom||this.Af.style.paddingLeft){const{paddingTop:O,paddingRight:F,paddingBottom:Z,paddingLeft:re}=this.sE(this.Af);c.x+=re,c.y+=O,c.width-=re+F,c.height-=O+Z}p.x=(p.x-c.x)/c.width,p.y=(p.y-c.y)/c.height,p.width/=c.width,p.height/=c.height,this.controller.NI(p)}GC(){this.hC.style.display="block",window.setTimeout(()=>this.hC.style.display="none",5e3)}onfullscreenchange(c){this.kC()}LC(){0!==this.JI&&(window.clearTimeout(this.JI),this.JI=0)}UC(){this.dC.innerHTML="",this.dC.style.display="none"}BI(c){this.LC(),this.KI.push(c);const p=this.HC(c),O=p.total.toFixed(),F=`Flash occurred at frame ${c.presentedFrames}. Latency: ${O} ms.`;n.Log.i("{50c79eb}","{78905f8}",c.presentedFrames,O),p.VC.toFixed(),p.WC.toFixed(),p._C.toFixed(),p.decode.toFixed(),p.qC.toFixed(),n.Log.d("{50c79eb}","{d3d4a0c}",O,p.VC.toFixed(),p.WC.toFixed(),p._C.toFixed(),p.decode.toFixed(),p.qC.toFixed()),this.dC.innerHTML=F,this.dC.style.display="block",this.JI=window.setTimeout(()=>{this.UC(),this.JI=0},5e3)}BC(){this.XI-- >0?this.controller.zI():(n.Log.i("{50c79eb}","{d37e51d}"),this.FC(),this.setActive(!1))}FC(){window.clearInterval(this.YI),this.YI=0,this.QI=!1}yC(c,p){let O=0,F=0,Z=0,re=0;const Oe=document.onmouseup,je=document.onmousemove;p.onmousedown=ot=>{ot.preventDefault(),O=ot.clientX,F=ot.clientY,document.onmouseup=()=>{document.onmouseup=Oe,document.onmousemove=je},document.onmousemove=Ct=>{Ct.preventDefault(),Z=O-Ct.clientX,re=F-Ct.clientY,O=Ct.clientX,F=Ct.clientY,c.style.top=c.offsetTop-re+"px",c.style.left=c.offsetLeft-Z+"px"}}}EC(c){return(100*c).toFixed()+"%"}DC(c){return c+" ms"}vC(c,p){c.value=p.toString(),c.dispatchEvent(new Event("input"))}sE(c){const p=O=>{if(!O)return 0;const F=O.length;return"%"===O.substring(F-1)?parseInt(O.substring(0,F-1)):"px"===O.substring(F-2)?parseInt(O.substring(0,F-2)):(n.Log.w("{50c79eb}","{3351f27}",O),0)};return{paddingTop:p(c.style.paddingTop),paddingRight:p(c.style.paddingRight),paddingBottom:p(c.style.paddingBottom),paddingLeft:p(c.style.paddingLeft)}}}class Fi{constructor(c){this.Rs=c,this.extraData=new Map,this.nE=65535,this.hE=new Array,this.oE=1,this.saScores={gpuPerfScore:-1,serverPerfScore:-1,visualScore:-1,decoderScore:-1,downlinkLag:-1,downlinkCongestion:-1,uplink:-1,overall:-1}}Ey(c,p,O){this.saScores=c,this.extraData.set("WiFiScanScore",100*p),this.extraData.set("ThrottlingScore",100*O)}rE(c){let p=0;kn(this.Rs)?p=1:Ai(this.Rs)?p=2:bt(this.Rs)&&(p=3),this.extraData.set("Platform",p);const O=this.aE(c);O&&this.extraData.set("AvgTotalCPUUsage",O),this.extraData.set("DecodeType",this.oE);let F={saScores:this.saScores,extraData:this.extraData};n.Log.i("{240ae89}","{d1eda5e}",F.saScores.overall,F.saScores.gpuPerfScore,F.saScores.serverPerfScore,F.saScores.visualScore,F.saScores.decoderScore,F.saScores.downlinkLag,F.saScores.downlinkCongestion,F.saScores.uplink);for(const Z of F.extraData.entries())n.Log.i("{240ae89}","{4d3c418}",Z[0],Z[1]);return F}yy(c){c&&(this.nE=Math.min(this.nE,c),this.extraData.set("Rtd",this.nE))}dE(c){this.extraData.set("Power",c)}cE(c){this.extraData.set("Display",c)}lE(c,p){this.extraData.set("MaxStreamingWidth",c),this.extraData.set("MaxStreamingHeight",p)}uE(c){this.extraData.set("MaxStreamingFps",c)}aE(c){if(0===this.hE.length||0===c)return 0;let p=0,O=0,F=0;for(const{frameNumber:Z,cpuUsage:re}of this.hE)p+=F*(Z-O-1),p+=re,O=Z,F=re;return c>O&&(p+=F*(c-O)),p/c}AE(c,p){0==c&&(c=1),this.hE.push({frameNumber:c,cpuUsage:p})}vE(c){this.oE=c}}class kr extends Map{constructor(){super([["TCP",0],["MDNS",0],["IPV6",0],["IPV4",0],["UNKNOWN",0]])}}const cr=["transport","inbound-rtp","candidate-pair","local-candidate"];class Kr{constructor(c,p,O,F,Z,re,Oe,je,ot,Ct,Rt,Et){this.Jh=c,this.Xd=p,this.cb=F,this.telemetry=re,this.Rs=Oe,this.Gk=je,this.pf=ot,this.ec=Ct,this.vr=Rt,this.Jy=Et,this.fE=!0,this.pE=0,this.mE=0,this.gE=[],this.wE="",this.SE=new Map,this.bE=!1,this.kE=new Map,this.yE=new Map,this.IE=0,this.CE=0,this.EE=0,this.TE=0,this.ME=[],this.PE={width:0,height:0},this.DE={width:0,height:0},this.RE=!1,this.NE=!1,this.xE=!1,this.OE=0,this.BE=0,this.FE=0,this.LE=!1,this.UE=(qt,gn,tn)=>{var Pn,Bn,ei;const jn=this.gE[qt];0===qt&&jn.GE.yI(tn),!(null===(Pn=this.HE)||void 0===Pn)&&Pn.isActive()&&0===qt&&this.HE.FI(gn,tn),jn.Tk&&tn.rtpTimestamp&&tn.receiveTime&&(jn.VE={WE:tn.rtpTimestamp,_E:tn.receiveTime-this.vr.yd()}),this.isEnabled()&&jn.UE&&(null===(ei=null===(Bn=jn.Af)||void 0===Bn?void 0:Bn.requestVideoFrameCallback)||void 0===ei||ei.call(Bn,jn.UE))},this.qE={$E:0,droppedVideoFrames:[],totalVideoFrames:[]},O.length!==Z.length&&n.Log.w("{5cea617}","{c443e77}");for(let qt=0;qt<O.length&&qt<Z.length;qt++){const gn=Z[qt],tn=O[qt],Pn=new ln(tn,this.Rs,je);Pn.$y(gn.bitDepth),Pn.Wy(1===gn.Pk);const Bn={zE:{KE:0,QE:0,YE:0},oy:"",XE:-1},ei=new _(gn.Ik,gn.Mk),jn=new Fi(this.Rs);jn.lE(gn.bk,gn.kk),jn.uE(gn.yk);const si={Tk:gn.Tk,jE:0,JE:Pn,ZE:ei,tT:Bn,packetsReceived:0,iT:jn,GE:new pr(this.vr,this.Jy,qt),Af:tn,UE:this.UE.bind(this,qt),sT:0};this.gE[qt]=si,this.qE.droppedVideoFrames.push(0),this.qE.totalVideoFrames.push(0)}if(!this.gE.length){const qt={JE:new ln(document.body,this.Rs,je),packetsReceived:0,iT:new Fi(this.Rs),GE:new pr(this.vr,this.Jy,0),ZE:new _,sT:0};this.gE.push(qt)}Sn.isInternalUser&&O[0]&&(this.HE=new vr(O[0],ot)),this.eT={ts:0,timingFrameInfo:"",targetDelayMs:0,minPlayoutDelayMs:0,currentDelayMs:0},this.nT(),this.hT=this.Jh.hasListener("StreamingStats"),this.oT(),this.LE=-1!==this.Rs.gpuDetail.indexOf("SwiftShader"),this.rT(),this.yE.set("audio",!1),this.yE.set("video",!1)}rT(){var c=this;return i(function*(){if(c.aT=yield i(function*(){const p=yield xe.Hb("h264");if(void 0!==p)return!!p?.powerEfficient})(),void 0===c.aT)for(const p of c.gE)p.iT.vE(0)})()}dT(){const c=performance.now();this.cb.getStats(null).then(p=>{let O=!1;for(let F of p.values())if("track"===F.type&&(O=!0),this.cT(F.type)){this.yE.has(F.kind)&&(this.yE.set(F.kind,!0),"video"!==F.kind&&this.Nk||(this.Nk=F.kind));const Z=this.kE.get(F.type);Z?Z.includes(F.id)?n.Log.e("{5cea617}","{76f5968}",F.id):Z.push(F.id):this.kE.set(F.type,[F.id])}this.xE=!O,n.Log.i("{5cea617}","{1317761}",this.xE?"yes":"no"),this.bE=!0,this.lT(p),this.uT(p,c),this.AT(p,c)}).catch(p=>this.vT(p,"init")).finally(()=>this.fT())}nT(){this.pT=this.cb.createDataChannel("stats_channel",{ordered:!1,reliable:!1,maxRetransmits:0}),this.pT.binaryType="arraybuffer",this.Xd.mT(this.pT,{open:()=>{this.OE=1},close:()=>{this.gT(),this.OE=2}}),this.pT.onmessage=c=>{var p=new DataView(c.data);let O=p.getUint8(0);const F=this.gE[0];if(O>=2){const Z=p.getFloat64(1,!0)/1e6,re=1e3*p.getFloat64(9,!0),Oe=p.getFloat64(17,!0);if(F.JE.Iy(re),F.JE.yy(Oe),F.iT.yy(Oe),O>=3){const ot=p.getFloat64(25,!0);if(F.JE.Cy(ot),O>=4){let Ct=p.getFloat32(33,!0),Rt=p.getFloat32(37,!0),Et=p.getFloat32(41,!0),qt=p.getFloat32(45,!0),gn=p.getFloat32(49,!0),tn=p.getFloat32(53,!0),Pn=p.getFloat32(57,!0),Bn=p.getFloat32(61,!0),ei=p.getFloat32(65,!0),jn=p.getFloat32(69,!0),si={gpuPerfScore:Rt,serverPerfScore:Et,visualScore:qt,decoderScore:gn,downlinkLag:tn,downlinkCongestion:Pn,uplink:Bn,overall:Ct};F.JE.Ey(si),F.iT.Ey(si,ei,jn)}}const je=F.JE.Sy(Z);F.ZE.KS(Z,je),F.ZE.zS(Oe)}else n.Log.e("{5cea617}","{4f9f4b7}",O)}}oT(){var c,p,O,F;this.pE=window.setInterval(()=>{this.wT()},null!==(c=Sn.ko.getStatsInterval)&&void 0!==c?c:96),ge()&&(this.mE=window.setInterval(()=>{this.ST()},null!==(p=Sn.ko.getDeprecatedStatsInterval)&&void 0!==p?p:201));for(const Z of this.gE)Z.UE&&(null===(F=null===(O=Z.Af)||void 0===O?void 0:O.requestVideoFrameCallback)||void 0===F||F.call(O,Z.UE))}Xp(c){if(this.Jy.bT(c),!Sn.yo){const p=window.performance.now();for(let O=0;O<this.gE.length;O++){const F=this.gE[O].Af;if(!F)continue;const Z=Wr(F);if(Z){const re=Z.kT,Oe=re-this.qE.droppedVideoFrames[O],je=Z.yT-this.qE.totalVideoFrames[O];this.qE.droppedVideoFrames[O]=re,this.qE.totalVideoFrames[O]=Z.yT,1==Oe?this.ec.IT[O]++:Oe>1&&(this.ec.CT[O]+=Oe),this.Jy.ET(je,Oe)}}this.qE.$E=p}}uv(){Sn.yo||this.TT()}TT(){const c=window.performance.now();c>this.ec.MT+1e4?(0!==this.ec.MT&&n.Log.i("{5cea617}","{5fa9066}",this.ec.PT,this.ec.zc,this.ec.Kc,this.ec.Qc,this.qE.totalVideoFrames.map((p,O)=>p-this.ec.DT[O]),this.ec.IT,this.ec.CT,this.ec.om,this.ec.tl),this.ec.MT=c,this.ec.DT=this.qE.totalVideoFrames,this.ec.PT=1,this.ec.zc=0,this.ec.Kc=0,this.ec.Qc=0,this.ec.IT.fill(0),this.ec.CT.fill(0),this.ec.om=0,this.ec.tl=0):this.ec.PT+=1}gT(){this.pE&&(clearInterval(this.pE),this.pE=0),this.mE&&(clearInterval(this.mE),this.mE=0);for(const c of this.gE)c.GE.II()}reset(){var c;this.gT();for(const p of this.gE)p.ZE.reset(),p.JE.uninitialize(),p.JE=new ln(null!==(c=p.Af)&&void 0!==c?c:document.body,this.Rs,this.Gk);this.SE.clear()}isEnabled(){return 0!=this.pE}NT(){this.isEnabled()&&(this.gT(),this.xT(!1))}OT(){this.isEnabled()||this.oT()}stop(){var c;if(!this.fE)return;this.fE=!1;let p=!1;for(const Z of this.gE)Z.JE.uninitialize(),!p&&Z.tT&&(this.telemetry.Db("InboundVideoStats",Z.tT.oy,Z.tT.zE.YE,Z.tT.zE.KE,Z.tT.XE,Z.tT.zE.QE),p=!0);const O=this.cb.getConfiguration(),F=(O.iceServers||[]).map(Z=>(Array.isArray(Z.urls)?Z.urls:[Z.urls]).filter(re=>re.startsWith("turn:")||re.startsWith("turns:")).map(re=>Z.username?`${re},${Z.username}`:re)).reduce((Z,re)=>Z.concat(re),[]).join(" | ")||void 0;if(F){const Z=this.BT(this.SE);this.telemetry.Ke("TURN Server Details",`${Z?.url||""}`,`${Z?.protocol||""}`,`${F}`,`${O.iceTransportPolicy||"default"}`)}this.NT(),null===(c=this.HE)||void 0===c||c.stop()}cT(c){return cr.includes(c)}FT(){this.bE=!1}UT(c,p){for(const O of c.values())p.includes(O.type)&&this.SE.set(O.id,O)}lT(c){this.UT(c,cr)}GT(c){this.lT(c)}HT(){return"video"===this.Nk||!this.yE.get("video")}VT(c){return c>=this.CE&&this.HT()}AT(c,p){const O=performance.now();if(this.VT(p)){if(this.WT(),this._T(c),this.qT()){const Z=2===this.IE;for(const re of this.gE)re.JE.Ny(Z)}this.CE=p+1e3}if(this.$T(),this.Xd.zT(),this.KT(p)&&(this.BE=p+5e3),this.Nk){const Z="video"===this.Nk?"audio":"video";this.yE.get(Z)&&(this.Nk=Z)}const F=performance.now()-O;for(const[Z,re]of this.gE.entries()){const Oe=F+re.sT;0===Z&&this.Jy.QT(Oe),re.JE.Ly(Oe),re.sT=0}}getSelectedCandidatePair(c){for(const[p,O]of c)if("transport"===O.type&&O.selectedCandidatePairId){const re=c.get(O.selectedCandidatePairId);if(re)return re;break}for(const[p,O]of c)if("candidate-pair"===O.type&&O.selected)return O}BT(c){let p,O;const F=this.getSelectedCandidatePair(c);if(F)for(const[Z,re]of c)if((Z===F.localCandidateId||Z===F.remoteCandidateId)&&("relay"===re.candidateType||re.relayProtocol)){if(p=re.url,O=re.relayProtocol,void 0===p||void 0===O)continue;return n.Log.i("{5cea617}","{5f36af2}",p,O),{url:p,protocol:O}}n.Log.i("{5cea617}","{265646b}")}uT(c,p,O){var F;const Z=performance.now();if(void 0===O&&1===this.gE.length&&(O=0),void 0===O)return;this.VT(p)&&(this.YT(c,O),this.XT(O)),this.jT(c,O);const re=this.gE[O],Oe=re.VE;p>=(null!==(F=re.jE)&&void 0!==F?F:0)&&Oe&&(this.JT(Oe,O),re.VE=void 0,re.jE=p+1e3);const je=re.JE;if(this.HT()){on(this.Rs)&&this.ZT(O);const ot=re.ZE.YS();je.ky(ot),0===O&&(this.Jh.emit("StreamingQuality",ot),this.hT&&this.Jh.emit("StreamingStats",je.Ty()),this.Jy.tM(ot))}this.KT(p)&&je.Dy(O),re.sT=performance.now()-Z}KT(c){return c>=this.BE}jT(c,p){if(0===p)for(const[O,F]of this.kE.entries())for(const Z of F){const re=c.get(Z);re&&"inbound-rtp"===O&&this.gE[p].GE.uI(this.iM(c,re))}}Fy(c){for(const p of this.gE)p.JE.Fy(c)}sM(c){for(const p of this.gE)p.JE.Uy(c)}Wy(c,p){this.gE[p].JE.Wy(c)&&(n.Log.i("{5cea617}","{3cc6c54}",c?"on":"off"),this.XT(p))}qy(c,p,O){this.gE[O].JE.qy(c,p)&&this.XT(O)}wT(){if(!this.RE)if(this.RE=!0,0===this.OE)this.cb.getStats().then(c=>this.GT(c)).catch(c=>this.vT(c,"early")).finally(()=>this.fT());else if(1===this.OE)if(this.bE){let c=[];const p=performance.now();switch(this.Nk){case"audio":case"video":c=this.cb.getTransceivers().filter(F=>{var Z,re;return(null===(Z=F.receiver.track)||void 0===Z?void 0:Z.kind)===this.Nk&&(null===(re=F.receiver.track)||void 0===re?void 0:re.enabled)}).map((F,Z)=>F.receiver.getStats().then(re=>(this.uT(re,p,Z),re)));break;default:c.push(this.cb.getStats().then(F=>(this.uT(F,p,0),F)))}if(0===c.length)return void(this.RE=!1);Promise.all(c).then(O=>O[0]).then(O=>this.AT(O,p)).catch(O=>this.vT(O,"standard")).finally(()=>this.fT())}else this.dT();else this.RE=!1}qT(){return 0!==this.IE}toggleOnScreenStats(c,p){this.xT(p??!this.qT(),c)}sS(c){const p=this.gE[c].JE;this.Jy.eM(),p.Ky(),p.xy(2===this.IE)}xT(c,p=!1){for(const O of this.gE)O.JE.By(c),c&&O.JE.Ny(p);c?(this.CE=performance.now(),this.IE=p?2:1):this.IE=0}YT(c,p){"video"===this.Nk?this.nM(c,p):this.yE.get("video")||this.hM(c),this.gE[p].JE.Gy(this.Xd.oM())}hM(c){var p;const O=this.kE.get("inbound-rtp");if(!O)return;let F=O.map(re=>c.get(re)).find(re=>"audio"===re?.kind||"audio"===re?.Nk);if(!F)return;F=this.iM(c,F);const Z=this.gE[0];Z.JE.by(F),Z.packetsReceived=null!==(p=F.packetsReceived)&&void 0!==p?p:0,this.UT(c,["inbound-rtp"])}nM(c,p){var O,F;const Z=this.kE.get("inbound-rtp");if(!Z)return;const re=this.gE[p],Oe=re.tT,je=re.JE;if(!Oe)return;let ot=Z.map(gn=>c.get(gn)).find(gn=>"video"===gn?.kind||"video"===gn?.Nk);if(!ot)return void Oe.zE.KE++;ot=this.iM(c,ot);const Ct=ot.decoderImplementation;let Rt=!1;if(Ct?.indexOf&&(Ct!==Oe.oy&&"unknown"!==Ct&&(Oe.oy=Ct,je.Yy(Ct)),Rt=-1!==Ct.indexOf("fallback")),(Rt||"FFmpeg"===Ct||this.LE||!1===this.aT)&&-1===Oe.XE){Oe.XE=null!==(O=ot.framesDecoded)&&void 0!==O?O:this.gI(p),this.Jy.rM("SoftwareDecodeFallback");const gn="Fallback to software decode at frame "+String(Oe.XE);n.Log.i("{5cea617}","{953d211}",String(Oe.XE)),je.Qy(!0),this.Xd.aM(gn);const tn=re.iT;Rt?tn.vE(3):(this.LE||"FFmpeg"===Ct||!1===this.aT)&&tn.vE(2)}const Et=this.SE.get(ot.id);if(!Et)return void Oe.zE.QE++;Oe.zE.YE++;const qt=ot.codecId;if(qt){const gn=c.get(qt).mimeType.toUpperCase();let tn="UNKNOWN";gn.includes("H265")?tn="H265":gn.includes("AV1")?tn="AV1":gn.includes("H264")?tn="H264":n.Log.d("{5cea617}","{4b31535}",gn),je.Hy(tn)}re.ZE.QS(ot,Et),je.by(ot),re.packetsReceived=null!==(F=ot.packetsReceived)&&void 0!==F?F:0,this.UT(c,["inbound-rtp"])}iM(c,p){if(!this.xE){const O=c.get(p.trackId);O&&(p=Object.assign(O,p))}return p}_T(c){var p;const O=this.kE.get("candidate-pair");if(!O?.length)return;const F=O.map(Oe=>c.get(Oe));if(!F.length)return;let Z=this.getSelectedCandidatePair(c);Z||(Z=F[0]),this.ME.length>=6&&this.ME.splice(0,1),this.ME.push(Z);const re=null===(p=this.SE)||void 0===p?void 0:p.get(Z.id);if(re)for(const Oe of this.gE)Oe.JE.wy(Z,re);this.UT(c,["candidate-pair","transport"])}ST(){if(this.NE)return;this.NE=!0;const c=()=>{n.Log.i("{5cea617}","{cf8b53f}"),this.NE=!1,clearInterval(this.mE),this.mE=0};this.cb.getStats(p=>{for(let O of p.result())if("ssrc"==O.type)for(let F of O.names()){"video"===O.stat("mediaType")&&(this.eT.ts=this.vr.$a(),this.eT.timingFrameInfo=O.stat("googTimingFrameInfo"),this.eT.targetDelayMs=+O.stat("googTargetDelayMs"),this.eT.minPlayoutDelayMs=+O.stat("googMinPlayoutDelayMs"),this.eT.currentDelayMs=+O.stat("googCurrentDelayMs"));break}this.gE[0].GE.kI(this.eT),this.NE=!1},c).catch(c)}ZT(c){if(0!==c)return;const p=new ArrayBuffer(12),O=new DataView(p),F=this.gE[c].GE;O.setUint8(0,1),O.setUint8(1,1),O.setUint16(2,F.pI(),!0),O.setUint16(4,F.mI(),!0),O.setUint16(6,F.gI(),!0),O.setUint16(8,F.wI(),!0),O.setUint16(10,F.SI(),!0),this.dM(p,"clientperf")}JT(c,p){if(0!==p)return;const O=new ArrayBuffer(15),F=new DataView(O);F.setUint8(0,2),F.setUint8(1,1),F.setUint8(2,1),F.setUint32(3,c.WE,!0),F.setFloat64(7,c._E,!0),this.dM(O,"rtpmapping")}dM(c,p){try{"open"===this.pT.readyState&&this.pT.send(c)}catch(O){n.Log.e("{5cea617}","{78e74c5}",O),this.vT(O,p)}}vT(c,p){this.telemetry.Ac(c,`Exception in ${p} getStats`,"{5cea617}.ts",0,0,!0,"getStats")}fT(){this.RE=!1}$T(){const c=performance.memory;if(!c)return;const p=c.usedJSHeapSize,O=c.totalJSHeapSize,F=p-this.EE,Z=O-this.TE;this.EE=p,this.TE=O,F>=0&&Z>=0||this.Jy.cM(F,Z)}lM(){return this.gE.reduce((c,p)=>c+p.JE.Py(),0)}gI(c){return this.gE[c].JE.Py()}Vy(c){return this.gE[c].JE.Vy()}uM(){return this.wE}zy(c){return this.gE[c].JE.zy()}_y(c){return this.gE[c].JE._y()}AM(){return this.gE.reduce((c,p)=>c+p.packetsReceived,0)}vM(){const c=F=>isNaN(F)?-1:F;if(this.ME.length<2)return;const p=this.ME[0],O=this.ME[this.ME.length-1];return{fM:c(O.requestsSent-p.requestsSent+O.consentRequestsSent-p.consentRequestsSent),pM:c(O.responsesReceived-p.responsesReceived),mM:c(O.packetsReceived-p.packetsReceived)}}gM(){let c=0,p=0,O=0,F=0,Z=0,re=0;for(const Oe of this.SE.values())"candidate-pair"===Oe.type&&(c+=Oe.requestsSent+Oe.consentRequestsSent,p+=Oe.responsesReceived,O+=Oe.requestsReceived,F+=Oe.responsesSent,Oe.nominated&&Z++,"succeeded"===Oe.state&&re++);return n.Log.i("{5cea617}","{47c0ce7}",c,p),c>0&&0===p?3237093926:Z?re?void 0:3237093928:3237093927}wM(){const c=this.kE.get("local-candidate");return c?.map(p=>{var O;return null===(O=this.SE)||void 0===O?void 0:O.get(p)})}SM(){let c=new kr;const p=this.wM();if(!p)return c;for(const O of p){const F=Qr(O);c.set(F,c.get(F)+1)}return c}bM(){let c=new Set;const p=this.wM();if(!p)return c;for(const O of p)if("IPV4"===Qr(O)){const F=Rs(O);"UNKNOWN"!==F&&c.add(F)}return c}WT(){var c=this;return i(function*(){const p={width:screen.width*window.devicePixelRatio,height:screen.height*window.devicePixelRatio},O=Yr(),F=c.pf.kM(),Z=(Oe,je)=>Oe.width===je.width&&Oe.height===je.height;if(Z(p,c.DE)&&Z(O,c.PE)&&F===c.FE)return;c.DE=p,c.PE=O;const re=yield un.fk();c.FE=F;for(let Oe=0;Oe<c.gE.length;Oe++){const je=c.gE[Oe].JE.Py(),ot=`Stream[${Oe}]: Client display[-1] resolution : {physical : ${qn(p)}@${re}, logical : ${qn(O)}@${re}} at frame#${je} topology: ${F}`;n.Log.i("{5cea617}","{7b74aa7}",Oe,qn(p),re,qn(O),re,je,F),c.Xd.aM(ot)}})()}Om(){return this.HE}XT(c){if(0!==c)return;const p=this.gE[c].JE.Ry();this.Jh.emit("StreamStatsUpdate",p)}dE(c){for(const p of this.gE)p.iT.dE(c)}cE(c){for(const p of this.gE)p.iT.cE(c)}AE(c){for(const[p,O]of this.gE.entries()){const F=this.gI(p);O.iT.AE(F,c)}}rE(c){return this.gE[c].iT.rE(this.gI(c))}}function Wr(y){var c;if(y.getVideoPlaybackQuality){const p=y.getVideoPlaybackQuality();return{yT:p.totalVideoFrames,kT:p.droppedVideoFrames}}if(void 0!==y.webkitDecodedFrameCount)return{yT:y.webkitDecodedFrameCount,kT:null!==(c=y.webkitDroppedFrameCount)&&void 0!==c?c:0}}function Qr(y){if("tcp"===y.protocol)return"TCP";const c=y.address||y.relatedAddress;return c?c.endsWith(".local")?"MDNS":-1!==c.indexOf(":")?"IPV6":"IPV4":"UNKNOWN"}function Rs(y){const c=y.address||y.relatedAddress,p=c?.split(".");if(4===p?.length){const O=parseInt(p[0]),F=parseInt(p[1]);if(!isNaN(O)&&!isNaN(F)){let Z="UNKNOWN";return 10===O?Z="10/8":192===O&&168===F?Z="192.168/16":172===O&&16==(240&F)&&(Z="172.16/12"),"UNKNOWN"!==Z&&n.Log.d("{5cea617}","{343589d}",Z),Z}}return n.Log.i("{5cea617}","{fa2d6b9}"),"UNKNOWN"}class Hr{constructor(c,p,O,F,Z,re){this.instanceId=c,this.telemetry=O,this.yM=F,this.vr=Z,this.IM=re,this.CM=!1,this.EM=!1,this.TM=0,this.perf={RAFTS:0,DCSend:0,GetStats:0,FrameInfo:0,VSyncDelta:0},this.IM?(this.IM.postMessage({initMessage:{sessionId:p},instanceId:this.instanceId}),n.Log.d("{1f5ec29}","{404f264}")):n.Log.e("{1f5ec29}","{c62bf29}")}MM(){return this.instanceId}bd(c){as(this.telemetry,c)}wd(c){c.initialized?(n.Log.i("{1f5ec29}","{6ccab8d}"),this.EM=!0):c.statsStarted?(this.CM=!0,n.Log.d("{1f5ec29}","{e98d45f}")):c.log?n.Log.i("{cbf9f59}","{0b0c6f9}",c.log):c.exception?n.Log.i("{cbf9f59}","{0b0c6f9}",c.exception):c.wsClose?this.PM?this.PM.DM(c.wsClose):n.Log.e("{1f5ec29}","{900a6f2}"):c.wsMessage?this.PM?this.PM.RM(c.wsMessage):n.Log.e("{1f5ec29}","{900a6f2}"):c.wsOpening?this.PM?this.PM.NM():n.Log.e("{1f5ec29}","{900a6f2}"):c.wsOpen?this.PM?this.PM.xM():n.Log.e("{1f5ec29}","{900a6f2}"):c.uninitialized&&n.Log.i("{1f5ec29}","{22b6f70}")}startWebSocket(c,p,O,F){this.PM=O,this.IM&&(this.IM.postMessage({startWebSocket:{signInURL:c,maxReceivedAckId:p,reconnect:F},instanceId:this.instanceId}),n.Log.d("{1f5ec29}","{b3f6faa}"))}stopWebSocket(){if(this.IM){const c={stopWebSocket:!0,instanceId:this.instanceId};n.Log.d("{1f5ec29}","{7ac815d}"),this.IM.postMessage(c)}this.PM=void 0}uninitialize(){var c;if(this.EM||null===(c=this.telemetry)||void 0===c||c.Ke("Worker Thread Creation Failed"),this.IM){const p={uninitialize:!0,instanceId:this.instanceId};n.Log.d("{1f5ec29}","{9212ec5}",this.instanceId),this.IM.postMessage(p)}}startProfiling(c){if(this.CM=!1,this.IM){const p={startStats:{statsHeader:c},instanceId:this.instanceId};n.Log.d("{1f5ec29}","{6897d5e}"),this.IM.postMessage(p)}}stopProfiling(){if(this.CM=!1,this.IM){const c={stopStats:!0,instanceId:this.instanceId};n.Log.d("{1f5ec29}","{76b05dd}"),this.IM.postMessage(c)}}OM(){this.perf.RAFTS=0,this.perf.DCSend=0,this.perf.GetStats=0,this.perf.FrameInfo=0,this.perf.VSyncDelta=0}BM(c){this.IM&&this.IM.postMessage({send:c,instanceId:this.instanceId})}bT(c){var p;this.CM&&(this.perf.VSyncDelta=c-this.TM,0!=this.perf.RAFTS&&(this.IM&&this.IM.postMessage({perf:this.perf,instanceId:this.instanceId}),this.OM()),this.perf.RAFTS=null!==(p=this.vr.$a())&&void 0!==p?p:0,this.TM=c)}FM(c){this.CM&&(this.perf.DCSend+=c)}QT(c){this.CM&&(this.perf.GetStats+=c)}lI(c,p){var O;if(!this.CM||!this.IM)return;const F={webrtcStats:{type:p,stats:c},ackid:null===(O=this.yM)||void 0===O?void 0:O.uo(),instanceId:this.instanceId};this.IM.postMessage(F,c)}tM(c){var p;if(!this.CM||!this.IM)return;const O={sq:{latencyScore:c.latencyScore,bandwidthScore:c.bandwidthScore,qualityScore:c.qualityScore,networkLossScore:c.networkLossScore,timestamp:null!==(p=this.vr.$a())&&void 0!==p?p:0},instanceId:this.instanceId};this.IM.postMessage(O)}LM(c,p){var O;if(!this.CM||!this.IM)return;const F={duration:{timestamp:p-(null!==(O=this.vr.yd())&&void 0!==O?O:0),duration:c},instanceId:this.instanceId};this.IM.postMessage(F)}UM(c,p){var O;if(!this.CM||!this.IM)return;const F={inputChannelStats:{timestamp:null!==(O=this.vr.$a())&&void 0!==O?O:0,bufferedAmount:c,maxSchedulingDelay:p},instanceId:this.instanceId};this.IM.postMessage(F)}cM(c,p){var O;if(!this.CM||!this.IM)return;const F={garbageCollectionStats:{timestamp:null!==(O=this.vr.$a())&&void 0!==O?O:0,deltaUsedHeapSize:c,deltaTotalHeapSize:p},instanceId:this.instanceId};this.IM.postMessage(F)}eM(){if(!this.CM||!this.IM)return;const c={qosMarker:this.vr.$a(),instanceId:this.instanceId};this.IM.postMessage(c)}ET(c,p){if(this.CM){let O=Math.min(c,15)<<4,F=Math.min(p,15);this.perf.FrameInfo=O|F}}rM(c){var p;if(!this.CM||!this.IM)return;const O={clientEvent:{TS:null!==(p=this.vr.$a())&&void 0!==p?p:0,eventtype:c},instanceId:this.instanceId};this.IM.postMessage(O)}}function as(y,c){var p,O,F,Z;y.Ac(void 0,null!==(p=c?.message)&&void 0!==p?p:"",null!==(O=c?.filename)&&void 0!==O?O:"",null!==(F=c?.lineno)&&void 0!==F?F:0,null!==(Z=c?.colno)&&void 0!==Z?Z:0,!0,"WorkerError")}const Wo=new class{constructor(){this.GM=new Map,this.HM=[],this.VM=[],this.WM=0,this.wd=y=>{const c=y.data,p=this.GM.get(c.instanceId);p?p.wd(c):n.Log.w("{1f5ec29}","{3a7e49f}",c.instanceId)},this.bd=y=>{this.GM.size?this.GM.forEach(c=>c.bd(y)):this.VM.push(y)},n.Log.i("{1f5ec29}","{139da36}");try{this.IM=Or('const t={size:70,version:1,name:"DEPR"},s={size:80,version:3,name:"RTPV"},i={size:48,version:1,name:"RTPA"},h={size:88,version:1,name:"TRAA"},e={size:44,version:1,name:"TRAV"},n={size:16,version:2,name:"VFMD"},r={size:20,version:1,name:"PFDA"},o={size:0,version:1,name:""};class a{constructor(t){this.i=t,this.h=new Map,this.o=0,this.l()}size(){let t=0;for(let[s,i]of this.h)for(let s of i)t+=s.byteLength;return t+=9*this.h.size,t}u(t){let s=this.h.get(t.type);s||(s=new Array,this.h.set(t.type,s));for(const i of t.stats)s.push(i)}write(t,s){let i=s;for(let[s,h]of this.h)i+=this.v(t,i,s,h.length),i+=this.S(t,h,i),1===s&&this.o++;return i}l(){this.o&&(this.i("{890d3ae}"+this.o),this.o=0),this.h.clear()}v(t,s,i,h){let e=this.M(i),n=e.name,r=new DataView(t.buffer);for(let t=0;t<4;t++)r.setUint8(s+t,n.charCodeAt(t));return r.setUint8(s+4,e.version),r.setUint16(s+5,h,!0),r.setUint16(s+7,e.size,!0),9}M(a){switch(a){case 0:return t;case 1:return s;case 2:return i;case 3:return e;case 4:return h;case 5:return n;case 6:return r;default:return o}}S(t,s,i){let h=0;for(let e of s){let s=new Uint8Array(e);t.set(s,i+h),h+=e.byteLength}return h}}class c{constructor(t,s){this.sessionId=t,this.A=!1,this.m=[],this.I=[],this.T=0,this.maxReceivedAckId=0,this.url="",this.C=0,this.i=s.info,this.D=s.exception}initialize(t,s,i,h=!1){this.url=t,this.maxReceivedAckId=s,this.P=i,this.R(h),this.i("{fcf6f89}"+this.C)}uninitialize(t){var s;this.maxReceivedAckId=0,this.m=[],this.I=[],this.P=void 0,this.B(),null===(s=this.W)||void 0===s||s.close(t),this.H(),this.i("{986b258}"+t+"{754f60b}"+this.C)}H(){this.W&&(this.W.onclose=null,this.W.onerror=null,this.W.onmessage=null,this.W.onopen=null,this.W=void 0)}N(){var t;this.i("{6c3505a}"+(null===(t=this.W)||void 0===t?void 0:t.readyState)+"{754f60b}"+this.C),this.W||this.R(!0),this.O()}B(){0!==this.T&&(self.clearTimeout(this.T),this.T=0)}O(){this.B(),this.T=self.setTimeout((()=>this.N()),3e3)}V(t){for(let s=this.m.length-1;s>=0;s--)this.m[s].ackid<=t&&this.m.splice(s,1)}F(t){void 0!==t.ackid&&this.m.push(t)}J(t){void 0!==t.ackid&&this.F(t),this.W&&(t.stats?this.W.send(t.stats):this.W.send(JSON.stringify(t)))}send(t){this.P&&(this.W||this.R(!0),this.W&&this.W.readyState===WebSocket.OPEN?this.J(t):this.I.push(t))}U(){if(this.W){let t={ack:this.maxReceivedAckId},s=JSON.stringify(t);this.i("{903be10}"+s),this.W.send(s)}}R(t=!1){const s=this.C+1;try{let i;this.sessionId&&(i="x-nv-sessionid."+this.sessionId);let h=this.url;t&&(h+="&reconnect=1");let e=new WebSocket(h,i);e.onopen=t=>{var i;if(this.i("{48fa30b}"+s),e===this.W){null===(i=this.P)||void 0===i||i.G();for(const t of this.m)t.stats?e.send(t.stats):e.send(JSON.stringify(t));for(const t of this.I)this.J(t);this.I=[]}},e.onclose=t=>{var i;this.i("{6406bff}"+s),e===this.W&&(null===(i=this.P)||void 0===i||i.K({error:this.A,code:t.code,reason:t.reason,wasClean:t.wasClean}),this.H(),this.A=!1)},e.onerror=t=>{this.i("{7605058}"+s),e===this.W&&(this.A=!0)},e.onmessage=t=>{if(this.P)try{let s=JSON.parse(t.data);if(this.T||this.i("{523f5b9}"),this.O(),s.hb)return;void 0!==s.ack&&this.V(s.ack),void 0!==s.ackid?(this.maxReceivedAckId<s.ackid&&(this.P.L(s),this.maxReceivedAckId=s.ackid),this.U()):void 0===s.ack&&this.P.L(s)}catch(s){const i="Error in local websocket message handling";this.D(i+": "+s+\' "\'+t.data+\'"\')}},this.W=e}catch(t){this.W=void 0,this.D("WebSocket creation exception: "+t+" for socket "+this.C)}this.C=s}}const l=self;class f{constructor(t,s){this.instanceId=t,this.sessionId=s,this.j=[],this.X=[],this.url="",this.Y=0,this.Z=[],this.$=[],this.inputChannelStats=[],this.garbageCollectionStats=[],this._=[],this.tt=0,this.st=t=>{w(t,this.instanceId)},this.it=t=>{const s={wsMessage:t,instanceId:this.instanceId};l.postMessage(s)},this.ht=t=>{const s={wsClose:t,instanceId:this.instanceId};l.postMessage(s)},this.et=()=>{const t={wsOpen:!0,instanceId:this.instanceId};l.postMessage(t)},this.nt=()=>{const t={wsOpening:!0,instanceId:this.instanceId};l.postMessage(t)},this.rt=t=>{u(t,this.instanceId)},this.ot=new a(this.rt);const i={initialized:!0,instanceId:t};l.postMessage(i)}ct(){this.j=[],this.X=[],this.ot.l(),this.Z=[],this.$=[],this.inputChannelStats=[],this.garbageCollectionStats=[],this._=[]}lt(t,s,i,h,e,n){for(let h=0;h<4;h++)t.setUint8(s+h,i.charCodeAt(h));t.setUint8(s+4,h),t.setUint16(s+5,e,!0),t.setUint16(s+7,n,!0)}ft(t,s){for(let i=0;i<this.j.length;i++)t.setFloat64(s,this.j[i].RAFTS,!0),t.setUint16(s+8,Math.min(1e3*this.j[i].DCSend,65535),!0),t.setUint16(s+10,Math.min(1e3*this.j[i].GetStats,65535),!0),t.setUint8(s+12,this.j[i].FrameInfo),t.setUint16(s+13,Math.min(100*this.j[i].VSyncDelta,65535),!0),s+=15}dt(t,s){for(let i=0;i<this.Z.length;i++)t.setUint8(s,this.Z[i].qualityScore),t.setUint8(s+1,this.Z[i].bandwidthScore),t.setUint8(s+2,this.Z[i].latencyScore),t.setUint8(s+3,this.Z[i].networkLossScore),t.setFloat64(s+4,this.Z[i].timestamp,!0),s+=12}ut(t,s){for(let i=0;i<this.X.length;i++){t.setFloat64(s,this.X[i].TS,!0),s+=8;const h=this.X[i].eventtype;let e=0;for(;e<h.length&&e<63;e++)t.setUint8(s+e,h.charCodeAt(e));t.setUint8(s+e,0),s+=64}}wt(t,s){for(let i=0;i<this.$.length;i++)t.setFloat64(s,this.$[i].timestamp,!0),t.setUint16(s+8,Math.min(this.$[i].duration,65535),!0),s+=10}vt(t,s){for(let i=0;i<this._.length;i++)t.setFloat64(s,this._[i],!0),s+=8}bt(t,s){for(let i=0;i<this.inputChannelStats.length;i++)t.setFloat64(s,this.inputChannelStats[i].timestamp,!0),t.setUint16(s+8,Math.min(this.inputChannelStats[i].bufferedAmount,65535),!0),t.setUint16(s+10,Math.min(this.inputChannelStats[i].maxSchedulingDelay,65535),!0),s+=12}kt(t,s){for(let i=0;i<this.garbageCollectionStats.length;i++)t.setFloat64(s,this.garbageCollectionStats[i].timestamp,!0),t.setInt32(s+8,d(this.garbageCollectionStats[i].deltaUsedHeapSize),!0),t.setInt32(s+12,d(this.garbageCollectionStats[i].deltaTotalHeapSize),!0),s+=16}St(){var t;if((this.j.length||this.X.length||this.ot.size())&&this.Mt)try{this.Mt.ackid=this.tt;const i=JSON.stringify(this.Mt),h=i.length,e=h+2,n=new ArrayBuffer(e),r=new DataView(n);r.setUint16(0,h);for(var s=2;s<e;++s)r.setUint8(s,i.charCodeAt(s-2));const o=new Uint8Array(n),a=15*this.j.length,c=72*this.X.length,l=12*this.Z.length,f=10*this.$.length,d=12*this.inputChannelStats.length,u=16*this.garbageCollectionStats.length,w=8*this._.length;let v=9+o.length;a&&(v+=9+a),c&&(v+=9+c),l&&(v+=9+l),f&&(v+=9+f),d&&(v+=9+d),u&&(v+=9+u),w&&(v+=9+w),v+=this.ot.size();const b=new ArrayBuffer(v),k=new DataView(b);let S=0;new Uint8Array(b).set(o),S+=o.length,this.lt(k,S,"BPRF",1,0,0),S+=9,a&&(this.lt(k,S,"PERF",3,this.j.length,15),S+=9,this.ft(k,S),S+=a),c&&(this.lt(k,S,"EVNT",1,this.X.length,72),S+=9,this.ut(k,S),S+=c),l&&(this.lt(k,S,"SQEV",1,this.Z.length,12),S+=9,this.dt(k,S),S+=l),f&&(this.lt(k,S,"MTBD",1,this.$.length,10),S+=9,this.wt(k,S),S+=f),d&&(this.lt(k,S,"INPT",1,this.inputChannelStats.length,12),S+=9,this.bt(k,S),S+=d),u&&(this.lt(k,S,"GRBG",1,this.garbageCollectionStats.length,16),S+=9,this.kt(k,S),S+=u),w&&(this.lt(k,S,"MKPT",1,this._.length,8),S+=9,this.vt(k,S),S+=w);const p=new Uint8Array(b);this.ot.write(p,S),null===(t=this.At)||void 0===t||t.send({stats:b,ackid:this.tt})}catch(t){this.st("Exception in perf/stats upload. Error : "+t.message+" stack: "+t.stack)}this.ct()}R(t,s){this.At=new c(this.sessionId,{info:this.rt,exception:this.st}),this.At.initialize(this.url,t,{L:this.it,G:this.et,K:this.ht,yt:this.nt},s),this.nt()}zt(t){var s,i;if(t.perf)this.j.push(t.perf);else if(t.clientEvent)this.X.push(t.clientEvent);else if(t.startStats){this.Mt=t.startStats.statsHeader;const s={statsStarted:!0,instanceId:this.instanceId};this.Y=self.setInterval((()=>this.St()),5e3),l.postMessage(s),this.rt("{5209d98}")}else t.stopStats?(self.clearInterval(this.Y),this.St(),this.ct(),this.rt("{b58b6ad}")):t.webrtcStats?(t.ackid&&(this.tt=t.ackid),t.webrtcStats.stats&&this.ot.u(t.webrtcStats)):t.sq?this.Z.push(t.sq):t.startWebSocket?(this.url=t.startWebSocket.signInURL,this.R(t.startWebSocket.maxReceivedAckId,t.startWebSocket.reconnect)):t.stopWebSocket?(null===(s=this.At)||void 0===s||s.uninitialize(),this.At=void 0):t.send?null===(i=this.At)||void 0===i||i.send(t.send):t.duration?this.$.push(t.duration):t.inputChannelStats?this.inputChannelStats.push(t.inputChannelStats):t.garbageCollectionStats?this.garbageCollectionStats.push(t.garbageCollectionStats):t.qosMarker&&this._.push(t.qosMarker)}}function d(t){return t<0?Math.max(t,-2147483648):Math.min(t,4294967295)}function u(t,s){const i={log:t,instanceId:s};l.postMessage(i)}function w(t,s=0){const i={exception:t,instanceId:s};l.postMessage(i)}const v=new Map;l.onmessage=function(t){try{const s=t.data,i=s.instanceId;if(s.initMessage)v.set(i,new f(i,s.initMessage.sessionId));else if(s.uninitialize){v.delete(i);const t={uninitialized:!0,instanceId:i};l.postMessage(t)}else{const t=v.get(i);t?t.zt(s):u("{d710be2}"+i,i)}}catch(t){w("Worker onmessage exception: "+t)}};',"ragnarokworker.js"),this.IM.onmessage=this.wd.bind(this),this.IM.onerror=this.bd.bind(this),n.Log.i("{1f5ec29}","{62dee75}")}catch(y){n.Log.e("{1f5ec29}","{50fa2e5}",y.message),this.HM.push({name:"RagnarokWorkerProblem",error:JSON.stringify(y)})}}_M(y,c,p,O){if(this.HM.length>0){for(const re of this.HM)c.Ke(re.name,re.error);this.HM=[]}if(this.VM.length>0){for(const re of this.VM)as(c,re);this.VM=[]}const F=this.WM++;n.Log.i("{1f5ec29}","{c194458}",F,y);const Z=new Hr(F,y,c,p,O,this.IM);return this.GM.set(F,Z),Z}qM(y){y.uninitialize(),this.GM.delete(y.MM())}};class _i{constructor(c,p){this.sessionId=c,this.$M=!1,this.zM=[],this.KM=[],this.QM=0,this.maxReceivedAckId=0,this.url="",this.YM=0,this.XM=p.info,this.jM=p.exception}initialize(c,p,O,F=!1){this.url=c,this.maxReceivedAckId=p,this.JM=O,this.ZM(F),this.XM("{fcf6f89}"+this.YM)}uninitialize(c){var p;this.maxReceivedAckId=0,this.zM=[],this.KM=[],this.JM=void 0,this.tP(),null===(p=this.iP)||void 0===p||p.close(c),this.sP(),this.XM("{986b258}"+c+"{754f60b}"+this.YM)}sP(){this.iP&&(this.iP.onclose=null,this.iP.onerror=null,this.iP.onmessage=null,this.iP.onopen=null,this.iP=void 0)}eP(){var c;this.XM("{6c3505a}"+(null===(c=this.iP)||void 0===c?void 0:c.readyState)+"{754f60b}"+this.YM),this.iP||this.ZM(!0),this.nP()}tP(){0!==this.QM&&(self.clearTimeout(this.QM),this.QM=0)}nP(){this.tP(),this.QM=self.setTimeout(()=>this.eP(),3e3)}hP(c){for(let p=this.zM.length-1;p>=0;p--)this.zM[p].ackid<=c&&this.zM.splice(p,1)}oP(c){void 0!==c.ackid&&this.zM.push(c)}rP(c){void 0!==c.ackid&&this.oP(c),this.iP&&this.iP.send(c.stats?c.stats:JSON.stringify(c))}send(c){this.JM&&(this.iP||this.ZM(!0),this.iP&&this.iP.readyState===WebSocket.OPEN?this.rP(c):this.KM.push(c))}aP(){if(this.iP){let p=JSON.stringify({ack:this.maxReceivedAckId});this.XM("{903be10}"+p),this.iP.send(p)}}ZM(c=!1){const p=this.YM+1;try{let O;this.sessionId&&(O="x-nv-sessionid."+this.sessionId);let F=this.url;c&&(F+="&reconnect=1");let Z=new WebSocket(F,O);Z.onopen=re=>{var Oe;if(this.XM("{48fa30b}"+p),Z===this.iP){null===(Oe=this.JM)||void 0===Oe||Oe.xM();for(const je of this.zM)Z.send(je.stats?je.stats:JSON.stringify(je));for(const je of this.KM)this.rP(je);this.KM=[]}},Z.onclose=re=>{var Oe;this.XM("{6406bff}"+p),Z===this.iP&&(null===(Oe=this.JM)||void 0===Oe||Oe.DM({error:this.$M,code:re.code,reason:re.reason,wasClean:re.wasClean}),this.sP(),this.$M=!1)},Z.onerror=re=>{this.XM("{7605058}"+p),Z===this.iP&&(this.$M=!0)},Z.onmessage=re=>{if(this.JM)try{let Oe=JSON.parse(re.data);if(this.QM||this.XM("{523f5b9}"),this.nP(),Oe.hb)return;void 0!==Oe.ack&&this.hP(Oe.ack),void 0!==Oe.ackid?(this.maxReceivedAckId<Oe.ackid&&(this.JM.RM(Oe),this.maxReceivedAckId=Oe.ackid),this.aP()):void 0===Oe.ack&&this.JM.RM(Oe)}catch(Oe){this.jM("Error in local websocket message handling: "+Oe+' "'+re.data+'"')}},this.iP=Z}catch(O){this.iP=void 0,this.jM("WebSocket creation exception: "+O+" for socket "+this.YM)}this.YM=p}}function Er(y){switch(y){case"H264":return"h264";case"H265":return"hevc";case"AV1":return"av1";default:return"video"}}class Ui{constructor(c){this.dP=c,this.streams=[]}cP(c){this.dP.lP&&(c.encodedInsertableStreams=!0)}start(c){if(1&this.dP.lP){const p=Is(c);for(let O=0;O<p.length;O++){const F={data:new DataView(new ArrayBuffer(209715200)),size:0,uP:"video",extension:Er(this.dP.video[O].Dk),AP:!1};this.vP(p[O].receiver,F)}}}save(){for(const c of this.streams){const p=(new Date).toISOString(),O=`streamkit-${c.uP}-${p}.${c.extension}`;_s([new DataView(c.data.buffer,0,c.size)],O,"text/plain")&&n.Log.i("{d7392d2}","{4b3378a}",O)}this.streams=[]}vP(c,p){const{readable:O,writable:F}=c.createEncodedStreams(),Z=new TransformStream({start:()=>{n.Log.i("{d7392d2}","{b96b3ec}",p.uP)},flush:()=>{},transform:(re,Oe)=>{if(!p.AP){const je=new Uint8Array(re.data);p.size+je.byteLength<=p.data.byteLength?(function(ot,Ct,Rt){const Et=Rt.byteLength;for(let qt=0;qt<Et;++qt)ot.setUint8(Ct+qt,Rt[qt])}(p.data,p.size,je),p.size+=je.byteLength):(p.AP=!0,n.Log.w("{d7392d2}","{f35b2f4}",p.size,p.uP))}Oe.enqueue(re)}});O.pipeThrough(Z).pipeTo(F),this.streams.push(p)}}class Te{constructor(c,p,O,F){this.sender=c,this.Af=p,this.Rs=O,this.telemetry=F,this.fP={top:-1,left:-1,bottom:-1,right:-1},this.$f=0,this.qf=0,this.pP=!1,this.mP=0,Sn.isInternalUser&&(this.gP=this.wP(),p.insertAdjacentElement("afterend",this.gP))}uninitialize(){this.gP&&this.gP.remove()}va(c,p){this.$f=c,this.qf=p}send(){var c,p,O;if(this.Af.videoHeight<=0||this.Af.videoWidth<=0)return;const F=Ae(),Z=this.SP(F);if(function(ot,Ct){const Rt=Object.keys(ot),Et=Object.keys(Ct);if(Rt.length!==Et.length)return!1;for(const qt of Rt)if(ot[qt]!==Ct[qt])return!1;return!0}(Z,this.fP))return;const re=JSON.stringify(Z,(ot,Ct)=>Ct.toFixed?Number(Ct.toFixed(2)):Ct);if(n.Log.d("{48f82fd}","{054b8b0}",JSON.stringify(F),re),null!==(c=Sn.ko.sendInsetValueUpdateEvents)&&void 0!==c&&c&&this.mP++<2){const ot=(Et,qt=1)=>{for(const gn of Object.keys(Et)){const tn=Math.round(Et[gn]*qt);Et[gn]=isNaN(tn)?-1:tn}return Et},Ct=ot(Object.assign({},F)),Rt=ot(Object.assign({},Z),1e3);null===(p=this.telemetry)||void 0===p||p.Db("InsetValueUpdate","Original",Ct.top,Ct.left,Ct.bottom,Ct.right),null===(O=this.telemetry)||void 0===O||O.Db("InsetValueUpdate","Normalized",Rt.top,Rt.left,Rt.bottom,Rt.right)}this.fP=Object.assign({},Z);for(const ot of Object.keys(Z))Z[ot]=isNaN(Z[ot])?0:Z[ot];const je={messageType:"SAFE_ZONE",messageRecipient:"NvGridSvc:NGS",data:JSON.stringify({safeZoneData:{type:"InsetValueUpdate",rect:Z}})};this.sender.sendCustomMessage(je),Sn.isInternalUser&&this.bP()}Jw(){this.gP&&(this.pP=!this.pP,this.gP.style.display=this.pP?"block":"none")}SP(c){let{width:p,height:O}=Yr();if(Ut(this.Rs)&&(c.top=Math.max(c.top,20),!(()=>{let Oe;switch(void 0!==window.orientation?Oe=window.orientation:screen.orientation&&(Oe=screen.orientation.angle),Oe){case 90:case-90:case 270:return!1;default:return!0}})())){const Oe=p;p=O,O=Oe}const F=(Oe=>{let je=Oe.offsetTop,ot=Oe.offsetLeft,Ct=Oe.offsetParent;for(;Ct;)je+=Ct.offsetTop,ot+=Ct.offsetLeft,Ct=Ct.offsetParent;let Rt=Oe.clientHeight,Et=Oe.clientWidth;return Zi(this.Rs)&&(window.innerHeight>window.innerWidth&&Oe.clientHeight<Oe.clientWidth||window.innerHeight<window.innerWidth&&Oe.clientHeight>Oe.clientWidth)&&(n.Log.w("{48f82fd}","{c9d343e}"),Rt=Oe.clientWidth,Et=Oe.clientHeight),{top:je,left:ot,bottom:Math.max(window.innerHeight-je-Rt,0),right:Math.max(window.innerWidth-ot-Et,0)}})(this.Af),Z=Math.max(O-window.innerHeight,0)/2,re=Math.max(p-window.innerWidth,0)/2;return{top:Math.max(c.top-Z-F.top-this.$f,0)/(this.Af.clientHeight-2*this.$f),left:Math.max(c.left-re-F.left-this.qf,0)/(this.Af.clientWidth-2*this.qf),bottom:Math.max(c.bottom-Z-F.bottom-this.$f,0)/(this.Af.clientHeight-2*this.$f),right:Math.max(c.right-re-F.right-this.qf,0)/(this.Af.clientWidth-2*this.qf)}}wP(){const c=document.createElement("div");return c.style.display="none",c.style.position="absolute",c.style.color="white",c.style.backgroundColor="rgb(105, 105, 105, 0.7)",c.style.padding="2px",c.style.bottom="0px",c.style.left="0px",c.style.margin="5px",c}bP(){this.gP&&(this.gP.innerText="Safe Zone: \nTop: "+(100*Math.max(this.fP.top,0)).toFixed()+"%\nRight: "+(100*Math.max(this.fP.right,0)).toFixed()+"%\nBottom: "+(100*Math.max(this.fP.bottom,0)).toFixed()+"%\nLeft: "+(100*Math.max(this.fP.left,0)).toFixed()+"%")}}class ft{constructor(c){var p,O,F,Z;this.kP=new Map,this.fullscreen=!1,this.yP=!1,this.IP=!1,this.CP=void 0,this.kP.set(0,[]),this.kP.set(2,[]),this.kP.set(1,[]),this.kP.set(3,[]),this.kP.set(4,[]),this.kP.set(5,[]),this.kP.set(6,[]),this.EP=function(ot){var Ct;switch(null!==(Ct=ot.platformType)&&void 0!==Ct?Ct:ot.deviceType){case n.PlatformType.PHONE:case n.PlatformType.TABLET:return!0;default:return!1}}(c),this.TP=Kt(c),this.MP=bn(c),this.PP=Ai(c),this.Au=Bt(c),this.DP=Le(c),this.RP=this.NP=document.hasFocus(),this.FE=0;const re=window.zoneless,Oe=null!==(O=null===(p=re?.windowAddEventListener)||void 0===p?void 0:p.bind(window))&&void 0!==O?O:window.addEventListener.bind(window),je=null!==(Z=null===(F=re?.documentAddEventListener)||void 0===F?void 0:F.bind(document))&&void 0!==Z?Z:document.addEventListener.bind(document);this.xP=this.OP.bind(this),this.BP=this.FP.bind(this),this.LP=this.kp.bind(this),this.UP=this.GP.bind(this),this.HP=this.VP.bind(this),this.WP=this._P.bind(this),this.qP=this.$P.bind(this),this.zP=this.KP.bind(this),Oe("focus",this.xP),Oe("blur",this.BP),["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","msfullscreenchange"].forEach(ot=>je(ot,this.LP)),je("mouseenter",this.UP),je("mouseleave",this.HP),this.QP()&&navigator.getBattery().then(ot=>{this.YP(!ot.charging),this.XP(this.jP(ot)),ot.addEventListener("chargingchange",this.WP),ot.addEventListener("levelchange",this.qP)}),this.JP()&&(this.KP(),window.screen.addEventListener("change",this.zP)),this.ZP()?(this.tD=new PressureObserver(ot=>{if(ot.length>0){const Ct=this.iD(ot);if(this.CP!=Ct){this.CP=Ct;for(const Rt of this.kP.get(5))Rt()}}}),this.tD.observe("cpu")):n.Log.i("{0c4eeb2}","{c70b747}"),this.kp()}uninitialize(){var c,p,O,F,Z,re,Oe;const je=window.zoneless,ot=null!==(p=null===(c=je?.windowRemoveEventListener)||void 0===c?void 0:c.bind(window))&&void 0!==p?p:window.removeEventListener.bind(window),Ct=null!==(F=null===(O=je?.documentRemoveEventListener)||void 0===O?void 0:O.bind(document))&&void 0!==F?F:document.removeEventListener.bind(document);ot("focus",this.xP),ot("blur",this.BP),["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","msfullscreenchange"].forEach(Et=>Ct(Et,this.LP)),Ct("mouseenter",this.UP),Ct("mouseleave",this.HP),this.QP()&&navigator.getBattery().then(Et=>{Et.removeEventListener("chargingchange",this.WP),Et.removeEventListener("levelchange",this.qP)}),this.JP()&&window.screen.removeEventListener("change",this.zP);const Rt=null===(Z=this.tD)||void 0===Z?void 0:Z.takeRecords();Rt?.map(Et=>n.Log.i("{0c4eeb2}","{4f27ba0}",JSON.stringify(Et))),null===(re=this.tD)||void 0===re||re.unobserve("cpu"),null===(Oe=this.tD)||void 0===Oe||Oe.disconnect();for(const Et of this.kP.values())Et.splice(0)}iD(c){let p="nominal";for(const O of c)this.sD(O.state)>this.sD(p)&&(p=O.state);return p}sD(c){switch(c){case"nominal":default:return 0;case"fair":return 1;case"serious":return 2;case"critical":return 3}}nm(){return this.RP}Zp(c){if((this.EP||this.Au)&&this.eD(c),this.RP!==c){this.RP=c;for(const p of this.kP.get(0))p(c)}}_m(){return this.fullscreen}nD(c){if(this.fullscreen!==c){this.fullscreen=c;for(const p of this.kP.get(2))p(c)}}hD(){return this.NP}eD(c){if(this.NP!==c){this.NP=c;for(const p of this.kP.get(1))p(c)}}oD(){return this.yP}XP(c){if(this.yP!==c){this.yP=c;for(const p of this.kP.get(4))p(c)}}rD(){return this.IP}YP(c){if(this.IP!==c){this.IP=c;for(const p of this.kP.get(3))p(c)}}kM(){return this.FE}aD(){switch(this.CP){case"nominal":return 60;case"fair":return 75;case"serious":return 90;case"critical":return 100}return-1}_p(c,p){this.kP.get(c).push(p)}Qp(c,p){const O=this.kP.get(c),F=O.indexOf(p);-1!==F&&O.splice(F,1)}QP(){return navigator.getBattery}JP(){return!this.DP&&void 0!==window.screen.isExtended}ZP(){var c,p;return Sn.enableComputePressure&&(null===(c=Sn.ko.enableComputePressure)||void 0===c||c)&&(null===(p=globalThis.PressureObserver)||void 0===p?void 0:p.prototype)&&PressureObserver.knownSources instanceof Array&&PressureObserver.knownSources.includes("cpu")}OP(){this.Zp(!0)}FP(){this.Zp(!1)}kp(){const c=window.document,p=!!(document.fullscreen||1==c.webkitIsFullScreen||c.mozFullScreen||c.msFullscreenElement);this.nD(p)}GP(){this.eD(!0)}VP(){this.eD(!1)}_P(){navigator.getBattery().then(c=>{this.YP(!c.charging)})}$P(){navigator.getBattery().then(c=>{this.XP(this.jP(c))})}jP(c){return this.PP?c.level<=.22:this.TP||this.Au?c.level<=.2:this.MP?c.level<=.1:c.level<=.33}KP(){let c=0;if(c=window.screen.isExtended?3:0,n.Log.i("{0c4eeb2}","{ee99c72}",c),this.FE!==c){this.FE=c;for(const p of this.kP.get(6))p(c)}}}class Be{static dD(c){return c.trim().split("\n").map(p=>p.trim())}static cD(c){return c.split("\nm=").map((p,O)=>(O>0?"m="+p:p).trim()+"\r\n")}static lD(c){const p=Be.cD(c);return p&&p[0]}static uD(c){const p=Be.cD(c);return p.shift(),p}static AD(c,p){return Be.dD(c).filter(O=>0===O.indexOf(p))}static vD(c){const p=c.substr(14).split(" ");return{algorithm:p[0].toLowerCase(),value:p[1].toUpperCase()}}static fD(c,p){return{role:"auto",pD:Be.AD(c+p,"a=fingerprint:").map(Be.vD)}}static mD(c,p){const O=Be.AD(c+p,"a=ice-ufrag:")[0],F=Be.AD(c+p,"a=ice-pwd:")[0];return{usernameFragment:O.substr(12),password:F.substr(10)}}}class at{constructor(c){this.index=c,this.hdr=!1,this.ey=!0,this.ny=!1}gD(c){this.wD=c}SD(c){var p;const O=null===(p=kt())||void 0===p?void 0:p.features.hdr10PlusGamingData;var F,Z;O?.version?c.isSupported?(c.isOn?(Z=c).version===(F=O).version&&Z.peakLuminanceIndex===F.peakLuminanceIndex&&Z.peakFullFrameLuminanceIndex===F.peakFullFrameLuminanceIndex?(this.ny=!0,n.Log.i("{a5dd7ef}","{09b4301}")):(this.ny=!1,n.Log.i("{a5dd7ef}","{6aed760}")):(this.ny=!1,n.Log.i("{a5dd7ef}","{a358edc}")),this.bD()):n.Log.i("{a5dd7ef}","{15eb580}"):n.Log.i("{a5dd7ef}","{0eae5fd}",JSON.stringify(c))}kD(c){var p;this.hdr=c,null===(p=this.wD)||void 0===p||p.Wy(c,this.index),this.bD()}yD(c){this.ey=c,this.bD()}bD(){var c,p,O;if(null===(c=this.wD)||void 0===c||c.qy(this.ey,this.ny,this.index),null===(p=window.webapis)||void 0===p||!p.hdr10pluscloud)return;let F,Z;if(this.hdr?this.ey&&this.ny?(F=2,Z="HDR10+G"):(F=1,Z="HDR"):(F=0,Z="SDR"),F!==(null!==(O=window.webapis.hdr10pluscloud.isHdr10plusGamingModeEnabled())&&void 0!==O?O:0)){const re=window.webapis.hdr10pluscloud.enableHdr10plusGamingMode(F);n.Log.i("{a5dd7ef}","{fc86642}",Z,re)}}}const jt="app_video_stream",pn="app_audio_stream",Xn="app_media_stream",mi="stream_id",Ci="second_stream_id",_r="sendrecv";class ut{constructor(c,p,O,F,Z,re,Oe,je,ot,Ct,Rt,Et,qt,gn,tn,Pn,Bn,ei,jn,si){var vi,bi,$i;let er;this.ID=p,this.CD=O,this.kg=Z,this.yg=re,this.telemetry=Oe,this.Rs=je,this.session=ot,this.vr=Ct,this.isResume=Rt,this.ED=Et,this.Sb=gn,this.textInputElement=tn,this.clientAppVersion=Pn,this.Xy=Bn,this.signalingUrlQueryParameters=jn,this.enableMicUpstream=si,this.name="",this.id=0,this.dP={video:[],lP:0,TD:{MD:0,PD:0,rc:0,ac:BigInt("0")}},this.DD=-1,this.RD=!1,this.ND=!1,this.xD=0,this.OD=0,this.BD=0,this.FD=!1,this.LD=0,this.UD=0,this.GD=!1,this.HD=!1,this.VD=!1,this.WD=!0,this.perfIndicator=!1,this.stutterIndicator=!1,this._D=0,this.qD=[],this.$D=[],this.zD="",this.KD=0,this.yM=new ka,this.QD=0,this.YD=0,this.XD=0,this.jD=0,this.JD=Date.now(),this.ZD=0,this.tR=0,this.iR=0,this.sR=!1,this.keyboardLayout="",this.maxReceivedAckId=0,this.videoStreamProgress=0,this.eR=[],this.nR="",this.hR=this.oR.bind(this),this.rR=this.aR.bind(this),this.dR=this.cR.bind(this),this.zP=this.KP.bind(this),this.lR=0,this.uR=new kr,this.AR=this.vR.bind(this),this.fR=new Set,this.pR=[],this.mR=Fr=>{Fr.getEntriesByType("longtask").forEach(Si=>{let dr=Math.round(Si.duration);this.Jy.LM(dr,Si.startTime),this.sM(dr),n.Log.i("{93c7910}","{7071359}",dr)})},this.Jh=c,n.Log.d("{93c7910}","{e1ca54d}",JSON.stringify(ot)),ot.finalizedStreamingFeatures||n.Log.w("{93c7910}","{6f17ef5}"),Sn.maxBitrate&&(n.Log.d("{93c7910}","{55e5b30}",Sn.maxBitrate),er=Sn.maxBitrate);for(let Fr=0;Fr<ot.streamInfo.length&&Fr<this.ID.length;Fr++){const Si=ot.streamInfo[Fr],go=(er??qt[Fr].maxBitrateKbps)||(()=>{const Ds=pe(Si.width,Si.height,Si.fps)[0];return n.Log.d("{93c7910}","{aff4184}",Ds),Ds})(),Vo=!(null!==(bi=null===(vi=this.ID[Fr])||void 0===vi?void 0:vi.requestVideoFrameCallback)&&void 0!==bi&&!bi);this.dP.video.push(ne(Si,go,Vo,ot.finalizedStreamingFeatures,qt[Fr].dynamicStreamingMode)),this.pR.push(new at(Fr))}if(this.gR=yt(this.Rs,this.session.streamInfo[0]),this.wR=i(function*(){let Fr=2;const Si="v=0\no=- 0 3 IN IP4 127.0.0.1\ns=-\nt=0 0\na=fingerprint:sha-256 A7:24:72:CA:6E:02:55:39:BA:66:DF:6E:CC:4C:D8:B0:1A:BF:1A:56:65:7D:F4:03:AD:7E:77:43:2A:29:EC:93\nm=audio 9 UDP/TLS/RTP/SAVPF 100 101\nc=IN IP4 0.0.0.0\na=rtcp-mux\na=sendonly\na=mid:audio\na=setup:actpass\na=ice-ufrag:ETEn\na=ice-pwd:OtSK0WpNtpUjkY4+86js7Z/l\r\n",dr="\r\na=rtpmap:101 opus/48000/2\na=fmtp:101 minptime=10;useinbandfec=1\n";let go="minptime=10;useinbandfec=1;channel_mapping=0,4,1,2,3,5;num_streams=4;coupled_streams=2",Vo=Si+"a=rtpmap:100 multiopus/48000/6\r\na=fmtp:100 "+go+dr;const Ds=Bi(6,Vo,go);go="minptime=10;useinbandfec=1;channel_mapping=0,6,1,2,3,4,5,7;num_streams=5;coupled_streams=3",Vo=Si+"a=rtpmap:100 multiopus/48000/8\r\na=fmtp:100 "+go+dr;const Ss=Bi(8,Vo,go);return yield Promise.all([Ds,Ss]).then(Js=>{Fr=Math.max(Number(Js[0]),Number(Js[1]))}),n.Log.i("{d988e7f}","{dc7ee29}",Fr),Fr})(),this.vf={unadjustedMovement:Dt(ot.appId),...F},this.Xd=c,this.appLaunchMode=ot.appLaunchMode,ei)for(const Fr of ei)if(Fr.track instanceof MediaStreamTrack&&"video"===Fr.track.kind){this.sendVideoTrack=Fr.track;break}let nr=this.session.signalConnectionInfo.protocol;nr=nr.replace("http","ws"),this.SR=nr+"://"+this.session.signalConnectionInfo.ip+":"+this.session.signalConnectionInfo.port;const cs=this.session.signalConnectionInfo.resourcePath;cs&&(this.SR+=("/"===cs.charAt(0)?"":"/")+cs,"/"===this.SR.charAt(this.SR.length-1)&&(this.SR=this.SR.slice(0,-1))),this.Jy=Wo._M(this.session.sessionId,this.telemetry,this.yM,this.vr),this.vr.bR(),this.ID.length&&(this.Ig=new Te(this,this.ID[0],this.Rs,this.telemetry)),this.pf=new ft(je);const ys=document.createElement("div");ys.style.position="absolute",ys.style.zIndex="300",ys.style.left="0",ys.style.top="0",ys.style.width="100%",ys.style.display="none",ys.style.fontSize="3em",ys.style.color="white",ys.style.backgroundColor="gray",ys.style.textAlign="center",(null!==($i=this.ID[0])&&void 0!==$i?$i:document.body).insertAdjacentElement("afterend",ys),this.kR=ys,this.yR={mv:32768,gv:256,wv:255,Gn:this.sS.bind(this)},this.IR={mv:16384,gv:512,wv:65280,Gn:this.Qw.bind(this)},this.CR={mv:16384,gv:512,wv:255,Gn:this.ER.bind(this)},this.TR={mv:8192,gv:256,wv:255,Gn:this.toggleOnScreenStats.bind(this)},this.MR={mv:4096,gv:256,wv:255,Gn:this.toggleStutterIndicator.bind(this)},this.ec={MT:0,DT:[0],PT:0,zc:0,Kc:0,Qc:0,IT:[0],CT:[0],om:0,tl:0},this.PR=this.Xp.bind(this),function(Fr){const Si="MediaCapabilities2";if(!navigator.mediaCapabilities)return void Fr.Db(Si,"API unsupported",-1,-1,-1,-1);const dr=performance.now();xe.Hb("h264").then(function(){var go=i(function*(Vo){if(Vo){const Ds=xe.Hb("h265; level-id=153;profile-id=1;tier-flag=1"),Ss=xe.Hb("h265; level-id=153;profile-id=2;tier-flag=1"),Js=xe.Wb(),xo=xe.zb(),va=ui(yield Ds),to=ui(yield Ss),Ul=ui(yield Js),wl=ui(yield xo),Gs=ui(Vo);Fr.Db(Si,`AV1: ${Ul}`,Gs,wl,va,to);const Sa=yield un.fk(),Ua=yield un.mk();n.Log.d("{5083445}","{1efbc27}",Sa,Ua),Fr.Db("DisplayCaps","Is120FpsSupported: "+Ua,Sa,0,0,0)}else Fr.Db(Si,"webrtc or h264 unsupported",performance.now()-dr,-1,-1,-1)});return function(Vo){return go.apply(this,arguments)}}())}(this.telemetry)}start(){this.DR(),this.vr.bR(),this.RR(),Sn.isInternalUser&&(this.yg.kv(this.yR),this.yg.kv(this.IR),this.yg.kv(this.CR),this.yg.kv(this.TR),this.yg.kv(this.MR))}NR(){this.name="peer-"+function(){let c=1;for(let O=1;O<10;O++)c*=10;let p=""+Math.floor(Math.random()*c);return p=p.padEnd(10,"0"),p}(),n.Log.d("{93c7910}","{f2b789d}",this.name),this.zD=this.SR+"/sign_in?peer_id="+this.name+"&version=2",this.signalingUrlQueryParameters&&(this.zD+="&"+this.signalingUrlQueryParameters),n.Log.d("{93c7910}","{05b8afd}",this.zD)}stop(c){var p,O,F,Z,re,Oe;this.telemetry.Db("StreamTimersAndReconnects",de(c),0,this.ZD,this.tR,this.iR);const je=ot=>{n.Log.i("{93c7910}","{a848987}",ot),this.telemetry.Db("PeerAPIDurationsAndMic",de(c),this.XD,this.QD,this.YD,ot)};this.CD.fb().then(ot=>{je(ot)}),this.xR({code:c,description:"Session stopped before stream connected"}),this.OD&&(clearTimeout(this.OD),this.OD=0),this.kR.remove(),this.RD=!0;try{this.OR({exitMessage:{code:il(c)}})}catch(ot){n.Log.e("{93c7910}","{d337883}",ot)}this.BR(),this.tc&&this.tc.close(),null===(p=this.sc)||void 0===p||p.close(),this.FR(),null===(O=this.pc)||void 0===O||O.removeEventListener("icecandidate",this.AR),this.pc&&this.pc.close(),this.LR(),0!==this.BD&&(window.clearTimeout(this.BD),this.BD=0),0!==this.UD&&(window.clearTimeout(this.UD),this.UD=0),this.Jy.stopProfiling(),null===(F=this.UR)||void 0===F||F.uninitialize(),this.Jy.stopWebSocket(),this.RR(),Wo.qM(this.Jy),this.nR&&this.WD&&(n.Log.e("{93c7910}","{283a180}"),this.telemetry.Ke("Audio track muted")),this.LD>0&&this.telemetry.Db("WebSocketClose","",0,this.LD,0,0),null===(Z=this.ED)||void 0===Z||Z.uninitialize(),null===(re=this.Ig)||void 0===re||re.uninitialize(),this.pf.Qp(0,this.hR),this.pf.Qp(1,this.hR),this.pf.Qp(2,this.hR),this.pf.Qp(4,this.rR),this.pf.Qp(3,this.rR),this.pf.Qp(5,this.dR),this.pf.Qp(6,this.zP),this.pf.uninitialize(),this.yg.yv(this.yR),this.yg.yv(this.IR),this.yg.yv(this.CR),this.yg.yv(this.TR);for(const ot of this.ID)ot.srcObject=null;this.Sb&&(this.Sb.srcObject=null),null===(Oe=this.perf)||void 0===Oe||Oe.disconnect()}RM(c){var p;if(n.Log.i("{93c7910}","{39024c3}",Hn(JSON.stringify(c))),c.ackid&&this.maxReceivedAckId<c.ackid&&(this.maxReceivedAckId=c.ackid),c.peer_info)c.peer_info.name!==this.name&&0!==this.id||(this.id=c.peer_info.id,n.Log.d("{93c7910}","{c5faf27}",this.id));else if(c.peer_msg)this.GR(c.peer_msg.from,c.peer_msg.msg);else if(c.error)if("peerRemoved"===c.error){let O;0!==this.BD?(O=null!==(p=this.HR())&&void 0!==p?p:3237094161,n.Log.w("{93c7910}","{cbb35d3}")):O=3237094159,this.VR(O)}else this.VR(3237094160)}signInTimeout(){var c,p;this.UD=0,n.Log.i("{93c7910}","{6d6b337}"),this.telemetry.WR(this.zD,0,null!==(p=null===(c=this.session)||void 0===c?void 0:c.signalConnectionInfo.ip)&&void 0!==p?p:"","signInTimeout",this.KD,!1),this.xR({code:3237093907})}DM(c){const p=()=>{var O,F,Z,re,Oe;const je=null!==(O=c.code)&&void 0!==O?O:1005;n.Log.i("{93c7910}","{0a06f78}",je,null!==(F=c.error)&&void 0!==F&&F),this.telemetry.WR(this.zD,je,null!==(re=null===(Z=this.session)||void 0===Z?void 0:Z.signalConnectionInfo.ip)&&void 0!==re?re:"",null!==(Oe=c.reason)&&void 0!==Oe?Oe:"",this.KD,c.wasClean),window.clearTimeout(this.UD),this.UD=0,this.xR({code:vl(je),description:c.reason})};0!==this.UD&&(c.error||c.code&&c.code>=1002&&c.code<=1015?(this.KD++,this.KD<=3?(this.NR(),this._R()):p()):p()),c.wasClean||this.LD++}NM(){n.Log.i("{93c7910}","{6423101}")}xM(){0!==this.UD&&(window.clearTimeout(this.UD),this.UD=0,this.ZD=Date.now()-this.jD),this.ND||0!==this.BD||this.qR()}$R(c){n.Log.i("{8ba4138}","{0b0c6f9}",c)}zR(c){this.telemetry.Ac(void 0,c,"{8ba4138}.ts",0,0,!0),n.Log.e("{8ba4138}","{0b0c6f9}",c)}_R(){this.UR=new _i(this.session.sessionId,{info:this.$R.bind(this),exception:this.zR.bind(this)}),this.UR.initialize(this.zD,this.maxReceivedAckId,this)}DR(){this.NR();let c=1e4;Sn.ko.signInTimeout&&0!==Sn.ko.signInTimeout&&(c=Sn.ko.signInTimeout,n.Log.i("{93c7910}","{4f2f101}",c)),this.UD=window.setTimeout(()=>this.signInTimeout(),c),this.jD=Date.now(),this._R()}qR(){this.BD=window.setTimeout(()=>this.KR(),3e4),this.JD=Date.now()}KR(){var c;this.BD=0,n.Log.i("{93c7910}","{d22df91}"),this.VR(null!==(c=this.HR())&&void 0!==c?c:3237093895)}HR(){var c;const p=this.QR();let O;switch(this.videoStreamProgress){case 0:case 2:break;case 3:O=3237093922;break;case 5:O=3237093923;break;case 7:O=3237093924;break;default:O=3237093925}const F=null===(c=this.wD)||void 0===c?void 0:c.gM();return this.id?this.GD?15859712!==p?O=p:this.VD?this.HD?F?O=F:4&this.xD&&("connecting"===an(this.tc)?O=3237093919:"connecting"===an(this.YR)?O=3237093920:"connecting"===an(this.XR)?O=3237093921:this.sc&&"connecting"===an(this.sc)&&(O=3237093936)):O=3237093903:O=3237093904:O=3237093913:O=3237093912,O}jR(){let c=!1;return ge()&&"closed"===this.pc.signalingState&&(c=!0,this.VR(15867908)),c}JR(){this.jR()||this.VR(15867907)}ZR(){var c,p,O,F,Z,re,Oe,je,ot;const Ct=si=>{var vi,bi;return(null!==(vi=si?.get("TCP"))&&void 0!==vi?vi:0)+(null!==(bi=si?.get("IPV6"))&&void 0!==bi?bi:0)},Rt=(si,vi)=>{let bi=0;if(vi){let $i=`${si} local candidates:`;for(const[er,nr]of vi)bi+=nr,$i+=` ${er}: ${nr}`;n.Log.i("{93c7910}","{0b0c6f9}",$i)}return bi},Et=null===(c=this.wD)||void 0===c?void 0:c.SM(),qt=Rt("event",this.uR),gn=Rt("stats",Et),tn=qt-this.lR;let Pn="";const Bn=null===(p=this.pc)||void 0===p?void 0:p.getReceivers().find(si=>"video"===si.track.kind&&si.track.enabled),ei=null===(re=null===(Z=null===(F=null===(O=Bn?.transport)||void 0===O?void 0:O.iceTransport)||void 0===F?void 0:F.getSelectedCandidatePair)||void 0===Z?void 0:Z.call(F))||void 0===re?void 0:re.local;ei&&(Pn=`category: ${Qr(ei)}, type: ${ei.type}`),this.telemetry.Db("LocalCandidatesCategories",Pn,qt,qt-Ct(this.uR),gn,gn-Ct(Et));const jn=null!==(je=null===(Oe=this.wD)||void 0===Oe?void 0:Oe.bM())&&void 0!==je?je:new Set;this.telemetry.Db("LocalCandidateRanges",`${null===(ot=this.pc)||void 0===ot?void 0:ot.iceGatheringState}`,tn,jn?.size,this.fR.size,new Set([...jn,...this.fR]).size)}VR(c,p){var O;if(!this.RD){if(this.RD=!0,this.BR(),this.FR(),this.ND){const F={sessionId:this.session.sessionId,subSessionId:this.session.subSessionId,error:{code:c,description:p},zoneName:this.session.zoneName,zoneAddress:this.session.zoneAddress,isSessionAlive:ps(c)};this.telemetry.Ke("SignalingState",de(c),null===(O=this.pc)||void 0===O?void 0:O.signalingState),n.Log.i("{93c7910}","{89d3ea6}",this.pc.signalingState),this.Xd.tN(F)}else this.xR({code:c});n.Log.e("{93c7910}","{573fb24}",de(c))}}iN(){for(const c of this.$D)c.streamId===mi&&2===this.$D.length?c.streamId=jt:c.streamId===mi?c.streamId=Xn:c.streamId===Ci&&(c.streamId=pn)}sN(){const c=this.$D.find(Z=>Z.streamId===Xn),p=this.$D.find(Z=>Z.streamId===jt),O=this.$D.find(Z=>Z.streamId===pn),F=!(!p||!O);if(c)n.Log.i("{93c7910}","{a5e354c}");else if(F){const Z={streamId:Xn,tracks:p.tracks.concat(O.tracks)};this.$D.splice(this.$D.indexOf(p),1),this.$D.splice(this.$D.indexOf(O),1),this.$D.push(Z),n.Log.i("{93c7910}","{e2dc4ec}")}else n.Log.i("{93c7910}",p?"{07f3411}":O?"{243a50b}":"{7388213}")}eN(){var c;this.sN();const p=null===(c=this.pc)||void 0===c?void 0:c.getTransceivers();if(!p)return;const O=new Map,F=new Map;for(const re of this.$D){for(const Oe of re.tracks)Oe.trackId&&O.set(Oe.trackId,re.streamId);F.set(re.streamId,[])}let Z=0;for(const re of p){const Oe=re.receiver.track,je=O.get(Oe.id);if(void 0===je)continue;const ot=F.get(je);if(ot){if("video"===Oe.kind){const Ct=this.ID[Z++];if(!Ct)return n.Log.e("{93c7910}","{85759dc}"),3237093939;const Rt=ot.find(Et=>!Et.nN);Rt?(Rt.nN=Oe,Rt.Af=Ct):ot.push({nN:Oe,Af:Ct})}else if("audio"===Oe.kind){const Ct=ot.find(Rt=>!Rt.hN);Ct?Ct.hN=Oe:ot.push({hN:Oe})}}else n.Log.w("{93c7910}","{4c622c1}",je)}return this.oN(F)}setUpstreamMedia(c,p){return Promise.resolve(!1)}unsetUpstreamMedia(c){return Promise.resolve(!1)}stopUpstreamMedia(c){return Promise.resolve(!1)}yD(c,p){var O;null===(O=this.pR[p])||void 0===O||O.yD(c)}rN(){try{if(this.pc&&this.sendVideoTrack){const c=Is(this.pc)[0];if(c){let p="",O=c.direction;c.direction!==_r&&(c.direction=_r,p=" ("+O+" direction is overridden by "+_r+")"),c.sender.replaceTrack(this.sendVideoTrack).then(()=>{n.Log.i("{93c7910}","{b54f651}",p)}).catch(F=>{c.direction!==O&&(c.direction=O),n.Log.w("{93c7910}","{d225159}",F)})}else n.Log.w("{93c7910}","{8272b59}")}}catch(c){n.Log.w("{93c7910}","{66082ec}",c)}}aN(c,p){n.Log.w("{93c7910}","{4d3c418}",c,p),this.telemetry.Ac(p,c,"{93c7910}.ts",0,0,!0)}setCodecPreferences(c){var p,O,F;let Z=0;const re=Is(this.pc);if(!re.length)return Z;if(!RTCRtpReceiver.getCapabilities||!RTCRtpSender.getCapabilities||!re[0].setCodecPreferences)return n.Log.w("{93c7910}","{274c489}"),Z;const Oe=null===(p=RTCRtpReceiver.getCapabilities("video"))||void 0===p?void 0:p.codecs;if(!Oe)return Z;let je=!1,ot=!1;const Ct=["flexfec-03","rtx"];for(let Rt=0;Rt<re.length&&Rt<c.length;Rt++){const Et=c[Rt],qt=re[Rt];let gn=[];const tn=Pn=>{const Bn=Oe.filter(ei=>ei.mimeType==="video/"+Pn);return gn=gn.concat(Bn),!!Bn.length};if(!tn(Et.Dk)&&"H264"!==Et.Dk){if(1===Et.Pk){n.Log.e("{93c7910}","{a3e8d28}",Et.Dk),Z=2;break}n.Log.w("{93c7910}","{d1d0397}",Et.Dk),Et.Dk="H264",tn(Et.Dk),Z=1}for(const Pn of Ct)tn(Pn);try{qt.setCodecPreferences(gn)}catch(Pn){je||(je=!0,this.aN("Failed to set codec preferences to receiver capabilities",Pn));try{gn=gn.concat(null!==(F=null===(O=RTCRtpSender.getCapabilities("video"))||void 0===O?void 0:O.codecs)&&void 0!==F?F:[]),qt.setCodecPreferences(gn)}catch(Bn){ot||(ot=!0,this.aN("Failed to set codec preferences to sender and receiver capabilities",Bn))}}}return Z}dN(){var c;null===(c=this.UR)||void 0===c||c.uninitialize(4001),this.UR=void 0,this.Jy.startWebSocket(this.zD,this.maxReceivedAckId,this,!0)}xR(c){var p,O,F,Z,re,Oe,je;if(!this.ND){this.tR=Date.now()-this.JD,void 0===c?Sn.cr||(this.dN(),Sn.Eo&&this.cN()):this.ZR(),this.ND=!0,0!==this.BD&&(window.clearTimeout(this.BD),this.BD=0);for(const[Ct,Rt]of this.session.streamInfo.entries())Rt.bitDepth=null!==(F=null!==(p=Rt.bitDepth)&&void 0!==p?p:null===(O=this.wD)||void 0===O?void 0:O.zy(Ct))&&void 0!==F?F:8;let ot={sessionId:this.session.sessionId,subSessionId:this.session.subSessionId,streams:this.$D,streamInfo:this.session.streamInfo,error:c,zoneName:this.session.zoneName,zoneAddress:this.session.zoneAddress,gpuType:this.session.gpuType,isResume:null!==(Z=this.isResume)&&void 0!==Z&&Z,bitDepth:null!==(Oe=null===(re=this.wD)||void 0===re?void 0:re.zy(0))&&void 0!==Oe?Oe:8};this.Xd.lN(ot),null===(je=this.Ig)||void 0===je||je.send()}}uN(){return this.ND}oN(c){let p=!1;for(const O of c.values())for(const F of O)if(F.nN&&F.Af){const Z=[F.nN];F.hN&&Z.push(F.hN),F.Af.srcObject=new MediaStream(Z)}else if(F.hN){if(!this.Sb)return n.Log.e("{93c7910}","{a2fe53c}"),3237093937;if(p){n.Log.w("{93c7910}","{1376fbe}");continue}this.Sb.srcObject=new MediaStream([F.hN]),p=!0}}OR(c){var p;try{if("open"===(null===(p=this.XR)||void 0===p?void 0:p.readyState)){let O=performance.now();this.XR.send(JSON.stringify(c));let F=performance.now()-O;this.$c(F)}else n.Log.w("{93c7910}","{593db1b}")}catch(O){n.Log.e("{93c7910}","{a585a6e}",O),this.telemetry.Ac(O,"sendControlMessage exception","{93c7910}.ts",0,0,!0)}}AN(c){"connecting"===an(this.XR)?this.eR.push(c):this.OR(c)}$c(c){var p;this.Jy.FM(c),null===(p=this.wD)||void 0===p||p.Fy(c)}sM(c){var p;null===(p=this.wD)||void 0===p||p.sM(c)}vN(c,p){var O;n.Log.d("{93c7910}","{5ba6173}",c,p),this.Jh.emit("StreamingEvent",{streamingWarnings:{code:c,secondsLeft:p}}),2===c&&(null===(O=this.tg)||void 0===O||O.Bw(!0))}fN(c){let p=function(O){let F=0;switch(n.Log.d("{c00be32}","{44bd2b6}",O),O){case 1:case 2:F=1;break;case 3:case 5:break;case 4:F=2;break;case 6:F=3}return F}(c.timerNotification.code);0!==p?this.vN(p,c.timerNotification.secondsLeft):n.Log.e("{93c7910}","{de37ac5}",c.timerNotification.code)}pN(c){var p;if("Hdr10PlusGaming"===c.messageRecipient){if("Hdr10PlusGamingChange"===c.messageType&&c.data){const O=JSON.parse(c.data);null===(p=this.pR[0])||void 0===p||p.SD(O)}}else if("EDIT_BOX_LIST"===c.messageType&&c.data)try{const O=JSON.parse(c.data);this.tg&&this.tg.xS(O)}catch(O){n.Log.e("{93c7910}","{cb5b85e}",O.message)}else this.Jh.emit("CustomMessage",c)}mN(c,p){this.telemetry.Db("IceStats",c,0,p.fM,p.pM,p.mM)}gN(){var c;null===(c=this.wN)||void 0===c||c.start(this.pc)}LR(){var c;null===(c=this.wN)||void 0===c||c.save(),this.wN=void 0}vR(c){n.Log.d("{93c7910}","{4742d5e}"),c.candidate&&this.lR++,ge()||this.pc&&this.pc.canTrickleIceCandidates&&this.pc.onicecandidate&&this.SN(c,!0)}SN(c,p){if(c.candidate){if(!p){const F=Qr(c.candidate);if(this.uR.set(F,this.uR.get(F)+1),"IPV4"===F){const Z=Rs(c.candidate);"UNKNOWN"!==Z&&this.fR.add(Z)}}if("tcp"===c.candidate.protocol)return void n.Log.d("{93c7910}","{6f19d1e}");n.Log.d("{93c7910}","{ac052fa}",c.candidate.port,c.candidate.protocol),this.bN(this.DD,{sdpMLineIndex:c.candidate.sdpMLineIndex,sdpMid:c.candidate.sdpMid,candidate:c.candidate.candidate}),this.HD=!0}else n.Log.d("{93c7910}","{a759d16}")}kN(c){var p,O,F,Z,re,Oe,je,ot,Ct,Rt,vi;n.Log.d("{93c7910}","{d79ed0a}",c);try{let Et,qt={},gn=[];if(Sn.ko.enableStunServer&&gn.push({urls:"stun:s1.stun.gamestream.nvidia.com:19308"}),Sn.zo){gn=[];const jn=Sn.zo.split("|");for(let si=0;si<jn.length;si++){const[vi,bi,$i]=jn[si].split(",").map(er=>er.trim());vi&&bi&&$i?gn.push({urls:vi,username:bi,credential:$i}):n.Log.w("{93c7910}","{cdc808b}",vi,bi,$i)}Et=Sn.iceTransportPolicy}else null!==(O=null===(p=this.session.iceServerConfiguration)||void 0===p?void 0:p.iceServers)&&void 0!==O&&O.length?(gn=gn.concat(this.session.iceServerConfiguration.iceServers),Et=this.session.iceServerConfiguration.iceTransportPolicy):null!==(Z=null===(F=this.dP.yN)||void 0===F?void 0:F.iceServers)&&void 0!==Z&&Z.length&&(gn=gn.concat(this.dP.yN.iceServers),Et=this.dP.yN.iceTransportPolicy,gn.length&&gn.map(jn=>`${jn.urls} ${jn.username}`).join(" | "),n.Log.i("{93c7910}","{5d756ff}",gn.length?gn.map(jn=>`${jn.urls} ${jn.username}`).join(" | "):"None"));gn.length&&(qt.iceServers=gn,qt.iceTransportPolicy=Et),null===(re=this.wN)||void 0===re||re.cP(qt),n.Log.d("{93c7910}","{93106c2}",JSON.stringify(qt)),this.DD=c,this.pc=new RTCPeerConnection(qt);const tn=jn=>{var si,vi,bi,$i;this.IN&&(this.mN("disconnected",this.IN),this.IN=void 0);const er=null===(si=this.wD)||void 0===si?void 0:si.vM();er&&this.mN("failed",er),this.xD|=16,4&this.xD?0===(null===(bi=this.wD)||void 0===bi?void 0:bi.AM())?this.VR(3237093900):0===(null===($i=this.wD)||void 0===$i?void 0:$i.lM())?this.VR(3237093901):this.VR(jn?3237093906:3237093899):this.VR(null!==(vi=this.HR())&&void 0!==vi?vi:3237093894)};this.pc.onconnectionstatechange=jn=>{if(this.pc)switch(n.Log.d("{93c7910}","{4ced155}",this.pc.connectionState),this.pc.connectionState){case"connected":case"disconnected":case"closed":break;case"failed":this.jR()||tn(!1)}else n.Log.e("{93c7910}","{648f784}")},this.pc.oniceconnectionstatechange=jn=>{var si;if(this.pc)switch(n.Log.d("{93c7910}","{3a3143a}",this.pc.iceConnectionState),this.pc.iceConnectionState){case"new":this.xD|=1;break;case"checking":this.xD|=2;break;case"connected":this.IN=void 0,32&this.xD&&(this.Jh.emit("StreamingEvent",{streamingState:{state:"reconnected"}}),this.iR++),this.xD|=4;break;case"completed":this.IN=void 0,this.xD|=12;break;case"failed":tn(!0);break;case"disconnected":this.IN=null===(si=this.wD)||void 0===si?void 0:si.vM(),4&this.xD&&this.Jh.emit("StreamingEvent",{streamingState:{state:"reconnecting"}}),this.xD|=32;break;case"closed":this.xD|=64,32&this.xD&&this.VR(3237093892)}else n.Log.e("{93c7910}","{648f784}")},this.pc.ondatachannel=jn=>{n.Log.d("{93c7910}","{b364db9}",jn.channel.label),"control_channel"==jn.channel.label&&(this.mT(jn.channel,{errorCode:3237093898,open:()=>{this.XR=jn.channel;for(const vi of this.eR)this.OR(vi);n.Log.d("{93c7910}","{038895c}",this.eR.length),this.eR=[],this.aM(`NvRtcClient Browser name: ${this.Rs.browser}, Browser version: ${this.Rs.browserFullVer}`),this.CN("GPU Detail",this.Rs.gpuDetail),this.EN(),this.pf._p(0,this.hR),this.pf._p(1,this.hR),this.pf._p(2,this.hR),this.pf.QP()&&(this.TN(),this.pf._p(4,this.rR),this.pf._p(3,this.rR)),this.pf.ZP()&&(this.aM("ClientGenericMapping: {ProcCpuUsage, TotalCpuUsage}"),this.MN(),this.pf._p(5,this.dR)),this.pf.JP()&&(this.KP(this.pf.kM()),this.pf._p(6,this.zP)),window.requestAnimationFrame(this.PR)}}),jn.channel.onmessage=si=>{var vi;try{let bi=JSON.parse(si.data);if(n.Log.d("{93c7910}","{9371373}"),bi.exitMessage)this.VR(function($i){if($i.stopData){const er=function(nr){if(nr.length<2)return null;const cs=atob(nr);let ys=0;const Fr=()=>{const Si=256*cs.charCodeAt(ys)+cs.charCodeAt(ys+1);return ys+=2,Si};return 0==Fr()?nr.length<ys+2?null:Fr():null}($i.stopData);if(er||0===er)return n.Log.d("{c00be32}","{921626d}",er),co(er)}return $i.nvstResult?(n.Log.d("{c00be32}","{f30bc33}",$i.nvstResult),function(er){let nr=15868672;switch(er){case 2147680256:case 2147680291:nr=15868704;break;case 2147680257:nr=15868705;break;case 2147680258:nr=3237093635;break;case 2147680259:nr=3237094152;break;case 2147680260:nr=15868706;break;case 2147680262:nr=15868707;break;case 2147680263:nr=15868708;break;case 2147680264:nr=15868736;break;case 2147680265:nr=15868737;break;case 2147680266:nr=15868738;break;case 2147680267:nr=15868739;break;case 2147680268:nr=15868741;break;case 2147680269:nr=15868740;break;case 2147680270:nr=15868742;break;case 2147680271:nr=3237094147;break;case 2147680275:nr=15868743;break;case 2147680277:nr=15868709;break;case 2147680278:nr=15868744;break;case 2147680279:nr=15868710;break;case 2147680280:nr=15868711;break;case 2147680281:nr=15868712;break;case 2147680283:nr=3237094155;break;case 2147680284:nr=3237094156;break;case 2147680285:nr=3237094157;break;case 2147680286:nr=3237093678;break;case 2147680287:nr=15868715;break;case 2147680288:nr=15868716;break;case 2147680289:nr=15868719;break;case 2147680300:nr=15868688;break;case 2147745794:case 2147745797:case 2147745803:nr=3237093892;break;case 2147745796:nr=3237094158;break;case 2147745804:nr=3237094146;break;case 2147745805:nr=3237094148;break;case 2147745806:nr=3237094149;break;case 2147745807:nr=3237094150;break;case 2148438786:nr=15868718;break;default:n.Log.d("{c00be32}","{094c45e}",de(er))}return nr}($i.nvstResult)):$i.code?(n.Log.d("{c00be32}","{6210ab0}",$i.code),co($i.code)):15868672}(bi.exitMessage));else if(bi.timerNotification)this.fN(bi);else if(bi.debugMessage)this.Km(bi.debugMessage.message);else if(bi.customMessage)this.pN(JSON.parse(bi.customMessage));else if(bi.videoStreamProgressEvent)this.videoStreamProgress=bi.videoStreamProgressEvent.videoStreamProgress;else if(bi.gameSessionHdrMode)null===(vi=this.pR[bi.gameSessionHdrMode.streamIndex])||void 0===vi||vi.kD(bi.gameSessionHdrMode.hdrMode>0);else if(bi.videoQualitySnapshotResponse){let $i="unknown";switch(bi.videoQualitySnapshotResponse.messageType){case 0:$i="success";break;case 1:$i="not enabled";break;case 2:$i="too many snapshots"}n.Log.i("{93c7910}","{cc428fc}",$i,bi.videoQualitySnapshotResponse.snapshotsTaken)}else n.Log.d("{93c7910}","{d14e0fd}")}catch(bi){n.Log.e("{93c7910}","{a40734a}",bi),this.telemetry.Ac(bi,"Error in control_channel message handling","{93c7910}.ts",0,0,!0)}})},n.Log.d("{93c7910}","{d9ffda2}");const Pn={ordered:!0,reliable:!0};if(n.Log.d("{93c7910}","{2bd4728}"),this.tc=this.pc.createDataChannel("input_channel_v1",Pn),this.tc.binaryType="arraybuffer",this.mT(this.tc,{errorCode:3237093896}),this.dP.TD.MD>0){n.Log.d("{93c7910}","{860d2d7}");let jn={ordered:!1,maxPacketLifeTime:this.dP.TD.MD};n.Log.d("{93c7910}","{25e5dc3}",JSON.stringify(jn)),this.sc=this.pc.createDataChannel("input_channel_partially_reliable",jn),this.sc.binaryType="arraybuffer",this.mT(this.sc,{errorCode:3237093929})}if(this.YR=this.pc.createDataChannel("cursor_channel",{ordered:!0,reliable:!0}),this.YR.binaryType="arraybuffer",this.mT(this.YR,{errorCode:3237093897}),-1!==(null!==(vi=Sn.ko.requireDS4TrackpadForAppIds)&&void 0!==vi?vi:[]).indexOf(this.session.appId)&&this.yg.zu(),this.yg.qu(this.dP.TD.PD),this.ID.length&&(this.tg=new pl(this,this.ID[0],this.tc,this.YR,this.telemetry,this.Jh,this.vf,2===this.appLaunchMode,this.kg,this.yg,this.Rs,this.Xd,this.Ig,this.pf,this.ec,this.vr,this.dP.TD,this.sc,this.textInputElement)),this.sR&&(this.setKeyboardLayout(this.keyboardLayout),this.sR=!1),Sn.Co){n.Log.d("{93c7910}","{9ae428b}");const jn={zoneName:this.session.zoneName,clientAppVersion:null!==(Oe=this.clientAppVersion)&&void 0!==Oe?Oe:"",appId:this.session.appId,Xy:null!==(je=this.Xy)&&void 0!==je?je:"",gpuType:this.session.gpuType,streamInfo:null!==(ot=this.session.streamInfo[0])&&void 0!==ot?ot:{width:0,height:0,fps:0},clientLocale:this.session.clientLocale};this.wD=new Kr(this.Jh,this,this.ID,this.pc,this.dP.video,this.telemetry,this.Rs,jn,this.pf,this.ec,this.vr,this.Jy);for(const si of this.pR)si.gD(this.wD);PerformanceObserver&&(this.perf=new PerformanceObserver(si=>this.mR(si)))}this.pc.addEventListener("icecandidate",this.AR),this.pc.onsignalingstatechange=jn=>{n.Log.i("{93c7910}","{3236227}",this.pc.signalingState)},this.pc.onicecandidate=jn=>this.SN(jn),this.pc.onicecandidateerror=jn=>{n.Log.w("{93c7910}","{9871b05}",jn.port,jn.url,jn.errorCode,jn.errorText)};const ei=!cn(this.Rs)&&(null===(Ct=this.enableMicUpstream)||void 0===Ct||Ct);(null!==(Rt=Sn.Ko)&&void 0!==Rt?Rt:ei)&&this.CD.initialize(this.pc,this.Jh,this.ID[0],this.Sb),this.pc.ontrack=jn=>{var si,vi,bi;const $i=jn.streams[0];n.Log.d("{93c7910}","{47359d4}",$i.id,jn.track.kind,jn.track.id,jn.streams.length,de(this.xD));let er={kind:"video"===jn.track.kind?"video":"audio",trackId:jn.track.id};null===(vi=null===(si=this.Xd)||void 0===si?void 0:si.onRtcRtpReceiver)||void 0===vi||vi.call(si,jn.receiver),"audio"!==jn.track.kind||$i.id!==mi&&$i.id!==Xn&&$i.id!==Ci&&$i.id!==pn||(this.nR=jn.track.id,this.PN($i),null===(bi=this.ED)||void 0===bi||bi.initialize(new MediaStream($i.getAudioTracks())));let nr=this.$D.find(cs=>cs.streamId===$i.id);nr?nr.tracks.push(er):this.$D.push({streamId:$i.id,tracks:[er]}),this.DN()}}catch(Et){n.Log.e("{93c7910}","{ff11182}",Et),this.telemetry.Ac(Et,"Exception in creating peer connection","{93c7910}.ts",0,0,!0)}}BR(){this.tg&&(this.tg.uninitialize(),this.tg=void 0)}FR(){var c;null===(c=this.wD)||void 0===c||c.stop()}RN(c){const p=O=>O.startsWith("a=candidate:")?(this.VD=!0,"a="+this.NN(O.substr(2))):O;c.xN=c.xN.map(p);for(const O of c.BN)O.lines=O.lines.map(p)}NN(c){n.Log.d("{93c7910}","{2dd62a2}");const p=this.session.mediaConnectionInfo.find(O=>2===O.usage||17===O.usage);if(p){let O=c.split(" ");p.ip&&(O[4]=p.ip),p.port&&(O[5]=""+p.port);let F=O.join(" ");return n.Log.d("{93c7910}","{1fbcd88}",F),F}return n.Log.d("{93c7910}","{aee7283}"),c}QR(){const c=this.$D.flatMap(p=>p.tracks);for(const p of this.qD)if(!c.find(O=>O.trackId===p.trackId))return"audio"===p.kind?3237093914:3237093905;return n.Log.d("{93c7910}","{4fef10b}"),c.length>this.qD.length&&n.Log.w("{93c7910}","{7861bb3}"),15859712}FN(){let c=this.pc.getTransceivers();if(0===c.length)return n.Log.d("{93c7910}","{3399d9d}"),void this.xR({code:3237093909});for(const p of c)"3"===p.mid&&p.receiver.track.id!==this.nR?(n.Log.i("{93c7910}","{981392f}"),p.receiver.track.enabled=!1):this.qD.push({trackId:p.receiver.track.id,kind:p.receiver.track.kind});n.Log.d("{93c7910}","{648ae93}",JSON.stringify(this.qD))}GR(c,p){var O=this;return i(function*(){var F,gn;n.Log.d("{93c7910}","{9978507}",c);try{const Z=JSON.parse(p);if("offer"===Z.type){let re,Oe;O.GD=!0;let je=Z.sdp||"";const ot=null!==(F=Z.nvstServerOverrides)&&void 0!==F?F:"";n.Log.d("{93c7910}","{ca9a155}",Hn(je));const Ct=yield O.gR,Rt=Pt(je);if(ut.LN(Rt,Ct,O.dP.video),Z.nvstSdp){if(Oe=function(gn){let tn,Pn,Bn={origin:"",time:"",Rk:new Map,media:[]},ei=new Map,jn=!1;const si=()=>{if(jn){if(!Pn||!tn)return n.Log.e("{eb7c2d0}","{adc37a7}"),!1;Bn.media.push({Nk:Pn,xk:tn,attributes:ei}),Pn=void 0,tn=void 0}else Bn.Rk=ei,jn=!0;return ei=new Map,!0};for(const vi of Ie(gn)){if(vi.length<2||"="!==vi[1])continue;const bi=vi[0],$i=vi.substr(2);if("m"==bi){if(!si())return;Pn=$i.split(" ")[0]}else if("a"==bi){const er=$i.indexOf(":");if(-1===er)continue;const nr=$i.slice(0,er),cs=$i.slice(er+1);if("msid"===nr){if(void 0!==tn)return void n.Log.e("{eb7c2d0}","{dc7fbec}",cs);tn=cs}else ei.set(nr,cs)}else if("t"==bi){if(jn)return void n.Log.e("{eb7c2d0}","{14fc069}");Bn.time=$i}else if("o"==bi){if(jn)return void n.Log.e("{eb7c2d0}","{eb0287a}");Bn.origin=$i}}if(si()){if(""!==Bn.time&&""!==Bn.origin)return Bn;n.Log.e("{eb7c2d0}","{8e7e486}")}}(Z.nvstSdp),!Oe)return void O.xR({code:3237093911});if(re=O.UN(Oe,ot),!re)return}O.wN=new Ui(O.dP),O.kN(c);let Et=Date.now();O.RN(Rt),ut.GN(Rt,O.dP.video.map(gn=>({minWidth:960,maxWidth:gn.bk,minHeight:540,maxHeight:gn.kk,HN:30,yk:gn.yk}))),(null===(gn=Sn.ko.allowUpdateH265Tier)||void 0===gn||gn)&&function(gn){var tn,Pn,Bn,ei;if(null!==(Pn=null===(tn=RTCRtpReceiver?.getCapabilities("video"))||void 0===tn?void 0:tn.codecs)&&void 0!==Pn&&Pn.some(vi=>{var bi;return"video/H265"===vi.mimeType&&(null===(bi=vi.sdpFmtpLine)||void 0===bi?void 0:bi.includes("tier-flag=1"))}))return void n.Log.i("{93c7910}","{9da2c0f}");const jn=/^a=fmtp:([0-9]+)/;let si=!1;for(const vi of gn.BN)if(null!==(Bn=vi.lines[0])&&void 0!==Bn&&Bn.startsWith("m=video"))for(const[bi,$i]of vi.lines.entries()){const er=$i.match(jn);er&&("H265"===(null===(ei=vi.VN.get(er[1]))||void 0===ei?void 0:ei.codec)&&(vi.lines[bi]=$i.replace("tier-flag=1","tier-flag=0"),si=!0))}si&&n.Log.i("{93c7910}","{c656b20}")}(Rt);const qt=ut.WN(Rt);qt&&ut._N(Rt,qt),je=Re(Rt),n.Log.d("{93c7910}","{542f9d5}",Hn(je)),O.pc.setRemoteDescription({type:Z.type,sdp:je}).then(()=>{O.QD=Date.now()-Et,O.FN(),n.Log.d("{93c7910}","{ab7b3af}",O.QD),O.iN();const gn=O.eN();if(gn)return void O.VR(gn);O.rN();const tn=O.setCodecPreferences(O.dP.video);2!==tn?1===tn&&Oe&&(re=O.UN(Oe,ot),!re)||(O.gN(),Et=Date.now(),O.pc.createAnswer().then(Pn=>{var Bn;O.XD=Date.now()-Et,n.Log.d("{93c7910}","{2984003}",O.XD);const ei=O.dP.video.map(jn=>({max:jn.Ik.toString(),min:jn.Mk.toString(),qN:jn.Ck.toString()}));if(n.Log.d("{93c7910}","{b535c15}",Hn(xi(null!==(Bn=Pn.sdp)&&void 0!==Bn?Bn:""))),Pn.sdp){const jn=Pt(Pn.sdp);ut.$N(jn,ei),ge()&&ut.zN(jn,ei),ut.KN(jn),qt&&ut.QN(jn,qt),Pn.sdp=Re(jn),n.Log.d("{93c7910}","{1a048a7}",Hn(xi(Pn.sdp)))}Et=Date.now(),O.pc.setLocalDescription(Pn).then(()=>{if(O.YD=Date.now()-Et,n.Log.d("{93c7910}","{de86c01}",O.YD),Pn.sdp&&!ge()){const si=Pt(Pn.sdp);ut.zN(si,ei),Pn.sdp=Re(si)}if(Pn.sdp&&re){const si=Be.cD(Pn.sdp),vi=si.shift(),bi=Be.mD(si[0],vi),$i=Be.fD(si[0],vi),er=Be.cD(re);er[0]+="a=general.icePassword:"+bi.password+"\r\n",er[0]+="a=general.iceUserNameFragment:"+bi.usernameFragment+"\r\n",er[0]+="a=general.dtlsFingerprint:"+$i.pD[0].value+"\r\n",re=er.join("")}O.bN(c,{type:Pn.type,sdp:Pn.sdp,nvstSdp:re}),n.Log.i("{93c7910}","{bd70666}",JSON.stringify(O.$D)),O.DN()}).catch(jn=>{n.Log.e("{93c7910}","{ba2deaa}",jn),O.VR(3237093902)})}).catch(Pn=>{n.Log.d("{93c7910}","{40c0f69}",Pn)})):O.VR(3237093938)}).catch(gn=>{n.Log.e("{93c7910}","{ec2853e}",gn),O.VR(3237093902)})}else if(Z.candidate){n.Log.d("{93c7910}","{cf4c103}");let re=O.NN(Z.candidate);n.Log.d("{93c7910}","{43e80e0}",re),O.pc.addIceCandidate({sdpMLineIndex:Z.sdpMLineIndex,sdpMid:Z.sdpMid,candidate:re}).then(()=>{n.Log.d("{93c7910}","{db0ae14}"),O.VD=!0}).catch(Oe=>{n.Log.e("{93c7910}","{62f207e}",Oe),O.telemetry.Ke("AddCandidateFailed",Oe?.name,Oe?.message)}),n.Log.d("{93c7910}","{9454009}")}}catch(Z){"BYE"===p?O.VR(15868672):(n.Log.e("{93c7910}","{93367fc}",Z),O.telemetry.Ac(Z,"Invalid handlePeerMessage Response","{93c7910}.ts",0,0,!0))}})()}UN(c,p){var O;const F=function(Z,re,Oe,je){const ot=function(Ct,Rt,Et){var qt,gn,tn;const Pn={origin:Ct.origin,time:Ct.time,Rk:new Map,media:[]};Pn.Rk.set("general.clientSupportsIntraRefresh",Ft(Et)?"0":"1"),Pn.Rk.set("general.clientCapture",null!==(qt=Ct.Rk.get("general.clientCapture"))&&void 0!==qt?qt:"0"),Pn.Rk.set("runtime.serverTraceCapture","2");let Bn=0;for(const ei of Ct.media){const jn=new Map;"video"===ei.Nk&&Bn<Rt.video.length&&(en(jn,ei.attributes,Rt.video[Bn],Et),Bn++),"application"===ei.Nk&&fn(jn,ei),Pn.media.push({Nk:ei.Nk,xk:ei.xk,attributes:jn})}return Pn.Rk.set("general.turnInfo",null!==(gn=Ct.Rk.get("general.turnInfo"))&&void 0!==gn?gn:""),Pn.Rk.set("general.iceTransportPolicy",null!==(tn=Ct.Rk.get("general.iceTransportPolicy"))&&void 0!==tn?tn:""),Pn}(re,Z,je);return _t(null!==(Rt=null===(Ct=Sn.ko.nvscClientConfigFields)||void 0===Ct?void 0:Ct.join("\n"))&&void 0!==Rt?Rt:"",ot,re,"remoteconfig"),_t(Oe,ot,re,"server"),Sn.isInternalUser&&!_t(Sn.clientConfigOverride,ot,re,"client")?{error:3237093917}:function(Ct,Rt){let Et=!0;const qt=(jn,si)=>{const vi=jn.get(si);if(vi){const bi=parseInt(vi);if(!Number.isNaN(bi))return bi}return n.Log.e("{eb7c2d0}","{0a60213}",si),Et=!1,0},gn=(jn,si)=>qt(jn,si)>0,tn=(jn,si)=>{const vi=jn.get(si);if(vi)try{return BigInt(vi)}catch{n.Log.e("{eb7c2d0}","{66a68eb}",vi)}return n.Log.e("{eb7c2d0}","{0a60213}",si),Et=!1,BigInt(0)};Ct.lP=qt(Rt.Rk,"general.clientCapture");let Pn=0;for(const jn of Rt.media){if("video"===jn.Nk&&Pn<Ct.video.length){const si=Ct.video[Pn],vi=jn.attributes;si.bk=qt(vi,"video.clientViewportWd"),si.kk=qt(vi,"video.clientViewportHt"),si.yk=qt(vi,"video.maxFPS"),si.Ck=qt(vi,"video.initialBitrateKbps"),si.Ek=qt(vi,"video.initialPeakBitrateKbps"),si.Ik=qt(vi,"vqos.bw.maximumBitrateKbps"),si.Mk=qt(vi,"vqos.bw.minimumBitrateKbps"),si.Tk=gn(vi,"video.mapRtpTimestampsToFrames"),si.Pk=qt(vi,"video.dynamicRangeMode"),si.bitDepth=qt(vi,"video.bitDepth"),Pn++}"application"===jn.Nk&&(Ct.TD.MD=qt(jn.attributes,"ri.partialReliableThresholdMs"),Ct.TD.PD=qt(jn.attributes,"ri.hidDeviceMask"),Ct.TD.rc=qt(jn.attributes,"ri.enablePartiallyReliableTransferGamepad"),Ct.TD.ac=tn(jn.attributes,"ri.enablePartiallyReliableTransferHid"))}let Bn=Rt.Rk.get("general.turnInfo"),ei=Rt.Rk.get("general.iceTransportPolicy");return Bn.length&&ei.length&&(n.Log.i("{eb7c2d0}","{3cd9339}",Bn.split("|").map(jn=>{const[si,vi,,bi]=jn.split(",");return`${si} (${bi})`}).join(" | ")),n.Log.i("{eb7c2d0}","{f32ebdb}",ei),Ct.yN=function(jn,si){const vi=[];for(const bi of jn.split("|")){const[$i,er,nr]=bi.split(",").map(cs=>cs.trim());$i&&er&&nr?vi.push({urls:$i,username:er,credential:nr}):n.Log.w("{eb7c2d0}","{d516cac}",bi)}return{iceServers:vi,iceTransportPolicy:"0"==si?"all":"relay"}}(Bn,ei)),Et}(Z,ot)?{config:Z,YN:Tn(ot,re)}:{error:3237093918};var Ct,Rt}(this.dP,c,p,this.Rs);return F.config&&F.YN?this.dP=F.config:this.xR({code:null!==(O=F.error)&&void 0!==O?O:3237093910}),F.YN}Xp(c){var p,O;null===(p=this.wD)||void 0===p||p.Xp(c),window.setTimeout(()=>this.uv()),null===(O=this.tg)||void 0===O||O.Xp(c)}uv(){var c,p;this.RD||window.requestAnimationFrame(this.PR),null===(c=this.tg)||void 0===c||c.uv(),null===(p=this.wD)||void 0===p||p.uv()}toggleOnScreenStats(c=!1,p){Sn.isInternalUser&&(this.XN()?this.wD.toggleOnScreenStats(c,p):this.Km("Stats is OFF. Please enable by ctrl+alt+F5/F6"))}Om(){if(this.XN())return this.wD.Om()}Zw(){this.FD?(this.Jy.stopProfiling(),this.FD=!1,this.jN(),this.Km("Profiler: OFF, Stats: OFF")):(this.cN(),this.JN(),this.Km("Profiler: ON, Stats: ON"))}tS(){this.XN()?(this.jN(),this.Km("Stats: OFF")):(this.JN(),this.Km("Stats: ON"))}sS(){var c;null===(c=this.wD)||void 0===c||c.sS(0),this.Km("User marker added")}eS(){this.AN({videoQualitySnapshot:{}})}XN(){var c;return!(null===(c=this.wD)||void 0===c||!c.isEnabled())}JN(){var c;null===(c=this.wD)||void 0===c||c.OT()}jN(){var c;null===(c=this.wD)||void 0===c||c.NT()}bN(c,p){const O=JSON.stringify(p),F={peer_msg:{from:this.id,to:c,msg:O},ackid:this.yM.uo()};n.Log.d("{93c7910}","{7ecb902}",c,O.length,Hn(xi(JSON.stringify(F)))),this.UR?this.UR.send(F):this.Jy.BM(F)}lM(){return this.wD?this.wD.lM():0}Vy(c){var p,O;let F=null===(p=this.wD)||void 0===p?void 0:p.Vy(c);return void 0!==F&&"UNKNOWN"!==F||(F=null===(O=this.dP.video[c])||void 0===O?void 0:O.Dk),F}toggleUserInput(c,p){this.tg?this.tg.toggleUserInput(c,p):n.Log.e("{93c7910}","{5a0e299}",c)}toggleRsdmm(c){var p;null===(p=this.tg)||void 0===p||p.toggleRsdmm(c)}Km(c){this.kR.innerHTML=c,this.kR.style.display="block",this.OD&&clearTimeout(this.OD),this.OD=window.setTimeout(()=>{this.kR.style.display="none"},1e3)}cN(){this.Jy.startProfiling({stats:{from:this.id,to:this.DD}}),this.FD=!0}static $N(c,p){const O=yr(c);for(let F=0;F<O.length&&F<p.length;F++){const Z=O[F],re="b=AS:"+p[F].max;let Oe=Z.lines.length;for(const[je,ot]of Z.lines.entries())if(!(ot.startsWith("m=")||ot.startsWith("i=")||ot.startsWith("c="))){if(ot.startsWith("b=")){n.Log.d("{93c7910}","{e77177e}",je),Z.lines[je]=re,Oe=-1;break}Oe=je;break}-1!==Oe&&(n.Log.d("{93c7910}","{3dfc348}",Oe),Z.lines.splice(Oe,0,re))}}static WN(c){const p=c.BN.find(Rt=>{var Et;return null===(Et=Rt.lines[0])||void 0===Et?void 0:Et.startsWith("m=audio")});if(!p)return;let O,F,Z,re;for(const[Rt,Et]of p.VN)"multiopus"===Et.codec?(O=Rt,Z=Et.channels,n.Log.i("{93c7910}","{898cad9}",O,Z)):"red"===Et.codec&&(F=Rt,re=Et.channels,n.Log.i("{93c7910}","{8c08358}",F,re));if(!O)return void n.Log.d("{93c7910}","{b49e215}");let Oe=[],je=[],ot="";const Ct=/^a=(?:rtpmap|rtcp-fb|fmtp):([0-9]+)/;for(const Rt of p.lines){const Et=Rt.match(Ct);if(!Et)continue;const qt=Et[1];qt===O?(Oe.push(Rt),Rt.includes("fmtp")&&(ot=Rt.split(" ")[1])):qt===F&&je.push(Rt)}return{ZN:F,tx:O,ix:je,sx:Oe,nx:Z??"",hx:re??"",ox:ot}}static _N(c,p){const O=c.BN.find(re=>{var Oe;return null===(Oe=re.lines[0])||void 0===Oe?void 0:Oe.startsWith("m=audio")});if(!O)return;if(p.hx&&p.hx!==p.nx){n.Log.w("{93c7910}","{ad53601}",p.hx,p.nx);const re=O.lines[0].split(" ");for(let je=3;je<re.length;++je)if(re[je]===p.ZN){re.splice(je,1);break}O.lines[0]=re.join(" ");const Oe=/^a=(?:rtpmap|rtcp-fb|fmtp):([0-9]+)/;O.lines=O.lines.filter(je=>{const ot=je.match(Oe);return!ot||ot[1]!==p.ZN})}const F=/^a=rtpmap:([0-9]+)/,Z=/^a=fmtp:([0-9]+)/;for(const[re,Oe]of O.lines.entries()){const je=Oe.match(F);if(je){const Ct=je[1];Ct===p.tx?O.lines[re]=rn(Oe,"opus","2"):Ct===p.ZN&&(O.lines[re]=rn(Oe,void 0,"2"))}const ot=Oe.match(Z);if(ot&&ot[1]===p.tx){const Ct=Oe.split(" "),Rt=Ct[1].split(";").filter(Et=>!Et.startsWith("channel_mapping")&&!Et.startsWith("num_streams")&&!Et.startsWith("coupled_streams"));O.lines[re]=Ct[0]+" "+Rt.join(";")}}}static QN(c,p){const O=c.BN.find(re=>{var Oe;return null===(Oe=re.lines[0])||void 0===Oe?void 0:Oe.startsWith("m=audio")});if(!O)return;const F=/^a=rtpmap:([0-9]+)/,Z=/^a=fmtp:([0-9]+)/;for(const[re,Oe]of O.lines.entries()){const je=Oe.match(F);if(je){const Ct=je[1];Ct===p.tx?O.lines[re]=rn(Oe,"multiopus",p.nx):Ct===p.ZN&&(O.lines[re]=rn(Oe,void 0,p.hx))}const ot=Oe.match(Z);if(ot&&ot[1]===p.tx){const Ct=Oe.split(" ");O.lines[re]=Ct[0]+" "+p.ox}}}static KN(c){var p,O;const F=/^a=fmtp:([0-9]+)/;for(const Z of c.BN)if(null!==(p=Z.lines[0])&&void 0!==p&&p.startsWith("m=audio"))for(const[re,Oe]of Z.lines.entries()){const je=Oe.match(F);je&&"opus"===(null===(O=Z.VN.get(je[1]))||void 0===O?void 0:O.codec)&&(Z.lines[re]=Oe+";stereo=1",n.Log.d("{93c7910}","{6540768}",Z.lines[re]))}}static GN(c,p){var O;const F=yr(c);for(let Z=0;Z<F.length&&Z<p.length;Z++){const re=F[Z],Oe=p[Z];if(re.lines.some(je=>je.startsWith("a=imageattr")))n.Log.d("{93c7910}","{b38bf22}");else for(const[je,ot]of re.lines.entries())if(ot.startsWith("a=rtpmap:")){const Ct=ot.slice(9,ot.indexOf(" ")),Rt=null===(O=re.VN.get(Ct))||void 0===O?void 0:O.codec;"H264"!==Rt&&"H265"!==Rt&&"AV1"!==Rt||(re.lines[je]=ot+`\r\na=imageattr:${Ct} send [x=[${Oe.minWidth}:${Oe.maxWidth}],y=[${Oe.minHeight}:${Oe.maxHeight}],fps=[${Oe.HN}:${Oe.yk}]]`)}}}static zN(c,p){var O;const F=yr(c);for(let Z=0;Z<F.length&&Z<p.length;Z++){const re=F[Z],Oe=p[Z];let je="";je+=";x-google-max-bitrate="+Oe.max,je+=";x-google-min-bitrate="+Oe.min,je+=";x-google-start-bitrate="+Oe.qN;const ot=/^a=fmtp:([0-9]+)/;for(const[Ct,Rt]of re.lines.entries()){const Et=Rt.match(ot);Et&&"H264"===(null===(O=re.VN.get(Et[1]))||void 0===O?void 0:O.codec)&&(re.lines[Ct]+=je)}}}static LN(c,p,O){const F=yr(c);for(let Z=0;Z<O.length;Z++){const re=F[Z],Oe=O[Z];let je;if(re){const ot=new Set;for(const Ct of re.VN.values()){const Rt=Ct.codec;"H264"!==Rt&&"H265"!==Rt&&"AV1"!==Rt||ot.add(Rt)}for(const Ct of p)if(ot.has(Ct)){n.Log.i("{93c7910}","{304c3b1}",Ct),je=Ct;break}}void 0!==je?Oe.Dk=je:(n.Log.i("{93c7910}","{81357e4}"),Oe.Dk="H264")}}getVirtualGamepadHandler(){var c;return null===(c=this.tg)||void 0===c?void 0:c.getVirtualGamepadHandler()}oM(){var c,p,O,F,Z,re,Oe,je,ot,Ct,Rt,Et;return{py:null!==(p=null===(c=this.ID[0])||void 0===c?void 0:c.paused)&&void 0!==p&&p,my:null!==(F=null===(O=this.Sb)||void 0===O?void 0:O.paused)&&void 0!==F&&F,Tm:null!==(re=null===(Z=this.tg)||void 0===Z?void 0:Z.Tm())&&void 0!==re&&re,sg:null!==(je=null===(Oe=this.tg)||void 0===Oe?void 0:Oe.ES())&&void 0!==je&&je,gy:this.CD.getMicState(),fS:null!==(Ct=null===(ot=this.tg)||void 0===ot?void 0:ot.fS())&&void 0!==Ct&&Ct,keyboardLayout:this.keyboardLayout,appLaunchMode:this.appLaunchMode,inputMode:null!==(Et=null===(Rt=this.tg)||void 0===Rt?void 0:Rt.NS())&&void 0!==Et?Et:""}}iS(){this.perfIndicator=!this.perfIndicator,this.AN({perfIndicator:{on:this.perfIndicator}})}toggleStutterIndicator(c){this.stutterIndicator=c??!this.stutterIndicator,this.AN({stutterIndicator:{on:this.stutterIndicator}})}Qw(){this._D^=1,this.AN({riDeviceOverlay:{bitmap:this._D}})}ER(){var c;null===(c=this.tg)||void 0===c||c.Fw()}Kw(){var c;return!(null===(c=this.ED)||void 0===c||!c.lx())&&(this.AN({latencyTrigger:!0}),!0)}Xw(){var c;null!==(c=this.ED)&&void 0!==c&&c.ux()&&this.AN({pcmDumpTrigger:!0})}Jp(){var c;null===(c=this.ED)||void 0===c||c.Ax()}Yw(){this.sendCustomMessage({messageType:"GpuViewStartRequest",messageRecipient:"GPUViewTraceControl",data:"GpuView"}),n.Log.i("{93c7910}","{0915cd3}")}sendTextInput(c){var p;null===(p=this.tg)||void 0===p||p.sendTextInput(c)}sendBulkPayload(c,p){var O;null===(O=this.tg)||void 0===O||O.nl(c,p)}setVirtualKeyboardState(c){var p;null===(p=this.tg)||void 0===p||p.setVirtualKeyboardState(c)}setVideoTransforms(c,p,O){var F;null===(F=this.tg)||void 0===F||F.Ag(c,p,O)}sendCustomMessage(c){const p={customMessage:JSON.stringify(c)};this.AN(p)}setStreamingMaxBitrate(c,p,O){O||(this.AN({setMaxBitrate:{streamIndex:c,maxBitrate:p}}),n.Log.d("{93c7910}","{6bbc1a2}",p))}setDrcDfcState(c,p,O){O||(this.AN({setDrcState:{streamIndex:c,state:!!(1&p)}}),this.AN({setDfcState:{streamIndex:c,state:!!(2&p)}}),n.Log.d("{93c7910}","{0ed76f3}",p))}startInputPlayback(c){var p;null===(p=this.tg)||void 0===p||p.startInputPlayback(c)}aM(c){this.AN({etwPrint:c})}CN(c,p){this.AN({etwPrintPair:{key:c,value:p}})}vx(c,p,O){const F=p?.error;this.RD||this.telemetry.Ke("ChannelError",c,F?.name,F?.message,O?.toString()),n.Log.e("{93c7910}","{db7ae96}",c,F?.name,F?.message)}zT(){this.Jy.UM(this.tc.bufferedAmount,this.yg.Av()),this.yg.vv()}sendKeyEvent(c){var p;null===(p=this.tg)||void 0===p||p.sendKeyEvent(c)}Ic(c){this.Xd.onBulkPayload&&this.Xd.onBulkPayload(c)}DN(){this.qD.length>0&&"connecting"!==an(this.XR)&&"connecting"!==an(this.YR)&&"connecting"!==an(this.tc)&&(!this.sc||"connecting"!==an(this.sc))&&15859712===this.QR()&&this.xR()}PN(c){let p=function(O){let F;const Z=O.getAudioTracks();return Z.length&&(F=Z[0]),F}(c);p&&(p.onunmute=()=>{this.WD=!1})}setKeyboardLayout(c){this.keyboardLayout=c,this.tg?(this.sendCustomMessage({messageType:"kbLayout",messageRecipient:"KBLayoutChange",data:c}),this.tg.setKeyboardLayout(c)):this.sR=!0}RR(){n.Log.d("{93c7910}","{440d709}",this.vr.yd(),performance.timeOrigin)}mT(c,p){const O=c.label;let F=!1;c.onopen=()=>{var Z;n.Log.d("{93c7910}","{8e9ee5d}",O),null===(Z=p.open)||void 0===Z||Z.call(p),p.errorCode&&this.DN()},c.onclosing=()=>{n.Log.d("{93c7910}","{d0c8ae7}",O),F=!0},c.onclose=()=>{var Z;n.Log.d("{93c7910}","{a3c9826}",O),null===(Z=p.close)||void 0===Z||Z.call(p),p.errorCode&&this.jR()},c.onerror=Z=>{n.Log.e("{93c7910}","{fcd64bb}",O),F&&p.errorCode?this.JR():(this.vx(O,Z,c.bufferedAmount),p.errorCode&&this.VR(p.errorCode))}}EN(){var c,p;let O=0;this.pf.nm()&&(O|=2),this.pf.hD()&&(O|=1),this.pf._m()&&(O|=16);for(let F=0;F<this.dP.video.length;F++){const Z=null!==(p=null===(c=this.wD)||void 0===c?void 0:c.gI(F))&&void 0!==p?p:0,re={windowState:{streamIndex:F,frameNumber:Z,windowStateFlags:O}};n.Log.i("{93c7910}","{ca317d5}",O.toString(16),Z),this.AN(re)}}TN(){var c,p,O;let F=0;this.pf.oD()&&(F|=4),this.pf.rD()&&(F|=1),null===(c=this.wD)||void 0===c||c.dE(F);for(let Z=0;Z<this.dP.video.length;Z++){const re=null!==(O=null===(p=this.wD)||void 0===p?void 0:p.gI(Z))&&void 0!==O?O:0;this.AN({systemState:{streamIndex:Z,frameNumber:re,systemStateFlags:F}}),n.Log.i("{93c7910}","{455ccc0}",F.toString(16),re)}}MN(){var c,p,O;const F=this.pf.aD();if(-1!=F){null===(c=this.wD)||void 0===c||c.AE(F);for(let Z=0;Z<this.dP.video.length;Z++){const re=null!==(O=null===(p=this.wD)||void 0===p?void 0:p.gI(Z))&&void 0!==O?O:0;this.AN({cpuUsage:{streamIndex:Z,frameNumber:re,procCpuUsage:0,totalCpuUsage:F}}),n.Log.i("{93c7910}","{9bb3298}",F.toString(),re)}}}oR(){this.XN()?this.EN():n.Log.w("{93c7910}","{76bcede}")}aR(){this.XN()?this.TN():n.Log.w("{93c7910}","{20ab5a1}")}cR(){this.XN()?this.MN():n.Log.w("{93c7910}","{7b1f129}")}KP(c){var p;this.XN()?null===(p=this.wD)||void 0===p||p.cE(c):n.Log.w("{93c7910}","{1b4b74e}")}rE(c){var p;return null===(p=this.wD)||void 0===p?void 0:p.rE(c)}}function Pt(y){const c=Be.cD(y);let p={xN:[],BN:[]};const O=new RegExp("^a=rtpmap:([0-9]+) ([^/]+)/([0-9]+)(?:/([0-9]+))?","gm");for(const F of c)if(F.startsWith("m=")){const Z=new Map;for(const Oe of F.matchAll(O))Z.set(Oe[1],{codec:Oe[2],clockRate:Oe[3],channels:Oe[4]});const re={lines:Be.dD(F),VN:Z};p.BN.push(re)}else p.xN=Be.dD(F);return p}function Re(y){return[...y.xN,...y.BN.flatMap(c=>c.lines)].join("\r\n")+"\r\n"}function rn(y,c,p){const O=y.split(" "),F=O[1].split("/");return c&&(F[0]=c),p&&(F[2]=p),O[0]+" "+F.join("/")}function an(y){var c;return null!==(c=y?.readyState)&&void 0!==c?c:"connecting"}function Hn(y){return(y=y.replace(/((ice-pwd|ufrag)(:|\s))((?!(\\|\s)).)*/g,"$1***")).replace(/(turn:[^,]+,[^,]+),[^,]+/g,"$1,***")}function xi(y){const c=new RegExp('(candidate:[^"\\r\\n\\\\]+)(\\b\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\b)',"g");let p="";for(;p!==y;)p=y,y=y.replace(c,"$1***");return y}function yr(y){return y.BN.filter(c=>{var p;return null===(p=c.lines[0])||void 0===p?void 0:p.startsWith("m=video")})}class ts{constructor(c,p){this.mx=window.indexedDB,this.version=2,this.gx=!1,this.wx=!1,this.name=c,this.Sx=p}open(){return new Promise((c,p)=>{try{if(this.mx){let O=this.mx.open(this.name,this.version);O.onerror=F=>{p(Vn(18,`${this.name} db opening failed`,O.error))},O.onsuccess=F=>{this.bx(O.result),c()},O.onupgradeneeded=F=>{n.Log.i("{10dc2cc}","{1f70767}",F.oldVersion,F.newVersion),this.bx(O.result);const Z=re=>{var Oe;const je=null===(Oe=this.kx)||void 0===Oe?void 0:Oe.createObjectStore(re.yx,re.Ix);re.Ix.keyPath&&je?.createIndex(re.Cx,re.Ix.keyPath,{unique:!0})};switch(F.oldVersion){case 0:Z(this.Sx[0]);case 1:Z(this.Sx[1])}},O.onblocked=F=>{p(Vn(19,`${this.name} db blocked during opening`,O.error))}}else p(Vn(17,"Indexdb object not found"))}catch(O){p(Vn(20,"Unexpected Exception in open",O))}})}Ex(){if(!this.mx)return Vn(17,"Indexdb object not found");if(!this.kx)return Vn(1,"Db not yet open");if(this.gx){const c="hidden"===document.visibilityState;return Vn(2,"Db is closing, unexpectedly: "+this.wx+", visibility state hidden: "+c)}}get(c,p){const O=this.Ex();return O?Promise.reject(O):new Promise((F,Z)=>{try{const re=this.kx.transaction(c,"readonly"),Oe=re.objectStore(c);re.oncomplete=ot=>{n.Log.i("{10dc2cc}","{82638ba}")};const je=Oe.get(p);je.onsuccess=()=>{F(je.result)},je.onerror=ot=>{Z(Vn(32,"get method failed",re.error))}}catch(re){Z(Vn(33,"Unexpected Exception happened in get",re))}})}set(c,p){const O=this.Ex();return O?Promise.reject(O):new Promise((F,Z)=>{try{const re=this.kx.transaction(c,"readwrite"),Oe=re.objectStore(c);re.oncomplete=ot=>{n.Log.i("{10dc2cc}","{f993875}")};const je=Oe.put(p);je.onsuccess=()=>{F()},je.onerror=ot=>{Z(Vn(48,"put method failed",re.error))}}catch(re){Z(Vn(49,"Unexpected Exception happened in set",re))}})}delete(c,p){const O=this.Ex();return O?Promise.reject(O):new Promise((F,Z)=>{try{const re=this.kx.transaction(c,"readwrite"),Oe=re.objectStore(c);re.oncomplete=ot=>{n.Log.i("{10dc2cc}","{bc32bd7}")};const je=Oe.delete(p);je.onsuccess=()=>{F()},je.onerror=ot=>{Z(Vn(64,"delete method failed",re.error))}}catch(re){Z(Vn(65,"Unexpected Exception in delete",re))}})}clear(c){const p=this.Ex();return p?Promise.reject(p):new Promise((O,F)=>{try{const Z=this.kx.transaction(c,"readwrite"),re=Z.objectStore(c);Z.oncomplete=je=>{n.Log.i("{10dc2cc}","{30f23d1}")};const Oe=re.clear();Oe.onsuccess=()=>{O()},Oe.onerror=je=>{F(Vn(80,"clear method failed)",Z.error))}}catch(Z){F(Vn(81,"Unexpected Exception happened in clear",Z))}})}getAll(c){const p=this.Ex();return p?Promise.reject(p):new Promise((O,F)=>{try{const Z=this.kx.transaction(c,"readonly"),re=Z.objectStore(c);Z.oncomplete=je=>{n.Log.i("{10dc2cc}","{59d1f78}")};const Oe=re.getAll();Oe.onsuccess=()=>{O(Oe.result)},Oe.onerror=je=>{F(Vn(96,"getAll method failed",Z.error))}}catch(Z){F(Vn(97,"Unexpected Exception in getAll",Z))}})}close(){var c;this.gx=!0,null===(c=this.kx)||void 0===c||c.close()}bx(c){this.gx=!1,this.wx=!1,this.kx=c,this.kx.onversionchange=p=>{n.Log.w("{10dc2cc}","{65276d8}"),this.close(),this.kx=void 0},this.kx.onclose=p=>{n.Log.w("{10dc2cc}","{342f7f8}"),this.gx=!0,this.wx=!0}}}const gr=new class{constructor(){var y;this.Tx=new Map([["Ethernet",n.NetworkType.ETHERNET],["5GHz_WiFi",n.NetworkType.WIFI_5_0],["2.4GHz_WiFi",n.NetworkType.WIFI_2_4],["Others",n.NetworkType.OTHER],["disconnected",n.NetworkType.UNKNOWN],["wifi",n.NetworkType.WIFI],["ethernet",n.NetworkType.ETHERNET],["none",n.NetworkType.UNKNOWN],["bluetooth",n.NetworkType.BLUETOOTH],["wimax",n.NetworkType.WIMAX],["other",n.NetworkType.OTHER],["mobile",n.NetworkType.MOBILE],["unknown",n.NetworkType.UNKNOWN],["NONE",n.NetworkType.UNKNOWN],["UNKNOWN",n.NetworkType.UNKNOWN],["ETHERNET",n.NetworkType.ETHERNET],["WIFI",n.NetworkType.WIFI],["NET_PROXY",n.NetworkType.OTHER],["2G",n.NetworkType.MOBILE_2G],["2.5G",n.NetworkType.MOBILE_2G],["3G",n.NetworkType.MOBILE_3G],["4G",n.NetworkType.MOBILE_4G]]),this.Mx=n.NetworkType.UNKNOWN,this.Px=[],window.addEventListener("GFNNetworkInfo",p=>{const O=p;n.Log.d("{aac1655}","{2925c9d}",O.detail.state),this.Dx(O.detail.state)});const c=navigator.connection;if(c?.type&&(this.Dx(c.type),c.addEventListener("change",p=>{var O;const F=null===(O=navigator.connection)||void 0===O?void 0:O.type;F&&(n.Log.d("{aac1655}","{4a9e05b}",F),this.Dx(F))})),null===(y=window.tizen)||void 0===y?void 0:y.systeminfo){const p="NETWORK",O=F=>{const Z=F.networkType;Z&&(n.Log.d("{aac1655}","{e9b5f27}",Z),this.Dx(Z))};try{window.tizen.systeminfo.getPropertyValue(p,O),window.tizen.systeminfo.addPropertyValueChangeListener(p,O)}catch(F){n.Log.w("{aac1655}","{7d035ae}",F)}}}Dx(y){const c=this.Tx.get(y);if(c){this.Mx=c;for(const p of this.Px)p(this.getCurrentNetworkType())}else n.Log.d("{aac1655}","{1e3c13d}",y)}registerCallback(y){this.Px.push(y)}unregisterCallback(y){const c=this.Px.findIndex(p=>p==y);-1!==c&&this.Px.splice(c,1)}getCurrentNetworkType(){return this.Mx}},Cr="exit-events",os="telemetry-events";class Xo{constructor(){this.Rx={userId:"",sessionId:"",eventPayload:void 0,name:""},this.Nx={},this.xx=!1,this.Ox=!1,this.Bx=!1,this.Fx=!1,this.Lx="",this.Ux="",this.HM=[],this.Gx=!1,this.Hx=new ts("ragnarok",[{yx:Cr,Ix:{keyPath:["userId","sessionId","name"]},Cx:"exit-event-index"},{yx:os,Ix:{keyPath:["userId","sessionId","name","eventPayload.ts"]},Cx:"telemetry-event-index"}]),this.Vx=this.Hx.open().catch(p=>{this.Gx=!0,this.Wx(p,"TelemetryEventProcessorConstruction",!0)})}_x(c){this.qx=c}$x(c){let p=!1;return this.Nx.commonData&&(c!==n.GdprLevel.FUNCTIONAL||"Full"!==this.Nx.commonData.deviceGdprFuncOptIn&&"Temp"!==this.Nx.commonData.deviceGdprFuncOptIn?(c===n.GdprLevel.TECHNICAL&&"Full"===this.Nx.commonData.gdprTechOptIn||c===n.GdprLevel.BEHAVIORAL&&"Full"===this.Nx.commonData.gdprBehOptIn)&&(p=!0):p=!0),p}zx(c){this.Nx.commonData?this.$x(c.gdprLevel)&&(window.navigator.onLine?this.Kx(this.Qx(c)):this.Yx({userId:this.Nx.commonData.userId,sessionId:this.Nx.commonData.sessionId,name:c.name,eventPayload:c})):this.HM.push(c)}Qx(c){let p={};if(!this.Nx.commonData)return p;const O={name:c.name,ts:c.ts,parameters:c.parameters};this.Xx(p,this.Nx);const F=p.commonData;return F.clientId=c.clientConfig.clientId,F.eventSchemaVer=c.clientConfig.eventSchemaVer,F.sentTs=(new Date).toISOString(),F.events=[O],p}Kx(c){var p,O,F,Z;if(null!==(p=c.config)&&void 0!==p&&p.server&&null!==(O=c.config)&&void 0!==O&&O.version){const re={method:"POST",headers:{"Content-Type":"application/json","X-Event-Protocol":null!==(Z=null===(F=c.commonData)||void 0===F?void 0:F.eventProtocol)&&void 0!==Z?Z:"1.5"},body:JSON.stringify(c.commonData),retryCount:3,timeout:2e3};n.Log.i("{f7c1592}","{056661f}",re.body),n.performHttpRequest(this.jx(c.config),re).then(Oe=>{}).catch(Oe=>{})}}Jx(c,p){this.Ux=c,this.Lx=p}Zx(c){var p;n.Log.d("{f7c1592}","{01dcfe5}",null===(p=c.parameters)||void 0===p?void 0:p.sessionId),this.tO(c),this.iO(this.Qx(this.Rx.eventPayload))}sO(c){n.Log.d("{f7c1592}","{badefed}",c),this.eO(c),this.Rx.eventPayload=void 0}Xx(c,p){c.commonData=p.commonData?Object.assign({},p.commonData):void 0,c.experiments=[],c.config=p.config,c.telemetryEventIds=p.telemetryEventIds}updateEventDataElements(c){var p;if(this.Xx(this.Nx,c),this.Nx.commonData){n.Log.d("{f7c1592}","{66f209c}");for(let O of this.HM)this.zx(O);this.HM=[]}this.Rx.userId=null===(p=this.Nx.commonData)||void 0===p?void 0:p.userId}tO(c){var p,O,F;this.Rx.userId=null!==(O=null===(p=this.Nx.commonData)||void 0===p?void 0:p.userId)&&void 0!==O?O:"",this.Rx.sessionId=null!==(F=c.parameters.sessionId)&&void 0!==F?F:"",this.Rx.name=c.name,this.Rx.eventPayload=c}nO(c,p,O,F,Z,re,Oe,je){const Ct=this.hO({exitErrorCode:c,sessionId:p,subSessionId:O,zoneAddress:F,streamDuration:Z,frameCount:re,codec:Oe,isResume:je,sleep:!1,networkTestSessionId:""});return this.tO(Ct),Ct}hO(c){var p;const O=new La({zoneAddress:c.zoneAddress,networkSessionId:null!==(p=c.networkTestSessionId)&&void 0!==p?p:"",sessionId:c.sessionId,subSessionId:c.subSessionId,resumeType:Dn(c.isResume),overrideConfigType:Sn.xn.type,overrideConfigVersion:Sn.xn.version,exitReason:Ps(c.connectivityInfo,c.sleep),result:c.exitErrorCode,frameCount:c.frameCount,codec:ga(c.codec),ipVersion:"UNKNOWN",streamDuration:Math.round(c.streamDuration),networkType:Ei(gr.getCurrentNetworkType()),streamingProfileGuid:this.oO(),systemInfoGuid:this.rO(),cmsId:String(this.Ux)});return{name:O.name,gdprLevel:O.gdprLevel,parameters:O.parameters,ts:O.ts,clientConfig:Co}}Wx(c,p,O){var F,Z,re,Oe;if(n.Log.e("{f7c1592}","{146ec91}",p,de(c.code),c.description),O){const je=null!==(re=null!==(Z=null===(F=c.error)||void 0===F?void 0:F.message)&&void 0!==Z?Z:c.description)&&void 0!==re?re:`Exception in ${p}`;this.qx?this.qx(c.error,je,"telemetryeventprocessor.ts",c.code,0,!0,null===(Oe=c.error)||void 0===Oe?void 0:Oe.name):n.Log.w("{f7c1592}","{12e0846}")}}aO(c){return!!c.userId&&!!c.sessionId&&!!c.name}Yx(c){!this.Gx&&this.aO(c)&&this.Vx.then(()=>this.Hx.set(os,c)).then(()=>{n.Log.i("{f7c1592}","{f03d70b}")}).catch(p=>{const O=!this.Bx;this.Bx=!0,this.Wx(p,"cacheTelemetryEventInDb",O)})}dO(){return this.Gx||!this.aO(this.Rx)?Promise.resolve():this.Vx.then(()=>this.Hx.set(Cr,this.Rx)).then(()=>{n.Log.i("{f7c1592}","{5d026f8}")}).catch(c=>{this.Wx(c,"cacheExitEventInDb",!this.xx),this.xx||(this.xx=!0)})}jx(c){return c.server+"/"+c.version+"/events/json"}iO(c){var p,O;if(null!==(p=c.config)&&void 0!==p&&p.server&&null!==(O=c.config)&&void 0!==O&&O.version&&c.experiments){c.commonData&&(c.commonData.sentTs=(new Date).toISOString());const F=JSON.stringify(c.commonData),Z=new Blob([F],{type:"text/plain"});let re=!1;re=navigator.sendBeacon(this.jx(c.config),Z),n.Log.i("{f7c1592}","{b9367c5}",re,F)}}eO(c){this.Gx||c&&this.Vx.then(()=>this.Hx.clear(Cr)).then(()=>{n.Log.i("{f7c1592}","{1b8f127}")}).catch(p=>{this.Wx(p,"clearExitEventStoreInDb",!this.Ox),this.Ox||(this.Ox=!0)})}cO(){return this.Gx?Promise.resolve([]):this.Vx.then(()=>this.Hx.getAll(Cr)).then(c=>{n.Log.i("{f7c1592}","{d938300}",c.length);let p=[];if(c.length>0)for(const O of c)O.eventPayload&&p.push(O.eventPayload);return p}).catch(c=>(this.Wx(c,"getCachedExitEvents",!0),Promise.reject()))}lO(c){return this.Gx?Promise.resolve():this.Vx.then(()=>this.Hx.getAll(Cr)).then(p=>{if(n.Log.i("{f7c1592}","{ca568ff}",p.length),p.length>0){for(const O of p)O.eventPayload&&this.iO(this.Qx(O.eventPayload));this.sO(c)}}).catch(p=>{this.Wx(p,"sendCachedExitEvent",!0)})}uO(){this.Gx||this.Vx.then(()=>this.Hx.clear(os)).then(()=>{n.Log.i("{f7c1592}","{8f62936}")}).catch(c=>{this.Wx(c,"clearEventStoreInDb",!this.Fx),this.Fx||(this.Fx=!0)})}AO(){this.Gx||window.navigator.onLine&&this.Vx.then(()=>this.Hx.getAll(os)).then(c=>{if(n.Log.i("{f7c1592}","{d4e574c}",c.length),c.length>0){this.uO();for(const p of c)p.eventPayload&&this.zx(p.eventPayload)}}).catch(c=>{n.Log.e("{f7c1592}","{aaaa3de}",c.code,c.description)})}vO(c,p){this.xx=!1,this.Ox=!1,this.Bx=!1,this.Fx=!1}oO(){var c,p,O;return null!==(O=null===(p=null===(c=this.Nx)||void 0===c?void 0:c.telemetryEventIds)||void 0===p?void 0:p.streamingProfileGuid)&&void 0!==O?O:""}rO(){var c,p,O;return null!==(O=null===(p=null===(c=this.Nx)||void 0===c?void 0:c.telemetryEventIds)||void 0===p?void 0:p.systemInfoGuid)&&void 0!==O?O:""}fO(){return this.Ux}}function Ps(y,c){var p;return c?"SleepExit":null!==(p=y?.description)&&void 0!==p?p:"undefined"}class sl{constructor(){this.sessionId="",this.subSessionId="",this.cmsId="",this.isResume=!1,this.zoneAddress="",this.pO=0,this.Ln=new Map,this.Un=0,this.mO=0,this.gO=0,this.wO=n.TelemetryModule.createTelemetryProvider(Co)}SO(c,p,O,F,Z){this.subSessionId=c,this.sessionId=p,this.cmsId=O,this.isResume=F,this.zoneAddress=Z}bO(){this.subSessionId="",this.sessionId="",this.cmsId="",this.isResume=!1,this.zoneAddress="",this.pO=0,this.Ln.clear(),this.Un=0}kO(c,p,O){var F,Z,re;const Oe=n.TelemetryModule.getTelemetryEventIds(),je=new _o({zoneAddress:this.zoneAddress,networkSessionId:null!==(F=Oe.networkSessionId)&&void 0!==F?F:"",sessionId:this.sessionId,subSessionId:this.subSessionId,resumeType:Dn(this.isResume),overrideConfigType:Sn.xn.type,overrideConfigVersion:Sn.xn.version,result:p,codec:ga(O),ipVersion:"UNKNOWN",launchDuration:Math.round(c),networkType:Ei(gr.getCurrentNetworkType()),streamingProfileGuid:null!==(Z=Oe.streamingProfileGuid)&&void 0!==Z?Z:"",systemInfoGuid:null!==(re=Oe.systemInfoGuid)&&void 0!==re?re:"",cmsId:this.cmsId});this.processEvent(je)}yO(c,p,O,F,Z,re){const Oe=Ps(Z,re);this.nO(c,Oe,p,O,F),Z.Pn?this.IO():n.Log.d("{9838627}","{30029be}",c,Oe)}nO(c,p,O,F,Z){var re,Oe,je;const ot=n.TelemetryModule.getTelemetryEventIds(),Ct=new La({zoneAddress:this.zoneAddress,sessionId:this.sessionId,subSessionId:this.subSessionId,resumeType:Dn(this.isResume),cmsId:this.cmsId,overrideConfigType:Sn.xn.type,overrideConfigVersion:Sn.xn.version,exitReason:p,result:c,frameCount:Z,codec:ga(F),ipVersion:"UNKNOWN",streamDuration:Math.round(O),networkType:Ei(gr.getCurrentNetworkType()),streamingProfileGuid:null!==(re=ot.streamingProfileGuid)&&void 0!==re?re:"",systemInfoGuid:null!==(Oe=ot.systemInfoGuid)&&void 0!==Oe?Oe:"",networkSessionId:null!==(je=ot.networkSessionId)&&void 0!==je?je:""});this.mO=this.wO.cacheEvent(Ct,this.mO)}Ac(c,p,O,F,Z,re,Oe){var je;if(!this.zn(p))return;c instanceof DOMException&&(c={name:c.name,message:c.message});const ot=new Pa({filename:O,lineno:F,stacktrace:null!==(je=c?.stack)&&void 0!==je?je:"",colno:Z,handled:Mt(re),category:Oe??"",message:p,moduleName:"RAGNAROK",sessionId:this.sessionId,subSessionId:this.subSessionId});this.processEvent(ot)}WR(c,p,O,F,Z,re){const Oe=new Io({retryCount:Z,sessionId:this.sessionId,subSessionId:this.subSessionId,serverId:O,url:c,overrideConfigType:Sn.xn.type,overrideConfigVersion:Sn.xn.version,disconnectionReason:F,cleanDisconnection:Mt(re),networkType:Ei(gr.getCurrentNetworkType()),statusCode:p?p.toString():"",cmsId:this.fO(),moduleName:"RAGNAROK"});this.processEvent(Oe)}CO(c,p,O,F,Z){const re=new Zo({featureName:c,supported:p?"SUPPORTED":"UNSUPPORTED",defaultEnabled:Mt(O),enabled:Mt(F),reason:Z,moduleName:"RAGNAROK",networkType:Ei(gr.getCurrentNetworkType()),overrideConfigType:Sn.xn.type,overrideConfigVersion:Sn.xn.version,sessionId:this.sessionId,subSessionId:this.subSessionId});this.processEvent(re)}Ke(c,p,O,F,Z){const re=new vo({key1:c??"",key2:p??"",key3:O??"",key4:F??"",key5:Z??"",moduleName:"RAGNAROK",networkType:Ei(gr.getCurrentNetworkType()),overrideConfigType:Sn.xn.type,overrideConfigVersion:Sn.xn.version,cmsId:this.fO(),sessionId:this.sessionId,subSessionId:this.subSessionId});this.processEvent(re)}Db(c,p,O,F,Z,re){const Oe=new fa({metricName:c,moduleName:"RAGNAROK",valueInt1:F,valueInt2:Z,valueInt3:re,valueString:p,valueDouble:O,networkType:Ei(gr.getCurrentNetworkType()),cmsId:this.fO(),sessionId:this.sessionId,subSessionId:this.subSessionId});this.processEvent(Oe)}Ju(c,p,O,F,Z,re,Oe,je,ot){if(this.pO>=50)return;this.pO++;const Ct=new Ko({deviceName:c,deviceType:"GAMEPAD",vendorId:p,productId:O,deviceIndex:F,reportIndex:Oe?0:F,hapticsSupported:Mt(Z),hapticsFeedbackCount:re,state:je,eventMapReceived:ot,eventMapProcessed:ot,sessionId:this.sessionId,subSessionId:this.subSessionId,cmsId:this.fO()});this.processEvent(Ct)}EO(c,p,O,F,Z,re){const Oe=new fs({eventSequence:O,sleepTime:c,error:F,timeToSleep:p,moduleName:"RAGNAROK",cmsId:this.fO(),sessionId:Z,subSessionId:re});this.processEvent(Oe)}TO(c){if(!this.gO){this.IO();const p=()=>{const O=de(c.MO());this.nO(O,O,c.PO(),c.Vy(),c.gI())};p(),this.gO=window.setInterval(p,12e4)}}DO(){this.gO&&(window.clearInterval(this.gO),this.gO=0)}processEvent(c){this.wO.processEvent(c)}IO(){this.wO.processCachedEvent(this.mO),this.mO=0}zn(c){var p;if(this.Un>=50)return!1;const O=null!==(p=this.Ln.get(c))&&void 0!==p?p:0;return!(O>=10||(this.Un++,this.Ln.set(c,O+1),0))}fO(){return this.cmsId}}class Aa extends sl{constructor(c,p){super(),this.Jh=c,this.RO=p,this.RO._x(this.Ac.bind(this))}NO(c){this.clientShutDownCallback=c}Qn(c){this.sessionId=c,this.pO=0}Yn(c){this.subSessionId=c,this.Ln.clear(),this.Un=0}Jx(c,p){this.RO.Jx(c,p)}xO(c,p,O,F,Z,re,Oe,je,ot){var Ct,Rt;const Et=this.getTelemetryEventIds(),qt=new _o({zoneAddress:F,networkSessionId:ot,sessionId:c,subSessionId:p,resumeType:Dn(O),overrideConfigType:Sn.xn.type,overrideConfigVersion:Sn.xn.version,result:re,codec:ga(Oe),ipVersion:"UNKNOWN",launchDuration:Math.round(Z),networkType:Ei(gr.getCurrentNetworkType()),streamingProfileGuid:null!==(Ct=Et.streamingProfileGuid)&&void 0!==Ct?Ct:"",systemInfoGuid:null!==(Rt=Et.systemInfoGuid)&&void 0!==Rt?Rt:"",cmsId:je});this.dispatchEvent({name:qt.name,gdprLevel:qt.gdprLevel,parameters:qt.parameters,ts:qt.ts,clientConfig:Co})}processEvent(c){this.dispatchEvent({name:c.name,gdprLevel:c.gdprLevel,parameters:c.parameters,ts:c.ts,clientConfig:Co})}OO(c,p){let O;O=this.RO.hO(c),this.BO(O),this.RO.sO(p)}lO(c){return this.clientShutDownCallback?(n.Log.d("{9838627}","{c7dcc4e}"),this.RO.cO().then(p=>{for(const O of p)this.BO(O);this.RO.sO(c)}).catch(()=>{n.Log.d("{9838627}","{41cf828}")})):(n.Log.d("{9838627}","{77df598}"),this.RO.lO(c))}FO(c,p){let O=!1;this.clientShutDownCallback&&(O=this.clientShutDownCallback(c),n.Log.d("{9838627}","{caf81d9}",O)),O||(n.Log.d("{9838627}","{e939db1}"),p(c))}LO(c,p){this.Jh.hasListener("TelemetryEvent")?this.Jh.emit("TelemetryEvent",c):p(c)}fO(){return this.RO.fO()}}class ma extends Aa{dispatchEvent(c){this.LO(c,()=>{this.RO.zx(c)})}BO(c){this.FO(c,()=>{this.RO.Zx(c)})}getTelemetryEventIds(){return{streamingProfileGuid:this.RO.oO(),systemInfoGuid:this.RO.rO()}}}class lc extends Aa{constructor(c,p){super(c,p),this.wO=n.TelemetryModule.createTelemetryProvider(Co)}dispatchEvent(c){this.LO(c,()=>{this.UO(c,!1)})}BO(c){this.FO(c,()=>{this.UO(c,!0)})}getTelemetryEventIds(){return n.TelemetryModule.getTelemetryEventIds()}UO(c,p){const O={name:(re=c).name,gdprLevel:re.gdprLevel,priority:p,ts:re.ts,parameters:re.parameters},F=c.clientConfig;var re;let Z;F.clientId===Co.clientId?Z=this.wO:(this.GO||(this.GO=n.TelemetryModule.createTelemetryProvider(F)),Z=this.GO),Z.processEvent(O)}}const Qc="#006FCD",sd="#0e7a0d";class Ic{constructor(){this.HO="gamepadTester",this.visible=!1,this.VO=[],this.WO=[],this.ku=new Map,Sn.Fo&&(document.body.appendChild(this._O()),this.start())}cl(c){for(let p=0;p<4;p++){const O=this.ku.get(p);void 0!==O&&(c&1<<p||(this.VO[O]=null,this.ku.delete(p)))}}Cl(c){for(let p=0;p<this.VO.length;p++){let O=this.VO[p];O&&O.qO&&O.sA==c&&(this.VO[p]=null)}}ll(c,p,O,F,Z,re,Oe,je){this.ku.set(p,c),this.VO[c]={index:c,sA:p,buttons:O,trigger:F,axes:Z,name:je,qO:!1}}Tl(c,p,O,F,Z,re,Oe,je){this.VO[c]={index:c,sA:p,buttons:O,trigger:F,axes:Z,name:je,qO:!0}}fl(c){c.index<4&&(this.WO[c.index]={index:c.index,sA:c.index,buttons:-1,trigger:-1,axes:[-1],name:c.id,qO:!1})}pl(c){c<4&&(this.WO[c]=null)}_O(){let c=document.createElement("div");c.id=this.HO,c.className="genericdiv",c.style.display="grid",c.style.gridTemplateColumns="1fr 1fr",c.style.gridTemplateRows="1fr 1fr",this.visible=!0;let p=document.createElement("p");return p.id="instruction",p.style.color="white",p.style.position="fixed",p.innerHTML="Connect GamePads",p.style.top="0",c.appendChild(p),c}Fw(c){let p=document.getElementById(this.HO);p?(p.remove(),this.VO=[],this.visible=!1):(c.insertAdjacentElement("afterend",this._O()),this.start())}start(){let c,p=document.getElementById(this.HO);if(null==p)return void n.Log.e("{e13a879}","{0c955af}");let O=.49*window.innerWidth,F=.4*window.innerHeight,Z=.3*O,re=.7*O,Oe=.8*F,je=.8*F,ot=.07*O;const Ct=tn=>{tn.style.position="absolute",tn.style.width="2%",tn.style.height="3.5%",tn.style.backgroundColor="red",tn.style.borderRadius="50%",tn.style.transform="translate(-50%, -50%)"},Rt=tn=>{let Pn=(Bn=tn)?{left:{X:Bn.axes[0],Y:Bn.axes[1]},right:{X:Bn.axes[2],Y:Bn.axes[3]}}:null;var Bn;if(null===p.querySelector(`.gamepad${tn.index}`).querySelector(".leftStick")){let Bn=document.createElement("div");Bn.className="gamepadJoystickPointer leftStick",Ct(Bn),Bn.style.left=`${Z+Pn.left.X*ot}px`,Bn.style.top=`${Oe+Pn.left.Y*ot}px`,p.querySelector(`.gamepad${tn.index}`).querySelector(".gamepadContainer").appendChild(Bn)}else{let Bn=p.querySelector(`.gamepad${tn.index}`).querySelector(".leftStick");Bn.style.opacity="1",Bn.style.left=`${Z+ot*Pn.left.X}px`,Bn.style.top=`${Oe+Pn.left.Y*ot}px`}if(null===p.querySelector(`.gamepad${tn.index}`).querySelector(".rightStick")){let Bn=document.createElement("div");Bn.className="gamepadJoystickPointer rightStick",Ct(Bn),Bn.style.left=`${re+Pn.right.X*ot}px`,Bn.style.top=`${je+Pn.right.Y*ot}px`,p.querySelector(`.gamepad${tn.index}`).querySelector(".gamepadContainer").appendChild(Bn)}else{let Bn=p.querySelector(`.gamepad${tn.index}`).querySelector(".rightStick");Bn.style.opacity="1",Bn.style.left=(re+Pn.right.X*ot).toString()+"px",Bn.style.top=(je+Pn.right.Y*ot).toString()+"px"}},Et=(tn,Pn,Bn,ei)=>{var jn=tn.getContext("2d");if(!jn)return;jn.beginPath();const si=!0===Bn?1:!1===Bn?0:Bn;jn.fillStyle=Bn?ei?Qc:sd:"grey";const vi=bi=>{if(!jn)return;const $i=.12*si;jn.rect(tn.width*bi,tn.height*(.12-$i+.07),.02*tn.width,tn.height*$i),jn.closePath(),jn.fill(),jn.beginPath(),jn.fillStyle="grey",jn.rect(tn.width*bi,.07*tn.height,.02*tn.width,tn.height*(.12-$i))};switch(Pn){case 0:jn.moveTo(.14*tn.width,.48*tn.height),jn.lineTo(.19*tn.width,.48*tn.height),jn.lineTo(.165*tn.width,.54*tn.height),jn.lineTo(.14*tn.width,.48*tn.height);break;case 1:jn.moveTo(.14*tn.width,.66*tn.height),jn.lineTo(.19*tn.width,.66*tn.height),jn.lineTo(.165*tn.width,.61*tn.height),jn.lineTo(.14*tn.width,.66*tn.height);break;case 2:jn.moveTo(.09*tn.width,.55*tn.height),jn.lineTo(.09*tn.width,.61*tn.height),jn.lineTo(.135*tn.width,.57*tn.height),jn.lineTo(.09*tn.width,.55*tn.height);break;case 3:jn.moveTo(.24*tn.width,.55*tn.height),jn.lineTo(.24*tn.width,.61*tn.height),jn.lineTo(.195*tn.width,.57*tn.height),jn.lineTo(.24*tn.width,.55*tn.height);break;case 4:jn.arc(.7*tn.width,.4*tn.height,.02*tn.width,0,2*Math.PI);break;case 5:jn.arc(.3*tn.width,.4*tn.height,.02*tn.width,0,2*Math.PI);break;case 6:jn.arc(.3*tn.width,.8*tn.height,.07*tn.width,0,2*Math.PI);break;case 7:jn.arc(.7*tn.width,.8*tn.height,.07*tn.width,0,2*Math.PI);break;case 8:jn.rect(.13*tn.width,.23*tn.height,.07*tn.width,.05*tn.height);break;case 9:jn.rect(.815*tn.width,.23*tn.height,.07*tn.width,.05*tn.height);break;case 12:jn.arc(.85*tn.width,.65*tn.height,.02*tn.width,0,2*Math.PI);break;case 13:jn.arc(.9*tn.width,.55*tn.height,.02*tn.width,0,2*Math.PI);break;case 14:jn.arc(.8*tn.width,.55*tn.height,.02*tn.width,0,2*Math.PI);break;case 15:jn.arc(.85*tn.width,.45*tn.height,.02*tn.width,0,2*Math.PI);break;case-1:vi(.155);break;case-2:vi(.84);break;case 16:if(!ei)break;jn.arc(.5*tn.width,.5*tn.height,.02*tn.width,0,2*Math.PI);break;case 17:if(!ei)break;jn.roundRect?jn.roundRect(.395*tn.width,.085*tn.height,.21*tn.width,.18*tn.height,.02*tn.width):jn.arc(.5*tn.width,.175*tn.height,.02*tn.width,0,2*Math.PI)}jn.closePath(),jn.fill()},qt=tn=>{if(null===p.querySelector(`.gamepad${tn.index}`)){let Pn=document.createElement("div");Pn.className=`gamepad gamepad${tn.index}`,Pn.style.display="flex",Pn.style.flexDirection="column",Pn.style.justifyContent="space-between",Pn.style.height="98%";let Bn=document.createElement("p");Bn.className="active",Bn.style.margin="0px";let ei=document.createElement("span");ei.className="gamepadPlayerNumber",ei.style.color="white",ei.style.background=tn.qO?Qc:sd,ei.style.position="relative",ei.style.marginRight="0.5vw",ei.innerHTML=tn.qO?"S":"X",ei.style.fontSize="1.5vw",Bn.appendChild(ei);let jn=document.createElement("span");jn.className="gamepadPlayerNumber",jn.style.color="white",jn.style.position="relative",jn.innerHTML=`P${tn.index+1}|${tn.name}`,jn.style.fontSize="1.5vw",Bn.appendChild(jn),Pn.appendChild(Bn);let si=document.createElement("div");si.className="gamepadContainer",si.style.position="relative",si.style.width=`${O+2}px`,si.style.height=`${F}px`;let vi=document.createElement("canvas");vi.className="canvas",vi.width=O,vi.height=F,vi.style.width=`${O}px`,vi.style.height=`${F}px`,vi.style.border="1px solid white",si.appendChild(vi),Pn.appendChild(si),p.appendChild(Pn);let bi=p.querySelector("#instruction");bi&&(bi.style.display="none")}},gn=()=>{if(this.visible){for(let tn=0;tn<this.VO.length;tn++){const Pn=this.VO[tn];if(Pn){const Bn=Pn.qO;p.querySelector(`.gamepad${Pn.index}`)||qt(Pn),Rt(Pn);let ei=p.querySelector(`.gamepad${Pn.index}`).querySelector("canvas"),jn=Bn?2:0;for(let bi=0;bi<16;bi++)Et(ei,bi,!!(Pn.buttons&1<<bi),Bn);jn>=1&&Et(ei,16,65536&Pn.buttons,Bn),jn>=2&&Et(ei,17,131072&Pn.buttons,Bn),Et(ei,-1,(255&Pn.trigger)/255,Bn),Et(ei,-2,(Pn.trigger>>8&255)/255,Bn)}else if(this.WO[tn]){if(!p.querySelector(`.gamepad${tn}`)){qt(this.WO[tn]);let Bn=p.querySelector(`.gamepad${tn}`).querySelector("canvas"),ei=Bn.getContext("2d");ei&&(ei.font="20px Arial",ei.fillStyle="white",ei.textAlign="center",ei.fillText("Unsupported Gamepad",Bn.width/2,Bn.height/2))}}else{let Bn=p.querySelector(`.gamepad${tn}`);if(Bn&&p.removeChild(Bn),p.childNodes.length<=1){let ei=p.querySelector("#instruction");ei&&(ei.style.display="block")}}}c=window.requestAnimationFrame(gn)}else window.cancelAnimationFrame(c)};gn()}Al(c,p,O,F,Z){}vl(){}}class dl{constructor(){this.$O=!1,this.zO=[],this.KO=[],this.QO=0,this.YO=0,this.XO=0}jO(){if(n.Log.i("{4c846ba}","{b11cb24}"),this.JO){try{this.ZO=new MediaRecorder(this.JO)}catch(c){return void n.Log.e("{4c846ba}","{0d1420e}",c)}this.ZO&&(this.ZO.onstart=()=>{},this.ZO.onstop=()=>{n.Log.i("{4c846ba}","{7a944b4}")},this.ZO.ondataavailable=c=>{c.data&&c.data.size>0&&(this.zO.push(c.data),this.KO.push(this.zO),++this.YO,this.zO=[])},n.Log.i("{4c846ba}","{ffb713f}",this.ZO)),this.$O=!1}else n.Log.e("{4c846ba}","{74475ae}")}tB(){let c;if(1==this.XO)c=18e5;else{if(2!=this.XO)return;c=3e3}this.ZO&&!this.$O&&(this.ZO.start(),this.$O=!0,this.QO=window.setTimeout(()=>{n.Log.i("{4c846ba}","{2282d21}"),this.iB()},c),n.Log.i("{4c846ba}","{4f438e3}"))}sB(){this.iB(),this.jO(),this.tB()}iB(){var c;null===(c=this.ZO)||void 0===c||c.stop(),this.ZO=void 0,0!==this.QO&&(window.clearTimeout(this.QO),this.QO=0)}initialize(c){this.JO=c}uninitialize(){this.iB(),this.downloadAudio(),this.JO=void 0,this.XO=0}downloadAudio(){if(0!=this.XO){for(let c=0;c<this.YO;++c)_s(this.KO[c],"audioCapture_"+c+".wmv","audio/webm")&&n.Log.i("{4c846ba}","{c24ed3b}");this.YO=0,this.KO=[]}}ux(){return 0==this.XO&&(this.XO=1,n.Log.i("{4c846ba}","{008dc86}"),this.jO(),this.tB(),!0)}lx(){return 1==this.XO&&(n.Log.i("{4c846ba}","{1f67b97}"),this.XO=2,!0)}Ax(){2==this.XO&&(n.Log.i("{4c846ba}","{89b1a9f}"),this.sB())}}class kl{constructor(c){this.sessionId="",this.subSessionId="",this.eB=0,this.nB=!1,this.telemetry=c,this.uh=new qs(this,1e4,1e4)}hB(){this.uh.vn()}oB(){this.uh.fn(!1)}rB(c){return this.eB=c,15868704===this.eB||15859712===this.eB?(this.uh.fn(!1),!1):(this.uh.fn(!0),this.uh.gn(),this.nB)}Cn(c){15867909!==this.eB&&15867908!==this.eB||(c.rn="other"),this.aB(c.duration,c.En-c.Tn,c.rn)}reset(c,p){this.sessionId=c,this.subSessionId=p,this.eB=0,this.nB=!1}aB(c,p,O){const F=Math.round(c/1e3),Z=Math.round(p/1e3);this.telemetry.EO(F,Z,O,de(this.eB),this.sessionId,this.subSessionId),this.oB(),this.nB=!0}}class zl{constructor(){this.dB=0}bR(){this.dB=performance.now()}$a(){return performance.now()-this.dB}yd(){return this.dB}}class Fl extends zl{kr(c){var p;return(null!==(p=Sn.ko.usePerfNowCaptureTimestamp)&&void 0!==p?p:!ge())?this.$a():c-this.dB}}const wc="ios15AudioContext",Kd="ios15AudioStream";performance.mark("GfnRBegin");class Ys{constructor(c,p){this.module=c,this.enabled=!0,this.kF=!1,this.queue=[],p&&(void 0!==p.enable&&(this.enabled=p.enable),void 0!==p.yF&&(this.kF=p.yF)),this.IF=(O,F,...Z)=>{},this.CF=(O,F,...Z)=>this.EF(n.LogLevel.DEBUG,O,F,Z),this.TF=(O,F,...Z)=>this.EF(n.LogLevel.INFO,O,F,Z),this.MF=(O,F,...Z)=>this.EF(n.LogLevel.WARN,O,F,Z),this.PF=(O,F,...Z)=>this.EF(n.LogLevel.ERROR,O,F,Z)}get d(){return this.enabled?this.kF?console.debug.bind(console,"%s DEBUG [%s] %s@@",this.DF(new Date)):this.CF:this.IF}get w(){return this.enabled?this.kF?console.warn.bind(console,"%s WARN [%s] %s@@",this.DF(new Date)):this.MF:this.IF}get i(){return this.enabled?this.kF?console.info.bind(console,"%s INFO [%s] %s@@",this.DF(new Date)):this.TF:this.IF}get e(){return this.kF?console.error.bind(console,"%s ERROR [%s] %s@@",this.DF(new Date)):this.PF}setLogCallback(c){this.Gn=c,this.Gn&&this.queue.length&&window.setTimeout(()=>{this.RF(!0)})}isCallbackRegistered(){return!!this.Gn}NF(...c){return c.length?`##${JSON.stringify(c)}`:""}RF(c){this.Gn&&this.queue.length&&(this.Gn(this.queue[0]),this.queue.shift(),c&&this.queue.length&&window.setTimeout(()=>{this.RF(!0)}))}EF(c,p,O,F){let Z=`${O}${this.NF(...F)}`,re={timestamp:this.DF(new Date),level:c,tag:this.module+"/"+p,message:Z};this.queue.push(re),this.Gn?window.setTimeout(()=>{this.RF(!1)}):this.queue.length>Ys.xF&&this.queue.shift()}DF(c){const p=(F,Z,re)=>{const Oe=Z-F.length;if(Oe>0){let je="";for(let ot=0;ot<Oe;ot++)je+=re;return je+=F,je}return F};let O="";return O=p(c.getFullYear().toString(),4,"0")+"-"+p((c.getMonth()+1).toString(),2,"0")+"-"+p(c.getDate().toString(),2,"0")+" "+(p(c.getHours().toString(),2,"0")+":")+(F=>p(F.getMinutes().toString(),2,"0"))(c)+":"+(F=>p(F.getSeconds().toString(),2,"0"))(c)+"."+(F=>p(F.getMilliseconds().toString(),3,"0"))(c),O}}z.RErrorCode=void 0,Ys.xF=50,function(y){y[y.Success=15859712]="Success",y[y.AuthProviderError=3237085185]="AuthProviderError",y[y.InvalidOperation=3237085186]="InvalidOperation",y[y.NoNetwork=3237089281]="NoNetwork",y[y.NetworkError=3237089282]="NetworkError",y[y.GetActiveSessionServerError=3237089283]="GetActiveSessionServerError",y[y.ExceptionHappened=3237089284]="ExceptionHappened",y[y.AuthTokenNotUpdated=3237093377]="AuthTokenNotUpdated",y[y.SessionFinishedState=3237093378]="SessionFinishedState",y[y.ResponseParseFailure=3237093379]="ResponseParseFailure",y[y.GridAppNotInitialized=3237093380]="GridAppNotInitialized",y[y.InvalidServerResponse=3237093381]="InvalidServerResponse",y[y.PutOrPostInProgress=3237093382]="PutOrPostInProgress",y[y.GridServerNotInitialized=3237093383]="GridServerNotInitialized",y[y.DOMExceptionInGridServer=3237093384]="DOMExceptionInGridServer",y[y.InvalidAdStateTransition=3237093386]="InvalidAdStateTransition",y[y.SessionServerErrorBegin=3237093632]="SessionServerErrorBegin",y[y.RequestForbidden=3237093634]="RequestForbidden",y[y.ServerInternalTimeout=3237093635]="ServerInternalTimeout",y[y.ServerInternalError=3237093636]="ServerInternalError",y[y.ServerInvalidRequest=3237093637]="ServerInvalidRequest",y[y.ServerInvalidRequestVersion=3237093638]="ServerInvalidRequestVersion",y[y.SessionListLimitExceeded=3237093639]="SessionListLimitExceeded",y[y.InvalidRequestDataMalformed=3237093640]="InvalidRequestDataMalformed",y[y.InvalidRequestDataMissing=3237093641]="InvalidRequestDataMissing",y[y.RequestLimitExceeded=3237093642]="RequestLimitExceeded",y[y.SessionLimitExceeded=3237093643]="SessionLimitExceeded",y[y.InvalidRequestVersionOutOfDate=3237093644]="InvalidRequestVersionOutOfDate",y[y.SessionEntitledTimeExceeded=3237093645]="SessionEntitledTimeExceeded",y[y.AuthFailure=3237093646]="AuthFailure",y[y.InvalidAuthenticationMalformed=3237093647]="InvalidAuthenticationMalformed",y[y.InvalidAuthenticationExpired=3237093648]="InvalidAuthenticationExpired",y[y.InvalidAuthenticationNotFound=3237093649]="InvalidAuthenticationNotFound",y[y.EntitlementFailure=3237093650]="EntitlementFailure",y[y.InvalidAppIdNotAvailable=3237093651]="InvalidAppIdNotAvailable",y[y.InvalidAppIdNotFound=3237093652]="InvalidAppIdNotFound",y[y.InvalidSessionIdMalformed=3237093653]="InvalidSessionIdMalformed",y[y.InvalidSessionIdNotFound=3237093654]="InvalidSessionIdNotFound",y[y.EulaUnAccepted=3237093655]="EulaUnAccepted",y[y.MaintenanceStatus=3237093656]="MaintenanceStatus",y[y.ServiceUnAvailable=3237093657]="ServiceUnAvailable",y[y.SteamGuardRequired=3237093658]="SteamGuardRequired",y[y.SteamLoginRequired=3237093659]="SteamLoginRequired",y[y.SteamGuardInvalid=3237093660]="SteamGuardInvalid",y[y.SteamProfilePrivate=3237093661]="SteamProfilePrivate",y[y.InvalidCountryCode=3237093662]="InvalidCountryCode",y[y.InvalidLanguageCode=3237093663]="InvalidLanguageCode",y[y.MissingCountryCode=3237093664]="MissingCountryCode",y[y.MissingLanguageCode=3237093665]="MissingLanguageCode",y[y.SessionNotPaused=3237093666]="SessionNotPaused",y[y.EmailNotVerified=3237093667]="EmailNotVerified",y[y.InvalidAuthenticationUnsupportedProtocol=3237093668]="InvalidAuthenticationUnsupportedProtocol",y[y.InvalidAuthenticationUnknownToken=3237093669]="InvalidAuthenticationUnknownToken",y[y.InvalidAuthenticationCredentials=3237093670]="InvalidAuthenticationCredentials",y[y.SessionNotPlaying=3237093671]="SessionNotPlaying",y[y.InvalidServiceResponse=3237093672]="InvalidServiceResponse",y[y.AppPatching=3237093673]="AppPatching",y[y.GameNotFound=3237093674]="GameNotFound",y[y.NotEnoughCredits=3237093675]="NotEnoughCredits",y[y.InvitationOnlyRegistration=3237093676]="InvitationOnlyRegistration",y[y.RegionNotSupportedForRegistration=3237093677]="RegionNotSupportedForRegistration",y[y.SessionTerminatedByAnotherClient=3237093678]="SessionTerminatedByAnotherClient",y[y.DeviceIdAlreadyUsed=3237093679]="DeviceIdAlreadyUsed",y[y.ServiceNotExist=3237093680]="ServiceNotExist",y[y.SessionExpired=3237093681]="SessionExpired",y[y.SessionLimitPerDeviceReached=3237093682]="SessionLimitPerDeviceReached",y[y.ForwardingZoneOutOfCapacity=3237093683]="ForwardingZoneOutOfCapacity",y[y.RegionNotSupportedIndefinitely=3237093684]="RegionNotSupportedIndefinitely",y[y.RegionBanned=3237093685]="RegionBanned",y[y.RegionOnHoldForFree=3237093686]="RegionOnHoldForFree",y[y.RegionOnHoldForPaid=3237093687]="RegionOnHoldForPaid",y[y.AppMaintenanceStatus=3237093688]="AppMaintenanceStatus",y[y.ResourcePoolNotConfigured=3237093689]="ResourcePoolNotConfigured",y[y.InsufficientVmCapacity=3237093690]="InsufficientVmCapacity",y[y.InsufficientRouteCapacity=3237093691]="InsufficientRouteCapacity",y[y.InsufficientScratchSpaceCapacity=3237093692]="InsufficientScratchSpaceCapacity",y[y.RequiredSeatInstanceTypeNotSupported=3237093693]="RequiredSeatInstanceTypeNotSupported",y[y.ServerSessionQueueLengthExceeded=3237093694]="ServerSessionQueueLengthExceeded",y[y.RegionNotSupportedForStreaming=3237093695]="RegionNotSupportedForStreaming",y[y.SessionForwardRequestAllocationTimeExpired=3237093696]="SessionForwardRequestAllocationTimeExpired",y[y.SessionForwardGameBinariesNotAvailable=3237093697]="SessionForwardGameBinariesNotAvailable",y[y.GameBinariesNotAvailableInRegion=3237093698]="GameBinariesNotAvailableInRegion",y[y.UekRetrievalFailed=3237093699]="UekRetrievalFailed",y[y.EntitlementFailureForResource=3237093700]="EntitlementFailureForResource",y[y.SessionInQueueAbandoned=3237093701]="SessionInQueueAbandoned",y[y.MemberTerminated=3237093702]="MemberTerminated",y[y.SessionRemovedFromQueueMaintenance=3237093703]="SessionRemovedFromQueueMaintenance",y[y.ZoneMaintenanceStatus=3237093704]="ZoneMaintenanceStatus",y[y.GuestModeCampaignDisabled=3237093705]="GuestModeCampaignDisabled",y[y.RegionNotSupportedAnonymousAccess=3237093706]="RegionNotSupportedAnonymousAccess",y[y.InstanceTypeNotSupportedInSingleRegion=3237093707]="InstanceTypeNotSupportedInSingleRegion",y[y.InvalidZoneForQueuedSession=3237093710]="InvalidZoneForQueuedSession",y[y.SessionWaitingAdsTimeExpired=3237093711]="SessionWaitingAdsTimeExpired",y[y.UserCancelledWatchingAds=3237093712]="UserCancelledWatchingAds",y[y.StreamingNotAllowedInLimitedMode=3237093713]="StreamingNotAllowedInLimitedMode",y[y.ForwardRequestJPMFailed=3237093714]="ForwardRequestJPMFailed",y[y.MaxSessionNumberLimitExceeded=3237093715]="MaxSessionNumberLimitExceeded",y[y.GuestModePartnerCapacityDisabled=3237093716]="GuestModePartnerCapacityDisabled",y[y.SessionRejectedNoCapacity=3237093717]="SessionRejectedNoCapacity",y[y.SessionInsufficientPlayabilityLevel=3237093718]="SessionInsufficientPlayabilityLevel",y[y.SessionServerErrorEnd=3237093887]="SessionServerErrorEnd",y[y.StreamerErrorCategory=3237093888]="StreamerErrorCategory",y[y.StreamErrorGeneric=3237093889]="StreamErrorGeneric",y[y.StreamerSignInFailure=3237093890]="StreamerSignInFailure",y[y.StreamerHangingGetFailure=3237093891]="StreamerHangingGetFailure",y[y.StreamerNetworkError=3237093892]="StreamerNetworkError",y[y.StreamerVideoPlayError=3237093893]="StreamerVideoPlayError",y[y.StreamerIceConnectionFailed=3237093894]="StreamerIceConnectionFailed",y[y.StreamerGetRemotePeerTimedOut=3237093895]="StreamerGetRemotePeerTimedOut",y[y.StreamInputChannelError=3237093896]="StreamInputChannelError",y[y.StreamCursorChannelError=3237093897]="StreamCursorChannelError",y[y.StreamControlChannelError=3237093898]="StreamControlChannelError",y[y.StreamerReConnectionFailed=3237093899]="StreamerReConnectionFailed",y[y.StreamerNoVideoPacketsReceivedEver=3237093900]="StreamerNoVideoPacketsReceivedEver",y[y.StreamerNoVideoFramesLossyNetwork=3237093901]="StreamerNoVideoFramesLossyNetwork",y[y.StreamerSetSDPFailure=3237093902]="StreamerSetSDPFailure",y[y.StreamerNoLocalCandidates=3237093903]="StreamerNoLocalCandidates",y[y.StreamerNoRemoteCandidates=3237093904]="StreamerNoRemoteCandidates",y[y.StreamerNoVideoTrack=3237093905]="StreamerNoVideoTrack",y[y.StreamerIceReConnectionFailed=3237093906]="StreamerIceReConnectionFailed",y[y.StreamerSignInTimeout=3237093907]="StreamerSignInTimeout",y[y.StreamerSignInWorkerFailure=3237093908]="StreamerSignInWorkerFailure",y[y.StreamerNoTracksReceivedInSdp=3237093909]="StreamerNoTracksReceivedInSdp",y[y.StreamerNvstSdpFailure=3237093910]="StreamerNvstSdpFailure",y[y.StreamerNvstSdpParseFailure=3237093911]="StreamerNvstSdpParseFailure",y[y.StreamerNoPeerInfo=3237093912]="StreamerNoPeerInfo",y[y.StreamerNoOffer=3237093913]="StreamerNoOffer",y[y.StreamerNoAudioTrack=3237093914]="StreamerNoAudioTrack",y[y.StreamerInvalidRemoteConfigOverride=3237093915]="StreamerInvalidRemoteConfigOverride",y[y.StreamerInvalidServerOverride=3237093916]="StreamerInvalidServerOverride",y[y.StreamerInvalidClientOverride=3237093917]="StreamerInvalidClientOverride",y[y.StreamerConfigUpdateFailure=3237093918]="StreamerConfigUpdateFailure",y[y.StreamerInputChannelNotOpen=3237093919]="StreamerInputChannelNotOpen",y[y.StreamerCursorChannelNotOpen=3237093920]="StreamerCursorChannelNotOpen",y[y.StreamerControlChannelNotOpen=3237093921]="StreamerControlChannelNotOpen",y[y.StreamerVideoAdapterInitTimeOut=3237093922]="StreamerVideoAdapterInitTimeOut",y[y.StreamerVideoFrameProviderInitTimeOut=3237093923]="StreamerVideoFrameProviderInitTimeOut",y[y.StreamerVideoEncoderInitTimeOut=3237093924]="StreamerVideoEncoderInitTimeOut",y[y.StreamerVideoSetupTimeOut=3237093925]="StreamerVideoSetupTimeOut",y[y.StreamerNoStunResponsesReceived=3237093926]="StreamerNoStunResponsesReceived",y[y.StreamerNoNominatedCandidatePairs=3237093927]="StreamerNoNominatedCandidatePairs",y[y.StreamerNoSucceededCandidatePairs=3237093928]="StreamerNoSucceededCandidatePairs",y[y.StreamPartiallyReliableInputChannelError=3237093929]="StreamPartiallyReliableInputChannelError",y[y.StreamerPartiallyReliableInputChannelNotOpen=3237093936]="StreamerPartiallyReliableInputChannelNotOpen",y[y.StreamerNeedAudioElement=3237093937]="StreamerNeedAudioElement",y[y.StreamerInvalidVideoSettings=3237093938]="StreamerInvalidVideoSettings",y[y.StreamerNeedVideoElement=3237093939]="StreamerNeedVideoElement",y[y.SessionSetupCancelled=15867905]="SessionSetupCancelled",y[y.SessionSetupCancelledDuringQueuing=15867906]="SessionSetupCancelledDuringQueuing",y[y.StreamerDataChannelClosing=15867907]="StreamerDataChannelClosing",y[y.SystemSleepDuringStreaming=15867908]="SystemSleepDuringStreaming",y[y.SystemSleepDuringSessionSetup=15867909]="SystemSleepDuringSessionSetup",y[y.PauseSession=15867910]="PauseSession",y[y.DelayedSessionError=15867911]="DelayedSessionError",y[y.WebPageClosed=15867912]="WebPageClosed",y[y.ClientDisconnectedUserIdle=15867913]="ClientDisconnectedUserIdle",y[y.UnhandledException=3237093392]="UnhandledException",y[y.NoInternetDuringSessionSetup=15868417]="NoInternetDuringSessionSetup",y[y.NoInternetDuringStreaming=15868418]="NoInternetDuringStreaming",y[y.StreamDisconnectedFromServer=15868672]="StreamDisconnectedFromServer",y[y.ServerDisconnectedNoResponse=3237094145]="ServerDisconnectedNoResponse",y[y.ServerDisconnectedRemoteInputError=3237094146]="ServerDisconnectedRemoteInputError",y[y.ServerDisconnectedFrameGrabFailed=3237094147]="ServerDisconnectedFrameGrabFailed",y[y.ServerDisconnectedConfigUnAvailable=3237094148]="ServerDisconnectedConfigUnAvailable",y[y.ServerDisconnectedInvalidCommand=3237094149]="ServerDisconnectedInvalidCommand",y[y.ServerDisconnectedInvalidMouseState=3237094150]="ServerDisconnectedInvalidMouseState",y[y.ServerDisconnectedNetworkError=3237094151]="ServerDisconnectedNetworkError",y[y.ServerDisconnectedGameLaunchFailed=3237094152]="ServerDisconnectedGameLaunchFailed",y[y.ServerDisconnectedVideoFirstFrameSendFailed=3237094153]="ServerDisconnectedVideoFirstFrameSendFailed",y[y.ServerDisconnectedVideoNextFrameSendFailed=3237094154]="ServerDisconnectedVideoNextFrameSendFailed",y[y.ServerDisconnectedFrameGrabTimedOut=3237094155]="ServerDisconnectedFrameGrabTimedOut",y[y.ServerDisconnectedFrameEncodeTimedOut=3237094156]="ServerDisconnectedFrameEncodeTimedOut",y[y.ServerDisconnectedFrameSendTimedOut=3237094157]="ServerDisconnectedFrameSendTimedOut",y[y.ServerDisconnectedNetworkTimedOut=3237094158]="ServerDisconnectedNetworkTimedOut",y[y.ServerDisconnectedPeerRemovedByServer=3237094159]="ServerDisconnectedPeerRemovedByServer",y[y.ServerDisconnectedUnknownError=3237094160]="ServerDisconnectedUnknownError",y[y.ServerDisconnectedPeerRemovedBeforeStream=3237094161]="ServerDisconnectedPeerRemovedBeforeStream",y[y.ServerDisconnectedIntended=15868704]="ServerDisconnectedIntended",y[y.ServerDisconnectedHotKey=15868705]="ServerDisconnectedHotKey",y[y.ServerDisconnectedUserLoggedInDifferentAccount=15868706]="ServerDisconnectedUserLoggedInDifferentAccount",y[y.ServerDisconnectedWindowedMode=15868707]="ServerDisconnectedWindowedMode",y[y.ServerDisconnectedUserIdle=15868708]="ServerDisconnectedUserIdle",y[y.ServerDisconnectedUnAuthorizedProcessDetected=15868709]="ServerDisconnectedUnAuthorizedProcessDetected",y[y.ServerDisconnectedMaliciousProcessDetected=15868710]="ServerDisconnectedMaliciousProcessDetected",y[y.ServerDisconnectedUnKnownProcessDetected=15868711]="ServerDisconnectedUnKnownProcessDetected",y[y.ServerDisconnectedMinerProcessDetected=15868712]="ServerDisconnectedMinerProcessDetected",y[y.ServerDisconnectedStreamingUnsupported=15868713]="ServerDisconnectedStreamingUnsupported",y[y.ServerDisconnectedAnotherClient=15868714]="ServerDisconnectedAnotherClient",y[y.ServerDisconnectedCodeIntegrityViolation=15868715]="ServerDisconnectedCodeIntegrityViolation",y[y.ServerDisconnectedUnauthorizedActivityDetected=15868716]="ServerDisconnectedUnauthorizedActivityDetected",y[y.ServerDisconnectedGameNotOwnedByUser=15868717]="ServerDisconnectedGameNotOwnedByUser",y[y.ServerDisconnectedProtectedContent=15868718]="ServerDisconnectedProtectedContent",y[y.ServerDisconnectedDisplayTopologyChanged=15868719]="ServerDisconnectedDisplayTopologyChanged",y[y.ServerDisconnectedAbruptly=15868688]="ServerDisconnectedAbruptly",y[y.ServerDisconnectedUnknownFromPm=15868736]="ServerDisconnectedUnknownFromPm",y[y.ServerDisconnectedUserEntitledMinutesExceeded=15868737]="ServerDisconnectedUserEntitledMinutesExceeded",y[y.ServerDisconnectedClientReconnectTimeLimitExceeded=15868738]="ServerDisconnectedClientReconnectTimeLimitExceeded",y[y.ServerDisconnectedOperatorCommandedTermination=15868739]="ServerDisconnectedOperatorCommandedTermination",y[y.ServerDisconnectedConcurrentSessionLimitExceeded=15868740]="ServerDisconnectedConcurrentSessionLimitExceeded",y[y.ServerDisconnectedMaxSessionTimeLimitExceeded=15868741]="ServerDisconnectedMaxSessionTimeLimitExceeded",y[y.ServerDisconnectedBifrostInitiatedSessionPause=15868742]="ServerDisconnectedBifrostInitiatedSessionPause",y[y.ServerDisconnectedSystemCommandTermination=15868743]="ServerDisconnectedSystemCommandTermination",y[y.ServerDisconnectedMultipleLogin=15868744]="ServerDisconnectedMultipleLogin",y[y.ServerDisconnectedMaintenanceMode=15868745]="ServerDisconnectedMaintenanceMode",y[y.ServerDisconnectedMultipleTab=15868752]="ServerDisconnectedMultipleTab",y[y.InvalidVideoElement=3237094400]="InvalidVideoElement",y[y.InvalidAudioElement=3237094401]="InvalidAudioElement",y[y.WebSocketClosed=3237097472]="WebSocketClosed",y[y.WebSocketNormalClosure=3237101567]="WebSocketNormalClosure",y[y.WebSocketGoingAway=3237101566]="WebSocketGoingAway",y[y.WebSocketProtocolError=3237101565]="WebSocketProtocolError",y[y.WebSocketUnsupportedData=3237101564]="WebSocketUnsupportedData",y[y.WebSocketNoStatusRcvd=3237101562]="WebSocketNoStatusRcvd",y[y.WebSocketInvalidFramePayloadData=3237101560]="WebSocketInvalidFramePayloadData",y[y.WebSocketPolicyViolation=3237101559]="WebSocketPolicyViolation",y[y.WebSocketMessageTooBig=3237101558]="WebSocketMessageTooBig",y[y.WebSocketMandatoryExt=3237101557]="WebSocketMandatoryExt",y[y.WebSocketInternalError=3237101556]="WebSocketInternalError",y[y.WebSocketServiceRestart=3237101555]="WebSocketServiceRestart",y[y.WebSocketTryAgainLater=3237101554]="WebSocketTryAgainLater",y[y.WebSocketBadGateway=3237101553]="WebSocketBadGateway",y[y.WebSocketTLSHandshakeFailure=3237101552]="WebSocketTLSHandshakeFailure",y[y.WebSocketUnauthorized=3237101551]="WebSocketUnauthorized",y[y.WebSocketForbidden=3237101550]="WebSocketForbidden",y[y.WebSocketTimeout=3237101549]="WebSocketTimeout"}(z.RErrorCode||(z.RErrorCode={}));const ec="ios15AudioContext",Rc="ios15AudioStream";performance.mark("GfnNskBegin");class Zr{constructor(c,p,O){this.Rs=c,this.delegate=p,this.OF=O,this.kg=new Ic,this.ED=new dl,this.streamingState=0,this.startTime=0,this.isResume=!1,this.pB=0,this.BF=0,this.gB=0,this.sessionId="",this.subSessionId="",this.zoneAddress="",this.zoneName="",this.ID=[],this.FF=!1,this.appId=0,this.PB=Z=>(n.Log.e("{0a9be04}","{8516485}",Z.filename,Z.lineno,Z.colno),this.telemetry.Ac(Z.error,Z.error&&Z.error.message?Z.error.message:Z.message,Z.filename,Z.lineno,Z.colno,!1),Sn.ko.terminateUnhandledException&&this.LF(3237093392),!1),this.UF=()=>{var Z;if(n.Log.i("{0a9be04}","{478a408}",document.visibilityState,!!this.Jd),!this.Jd)return;const re=this.ID.find(Ct=>{const Rt=Ct.srcObject;return Rt instanceof MediaStream&&Rt.getAudioTracks().length}),Oe=this.Sb,je=re&&Oe&&js(this.Rs,15,4)&&Sn._o,ot=js(this.Rs,15,4)&&this.FF&&Sn.Wo;if("hidden"===document.visibilityState)this.BF=performance.now(),je&&(n.Log.i("{0a9be04}","{cbd3b6e}"),re.muted=!0,Oe.muted=!0);else if("visible"===document.visibilityState)if(je&&(n.Log.i("{0a9be04}","{05deefa}"),re.muted=!1,Oe.muted=!1),ot){const Ct=null!==(Z=Sn.ko.userTerminatedMicRecorderThreshold)&&void 0!==Z?Z:2e3;this.BF-this.CD.Rb()<Ct?(n.Log.i("{0a9be04}","{862bd20}"),this.CD.kb(!0),this.captureMic(!0,this.jB)):(this.FF=!1,this.jB=void 0)}else js(this.Rs,15,4)&&!this.CD.Nb()&&this.CD.Ob()&&this.CD.xb()&&this.CD.yb("visibilityChange")},this.IB=()=>{var Z,re;this.LF((null!==(Z=this.QB)&&void 0!==Z?Z:null!==(re=this.Jd)&&void 0!==re&&re.uN())?15867912:15867905)},this.xB=()=>{this.CD.Bb(this.gB),this.gB++},this.BB=Z=>{var re;Z.detail.idle&&(this.pB=window.setTimeout(()=>{var Oe;null===(Oe=this.Jd)||void 0===Oe||Oe.VR(15867913)},6e4),null===(re=this.Jd)||void 0===re||re.vN(2,60))},this.bb=()=>{this.CD.bb()};const F=window.zoneless;this.vr=new Fl,this.yg=Ca.getInstance(this.Rs,F),this.telemetry=new sl,this.CD=new D(this.Rs,this.telemetry),this.DB=new kl(this.telemetry),Sn.Fo&&this.yg.uA(this.kg),us(this.telemetry),this.FB(),Sn.ko.sendNonEssentialMetricEvents&&this.telemetry.Db("PlatformDetailsExecutionTime","",this.Rs.totalTime,0,0,0),n.Log.i("{0a9be04}","{16f11e6}",Ue),n.Log.d("{0a9be04}","{e85ad66}",navigator.userAgent)}startStreaming(c){var p,O,F,Z,re,Oe,je,ot,Ct,Rt,Et,qt,gn,tn,Pn,Bn,ei,jn;if(4!==this.streamingState&&0!==this.streamingState)return n.Log.w("{0a9be04}","{60a7ff5}"),this.telemetry.Ke("SessionSetupInProgressError",c.resume?"resume":"start"),3237085186;const si=this.GF(c);if(15859712!==si)return si;if(this.isResume=null!==(p=c.resume)&&void 0!==p&&p,this.sessionId=c.sessionId,this.subSessionId=null!==(O=c.subSessionId)&&void 0!==O?O:"",this.zoneAddress=null!==(F=c.zoneAddress)&&void 0!==F?F:"",this.zoneName=null!==(re=null===(Z=c.statTelemetryInfo)||void 0===Z?void 0:Z.zoneName)&&void 0!==re?re:"",this.appId=null!==(je=null===(Oe=c.statTelemetryInfo)||void 0===Oe?void 0:Oe.appId)&&void 0!==je?je:0,this.telemetry.SO(this.subSessionId,this.sessionId,this.appId.toString(),this.isResume,this.zoneAddress),this.DB.reset(this.sessionId,this.subSessionId),js(this.Rs,15)){const nr="streamKitOldPlay";for(const cs of this.ID){const ys=cs;ys[nr]||(ys[nr]=cs.play);const Fr=Sn.Go&&lo(this.Rs,15,1);cs.play=()=>{if(Sn.Ho&&(n.Log.i("{0a9be04}","{4a5b360}"),this.gF(),this.wF(),this.CD.bb()),Fr){n.Log.i("{0a9be04}","{8f5cd77}");const Si=cs.srcObject;cs.srcObject&&(cs.srcObject=null,cs.srcObject=Si)}return ys[nr].apply(cs)}}}if(Sn.Vo&&(lo(this.Rs,15,0)||lo(this.Rs,15,1))){const nr="data-shouldautoplay",cs="autoplay";for(const ys of this.ID)ys.hasAttribute(nr)?ys.setAttribute(cs,""):(ys.setAttribute(nr,""),ys.removeAttribute(cs))}let vi={ip:"",port:0,appLevelProtocol:0,usage:0,protocol:0};c.mediaConnectionInfo&&(vi.ip=c.mediaConnectionInfo.address,vi.port=c.mediaConnectionInfo.port,vi.usage=2);const bi={ip:c.signalConnectionInfo.address,port:c.signalConnectionInfo.port,protocol:(null!==(ot=c.signalConnectionInfo.secure)&&void 0!==ot?ot:!V(c.signalConnectionInfo.address))?"wss":"ws",resourcePath:c.signalConnectionInfo.resourcePath},$i={appId:this.appId,appLaunchMode:c.enableTouchInput?2:0,clientLocale:null!==(Rt=null===(Ct=c.statTelemetryInfo)||void 0===Ct?void 0:Ct.clientLocale)&&void 0!==Rt?Rt:"",gpuType:null!==(qt=null===(Et=c.statTelemetryInfo)||void 0===Et?void 0:Et.gpuType)&&void 0!==qt?qt:"",mediaConnectionInfo:[vi],sessionId:this.sessionId,signalConnectionInfo:bi,state:"ready_for_connection",streamInfo:c.downstreamParams,subSessionId:this.subSessionId,zoneAddress:this.zoneAddress,zoneName:this.zoneName,finalizedStreamingFeatures:c.streamingFeatures,iceServerConfiguration:c.iceServerConfiguration},er={...Jo};return null!==(gn=er.windowedStreaming)&&void 0!==gn||(er.windowedStreaming=c.windowedStreaming),null!==(tn=er.cursorType)&&void 0!==tn||(er.cursorType=c.cursorType),this.Jd=new ut(this,this.ID,this.CD,er,this.kg,this.yg,this.telemetry,this.Rs,$i,this.vr,this.isResume,this.ED,c.downstreamParams,this.Sb,null!==(Pn=c.textInputElement)&&void 0!==Pn?Pn:null===(Bn=this.OF)||void 0===Bn?void 0:Bn.textInputElement,null===(ei=c.statTelemetryInfo)||void 0===ei?void 0:ei.clientAppVersion,null===(jn=c.statTelemetryInfo)||void 0===jn?void 0:jn.region,c.upstreamParams,c.signalConnectionInfo.queryParameters,c.enableMicUpstream),this.lF(),this.streamingState=1,this.DB.hB(),this.startTime=performance.now(),this.Jd.start(),c.keyboardLayout&&this.Jd.setKeyboardLayout(c.keyboardLayout),15859712}stopStreaming(c){this.Jd&&(1!==this.streamingState&&2!==this.streamingState||(n.Log.i("{0a9be04}","{ae7f61b}",de(c=c??15859712)),this.streamingState=3,this.LF(c,!0)))}getStreamingState(){return this.streamingState}sendCustomMessage(c){var p;return null===(p=this.Jd)||void 0===p||p.sendCustomMessage(c),!!this.Jd}setStreamingMaxBitrate(c,p,O){var F;return null===(F=this.Jd)||void 0===F||F.setStreamingMaxBitrate(p??0,c,O),!!this.Jd}setDynamicStreamingMode(c,p,O){var F;return null===(F=this.Jd)||void 0===F||F.setDrcDfcState(p??0,c,O),!!this.Jd}setHdr10PlusGaming(c,p){var O;return null===(O=this.Jd)||void 0===O||O.yD(c,p??0),!!this.Jd}setKeyboardLayout(c){var p;return null===(p=this.Jd)||void 0===p||p.setKeyboardLayout(c),!!this.Jd}setSupportedHidTypes(c){this.yg.Hu(c)}setGamepadRsdmm(c){var p;return!!this.Jd&&(null===(p=this.Jd)||void 0===p||p.toggleRsdmm(c),!0)}getVirtualInputController(){return this}getGamepadBitmap(){return this.yg.Tv()}captureUserInput(c,p){var O;return null===(O=this.Jd)||void 0===O||O.toggleUserInput(c,p),!!this.Jd}sendTextInput(c){var p;return null===(p=this.Jd)||void 0===p||p.sendTextInput(c),!!this.Jd}sendBulkPayload(c,p){var O;return null===(O=this.Jd)||void 0===O||O.sendBulkPayload(c,p),!!this.Jd}getMicState(){return this.CD.fb()}captureMic(c,p){return!!this.Jd&&(this.FF=c,this.jB=c?p:void 0,this.FF?this.CD.Ib(p):this.CD.wb(),!0)}setVideoTransforms(c,p,O,F){var Z;return null===(Z=this.Jd)||void 0===Z||Z.setVideoTransforms(c,p,O),!!this.Jd}setUpstreamMedia(c,p){var O;return this.Jd?null===(O=this.Jd)||void 0===O?void 0:O.setUpstreamMedia(c,p):Promise.resolve(!1)}unsetUpstreamMedia(c){var p;return this.Jd?null===(p=this.Jd)||void 0===p?void 0:p.unsetUpstreamMedia(c):Promise.resolve(!1)}stopUpstreamMedia(c){var p;return this.Jd?null===(p=this.Jd)||void 0===p?void 0:p.stopUpstreamMedia(c):Promise.resolve(!1)}startInputPlayback(c){var p;null===(p=this.Jd)||void 0===p||p.startInputPlayback(c)}lN(c){var p,O,F,Z,re,Oe,je;let ot=15859712;if(c.error)ot=c.error.code,this.delegate.onStreamStartFailed(ot),this.LF(ot);else{this.streamingState=2;const Ct={streams:[],separateAudioStream:!(null===(p=c.streams)||void 0===p||!p.find(Rt=>{const Et=Rt.tracks.find(gn=>"video"===gn.kind),qt=Rt.tracks.find(gn=>"audio"===gn.kind);return!Et&&qt}))};for(let Rt=0;Rt<(null!==(F=null===(O=c.streamInfo)||void 0===O?void 0:O.length)&&void 0!==F?F:0);Rt++){const Et=c.streamInfo[Rt],qt={width:Et.width,height:Et.height,fps:Et.fps,sdrHdrMode:Et.sdrHdrMode,bitDepth:null!==(Z=Et.bitDepth)&&void 0!==Z?Z:8,codec:null===(re=this.Jd)||void 0===re?void 0:re.Vy(Rt),videoTagId:this.ID[Rt].id};Ct.streams.push(qt)}this.delegate.onStreamStarted(Ct),this.isResume&&this.FF&&this.captureMic(!0,this.jB)}this.telemetry.kO(Math.round(performance.now()-this.startTime),de(ot),null!==(je=null===(Oe=this.Jd)||void 0===Oe?void 0:Oe.Vy(0))&&void 0!==je?je:"UNKNOWN"),15859712===ot&&this.telemetry.TO({gI:()=>{var Ct,Rt;return null!==(Rt=null===(Ct=this.Jd)||void 0===Ct?void 0:Ct.lM())&&void 0!==Rt?Rt:0},MO:()=>{var Ct;return null!==(Ct=this.QB)&&void 0!==Ct?Ct:15867911},Vy:()=>{var Ct,Rt;return null!==(Rt=null===(Ct=this.Jd)||void 0===Ct?void 0:Ct.Vy(0))&&void 0!==Rt?Rt:"UNKNOWN"},PO:()=>performance.now()-this.startTime}),this.startTime=performance.now()}tN(c){this.LF(c.error.code)}onBulkPayload(c){this.delegate.onBulkPayload&&this.delegate.onBulkPayload(c)}bS(){this.AF()}onRtcRtpReceiver(c){"onRtcRtpReceiver"in this.delegate&&this.delegate.onRtcRtpReceiver(c)}emit(c,...p){var O,F,Z,re,Oe,je,ot,Ct,Rt,Et;if(p.length)switch(c){case"StreamingEvent":p[0].streamingWarnings&&(null===(F=(O=this.delegate).onStreamWarning)||void 0===F||F.call(O,p[0].streamingWarnings));break;case"StreamingQuality":null===(re=(Z=this.delegate).onStreamQuality)||void 0===re||re.call(Z,p[0]);break;case"MicCapture":this.delegate.onMicStateUpdate&&void 0!==p[0].state&&this.delegate.onMicStateUpdate(p[0].state);break;case"TextComposition":null===(je=(Oe=this.delegate).onTextComposition)||void 0===je||je.call(Oe,p[0]);break;case"CustomMessage":this.delegate.onCustomMessage&&this.delegate.onCustomMessage(p[0]);break;case"StreamStatsUpdate":null===(Ct=(ot=this.delegate).onStreamStatistics)||void 0===Ct||Ct.call(ot,p[0]);break;case"EditBoxEvent":null===(Et=(Rt=this.delegate).onEditBoxEvent)||void 0===Et||Et.call(Rt,p[0])}}addListener(c,p){}removeListener(c,p){}removeAllListeners(){}removeAllListenersOfEvent(c){}hasListener(c){return!0}setClientSupportsVirtualGamepad(c){this.yg.getVirtualGamepadHandler().enable()}handleVirtualGamepadState(c,p,O){this.yg.getVirtualGamepadHandler().updateInput(c,p,O)}setVirtualKeyboardState(c){var p;return null===(p=this.Jd)||void 0===p||p.setVirtualKeyboardState(c),!!this.Jd}handleVirtualKeyInput(c){var p;return null===(p=this.Jd)||void 0===p||p.sendKeyEvent(c),!!this.Jd}HF(){this.AF(),this.Jd=void 0,this.startTime=0,this.isResume=!1,this.QB=void 0,this.BF=0,this.gB=0,this.sessionId="",this.subSessionId="",this.zoneAddress="",this.zoneName="",this.ID=[],this.Sb=void 0,this.FF=!1,this.jB=void 0,this.appId=0,this.setSupportedHidTypes(0),this.setGamepadRsdmm(!1)}FB(){var c,p,O;if(Sn.ko.sendNonEssentialMetricEvents){const F="PerformanceTiming",Z=performance.getEntriesByName("GfnJsInitStart")[0],re=performance.getEntriesByName("platformBegin")[0],Oe=performance.getEntriesByName("GfnNskBegin")[0],je=performance.getEntriesByType("navigation"),ot=Math.round(null!==(c=Z?.startTime)&&void 0!==c?c:-1),Ct=Math.round(null!==(p=re?.startTime)&&void 0!==p?p:-1);if(this.telemetry.Db(F,"application timings",ot,Ct,Math.round(null!==(O=Oe?.startTime)&&void 0!==O?O:-1),Ct-ot),!je.length)return void this.telemetry.Db(F,"navigation timings unsupported",0,0,0,0);const Rt=je[je.length-1];this.telemetry.Db(F,"load timings",Math.round(Rt.loadEventStart),Math.round(Rt.loadEventEnd),Math.round(Rt.domContentLoadedEventStart),Math.round(Rt.domContentLoadedEventEnd))}}LF(c,p){var O;if(4===this.streamingState||0===this.streamingState)return;const F=this.streamingState;this.streamingState=4,this.telemetry.DO(),this.telemetry.Db("HotPlug","",0,this.gB,0,0),Ut(this.Rs)&&this.FF&&(n.Log.d("{0a9be04}","{b9b1288}"),this.captureMic(!1)),this.CD.Pb(),null===(O=this.Jd)||void 0===O||O.stop(c);const Z=this.DB.rB(c);Z&&(c=Xi(c,this.Rs)),hs(this.zoneAddress,c).then(re=>{var Oe;if(c=Wa(c,re),1!==F){const je=Ao(c,this.Rs);let ot={code:c,isResumable:je,isSessionAlive:ps(c,je),reason:3};p?ot.reason=0:new Set([3237093892,15867907,3237093896,3237093897,3237093898,3237093899,3237093900,3237093895,3237093901,3237093906,3237093929,15867908,15868418,3237094151,3237094158]).has(c)?ot.reason=2:15868672==(268435200&c)&&(ot.reason=1);const Rt=null===(Oe=this.Jd)||void 0===Oe?void 0:Oe.rE(0);Rt&&this.delegate.onStreamQualityReport&&this.delegate.onStreamQualityReport(Rt),this.delegate.onStreamStopped(ot),this.Zx(c,re,Z)}this.gF(),this.HF(),this.uF()})}Zx(c,p,O){var F,Z,re,Oe;const je=de(c),ot=performance.now()-this.startTime,Ct=null!==(Z=null===(F=this.Jd)||void 0===F?void 0:F.Vy(0))&&void 0!==Z?Z:"UNKNOWN",Rt=null!==(Oe=null===(re=this.Jd)||void 0===re?void 0:re.lM())&&void 0!==Oe?Oe:0;this.telemetry.yO(je,ot,Ct,Rt,p,O)}AF(){this.pB&&(window.clearTimeout(this.pB),this.pB=0)}lF(){var c,p,O,F;const Z=window.zoneless,re=null!==(p=null===(c=Z?.windowAddEventListener)||void 0===c?void 0:c.bind(window))&&void 0!==p?p:window.addEventListener.bind(window),Oe=null!==(F=null===(O=Z?.documentAddEventListener)||void 0===O?void 0:O.bind(document))&&void 0!==F?F:document.addEventListener.bind(document);re("pagehide",this.IB),re("error",this.PB),Oe("visibilitychange",this.UF),navigator.mediaDevices&&navigator.mediaDevices.addEventListener("devicechange",this.xB),cn(this.Rs)&&Oe("SystemIdle",this.BB)}uF(){var c,p,O,F;const Z=window.zoneless,re=null!==(p=null===(c=Z?.windowRemoveEventListener)||void 0===c?void 0:c.bind(window))&&void 0!==p?p:window.removeEventListener.bind(window),Oe=null!==(F=null===(O=Z?.documentRemoveEventListener)||void 0===O?void 0:O.bind(document))&&void 0!==F?F:document.removeEventListener.bind(document);re("pagehide",this.IB),re("error",this.PB),Oe("visibilitychange",this.UF),navigator.mediaDevices&&navigator.mediaDevices.removeEventListener("devicechange",this.xB),cn(this.Rs)&&(Oe("SystemIdle",this.BB),this.AF())}gF(){Sn.Ho&&(window[ec]&&(window[ec].close(),window[ec]=void 0,n.Log.i("{0a9be04}","{0ac2a42}")),window[Rc]=void 0,navigator.mediaDevices&&this.bb&&navigator.mediaDevices.removeEventListener("devicechange",this.bb))}wF(){if(!Sn.Ho)return;if(window[ec])return void n.Log.i("{0a9be04}","{e2aba64}");const c=new(window.AudioContext||window.webkitAudioContext)({latencyHint:"interactive",sampleRate:48e3});c.onstatechange=()=>{"suspended"===c.state&&(c.resume(),this.CD.bb(),n.Log.i("{0a9be04}","{faee684}"))},window[ec]=c,window[Rc]=c.createMediaStreamDestination(),navigator.mediaDevices&&this.bb&&navigator.mediaDevices.addEventListener("devicechange",this.bb),n.Log.i("{0a9be04}","{b5f7b9b}")}GF(c){if(c.downstreamParams.length)for(const F of c.downstreamParams){const Z=F.videoTagId,re=document.getElementById(Z);if(!(re&&re instanceof HTMLVideoElement))return n.Log.e("{0a9be04}","{543aef4}",Z),3237094400;this.ID.push(re)}else if(c.audioTagId){const F=document.getElementById(c.audioTagId);if(!(F&&F instanceof HTMLAudioElement))return 3237094401;this.Sb=F}const p=!!Sn.To&&!!Sn.Mo,O=!!Sn.fps;if(p||O){for(const F of c.downstreamParams)p&&(F.width=Sn.To,F.height=Sn.Mo),O&&(F.fps=Sn.fps);p&&n.Log.i("{0a9be04}","{92a6b38}",Sn.To,Sn.Mo),O&&n.Log.d("{0a9be04}","{6618bcd}",Sn.fps)}return c.iceServerConfiguration&&(c.iceServerConfiguration=Li(c.iceServerConfiguration)),15859712}}function od(y,c,p){return new Zr(y,c,p)}z.AuthType=n.AuthType,z.BitDepth=n.BitDepth,z.BrowserName=n.PlatformBrowser,z.ClientHeaderBrowserType=n.ClientHeaderBrowserType,z.ClientHeaderDeviceType=n.ClientHeaderDeviceType,z.ClientHeaderOSType=n.ClientHeaderOSType,z.LogLevel=n.LogLevel,z.NetworkType=n.NetworkType,z.PayloadBrowserType=n.PayloadBrowserType,z.PayloadDeviceType=n.PayloadDeviceType,z.PayloadOSType=n.PayloadOSType,z.PlatformName=n.PlatformOS,z.Profile=n.Profile,z.SdrHdrMode=n.SdrHdrMode,z.performHttpRequest=n.performHttpRequest,z.translatePlatformDetailsForClientHeader=n.translatePlatformInfoForClientHeader,z.translatePlatformDetailsForPayload=n.translatePlatformInfoForPayload,z.AddPlatformTelemetry=us,z.CHANGELIST="master-29265474",z.CLIENT_IDENTIFICATION=Mo,z.CLIENT_VERSION=Go,z.CalculateDataUsage=function(y,c){return _e(y,c)},z.CalculateMaxBitrateKbps=function(y,c,p){return pe(y,c,p)[0]},z.ChooseStreamingResolution=function(y=0,c){return _a(y,c?.map(p=>({resolution:p,frameRate:60})),zi(),screen.width,screen.height).resolution},z.ChooseStreamingSettings=function(y=0,c,p){return _a(y,c,zi(p),screen.width,screen.height)},z.ConfigureGridServerSettings=function(y){Uo(y)},z.ConfigureRagnarokSettings=$o,z.GetDeviceCapabilities=tt,z.GetSupportedAudioChannelCount=aa,z.GridApp=class extends Ar{constructor(y){var c,O;super("Log"),this.Rs=y,this.cB=!1,this.Ko=!1,this.kg=new Ic,this.lB=!1,this.uB=void 0,this.AB=void 0,this.vB=!1,this.fB=0,this.pB=0,this.mB=0,this.gB=0,this.wB=!1,this.SB=!1,this.bB=0,this.mO=0,this.useTelemetryV2=!1,n.Logger.isCallbackRegistered()||n.Logger.register(this.Xe.bind(this)),this.kB={clientIdentification:Mo,clientVersion:Go,deviceHashId:"",serverAddress:""},this.startTime=performance.now(),this.yB=this.IB.bind(this),this.CB=this.Pn.bind(this),this.EB=this.TB.bind(this),this.MB=this.PB.bind(this),this.framesDecoded=0,this.RO=new Xo,this.useTelemetryV2=null===(c=Sn.ko.useTelemetryV2)||void 0===c||c,this.telemetry=(O=this.RO,this.useTelemetryV2?new lc(this,O):new ma(this,O)),this.useTelemetryV2&&(this.wO=n.TelemetryModule.createTelemetryProvider(Co)),this.DB=new kl(this.telemetry),this.isResume=!1,this.NB=Jo,this.ED=new dl,window.addEventListener("error",this.MB);const F=window.zoneless;this.CD=new D(this.Rs,this.telemetry),this.AB=this.CD.bb.bind(this.CD),this.uB=this.xB.bind(this),this.vr=new Fl,this.yg=Ca.getInstance(this.Rs,F),Sn.Fo&&this.yg.uA(this.kg),this.OB=this.BB.bind(this),us(this.telemetry),this.FB(),Sn.ko.sendNonEssentialMetricEvents&&this.telemetry.Db("PlatformDetailsExecutionTime","",this.Rs.totalTime,0,0,0),gr.registerCallback(Z=>{var re;null===(re=this.UB)||void 0===re||re.setNetworkType(Z)})}GB(){if(this.UB){const y=this.UB.getSessionId(),c=this.UB.getSubSessionId();n.Log.d("{9d1820c}","{2fd42df}",y,c),this.telemetry.Yn(c),this.telemetry.Qn(y),this.DB.reset(y,c),this.RO.vO(y,c)}}PB(y){return n.Log.e("{9d1820c}","{8516485}",y.filename,y.lineno,y.colno),this.telemetry.Ac(y.error,y.error&&y.error.message?y.error.message:y.message,y.filename,y.lineno,y.colno,!1),Sn.ko.terminateUnhandledException&&this.HB(3237093392),!1}VB(){this.bB=this.bB+(performance.now()-this.mB)}WB(y){"hidden"===document.visibilityState&&this.VB();let c=0;y&&(c=Math.max(0,100*(y-this.bB)/y)),this.telemetry.Db("sessionVisibilityMetrics","",c,Math.round(y),Math.round(this.bB),0),this.bB=0,this.mB=0}OO(y){var c;this._B(),this.telemetry.OO(y,!0),this.mO&&(null===(c=this.wO)||void 0===c||c.dropCachedEvent(this.mO),this.mO=0),this.WB(y.streamDuration)}qB(y,c,p,O){var F,Z,re,Oe;return{exitErrorCode:de(y.error?y.error.code:15859712),sessionId:y.sessionId,subSessionId:y.subSessionId,zoneAddress:y.zoneAddress,streamDuration:c,frameCount:this.framesDecoded,codec:null!==(Z=null===(F=this.Jd)||void 0===F?void 0:F.Vy(0))&&void 0!==Z?Z:"UNKNOWN",isResume:this.isResume,connectivityInfo:p,sleep:null!=O&&O,networkTestSessionId:null!==(Oe=null===(re=this.$B)||void 0===re?void 0:re.zB.networkSessionId)&&void 0!==Oe?Oe:""}}KB(){var y,c;this.vB||(this.vB=!0,this.HB((null!==(y=this.QB)&&void 0!==y?y:null!==(c=this.Jd)&&void 0!==c&&c.uN())?15867912:15867905))}IB(y){this.KB()}Pn(y){n.Log.i("{9d1820c}","{a9a135f}"),this.RO.AO()}TB(y){var c;if(n.Log.i("{9d1820c}","{478a408}",document.visibilityState,!!this.Jd),!this.Jd)return;const p=this.$B.YB[0].Af,O=js(this.Rs,15,4)&&Sn._o,F=js(this.Rs,15,4)&&this.Ko&&Sn.Wo;if("hidden"===document.visibilityState)this.mB=performance.now(),O&&(n.Log.i("{9d1820c}","{cbd3b6e}"),p.muted=!0),this.XB();else if("visible"===document.visibilityState)if(this.VB(),O&&(n.Log.i("{9d1820c}","{05deefa}"),p.muted=!1),F){const Z=null!==(c=Sn.ko.userTerminatedMicRecorderThreshold)&&void 0!==c?c:2e3;this.mB-this.CD.Rb()<Z?(n.Log.i("{9d1820c}","{862bd20}"),this.CD.kb(!0),this.setMicRecordingEnabled(!0,this.jB)):(this.Ko=!1,this.jB=void 0)}else js(this.Rs,15,4)&&!this.CD.Nb()&&this.CD.Ob()&&this.CD.xb()&&this.CD.yb("visibilityChange")}JB(y){n.Log.d("{9d1820c}","{972bb72}",JSON.stringify(y)),this.telemetry.dispatchEvent(y)}ZB(y){this.emit("ActiveSessionsResult",y)}tF(y){this.emit("ProgressUpdate",y)}iF(y){this.emit("SessionUpdate",y)}sF(y){var c,p,O,F,Z,re,Oe,je,ot,Ct,Rt;n.Log.d("{9d1820c}","{3c652b7}"),this.GB(),y.addListener("TelemetryEvent",this.JB.bind(this)),y.addListener("Log",this.Xe.bind(this)),y.addListener("ActiveSessionsResult",this.ZB.bind(this)),y.addListener("ProgressUpdate",this.tF.bind(this)),y.addListener("SessionUpdate",this.iF.bind(this)),this.kB.clientHeaders=null!==(c=this.kB.clientHeaders)&&void 0!==c?c:new Map;const Et=Sn.clientType||this.kB.clientType||"BROWSER",qt="NATIVE"!==Et;qt&&this.kB.clientHeaders.set("nv-browser-version",this.Rs.browserFullVer),function(tn){for(const[Pn,Bn]of tn)Sn.deviceOs&&"nv-device-os"===Pn.toLowerCase()&&tn.set(Pn,Sn.deviceOs),Sn.deviceType&&"nv-device-type"===Pn.toLowerCase()&&tn.set(Pn,Sn.deviceType),Sn.deviceModel&&"nv-device-model"===Pn.toLowerCase()&&tn.set(Pn,Sn.deviceModel),Sn.clientStreamer&&"nv-client-streamer"===Pn.toLowerCase()&&tn.set(Pn,Sn.clientStreamer),Sn.clientId&&"nv-client-id"===Pn.toLowerCase()&&tn.set(Pn,Sn.clientId)}(this.kB.clientHeaders);const gn={deviceOs:null!==(O=null!==(p=Sn.deviceOs)&&void 0!==p?p:this.Rs.os)&&void 0!==O?O:this.Rs.deviceOS,deviceOsVer:null!==(F=this.Rs.osVersion)&&void 0!==F?F:this.Rs.osVer,deviceType:null!==(re=null!==(Z=Sn.deviceType)&&void 0!==Z?Z:this.Rs.platformType)&&void 0!==re?re:this.Rs.deviceType,deviceModel:null!==(je=null!==(Oe=Sn.deviceModel)&&void 0!==Oe?Oe:this.Rs.model)&&void 0!==je?je:this.Rs.deviceModel,clientIdentification:null!==(ot=this.kB.clientIdentification)&&void 0!==ot?ot:Mo,clientVersion:null!==(Ct=this.kB.clientVersion)&&void 0!==Ct?Ct:Go,clientAppVersion:this.kB.clientAppVersion,clientStreamer:null!==(Rt=Sn.clientStreamer)&&void 0!==Rt?Rt:"WEBRTC",clientId:Sn.clientId||this.kB.clientId,browserType:qt?this.Rs.browser:void 0,clientPlatformName:Sn.clientPlatformName||"browser",clientType:Et,deviceHashId:this.kB.deviceHashId,serverAddress:this.kB.serverAddress,authTokenCallback:this.kB.authTokenCallback,clientHeaders:this.kB.clientHeaders};y.initialize(gn),y.setNetworkType(gr.getCurrentNetworkType())}initialize(y,c=Jo){var p,O,F,Z,re,Oe,je;return n.Log.i("{9d1820c}","{2569364}",Ue),n.Log.d("{9d1820c}","{e85ad66}",navigator.userAgent),y?(Object.assign(this.kB,y),null===(p=this.UB)||void 0===p||p.uninitialize(),!this.kB.serverAddress||V(this.kB.serverAddress)?(n.Log.d("{9d1820c}","{e2d9a04}"),this.UB=new Fs):this.UB=new no(this.Rs,!0),this.sF(this.UB),this.NB={...c},null!==(O=(re=this.NB).windowedStreaming)&&void 0!==O||(re.windowedStreaming=this.kB.windowedStreaming),null!==(F=(Oe=this.NB).windowedStreaming)&&void 0!==F||(Oe.windowedStreaming=2===c.cursorType),null!==(Z=(je=this.NB).cursorType)&&void 0!==Z||(je.cursorType=this.kB.cursorType),this.telemetry.NO(this.kB.clientShutDownCallback),!0):(n.Log.e("{9d1820c}","{a98b177}"),!1)}downloadAudio(){this.ED.downloadAudio()}updateEventDataElements(y){var c,p,O,F,Ct,Rt,Et,qt,Bn,ei,jn,si,vi,bi;if(n.Log.i("{9d1820c}","{4008dc4}",JSON.stringify(y)),this.useTelemetryV2){const Z=y.commonData,re=y.config;if(re){const Ct=this.RO.jx(re),Rt=(Bn=Z,{clientVariant:null!==(ei=Bn?.clientVariant)&&void 0!==ei?ei:"undefined",clientType:null!==(jn=Bn?.clientType)&&void 0!==jn?jn:"undefined",clientVer:null!==(si=Bn?.clientVer)&&void 0!==si?si:"undefined",productName:null!==(vi=Bn?.productName)&&void 0!==vi?vi:"undefined",productVersion:null!==(bi=Bn?.productVersion)&&void 0!==bi?bi:"undefined"}),Et=n.translatePlatformInfoForPayload(this.Rs),qt=Z?.deviceModel||this.Rs.model||this.Rs.deviceModel,gn=Z?.deviceMake||this.Rs.make||this.Rs.vendor,tn=(null!==(c=Z?.deviceOSVersion)&&void 0!==c?c:"")||this.Rs.osVersion||this.Rs.osVer,Pn={...this.Rs,deviceId:null!==(p=Z?.deviceId)&&void 0!==p?p:"",deviceOS:Et.os,deviceOSVersion:tn,osVersion:tn,deviceType:Et.deviceType,deviceModel:qt,model:qt,deviceMake:gn,make:gn,browserType:Et.browser};n.TelemetryModule.configure(Rt,Pn,Ct??n.UploadEnvironment.STAGING)}const Oe={userId:null==(F=Z)?void 0:F.userId,externalUserId:F?.externalUserId,idpId:F?.idpId},je=(Ct=Z,{gdprFuncOptIn:null!==(Rt=Ct?.gdprFuncOptIn)&&void 0!==Rt?Rt:n.ConsentLevel.NONE,gdprTechOptIn:null!==(Et=Ct?.gdprTechOptIn)&&void 0!==Et?Et:n.ConsentLevel.NONE,gdprBehOptIn:null!==(qt=Ct?.gdprBehOptIn)&&void 0!==qt?qt:n.ConsentLevel.NONE}),ot=function(Ct){var Rt,Et,qt;return{deviceGdprFuncOptIn:null!==(Rt=Ct?.deviceGdprFuncOptIn)&&void 0!==Rt?Rt:n.ConsentLevel.NONE,deviceGdprTechOptIn:null!==(Et=Ct?.deviceGdprTechOptIn)&&void 0!==Et?Et:n.ConsentLevel.NONE,deviceGdprBehOptIn:null!==(qt=Ct?.deviceGdprBehOptIn)&&void 0!==qt?qt:n.ConsentLevel.NONE}}(Z);n.TelemetryModule.updateClientCommonData(Oe,ot,je,Z?.integrationId)}this.RO.updateEventDataElements(y),y.telemetryEventIds&&(n.TelemetryModule.setTelemetryEventIds(y.telemetryEventIds),null===(O=this.UB)||void 0===O||O.updateTelemetryEventIds(y.telemetryEventIds)),this.Jd&&!this.lB&&this.XB()}getActiveSessions(){if(this.UB)this.UB.getAllActiveSessions();else{const y={sessionList:[],error:this.eF("ActiveSessions")};this.emit("ActiveSessionsResult",y)}}nF(y){var c,p,O,F,Z,re,Oe,je,ot,Ct,Rt;let Et={sessionId:null!==(p=null===(c=this.UB)||void 0===c?void 0:c.getSessionId())&&void 0!==p?p:"",subSessionId:null!==(F=null===(O=this.UB)||void 0===O?void 0:O.getSubSessionId())&&void 0!==F?F:"",error:{code:3237089284,description:"Quitting due to exception"},streamInfo:null===(Z=this.hF)||void 0===Z?void 0:Z.streamInfo,zoneName:null!==(Oe=null===(re=this.UB)||void 0===re?void 0:re.getZoneName())&&void 0!==Oe?Oe:"",zoneAddress:null!==(ot=null===(je=this.UB)||void 0===je?void 0:je.getZoneAddress())&&void 0!==ot?ot:"",gpuType:null!==(Rt=null===(Ct=this.UB)||void 0===Ct?void 0:Ct.getGpuType())&&void 0!==Rt?Rt:"",isResume:this.isResume};this.lN(Et,!0),n.Log.e("{9d1820c}","{90f98fb}",y),this.telemetry.Ac(y,"Exception happened in session call","{9d1820c}.ts",0,0,!0)}oF(y,c,p){this.lN({sessionId:c,subSessionId:p,error:y,zoneName:"",zoneAddress:"",gpuType:"",isResume:this.isResume},!0)}rF(y,c,p){var O;if(this.hF=void 0,this.SB=!1,this.UB){this.yg.Hu(c.zB.additionalInputDevices),c.zB.remoteControllersBitmap=this.yg.Tv();try{this.telemetry.Jx(c.zB.appId,null!==(O=c.zB.shortName)&&void 0!==O?O:""),this.startTime=performance.now(),this.DB.hB(),n.Log.d("{9d1820c}","{892168d}",ai(JSON.stringify(c.zB)));const F=this.UB;F.putOrPostSession(c.zB,y,p).then(Z=>{if(!Z)throw{code:3237093381,message:"Server response does not contain session information"};return this.GB(),n.Log.d("{9d1820c}","{92a2573}",Z.sessionId,Z.subSessionId),"ready_for_connection"===Z.state?(n.Log.d("{9d1820c}","{2042e0a}"),this.hF=Z,this.hF.iceServerConfiguration=c.zB.iceServerConfiguration,new Promise((re,Oe)=>{re(Z)})):F.getSession(Z.sessionId,!0)}).then(Z=>{this.hF=Z,this.hF&&(this.hF.iceServerConfiguration=c.zB.iceServerConfiguration),n.Log.d("{9d1820c}","{315afdc}",Z?.sessionId),this.startStreaming(c)}).catch(Z=>{var re,Oe,je,ot,Ct,Rt;if(this.GB(),Z.code){15867905!=Z.code&&15867906!=Z.code||F.getSessionId()&&!this.SB&&this.sendDeleteRequest(F.getSessionId(),F),n.Log.e("{9d1820c}","{09efe49}",de(Z.code));let Et={sessionId:null!==(re=F.getSessionId())&&void 0!==re?re:"",subSessionId:null!==(Oe=F.getSubSessionId())&&void 0!==Oe?Oe:"",error:Z,sessionList:Z.sessionList,streamInfo:null===(je=this.hF)||void 0===je?void 0:je.streamInfo,zoneName:null!==(ot=F.getZoneName())&&void 0!==ot?ot:"",zoneAddress:null!==(Ct=F.getZoneAddress())&&void 0!==Ct?Ct:"",gpuType:null!==(Rt=F.getGpuType())&&void 0!==Rt?Rt:"",isResume:this.isResume};this.lN(Et,!0)}else this.nF(Z)})}catch(F){this.nF(F)}}else{const F={sessionId:"",subSessionId:"",zoneName:"",zoneAddress:"",gpuType:"",isResume:this.isResume,error:this.eF(this.isResume?"Resume":"Start")};this.emit("SessionStartResult",F)}}aF(y){this.telemetry.Ke("SessionSetupInProgressError",y?"resume":"start")}dF(y){var c,p,O,F,Z,re,Oe,je,ot;return this.RO.nO(y,null!==(p=null===(c=this.UB)||void 0===c?void 0:c.getSessionId())&&void 0!==p?p:"",null!==(F=null===(O=this.UB)||void 0===O?void 0:O.getSubSessionId())&&void 0!==F?F:"",(null===(Z=this.UB)||void 0===Z?void 0:Z.getZoneAddress())||this.kB.serverAddress,performance.now()-this.startTime,null!==(Oe=null===(re=this.Jd)||void 0===re?void 0:re.lM())&&void 0!==Oe?Oe:0,null!==(ot=null===(je=this.Jd)||void 0===je?void 0:je.Vy(0))&&void 0!==ot?ot:"UNKNOWN",this.isResume)}_B(){0!==this.fB&&(window.clearTimeout(this.fB),this.fB=0)}XB(){var y,c,p;const O=this.dF(de(null!==(y=this.QB)&&void 0!==y?y:15867911)),F=this.fB;let Z;this.useTelemetryV2?(this.mO=null!==(p=null===(c=this.wO)||void 0===c?void 0:c.cacheEvent({name:O.name,gdprLevel:O.gdprLevel,priority:!0,ts:O.ts,parameters:O.parameters},this.mO))&&void 0!==p?p:0,Z=Promise.resolve()):Z=this.RO.dO(),Z.then(()=>{F===this.fB&&this.cF()}).catch(()=>{n.Log.e("{9d1820c}","{204a7ac}")})}cF(){this._B(),this.fB=window.setTimeout(()=>this.XB(),12e4)}lF(){window.addEventListener("pagehide",this.yB),window.addEventListener("online",this.CB),document.addEventListener("visibilitychange",this.EB),navigator.mediaDevices&&navigator.mediaDevices.addEventListener("devicechange",this.uB)}FB(){var y,c,p;if(Sn.ko.sendNonEssentialMetricEvents){const O="PerformanceTiming",F=performance.getEntriesByName("GfnJsInitStart")[0],Z=performance.getEntriesByName("platformBegin")[0],re=performance.getEntriesByName("GfnRBegin")[0],Oe=performance.getEntriesByType("navigation"),je=Math.round(null!==(y=F?.startTime)&&void 0!==y?y:-1),ot=Math.round(null!==(c=Z?.startTime)&&void 0!==c?c:-1);if(this.telemetry.Db(O,"application timings",je,ot,Math.round(null!==(p=re?.startTime)&&void 0!==p?p:-1),ot-je),!Oe.length)return void this.telemetry.Db(O,"navigation timings unsupported",0,0,0,0);const Ct=Oe[Oe.length-1];this.telemetry.Db(O,"load timings",Math.round(Ct.loadEventStart),Math.round(Ct.loadEventEnd),Math.round(Ct.domContentLoadedEventStart),Math.round(Ct.domContentLoadedEventEnd))}}uF(){window.removeEventListener("pagehide",this.yB),window.removeEventListener("online",this.CB),document.removeEventListener("visibilitychange",this.EB),navigator.mediaDevices&&navigator.mediaDevices.removeEventListener("devicechange",this.uB),cn(this.Rs)&&(document.removeEventListener("SystemIdle",this.OB),this.AF())}vF(y){this.QB=void 0,this.RO.AO(),this.wB=!0,this.lF(),this.isResume=y,this.lB&&this.aF(this.isResume),this.lB=!0}startSession(y){this.vF(!1);const c=this.fF(y);c&&this.rF(0,c)}updateAdState(y){var c;return this.UB?null===(c=this.UB)||void 0===c?void 0:c.updateAdState(y):3237093380}getSession(y){if(this.UB)this.UB.getSession(y,!1).then(c=>{var p,O;let F={sessionId:null!==(p=c?.sessionId)&&void 0!==p?p:"",appId:c?.appId,subSessionId:null!==(O=c?.subSessionId)&&void 0!==O?O:"",state:c?.state,status:c?.state};this.emit("GetSessionResult",F)}).catch(c=>{var p,O;let F={sessionId:y,subSessionId:null!==(O=null===(p=this.UB)||void 0===p?void 0:p.getSubSessionId())&&void 0!==O?O:"",error:c};this.emit("GetSessionResult",F)});else{const c={sessionId:"",subSessionId:"",error:this.eF("GetSession")};this.emit("GetSessionResult",c)}}resume(){this.resumeSession(this.$B.zB,this.UB.getSessionId())}resumeSession(y,c){this.vF(!0);const p=this.fF(y);p&&this.rF(2,p,c)}stopSession(y,c){var p,O,F,Z,re,Oe,je;if(this.UB)if(void 0!==c&&n.Log.i("{9d1820c}","{ae7f61b}",de(c)),y===this.UB.getSessionId()||void 0===y){15867910===c?this.SB=!0:this.cB=!1,this.CD.Pb(),this.framesDecoded=null!==(O=null===(p=this.Jd)||void 0===p?void 0:p.lM())&&void 0!==O?O:0,this.DB.oB();const ot=this.qB({sessionId:null!==(F=this.UB.getSessionId())&&void 0!==F?F:"",subSessionId:null!==(Z=this.UB.getSubSessionId())&&void 0!==Z?Z:"",error:c?{code:c}:void 0,zoneName:null!==(re=this.UB.getZoneName())&&void 0!==re?re:"",zoneAddress:this.UB.getZoneAddress()||this.kB.serverAddress,gpuType:null!==(Oe=this.UB.getGpuType())&&void 0!==Oe?Oe:"",isResume:this.isResume},performance.now()-this.startTime);y=null!==(je=this.UB.getSessionId())&&void 0!==je?je:"",this.Jd?(this.wB=!1,this.uF(),this.Jd.uN()&&this.OO(ot),this.pF(c??(this.Jd.uN()?15859712:15867905)),15867910===c?(n.Log.d("{9d1820c}","{12bc45e}",y),this.mF(y)):this.sendDeleteRequest(y,this.UB)):this.hF?this.mF(y):this.cancelSessionSetup()}else y&&this.sendDeleteRequest(y,this.UB);else{const ot={sessionId:"",subSessionId:"",error:this.eF("StopSession")};this.emit("SessionStopResult",ot)}}pauseSession(y){this.stopSession(y,15867910)}startStreaming(y){var c,p,O,F,Z;const re={sessionId:null!==(p=null===(c=this.UB)||void 0===c?void 0:c.getSessionId())&&void 0!==p?p:"",subSessionId:null!==(F=null===(O=this.UB)||void 0===O?void 0:O.getSubSessionId())&&void 0!==F?F:"",progressState:"StartingStreamer",queuePosition:0,eta:0,ads:[],isAdsRequired:!1};this.emit("SessionUpdate",re);const Oe={...re,state:re.progressState};this.emit("ProgressUpdate",Oe);const je=V(this.kB.serverAddress)?"":this.kB.serverAddress.split(".")[0],{Af:ot}=y.YB[0];if(js(this.Rs,15)){const gn="streamKitOldPlay",tn=ot;tn[gn]||(tn[gn]=ot.play);const Pn=Sn.Go&&lo(this.Rs,15,1);ot.play=()=>{if(Sn.Ho&&(n.Log.i("{9d1820c}","{4a5b360}"),this.gF(),this.wF(),this.CD.bb()),Pn){n.Log.i("{9d1820c}","{8f5cd77}");const Bn=ot.srcObject;ot.srcObject=null,ot.srcObject=Bn}return tn[gn].apply(ot)}}if(Sn.Vo&&(lo(this.Rs,15,0)||lo(this.Rs,15,1))){const gn="data-shouldautoplay",tn="autoplay";ot.hasAttribute(gn)?ot.setAttribute(tn,""):(ot.setAttribute(gn,""),ot.removeAttribute(tn))}const Ct=y.zB.streamParams[0];let qt;this.Jd=new ut(this,[ot],this.CD,this.NB,this.kg,this.yg,this.telemetry,this.Rs,this.hF,this.vr,this.isResume,this.ED,[{width:Ct.width,height:Ct.height,fps:Ct.fps,videoTagId:Ct.videoTagId,dynamicStreamingMode:Ct.drc?3:!1===Ct.drc?0:void 0,maxBitrateKbps:Ct.maxBitrateKbps}],void 0,this.kB.textInputElement,this.kB.clientAppVersion,je,Ct.sendVideoTrack?[{track:Ct.sendVideoTrack}]:void 0,y.zB.signalingUrlQueryParameters),this.Jd.start(),y.zB.keyboardLayout&&this.Jd.setKeyboardLayout(y.zB.keyboardLayout),this.useTelemetryV2?(null===(Z=this.wO)||void 0===Z||Z.processCachedEvent(this.mO),qt=Promise.resolve()):qt=this.telemetry.lO(!0),qt.then(()=>{this.XB()}).catch(()=>{n.Log.e("{9d1820c}","{c761bfd}")})}SF(y){this.lB=!1,y.error&&(this.wB=!1,this.uF()),this.emit("SessionStartResult",y)}bF(y,c,p){var O,F,Z,re,Oe;if(this.gF(),p){const je=p.connectivityInfo;if(je&&!je.Pn){this._B();const ot=this.dF(de(null!==(F=null===(O=y.error)||void 0===O?void 0:O.code)&&void 0!==F?F:15867911));this.useTelemetryV2?this.mO=null!==(re=null===(Z=this.wO)||void 0===Z?void 0:Z.cacheEvent({name:ot.name,gdprLevel:ot.gdprLevel,priority:!0,ts:ot.ts,parameters:ot.parameters},this.mO))&&void 0!==re?re:0:this.RO.dO().catch(()=>{n.Log.e("{9d1820c}","{0c2de99}")})}else this.OO(p)}if(this.pF(y.error?y.error.code:15859712),c)this.SF(y);else{if(y.error){const je=Ao(y.error.code,this.Rs),ot=y;ot.isResumable=je,ot.isSessionAlive=ps(y.error.code,je),n.Log.i("{9d1820c}","{723f7be}",je)}if(this.wB=!1,this.lB=!1,this.uF(),this.Jd){const je=null===(Oe=this.Jd)||void 0===Oe?void 0:Oe.rE(0);je&&this.emit("StreamQualityReport",je)}this.emit("StreamStopped",y)}}pF(y){this.Jd&&(this.Jd.stop(y),this.Jd=void 0)}mF(y,c){var p,O;const F={sessionId:y,subSessionId:null!==(O=null===(p=this.UB)||void 0===p?void 0:p.getSubSessionId())&&void 0!==O?O:"",framesDecoded:this.framesDecoded,error:c};this.gF(),Ut(this.Rs)&&this.Ko&&(n.Log.d("{9d1820c}","{b9b1288}"),this.setMicRecordingEnabled(!1)),this.emit("SessionStopResult",F)}lN(y,c){var p,O,F,Z,re,Oe;if(y.error){const je=this.DB.rB(y.error.code);je&&(y.error.code=Xi(y.error.code,this.Rs)),hs(this.kB.serverAddress,y.error.code).then(ot=>{var Ct,Rt,Et;let qt;this.framesDecoded=null!==(Rt=null===(Ct=this.Jd)||void 0===Ct?void 0:Ct.lM())&&void 0!==Rt?Rt:0,y.zoneAddress||(y.zoneAddress=this.kB.serverAddress),y.error&&(y.error.code=Wa(y.error.code,ot)),c||(qt=this.qB(y,0,ot,je),this.QB=null===(Et=y.error)||void 0===Et?void 0:Et.code),this.bF(y,!0,qt)})}else this.telemetry.xO(y.sessionId,y.subSessionId,this.isResume,y.zoneAddress||this.kB.serverAddress,Math.round(performance.now()-this.startTime),de(15859712),null!==(O=null===(p=this.Jd)||void 0===p?void 0:p.Vy(0))&&void 0!==O?O:"UNKNOWN",this.$B?String(null===(F=this.$B)||void 0===F?void 0:F.zB.appId):"",null!==(re=null===(Z=this.$B)||void 0===Z?void 0:Z.zB.networkSessionId)&&void 0!==re?re:""),this.startTime=performance.now(),"hidden"===document.visibilityState&&(this.mB=this.startTime),this.bB=0,this.isResume&&this.Ko&&this.setMicRecordingEnabled(!0,this.jB),this.SF(y),this.cB&&(null===(Oe=this.Jd)||void 0===Oe||Oe.toggleUserInput(!0,this.inputs)),cn(this.Rs)&&document.addEventListener("SystemIdle",this.OB)}tN(y){var c,p;this.CD.Pb(),n.Log.d("{9d1820c}","{a94b484}");let O=this.DB.rB(y.error.code);O&&(y.error.code=Xi(y.error.code,this.Rs)),this.framesDecoded=null!==(p=null===(c=this.Jd)||void 0===c?void 0:c.lM())&&void 0!==p?p:0,y.zoneAddress||(y.zoneAddress=this.kB.serverAddress),hs(this.kB.serverAddress,y.error.code).then(F=>{y.error.code=Wa(y.error.code,F);const Z=this.qB(y,performance.now()-this.startTime,F,O);this.QB=y.error.code,this.telemetry.Db("HotPlug","",0,this.gB,0,0),this.gB=0,this.bF(y,!1,Z)})}bS(){this.AF()}fF(y){var c,p,O;let F={zB:Object.assign({},y),YB:[]};if(F.zB.streamParams)for(const je of F.zB.streamParams){const ot=document.getElementById(je.videoTagId);if(null==ot||!(ot instanceof HTMLVideoElement))return void this.oF({code:3237094400,description:"Didn't find video element for videoTagId: "+je.videoTagId},"",Ni());F.YB.push({Af:ot})}var Z;if(F.zB.keyboardLayout=null!==(c=F.zB.keyboardLayout)&&void 0!==c?c:Ai(this.Rs)?"m-us":"en_US",void 0!==F.zB.appLaunchMode&&0!==F.zB.appLaunchMode||(F.zB.appLaunchMode=Rn()||Kn(this.Rs)||wt(this.Rs)||((Z=this.Rs).platformType||Z.deviceType)===n.PlatformType.HMD?1:0),Sn.Xo)if(F.zB.metaData)for(const je in Sn.Xo)F.zB.metaData[je]=Sn.Xo[je];else F.zB.metaData=Sn.Xo;void 0!==Sn.appLaunchMode&&(F.zB.appLaunchMode=Sn.appLaunchMode,n.Log.d("{9d1820c}","{c4969b1}",Sn.appLaunchMode));const re=!!Sn.To&&!!Sn.Mo,Oe=!!Sn.fps;return(re||Oe)&&(null===(p=F.zB.streamParams)||void 0===p||p.forEach(je=>{re&&(je.width=Sn.To,je.height=Sn.Mo),Oe&&(je.fps=Sn.fps)}),null===(O=F.zB.monitorSettings)||void 0===O||O.forEach(je=>{re&&(je.widthInPixels=Sn.To,je.heightInPixels=Sn.Mo),Oe&&(je.framesPerSecond=Sn.fps)}),re&&n.Log.i("{9d1820c}","{92a6b38}",Sn.To,Sn.Mo),Oe&&n.Log.d("{9d1820c}","{6618bcd}",Sn.fps)),F.zB.iceServerConfiguration&&(F.zB.iceServerConfiguration=Li(F.zB.iceServerConfiguration)),this.$B=F,this.$B}sendDeleteRequest(y,c){c.sendDeleteRequest(y).then(()=>{n.Log.d("{9d1820c}","{fee1eea}",y),this.mF(y)},p=>{n.Log.e("{9d1820c}","{50e2a6e}",y),this.mF(y,p)})}isMicSupported(){return D.isMicSupported()}setMicRecordingEnabled(y,c){n.Log.i("{9d1820c}","{f5b2f30}",y),y?(this.Ko=!0,this.jB=c,this.CD.Ib(this.jB)):(this.Ko=!1,this.jB=void 0,this.CD.wb())}getMicState(){this.CD.pb()}shouldDefaultEnableMic(){return j(this.Rs)}sendCustomMessage(y){var c;null===(c=this.Jd)||void 0===c||c.sendCustomMessage(y)}toggleUserInput(y,c){var p;null===(p=this.Jd)||void 0===p||p.toggleUserInput(y,c),this.cB=y,this.inputs=c}toggleRsdmm(y){var c;null===(c=this.Jd)||void 0===c||c.toggleRsdmm(y)}getVirtualGamepadHandler(){var y;return null===(y=this.Jd)||void 0===y?void 0:y.getVirtualGamepadHandler()}setAuthInfo(y){var c;null===(c=this.UB)||void 0===c||c.setAuthInfo(y)}sendTextInput(y){var c;null===(c=this.Jd)||void 0===c||c.sendTextInput(y)}setVirtualKeyboardState(y){var c;null===(c=this.Jd)||void 0===c||c.setVirtualKeyboardState(y)}setVideoTransforms(y,c,p){var O;null===(O=this.Jd)||void 0===O||O.setVideoTransforms(y,c,p)}toggleOnScreenStats(){var y;Sn.isInternalUser&&(null===(y=this.Jd)||void 0===y||y.toggleOnScreenStats())}toggleStutterIndicator(){var y;null===(y=this.Jd)||void 0===y||y.toggleStutterIndicator()}setKeyboardLayout(y){var c;n.Log.i("{9d1820c}","{10717a6}",y),null===(c=this.Jd)||void 0===c||c.setKeyboardLayout(y)}sendKeyEvent(y){var c;null===(c=this.Jd)||void 0===c||c.sendKeyEvent(y)}setStreamingMaxBitrate(y,c=0){var p;null===(p=this.Jd)||void 0===p||p.setStreamingMaxBitrate(c,y)}setDrcDfcState(y,c=0){var p;null===(p=this.Jd)||void 0===p||p.setDrcDfcState(c,y?3:0)}setHdr10PlusGaming(y,c){var p;null===(p=this.Jd)||void 0===p||p.yD(y,c??0)}startInputPlayback(y){var c;null===(c=this.Jd)||void 0===c||c.startInputPlayback(y)}wF(){if(!Sn.Ho)return;if(window[wc])return void n.Log.i("{9d1820c}","{e2aba64}");const y=new(window.AudioContext||window.webkitAudioContext)({latencyHint:"interactive",sampleRate:48e3});y.onstatechange=()=>{"suspended"===y.state&&(y.resume(),this.CD.bb(),n.Log.i("{9d1820c}","{faee684}"))},window[wc]=y,window[Kd]=y.createMediaStreamDestination(),navigator.mediaDevices&&this.AB&&navigator.mediaDevices.addEventListener("devicechange",this.AB),n.Log.i("{9d1820c}","{b5f7b9b}")}gF(){Sn.Ho&&(window[wc]&&(window[wc].close(),window[wc]=void 0,n.Log.i("{9d1820c}","{0ac2a42}")),window[Kd]=void 0,navigator.mediaDevices&&this.AB&&navigator.mediaDevices.removeEventListener("devicechange",this.AB))}BB(y){var c;y.detail.idle&&(null===(c=this.Jd)||void 0===c||c.vN(2,60),this.pB=window.setTimeout(()=>{var p;null===(p=this.Jd)||void 0===p||p.VR(15867913)},6e4))}AF(){this.pB&&(window.clearTimeout(this.pB),this.pB=0)}xB(){this.CD.Bb(this.gB),this.gB++}HB(y){var c,p,O,F,Z,re,Oe,je,ot,Ct;if(!this.wB)return;this.wB=!1,this.framesDecoded=null!==(p=null===(c=this.Jd)||void 0===c?void 0:c.lM())&&void 0!==p?p:0;const Rt={sessionId:null!==(F=null===(O=this.UB)||void 0===O?void 0:O.getSessionId())&&void 0!==F?F:"",subSessionId:null!==(re=null===(Z=this.UB)||void 0===Z?void 0:Z.getSubSessionId())&&void 0!==re?re:"",zoneName:null!==(je=null===(Oe=this.UB)||void 0===Oe?void 0:Oe.getZoneName())&&void 0!==je?je:"",zoneAddress:(null===(ot=this.UB)||void 0===ot?void 0:ot.getZoneAddress())||this.kB.serverAddress,error:{code:y}},Et=this.qB(Rt,performance.now()-this.startTime);this.CD.Pb(),this.Jd&&!(null!==(Ct=this.Jd)&&void 0!==Ct&&Ct.uN())||this.OO(Et),this.pF(y),this.cancelSessionSetup()}cancelSessionSetup(){!this.Jd&&this.UB&&this.UB.cancelSessionSetup()}eF(y){return{code:3237093380,description:y+" called before initialize"}}},z.GridServer=no,z.GridServerSettings=As,z.GsErrorCode=z.ScErrorCode,z.InitializeUtils=function(){},z.IsFeatureSupported=I,z.LogImpl=Ys,z.MediaTrackKind=z.TrackType,z.PassThruServer=Fs,z.RNotificationCode=z.StreamWarningType,z.VirtualGamepadHandler=Da,z.configureSessionControlSettings=Uo,z.configureStreamKitSettings=$o,z.createNskStreamClient=od,z.createSessionControl=function(y){const c=new na;if(c.init(y))return c;throw new Error("Session Control initialization failure.")},z.createStreamClient=od,z.decodeWsErrorCodes=function(y){switch(y){case 3237101567:return 1e3;case 3237101566:return 1001;case 3237101565:return 1002;case 3237101564:return 1003;case 3237101562:return 1005;case 3237093890:return 1006;case 3237101560:return 1007;case 3237101559:return 1008;case 3237101558:return 1009;case 3237101557:return 1010;case 3237101556:return 1011;case 3237101555:return 1012;case 3237101554:return 1013;case 3237101553:return 1014;case 3237101552:return 1015;case 3237101551:return 3e3;case 3237101550:return 3003;case 3237101549:return 3008}if(y>=3237097472&&y<=3237101567)return y-3237097472+4e3},z.defaultInputConfigFlags=Jo,z.estimateDataUsage=_e,z.getDeviceCapabilities=$t,z.getNetworkTypeDetector=function(){return gr},z.getPlatformDetails=ms,z.getRecommendedBitrate=pe,z.getResumableSession=function(y,c){for(const p of y)if(p.appId===c&&bo(p.state))return p},z.getStreamStartParameters=function(y){const c=JSON.parse(y),p={downstreamParams:[],signalConnectionInfo:{address:"",port:0},enableTouchInput:2===c.appLaunchMode,sessionId:c.sessionId,subSessionId:c.subSessionId,audioTagId:"",zoneAddress:c.zoneAddress,statTelemetryInfo:{appId:c.appId,zoneName:c.zoneName,gpuType:c.gpuType},streamingFeatures:c.finalizedStreamingFeatures};for(const O of c.monitorSettings)p.downstreamParams.push({width:O.widthInPixels,height:O.heightInPixels,fps:O.framesPerSecond,videoTagId:"",sdrHdrMode:O.sdrHdrMode});for(const O of c.connectionInfo)switch(O.usage){case 14:p.signalConnectionInfo.address=O.ip,p.signalConnectionInfo.port=O.port,p.signalConnectionInfo.secure=5===O.appLevelProtocol,p.signalConnectionInfo.resourcePath=O.resourcePath;break;case 2:case 17:p.mediaConnectionInfo={address:O.ip,port:O.port}}return p},z.getStreamerType=function(){return"WEBRTC"},z.getSupportedCodecs=yt,z.isCancelCode=Ha,z.isFeatureSupported=I,z.isNetworkCode=Xa,z.isResumableSessionState=bo,z.prefetchDeviceCapabilities=function(){un.Yb()},z.registerDeviceCapabilitiesChanged=function(y){un.jb(y)},z.registerLogCallback=function(y){y?n.Logger.register(y):n.Logger.unregister()},z.serializeDeviceCapabilities=function(y){return JSON.stringify(y)},z.shouldDefaultEnableMic=j,z.unregisterDeviceCapabilitiesChanged=function(y){un.Jb(y)},z.updateSessionParameters=function(y,c){var p;const O=JSON.parse(c);y.monitorSettings=null!==(p=O.clientRequestMonitorSettings)&&void 0!==p?p:[],y.streamingFeatures=O.requestedStreamingFeatures}},352:(St,z,s)=>{var i=s(8536).default;(()=>{"use strict";var n={36:(M,P,x)=>{Object.defineProperty(P,"__esModule",{value:!0}),P.LogUploader=void 0;const A=x(623),g=x(596),m=x(614),l=x(492),r="loguploader";P.LogUploader=class{constructor(u,v,E,T,R,B,U=A.UploadEnvironment.PROD){var Y=this;this.buffer=new g.LogBuffer(512e3),this.loggingIntervalId=0,this.isUploadInProgress=!1,this.finishRequested=!1,this.uploadChunk=i(function*(ae=!1){if(Y.isUploadInProgress)return;Y.isUploadInProgress=!0;const G=Y.buffer.getData();Y.buffer.clear(),yield Y.loggingService.sendChunk(G,ae),Y.isUploadInProgress=!1,Y.finishRequested&&!ae&&(m.Log.i(r,"Initiating final chunk upload because finish request received during pending upload"),Y.finishRequested=!1,yield Y.uploadChunk(!0))}),this.loggingService=new l.RemoteLoggingService(u,v,E,T,R,B,U)}start(u){m.Log.i(r,"Starting log upload"),this.clearInterval(),this.finishRequested=!1,this.loggingService.startUpload(u).then(v=>{v?this.loggingIntervalId=window.setInterval(this.uploadChunk,1e4):m.Log.e(r,"Failed to start log upload")})}clearInterval(){0!==this.loggingIntervalId&&(window.clearInterval(this.loggingIntervalId),this.loggingIntervalId=0)}finish(){m.Log.i(r,"Requesting to finish log upload"),this.clearInterval(),this.isUploadInProgress?(this.finishRequested=!0,m.Log.i(r,"Upload in progress. Will finish upload after pending upload completes")):(m.Log.i(r,"No upload in progress. Uploading final chunk"),this.uploadChunk(!0))}log(u){this.buffer.log(u)}}},121:(M,P,x)=>{Object.defineProperty(P,"__esModule",{value:!0}),P.performHttpRequest=P.NativeNetworkError=P.HttpErrorCode=void 0;const A=x(673),g=x(614),m=x(367),l=x(379),r=x(714),u="httprequest";P.HttpErrorCode=(0,r.defineEnum)({NoNetwork:3237089281,NetworkError:3237089282,ResponseParseFailure:3237093379,UserAborted:15867905,ExceptionHappened:3237089284}),P.NativeNetworkError=(0,r.defineEnum)({NetworkError:151,SocketError:152,AddressResolveFailed:153,ConnectFailed:154,SslError:155,ConnectionTimeout:156,DataReceiveTimeout:157,PeerNoResponse:158,UnexpectedHttpRedirect:159,DataSendFailure:160,DataReceiveFailure:161,CertificateRejected:162,DataNotAllowed:163,NetworkErrorUnknown:199,NetworkErrorMax:200});const v={method:"GET",headers:{},body:"",retryCount:0,timeout:0,keepalive:!1};function T(R,B,U){var Y,ae;let G,k="",X="";const q=(Q,ce,te)=>{var Ee,it,Fe;G=te??P.HttpErrorCode.NetworkError,X=null!==(it=null!==(Ee=R?.message)&&void 0!==Ee?Ee:R?.reason)&&void 0!==it?it:ce,k=null!==(Fe=R?.name)&&void 0!==Fe?Fe:Q,g.Log.w(u,`Fetch failing with ${k}: ${X}`)};switch(B){case 0:q("GenericError","Generic fetch error.");break;case DOMException.NETWORK_ERR:q("NetworkError","A network error occurred.");break;case DOMException.TIMEOUT_ERR:q("TimeoutError","The operation timed out.");break;case DOMException.ABORT_ERR:q("AbortError","The operation was aborted.",P.HttpErrorCode.UserAborted);break;default:q("ExceptionHappened",`Unknown Exception: ${B}`,P.HttpErrorCode.ExceptionHappened)}return{code:G,message:X,name:k,retries:U,extendedCode:R?.extendedCode,stack:null!==(ae=null!==(Y=R.stack)&&void 0!==Y?Y:R.exception)&&void 0!==ae?ae:R}}P.performHttpRequest=function(R,B=v,U,Y,ae){var G;const k=null!==(G=B.method)&&void 0!==G?G:"GET";return m.TracingManager.getInstance().createSpan(k,()=>(function(X,q,Q){const ce=A.trace.getActiveSpan();if(!ce)return;let te=new Map([["component",m.TracingComponent.name],["component.version",m.TracingComponent.version],["http.method",X],["http.url",q],["type",""],["http.hostname",""],["http.path",""]]);try{const Ee=new URL(q);te.set("type",Ee.protocol),te.set("http.hostname",Ee.hostname),te.set("http.path",Ee.pathname)}catch{g.Log.e(u,"Failed to extract http request attributes")}for(const[Ee,it]of te)ce.setAttribute(Ee,it);ce.setAttributes(Q)}(k,R,B.headers),function(X,q=v,Q,ce){var te,Ee;let it=void 0===q.retryCount?1:q.retryCount+1;const Fe=it,Qe=null!==(te=q.backOffDelay)&&void 0!==te?te:500;let ct=Qe;const Ge=null!==(Ee=q.method)&&void 0!==Ee?Ee:"GET";let nt=new Headers;const Je=Q??new AbortController;void 0!==q.headers&&Object.keys(q.headers).forEach(Ve=>{nt.set(Ve,q.headers[Ve])});const ze={};A.propagation.inject(A.context.active(),ze);for(const[Ve,$e]of Object.entries(ze))nt.set(Ve,$e);return new Promise((Ve,$e)=>{const Pe=vt=>{(function(){const ve=A.trace.getActiveSpan();ve&&ve.setAttribute("error","true")})(),$e(vt)},J=()=>{if(navigator.onLine){let ve,ue={method:Ge,headers:nt,mode:"cors",keepalive:q.keepalive,signal:Je.signal,cache:"no-store"};"GET"!==Ge&&"HEAD"!==Ge&&(ue.body=q.body);const et=0,se=[et,DOMException.NETWORK_ERR,DOMException.TIMEOUT_ERR,503],Ce=q.timeout?new l.CancellableWait(q.timeout):void 0,be=[],rt=ce??window.fetch;be.push(rt(X,ue)),Ce&&be.push(Ce.getPromise()),Promise.race(be).then(me=>{if(Ce?.isTimedOut())throw g.Log.w(u,`Timeout while performing HTTP request for Url: ${X}`),{code:DOMException.TIMEOUT_ERR,message:"Timeout while performing HTTP request",name:"TimeoutError"};if(me)return ve=me.status,me.text();throw{code:DOMException.TYPE_MISMATCH_ERR,message:"Impossible condition. Response type cannot be void.",name:"ExceptionHappened"}}).then(me=>{if(!me&&se.includes(ve)){if(it>1)throw{code:ve,message:"Internal server error."};g.Log.w(u,`Failing with ${ve} even after ${Fe} retries`)}var vt;(function(ve){const ue=A.trace.getActiveSpan();ue&&(ue.setAttribute("error","false"),ue.setAttribute("http.status_code",ve.toString()))})((vt={status:ve,data:me??"",retries:Fe-it}).status),Ve(vt)}).catch(me=>{me instanceof Error?g.Log.d(u,`Error in Fetch: ${me.message}`):g.Log.d(u,`Error in Fetch: ${JSON.stringify(me)}, ${me}`);const le=function E(R){let B=0;return R?.code?B=R.code:R?.name&&("AbortError"===R.name?B=DOMException.ABORT_ERR:"NetworkError"===R.name?B=DOMException.NETWORK_ERR:"TimeoutError"===R.name&&(B=DOMException.TIMEOUT_ERR)),B}(me);le==et&&q.keepalive&&(q.keepalive=!1);const Xe=Fe-it;se.includes(le)?(ve=>{if(it>1){it--,g.Log.d(u,`Failing with ${ve}, retries left ${it}`);const ue=new l.CancellableWait(ct,Je.signal);return ue.getPromise().then(J).catch(et=>{var se,Ce;if(ue.isAborted())Pe({code:P.HttpErrorCode.UserAborted,retries:Fe-it,message:"User aborted",name:"AbortError"});else{const be=JSON.stringify(et);g.Log.w(u,`Unhandled exception caught: ${be}`),Pe({code:P.HttpErrorCode.ExceptionHappened,retries:Fe-it,message:null!==(se=et?.message)&&void 0!==se?se:be,name:null!==(Ce=et?.name)&&void 0!==Ce?Ce:"ExceptionHappened"})}}),ct+=Qe,!0}return!1})(le)||(g.Log.w(u,`Fetch failing even after ${Fe} retries. Error: ${le}`),Pe(T(me,le,Xe))):Pe(T(me,le,Xe))}).finally(()=>{Ce?.cancel()})}else Pe({code:P.HttpErrorCode.NoNetwork,message:"No network",retries:Fe-it,name:"NetworkError"})};J()})}(R,B,Y,ae)))}},185:(M,P,x)=>{Object.defineProperty(P,"__esModule",{value:!0}),P.pageSessionId=P.computeSha256Checksum=P.GetHexString=P.convertToUnsignedInt=P.getNewGuid=void 0;const A=x(614),g="utils";function m(){let r=new Uint8Array(36);window.crypto.getRandomValues(r);let u="";for(let v=0;v<36;v++){let E=r[v]%16;8==v||13==v||18==v||23==v?u+="-":14==v?u+="4":(19==v&&(E=3&E|8),u+=E.toString(16))}return A.Log.i(g,"new guid "+u),u}function l(r){return r>>>0}P.getNewGuid=m,P.convertToUnsignedInt=l,P.GetHexString=function(r){return"0x"+("00000000"+(r=l(r)).toString(16).toUpperCase()).slice(-8)},P.computeSha256Checksum=function(){var r=i(function*(u){var v;if(null===(v=crypto.subtle)||void 0===v||!v.digest){const T="Crypto.subtle.digest is not available";throw A.Log.e(g,T),new Error(T)}const E=yield crypto.subtle.digest("SHA-256",u);return Array.from(new Uint8Array(E)).map(T=>T.toString(16).padStart(2,"0")).join("")});return function(u){return r.apply(this,arguments)}}(),P.pageSessionId=m()},250:(M,P,x)=>{Object.defineProperty(P,"__esModule",{value:!0}),P.AuthType=P.authInfoToHeader=void 0;const A=x(714);P.authInfoToHeader=function(g){if(!g.token)return"";switch(g.type){case P.AuthType.JWT_GFN:return`GFNJWT ${g.token}`;case P.AuthType.JWT_PARTNER:return`GFNPartnerJWT auth=${g.token}`;default:return""}},P.AuthType=(0,A.defineEnum)({NONE:-1,JARVIS:0,JWT_GFN:1,JWT_PARTNER:2})},297:(M,P,x)=>{Object.defineProperty(P,"__esModule",{value:!0}),P.Profile=P.BitDepth=P.SdrHdrMode=void 0;const A=x(714);P.SdrHdrMode=(0,A.defineEnum)({SDR:0,HDR:1,EDR:2}),P.BitDepth=(0,A.defineEnum)({BIT_DEPTH_8:0,BIT_DEPTH_10:1}),P.Profile=(0,A.defineEnum)({CUSTOM:0,BALANCED:1,COMPETITIVE:2,DATA_SAVER:3,CINEMATIC:4})},367:(M,P,x)=>{Object.defineProperty(P,"__esModule",{value:!0}),P.TracingManager=P.TracingComponent=void 0;const A=x(673);P.TracingComponent={name:"@gamestream/utils",version:"1.0"};class g{constructor(){this.tracer=A.trace.getTracer("gfn-web-gamestream","2.0")}static getInstance(){return g.instance||(g.instance=new g),g.instance}createSpan(l,r){const u=this.tracer.startSpan(l);return A.context.with(A.trace.setSpan(A.context.active(),u),i(function*(){try{const v=r();return v instanceof Promise?yield v:v}finally{u.end()}}))}}P.TracingManager=g},379:(M,P)=>{Object.defineProperty(P,"__esModule",{value:!0}),P.CancellableWait=void 0,P.CancellableWait=class{constructor(x,A){var g;this.timerId=0,this.timedOut=!1,this.aborted=!1,this.promise=new Promise((m,l)=>{this.promiseResolve=m,this.promiseReject=l}),A?.aborted?(this.aborted=!0,this.promiseReject()):(this.abortSignal=A,this.onAbortFunc=this.onAbort.bind(this),null===(g=this.abortSignal)||void 0===g||g.addEventListener("abort",this.onAbortFunc),this.timerId=window.setTimeout(this.onTimeout.bind(this),x))}cancel(){var x;null===(x=this.abortSignal)||void 0===x||x.removeEventListener("abort",this.onAbortFunc),this.timerId&&(window.clearTimeout(this.timerId),this.timerId=0),this.abortSignal=void 0}getPromise(){return this.promise}isTimedOut(){return this.timedOut}isAborted(){return this.aborted}onAbort(){this.aborted=!0,this.promiseReject(),this.cancel()}onTimeout(){this.timedOut=!0,this.promiseResolve(),this.timerId=0,this.cancel()}}},386:(M,P,x)=>{Object.defineProperty(P,"__esModule",{value:!0}),P.IndexedDb=void 0;const A=x(614),g="indexdb";function m(l,r,u){return{code:l,description:r,error:null!==u?u:void 0}}P.IndexedDb=class{constructor(l,r){this.indexedDb=window.indexedDB,this.version=2,this.isDbClosing=!1,this.didDbCloseUnexpectedly=!1,this.name=l,this.storeDetails=r}open(){return new Promise((l,r)=>{try{if(this.indexedDb){let u=this.indexedDb.open(this.name,this.version);u.onerror=v=>{r(m(18,`${this.name} db opening failed`,u.error))},u.onsuccess=v=>{this.createDbInstance(u.result),l()},u.onupgradeneeded=v=>{A.Log.i(g,`Upgrading from version ${v.oldVersion} to ${v.newVersion}`),this.createDbInstance(u.result);const E=T=>{var R;const B=null===(R=this.dbInstance)||void 0===R?void 0:R.createObjectStore(T.storeName,T.storeOptions);T.storeOptions.keyPath&&B?.createIndex(T.storeIndexName,T.storeOptions.keyPath,{unique:!0})};switch(v.oldVersion){case 0:E(this.storeDetails[0]);case 1:E(this.storeDetails[1])}},u.onblocked=v=>{r(m(19,`${this.name} db blocked during opening`,u.error))}}else r(m(17,"Indexdb object not found"))}catch(u){r(m(20,"Unexpected Exception in open",u))}})}getDbStateError(){if(!this.indexedDb)return m(17,"Indexdb object not found");if(!this.dbInstance)return m(1,"Db not yet open");if(this.isDbClosing){const l="hidden"===document.visibilityState;return m(2,"Db is closing, unexpectedly: "+this.didDbCloseUnexpectedly+", visibility state hidden: "+l)}}get(l,r){const u=this.getDbStateError();return u?Promise.reject(u):new Promise((v,E)=>{try{const T=this.dbInstance.transaction(l,"readonly"),R=T.objectStore(l);T.oncomplete=U=>{A.Log.i(g,"transaction complete in get")};const B=R.get(r);B.onsuccess=()=>{v(B.result)},B.onerror=U=>{E(m(32,"get method failed",T.error))}}catch(T){E(m(33,"Unexpected Exception happened in get",T))}})}set(l,r){const u=this.getDbStateError();return u?Promise.reject(u):new Promise((v,E)=>{try{const T=this.dbInstance.transaction(l,"readwrite"),R=T.objectStore(l);T.oncomplete=U=>{A.Log.i(g,"transaction complete in set")};const B=R.put(r);B.onsuccess=()=>{v()},B.onerror=U=>{E(m(48,"put method failed",T.error))}}catch(T){E(m(49,"Unexpected Exception happened in set",T))}})}delete(l,r){const u=this.getDbStateError();return u?Promise.reject(u):new Promise((v,E)=>{try{const T=this.dbInstance.transaction(l,"readwrite"),R=T.objectStore(l);T.oncomplete=U=>{A.Log.i(g,"transaction complete in delete")};const B=R.delete(r);B.onsuccess=()=>{v()},B.onerror=U=>{E(m(64,"delete method failed",T.error))}}catch(T){E(m(65,"Unexpected Exception in delete",T))}})}clear(l){const r=this.getDbStateError();return r?Promise.reject(r):new Promise((u,v)=>{try{const E=this.dbInstance.transaction(l,"readwrite"),T=E.objectStore(l);E.oncomplete=B=>{A.Log.i(g,"transaction complete in clear")};const R=T.clear();R.onsuccess=()=>{u()},R.onerror=B=>{v(m(80,"clear method failed)",E.error))}}catch(E){v(m(81,"Unexpected Exception happened in clear",E))}})}getAll(l){const r=this.getDbStateError();return r?Promise.reject(r):new Promise((u,v)=>{try{const E=this.dbInstance.transaction(l,"readonly"),T=E.objectStore(l);E.oncomplete=B=>{A.Log.i(g,"transaction complete in getAll")};const R=T.getAll();R.onsuccess=()=>{u(R.result)},R.onerror=B=>{v(m(96,"getAll method failed",E.error))}}catch(E){v(m(97,"Unexpected Exception in getAll",E))}})}close(){var l;this.isDbClosing=!0,null===(l=this.dbInstance)||void 0===l||l.close()}createDbInstance(l){this.isDbClosing=!1,this.didDbCloseUnexpectedly=!1,this.dbInstance=l,this.dbInstance.onversionchange=r=>{A.Log.w(g,"closing db to unblock other tabs"),this.close(),this.dbInstance=void 0},this.dbInstance.onclose=r=>{A.Log.w(g,"Db connection unexpectedly closed"),this.isDbClosing=!0,this.didDbCloseUnexpectedly=!0}}}},419:(M,P,x)=>{Object.defineProperty(P,"__esModule",{value:!0}),P.TelemetryModule=P.CLIENT_STORE=P.OFFLINE_STORE=P.STORAGE_NAME=P.GdprLevel=void 0;const A=x(386),g=x(185),m=x(614),l=x(121),r=x(623),u=x(537),v=x(714),E="telemetry";P.GdprLevel=(0,v.defineEnum)({FUNCTIONAL:"functional",TECHNICAL:"technical",BEHAVIORAL:"behavioral"});const T="https://events.gfe.nvidia.com/v1.1/events/json";P.STORAGE_NAME="telemetry",P.OFFLINE_STORE="offline-events-cache",P.CLIENT_STORE="client-events-cache",P.TelemetryModule=new class{constructor(){var R=this;this.commonDataSet=!1,this.telemetryEventIds={},this.uploadToServerTimerId=0,this.requestPending=!1,this.eventIdGenerator=0,this.exceptionHandled=new Set,this.clientEvents=new Map,this.pendingEvents=new Map,this.missingConsentEvents=[],this.dbPromises=new Map,this.dbInitialized=!1,this.serverUrl=T,this.httpConfiguration={method:"POST",headers:{"Content-Type":"application/json"},body:"",retryCount:3,timeout:15e3},this.eventSysVer="2.0",this.eventProtocol="1.5",this.maxEventsInStore=256,this.maxEventsInRequest=128,this.requestDelay=2e3,this.idb=new A.IndexedDb(P.STORAGE_NAME,[{storeName:P.OFFLINE_STORE,storeOptions:{keyPath:["clientId"]},storeIndexName:"offline-events-index"},{storeName:P.CLIENT_STORE,storeOptions:{keyPath:["clientId"]},storeIndexName:"client-events-index"}]),this.idb.open().then(i(function*(){R.dbInitialized=!0;const B=yield Promise.all([R.idb.getAll(P.OFFLINE_STORE),R.idb.getAll(P.CLIENT_STORE)]);B[0].forEach(U=>{m.Log.d(E,`Process offline events from previous sessions: ${U.payloads.length}`),U.payloads.forEach(Y=>R.processEventPayload(Y))}),B[1].forEach(U=>{m.Log.d(E,`Process client events from previous sessions: ${U.payloads.length}`),U.payloads.filter(Y=>Y.sessionId!==g.pageSessionId).forEach(Y=>R.processEventPayload(Y)),R.clientEvents.has(U.clientId)||R.clientEvents.set(U.clientId,[])}),R.saveEvents(P.OFFLINE_STORE,R.pendingEvents),R.saveEvents(P.CLIENT_STORE,R.clientEvents)})).catch(B=>{this.handleException("dbOpen",B)})}configure(R,B,U){var Y,ae,G,k,X,q,Q,ce,te,Ee,it;try{switch(typeof U){case"function":this.callback=U;break;case"number":this.serverUrl=U===r.UploadEnvironment.STAGING?"https://events.gfestage.nvidia.com/v1.1/events/json":T;break;case"string":this.serverUrl=new URL(U).toString()}this.appInfo=Object.assign({},R),this.deviceInfo=Object.assign({},B),this.platformPayload=(0,u.translatePlatformInfoForPayload)(B),void 0===B.os&&B.deviceOS&&(this.platformPayload.os=B.deviceOS),void 0===B.browser&&B.browserType&&(this.platformPayload.browser=B.browserType),void 0===B.platformType&&B.deviceType&&(this.platformPayload.deviceType=B.deviceType),null!==(Y=(te=this.deviceInfo).osVersion)&&void 0!==Y||(te.osVersion=null!==(ae=this.deviceInfo.deviceOSVersion)&&void 0!==ae?ae:"");const Fe="undefined";null!==(G=(Ee=this.deviceInfo).model)&&void 0!==G||(Ee.model=null!==(X=null===(k=this.deviceInfo)||void 0===k?void 0:k.deviceModel)&&void 0!==X?X:Fe),null!==(q=(it=this.deviceInfo).make)&&void 0!==q||(it.make=null!==(ce=null===(Q=this.deviceInfo)||void 0===Q?void 0:Q.deviceMake)&&void 0!==ce?ce:Fe),"function"==typeof U?(this.pendingEvents.forEach((Qe,ct)=>{Qe.forEach(Ge=>{U(Ge)}),this.pendingEvents.set(ct,[])}),this.saveEvents(P.OFFLINE_STORE,this.pendingEvents)):this.cacheAndMaybeUploadTelemetry()}catch(Fe){return m.Log.e(E,`configure failed: ${JSON.stringify(Fe)}`),!1}return!0}createTelemetryProvider(R){return{processEvent:this.processEvent.bind(this,R),cacheEvent:this.cacheEvent.bind(this,R),processCachedEvent:this.processCachedEvent.bind(this),dropCachedEvent:this.dropCachedEvent.bind(this)}}updateClientCommonData(R,B,U,Y){if(this.commonDataSet=!0,this.userInfo&&(this.userInfo.userId!==R.userId||this.userInfo.externalUserId!==R.externalUserId||this.userInfo.idpId!==R.idpId)&&this.sendOldUserRelatedEvents(),this.userInfo=Object.assign({},R),U){this.userConsent=Object.assign({},U);const G=JSON.stringify(U);m.Log.d(E,`User consent has been synced: ${G}`)}this.deviceConsent=Object.assign({},B);const ae=JSON.stringify(B);m.Log.d(E,`Device consent has been synced: ${ae}`),this.integrationId=Y,m.Log.d(E,`Common data updated, sending ${this.missingConsentEvents.length} events`),this.sendMissingConsentEvents()}sendOldUserRelatedEvents(){this.clientEvents.forEach((B,U)=>{B.forEach(Y=>{0===this.hasConsented(Y)&&(this.callback?this.callback(Y):Y.priority&&this.appInfo?this.sendBeacon(Y):this.bufferEvent(this.pendingEvents,Y))}),this.clientEvents.set(U,[])});let R=0;if(this.appInfo){let B=Promise.resolve();for(;this.getPendingEventsCount();)this.sendEvents(B).forEach(U=>{R+=U.events.length,this.dropSentEvents(U.events)}),B=B.then(()=>{new Promise(U=>window.setTimeout(U,this.requestDelay))})}else Array.from(this.pendingEvents.keys()).forEach(B=>{this.pendingEvents.set(B,[])});this.missingConsentEvents=[],this.saveEvents(P.OFFLINE_STORE,this.pendingEvents),this.saveEvents(P.CLIENT_STORE,this.clientEvents),m.Log.i(E,`User is switched, send ${R} events in buffer`)}sendMissingConsentEvents(){const R=this.missingConsentEvents;this.missingConsentEvents=[],R.forEach(B=>this.processEventPayload(B))}getTelemetryEventIds(){return Object.assign({},this.telemetryEventIds)}setTelemetryEventIds(R){R.networkSessionId&&(this.telemetryEventIds.networkSessionId=R.networkSessionId),R.streamingProfileGuid&&(this.telemetryEventIds.streamingProfileGuid=R.streamingProfileGuid),R.systemInfoGuid&&(this.telemetryEventIds.systemInfoGuid=R.systemInfoGuid)}processEvent(R,B){var U,Y,ae,G;if(this.callback)this.callback(B);else try{const k={name:B.name,eventId:++this.eventIdGenerator,parameters:JSON.parse(JSON.stringify(B.parameters)),gdprLevel:B.gdprLevel,ts:B.ts,sessionId:g.pageSessionId,userId:null!==(G=null!==(Y=null===(U=this.userInfo)||void 0===U?void 0:U.userId)&&void 0!==Y?Y:null===(ae=this.userInfo)||void 0===ae?void 0:ae.externalUserId)&&void 0!==G?G:"",priority:B.priority,config:Object.assign({},R)};this.processEventPayload(k)}catch(k){this.handleClientException(R,k,`JSON error occurred on processing event: ${B.name}`)}}hasConsented(R){if(!this.commonDataSet)return 2;const B=ae=>{var G,k;return null!==(G=this.userInfo)&&void 0!==G&&G.userId||null!==(k=this.userInfo)&&void 0!==k&&k.externalUserId?ae===r.ConsentLevel.FULL?0:1:ae===r.ConsentLevel.TEMP?0:1};let U=1;switch(R.gdprLevel){case P.GdprLevel.FUNCTIONAL:this.userConsent?U=B(this.userConsent.gdprFuncOptIn):this.deviceConsent&&(U=(Y=this.deviceConsent.deviceGdprFuncOptIn)===r.ConsentLevel.FULL||Y===r.ConsentLevel.TEMP?0:1);break;case P.GdprLevel.TECHNICAL:this.userConsent&&(U=B(this.userConsent.gdprTechOptIn));break;case P.GdprLevel.BEHAVIORAL:this.userConsent&&(U=B(this.userConsent.gdprBehOptIn))}var Y;return U}getDebugEventName(R){return`${R.name} ${g.pageSessionId===R.sessionId?"":"from previous session"}`}processEventPayload(R){switch(this.hasConsented(R)){case 0:this.appInfo?R.priority?this.sendBeacon(R):(this.bufferEvent(this.pendingEvents,R),this.cacheAndMaybeUploadTelemetry()):(m.Log.d(E,`No config, buffer event: ${this.getDebugEventName(R)}`),this.bufferEvent(this.pendingEvents,R));break;case 2:this.dropOldestEventIfNeeded(),m.Log.d(E,`Missing consent event: ${this.getDebugEventName(R)}`),this.missingConsentEvents.push(R);break;case 1:m.Log.d(E,`Drop event: ${this.getDebugEventName(R)}`)}}sendBeacon(R){const B=this.createTelemetryRequestData([R]),U=new Blob([B],{type:"text/plain"}),Y=navigator.sendBeacon(this.serverUrl,U);m.Log.i(E,`telemetry upload sendBeacon result : ${Y} event: ${this.getDebugEventName(R)}`)}cacheAndMaybeUploadTelemetry(){var R=this;this.appInfo&&!this.uploadToServerTimerId&&(this.uploadToServerTimerId=window.setInterval(i(function*(){if(0===R.getPendingEventsCount())return window.clearInterval(R.uploadToServerTimerId),void(R.uploadToServerTimerId=0);if(R.saveEvents(P.OFFLINE_STORE,R.pendingEvents),!R.requestPending){R.requestPending=!0;const B=R.sendEvents();(yield Promise.all(B.map(U=>U.retry))).forEach((U,Y)=>{U||R.dropSentEvents(B[Y].events)}),R.saveEvents(P.OFFLINE_STORE,R.pendingEvents),R.requestPending=!1}}),this.requestDelay))}makeRequestBatches(){const R=[];return this.pendingEvents.forEach(B=>{if(B.length>0){const U=B[0],Y=B.filter(ae=>ae.sessionId===U.sessionId&&ae.config.eventSchemaVer===U.config.eventSchemaVer);R.push(Y)}}),R}dropSentEvents(R){let B=this.pendingEvents.get(R[0].config.clientId);const U=new Set(R.map(Y=>`${Y.sessionId}|${Y.eventId}`));B&&(B=B.filter(Y=>!U.has(`${Y.sessionId}|${Y.eventId}`)),this.pendingEvents.set(R[0].config.clientId,B))}sendEvents(R){const B=R??Promise.resolve(),U=[];return this.makeRequestBatches().forEach(Y=>{const ae=Y.splice(0,this.maxEventsInRequest);U.push({events:ae,retry:B.then(()=>this.sendHttp(ae))})}),U}sendHttp(R){var B=this;return i(function*(){if(0===R.length)return!1;let U=!1;const Y=B.createTelemetryRequestData(R),ae=R[0].config.clientId;try{const G=yield(0,l.performHttpRequest)(B.serverUrl,{...B.httpConfiguration,body:Y}),X=`Telemetry http request status: ${ae} ${G.status} ${G.data}`;[408,500,503].includes(G.status)?(m.Log.e(E,`${X} Retry ${R.length} events.`),U=!0):G.status>=200&&G.status<300?m.Log.i(E,`${X} Uploaded ${R.length} events.`):m.Log.e(E,`${X} Drop ${R.length} events.`)}catch(G){m.Log.e(E,`Client ${ae} telemetry http request failed. Error: ${G}`)}return U})()}cacheEvent(R,B,U){var Y,ae,G;try{if(U){const k=this.clientEvents.get(R.clientId);if(k){const X=k.findIndex(q=>q.eventId===U);if(-1!==X){const q=k.splice(X,1),Q={eventId:q[0].eventId,sessionId:q[0].sessionId,userId:q[0].userId,config:Object.assign({},R),name:B.name,gdprLevel:B.gdprLevel,priority:B.priority,ts:B.ts,parameters:JSON.parse(JSON.stringify(B.parameters))};k.push(Q)}}}else{U=++this.eventIdGenerator;const k={name:B.name,eventId:U,parameters:JSON.parse(JSON.stringify(B.parameters)),gdprLevel:B.gdprLevel,ts:B.ts,sessionId:g.pageSessionId,userId:null!==(ae=null===(Y=this.userInfo)||void 0===Y?void 0:Y.userId)&&void 0!==ae?ae:"",priority:null!==(G=B.priority)&&void 0!==G&&G,config:Object.assign({},R)};this.bufferEvent(this.clientEvents,k)}this.saveEvents(P.CLIENT_STORE,this.clientEvents)}catch(k){this.handleClientException(R,k,`JSON error occurred on caching event: ${B.name}`)}return U??0}processCachedEvent(R){this.removeEventHelper(R,!0)}dropCachedEvent(R){this.removeEventHelper(R,!1)}removeEventHelper(R,B){for(let U of this.clientEvents){const Y=U[1].findIndex(ae=>ae.eventId===R);if(-1!==Y){const ae=U[1].splice(Y,1);this.saveEvents(P.CLIENT_STORE,this.clientEvents),B&&(this.callback?this.callback({name:ae[0].name,gdprLevel:ae[0].gdprLevel,priority:ae[0].priority,ts:ae[0].ts,parameters:ae[0].parameters}):this.processEventPayload(ae[0]));break}}}createTelemetryRequestData(R){var B,U,Y,ae,G,k,X,q,Q,ce,te,Ee,it,Fe,Qe,ct,Ge,nt,Je,ze,Ke,Ve,$e,dt,Pe,J,vt,ve,ue,et,se,Ce,be,rt,me,le;const Xe="undefined",Se={clientId:(null===(B=R[0])||void 0===B?void 0:B.config.clientId)||Xe,clientVer:(null===(U=this.appInfo)||void 0===U?void 0:U.clientVer)||Xe,eventSchemaVer:(null===(Y=R[0])||void 0===Y?void 0:Y.config.eventSchemaVer)||Xe,eventSysVer:this.eventSysVer,eventProtocol:this.eventProtocol,deviceId:(null===(ae=this.deviceInfo)||void 0===ae?void 0:ae.deviceId)||Xe,userId:(null===(G=this.userInfo)||void 0===G?void 0:G.userId)||Xe,externalUserId:null===(k=this.userInfo)||void 0===k?void 0:k.externalUserId,idpId:null===(X=this.userInfo)||void 0===X?void 0:X.idpId,sessionId:(null===(q=R[0])||void 0===q?void 0:q.sessionId)||Xe,events:[],gdprFuncOptIn:null!==(ce=null===(Q=this.userConsent)||void 0===Q?void 0:Q.gdprFuncOptIn)&&void 0!==ce?ce:Xe,gdprTechOptIn:null!==(Ee=null===(te=this.userConsent)||void 0===te?void 0:te.gdprTechOptIn)&&void 0!==Ee?Ee:Xe,gdprBehOptIn:null!==(Fe=null===(it=this.userConsent)||void 0===it?void 0:it.gdprBehOptIn)&&void 0!==Fe?Fe:Xe,deviceGdprFuncOptIn:null!==(ct=null===(Qe=this.deviceConsent)||void 0===Qe?void 0:Qe.deviceGdprFuncOptIn)&&void 0!==ct?ct:Xe,deviceGdprTechOptIn:null!==(nt=null===(Ge=this.deviceConsent)||void 0===Ge?void 0:Ge.deviceGdprTechOptIn)&&void 0!==nt?nt:Xe,deviceGdprBehOptIn:null!==(ze=null===(Je=this.deviceConsent)||void 0===Je?void 0:Je.deviceGdprBehOptIn)&&void 0!==ze?ze:Xe,deviceOS:null!==(Ve=null===(Ke=this.platformPayload)||void 0===Ke?void 0:Ke.os)&&void 0!==Ve?Ve:Xe,deviceOSVersion:(null===($e=this.deviceInfo)||void 0===$e?void 0:$e.osVersion)||Xe,deviceType:null!==(Pe=null===(dt=this.platformPayload)||void 0===dt?void 0:dt.deviceType)&&void 0!==Pe?Pe:Xe,deviceModel:(null===(J=this.deviceInfo)||void 0===J?void 0:J.model)||Xe,deviceMake:(null===(vt=this.deviceInfo)||void 0===vt?void 0:vt.make)||Xe,clientType:null!==(ue=null===(ve=this.appInfo)||void 0===ve?void 0:ve.clientType)&&void 0!==ue?ue:Xe,clientVariant:null!==(se=null===(et=this.appInfo)||void 0===et?void 0:et.clientVariant)&&void 0!==se?se:Xe,integrationId:this.integrationId||Xe,browserType:null!==(be=null===(Ce=this.platformPayload)||void 0===Ce?void 0:Ce.browser)&&void 0!==be?be:Xe,productName:null===(rt=this.appInfo)||void 0===rt?void 0:rt.productName,productVersion:null===(me=this.appInfo)||void 0===me?void 0:me.productVersion,sentTs:""};Se.sentTs=(new Date).toISOString();for(const fe of R)null===(le=Se.events)||void 0===le||le.push({name:fe.name,ts:fe.ts,parameters:fe.parameters});return JSON.stringify(Se)}getPendingEventsCount(){let R=0;return this.pendingEvents.forEach(B=>R+=B.length),R}dropOldestEventIfNeeded(){if(this.getPendingEventsCount()+this.missingConsentEvents.length<this.maxEventsInStore)return;let R="";if(this.missingConsentEvents.length)R=this.missingConsentEvents.splice(0,1)[0].name;else{let B,U="";this.pendingEvents.forEach((ae,G)=>{B?ae[0].ts<B.ts&&(U=G,B=ae[0]):(U=G,B=ae[0])});const Y=this.pendingEvents.get(U);Y&&(R=Y.splice(0,1)[0].name)}m.Log.i(E,`Too many events under pending, drop ${R}`)}bufferEvent(R,B){var U;R===this.pendingEvents&&this.dropOldestEventIfNeeded();const Y=B.config.clientId;R.has(Y)?null===(U=R.get(Y))||void 0===U||U.push(B):R.set(Y,[B])}saveEvents(R,B){this.dbInitialized&&B.forEach((U,Y)=>{var ae;const G={clientId:Y,payloads:U},k=`${R}|${Y}`;let X=null!==(ae=this.dbPromises.get(k))&&void 0!==ae?ae:Promise.resolve();X=X.then(()=>this.idb.set(R,G)).catch(q=>{this.handleException(`saveEvents(${R})`,q)}),this.dbPromises.set(k,X)})}handleException(R,B){var U,Y,ae;const G=null!==(ae=null!==(Y=null===(U=B.error)||void 0===U?void 0:U.message)&&void 0!==Y?Y:B.description)&&void 0!==ae?ae:`Exception in ${R}`;m.Log.e(E,`${R} failed: ${(0,g.GetHexString)(B.code)} ${G}`),this.exceptionHandled.has(R)||this.exceptionHandled.add(R)}handleClientException(R,B,U){m.Log.e(E,U),R.exceptionHandler&&R.exceptionHandler({error:B,description:U})}}},422:(M,P,x)=>{Object.defineProperty(P,"__esModule",{value:!0}),P.NetworkType=void 0;const A=x(714);P.NetworkType=(0,A.defineEnum)({OTHER:"OTHER",ETHERNET:"ETHERNET",UNKNOWN:"UNKNOWN",WIFI:"WIFI",WIFI_2_4:"WIFI_2_4",WIFI_5_0:"WIFI_5_0",MOBILE:"MOBILE",MOBILE_2G:"MOBILE_2G",MOBILE_3G:"MOBILE_3G",MOBILE_4G:"MOBILE_4G",MOBILE_5G:"MOBILE_5G",WIMAX:"WIMAX",BLUETOOTH:"BLUETOOTH"})},492:(M,P,x)=>{Object.defineProperty(P,"__esModule",{value:!0}),P.RemoteLoggingService=void 0;const A=x(623),g=x(921),m=x(121),l=x(614),r=x(537),u=x(185),v="https://telemetry.gfe.nvidia.com/gfc/v4.0",E="remoteloggingservice";P.RemoteLoggingService=class{constructor(T,R,B,U,Y,ae,G){var k,X,q,Q,ce,te;this.chunkOffset=0,this.url=v;const Ee=(0,r.translatePlatformInfoForPayload)(R);switch(void 0===R.os&&R.deviceOS&&(Ee.os=R.deviceOS),void 0===R.browser&&R.browserType&&(Ee.browser=R.browserType),void 0===R.platformType&&R.deviceType&&(Ee.deviceType=R.deviceType),this.headPayload={browserType:Ee.browser,clientId:g.CLIENT_ID,clientTs:"",clientType:B.clientType,clientVariant:B.clientVariant,clientVer:B.clientVer,deviceGdprBehOptIn:Y.deviceGdprBehOptIn,deviceGdprFuncOptIn:Y.deviceGdprFuncOptIn,deviceGdprTechOptIn:Y.deviceGdprTechOptIn,deviceId:R.deviceId,deviceOS:Ee.os,deviceOSVersion:null!==(k=R.osVersion)&&void 0!==k?k:R.deviceOSVersion,deviceMake:null!==(q=null!==(X=R.make)&&void 0!==X?X:R.deviceMake)&&void 0!==q?q:"",deviceModel:null!==(ce=null!==(Q=R.model)&&void 0!==Q?Q:R.deviceModel)&&void 0!==ce?ce:"",deviceType:Ee.deviceType,feedbackId:"",feedbackName:"GS_Log_Event",feedbackProtocol:"4.4",feedbackSchemaVer:"3.2",feedbackSysVer:"v4.3",fileList:[{name:ae}],gdprBehOptIn:U.gdprBehOptIn,gdprFuncOptIn:U.gdprFuncOptIn,gdprTechOptIn:U.gdprTechOptIn,parameters:{streamSessionId:"",streamSubSessionIds:[]},sentTs:"",sessionId:u.pageSessionId,userId:null!==(te=T.userId)&&void 0!==te?te:""},G){case A.UploadEnvironment.PROD:this.url=v;break;case A.UploadEnvironment.STAGING:this.url="https://telemetry.gfestage.nvidia.com/gfc/v4.0";break;default:this.url=G}}startUpload(T){var R=this;return i(function*(){R.chunkOffset=0,R.headPayload.feedbackId=crypto.randomUUID(),R.headPayload.parameters.streamSessionId=T??"",R.headPayload.clientTs=(new Date).toISOString(),R.headPayload.sentTs=(new Date).toISOString();const B={method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(R.headPayload)},U=`${R.url}/head`,Y=yield(0,m.performHttpRequest)(U,B);if(200!==Y.status)return l.Log.e(E,`Head request failed with ${Y.status}`),!1;let ae=`Initiated feedback session ${R.headPayload.feedbackId}`;return T&&(ae+=` for stream session ${T}`),l.Log.i(E,ae),!0})()}sendChunk(T,R=!1){var B=this;return i(function*(){const U=new Blob([T]),Y=new FormData;try{Y.append("feedbackId",B.headPayload.feedbackId),Y.append("offset",B.chunkOffset.toString()),Y.append("checksum",yield(0,u.computeSha256Checksum)(T)),Y.append("data2",U),Y.append("size",U.size.toString()),Y.append("parameters",JSON.stringify(B.headPayload.parameters))}catch(X){return l.Log.e(E,`Cannot send chunk: ${X}`),!1}R&&Y.append("eob","true");const ae={method:"POST",headers:{},body:Y},G=`${B.url}/attachment`,k=yield(0,m.performHttpRequest)(G,ae);switch(k.status){case 200:return l.Log.i(E,`Feedback session ${B.headPayload.feedbackId} closed.`),B.headPayload.feedbackId="",B.chunkOffset=0,!0;case 206:return B.chunkOffset+=U.size,!0;case 462:return l.Log.e(E,"Cannot send attachment request with invalid feedback id"),!1;case 463:return l.Log.e(E,"Incorrect data offset provided in attachment request"),!1;default:return l.Log.e(E,`Attachment request failed with ${k.status}`),!1}})()}}},537:(M,P,x)=>{Object.defineProperty(P,"__esModule",{value:!0}),P.translatePlatformInfoForClientHeader=P.translatePlatformInfoForPayload=void 0;const A=x(865);class g{static getMappedDeviceType(r){switch(r){case A.PlatformType.CONSOLE:return A.PayloadDeviceType.CONSOLE;case A.PlatformType.TABLET:return A.PayloadDeviceType.TABLET;case A.PlatformType.PHONE:return A.PayloadDeviceType.PHONE;case A.PlatformType.TV:return A.PayloadDeviceType.TV;case A.PlatformType.LAPTOP:return A.PayloadDeviceType.LAPTOP;case A.PlatformType.DESKTOP:return A.PayloadDeviceType.DESKTOP;case A.PlatformType.HMD:return A.PayloadDeviceType.HMD;default:return A.PayloadDeviceType.UNDEFINED}}static getMappedBrowserName(r){switch(r){case A.PlatformBrowser.CHROME:return A.PayloadBrowserType.CHROME;case A.PlatformBrowser.SAFARI:return A.PayloadBrowserType.SAFARI;case A.PlatformBrowser.YANDEX:return A.PayloadBrowserType.YANDEX;case A.PlatformBrowser.EDGE:return A.PayloadBrowserType.EDGE;case A.PlatformBrowser.EDGE_LEGACY:return A.PayloadBrowserType.EDGE_LEGACY;case A.PlatformBrowser.FIREFOX:return A.PayloadBrowserType.FIREFOX;case A.PlatformBrowser.SAMSUNG:return A.PayloadBrowserType.SAMSUNG;case A.PlatformBrowser.CHROMIUM:return A.PayloadBrowserType.CHROMIUM;case A.PlatformBrowser.OPERA:return A.PayloadBrowserType.OPERA;case A.PlatformBrowser.OPERAGX:return A.PayloadBrowserType.OPERAGX;case A.PlatformBrowser.BRAVE:return A.PayloadBrowserType.BRAVE;case A.PlatformBrowser.SILK:return A.PayloadBrowserType.SILK;default:return A.PayloadBrowserType.UNDEFINED}}static getMappedDeviceOS(r){switch(r){case A.PlatformOS.WINDOWS:return A.PayloadOSType.WINDOWS;case A.PlatformOS.MAC:return A.PayloadOSType.MACOS;case A.PlatformOS.CHROME_OS:return A.PayloadOSType.CHROMEOS;case A.PlatformOS.LINUX:return A.PayloadOSType.LINUX;case A.PlatformOS.IOS:return A.PayloadOSType.IOS;case A.PlatformOS.IPADOS:return A.PayloadOSType.IPADOS;case A.PlatformOS.TIZEN:return A.PayloadOSType.TIZEN;case A.PlatformOS.WEBOS:return A.PayloadOSType.WEBOS;case A.PlatformOS.XBOX:return A.PayloadOSType.XBOX;case A.PlatformOS.ANDROID:return A.PayloadOSType.ANDROID;case A.PlatformOS.STEAMOS:return A.PayloadOSType.STEAMOS;case A.PlatformOS.VISIONOS:return A.PayloadOSType.VISIONOS;default:return A.PayloadOSType.UNDEFINED}}constructor(r){this._platformInfo=r,this._gxtDetails=this.translateForPayload(),this._lcarsDetails=this.translateForClientHeaders()}translateForPayload(){var r;const u=this._platformInfo,v=g.getMappedDeviceType(u.platformType),E=g.getMappedBrowserName(u.browser);return{os:g.getMappedDeviceOS(null!==(r=u.os)&&void 0!==r?r:A.PlatformOS.UNKNOWN),browser:E,deviceType:v}}translateForClientHeaders(){var r;const u=this._platformInfo,v=g.extractDeviceTypeForBrowserClient(g.getMappedDeviceType(u.platformType)),E=g.extractBrowserTypeForBrowserClient(g.getMappedBrowserName(u.browser));return{os:g.mapOSPlatformNameToSupportedDeviceOs(g.getMappedDeviceOS(null!==(r=u.os)&&void 0!==r?r:A.PlatformOS.UNKNOWN)),browser:E,deviceType:v}}get gxtDetails(){return this._gxtDetails}get lcarsDetails(){return this._lcarsDetails}get info(){return this._platformInfo}}let m;g.mapOSPlatformNameToSupportedDeviceOs=l=>{switch(l){case A.PayloadOSType.WINDOWS:return A.ClientHeaderOSType.WINDOWS;case A.PayloadOSType.MACOS:return A.ClientHeaderOSType.MACOS;case A.PayloadOSType.LINUX:return A.ClientHeaderOSType.LINUX;case A.PayloadOSType.CHROMEOS:return A.ClientHeaderOSType.CHROMEOS;case A.PayloadOSType.IOS:return A.ClientHeaderOSType.IOS;case A.PayloadOSType.IPADOS:return A.ClientHeaderOSType.IPADOS;case A.PayloadOSType.WEBOS:return A.ClientHeaderOSType.WEBOS;case A.PayloadOSType.TIZEN:return A.ClientHeaderOSType.TIZEN;case A.PayloadOSType.XBOX:return A.ClientHeaderOSType.XBOX;case A.PayloadOSType.ANDROID:return A.ClientHeaderOSType.ANDROID;case A.PayloadOSType.STEAMOS:return A.ClientHeaderOSType.STEAMOS;case A.PayloadOSType.SHIELD:return A.ClientHeaderOSType.SHIELD;case A.PayloadOSType.VISIONOS:return A.ClientHeaderOSType.VISIONOS;default:return A.ClientHeaderOSType.UNKNOWN}},g.extractDeviceTypeForBrowserClient=l=>{switch(l){case A.PayloadDeviceType.DESKTOP:return A.ClientHeaderDeviceType.DESKTOP;case A.PayloadDeviceType.LAPTOP:return A.ClientHeaderDeviceType.LAPTOP;case A.PayloadDeviceType.TV:return A.ClientHeaderDeviceType.TV;case A.PayloadDeviceType.PHONE:return A.ClientHeaderDeviceType.PHONE;case A.PayloadDeviceType.TABLET:return A.ClientHeaderDeviceType.TABLET;case A.PayloadDeviceType.CONSOLE:return A.ClientHeaderDeviceType.CONSOLE;case A.PayloadDeviceType.HMD:return A.ClientHeaderDeviceType.HMD;default:return A.ClientHeaderDeviceType.DESKTOP}},g.extractBrowserTypeForBrowserClient=l=>{switch(l){case A.PayloadBrowserType.CHROME:return A.ClientHeaderBrowserType.CHROME;case A.PayloadBrowserType.SAFARI:return A.ClientHeaderBrowserType.SAFARI;case A.PayloadBrowserType.YANDEX:return A.ClientHeaderBrowserType.YANDEX;case A.PayloadBrowserType.EDGE:return A.ClientHeaderBrowserType.EDGE;case A.PayloadBrowserType.EDGE_LEGACY:return A.ClientHeaderBrowserType.EDGE_LEGACY;case A.PayloadBrowserType.FIREFOX:return A.ClientHeaderBrowserType.FIREFOX;case A.PayloadBrowserType.SAMSUNG:return A.ClientHeaderBrowserType.SAMSUNG;case A.PayloadBrowserType.CHROMIUM:return A.ClientHeaderBrowserType.CHROMIUM;case A.PayloadBrowserType.OPERA:return A.ClientHeaderBrowserType.OPERA;case A.PayloadBrowserType.OPERAGX:return A.ClientHeaderBrowserType.OPERAGX;case A.PayloadBrowserType.BRAVE:return A.ClientHeaderBrowserType.BRAVE;case A.PayloadBrowserType.SILK:return A.ClientHeaderBrowserType.SILK;default:return A.ClientHeaderBrowserType.UNKNOWN}},P.translatePlatformInfoForPayload=function(l){return m&&m.info==l||(m=new g(l)),m.gxtDetails},P.translatePlatformInfoForClientHeader=function(l){return m&&m.info==l||(m=new g(l)),m.lcarsDetails}},596:(M,P)=>{Object.defineProperty(P,"__esModule",{value:!0}),P.LogBuffer=void 0;class x{constructor(g){this.encoder=new TextEncoder,this.logIndex=0,this.full=!1,this.buffer=new Uint8Array(g+x.FULL_MESSAGE.length),this.maxLength=g}clear(){this.encoder=new TextEncoder,this.logIndex=0,this.full=!1}log(g){if(this.full)return;let m=this.encoder.encode(g+"\n");this.logIndex+m.byteLength>this.maxLength&&(this.full=!0,m=this.encoder.encode(x.FULL_MESSAGE)),this.buffer.set(m,this.logIndex),this.logIndex+=m.byteLength}getData(){return this.buffer.slice(0,this.logIndex)}}P.LogBuffer=x,x.FULL_MESSAGE="Log is full\n"},614:(M,P,x)=>{Object.defineProperty(P,"__esModule",{value:!0}),P.Logger=P.Log=P.LogMechanism=P.LogLevel=void 0;const A=x(714);P.LogLevel=(0,A.defineEnum)({INFO:"INFO",WARN:"WARN",DEBUG:"DEBUG",ERROR:"ERROR",NONE:"NONE"});const g={[P.LogLevel.NONE]:0,[P.LogLevel.ERROR]:1,[P.LogLevel.WARN]:2,[P.LogLevel.INFO]:3,[P.LogLevel.DEBUG]:4};P.LogMechanism=(0,A.defineEnum)({Default:0,Console:1});const l=new((()=>{class r{constructor(){this.queue=[],this.logMechanism=P.LogMechanism.Default,this.logLevel=P.LogLevel.DEBUG,this._nop=(v,E,...T)=>{},this._d=(v,E,...T)=>this.handleLog(P.LogLevel.DEBUG,v,E,T),this._i=(v,E,...T)=>this.handleLog(P.LogLevel.INFO,v,E,T),this._w=(v,E,...T)=>this.handleLog(P.LogLevel.WARN,v,E,T),this._e=(v,E,...T)=>this.handleLog(P.LogLevel.ERROR,v,E,T)}setLogMechanism(v){this.logMechanism=v}setLogLevel(v){this.logLevel=v}get d(){return g[this.logLevel]<g[P.LogLevel.DEBUG]?this._nop:this.logMechanism===P.LogMechanism.Console?console.debug.bind(console,"%s DEBUG [%s] %s@@",this.renderDate(new Date)):this._d}get w(){return g[this.logLevel]<g[P.LogLevel.WARN]?this._nop:this.logMechanism===P.LogMechanism.Console?console.warn.bind(console,"%s WARN [%s] %s@@",this.renderDate(new Date)):this._w}get i(){return g[this.logLevel]<g[P.LogLevel.INFO]?this._nop:this.logMechanism===P.LogMechanism.Console?console.info.bind(console,"%s INFO [%s] %s@@",this.renderDate(new Date)):this._i}get e(){return g[this.logLevel]<g[P.LogLevel.ERROR]?this._nop:this.logMechanism===P.LogMechanism.Console?console.error.bind(console,"%s ERROR [%s] %s@@",this.renderDate(new Date)):this._e}register(v){this.callback=v,this.queue.length&&window.setTimeout(()=>{this.executeLogCallback(!0)})}isCallbackRegistered(){return!!this.callback}stringifyArgs(...v){return v.length?`##${JSON.stringify(v)}`:""}executeLogCallback(v){this.callback&&this.queue.length&&(this.callback(this.queue[0]),this.queue.shift(),v&&this.queue.length&&window.setTimeout(()=>{this.executeLogCallback(!0)}))}unregister(){this.callback=void 0}handleLog(v,E,T,R){let B=`${T}${this.stringifyArgs(...R)}`,U={timestamp:this.renderDate(new Date),level:v,tag:E,message:B};this.queue.push(U),this.callback?window.setTimeout(()=>{this.executeLogCallback(!1)}):this.queue.length>r.MAX_QUEUE_SIZE&&this.queue.shift()}renderDate(v){const E=(R,B,U)=>{const Y=B-R.length;if(Y>0){let ae="";for(let G=0;G<Y;G++)ae+=U;return ae+=R,ae}return R};let T="";return T=E(v.getFullYear().toString(),4,"0")+"-"+E((v.getMonth()+1).toString(),2,"0")+"-"+(E(v.getDate().toString(),2,"0")+" ")+(R=>E(R.getHours().toString(),2,"0"))(v)+":"+(R=>E(R.getMinutes().toString(),2,"0"))(v)+":"+(R=>E(R.getSeconds().toString(),2,"0"))(v)+"."+(R=>E(R.getMilliseconds().toString(),3,"0"))(v),T}}return r.MAX_QUEUE_SIZE=50,r})());P.Log=l,P.Logger=l},623:(M,P,x)=>{Object.defineProperty(P,"__esModule",{value:!0}),P.ProductName=P.ClientVariant=P.PayloadClientType=P.UploadEnvironment=P.ConsentLevel=void 0;const A=x(714);P.ConsentLevel=(0,A.defineEnum)({FULL:"Full",NONE:"None",TEMP:"Temp"}),P.UploadEnvironment=(0,A.defineEnum)({PROD:0,STAGING:1}),P.PayloadClientType=(0,A.defineEnum)({NATIVE:"Native",BROWSER:"Browser",GFNSDK:"GFNSDK",GFNSDK_BROWSER:"GFNSDK-Browser",UNDEFINED:"undefined"}),P.ClientVariant=(0,A.defineEnum)({BETA:"iBeta",RELEASE:"Release",UNDEFINED:"undefined"}),P.ProductName=(0,A.defineEnum)({GFN:"GFN",GFE:"GFE",NVAPP:"NvApp",DISPLAY_DRIVER:"DisplayDriver",UNDEFINED:"undefined"})},673:(M,P,x)=>{x.r(P),x.d(P,{DiagConsoleLogger:()=>Ve,DiagLogLevel:()=>B,INVALID_SPANID:()=>Xt,INVALID_SPAN_CONTEXT:()=>Ue,INVALID_TRACEID:()=>lt,ProxyTracer:()=>Rn,ProxyTracerProvider:()=>Kn,ROOT_CONTEXT:()=>ze,SamplingDecision:()=>Ai,SpanKind:()=>Gi,SpanStatusCode:()=>bt,TraceFlags:()=>ye,ValueType:()=>nt,baggageEntryMetadataFromString:()=>Qe,context:()=>lo,createContextKey:()=>ct,createNoopMeter:()=>Ne,createTraceState:()=>Pr,default:()=>bs,defaultTextMapGetter:()=>Ot,defaultTextMapSetter:()=>sn,diag:()=>js,isSpanContextValid:()=>Kt,isValidSpanId:()=>Wt,isValidTraceId:()=>Ft,metrics:()=>ai,propagation:()=>Br,trace:()=>ds});var A="object"==typeof globalThis?globalThis:"object"==typeof self?self:"object"==typeof window?window:"object"==typeof x.g?x.g:{},g="1.4.1",m=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/,l=function(An){var zn=new Set([An]),Jn=new Set,di=An.match(m);if(!di)return function(){return!1};var Oi=+di[1],Wi=+di[2],mr=+di[3];if(null!=di[4])return function(us){return us===An};function qr(us){return Jn.add(us),!1}function ms(us){return zn.add(us),!0}return function(us){if(zn.has(us))return!0;if(Jn.has(us))return!1;var Qs=us.match(m);if(!Qs)return qr(us);var Ar=+Qs[2],Ur=+Qs[3];return null!=Qs[4]||Oi!==+Qs[1]?qr(us):0===Oi?Wi===Ar&&mr<=Ur?ms(us):qr(us):Wi<=Ar?ms(us):qr(us)}}(g),r=g.split(".")[0],u=Symbol.for("opentelemetry.js.api."+r),v=A;function E(An,zn,Jn,di){var Oi;void 0===di&&(di=!1);var Wi=v[u]=null!==(Oi=v[u])&&void 0!==Oi?Oi:{version:g};if(!di&&Wi[An]){var mr=new Error("@opentelemetry/api: Attempted duplicate registration of API: "+An);return Jn.error(mr.stack||mr.message),!1}return Wi.version!==g?(mr=new Error("@opentelemetry/api: Registration of version v"+Wi.version+" for "+An+" does not match previously registered API v"+g),Jn.error(mr.stack||mr.message),!1):(Wi[An]=zn,Jn.debug("@opentelemetry/api: Registered a global for "+An+" v"+g+"."),!0)}function T(An){var zn,Jn,di=null===(zn=v[u])||void 0===zn?void 0:zn.version;if(di&&l(di))return null===(Jn=v[u])||void 0===Jn?void 0:Jn[An]}function R(An,zn){zn.debug("@opentelemetry/api: Unregistering a global for "+An+" v"+g+".");var Jn=v[u];Jn&&delete Jn[An]}var B,An,ae=function(){function An(zn){this._namespace=zn.namespace||"DiagComponentLogger"}return An.prototype.debug=function(){for(var zn=[],Jn=0;Jn<arguments.length;Jn++)zn[Jn]=arguments[Jn];return G("debug",this._namespace,zn)},An.prototype.error=function(){for(var zn=[],Jn=0;Jn<arguments.length;Jn++)zn[Jn]=arguments[Jn];return G("error",this._namespace,zn)},An.prototype.info=function(){for(var zn=[],Jn=0;Jn<arguments.length;Jn++)zn[Jn]=arguments[Jn];return G("info",this._namespace,zn)},An.prototype.warn=function(){for(var zn=[],Jn=0;Jn<arguments.length;Jn++)zn[Jn]=arguments[Jn];return G("warn",this._namespace,zn)},An.prototype.verbose=function(){for(var zn=[],Jn=0;Jn<arguments.length;Jn++)zn[Jn]=arguments[Jn];return G("verbose",this._namespace,zn)},An}();function G(An,zn,Jn){var di=T("diag");if(di)return Jn.unshift(zn),di[An].apply(di,function(An,zn,Jn){if(Jn||2===arguments.length)for(var di,Oi=0,Wi=zn.length;Oi<Wi;Oi++)!di&&Oi in zn||(di||(di=Array.prototype.slice.call(zn,0,Oi)),di[Oi]=zn[Oi]);return An.concat(di||Array.prototype.slice.call(zn))}([],function(An,zn){var Jn="function"==typeof Symbol&&An[Symbol.iterator];if(!Jn)return An;var di,Oi,Wi=Jn.call(An),mr=[];try{for(;(void 0===zn||zn-- >0)&&!(di=Wi.next()).done;)mr.push(di.value)}catch(qr){Oi={error:qr}}finally{try{di&&!di.done&&(Jn=Wi.return)&&Jn.call(Wi)}finally{if(Oi)throw Oi.error}}return mr}(Jn),!1))}(An=B||(B={}))[An.NONE=0]="NONE",An[An.ERROR=30]="ERROR",An[An.WARN=50]="WARN",An[An.INFO=60]="INFO",An[An.DEBUG=70]="DEBUG",An[An.VERBOSE=80]="VERBOSE",An[An.ALL=9999]="ALL";var q=function(){function An(){function zn(di){return function(){for(var Oi=[],Wi=0;Wi<arguments.length;Wi++)Oi[Wi]=arguments[Wi];var mr=T("diag");if(mr)return mr[di].apply(mr,function(An,zn,Jn){if(Jn||2===arguments.length)for(var di,Oi=0,Wi=zn.length;Oi<Wi;Oi++)!di&&Oi in zn||(di||(di=Array.prototype.slice.call(zn,0,Oi)),di[Oi]=zn[Oi]);return An.concat(di||Array.prototype.slice.call(zn))}([],function(An,zn){var Jn="function"==typeof Symbol&&An[Symbol.iterator];if(!Jn)return An;var di,Oi,Wi=Jn.call(An),mr=[];try{for(;(void 0===zn||zn-- >0)&&!(di=Wi.next()).done;)mr.push(di.value)}catch(qr){Oi={error:qr}}finally{try{di&&!di.done&&(Jn=Wi.return)&&Jn.call(Wi)}finally{if(Oi)throw Oi.error}}return mr}(Oi),!1))}}var Jn=this;Jn.setLogger=function(di,Oi){var Wi,mr,qr;if(void 0===Oi&&(Oi={logLevel:B.INFO}),di===Jn){var ms=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return Jn.error(null!==(Wi=ms.stack)&&void 0!==Wi?Wi:ms.message),!1}"number"==typeof Oi&&(Oi={logLevel:Oi});var us=T("diag"),Qs=function(Ar,Ur){function vs(fo,Zo){var vo=Ur[fo];return"function"==typeof vo&&Ar>=Zo?vo.bind(Ur):function(){}}return Ar<B.NONE?Ar=B.NONE:Ar>B.ALL&&(Ar=B.ALL),Ur=Ur||{},{error:vs("error",B.ERROR),warn:vs("warn",B.WARN),info:vs("info",B.INFO),debug:vs("debug",B.DEBUG),verbose:vs("verbose",B.VERBOSE)}}(null!==(mr=Oi.logLevel)&&void 0!==mr?mr:B.INFO,di);if(us&&!Oi.suppressOverrideMessage){var ks=null!==(qr=(new Error).stack)&&void 0!==qr?qr:"<failed to generate stacktrace>";us.warn("Current logger will be overwritten from "+ks),Qs.warn("Current logger will overwrite one already registered from "+ks)}return E("diag",Qs,Jn,!0)},Jn.disable=function(){R("diag",Jn)},Jn.createComponentLogger=function(di){return new ae(di)},Jn.verbose=zn("verbose"),Jn.debug=zn("debug"),Jn.info=zn("info"),Jn.warn=zn("warn"),Jn.error=zn("error")}return An.instance=function(){return this._instance||(this._instance=new An),this._instance},An}(),te=function(){function An(zn){this._entries=zn?new Map(zn):new Map}return An.prototype.getEntry=function(zn){var Jn=this._entries.get(zn);if(Jn)return Object.assign({},Jn)},An.prototype.getAllEntries=function(){return Array.from(this._entries.entries()).map(function(zn){var Jn=function(An,zn){var Jn="function"==typeof Symbol&&An[Symbol.iterator];if(!Jn)return An;var di,Oi,Wi=Jn.call(An),mr=[];try{for(;(void 0===zn||zn-- >0)&&!(di=Wi.next()).done;)mr.push(di.value)}catch(qr){Oi={error:qr}}finally{try{di&&!di.done&&(Jn=Wi.return)&&Jn.call(Wi)}finally{if(Oi)throw Oi.error}}return mr}(zn,2);return[Jn[0],Jn[1]]})},An.prototype.setEntry=function(zn,Jn){var di=new An(this._entries);return di._entries.set(zn,Jn),di},An.prototype.removeEntry=function(zn){var Jn=new An(this._entries);return Jn._entries.delete(zn),Jn},An.prototype.removeEntries=function(){for(var zn,Jn,di=[],Oi=0;Oi<arguments.length;Oi++)di[Oi]=arguments[Oi];var Wi=new An(this._entries);try{for(var mr=function(An){var zn="function"==typeof Symbol&&Symbol.iterator,Jn=zn&&An[zn],di=0;if(Jn)return Jn.call(An);if(An&&"number"==typeof An.length)return{next:function(){return An&&di>=An.length&&(An=void 0),{value:An&&An[di++],done:!An}}};throw new TypeError(zn?"Object is not iterable.":"Symbol.iterator is not defined.")}(di),qr=mr.next();!qr.done;qr=mr.next())Wi._entries.delete(qr.value)}catch(us){zn={error:us}}finally{try{qr&&!qr.done&&(Jn=mr.return)&&Jn.call(mr)}finally{if(zn)throw zn.error}}return Wi},An.prototype.clear=function(){return new An},An}(),Ee=Symbol("BaggageEntryMetadata"),it=q.instance();function Fe(An){return void 0===An&&(An={}),new te(new Map(Object.entries(An)))}function Qe(An){return"string"!=typeof An&&(it.error("Cannot create baggage metadata from unknown type: "+typeof An),An=""),{__TYPE__:Ee,toString:function(){return An}}}function ct(An){return Symbol.for(An)}var Ge,nt,ze=new function An(zn){var Jn=this;Jn._currentContext=zn?new Map(zn):new Map,Jn.getValue=function(di){return Jn._currentContext.get(di)},Jn.setValue=function(di,Oi){var Wi=new An(Jn._currentContext);return Wi._currentContext.set(di,Oi),Wi},Jn.deleteValue=function(di){var Oi=new An(Jn._currentContext);return Oi._currentContext.delete(di),Oi}},Ke=[{n:"error",c:"error"},{n:"warn",c:"warn"},{n:"info",c:"info"},{n:"debug",c:"debug"},{n:"verbose",c:"trace"}],Ve=function(){function An(Jn){return function(){for(var di=[],Oi=0;Oi<arguments.length;Oi++)di[Oi]=arguments[Oi];if(console){var Wi=console[Jn];if("function"!=typeof Wi&&(Wi=console.log),"function"==typeof Wi)return Wi.apply(console,di)}}}for(var zn=0;zn<Ke.length;zn++)this[Ke[zn].n]=An(Ke[zn].c)},$e=(Ge=function(An,zn){return(Ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Jn,di){Jn.__proto__=di}||function(Jn,di){for(var Oi in di)Object.prototype.hasOwnProperty.call(di,Oi)&&(Jn[Oi]=di[Oi])})(An,zn)},function(An,zn){if("function"!=typeof zn&&null!==zn)throw new TypeError("Class extends value "+String(zn)+" is not a constructor or null");function Jn(){this.constructor=An}Ge(An,zn),An.prototype=null===zn?Object.create(zn):(Jn.prototype=zn.prototype,new Jn)}),dt=function(){function An(){}return An.prototype.createHistogram=function(zn,Jn){return me},An.prototype.createCounter=function(zn,Jn){return rt},An.prototype.createUpDownCounter=function(zn,Jn){return le},An.prototype.createObservableGauge=function(zn,Jn){return Se},An.prototype.createObservableCounter=function(zn,Jn){return Xe},An.prototype.createObservableUpDownCounter=function(zn,Jn){return fe},An.prototype.addBatchObservableCallback=function(zn,Jn){},An.prototype.removeBatchObservableCallback=function(zn){},An}(),Pe=function(){},J=function(An){function zn(){return null!==An&&An.apply(this,arguments)||this}return $e(zn,An),zn.prototype.add=function(Jn,di){},zn}(Pe),vt=function(An){function zn(){return null!==An&&An.apply(this,arguments)||this}return $e(zn,An),zn.prototype.add=function(Jn,di){},zn}(Pe),ve=function(An){function zn(){return null!==An&&An.apply(this,arguments)||this}return $e(zn,An),zn.prototype.record=function(Jn,di){},zn}(Pe),ue=function(){function An(){}return An.prototype.addCallback=function(zn){},An.prototype.removeCallback=function(zn){},An}(),et=function(An){function zn(){return null!==An&&An.apply(this,arguments)||this}return $e(zn,An),zn}(ue),se=function(An){function zn(){return null!==An&&An.apply(this,arguments)||this}return $e(zn,An),zn}(ue),Ce=function(An){function zn(){return null!==An&&An.apply(this,arguments)||this}return $e(zn,An),zn}(ue),be=new dt,rt=new J,me=new ve,le=new vt,Xe=new et,Se=new se,fe=new Ce;function Ne(){return be}!function(An){An[An.INT=0]="INT",An[An.DOUBLE=1]="DOUBLE"}(nt||(nt={}));var ye,Ot={get:function(An,zn){if(null!=An)return An[zn]},keys:function(An){return null==An?[]:Object.keys(An)}},sn={set:function(An,zn,Jn){null!=An&&(An[zn]=Jn)}},At=function(){function An(){}return An.prototype.active=function(){return ze},An.prototype.with=function(zn,Jn,di){for(var Oi=[],Wi=3;Wi<arguments.length;Wi++)Oi[Wi-3]=arguments[Wi];return Jn.call.apply(Jn,function(An,zn,Jn){if(Jn||2===arguments.length)for(var di,Oi=0,Wi=zn.length;Oi<Wi;Oi++)!di&&Oi in zn||(di||(di=Array.prototype.slice.call(zn,0,Oi)),di[Oi]=zn[Oi]);return An.concat(di||Array.prototype.slice.call(zn))}([di],function(An,zn){var Jn="function"==typeof Symbol&&An[Symbol.iterator];if(!Jn)return An;var di,Oi,Wi=Jn.call(An),mr=[];try{for(;(void 0===zn||zn-- >0)&&!(di=Wi.next()).done;)mr.push(di.value)}catch(qr){Oi={error:qr}}finally{try{di&&!di.done&&(Jn=Wi.return)&&Jn.call(Wi)}finally{if(Oi)throw Oi.error}}return mr}(Oi),!1))},An.prototype.bind=function(zn,Jn){return Jn},An.prototype.enable=function(){return this},An.prototype.disable=function(){return this},An}(),Jt="context",Zt=new At,nn=function(){function An(){}return An.getInstance=function(){return this._instance||(this._instance=new An),this._instance},An.prototype.setGlobalContextManager=function(zn){return E(Jt,zn,q.instance())},An.prototype.active=function(){return this._getContextManager().active()},An.prototype.with=function(zn,Jn,di){for(var Oi,Wi=[],mr=3;mr<arguments.length;mr++)Wi[mr-3]=arguments[mr];return(Oi=this._getContextManager()).with.apply(Oi,function(An,zn,Jn){if(Jn||2===arguments.length)for(var di,Oi=0,Wi=zn.length;Oi<Wi;Oi++)!di&&Oi in zn||(di||(di=Array.prototype.slice.call(zn,0,Oi)),di[Oi]=zn[Oi]);return An.concat(di||Array.prototype.slice.call(zn))}([zn,Jn,di],function(An,zn){var Jn="function"==typeof Symbol&&An[Symbol.iterator];if(!Jn)return An;var di,Oi,Wi=Jn.call(An),mr=[];try{for(;(void 0===zn||zn-- >0)&&!(di=Wi.next()).done;)mr.push(di.value)}catch(qr){Oi={error:qr}}finally{try{di&&!di.done&&(Jn=Wi.return)&&Jn.call(Wi)}finally{if(Oi)throw Oi.error}}return mr}(Wi),!1))},An.prototype.bind=function(zn,Jn){return this._getContextManager().bind(zn,Jn)},An.prototype._getContextManager=function(){return T(Jt)||Zt},An.prototype.disable=function(){this._getContextManager().disable(),R(Jt,q.instance())},An}();!function(An){An[An.NONE=0]="NONE",An[An.SAMPLED=1]="SAMPLED"}(ye||(ye={}));var Xt="0000000000000000",lt="00000000000000000000000000000000",Ue={traceId:lt,spanId:Xt,traceFlags:ye.NONE},wt=function(){function An(zn){void 0===zn&&(zn=Ue),this._spanContext=zn}return An.prototype.spanContext=function(){return this._spanContext},An.prototype.setAttribute=function(zn,Jn){return this},An.prototype.setAttributes=function(zn){return this},An.prototype.addEvent=function(zn,Jn){return this},An.prototype.setStatus=function(zn){return this},An.prototype.updateName=function(zn){return this},An.prototype.end=function(zn){},An.prototype.isRecording=function(){return!1},An.prototype.recordException=function(zn,Jn){},An}(),gt=ct("OpenTelemetry Context Key SPAN");function Ht(An){return An.getValue(gt)||void 0}function bn(){return Ht(nn.getInstance().active())}function Ut(An,zn){return An.setValue(gt,zn)}function Bt(An){return An.deleteValue(gt)}function Le(An,zn){return Ut(An,new wt(zn))}function V(An){var zn;return null===(zn=Ht(An))||void 0===zn?void 0:zn.spanContext()}var de=/^([0-9a-f]{32})$/i,ge=/^[0-9a-f]{16}$/i;function Ft(An){return de.test(An)&&An!==lt}function Wt(An){return ge.test(An)&&An!==Xt}function Kt(An){return Ft(An.traceId)&&Wt(An.spanId)}function cn(An){return new wt(An)}var Ai,Gi,bt,En=nn.getInstance(),kn=function(){function An(){}return An.prototype.startSpan=function(zn,Jn,di){if(void 0===di&&(di=En.active()),Jn?.root)return new wt;var Oi,Wi=di&&V(di);return"object"==typeof(Oi=Wi)&&"string"==typeof Oi.spanId&&"string"==typeof Oi.traceId&&"number"==typeof Oi.traceFlags&&Kt(Wi)?new wt(Wi):new wt},An.prototype.startActiveSpan=function(zn,Jn,di,Oi){var Wi,mr,qr;if(!(arguments.length<2)){2===arguments.length?qr=Jn:3===arguments.length?(Wi=Jn,qr=di):(Wi=Jn,mr=di,qr=Oi);var ms=mr??En.active(),us=this.startSpan(zn,Wi,ms),Qs=Ut(ms,us);return En.with(Qs,qr,void 0,us)}},An}(),Zi=new kn,Rn=function(){function An(zn,Jn,di,Oi){this._provider=zn,this.name=Jn,this.version=di,this.options=Oi}return An.prototype.startSpan=function(zn,Jn,di){return this._getTracer().startSpan(zn,Jn,di)},An.prototype.startActiveSpan=function(zn,Jn,di,Oi){var Wi=this._getTracer();return Reflect.apply(Wi.startActiveSpan,Wi,arguments)},An.prototype._getTracer=function(){if(this._delegate)return this._delegate;var zn=this._provider.getDelegateTracer(this.name,this.version,this.options);return zn?(this._delegate=zn,this._delegate):Zi},An}(),Gn=new(function(){function An(){}return An.prototype.getTracer=function(zn,Jn,di){return new kn},An}()),Kn=function(){function An(){}return An.prototype.getTracer=function(zn,Jn,di){var Oi;return null!==(Oi=this.getDelegateTracer(zn,Jn,di))&&void 0!==Oi?Oi:new Rn(this,zn,Jn,di)},An.prototype.getDelegate=function(){var zn;return null!==(zn=this._delegate)&&void 0!==zn?zn:Gn},An.prototype.setDelegate=function(zn){this._delegate=zn},An.prototype.getDelegateTracer=function(zn,Jn,di){var Oi;return null===(Oi=this._delegate)||void 0===Oi?void 0:Oi.getTracer(zn,Jn,di)},An}();(function(An){An[An.NOT_RECORD=0]="NOT_RECORD",An[An.RECORD=1]="RECORD",An[An.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(Ai||(Ai={})),function(An){An[An.INTERNAL=0]="INTERNAL",An[An.SERVER=1]="SERVER",An[An.CLIENT=2]="CLIENT",An[An.PRODUCER=3]="PRODUCER",An[An.CONSUMER=4]="CONSUMER"}(Gi||(Gi={})),function(An){An[An.UNSET=0]="UNSET",An[An.OK=1]="OK",An[An.ERROR=2]="ERROR"}(bt||(bt={}));var Ni="[_0-9a-z-*/]",ir=new RegExp("^(?:[a-z]"+Ni+"{0,255}|[a-z0-9]"+Ni+"{0,240}@[a-z]"+Ni+"{0,13})$"),Ir=/^[ -~]{0,255}[!-~]$/,hr=/,|=/,Ms=function(){function An(zn){this._internalState=new Map,zn&&this._parse(zn)}return An.prototype.set=function(zn,Jn){var di=this._clone();return di._internalState.has(zn)&&di._internalState.delete(zn),di._internalState.set(zn,Jn),di},An.prototype.unset=function(zn){var Jn=this._clone();return Jn._internalState.delete(zn),Jn},An.prototype.get=function(zn){return this._internalState.get(zn)},An.prototype.serialize=function(){var zn=this;return this._keys().reduce(function(Jn,di){return Jn.push(di+"="+zn.get(di)),Jn},[]).join(",")},An.prototype._parse=function(zn){zn.length>512||(this._internalState=zn.split(",").reverse().reduce(function(Jn,di){var ms,Oi=di.trim(),Wi=Oi.indexOf("=");if(-1!==Wi){var mr=Oi.slice(0,Wi),qr=Oi.slice(Wi+1,di.length);ir.test(mr)&&(Ir.test(ms=qr)&&!hr.test(ms))&&Jn.set(mr,qr)}return Jn},new Map),this._internalState.size>32&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,32))))},An.prototype._keys=function(){return Array.from(this._internalState.keys()).reverse()},An.prototype._clone=function(){var zn=new An;return zn._internalState=new Map(this._internalState),zn},An}();function Pr(An){return new Ms(An)}var lo=nn.getInstance(),js=q.instance(),Vn=new(function(){function An(){}return An.prototype.getMeter=function(zn,Jn,di){return be},An}()),Ei="metrics",ai=function(){function An(){}return An.getInstance=function(){return this._instance||(this._instance=new An),this._instance},An.prototype.setGlobalMeterProvider=function(zn){return E(Ei,zn,q.instance())},An.prototype.getMeterProvider=function(){return T(Ei)||Vn},An.prototype.getMeter=function(zn,Jn,di){return this.getMeterProvider().getMeter(zn,Jn,di)},An.prototype.disable=function(){R(Ei,q.instance())},An}().getInstance(),Li=function(){function An(){}return An.prototype.inject=function(zn,Jn){},An.prototype.extract=function(zn,Jn){return zn},An.prototype.fields=function(){return[]},An}(),Lr=ct("OpenTelemetry Baggage Key");function Mn(An){return An.getValue(Lr)||void 0}function Qn(){return Mn(nn.getInstance().active())}function Zn(An,zn){return An.setValue(Lr,zn)}function fi(An){return An.deleteValue(Lr)}var yi="propagation",tr=new Li,qi=function(){function An(){this.createBaggage=Fe,this.getBaggage=Mn,this.getActiveBaggage=Qn,this.setBaggage=Zn,this.deleteBaggage=fi}return An.getInstance=function(){return this._instance||(this._instance=new An),this._instance},An.prototype.setGlobalPropagator=function(zn){return E(yi,zn,q.instance())},An.prototype.inject=function(zn,Jn,di){return void 0===di&&(di=sn),this._getGlobalPropagator().inject(zn,Jn,di)},An.prototype.extract=function(zn,Jn,di){return void 0===di&&(di=Ot),this._getGlobalPropagator().extract(zn,Jn,di)},An.prototype.fields=function(){return this._getGlobalPropagator().fields()},An.prototype.disable=function(){R(yi,q.instance())},An.prototype._getGlobalPropagator=function(){return T(yi)||tr},An}(),Br=qi.getInstance(),Sr="trace",ds=function(){function An(){this._proxyTracerProvider=new Kn,this.wrapSpanContext=cn,this.isSpanContextValid=Kt,this.deleteSpan=Bt,this.getSpan=Ht,this.getActiveSpan=bn,this.getSpanContext=V,this.setSpan=Ut,this.setSpanContext=Le}return An.getInstance=function(){return this._instance||(this._instance=new An),this._instance},An.prototype.setGlobalTracerProvider=function(zn){var Jn=E(Sr,this._proxyTracerProvider,q.instance());return Jn&&this._proxyTracerProvider.setDelegate(zn),Jn},An.prototype.getTracerProvider=function(){return T(Sr)||this._proxyTracerProvider},An.prototype.getTracer=function(zn,Jn){return this.getTracerProvider().getTracer(zn,Jn)},An.prototype.disable=function(){R(Sr,q.instance()),this._proxyTracerProvider=new Kn},An}().getInstance();const bs={context:lo,diag:js,metrics:ai,propagation:Br,trace:ds}},714:(M,P)=>{Object.defineProperty(P,"__esModule",{value:!0}),P.defineEnum=void 0,P.defineEnum=function(x){return x}},865:(M,P,x)=>{Object.defineProperty(P,"__esModule",{value:!0}),P.PlatformOS=P.PlatformType=P.PlatformBrowser=P.ClientHeaderDeviceType=P.ClientHeaderBrowserType=P.ClientHeaderOSType=P.PayloadOSType=P.PayloadBrowserType=P.PayloadDeviceType=void 0;const A=x(714);P.PayloadDeviceType=(0,A.defineEnum)({DESKTOP:"Desktop",LAPTOP:"Laptop",TV:"TV",PHONE:"Phone",TABLET:"Tablet",SERVER:"Server",CONSOLE:"Console",HMD:"HMD",UNDEFINED:"undefined"}),P.PayloadBrowserType=(0,A.defineEnum)({CHROME:"Chrome",SAFARI:"Safari",YANDEX:"Yandex",EDGE:"Edge",EDGE_LEGACY:"Edge_legacy",FIREFOX:"Firefox",SAMSUNG:"Samsung",CHROMIUM:"Chromium",OPERA:"Opera",OPERAGX:"OperaGX",BRAVE:"Brave",SILK:"Silk",UNDEFINED:"undefined"}),P.PayloadOSType=(0,A.defineEnum)({WINDOWS:"Windows",MACOS:"MacOS",SHIELD:"Shield",ANDROID:"Android",IOS:"iOS",IPADOS:"iPadOS",CHROMEOS:"ChromeOS",LINUX:"Linux",TIZEN:"Tizen",WEBOS:"WebOS",TVOS:"tvOS",XBOX:"Xbox",STEAMOS:"SteamOS",VISIONOS:"visionOS",UNDEFINED:"undefined"}),P.ClientHeaderOSType=(0,A.defineEnum)({WINDOWS:"WINDOWS",MACOS:"MACOS",SHIELD:"SHIELD",ANDROID:"ANDROID",IOS:"IOS",IPADOS:"IPADOS",CHROMEOS:"CHROMEOS",LINUX:"LINUX",TIZEN:"TIZEN",WEBOS:"WEBOS",XBOX:"XBOX",STEAMOS:"STEAMOS",VISIONOS:"VISIONOS",UNKNOWN:"UNKNOWN"}),P.ClientHeaderBrowserType=(0,A.defineEnum)({CHROME:"CHROME",SAFARI:"SAFARI",YANDEX:"YANDEX",EDGE:"EDGE",EDGE_LEGACY:"EDGE_LEGACY",FIREFOX:"FIREFOX",SAMSUNG:"SAMSUNG",CHROMIUM:"CHROMIUM",OPERA:"OPERA",OPERAGX:"OPERAGX",BRAVE:"BRAVE",SILK:"SILK",UNKNOWN:"UNKNOWN"}),P.ClientHeaderDeviceType=(0,A.defineEnum)({DESKTOP:"DESKTOP",LAPTOP:"LAPTOP",TV:"TV",PHONE:"PHONE",TABLET:"TABLET",CONSOLE:"CONSOLE",HMD:"HMD",UNKNOWN:"UNKNOWN"}),P.PlatformBrowser=(0,A.defineEnum)({UNKNOWN:"Unknown",CHROME:"Chrome",SAFARI:"Safari",YANDEX:"Yandex",EDGE:"Edge",EDGE_LEGACY:"Edge_Legacy",FIREFOX:"Firefox",SAMSUNG:"Samsung",CHROMIUM:"Chromium",OPERA:"Opera",OPERAGX:"OperaGX",BRAVE:"Brave",SILK:"Silk",REACT:"ReactNative",PICO:"Pico"}),P.PlatformType=(0,A.defineEnum)({UNKNOWN:"UNKNOWN",DESKTOP:"DESKTOP",LAPTOP:"LAPTOP",TV:"TV",PHONE:"PHONE",TABLET:"TABLET",CONSOLE:"CONSOLE",HMD:"HMD"}),P.PlatformOS=(0,A.defineEnum)({UNKNOWN:"Unknown",CHROME_OS:"ChromeOS",WINDOWS:"Windows",MAC:"macOS",LINUX:"Linux",IOS:"iOS",IPADOS:"iPadOS",WEBOS:"WebOS",TIZEN:"Tizen",ANDROID:"Android",FIRETV:"FireTV",XBOX:"Xbox",FREEBSD:"FreeBSD",STEAMOS:"SteamOS",CCOS:"ccOS",VISIONOS:"visionOS"})},921:(M,P)=>{Object.defineProperty(P,"__esModule",{value:!0}),P.CLIENT_ID=void 0,P.CLIENT_ID="62677554106929725"}},h={};function C(M){var P=h[M];if(void 0!==P)return P.exports;var x=h[M]={exports:{}};return n[M](x,x.exports,C),x.exports}C.d=(M,P)=>{for(var x in P)C.o(P,x)&&!C.o(M,x)&&Object.defineProperty(M,x,{enumerable:!0,get:P[x]})},C.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch{if("object"==typeof window)return window}}(),C.o=(M,P)=>Object.prototype.hasOwnProperty.call(M,P),C.r=M=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(M,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(M,"__esModule",{value:!0})};var S={};(()=>{var M=S;Object.defineProperty(M,"__esModule",{value:!0}),M.Profile=M.BitDepth=M.SdrHdrMode=M.translatePlatformInfoForClientHeader=M.translatePlatformInfoForPayload=M.TracingManager=M.LogUploader=M.Logger=M.Log=M.LogMechanism=M.LogLevel=M.LogBuffer=M.NativeNetworkError=M.performHttpRequest=M.HttpErrorCode=M.CancellableWait=M.authInfoToHeader=M.AuthType=M.PlatformType=M.PlatformOS=M.PlatformBrowser=M.ClientHeaderDeviceType=M.ClientHeaderBrowserType=M.ClientHeaderOSType=M.PayloadOSType=M.PayloadBrowserType=M.PayloadDeviceType=M.TelemetryModule=M.GdprLevel=M.NetworkType=M.ProductName=M.ClientVariant=M.PayloadClientType=M.UploadEnvironment=M.ConsentLevel=void 0;var P=C(623);Object.defineProperty(M,"ConsentLevel",{enumerable:!0,get:function(){return P.ConsentLevel}}),Object.defineProperty(M,"UploadEnvironment",{enumerable:!0,get:function(){return P.UploadEnvironment}}),Object.defineProperty(M,"PayloadClientType",{enumerable:!0,get:function(){return P.PayloadClientType}}),Object.defineProperty(M,"ClientVariant",{enumerable:!0,get:function(){return P.ClientVariant}}),Object.defineProperty(M,"ProductName",{enumerable:!0,get:function(){return P.ProductName}});var x=C(422);Object.defineProperty(M,"NetworkType",{enumerable:!0,get:function(){return x.NetworkType}});var A=C(419);Object.defineProperty(M,"GdprLevel",{enumerable:!0,get:function(){return A.GdprLevel}}),Object.defineProperty(M,"TelemetryModule",{enumerable:!0,get:function(){return A.TelemetryModule}});var g=C(865);Object.defineProperty(M,"PayloadDeviceType",{enumerable:!0,get:function(){return g.PayloadDeviceType}}),Object.defineProperty(M,"PayloadBrowserType",{enumerable:!0,get:function(){return g.PayloadBrowserType}}),Object.defineProperty(M,"PayloadOSType",{enumerable:!0,get:function(){return g.PayloadOSType}}),Object.defineProperty(M,"ClientHeaderOSType",{enumerable:!0,get:function(){return g.ClientHeaderOSType}}),Object.defineProperty(M,"ClientHeaderBrowserType",{enumerable:!0,get:function(){return g.ClientHeaderBrowserType}}),Object.defineProperty(M,"ClientHeaderDeviceType",{enumerable:!0,get:function(){return g.ClientHeaderDeviceType}}),Object.defineProperty(M,"PlatformBrowser",{enumerable:!0,get:function(){return g.PlatformBrowser}}),Object.defineProperty(M,"PlatformOS",{enumerable:!0,get:function(){return g.PlatformOS}}),Object.defineProperty(M,"PlatformType",{enumerable:!0,get:function(){return g.PlatformType}});var m=C(250);Object.defineProperty(M,"AuthType",{enumerable:!0,get:function(){return m.AuthType}}),Object.defineProperty(M,"authInfoToHeader",{enumerable:!0,get:function(){return m.authInfoToHeader}});var l=C(379);Object.defineProperty(M,"CancellableWait",{enumerable:!0,get:function(){return l.CancellableWait}});var r=C(121);Object.defineProperty(M,"HttpErrorCode",{enumerable:!0,get:function(){return r.HttpErrorCode}}),Object.defineProperty(M,"performHttpRequest",{enumerable:!0,get:function(){return r.performHttpRequest}}),Object.defineProperty(M,"NativeNetworkError",{enumerable:!0,get:function(){return r.NativeNetworkError}});var u=C(596);Object.defineProperty(M,"LogBuffer",{enumerable:!0,get:function(){return u.LogBuffer}});var v=C(614);Object.defineProperty(M,"LogLevel",{enumerable:!0,get:function(){return v.LogLevel}}),Object.defineProperty(M,"LogMechanism",{enumerable:!0,get:function(){return v.LogMechanism}}),Object.defineProperty(M,"Log",{enumerable:!0,get:function(){return v.Log}}),Object.defineProperty(M,"Logger",{enumerable:!0,get:function(){return v.Logger}});var E=C(36);Object.defineProperty(M,"LogUploader",{enumerable:!0,get:function(){return E.LogUploader}});var T=C(367);Object.defineProperty(M,"TracingManager",{enumerable:!0,get:function(){return T.TracingManager}});var R=C(537);Object.defineProperty(M,"translatePlatformInfoForPayload",{enumerable:!0,get:function(){return R.translatePlatformInfoForPayload}}),Object.defineProperty(M,"translatePlatformInfoForClientHeader",{enumerable:!0,get:function(){return R.translatePlatformInfoForClientHeader}});var B=C(297);Object.defineProperty(M,"SdrHdrMode",{enumerable:!0,get:function(){return B.SdrHdrMode}}),Object.defineProperty(M,"BitDepth",{enumerable:!0,get:function(){return B.BitDepth}}),Object.defineProperty(M,"Profile",{enumerable:!0,get:function(){return B.Profile}})})(),St.exports=S})()},72271:function(St,z,s){"use strict";var i=this&&this.__createBinding||(Object.create?function(h,C,S,M){void 0===M&&(M=S);var P=Object.getOwnPropertyDescriptor(C,S);(!P||("get"in P?!C.__esModule:P.writable||P.configurable))&&(P={enumerable:!0,get:function(){return C[S]}}),Object.defineProperty(h,M,P)}:function(h,C,S,M){void 0===M&&(M=S),h[M]=C[S]}),n=this&&this.__exportStar||function(h,C){for(var S in h)"default"!==S&&!Object.prototype.hasOwnProperty.call(C,S)&&i(C,h,S)};Object.defineProperty(z,"__esModule",{value:!0}),n(s(27621),z),n(s(51814),z),n(s(78564),z),n(s(24538),z)},78564:(St,z,s)=>{"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.Logger=void 0;const i=s(51814);z.Logger=class n{constructor(C){this.loggingLevel=C}info(...C){this.logEntry(i.LoggingLevel.Info,C,console.log.bind(console))}error(...C){this.logEntry(i.LoggingLevel.Error,C,console.error.bind(console))}warn(...C){this.logEntry(i.LoggingLevel.Warning,C,console.warn.bind(console))}verbose(...C){this.logEntry(i.LoggingLevel.Verbose,C,console.log.bind(console))}event(...C){this.logEntry(i.LoggingLevel.Event,C,console.log.bind(console))}logEntry(C,S,M){M("[Cloud Variable SDK] "+S)}}},51814:(St,z)=>{"use strict";var m;Object.defineProperty(z,"__esModule",{value:!0}),z.openTracingConfig=z.SpanNames=z.CachePolicy=z.ActivityType=z.ExperimentActivationType=z.ActivityExperienceType=z.CommonClientVariant=z.CommonClientType=z.DeviceType=z.CloudVariableStatus=z.StorageType=z.LoggingLevel=void 0,(m=z.LoggingLevel||(z.LoggingLevel={}))[m.None=-1]="None",m[m.Error=1]="Error",m[m.Warning=2]="Warning",m[m.Info=3]="Info",m[m.Verbose=4]="Verbose",m[m.Event=5]="Event",function(m){m.IndexedDB="IndexedDB",m.SharedStorage="SharedStoage",m.LocalStorage="LocalStorage",m.AbHub="AbHub"}(z.StorageType||(z.StorageType={})),function(m){m.Created="Created",m.Updated="Updated",m.Deleted="Deleted",m.Unknown="Unknown"}(z.CloudVariableStatus||(z.CloudVariableStatus={})),function(m){m.Desktop="Desktop",m.Laptop="Laptop",m.TV="TV",m.Phone="Phone",m.Tablet="Tablet",m.Server="Server",m.Undefined="undefined"}(z.DeviceType||(z.DeviceType={})),function(m){m.Native="Native",m.Browser="Browser",m.GFNSDK="GFNSDK",m.Undefined="undefined"}(z.CommonClientType||(z.CommonClientType={})),function(m){m.iBeta="iBeta",m.Release="Release",m.Undefined="undefined"}(z.CommonClientVariant||(z.CommonClientVariant={})),function(m){m.Variant="Variant",m.Control="Control",m.Default="Default",m.Alternate="Alternate"}(z.ActivityExperienceType||(z.ActivityExperienceType={})),function(m){m.USER_ID="USER_ID",m.DEVICE_ID="DEVICE_ID",m.SESSION_ID="SESSION_ID"}(z.ExperimentActivationType||(z.ExperimentActivationType={})),function(m){m.AB="AB",m.Unknown="Unknown",m.XT="XT",m.FR="FR"}(z.ActivityType||(z.ActivityType={})),function(m){m.CACHE="CACHE",m.LIVE="LIVE",m.CACHE_WITH_SILENT_UPDATE="CACHE_WITH_SILENT_UPDATE"}(z.CachePolicy||(z.CachePolicy={})),function(m){m.GxTargetGetCloudVariable="GxTargetGetCloudVariable",m.AxiosGetCloudVariable="AxiosGetCloudVariable"}(z.SpanNames||(z.SpanNames={})),z.openTracingConfig={accessToken:"zpdR5rGHUKaUny6FJUZZkEfSVhzkdRSIz6dCpsjvRtQ0TSQOXZdZlbcUOSaugWHyZnMUe6PGmK60Wi59/rk=",collectorUrl:"https://prod.otel.kaizen.nvidia.com/traces/otlp/v0.9",componentName:"gfn-web-client"}},27621:(St,z,s)=>{"use strict";var i=s(8536).default;Object.defineProperty(z,"__esModule",{value:!0}),z.CloudVariableSdkService=void 0;const n=s(26875),h=s(73162),C=s(54326),S=s(51814),M=s(24538),P=s(78564);z.CloudVariableSdkService=class x{constructor(g,m,l,r,u,v){this.sdkConfig=g,this.url=this.url=g.url,this.cvChangeListenersByName=new Map,this.cvNameToResult=new Map,this.logger=new P.Logger(g.loggingLevel),this.readFromStorage=r||this.getIndexedDBCloudVariable,this.writeToStorage=u||this.setIndexedDBCloudVariable,this.buildClientStorageKeyForCv=v,this.cvChangeListeners=[],this.nvOpenTracing=new C.NvOTELTracingService,this.initializeOpenTracing(m,l),!r&&!u&&(this.idbName="gfnclient",this.storeName="kodiakSdkCacheStore",this.openDbInstance())}configureRequestApi(g,m){let l={};const r=this.startSpanUsingContext(g,m);return r&&this.nvOpenTracing.injectSpanHttpHeaders(r,l),[l,r||void 0]}subscribeToAllCloudVariables(g){var m=this;return i(function*(){m.cvChangeListeners.push(g)})()}subscribeToSingleCloudVariable(g,m){let l=this.cvChangeListenersByName.get(g);l?l.push(m):l=[m],this.cvChangeListenersByName.set(g,l)}getCloudVariables(g,m,l,r){if(m===S.CachePolicy.CACHE)return this.getCloudVariablesFromCache(g);let u=new Map,v=this.callGetCloudVariableApi(g,l,r).then(E=>{u=(0,M.formatCloudVariableResponse)(E);let T=this.detectGlobalDifferentCloudVariables(u,g);this.triggerCallbackFuncs(T),this.updateIDB(T)});if(m===S.CachePolicy.CACHE_WITH_SILENT_UPDATE){const E=this.getCloudVariablesFromMap(g);if(E.size>0)return Promise.resolve(E);this.logger.info("no cached cloud variable, sending live")}return v.then(E=>u)}getCloudVariable(g,m,l,r){var u=this;return i(function*(){if(g){const v=yield u.getCloudVariables([g],m,l,r);return v.has(g)?v.get(g):null}return u.logger.error("Cannot request empty cloud variable"),null})()}initializeOpenTracing(g,m){this.tracer=this.nvOpenTracing.getOTELTracer(g,m)}updateGlobalTags(g){this.nvOpenTracing.setGlobalTags(g)}updateServerUrl(g){this.url=g}startSpan(g,m){return this.nvOpenTracing.startSpan(g,m)}startSpanUsingContext(g,m){return this.nvOpenTracing.startSpanUsingContext(g,m)}closeSpan(g){this.nvOpenTracing.closeSpan(g)}callGetCloudVariableApi(g,m,l){var r=this;return i(function*(){const[u,v]=r.configureRequestApi(S.SpanNames.GxTargetGetCloudVariable,l),E=r.sdkConfig.clientInfo,T={cvName:g.join(","),...E,clientParams:JSON.stringify(m)},R=new URL(r.url+"/cloudvariables/v3");Object.keys(T).forEach(U=>R.searchParams.append(U,T[U]));const B=r.fetchWithExponentialBackoff(R,{method:"GET",headers:{"Content-type":"application/json",...u}}).then(U=>U.json().then(Y=>Y));return r.nvOpenTracing.handleHttpEndpointSpan(B,v)})()}getCloudVariablesFromCache(g){let m=new Map;const l=g.map(r=>this.readFromStorageWrapper(r).then(u=>{u&&m.set(r,u)}).catch(u=>{this.logger.error(`Error while reading cache for ${r}: ${u}`)}));return Promise.all(l).then(r=>m)}getCloudVariablesFromMap(g){let m=new Map;for(const l of g){const r=this.cvNameToResult.get(l);r&&m.set(l,r)}return m}detectGlobalDifferentCloudVariables(g,m){const l=new Map;return g.forEach((r,u)=>{const v=this.cvNameToResult.get(u);v?(0,n.isEqual)(r,v)&&(l.set(r.name,(0,M.formatCloudVariableClientResponse)(r,!1,S.CloudVariableStatus.Updated)),this.cvNameToResult.set(u,r)):(l.set(r.name,(0,M.formatCloudVariableClientResponse)(r,!1,S.CloudVariableStatus.Created)),this.cvNameToResult.set(u,r))}),this.cvNameToResult.forEach((r,u)=>{m.includes(u)&&!g.has(u)&&r.activity&&(l.set(u,(0,M.formatCloudVariableClientResponse)({activity:{id:r.activity.id}},!1,S.CloudVariableStatus.Deleted)),this.cvNameToResult.set(u,{}),this.writeToStorageWrapper(u,{}))}),l}triggerCallbackFuncs(g){this.cvChangeListeners.forEach(m=>{m(g)}),g.forEach((m,l)=>{const r=this.cvChangeListenersByName.get(l);r&&r.forEach(u=>u(g))})}updateIDB(g){g.forEach((m,l)=>{this.writeToStorageWrapper(l,{activity:m.activity,result:m.variation,name:m.name,metadata:m.metadata,value:m.value})})}readFromStorageWrapper(g){var m=this;return i(function*(){const l=(0,M.generateUserIdStorageKey)(g,m.sdkConfig.clientInfo.userId);let r=yield m.readFromStorage(l);if(r)return r;const u=(0,M.generateDeviceIdStorageKey)(g,m.sdkConfig.clientInfo.deviceId);return r=yield m.readFromStorage(u),r||null})()}writeToStorageWrapper(g,m){if((0,n.isEmpty)(m)||void 0===m.name)return;let l;l=this.buildClientStorageKeyForCv?this.buildClientStorageKeyForCv(m.activity.activationType):this.generateIndexedDBKey(m),this.writeToStorage(l,m)}openDbInstance(){var g=this;return i(function*(){const m=yield(0,h.openDB)(g.idbName),l=m.version,r=g.storeName;m.objectStoreNames.contains(r)||(0,h.openDB)(g.idbName,l+1,{upgrade(u){u.createObjectStore(r)}}),m.close()})()}generateIndexedDBKey(g){const m=g.name;let l;switch(g.activity.activationType){case S.ExperimentActivationType.USER_ID:l=(0,M.generateUserIdStorageKey)(m,this.sdkConfig.clientInfo.userId);break;case S.ExperimentActivationType.DEVICE_ID:l=(0,M.generateDeviceIdStorageKey)(m,this.sdkConfig.clientInfo.deviceId);break;default:l=m+"-undefined"}return l}getIndexedDBCloudVariable(g){var m=this;return i(function*(){const l=g.split("-")[0],r=yield(0,h.openDB)(m.idbName),u=yield r.get(m.storeName,g);if(r.close(),u){const v=u.cloudVariables.filter(E=>E.name===l);return 0===v.length?null:v[0]}return null})()}setIndexedDBCloudVariable(g,m){var l=this;return i(function*(){let r=yield(0,h.openDB)(l.idbName);const u=l.storeName,v=r.version;if((0,n.isEmpty)(m)||void 0===m.name)return yield r.delete(l.storeName,g),void r.close();r.objectStoreNames.contains(u)||(r=yield(0,h.openDB)(l.idbName,v+1,{upgrade(E){E.createObjectStore(u)}})),yield r.put(l.storeName,m,g),r.close()})()}fetchWithExponentialBackoff(g,m={}){let l=0;const r=()=>fetch(g,m).then(u=>{if(u.ok)return u;throw new Error(`Request failed with status: ${u.status}`)}).catch(u=>{if(l>=this.sdkConfig.defaultRetries)throw new Error(`Max retries reached. Last error: ${u.message}`);const v=this.sdkConfig.defaultTimeBetweenRetries*Math.pow(2,l);return l++,new Promise(E=>{setTimeout(()=>{E(r())},v)})});return r()}}},24538:(St,z,s)=>{"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.getCommonClientVariant=z.generateDeviceIdStorageKey=z.generateUserIdStorageKey=z.formatCloudVariableClientResponse=z.formatCloudVariableResponse=void 0;const i=s(51814);z.formatCloudVariableResponse=function n(P){const x=P,A=new Map;return x.cloudVariables.forEach(g=>{A.set(g.name,{name:g.name,result:g.result,value:g.value,activity:g.activity,metadata:g.metadata})}),A},z.formatCloudVariableClientResponse=function h(P,x,A){return{name:P.name,variation:P.result,value:P.value,activity:P.activity,metadata:P.metadata,isCachedResult:x,state:A}},z.generateUserIdStorageKey=function C(P,x){return P+"-"+x},z.generateDeviceIdStorageKey=function S(P,x){return P+"-"+x},z.getCommonClientVariant=function M(P){switch(P){case"ibeta":return i.CommonClientVariant.iBeta;case"release":return i.CommonClientVariant.Release;default:return i.CommonClientVariant.Undefined}}},73162:(St,z,s)=>{"use strict";s.r(z),s.d(z,{deleteDB:()=>Y,openDB:()=>U,unwrap:()=>B,wrap:()=>R});var i=s(70650);const n=(q,Q)=>Q.some(ce=>q instanceof ce);let h,C;const P=new WeakMap,x=new WeakMap,A=new WeakMap,g=new WeakMap,m=new WeakMap;let u={get(q,Q,ce){if(q instanceof IDBTransaction){if("done"===Q)return x.get(q);if("objectStoreNames"===Q)return q.objectStoreNames||A.get(q);if("store"===Q)return ce.objectStoreNames[1]?void 0:ce.objectStore(ce.objectStoreNames[0])}return R(q[Q])},set:(q,Q,ce)=>(q[Q]=ce,!0),has:(q,Q)=>q instanceof IDBTransaction&&("done"===Q||"store"===Q)||Q in q};function T(q){return"function"==typeof q?function E(q){return q!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?function M(){return C||(C=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}().includes(q)?function(...Q){return q.apply(B(this),Q),R(P.get(this))}:function(...Q){return R(q.apply(B(this),Q))}:function(Q,...ce){const te=q.call(B(this),Q,...ce);return A.set(te,Q.sort?Q.sort():[Q]),R(te)}}(q):(q instanceof IDBTransaction&&function r(q){if(x.has(q))return;const Q=new Promise((ce,te)=>{const Ee=()=>{q.removeEventListener("complete",it),q.removeEventListener("error",Fe),q.removeEventListener("abort",Fe)},it=()=>{ce(),Ee()},Fe=()=>{te(q.error||new DOMException("AbortError","AbortError")),Ee()};q.addEventListener("complete",it),q.addEventListener("error",Fe),q.addEventListener("abort",Fe)});x.set(q,Q)}(q),n(q,function S(){return h||(h=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}())?new Proxy(q,u):q)}function R(q){if(q instanceof IDBRequest)return function l(q){const Q=new Promise((ce,te)=>{const Ee=()=>{q.removeEventListener("success",it),q.removeEventListener("error",Fe)},it=()=>{ce(R(q.result)),Ee()},Fe=()=>{te(q.error),Ee()};q.addEventListener("success",it),q.addEventListener("error",Fe)});return Q.then(ce=>{ce instanceof IDBCursor&&P.set(ce,q)}).catch(()=>{}),m.set(Q,q),Q}(q);if(g.has(q))return g.get(q);const Q=T(q);return Q!==q&&(g.set(q,Q),m.set(Q,q)),Q}const B=q=>m.get(q);function U(q,Q,{blocked:ce,upgrade:te,blocking:Ee,terminated:it}={}){const Fe=indexedDB.open(q,Q),Qe=R(Fe);return te&&Fe.addEventListener("upgradeneeded",ct=>{te(R(Fe.result),ct.oldVersion,ct.newVersion,R(Fe.transaction))}),ce&&Fe.addEventListener("blocked",()=>ce()),Qe.then(ct=>{it&&ct.addEventListener("close",()=>it()),Ee&&ct.addEventListener("versionchange",()=>Ee())}).catch(()=>{}),Qe}function Y(q,{blocked:Q}={}){const ce=indexedDB.deleteDatabase(q);return Q&&ce.addEventListener("blocked",()=>Q()),R(ce).then(()=>{})}const ae=["get","getKey","getAll","getAllKeys","count"],G=["put","add","delete","clear"],k=new Map;function X(q,Q){if(!(q instanceof IDBDatabase)||Q in q||"string"!=typeof Q)return;if(k.get(Q))return k.get(Q);const ce=Q.replace(/FromIndex$/,""),te=Q!==ce,Ee=G.includes(ce);if(!(ce in(te?IDBIndex:IDBObjectStore).prototype)||!Ee&&!ae.includes(ce))return;const it=function(){var Fe=(0,i.A)(function*(Qe,...ct){const Ge=this.transaction(Qe,Ee?"readwrite":"readonly");let nt=Ge.store;return te&&(nt=nt.index(ct.shift())),(yield Promise.all([nt[ce](...ct),Ee&&Ge.done]))[0]});return function(ct){return Fe.apply(this,arguments)}}();return k.set(Q,it),it}!function v(q){u=q(u)}(q=>({...q,get:(Q,ce,te)=>X(Q,ce)||q.get(Q,ce,te),has:(Q,ce)=>!!X(Q,ce)||q.has(Q,ce)}))},54326:function(St,z,s){"use strict";var i=this&&this.__createBinding||(Object.create?function(h,C,S,M){void 0===M&&(M=S);var P=Object.getOwnPropertyDescriptor(C,S);(!P||("get"in P?!C.__esModule:P.writable||P.configurable))&&(P={enumerable:!0,get:function(){return C[S]}}),Object.defineProperty(h,M,P)}:function(h,C,S,M){void 0===M&&(M=S),h[M]=C[S]}),n=this&&this.__exportStar||function(h,C){for(var S in h)"default"!==S&&!Object.prototype.hasOwnProperty.call(C,S)&&i(C,h,S)};z.__esModule=!0,n(s(22909),z),n(s(51086),z)},51086:function(St,z,s){"use strict";var i=this&&this.__extends||function(){var S=function(M,P){return(S=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,A){x.__proto__=A}||function(x,A){for(var g in A)Object.prototype.hasOwnProperty.call(A,g)&&(x[g]=A[g])})(M,P)};return function(M,P){if("function"!=typeof P&&null!==P)throw new TypeError("Class extends value "+String(P)+" is not a constructor or null");function x(){this.constructor=M}S(M,P),M.prototype=null===P?Object.create(P):(x.prototype=P.prototype,new x)}}();z.__esModule=!0,z.CustomOTLPExporter=void 0;var n=s(25154),h=s(53237),C=function(S){function M(P,x){var A=S.call(this,P)||this;return A._isTracingDisabledReplaySubject=x,A}return i(M,S),M.prototype.export=function(P,x){var A=this;this._isTracingDisabledReplaySubject.asObservable().pipe((0,h.take)(1)).subscribe(function(g){g||S.prototype.export.call(A,P,x)})},M}(n.OTLPTraceExporter);z.CustomOTLPExporter=C},22909:function(St,z,s){"use strict";var i=this&&this.__spreadArray||function(r,u,v){if(v||2===arguments.length)for(var R,E=0,T=u.length;E<T;E++)(R||!(E in u))&&(R||(R=Array.prototype.slice.call(u,0,E)),R[E]=u[E]);return r.concat(R||Array.prototype.slice.call(u))};z.__esModule=!0,z.NvOTELTracingService=z.SpanNames=z.SpanTagNames=z.LightStepTokenHeader=void 0;var g,r,n=s(81116),h=s(14656),C=s(76431),S=s(55561),M=s(98685),P=s(21902),x=s(51086),A=s(21902);z.LightStepTokenHeader="Lightstep-Access-Token",(r=g=z.SpanTagNames||(z.SpanTagNames={})).HttpUrl="http.url",r.HttpStatusCode="http.status_code",r.Error="error",r.SpanKind="span.kind",r.ClientOs="client.os",r.ClientOsName="client.os.name",r.ClientOsVersion="client.os.version",r.ServiceVersion="service.version",r.ServiceType="service.type",r.DeviceId="deviceId",r.AppName="appName",r.CountryCode="countryCode",function(r){r.GxTargetGetSurvey="GxTargetGetSurvey",r.GxTargetPutSurvey="GxTargetPutSurvey"}(z.SpanNames||(z.SpanNames={}));var l=function(){function r(){this.initializationMap=new Map}return r.prototype.initialize=function(u,v){var E,T;if(!this.initializationMap.get(u.componentName)){var R=new h.Resource(((E={})[C.SemanticResourceAttributes.SERVICE_NAME]=u.componentName,E));this.provider=new n.WebTracerProvider({resource:R});var U=new P.W3CTraceContextPropagator;S.propagation.setGlobalPropagator(U);var Y=new M.ZoneContextManager;Y.enable(),this.provider.register({propagator:U,contextManager:Y});var ae={headers:(T={},T[z.LightStepTokenHeader]=u.accessToken,T),url:u.collectorUrl};this.exporter=new x.CustomOTLPExporter(ae,v),(0,A.setGlobalErrorHandler)(function(X){console.error("Error while tracing sdk",X)}),this.provider.addSpanProcessor(new n.BatchSpanProcessor(this.exporter,{disableAutoFlushOnDocumentHide:!0})),this.initializationMap.set(u.componentName,!0)}},r.prototype.getOTELTracer=function(u,v){return this.initialize(u,v),this.tracer=this.provider.getTracer("nv-open-tracing","1.0"),this.tracer},r.prototype.getSpanContextInfo=function(u){if(!this.tracer)return null;var v={},E=S.trace.setSpanContext(S.context.active(),u.spanContext());return S.propagation.inject(E,v,S.defaultTextMapSetter),v},r.prototype.createSpanUsingContextInfo=function(u,v){if(!this.tracer)return null;var E=S.propagation.extract(S.context.active(),v),T=this.tracer.startSpan(u,{},E);return this.getSpanContextInfo(T),T},r.prototype.createSpan=function(u,v){if(!this.tracer)return null;if(!v)return this.tracer.startSpan(u);var E=S.trace.setSpan(S.context.active(),v);return this.tracer.startSpan(u,{},E)},r.prototype.extractContext=function(u,v,E){var T=v||S.context.active();return S.propagation.extract(T,u,E)},r.prototype.runWithContext=function(u,v,E){for(var T=[],R=3;R<arguments.length;R++)T[R-3]=arguments[R];return S.context.with.apply(S.context,i([u,v,E],T,!1))},r.prototype.setTracer=function(u){this.tracer=u},r.prototype.setSpanAttribute=function(u,v,E){u.setAttribute(v,E)},r.prototype.setSpanAttributes=function(u,v){u.setAttributes(v)},r.prototype.setGlobalTags=function(u){this.commonTags=u},r.prototype.startSpan=function(u,v){return this.createSpan(u,v)},r.prototype.startSpanUsingContext=function(u,v){return this.createSpanUsingContextInfo(u,v)},r.prototype.inject=function(u){return this.getSpanContextInfo(u)},r.prototype.injectSpanHttpHeaders=function(u,v){var E=this.getSpanContextInfo(u);if(E)for(var R=0,B=Object.keys(E);R<B.length;R++){var U=B[R];v[U]=E[U]}},r.prototype.handleHttpSuccess=function(u,v){this.setSpanAttribute(u,g.Error,!1),v&&this.setSpanAttribute(u,g.HttpUrl,v)},r.prototype.handleHttpError=function(u,v){this.setSpanAttribute(u,g.Error,!0),this.setSpanAttribute(u,g.HttpStatusCode,v&&v.status||0)},r.prototype.handleHttpEndpointSpan=function(u,v,E){var T=this;return v?u.then(function(R){return T.handleHttpSuccess(v),T.closeSpan(v),R}).catch(function(R){throw T.handleHttpError(v,R),T.closeSpan(v),R}):u},r.prototype.closeSpan=function(u){u&&(this.setSpanAttributes(u,this.commonTags),u.end())},r}();z.NvOTELTracingService=l},1794:function(St,z,s){"use strict";var i=this&&this.__createBinding||(Object.create?function(h,C,S,M){void 0===M&&(M=S);var P=Object.getOwnPropertyDescriptor(C,S);(!P||("get"in P?!C.__esModule:P.writable||P.configurable))&&(P={enumerable:!0,get:function(){return C[S]}}),Object.defineProperty(h,M,P)}:function(h,C,S,M){void 0===M&&(M=S),h[M]=C[S]}),n=this&&this.__exportStar||function(h,C){for(var S in h)"default"!==S&&!Object.prototype.hasOwnProperty.call(C,S)&&i(C,h,S)};Object.defineProperty(z,"__esModule",{value:!0}),n(s(85270),z),n(s(93761),z)},93761:(St,z)=>{"use strict";var s,A,i;Object.defineProperty(z,"__esModule",{value:!0}),z.isValidEvent=z.subscribeToIFrameEvents=z.initIFrameCommsChannel=z.LogLevel=z.SurveyEventType=void 0,(A=s=z.SurveyEventType||(z.SurveyEventType={})).Submitted="SURVEY_SUBMITTED",A.Dismissed="SURVEY_DISMISSED",A.Deferred="SURVEY_DEFERRED",A.Minimized="SURVEY_MINIMIZED",A.Errored="SURVEY_ERRORED",A.SubmissionErrored="SURVEY_SUBMISSION_ERRORED",A.Timeout="SURVEY_TIMEOUT",A.CloseDialog="SURVEY_CLOSE_DIALOG",A.LoadComplete="LOAD_COMPLETE",A.ScreenChanged="SCREEN_CHANGED",A.Log="SURVEY_LOG",function(A){A.INFO="INFO",A.WARN="WARN",A.DEBUG="DEBUG",A.ERROR="ERROR"}(i=z.LogLevel||(z.LogLevel={}));const n={logModule:"gxt-survey-app",timeStamp:(new Date).toISOString().replace("T"," ").replace("Z",""),logLevel:i.DEBUG,logTag:"gxt/surveyService",logStr:"Log message couldn't be fetched."};function h(A){return`${A.type}-${A.surveyId}`}const C={};z.initIFrameCommsChannel=()=>{const A=g=>{const m=g.data;if(m.hasOwnProperty("type")&&(0,z.isValidEvent)(m.type)){const l=C[h(m)];l&&l.forEach(r=>{if(m.type===s.Log){let u;u=m.hasOwnProperty("log")?m.log:n,r(u)}else r()})}};return window.addEventListener("message",A,!1),{unsubscribe:()=>window.removeEventListener("message",A)}},z.subscribeToIFrameEvents=function M(A,g){const m=h(A);return C.hasOwnProperty(m)||(C[m]=[]),C[m].push(g),{unsubscribe:P(A,g)}};const P=(A,g)=>()=>{const m=h(A);C[m]=C[m].filter(l=>l!==g)};z.isValidEvent=A=>Object.values(s).includes(A)},85270:(St,z,s)=>{"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.SurveySdkService=z.ThemeType=z.TriggerType=z.SurveyStatus=z.SurveySdkSpanTagNames=void 0;const i=s(54326),n=s(93761);var h,x,M;(x=h=z.SurveySdkSpanTagNames||(z.SurveySdkSpanTagNames={})).ReadOnly="http.readOnly",x.ClientVariant="clientVariant",x.ClientVersion="clientVersion",x.Environment="env",x.UserId="userId",x.IdpId="idpId",x.SurveyId="surveyId",function(x){x.Progress="Progress",x.Completed="Completed",x.Timeout="Timeout"}(z.SurveyStatus||(z.SurveyStatus={})),function(x){x.UXTestBanner="UXTEST_BANNER",x.SurveyBanner="SURVEY_BANNER",x.CommunicationBanner="COMMUNICATION_BANNER",x.PostGame="POST_GAME",x.Feedback="FEEDBACK",x.NotificationBanner="NOTIFICATION_BANNER",x.BugReport="BUG_REPORT"}(z.TriggerType||(z.TriggerType={})),function(x){x.Light="lightTheme",x.Dark="darkTheme"}(M=z.ThemeType||(z.ThemeType={})),z.SurveySdkService=class P{constructor(){this.nvOpenTracing=new i.NvOTELTracingService,(0,n.initIFrameCommsChannel)()}initializeOpenTracing(A,g){this.tracer=this.nvOpenTracing.getOTELTracer(A,g)}getFullSurveyUrl(A,g){const m=Object.keys(g);if(m.length>0){A+="/?";for(const l of m)A+=`${l}=${g[l]}&`;A=A.substring(0,A.length-1)}return A}initializeClientConfig(A,g,m){this.clientConfig=A,this.initializeOpenTracing(g,m)}updateGlobalTags(A){this.nvOpenTracing.setGlobalTags(A)}updateServerUrl(A){this.clientConfig.url=A}startSpan(A,g){return this.nvOpenTracing.startSpan(A,g)}startSpanUsingContext(A,g){return this.nvOpenTracing.startSpanUsingContext(A,g)}closeSpan(A){this.nvOpenTracing.closeSpan(A)}set surveyStatus(A){this.activeSurveyStatus=A}get surveyStatus(){return this.activeSurveyStatus}getUserSurvey(A,g,m,l,r,u,v,E,T,R,B,U,Y,ae,G,k="2"){return this.getSurveyApi(A,g,m,!1,u,r,E,T,R,B,U,Y,ae,G).then(X=>{const q=this.clientConfig.surveyContainerBaseUrl;let Q=null;const ce=X;if(Object.keys(ce).length){Q={surveyContainerUrl:this.getFullSurveyUrl(q,{userid:A,idpId:g,locale:v,surveyid:ce.sid,clientid:this.clientConfig.clientId,deviceId:m,clientVersion:this.clientConfig.clientVersion,clientVariant:this.clientConfig.clientVariant||"",env:this.clientConfig.env||"",surveyTimeout:l[ce.triggerType]||600,triggerType:ce.triggerType,surveyVisited:ce.surveyVisited||!1,version:k,applicationType:r.application||"GFN",themeType:r.currentAppTheme||M.Dark,...ce.configuration||{}}),surveyId:ce.sid,triggerType:ce.triggerType,bannerText:ce.bannerText||"",notificationUrl:ce.notificationUrl||"",surveyVisited:ce.surveyVisited||!1};const te=ce.debugInfo;return te&&te.surveySessionId&&(Q.surveySessionId=te.surveySessionId),Q}return Q})}isCurrentSurveyCompleted(A,g,m,l,r,u,v,E,T,R,B,U,Y){return this.getSurveyApi(A,g,m,!0,l,r,u,v,E,T,R,B,U,Y).then(ae=>!Object.keys(ae).length)}configureRequestApi(A,g){let m={};const l=this.startSpanUsingContext(A,g);return l&&this.nvOpenTracing.injectSpanHttpHeaders(l,m),[m,l||void 0]}declineUserSurvey(A,g,m,l){const[r,u]=this.configureRequestApi(i.SpanNames.GxTargetPutSurvey,l);u&&this.nvOpenTracing.setSpanAttributes(u,{[h.SurveyId]:g});const E=new URLSearchParams({userId:A,sid:g,hasDeclined:!0,isPreview:m}),T=new URL(`${this.clientConfig.url}/survey/v1?${E}`),R=this.fetchWithExponentialBackoff(T,{method:"PUT",headers:{"Content-Type":"application/json",...r},body:JSON.stringify({})}).then(()=>!0);return this.nvOpenTracing.handleHttpEndpointSpan(R,u)}submitSurveyPage(A,g,m,l,r,u,v,E){return this.putSurveyDetails(A,g,l,m,r,u,v,E)}getFirstSurveyPage(A,g,m,l,r,u){return this.putSurveyDetails(A,g,m,void 0,void 0,l,r,u)}putSurveyDetails(A,g,m,l,r,u,v,E){const[T,R]=this.configureRequestApi(i.SpanNames.GxTargetPutSurvey,v);R&&this.nvOpenTracing.setSpanAttributes(R,{[h.SurveyId]:g});let B={};B=void 0===l?{userId:A,sid:g,isPreview:u,locale:m,deviceId:E}:{userId:A,sid:g,pid:l,isPreview:u,locale:m,deviceId:E};const U=r?{answers:r}:{},Y=new URLSearchParams(B),ae=new URL(`${this.clientConfig.url}/survey/v1?${Y}`),G=this.fetchWithExponentialBackoff(ae,{method:"PUT",body:JSON.stringify(U),headers:{"Content-Type":"application/json",...T}}).then(k=>k.json().then(X=>{let Q={surveyId:X.sid,page:X.page,isLastPage:X.is_last_page,error:X.error};return R&&console.log(k),Q}));return this.nvOpenTracing.handleHttpEndpointSpan(G,R)}getSurveyApi(A,g,m,l=!1,r,u,v,E,T,R,B,U,Y,ae){const[G,k]=this.configureRequestApi(i.SpanNames.GxTargetGetSurvey,ae);k&&this.nvOpenTracing.setSpanAttributes(k,{[h.ReadOnly]:l});const X={clientId:this.clientConfig.clientId,deviceId:m,userId:A,idpId:g,clientVer:this.clientConfig.clientVersion,clientVariant:this.clientConfig.clientVariant,clientParams:JSON.stringify(u),deviceOS:v,deviceType:E,deviceMake:T,deviceModel:R,deviceOSVersion:B,clientType:U,browserType:Y,triggerType:r.join(","),readOnly:l},q=new URLSearchParams(X),Q=new URL(`${this.clientConfig.url}/survey/v2?${q}`),ce=this.fetchWithExponentialBackoff(Q,{method:"GET",headers:{...G}}).then(te=>te.json().then(Ee=>{if(k){const it=Ee;console.log("fetch api data: "+JSON.stringify(it)),Object.keys(it).length&&this.nvOpenTracing.setSpanAttributes(k,{[h.SurveyId]:it.sid})}return Ee})).catch(te=>{console.log("fetch error"+te)});return this.nvOpenTracing.handleHttpEndpointSpan(ce,k)}fetchWithExponentialBackoff(A,g={}){let m=0;const l=()=>fetch(A,g).then(r=>{if(r.ok)return r;throw new Error(`Request failed with status: ${r.status}`)}).catch(r=>{if(m>=this.clientConfig.defaultRetries)throw new Error(`Max retries reached. Last error: ${r.message}`);const u=this.clientConfig.defaultTimeBetweenRetries*Math.pow(2,m);return m++,new Promise(v=>{setTimeout(()=>{v(l())},u)})});return l()}}},18839:(St,z,s)=>{"use strict";s.d(z,{_:()=>m});var i=s(24773),C=function(){function l(){}return l.prototype.active=function(){return i.l},l.prototype.with=function(r,u,v){for(var E=[],T=3;T<arguments.length;T++)E[T-3]=arguments[T];return u.call.apply(u,function(l,r,u){if(u||2===arguments.length)for(var T,v=0,E=r.length;v<E;v++)(T||!(v in r))&&(T||(T=Array.prototype.slice.call(r,0,v)),T[v]=r[v]);return l.concat(T||Array.prototype.slice.call(r))}([v],function(l,r){var u="function"==typeof Symbol&&l[Symbol.iterator];if(!u)return l;var E,R,v=u.call(l),T=[];try{for(;(void 0===r||r-- >0)&&!(E=v.next()).done;)T.push(E.value)}catch(B){R={error:B}}finally{try{E&&!E.done&&(u=v.return)&&u.call(v)}finally{if(R)throw R.error}}return T}(E),!1))},l.prototype.bind=function(r,u){return u},l.prototype.enable=function(){return this},l.prototype.disable=function(){return this},l}(),S=s(95727),M=s(14051),A="context",g=new C,m=function(){function l(){}return l.getInstance=function(){return this._instance||(this._instance=new l),this._instance},l.prototype.setGlobalContextManager=function(r){return(0,S.$G)(A,r,M.K.instance())},l.prototype.active=function(){return this._getContextManager().active()},l.prototype.with=function(r,u,v){for(var E,T=[],R=3;R<arguments.length;R++)T[R-3]=arguments[R];return(E=this._getContextManager()).with.apply(E,function(l,r,u){if(u||2===arguments.length)for(var T,v=0,E=r.length;v<E;v++)(T||!(v in r))&&(T||(T=Array.prototype.slice.call(r,0,v)),T[v]=r[v]);return l.concat(T||Array.prototype.slice.call(r))}([r,u,v],function(l,r){var u="function"==typeof Symbol&&l[Symbol.iterator];if(!u)return l;var E,R,v=u.call(l),T=[];try{for(;(void 0===r||r-- >0)&&!(E=v.next()).done;)T.push(E.value)}catch(B){R={error:B}}finally{try{E&&!E.done&&(u=v.return)&&u.call(v)}finally{if(R)throw R.error}}return T}(T),!1))},l.prototype.bind=function(r,u){return this._getContextManager().bind(r,u)},l.prototype._getContextManager=function(){return(0,S.mS)(A)||g},l.prototype.disable=function(){this._getContextManager().disable(),(0,S.kv)(A,M.K.instance())},l}()},14051:(St,z,s)=>{"use strict";s.d(z,{K:()=>m});var i=s(95727),C=function(){function l(r){this._namespace=r.namespace||"DiagComponentLogger"}return l.prototype.debug=function(){for(var r=[],u=0;u<arguments.length;u++)r[u]=arguments[u];return S("debug",this._namespace,r)},l.prototype.error=function(){for(var r=[],u=0;u<arguments.length;u++)r[u]=arguments[u];return S("error",this._namespace,r)},l.prototype.info=function(){for(var r=[],u=0;u<arguments.length;u++)r[u]=arguments[u];return S("info",this._namespace,r)},l.prototype.warn=function(){for(var r=[],u=0;u<arguments.length;u++)r[u]=arguments[u];return S("warn",this._namespace,r)},l.prototype.verbose=function(){for(var r=[],u=0;u<arguments.length;u++)r[u]=arguments[u];return S("verbose",this._namespace,r)},l}();function S(l,r,u){var v=(0,i.mS)("diag");if(v)return u.unshift(r),v[l].apply(v,function(l,r,u){if(u||2===arguments.length)for(var T,v=0,E=r.length;v<E;v++)(T||!(v in r))&&(T||(T=Array.prototype.slice.call(r,0,v)),T[v]=r[v]);return l.concat(T||Array.prototype.slice.call(r))}([],function(l,r){var u="function"==typeof Symbol&&l[Symbol.iterator];if(!u)return l;var E,R,v=u.call(l),T=[];try{for(;(void 0===r||r-- >0)&&!(E=v.next()).done;)T.push(E.value)}catch(B){R={error:B}}finally{try{E&&!E.done&&(u=v.return)&&u.call(v)}finally{if(R)throw R.error}}return T}(u),!1))}var M=s(56737),m=function(){function l(){function r(E){return function(){for(var T=[],R=0;R<arguments.length;R++)T[R]=arguments[R];var B=(0,i.mS)("diag");if(B)return B[E].apply(B,function(l,r,u){if(u||2===arguments.length)for(var T,v=0,E=r.length;v<E;v++)(T||!(v in r))&&(T||(T=Array.prototype.slice.call(r,0,v)),T[v]=r[v]);return l.concat(T||Array.prototype.slice.call(r))}([],function(l,r){var u="function"==typeof Symbol&&l[Symbol.iterator];if(!u)return l;var E,R,v=u.call(l),T=[];try{for(;(void 0===r||r-- >0)&&!(E=v.next()).done;)T.push(E.value)}catch(B){R={error:B}}finally{try{E&&!E.done&&(u=v.return)&&u.call(v)}finally{if(R)throw R.error}}return T}(T),!1))}}var u=this;u.setLogger=function(E,T){var R,B,U;if(void 0===T&&(T={logLevel:M.u.INFO}),E===u){var Y=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return u.error(null!==(R=Y.stack)&&void 0!==R?R:Y.message),!1}"number"==typeof T&&(T={logLevel:T});var ae=(0,i.mS)("diag"),G=function P(l,r){function u(v,E){var T=r[v];return"function"==typeof T&&l>=E?T.bind(r):function(){}}return l<M.u.NONE?l=M.u.NONE:l>M.u.ALL&&(l=M.u.ALL),r=r||{},{error:u("error",M.u.ERROR),warn:u("warn",M.u.WARN),info:u("info",M.u.INFO),debug:u("debug",M.u.DEBUG),verbose:u("verbose",M.u.VERBOSE)}}(null!==(B=T.logLevel)&&void 0!==B?B:M.u.INFO,E);if(ae&&!T.suppressOverrideMessage){var k=null!==(U=(new Error).stack)&&void 0!==U?U:"<failed to generate stacktrace>";ae.warn("Current logger will be overwritten from "+k),G.warn("Current logger will overwrite one already registered from "+k)}return(0,i.$G)("diag",G,u,!0)},u.disable=function(){(0,i.kv)("diag",u)},u.createComponentLogger=function(E){return new C(E)},u.verbose=r("verbose"),u.debug=r("debug"),u.info=r("info"),u.warn=r("warn"),u.error=r("error")}return l.instance=function(){return this._instance||(this._instance=new l),this._instance},l}()},44588:(St,z,s)=>{"use strict";s.d(z,{B:()=>x,L:()=>P});var i=s(14051),C=function(){function A(g){this._entries=g?new Map(g):new Map}return A.prototype.getEntry=function(g){var m=this._entries.get(g);if(m)return Object.assign({},m)},A.prototype.getAllEntries=function(){return Array.from(this._entries.entries()).map(function(g){var m=function(A,g){var m="function"==typeof Symbol&&A[Symbol.iterator];if(!m)return A;var r,v,l=m.call(A),u=[];try{for(;(void 0===g||g-- >0)&&!(r=l.next()).done;)u.push(r.value)}catch(E){v={error:E}}finally{try{r&&!r.done&&(m=l.return)&&m.call(l)}finally{if(v)throw v.error}}return u}(g,2);return[m[0],m[1]]})},A.prototype.setEntry=function(g,m){var l=new A(this._entries);return l._entries.set(g,m),l},A.prototype.removeEntry=function(g){var m=new A(this._entries);return m._entries.delete(g),m},A.prototype.removeEntries=function(){for(var g,m,l=[],r=0;r<arguments.length;r++)l[r]=arguments[r];var u=new A(this._entries);try{for(var v=function(A){var g="function"==typeof Symbol&&Symbol.iterator,m=g&&A[g],l=0;if(m)return m.call(A);if(A&&"number"==typeof A.length)return{next:function(){return A&&l>=A.length&&(A=void 0),{value:A&&A[l++],done:!A}}};throw new TypeError(g?"Object is not iterable.":"Symbol.iterator is not defined.")}(l),E=v.next();!E.done;E=v.next())u._entries.delete(E.value)}catch(R){g={error:R}}finally{try{E&&!E.done&&(m=v.return)&&m.call(v)}finally{if(g)throw g.error}}return u},A.prototype.clear=function(){return new A},A}(),S=Symbol("BaggageEntryMetadata"),M=i.K.instance();function P(A){return void 0===A&&(A={}),new C(new Map(Object.entries(A)))}function x(A){return"string"!=typeof A&&(M.error("Cannot create baggage metadata from unknown type: "+typeof A),A=""),{__TYPE__:S,toString:function(){return A}}}},33784:(St,z,s)=>{"use strict";s.d(z,{_:()=>n});var n=s(18839)._.getInstance()},24773:(St,z,s)=>{"use strict";function i(C){return Symbol.for(C)}s.d(z,{l:()=>h,n:()=>i});var h=new(function(){return function C(S){var M=this;M._currentContext=S?new Map(S):new Map,M.getValue=function(P){return M._currentContext.get(P)},M.setValue=function(P,x){var A=new C(M._currentContext);return A._currentContext.set(P,x),A},M.deleteValue=function(P){var x=new C(M._currentContext);return x._currentContext.delete(P),x}}}())},40698:(St,z,s)=>{"use strict";s.d(z,{s:()=>n});var n=s(14051).K.instance()},56737:(St,z,s)=>{"use strict";s.d(z,{u:()=>i});var i=function(n){return n[n.NONE=0]="NONE",n[n.ERROR=30]="ERROR",n[n.WARN=50]="WARN",n[n.INFO=60]="INFO",n[n.DEBUG=70]="DEBUG",n[n.VERBOSE=80]="VERBOSE",n[n.ALL=9999]="ALL",n}(i||{})},55561:(St,z,s)=>{"use strict";s.r(z),s.d(z,{DiagConsoleLogger:()=>C,DiagLogLevel:()=>S.u,INVALID_SPANID:()=>ue.w9,INVALID_SPAN_CONTEXT:()=>ue.dM,INVALID_TRACEID:()=>ue.RH,ProxyTracer:()=>q.y,ProxyTracerProvider:()=>Q.n,ROOT_CONTEXT:()=>n.l,SamplingDecision:()=>ce.i,SpanKind:()=>te.v,SpanStatusCode:()=>Ee.s,TraceFlags:()=>it.X,ValueType:()=>k,baggageEntryMetadataFromString:()=>i.B,context:()=>et._,createContextKey:()=>n.n,createNoopMeter:()=>G,createTraceState:()=>vt,default:()=>ye,defaultTextMapGetter:()=>X.q,defaultTextMapSetter:()=>X.U,diag:()=>se.s,isSpanContextValid:()=>ve.YA,isValidSpanId:()=>ve.wN,isValidTraceId:()=>ve.hX,metrics:()=>Se,propagation:()=>fe.$,trace:()=>Ne.u});var i=s(44588),n=s(24773),h=[{n:"error",c:"error"},{n:"warn",c:"warn"},{n:"info",c:"info"},{n:"debug",c:"debug"},{n:"verbose",c:"trace"}],C=function(){return function Ot(){function sn(yn){return function(){for(var At=[],Vt=0;Vt<arguments.length;Vt++)At[Vt]=arguments[Vt];if(console){var Qt=console[yn];if("function"!=typeof Qt&&(Qt=console.log),"function"==typeof Qt)return Qt.apply(console,At)}}}for(var dn=0;dn<h.length;dn++)this[h[dn].n]=sn(h[dn].c)}}(),S=s(56737),M=function(){var Ot=function(sn,dn){return(Ot=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(yn,At){yn.__proto__=At}||function(yn,At){for(var Vt in At)Object.prototype.hasOwnProperty.call(At,Vt)&&(yn[Vt]=At[Vt])})(sn,dn)};return function(sn,dn){if("function"!=typeof dn&&null!==dn)throw new TypeError("Class extends value "+String(dn)+" is not a constructor or null");function yn(){this.constructor=sn}Ot(sn,dn),sn.prototype=null===dn?Object.create(dn):(yn.prototype=dn.prototype,new yn)}}(),P=function(){function Ot(){}return Ot.prototype.createHistogram=function(sn,dn){return R},Ot.prototype.createCounter=function(sn,dn){return T},Ot.prototype.createUpDownCounter=function(sn,dn){return B},Ot.prototype.createObservableGauge=function(sn,dn){return Y},Ot.prototype.createObservableCounter=function(sn,dn){return U},Ot.prototype.createObservableUpDownCounter=function(sn,dn){return ae},Ot.prototype.addBatchObservableCallback=function(sn,dn){},Ot.prototype.removeBatchObservableCallback=function(sn){},Ot}(),x=function(){return function Ot(){}}(),A=function(Ot){function sn(){return null!==Ot&&Ot.apply(this,arguments)||this}return M(sn,Ot),sn.prototype.add=function(dn,yn){},sn}(x),g=function(Ot){function sn(){return null!==Ot&&Ot.apply(this,arguments)||this}return M(sn,Ot),sn.prototype.add=function(dn,yn){},sn}(x),m=function(Ot){function sn(){return null!==Ot&&Ot.apply(this,arguments)||this}return M(sn,Ot),sn.prototype.record=function(dn,yn){},sn}(x),l=function(){function Ot(){}return Ot.prototype.addCallback=function(sn){},Ot.prototype.removeCallback=function(sn){},Ot}(),r=function(Ot){function sn(){return null!==Ot&&Ot.apply(this,arguments)||this}return M(sn,Ot),sn}(l),u=function(Ot){function sn(){return null!==Ot&&Ot.apply(this,arguments)||this}return M(sn,Ot),sn}(l),v=function(Ot){function sn(){return null!==Ot&&Ot.apply(this,arguments)||this}return M(sn,Ot),sn}(l),E=new P,T=new A,R=new m,B=new g,U=new r,Y=new u,ae=new v;function G(){return E}var k=function(Ot){return Ot[Ot.INT=0]="INT",Ot[Ot.DOUBLE=1]="DOUBLE",Ot}(k||{}),X=s(84877),q=s(62069),Q=s(17409),ce=s(42710),te=s(23431),Ee=s(75376),it=s(57585),Fe="[_0-9a-z-*/]",Ge=new RegExp("^(?:[a-z]"+Fe+"{0,255}|[a-z0-9]"+Fe+"{0,240}@[a-z]"+Fe+"{0,13})$"),nt=/^[ -~]{0,255}[!-~]$/,Je=/,|=/,J=function(){function Ot(sn){this._internalState=new Map,sn&&this._parse(sn)}return Ot.prototype.set=function(sn,dn){var yn=this._clone();return yn._internalState.has(sn)&&yn._internalState.delete(sn),yn._internalState.set(sn,dn),yn},Ot.prototype.unset=function(sn){var dn=this._clone();return dn._internalState.delete(sn),dn},Ot.prototype.get=function(sn){return this._internalState.get(sn)},Ot.prototype.serialize=function(){var sn=this;return this._keys().reduce(function(dn,yn){return dn.push(yn+"="+sn.get(yn)),dn},[]).join(",")},Ot.prototype._parse=function(sn){sn.length>512||(this._internalState=sn.split(",").reverse().reduce(function(dn,yn){var At=yn.trim(),Vt=At.indexOf("=");if(-1!==Vt){var Qt=At.slice(0,Vt),Jt=At.slice(Vt+1,yn.length);(function ze(Ot){return Ge.test(Ot)})(Qt)&&function Ke(Ot){return nt.test(Ot)&&!Je.test(Ot)}(Jt)&&dn.set(Qt,Jt)}return dn},new Map),this._internalState.size>32&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,32))))},Ot.prototype._keys=function(){return Array.from(this._internalState.keys()).reverse()},Ot.prototype._clone=function(){var sn=new Ot;return sn._internalState=new Map(this._internalState),sn},Ot}();function vt(Ot){return new J(Ot)}var ve=s(63051),ue=s(99652),et=s(33784),se=s(40698),be=new(function(){function Ot(){}return Ot.prototype.getMeter=function(sn,dn,yn){return E},Ot}()),rt=s(95727),me=s(14051),le="metrics",Se=function(){function Ot(){}return Ot.getInstance=function(){return this._instance||(this._instance=new Ot),this._instance},Ot.prototype.setGlobalMeterProvider=function(sn){return(0,rt.$G)(le,sn,me.K.instance())},Ot.prototype.getMeterProvider=function(){return(0,rt.mS)(le)||be},Ot.prototype.getMeter=function(sn,dn,yn){return this.getMeterProvider().getMeter(sn,dn,yn)},Ot.prototype.disable=function(){(0,rt.kv)(le,me.K.instance())},Ot}().getInstance(),fe=s(35475),Ne=s(92414);const ye={context:et._,diag:se.s,metrics:Se,propagation:fe.$,trace:Ne.u}},95727:(St,z,s)=>{"use strict";s.d(z,{mS:()=>g,$G:()=>A,kv:()=>m});var i="object"==typeof globalThis?globalThis:"object"==typeof self?self:"object"==typeof window?window:"object"==typeof global?global:{},n="1.4.1",h=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/,S=function C(l){var r=new Set([l]),u=new Set,v=l.match(h);if(!v)return function(){return!1};var E_major=+v[1],E_minor=+v[2],E_patch=+v[3];if(null!=v[4])return function(U){return U===l};function T(B){return u.add(B),!1}function R(B){return r.add(B),!0}return function(U){if(r.has(U))return!0;if(u.has(U))return!1;var Y=U.match(h);if(!Y)return T(U);var ae_minor=+Y[2],ae_patch=+Y[3];return null!=Y[4]||E_major!==+Y[1]?T(U):0===E_major?E_minor===ae_minor&&E_patch<=ae_patch?R(U):T(U):E_minor<=ae_minor?R(U):T(U)}}(n),M=n.split(".")[0],P=Symbol.for("opentelemetry.js.api."+M),x=i;function A(l,r,u,v){var E;void 0===v&&(v=!1);var T=x[P]=null!==(E=x[P])&&void 0!==E?E:{version:n};if(!v&&T[l]){var R=new Error("@opentelemetry/api: Attempted duplicate registration of API: "+l);return u.error(R.stack||R.message),!1}return T.version!==n?(R=new Error("@opentelemetry/api: Registration of version v"+T.version+" for "+l+" does not match previously registered API v"+n),u.error(R.stack||R.message),!1):(T[l]=r,u.debug("@opentelemetry/api: Registered a global for "+l+" v"+n+"."),!0)}function g(l){var r,u,v=null===(r=x[P])||void 0===r?void 0:r.version;if(v&&S(v))return null===(u=x[P])||void 0===u?void 0:u[l]}function m(l,r){r.debug("@opentelemetry/api: Unregistering a global for "+l+" v"+n+".");var u=x[P];u&&delete u[l]}},35475:(St,z,s)=>{"use strict";s.d(z,{$:()=>E});var i=s(95727),n=function(){function T(){}return T.prototype.inject=function(R,B){},T.prototype.extract=function(R,B){return R},T.prototype.fields=function(){return[]},T}(),h=s(84877),C=s(18839),M=(0,s(24773).n)("OpenTelemetry Baggage Key");function P(T){return T.getValue(M)||void 0}function x(){return P(C._.getInstance().active())}function A(T,R){return T.setValue(M,R)}function g(T){return T.deleteValue(M)}var m=s(44588),l=s(14051),r="propagation",u=new n,E=function(){function T(){this.createBaggage=m.L,this.getBaggage=P,this.getActiveBaggage=x,this.setBaggage=A,this.deleteBaggage=g}return T.getInstance=function(){return this._instance||(this._instance=new T),this._instance},T.prototype.setGlobalPropagator=function(R){return(0,i.$G)(r,R,l.K.instance())},T.prototype.inject=function(R,B,U){return void 0===U&&(U=h.U),this._getGlobalPropagator().inject(R,B,U)},T.prototype.extract=function(R,B,U){return void 0===U&&(U=h.q),this._getGlobalPropagator().extract(R,B,U)},T.prototype.fields=function(){return this._getGlobalPropagator().fields()},T.prototype.disable=function(){(0,i.kv)(r,l.K.instance())},T.prototype._getGlobalPropagator=function(){return(0,i.mS)(r)||u},T}().getInstance()},84877:(St,z,s)=>{"use strict";s.d(z,{U:()=>n,q:()=>i});var i={get:function(h,C){if(null!=h)return h[C]},keys:function(h){return null==h?[]:Object.keys(h)}},n={set:function(h,C,S){null!=h&&(h[C]=S)}}},92414:(St,z,s)=>{"use strict";s.d(z,{u:()=>x});var i=s(95727),n=s(17409),h=s(63051),C=s(54551),S=s(14051),M="trace",x=function(){function A(){this._proxyTracerProvider=new n.n,this.wrapSpanContext=h.IP,this.isSpanContextValid=h.YA,this.deleteSpan=C.EW,this.getSpan=C.fU,this.getActiveSpan=C.Bk,this.getSpanContext=C.w8,this.setSpan=C.Bx,this.setSpanContext=C.g_}return A.getInstance=function(){return this._instance||(this._instance=new A),this._instance},A.prototype.setGlobalTracerProvider=function(g){var m=(0,i.$G)(M,this._proxyTracerProvider,S.K.instance());return m&&this._proxyTracerProvider.setDelegate(g),m},A.prototype.getTracerProvider=function(){return(0,i.mS)(M)||this._proxyTracerProvider},A.prototype.getTracer=function(g,m){return this.getTracerProvider().getTracer(g,m)},A.prototype.disable=function(){(0,i.kv)(M,S.K.instance()),this._proxyTracerProvider=new n.n},A}().getInstance()},38252:(St,z,s)=>{"use strict";s.d(z,{d:()=>n});var i=s(99652),n=function(){function h(C){void 0===C&&(C=i.dM),this._spanContext=C}return h.prototype.spanContext=function(){return this._spanContext},h.prototype.setAttribute=function(C,S){return this},h.prototype.setAttributes=function(C){return this},h.prototype.addEvent=function(C,S){return this},h.prototype.setStatus=function(C){return this},h.prototype.updateName=function(C){return this},h.prototype.end=function(C){},h.prototype.isRecording=function(){return!1},h.prototype.recordException=function(C,S){},h}()},31799:(St,z,s)=>{"use strict";s.d(z,{o:()=>M});var i=s(18839),n=s(54551),h=s(38252),C=s(63051),S=i._.getInstance(),M=function(){function x(){}return x.prototype.startSpan=function(A,g,m){if(void 0===m&&(m=S.active()),g?.root)return new h.d;var r=m&&(0,n.w8)(m);return function P(x){return"object"==typeof x&&"string"==typeof x.spanId&&"string"==typeof x.traceId&&"number"==typeof x.traceFlags}(r)&&(0,C.YA)(r)?new h.d(r):new h.d},x.prototype.startActiveSpan=function(A,g,m,l){var r,u,v;if(!(arguments.length<2)){2===arguments.length?v=g:3===arguments.length?(r=g,v=m):(r=g,u=m,v=l);var E=u??S.active(),T=this.startSpan(A,r,E),R=(0,n.Bx)(E,T);return S.with(R,v,void 0,T)}},x}()},62069:(St,z,s)=>{"use strict";s.d(z,{y:()=>h});var n=new(s(31799).o),h=function(){function C(S,M,P,x){this._provider=S,this.name=M,this.version=P,this.options=x}return C.prototype.startSpan=function(S,M,P){return this._getTracer().startSpan(S,M,P)},C.prototype.startActiveSpan=function(S,M,P,x){var A=this._getTracer();return Reflect.apply(A.startActiveSpan,A,arguments)},C.prototype._getTracer=function(){if(this._delegate)return this._delegate;var S=this._provider.getDelegateTracer(this.name,this.version,this.options);return S?(this._delegate=S,this._delegate):n},C}()},17409:(St,z,s)=>{"use strict";s.d(z,{n:()=>S});var i=s(62069),n=s(31799),C=new(function(){function M(){}return M.prototype.getTracer=function(P,x,A){return new n.o},M}()),S=function(){function M(){}return M.prototype.getTracer=function(P,x,A){var g;return null!==(g=this.getDelegateTracer(P,x,A))&&void 0!==g?g:new i.y(this,P,x,A)},M.prototype.getDelegate=function(){var P;return null!==(P=this._delegate)&&void 0!==P?P:C},M.prototype.setDelegate=function(P){this._delegate=P},M.prototype.getDelegateTracer=function(P,x,A){var g;return null===(g=this._delegate)||void 0===g?void 0:g.getTracer(P,x,A)},M}()},42710:(St,z,s)=>{"use strict";s.d(z,{i:()=>i});var i=function(n){return n[n.NOT_RECORD=0]="NOT_RECORD",n[n.RECORD=1]="RECORD",n[n.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED",n}(i||{})},54551:(St,z,s)=>{"use strict";s.d(z,{Bk:()=>M,Bx:()=>P,EW:()=>x,fU:()=>S,g_:()=>A,w8:()=>g});var i=s(24773),n=s(38252),h=s(18839),C=(0,i.n)("OpenTelemetry Context Key SPAN");function S(m){return m.getValue(C)||void 0}function M(){return S(h._.getInstance().active())}function P(m,l){return m.setValue(C,l)}function x(m){return m.deleteValue(C)}function A(m,l){return P(m,new n.d(l))}function g(m){var l;return null===(l=S(m))||void 0===l?void 0:l.spanContext()}},99652:(St,z,s)=>{"use strict";s.d(z,{RH:()=>h,dM:()=>C,w9:()=>n});var i=s(57585),n="0000000000000000",h="00000000000000000000000000000000",C={traceId:h,spanId:n,traceFlags:i.X.NONE}},23431:(St,z,s)=>{"use strict";s.d(z,{v:()=>i});var i=function(n){return n[n.INTERNAL=0]="INTERNAL",n[n.SERVER=1]="SERVER",n[n.CLIENT=2]="CLIENT",n[n.PRODUCER=3]="PRODUCER",n[n.CONSUMER=4]="CONSUMER",n}(i||{})},63051:(St,z,s)=>{"use strict";s.d(z,{IP:()=>x,YA:()=>P,hX:()=>S,wN:()=>M});var i=s(99652),n=s(38252),h=/^([0-9a-f]{32})$/i,C=/^[0-9a-f]{16}$/i;function S(A){return h.test(A)&&A!==i.RH}function M(A){return C.test(A)&&A!==i.w9}function P(A){return S(A.traceId)&&M(A.spanId)}function x(A){return new n.d(A)}},75376:(St,z,s)=>{"use strict";s.d(z,{s:()=>i});var i=function(n){return n[n.UNSET=0]="UNSET",n[n.OK=1]="OK",n[n.ERROR=2]="ERROR",n}(i||{})},57585:(St,z,s)=>{"use strict";s.d(z,{X:()=>i});var i=function(n){return n[n.NONE=0]="NONE",n[n.SAMPLED=1]="SAMPLED",n}(i||{})},14525:(St,z,s)=>{"use strict";s.d(z,{T:()=>C});var i=s(24773),h="OT_ZONE_CONTEXT",C=function(){function S(){this._enabled=!1,this._zoneCounter=0}return S.prototype._activeContextFromZone=function(M){return M&&M.get(h)||i.l},S.prototype._bindFunction=function(M,P){var x=this,A=function(){for(var g=this,m=[],l=0;l<arguments.length;l++)m[l]=arguments[l];return x.with(M,function(){return P.apply(g,m)})};return Object.defineProperty(A,"length",{enumerable:!1,configurable:!0,writable:!1,value:P.length}),A},S.prototype._bindListener=function(M,P){var x=P;return void 0!==x.__ot_listeners||(x.__ot_listeners={},"function"==typeof x.addEventListener&&(x.addEventListener=this._patchAddEventListener(x,x.addEventListener,M)),"function"==typeof x.removeEventListener&&(x.removeEventListener=this._patchRemoveEventListener(x,x.removeEventListener))),P},S.prototype._createZoneName=function(){this._zoneCounter++;var M=Math.random();return this._zoneCounter+"-"+M},S.prototype._createZone=function(M,P){var x;return Zone.current.fork({name:M,properties:(x={},x[h]=P,x)})},S.prototype._getActiveZone=function(){return Zone.current},S.prototype._patchAddEventListener=function(M,P,x){var A=this;return function(g,m,l){void 0===M.__ot_listeners&&(M.__ot_listeners={});var r=M.__ot_listeners[g];void 0===r&&(M.__ot_listeners[g]=r=new WeakMap);var u=A.bind(x,m);return r.set(m,u),P.call(this,g,u,l)}},S.prototype._patchRemoveEventListener=function(M,P){return function(x,A){if(void 0===M.__ot_listeners||void 0===M.__ot_listeners[x])return P.call(this,x,A);var g=M.__ot_listeners[x],m=g.get(A);return g.delete(A),P.call(this,x,m||A)}},S.prototype.active=function(){if(!this._enabled)return i.l;var M=this._getActiveZone();return this._activeContextFromZone(M)||i.l},S.prototype.bind=function(M,P){return void 0===M&&(M=this.active()),"function"==typeof P?this._bindFunction(M,P):(function n(S){return void 0===S&&(S={}),"function"==typeof S.addEventListener&&"function"==typeof S.removeEventListener}(P)&&this._bindListener(M,P),P)},S.prototype.disable=function(){return this._enabled=!1,this},S.prototype.enable=function(){return this._enabled=!0,this},S.prototype.with=function(M,P,x){for(var A=[],g=3;g<arguments.length;g++)A[g-3]=arguments[g];var m=this._createZoneName();return this._createZone(m,M).run(P,x,A)},S}()},98685:(St,z,s)=>{"use strict";s.r(z),s.d(z,{ZoneContextManager:()=>i.T});var i=s(14525)},99200:(St,z,s)=>{"use strict";s.d(z,{V:()=>i});var i=function(n){return n[n.SUCCESS=0]="SUCCESS",n[n.FAILED=1]="FAILED",n}(i||{})},93267:(St,z,s)=>{"use strict";s.d(z,{EC:()=>h,KV:()=>M,QC:()=>S,hN:()=>n,kI:()=>P,r_:()=>C,un:()=>i});var i="=",n=";",h=",",C="baggage",S=180,M=4096,P=8192},9113:(St,z,s)=>{"use strict";s.d(z,{t:()=>S});var i=s(35475),n=s(10857),h=s(93267),C=s(11907),S=function(){function M(){}return M.prototype.inject=function(P,x,A){var g=i.$.getBaggage(P);if(g&&!(0,n.Zf)(P)){var m=(0,C.getKeyPairs)(g).filter(function(r){return r.length<=h.KV}).slice(0,h.QC),l=(0,C.serializeKeyPairs)(m);l.length>0&&A.set(x,h.r_,l)}},M.prototype.extract=function(P,x,A){var g=A.get(x,h.r_),m=Array.isArray(g)?g.join(h.EC):g;if(!m)return P;var l={};return 0===m.length?P:(m.split(h.EC).forEach(function(u){var v=(0,C.parsePairKeyValue)(u);if(v){var E={value:v.value};v.metadata&&(E.metadata=v.metadata),l[v.key]=E}}),0===Object.entries(l).length?P:i.$.setBaggage(P,i.$.createBaggage(l)))},M.prototype.fields=function(){return[h.r_]},M}()},11907:(St,z,s)=>{"use strict";s.r(z),s.d(z,{getKeyPairs:()=>S,parseKeyPairsIntoRecord:()=>P,parsePairKeyValue:()=>M,serializeKeyPairs:()=>C});var i=s(44588),n=s(93267),h=function(x,A){var g="function"==typeof Symbol&&x[Symbol.iterator];if(!g)return x;var l,u,m=g.call(x),r=[];try{for(;(void 0===A||A-- >0)&&!(l=m.next()).done;)r.push(l.value)}catch(v){u={error:v}}finally{try{l&&!l.done&&(g=m.return)&&g.call(m)}finally{if(u)throw u.error}}return r};function C(x){return x.reduce(function(A,g){var m=""+A+(""!==A?n.EC:"")+g;return m.length>n.kI?A:m},"")}function S(x){return x.getAllEntries().map(function(A){var g=h(A,2),l=g[1],r=encodeURIComponent(g[0])+"="+encodeURIComponent(l.value);return void 0!==l.metadata&&(r+=n.hN+l.metadata.toString()),r})}function M(x){var A=x.split(n.hN);if(!(A.length<=0)){var g=A.shift();if(g){var m=g.indexOf(n.un);if(!(m<=0)){var u,l=decodeURIComponent(g.substring(0,m).trim()),r=decodeURIComponent(g.substring(m+1).trim());return A.length>0&&(u=(0,i.B)(A.join(n.hN))),{key:l,value:r,metadata:u}}}}}function P(x){return"string"!=typeof x||0===x.length?{}:x.split(n.EC).map(function(A){return M(A)}).filter(function(A){return void 0!==A&&A.value.length>0}).reduce(function(A,g){return A[g.key]=g.value,A},{})}},58312:(St,z,s)=>{"use strict";s.d(z,{L:()=>C,m:()=>M,oU:()=>S});var i=s(40698),n=function(A){var g="function"==typeof Symbol&&Symbol.iterator,m=g&&A[g],l=0;if(m)return m.call(A);if(A&&"number"==typeof A.length)return{next:function(){return A&&l>=A.length&&(A=void 0),{value:A&&A[l++],done:!A}}};throw new TypeError(g?"Object is not iterable.":"Symbol.iterator is not defined.")},h=function(A,g){var m="function"==typeof Symbol&&A[Symbol.iterator];if(!m)return A;var r,v,l=m.call(A),u=[];try{for(;(void 0===g||g-- >0)&&!(r=l.next()).done;)u.push(r.value)}catch(E){v={error:E}}finally{try{r&&!r.done&&(m=l.return)&&m.call(l)}finally{if(v)throw v.error}}return u};function C(A){var g,m,l={};if("object"!=typeof A||null==A)return l;try{for(var r=n(Object.entries(A)),u=r.next();!u.done;u=r.next()){var v=h(u.value,2),E=v[0],T=v[1];S(E)?M(T)?l[E]=Array.isArray(T)?T.slice():T:i.s.warn("Invalid attribute value set for key: "+E):i.s.warn("Invalid attribute key: "+E)}}catch(R){g={error:R}}finally{try{u&&!u.done&&(m=r.return)&&m.call(r)}finally{if(g)throw g.error}}return l}function S(A){return"string"==typeof A&&A.length>0}function M(A){return null==A||(Array.isArray(A)?function P(A){var g,m,l;try{for(var r=n(A),u=r.next();!u.done;u=r.next()){var v=u.value;if(null!=v){if(!l){if(x(v)){l=typeof v;continue}return!1}if(typeof v!==l)return!1}}}catch(E){g={error:E}}finally{try{u&&!u.done&&(m=r.return)&&m.call(r)}finally{if(g)throw g.error}}return!0}(A):x(A))}function x(A){switch(typeof A){case"number":case"boolean":case"string":return!0}return!1}},70440:(St,z,s)=>{"use strict";s.d(z,{s:()=>C,u:()=>h});var n=(0,s(106).o)();function h(S){n=S}function C(S){try{n(S)}catch{}}},2776:(St,z,s)=>{"use strict";function i(h){return h>=48&&h<=57?h-48:h>=97&&h<=102?h-87:h-55}function n(h){for(var C=new Uint8Array(h.length/2),S=0,M=0;M<h.length;M+=2){var P=i(h.charCodeAt(M)),x=i(h.charCodeAt(M+1));C[S++]=P<<4|x}return C}s.d(z,{Q:()=>n})},106:(St,z,s)=>{"use strict";s.d(z,{o:()=>n});var i=s(40698);function n(){return function(S){i.s.error(function h(S){return"string"==typeof S?S:JSON.stringify(function C(S){for(var M={},P=S;null!==P;)Object.getOwnPropertyNames(P).forEach(function(x){if(!M[x]){var A=P[x];A&&(M[x]=String(A))}}),P=Object.getPrototypeOf(P);return M}(S))}(S))}}},23500:(St,z,s)=>{"use strict";s.d(z,{Ir:()=>E,JU:()=>r,KJ:()=>A,VL:()=>v,W5:()=>g,_5:()=>x,lg:()=>M,mw:()=>T,tq:()=>m,u5:()=>l,uc:()=>P,w_:()=>u});var i=s(52246),n=9,C=Math.pow(10,6),S=Math.pow(10,n);function M(R){return[Math.trunc(R/1e3),Math.round(R%1e3*C)]}function P(){var R=i.u.timeOrigin;if("number"!=typeof R){var B=i.u;R=B.timing&&B.timing.fetchStart}return R}function x(R){return T(M(P()),M("number"==typeof R?R:i.u.now()))}function A(R){if(v(R))return R;if("number"==typeof R)return R<P()?x(R):M(R);if(R instanceof Date)return M(R.getTime());throw TypeError("Invalid input type")}function g(R,B){var U=B[0]-R[0],Y=B[1]-R[1];return Y<0&&(U-=1,Y+=S),[U,Y]}function m(R){var B=n,U=""+"0".repeat(B)+R[1]+"Z",Y=U.substr(U.length-B-1);return new Date(1e3*R[0]).toISOString().replace("000Z",Y)}function l(R){return R[0]*S+R[1]}function r(R){return 1e3*R[0]+R[1]/1e6}function u(R){return 1e6*R[0]+R[1]/1e3}function v(R){return Array.isArray(R)&&2===R.length&&"number"==typeof R[0]&&"number"==typeof R[1]}function E(R){return v(R)||"number"==typeof R||R instanceof Date}function T(R,B){var U=[R[0]+B[0],R[1]+B[1]];return U[1]>=S&&(U[1]-=S,U[0]+=1),U}},21902:(St,z,s)=>{"use strict";s.r(z),s.d(z,{AlwaysOffSampler:()=>Fe,AlwaysOnSampler:()=>Qe,AnchoredClock:()=>n,BindOnceFuture:()=>se.I,CompositePropagator:()=>G.n,DEFAULT_ATTRIBUTE_COUNT_LIMIT:()=>$e.fv,DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT:()=>$e.aE,DEFAULT_ENVIRONMENT:()=>$e.Uz,DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:()=>$e.h9,DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:()=>$e.V,ExportResultCode:()=>x.V,ParentBasedSampler:()=>Je,RPCType:()=>Q,RandomIdGenerator:()=>T,SDK_INFO:()=>Y.q,TRACE_PARENT_HEADER:()=>k.ZS,TRACE_STATE_HEADER:()=>k.UD,TimeoutError:()=>vt,TraceIdRatioBasedSampler:()=>ze,TraceState:()=>Ve.n,TracesSamplerValues:()=>Pe.R,VERSION:()=>Ce.x,W3CBaggagePropagator:()=>i.t,W3CTraceContextPropagator:()=>k.lm,_globalThis:()=>m.X,addHrTimes:()=>M.mw,baggageUtils:()=>A,callWithTimeout:()=>ve,deleteRPCMetadata:()=>te,getEnv:()=>g._,getEnvWithoutDefaults:()=>g.w,getRPCMetadata:()=>Ee,getTimeOrigin:()=>M.uc,globalErrorHandler:()=>C.s,hexToBase64:()=>u,hexToBinary:()=>P.Q,hrTime:()=>M._5,hrTimeDuration:()=>M.W5,hrTimeToMicroseconds:()=>M.w_,hrTimeToMilliseconds:()=>M.JU,hrTimeToNanoseconds:()=>M.u5,hrTimeToTimeStamp:()=>M.tq,internal:()=>me,isAttributeKey:()=>h.oU,isAttributeValue:()=>h.m,isTimeInput:()=>M.Ir,isTimeInputHrTime:()=>M.VL,isTracingSuppressed:()=>Ke.Zf,isUrlIgnored:()=>ue.K,isWrapped:()=>et,loggingErrorHandler:()=>S.o,merge:()=>dt.h,millisToHrTime:()=>M.lg,otperformance:()=>U.u,parseEnvironment:()=>$e.Nq,parseTraceParent:()=>k.ZI,sanitizeAttributes:()=>h.L,setGlobalErrorHandler:()=>C.u,setRPCMetadata:()=>ce,suppressTracing:()=>Ke.M1,timeInputToHrTime:()=>M.KJ,unrefTimer:()=>ae.K,unsuppressTracing:()=>Ke.FU,urlMatches:()=>ue.f});var i=s(9113),n=function(){function le(Xe,Se){this._monotonicClock=Se,this._epochMillis=Xe.now(),this._performanceMillis=Se.now()}return le.prototype.now=function(){var Xe=this._monotonicClock.now()-this._performanceMillis;return this._epochMillis+Xe},le}(),h=s(58312),C=s(70440),S=s(106),M=s(23500),P=s(2776),x=s(99200),A=s(11907),g=s(75701),m=s(321),l=function(le,Xe){var Se="function"==typeof Symbol&&le[Symbol.iterator];if(!Se)return le;var Ne,Ot,fe=Se.call(le),ye=[];try{for(;(void 0===Xe||Xe-- >0)&&!(Ne=fe.next()).done;)ye.push(Ne.value)}catch(sn){Ot={error:sn}}finally{try{Ne&&!Ne.done&&(Se=fe.return)&&Se.call(fe)}finally{if(Ot)throw Ot.error}}return ye},r=function(le,Xe,Se){if(Se||2===arguments.length)for(var ye,fe=0,Ne=Xe.length;fe<Ne;fe++)(ye||!(fe in Xe))&&(ye||(ye=Array.prototype.slice.call(Xe,0,fe)),ye[fe]=Xe[fe]);return le.concat(ye||Array.prototype.slice.call(Xe))};function u(le){return btoa(String.fromCharCode.apply(String,r([],l((0,P.Q)(le)),!1)))}var T=function(){return function le(){this.generateTraceId=B(16),this.generateSpanId=B(8)}}(),R=Array(32);function B(le){return function(){for(var Se=0;Se<2*le;Se++)R[Se]=Math.floor(16*Math.random())+48,R[Se]>=58&&(R[Se]+=39);return String.fromCharCode.apply(null,R.slice(0,2*le))}}var U=s(52246),Y=s(91085),ae=s(60554),G=s(76181),k=s(90775),q=(0,s(24773).n)("OpenTelemetry SDK Context Key RPC_METADATA"),Q=function(le){return le.HTTP="http",le}(Q||{});function ce(le,Xe){return le.setValue(q,Xe)}function te(le){return le.deleteValue(q)}function Ee(le){return le.getValue(q)}var it=s(42710),Fe=function(){function le(){}return le.prototype.shouldSample=function(){return{decision:it.i.NOT_RECORD}},le.prototype.toString=function(){return"AlwaysOffSampler"},le}(),Qe=function(){function le(){}return le.prototype.shouldSample=function(){return{decision:it.i.RECORD_AND_SAMPLED}},le.prototype.toString=function(){return"AlwaysOnSampler"},le}(),ct=s(92414),Ge=s(63051),nt=s(57585),Je=function(){function le(Xe){var Se,fe,Ne,ye;this._root=Xe.root,this._root||((0,C.s)(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new Qe),this._remoteParentSampled=null!==(Se=Xe.remoteParentSampled)&&void 0!==Se?Se:new Qe,this._remoteParentNotSampled=null!==(fe=Xe.remoteParentNotSampled)&&void 0!==fe?fe:new Fe,this._localParentSampled=null!==(Ne=Xe.localParentSampled)&&void 0!==Ne?Ne:new Qe,this._localParentNotSampled=null!==(ye=Xe.localParentNotSampled)&&void 0!==ye?ye:new Fe}return le.prototype.shouldSample=function(Xe,Se,fe,Ne,ye,Ot){var sn=ct.u.getSpanContext(Xe);return sn&&(0,Ge.YA)(sn)?sn.isRemote?sn.traceFlags&nt.X.SAMPLED?this._remoteParentSampled.shouldSample(Xe,Se,fe,Ne,ye,Ot):this._remoteParentNotSampled.shouldSample(Xe,Se,fe,Ne,ye,Ot):sn.traceFlags&nt.X.SAMPLED?this._localParentSampled.shouldSample(Xe,Se,fe,Ne,ye,Ot):this._localParentNotSampled.shouldSample(Xe,Se,fe,Ne,ye,Ot):this._root.shouldSample(Xe,Se,fe,Ne,ye,Ot)},le.prototype.toString=function(){return"ParentBased{root="+this._root.toString()+", remoteParentSampled="+this._remoteParentSampled.toString()+", remoteParentNotSampled="+this._remoteParentNotSampled.toString()+", localParentSampled="+this._localParentSampled.toString()+", localParentNotSampled="+this._localParentNotSampled.toString()+"}"},le}(),ze=function(){function le(Xe){void 0===Xe&&(Xe=0),this._ratio=Xe,this._ratio=this._normalize(Xe),this._upperBound=Math.floor(4294967295*this._ratio)}return le.prototype.shouldSample=function(Xe,Se){return{decision:(0,Ge.hX)(Se)&&this._accumulate(Se)<this._upperBound?it.i.RECORD_AND_SAMPLED:it.i.NOT_RECORD}},le.prototype.toString=function(){return"TraceIdRatioBased{"+this._ratio+"}"},le.prototype._normalize=function(Xe){return"number"!=typeof Xe||isNaN(Xe)?0:Xe>=1?1:Xe<=0?0:Xe},le.prototype._accumulate=function(Xe){for(var Se=0,fe=0;fe<Xe.length/8;fe++){var Ne=8*fe;Se=(Se^parseInt(Xe.slice(Ne,Ne+8),16))>>>0}return Se},le}(),Ke=s(10857),Ve=s(36542),$e=s(98828),dt=s(92848),Pe=s(26056),J=function(){var le=function(Xe,Se){return(le=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(fe,Ne){fe.__proto__=Ne}||function(fe,Ne){for(var ye in Ne)Object.prototype.hasOwnProperty.call(Ne,ye)&&(fe[ye]=Ne[ye])})(Xe,Se)};return function(Xe,Se){if("function"!=typeof Se&&null!==Se)throw new TypeError("Class extends value "+String(Se)+" is not a constructor or null");function fe(){this.constructor=Xe}le(Xe,Se),Xe.prototype=null===Se?Object.create(Se):(fe.prototype=Se.prototype,new fe)}}(),vt=function(le){function Xe(Se){var fe=le.call(this,Se)||this;return Object.setPrototypeOf(fe,Xe.prototype),fe}return J(Xe,le),Xe}(Error);function ve(le,Xe){var Se,fe=new Promise(function(ye,Ot){Se=setTimeout(function(){Ot(new vt("Operation timed out."))},Xe)});return Promise.race([le,fe]).then(function(Ne){return clearTimeout(Se),Ne},function(Ne){throw clearTimeout(Se),Ne})}var ue=s(28280);function et(le){return"function"==typeof le&&"function"==typeof le.__original&&"function"==typeof le.__unwrap&&!0===le.__wrapped}var se=s(25578),Ce=s(37079),be=s(33784),me={_export:function rt(le,Xe){return new Promise(function(Se){be._.with((0,Ke.M1)(be._.active()),function(){le.export(Xe,function(fe){Se(fe)})})})}}},75701:(St,z,s)=>{"use strict";s.d(z,{_:()=>h,w:()=>C});var i=s(98828),n=s(321);function h(){var S=(0,i.Nq)(n.X);return Object.assign({},i.Uz,S)}function C(){return(0,i.Nq)(n.X)}},321:(St,z,s)=>{"use strict";s.d(z,{X:()=>i});var i="object"==typeof globalThis?globalThis:"object"==typeof self?self:"object"==typeof window?window:"object"==typeof global?global:{}},52246:(St,z,s)=>{"use strict";s.d(z,{u:()=>i});var i=performance},91085:(St,z,s)=>{"use strict";s.d(z,{q:()=>C});var h,i=s(37079),n=s(23413),C=((h={})[n._2.TELEMETRY_SDK_NAME]="opentelemetry",h[n._2.PROCESS_RUNTIME_NAME]="browser",h[n._2.TELEMETRY_SDK_LANGUAGE]=n.wP.WEBJS,h[n._2.TELEMETRY_SDK_VERSION]=i.x,h)},60554:(St,z,s)=>{"use strict";function i(n){}s.d(z,{K:()=>i})},76181:(St,z,s)=>{"use strict";s.d(z,{n:()=>h});var i=s(40698),h=function(){function C(S){var M;void 0===S&&(S={}),this._propagators=null!==(M=S.propagators)&&void 0!==M?M:[],this._fields=Array.from(new Set(this._propagators.map(function(P){return"function"==typeof P.fields?P.fields():[]}).reduce(function(P,x){return P.concat(x)},[])))}return C.prototype.inject=function(S,M,P){var x,A;try{for(var g=function(C){var S="function"==typeof Symbol&&Symbol.iterator,M=S&&C[S],P=0;if(M)return M.call(C);if(C&&"number"==typeof C.length)return{next:function(){return C&&P>=C.length&&(C=void 0),{value:C&&C[P++],done:!C}}};throw new TypeError(S?"Object is not iterable.":"Symbol.iterator is not defined.")}(this._propagators),m=g.next();!m.done;m=g.next()){var l=m.value;try{l.inject(S,M,P)}catch(r){i.s.warn("Failed to inject with "+l.constructor.name+". Err: "+r.message)}}}catch(r){x={error:r}}finally{try{m&&!m.done&&(A=g.return)&&A.call(g)}finally{if(x)throw x.error}}},C.prototype.extract=function(S,M,P){return this._propagators.reduce(function(x,A){try{return A.extract(x,M,P)}catch(g){i.s.warn("Failed to inject with "+A.constructor.name+". Err: "+g.message)}return x},S)},C.prototype.fields=function(){return this._fields.slice()},C}()},36542:(St,z,s)=>{"use strict";s.d(z,{n:()=>r});var i="[_0-9a-z-*/]",C=new RegExp("^(?:[a-z]"+i+"{0,255}|[a-z0-9]"+i+"{0,240}@[a-z]"+i+"{0,13})$"),S=/^[ -~]{0,255}[!-~]$/,M=/,|=/,r=function(){function u(v){this._internalState=new Map,v&&this._parse(v)}return u.prototype.set=function(v,E){var T=this._clone();return T._internalState.has(v)&&T._internalState.delete(v),T._internalState.set(v,E),T},u.prototype.unset=function(v){var E=this._clone();return E._internalState.delete(v),E},u.prototype.get=function(v){return this._internalState.get(v)},u.prototype.serialize=function(){var v=this;return this._keys().reduce(function(E,T){return E.push(T+"="+v.get(T)),E},[]).join(",")},u.prototype._parse=function(v){v.length>512||(this._internalState=v.split(",").reverse().reduce(function(E,T){var R=T.trim(),B=R.indexOf("=");if(-1!==B){var U=R.slice(0,B),Y=R.slice(B+1,T.length);(function P(u){return C.test(u)})(U)&&function x(u){return S.test(u)&&!M.test(u)}(Y)&&E.set(U,Y)}return E},new Map),this._internalState.size>32&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,32))))},u.prototype._keys=function(){return Array.from(this._internalState.keys()).reverse()},u.prototype._clone=function(){var v=new u;return v._internalState=new Map(this._internalState),v},u}()},90775:(St,z,s)=>{"use strict";s.d(z,{UD:()=>P,ZI:()=>u,ZS:()=>M,lm:()=>v});var i=s(92414),n=s(63051),h=s(57585),C=s(10857),S=s(36542),M="traceparent",P="tracestate",r=new RegExp("^\\s?((?!ff)[\\da-f]{2})-((?![0]{32})[\\da-f]{32})-((?![0]{16})[\\da-f]{16})-([\\da-f]{2})(-.*)?\\s?$");function u(E){var T=r.exec(E);return!T||"00"===T[1]&&T[5]?null:{traceId:T[2],spanId:T[3],traceFlags:parseInt(T[4],16)}}var v=function(){function E(){}return E.prototype.inject=function(T,R,B){var U=i.u.getSpanContext(T);if(U&&!(0,C.Zf)(T)&&(0,n.YA)(U)){var Y="00-"+U.traceId+"-"+U.spanId+"-0"+Number(U.traceFlags||h.X.NONE).toString(16);B.set(R,M,Y),U.traceState&&B.set(R,P,U.traceState.serialize())}},E.prototype.extract=function(T,R,B){var U=B.get(R,M);if(!U)return T;var Y=Array.isArray(U)?U[0]:U;if("string"!=typeof Y)return T;var ae=u(Y);if(!ae)return T;ae.isRemote=!0;var G=B.get(R,P);if(G){var k=Array.isArray(G)?G.join(","):G;ae.traceState=new S.n("string"==typeof k?k:void 0)}return i.u.setSpanContext(T,ae)},E.prototype.fields=function(){return[M,P]},E}()},10857:(St,z,s)=>{"use strict";s.d(z,{FU:()=>C,M1:()=>h,Zf:()=>S});var n=(0,s(24773).n)("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function h(M){return M.setValue(n,!0)}function C(M){return M.deleteValue(n)}function S(M){return!0===M.getValue(n)}},25578:(St,z,s)=>{"use strict";s.d(z,{I:()=>C});var i=function(){function S(){var M=this;this._promise=new Promise(function(P,x){M._resolve=P,M._reject=x})}return Object.defineProperty(S.prototype,"promise",{get:function(){return this._promise},enumerable:!1,configurable:!0}),S.prototype.resolve=function(M){this._resolve(M)},S.prototype.reject=function(M){this._reject(M)},S}(),C=function(){function S(M,P){this._callback=M,this._that=P,this._isCalled=!1,this._deferred=new i}return Object.defineProperty(S.prototype,"isCalled",{get:function(){return this._isCalled},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"promise",{get:function(){return this._deferred.promise},enumerable:!1,configurable:!0}),S.prototype.call=function(){for(var M,P=this,x=[],A=0;A<arguments.length;A++)x[A]=arguments[A];if(!this._isCalled){this._isCalled=!0;try{Promise.resolve((M=this._callback).call.apply(M,function(S,M,P){if(P||2===arguments.length)for(var g,x=0,A=M.length;x<A;x++)(g||!(x in M))&&(g||(g=Array.prototype.slice.call(M,0,x)),g[x]=M[x]);return S.concat(g||Array.prototype.slice.call(M))}([this._that],function(S,M){var P="function"==typeof Symbol&&S[Symbol.iterator];if(!P)return S;var A,m,x=P.call(S),g=[];try{for(;(void 0===M||M-- >0)&&!(A=x.next()).done;)g.push(A.value)}catch(l){m={error:l}}finally{try{A&&!A.done&&(P=x.return)&&P.call(x)}finally{if(m)throw m.error}}return g}(x),!1))).then(function(g){return P._deferred.resolve(g)},function(g){return P._deferred.reject(g)})}catch(g){this._deferred.reject(g)}}return this._deferred.promise},S}()},98828:(St,z,s)=>{"use strict";s.d(z,{Nq:()=>U,Uz:()=>u,V:()=>r,aE:()=>g,fv:()=>m,h9:()=>l});var i=s(56737),n=s(26056),h=",",C=["OTEL_SDK_DISABLED"];function S(Y){return C.indexOf(Y)>-1}var M=["OTEL_BSP_EXPORT_TIMEOUT","OTEL_BSP_MAX_EXPORT_BATCH_SIZE","OTEL_BSP_MAX_QUEUE_SIZE","OTEL_BSP_SCHEDULE_DELAY","OTEL_BLRP_EXPORT_TIMEOUT","OTEL_BLRP_MAX_EXPORT_BATCH_SIZE","OTEL_BLRP_MAX_QUEUE_SIZE","OTEL_BLRP_SCHEDULE_DELAY","OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT","OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_EVENT_COUNT_LIMIT","OTEL_SPAN_LINK_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT","OTEL_EXPORTER_OTLP_TIMEOUT","OTEL_EXPORTER_OTLP_TRACES_TIMEOUT","OTEL_EXPORTER_OTLP_METRICS_TIMEOUT","OTEL_EXPORTER_OTLP_LOGS_TIMEOUT","OTEL_EXPORTER_JAEGER_AGENT_PORT"];function P(Y){return M.indexOf(Y)>-1}var x=["OTEL_NO_PATCH_MODULES","OTEL_PROPAGATORS"];function A(Y){return x.indexOf(Y)>-1}var g=1/0,m=128,l=128,r=128,u={OTEL_SDK_DISABLED:!1,CONTAINER_NAME:"",ECS_CONTAINER_METADATA_URI_V4:"",ECS_CONTAINER_METADATA_URI:"",HOSTNAME:"",KUBERNETES_SERVICE_HOST:"",NAMESPACE:"",OTEL_BSP_EXPORT_TIMEOUT:3e4,OTEL_BSP_MAX_EXPORT_BATCH_SIZE:512,OTEL_BSP_MAX_QUEUE_SIZE:2048,OTEL_BSP_SCHEDULE_DELAY:5e3,OTEL_BLRP_EXPORT_TIMEOUT:3e4,OTEL_BLRP_MAX_EXPORT_BATCH_SIZE:512,OTEL_BLRP_MAX_QUEUE_SIZE:2048,OTEL_BLRP_SCHEDULE_DELAY:5e3,OTEL_EXPORTER_JAEGER_AGENT_HOST:"",OTEL_EXPORTER_JAEGER_AGENT_PORT:6832,OTEL_EXPORTER_JAEGER_ENDPOINT:"",OTEL_EXPORTER_JAEGER_PASSWORD:"",OTEL_EXPORTER_JAEGER_USER:"",OTEL_EXPORTER_OTLP_ENDPOINT:"",OTEL_EXPORTER_OTLP_TRACES_ENDPOINT:"",OTEL_EXPORTER_OTLP_METRICS_ENDPOINT:"",OTEL_EXPORTER_OTLP_LOGS_ENDPOINT:"",OTEL_EXPORTER_OTLP_HEADERS:"",OTEL_EXPORTER_OTLP_TRACES_HEADERS:"",OTEL_EXPORTER_OTLP_METRICS_HEADERS:"",OTEL_EXPORTER_OTLP_LOGS_HEADERS:"",OTEL_EXPORTER_OTLP_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_TRACES_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_METRICS_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_LOGS_TIMEOUT:1e4,OTEL_EXPORTER_ZIPKIN_ENDPOINT:"http://localhost:9411/api/v2/spans",OTEL_LOG_LEVEL:i.u.INFO,OTEL_NO_PATCH_MODULES:[],OTEL_PROPAGATORS:["tracecontext","baggage"],OTEL_RESOURCE_ATTRIBUTES:"",OTEL_SERVICE_NAME:"",OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT:g,OTEL_ATTRIBUTE_COUNT_LIMIT:m,OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT:g,OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT:m,OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT:g,OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT:m,OTEL_SPAN_EVENT_COUNT_LIMIT:128,OTEL_SPAN_LINK_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:l,OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:r,OTEL_TRACES_EXPORTER:"",OTEL_TRACES_SAMPLER:n.R.ParentBasedAlwaysOn,OTEL_TRACES_SAMPLER_ARG:"",OTEL_LOGS_EXPORTER:"",OTEL_EXPORTER_OTLP_INSECURE:"",OTEL_EXPORTER_OTLP_TRACES_INSECURE:"",OTEL_EXPORTER_OTLP_METRICS_INSECURE:"",OTEL_EXPORTER_OTLP_LOGS_INSECURE:"",OTEL_EXPORTER_OTLP_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_COMPRESSION:"",OTEL_EXPORTER_OTLP_TRACES_COMPRESSION:"",OTEL_EXPORTER_OTLP_METRICS_COMPRESSION:"",OTEL_EXPORTER_OTLP_LOGS_COMPRESSION:"",OTEL_EXPORTER_OTLP_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_TRACES_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_LOGS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE:"cumulative"};function v(Y,ae,G){if(!(typeof G[Y]>"u")){var k=String(G[Y]);ae[Y]="true"===k.toLowerCase()}}function E(Y,ae,G,k,X){if(void 0===k&&(k=-1/0),void 0===X&&(X=1/0),typeof G[Y]<"u"){var q=Number(G[Y]);isNaN(q)||(ae[Y]=q<k?k:q>X?X:q)}}function T(Y,ae,G,k){void 0===k&&(k=h);var X=G[Y];"string"==typeof X&&(ae[Y]=X.split(k).map(function(q){return q.trim()}))}var R={ALL:i.u.ALL,VERBOSE:i.u.VERBOSE,DEBUG:i.u.DEBUG,INFO:i.u.INFO,WARN:i.u.WARN,ERROR:i.u.ERROR,NONE:i.u.NONE};function B(Y,ae,G){var k=G[Y];if("string"==typeof k){var X=R[k.toUpperCase()];null!=X&&(ae[Y]=X)}}function U(Y){var ae={};for(var G in u){var k=G;if("OTEL_LOG_LEVEL"===k)B(k,ae,Y);else if(S(k))v(k,ae,Y);else if(P(k))E(k,ae,Y);else if(A(k))T(k,ae,Y);else{var X=Y[k];typeof X<"u"&&null!==X&&(ae[k]=String(X))}}return ae}},92848:(St,z,s)=>{"use strict";s.d(z,{h:()=>B});var i="[object Object]",n="[object Null]",h="[object Undefined]",S=Function.prototype.toString,M=S.call(Object),P=function l(ce,te){return function(Ee){return ce(te(Ee))}}(Object.getPrototypeOf,Object),x=Object.prototype,A=x.hasOwnProperty,g=Symbol?Symbol.toStringTag:void 0,m=x.toString;function r(ce){if(!function u(ce){return null!=ce&&"object"==typeof ce}(ce)||function v(ce){return null==ce?void 0===ce?h:n:g&&g in Object(ce)?function E(ce){var te=A.call(ce,g),Ee=ce[g],it=!1;try{ce[g]=void 0,it=!0}catch{}var Fe=m.call(ce);return it&&(te?ce[g]=Ee:delete ce[g]),Fe}(ce):function T(ce){return m.call(ce)}(ce)}(ce)!==i)return!1;var te=P(ce);if(null===te)return!0;var Ee=A.call(te,"constructor")&&te.constructor;return"function"==typeof Ee&&Ee instanceof Ee&&S.call(Ee)===M}var R=20;function B(){for(var ce=[],te=0;te<arguments.length;te++)ce[te]=arguments[te];for(var Ee=ce.shift(),it=new WeakMap;ce.length>0;)Ee=Y(Ee,ce.shift(),0,it);return Ee}function U(ce){return G(ce)?ce.slice():ce}function Y(ce,te,Ee,it){var Fe;if(void 0===Ee&&(Ee=0),!(Ee>R)){if(Ee++,q(ce)||q(te)||k(te))Fe=U(te);else if(G(ce)){if(Fe=ce.slice(),G(te))for(var Qe=0,ct=te.length;Qe<ct;Qe++)Fe.push(U(te[Qe]));else if(X(te))for(Qe=0,ct=(Ge=Object.keys(te)).length;Qe<ct;Qe++)Fe[nt=Ge[Qe]]=U(te[nt])}else if(X(ce))if(X(te)){if(!function Q(ce,te){return!(!r(ce)||!r(te))}(ce,te))return te;var Ge;for(Fe=Object.assign({},ce),Qe=0,ct=(Ge=Object.keys(te)).length;Qe<ct;Qe++){var nt,Je=te[nt=Ge[Qe]];if(q(Je))typeof Je>"u"?delete Fe[nt]:Fe[nt]=Je;else{var ze=Fe[nt],Ke=Je;if(ae(ce,nt,it)||ae(te,nt,it))delete Fe[nt];else{if(X(ze)&&X(Ke)){var Ve=it.get(ze)||[],$e=it.get(Ke)||[];Ve.push({obj:ce,key:nt}),$e.push({obj:te,key:nt}),it.set(ze,Ve),it.set(Ke,$e)}Fe[nt]=Y(Fe[nt],Je,Ee,it)}}}}else Fe=te;return Fe}}function ae(ce,te,Ee){for(var it=Ee.get(ce[te])||[],Fe=0,Qe=it.length;Fe<Qe;Fe++){var ct=it[Fe];if(ct.key===te&&ct.obj===ce)return!0}return!1}function G(ce){return Array.isArray(ce)}function k(ce){return"function"==typeof ce}function X(ce){return!q(ce)&&!G(ce)&&!k(ce)&&"object"==typeof ce}function q(ce){return"string"==typeof ce||"number"==typeof ce||"boolean"==typeof ce||typeof ce>"u"||ce instanceof Date||ce instanceof RegExp||null===ce}},26056:(St,z,s)=>{"use strict";s.d(z,{R:()=>i});var i=function(n){return n.AlwaysOff="always_off",n.AlwaysOn="always_on",n.ParentBasedAlwaysOff="parentbased_always_off",n.ParentBasedAlwaysOn="parentbased_always_on",n.ParentBasedTraceIdRatio="parentbased_traceidratio",n.TraceIdRatio="traceidratio",n}(i||{})},28280:(St,z,s)=>{"use strict";s.d(z,{K:()=>h,f:()=>n});var i=function(C){var S="function"==typeof Symbol&&Symbol.iterator,M=S&&C[S],P=0;if(M)return M.call(C);if(C&&"number"==typeof C.length)return{next:function(){return C&&P>=C.length&&(C=void 0),{value:C&&C[P++],done:!C}}};throw new TypeError(S?"Object is not iterable.":"Symbol.iterator is not defined.")};function n(C,S){return"string"==typeof S?C===S:!!C.match(S)}function h(C,S){var M,P;if(!S)return!1;try{for(var x=i(S),A=x.next();!A.done;A=x.next())if(n(C,A.value))return!0}catch(m){M={error:m}}finally{try{A&&!A.done&&(P=x.return)&&P.call(x)}finally{if(M)throw M.error}}return!1}},37079:(St,z,s)=>{"use strict";s.d(z,{x:()=>i});var i="1.24.1"},25154:(St,z,s)=>{"use strict";s.r(z),s.d(z,{OTLPTraceExporter:()=>i.Q});var i=s(83594)},83594:(St,z,s)=>{"use strict";s.d(z,{Q:()=>yn});var i=s(11907),n=s(75701),h=s(40698);function v(At,Vt){return h.s.warn("Timeout must be greater than 0",At),Vt}var R=function(At){return At[At.SPANS=0]="SPANS",At[At.METRICS=1]="METRICS",At[At.LOGS=2]="LOGS",At}(R||{}),B=function(){var At=function(Vt,Qt){return(At=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Jt,Zt){Jt.__proto__=Zt}||function(Jt,Zt){for(var nn in Zt)Object.prototype.hasOwnProperty.call(Zt,nn)&&(Jt[nn]=Zt[nn])})(Vt,Qt)};return function(Vt,Qt){if("function"!=typeof Qt&&null!==Qt)throw new TypeError("Class extends value "+String(Qt)+" is not a constructor or null");function Jt(){this.constructor=Vt}At(Vt,Qt),Vt.prototype=null===Qt?Object.create(Qt):(Jt.prototype=Qt.prototype,new Jt)}}(),U=function(At){function Vt(Qt,Jt,Zt){var nn=At.call(this,Qt)||this;return nn.name="OTLPExporterError",nn.data=Zt,nn.code=Jt,nn}return B(Vt,At),Vt}(Error),Y=function(){return Y=Object.assign||function(At){for(var Vt,Qt=1,Jt=arguments.length;Qt<Jt;Qt++)for(var Zt in Vt=arguments[Qt])Object.prototype.hasOwnProperty.call(Vt,Zt)&&(At[Zt]=Vt[Zt]);return At},Y.apply(this,arguments)};function k(At,Vt,Qt,Jt,Zt,nn){var Xt,lt,Ue=!1,wt=setTimeout(function(){if(clearTimeout(Xt),Ue=!0,lt.readyState===XMLHttpRequest.DONE){var Ht=new U("Request Timeout");nn(Ht)}else lt.abort()},Jt),gt=function(Ht,bn){void 0===Ht&&(Ht=5),void 0===bn&&(bn=1e3),(lt=new XMLHttpRequest).open("POST",Vt),Object.entries(Y(Y({},{Accept:"application/json","Content-Type":"application/json"}),Qt)).forEach(function(Bt){var Le=function(At,Vt){var Qt="function"==typeof Symbol&&At[Symbol.iterator];if(!Qt)return At;var Zt,Xt,Jt=Qt.call(At),nn=[];try{for(;(void 0===Vt||Vt-- >0)&&!(Zt=Jt.next()).done;)nn.push(Zt.value)}catch(lt){Xt={error:lt}}finally{try{Zt&&!Zt.done&&(Qt=Jt.return)&&Qt.call(Jt)}finally{if(Xt)throw Xt.error}}return nn}(Bt,2);lt.setRequestHeader(Le[0],Le[1])}),lt.send(At),lt.onreadystatechange=function(){if(lt.readyState===XMLHttpRequest.DONE&&!1===Ue)if(lt.status>=200&<.status<=299)h.s.debug("xhr success",At),Zt(),clearTimeout(wt),clearTimeout(Xt);else if(lt.status&&function E(At){return[429,502,503,504].includes(At)}(lt.status)&&Ht>0){var Bt;bn*=1.5,Bt=lt.getResponseHeader("Retry-After")?function T(At){if(null==At)return-1;var Vt=Number.parseInt(At,10);if(Number.isInteger(Vt))return Vt>0?1e3*Vt:-1;var Qt=new Date(At).getTime()-Date.now();return Qt>=0?Qt:0}(lt.getResponseHeader("Retry-After")):Math.round(Math.random()*(5e3-bn)+bn),Xt=setTimeout(function(){gt(Ht-1,bn)},Bt)}else{var Le=new U("Failed to export with XHR (status: "+lt.status+")",lt.status);nn(Le),clearTimeout(wt),clearTimeout(Xt)}},lt.onabort=function(){if(Ue){var Bt=new U("Request Timeout");nn(Bt)}clearTimeout(wt),clearTimeout(Xt)},lt.onerror=function(){if(Ue){var Bt=new U("Request Timeout");nn(Bt)}clearTimeout(wt),clearTimeout(Xt)}};gt()}var X=s(25578),q=s(99200),Q=function(){function At(Vt){void 0===Vt&&(Vt={}),this._sendingPromises=[],this.url=this.getDefaultUrl(Vt),"string"==typeof Vt.hostname&&(this.hostname=Vt.hostname),this.shutdown=this.shutdown.bind(this),this._shutdownOnce=new X.I(this._shutdown,this),this._concurrencyLimit="number"==typeof Vt.concurrencyLimit?Vt.concurrencyLimit:30,this.timeoutMillis=function r(At){return"number"==typeof At?At<=0?v(At,1e4):At:function u(){var At,Vt=Number(null!==(At=(0,n._)().OTEL_EXPORTER_OTLP_TRACES_TIMEOUT)&&void 0!==At?At:(0,n._)().OTEL_EXPORTER_OTLP_TIMEOUT);return Vt<=0?v(Vt,1e4):Vt}()}(Vt.timeoutMillis),this.onInit(Vt)}return At.prototype.export=function(Vt,Qt){this._shutdownOnce.isCalled?Qt({code:q.V.FAILED,error:new Error("Exporter has been shutdown")}):this._sendingPromises.length>=this._concurrencyLimit?Qt({code:q.V.FAILED,error:new Error("Concurrent export limit reached")}):this._export(Vt).then(function(){Qt({code:q.V.SUCCESS})}).catch(function(Jt){Qt({code:q.V.FAILED,error:Jt})})},At.prototype._export=function(Vt){var Qt=this;return new Promise(function(Jt,Zt){try{h.s.debug("items to be sent",Vt),Qt.send(Vt,Jt,Zt)}catch(nn){Zt(nn)}})},At.prototype.shutdown=function(){return this._shutdownOnce.call()},At.prototype.forceFlush=function(){return Promise.all(this._sendingPromises).then(function(){})},At.prototype._shutdown=function(){return h.s.debug("shutdown started"),this.onShutdown(),this.forceFlush()},At}(),ce=function(){var At=function(Vt,Qt){return(At=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Jt,Zt){Jt.__proto__=Zt}||function(Jt,Zt){for(var nn in Zt)Object.prototype.hasOwnProperty.call(Zt,nn)&&(Jt[nn]=Zt[nn])})(Vt,Qt)};return function(Vt,Qt){if("function"!=typeof Qt&&null!==Qt)throw new TypeError("Class extends value "+String(Qt)+" is not a constructor or null");function Jt(){this.constructor=Vt}At(Vt,Qt),Vt.prototype=null===Qt?Object.create(Qt):(Jt.prototype=Qt.prototype,new Jt)}}(),te=function(At){function Vt(Qt){void 0===Qt&&(Qt={});var Jt=At.call(this,Qt)||this;return Jt._useXHR=!1,Jt._useXHR=!!Qt.headers||"function"!=typeof navigator.sendBeacon,Jt._headers=Jt._useXHR?Object.assign({},function g(At){void 0===At&&(At={});var Vt={};return Object.entries(At).forEach(function(Qt){var Jt=function(At,Vt){var Qt="function"==typeof Symbol&&At[Symbol.iterator];if(!Qt)return At;var Zt,Xt,Jt=Qt.call(At),nn=[];try{for(;(void 0===Vt||Vt-- >0)&&!(Zt=Jt.next()).done;)nn.push(Zt.value)}catch(lt){Xt={error:lt}}finally{try{Zt&&!Zt.done&&(Qt=Jt.return)&&Qt.call(Jt)}finally{if(Xt)throw Xt.error}}return nn}(Qt,2),Zt=Jt[0],nn=Jt[1];typeof nn<"u"?Vt[Zt]=String(nn):h.s.warn('Header "'+Zt+'" has invalid value ('+nn+") and will be ignored")}),Vt}(Qt.headers),i.parseKeyPairsIntoRecord((0,n._)().OTEL_EXPORTER_OTLP_HEADERS)):{},Jt}return ce(Vt,At),Vt.prototype.onInit=function(){},Vt.prototype.onShutdown=function(){},Vt.prototype.send=function(Qt,Jt,Zt){var nn=this;if(this._shutdownOnce.isCalled)h.s.debug("Shutdown already started. Cannot send objects");else{var Xt=this.convert(Qt),lt=JSON.stringify(Xt),Ue=new Promise(function(gt,Ht){nn._useXHR?k(lt,nn.url,nn._headers,nn.timeoutMillis,gt,Ht):function G(At,Vt,Qt,Jt,Zt){navigator.sendBeacon(Vt,new Blob([At],Qt))?(h.s.debug("sendBeacon - can send",At),Jt()):Zt(new U("sendBeacon - cannot send "+At))}(lt,nn.url,{type:"application/json"},gt,Ht)}).then(Jt,Zt);this._sendingPromises.push(Ue);var wt=function(){var gt=nn._sendingPromises.indexOf(Ue);nn._sendingPromises.splice(gt,1)};Ue.then(wt,wt)}},Vt}(Q),Ee=s(89304),Fe=function(){var At=function(Vt,Qt){return(At=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Jt,Zt){Jt.__proto__=Zt}||function(Jt,Zt){for(var nn in Zt)Object.prototype.hasOwnProperty.call(Zt,nn)&&(Jt[nn]=Zt[nn])})(Vt,Qt)};return function(Vt,Qt){if("function"!=typeof Qt&&null!==Qt)throw new TypeError("Class extends value "+String(Qt)+" is not a constructor or null");function Jt(){this.constructor=Vt}At(Vt,Qt),Vt.prototype=null===Qt?Object.create(Qt):(Jt.prototype=Qt.prototype,new Jt)}}(),Qe=function(){return Qe=Object.assign||function(At){for(var Vt,Qt=1,Jt=arguments.length;Qt<Jt;Qt++)for(var Zt in Vt=arguments[Qt])Object.prototype.hasOwnProperty.call(Vt,Zt)&&(At[Zt]=Vt[Zt]);return At},Qe.apply(this,arguments)},ct=function(At){function Vt(Qt){return void 0===Qt&&(Qt={}),At.call(this,Qt)||this}return Fe(Vt,At),Vt.prototype.send=function(Qt,Jt,Zt){if(this._shutdownOnce.isCalled)h.s.debug("Shutdown already started. Cannot send objects");else{var nn=this.convert(Qt),Xt=function it(At){return At===R.SPANS?Ee.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest:At===R.LOGS?Ee.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest:Ee.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest}(this.getServiceClientType()),lt=Xt.create(nn);if(lt){var Ue=Xt.encode(lt).finish();Ue&&k(new Blob([Ue],{type:"application/x-protobuf"}),this.url,Qe(Qe({},this._headers),{"Content-Type":"application/x-protobuf",Accept:"application/x-protobuf"}),this.timeoutMillis,Jt,Zt)}else Zt(new U("No proto"))}},Vt}(te),Ge=function(At,Vt){var Qt="function"==typeof Symbol&&At[Symbol.iterator];if(!Qt)return At;var Zt,Xt,Jt=Qt.call(At),nn=[];try{for(;(void 0===Vt||Vt-- >0)&&!(Zt=Jt.next()).done;)nn.push(Zt.value)}catch(lt){Xt={error:lt}}finally{try{Zt&&!Zt.done&&(Qt=Jt.return)&&Qt.call(Jt)}finally{if(Xt)throw Xt.error}}return nn};function nt(At){return{name:At.name,version:At.version}}function Je(At){return Object.keys(At).map(function(Vt){return ze(Vt,At[Vt])})}function ze(At,Vt){return{key:At,value:Ke(Vt)}}function Ke(At){var Vt=typeof At;return"string"===Vt?{stringValue:At}:"number"===Vt?Number.isInteger(At)?{intValue:At}:{doubleValue:At}:"boolean"===Vt?{boolValue:At}:At instanceof Uint8Array?{bytesValue:At}:Array.isArray(At)?{arrayValue:{values:At.map(Ke)}}:"object"===Vt&&null!=At?{kvlistValue:{values:Object.entries(At).map(function(Qt){var Jt=Ge(Qt,2);return ze(Jt[0],Jt[1])})}}:{}}function Ve(At,Vt){var Qt,Jt=At.spanContext(),Zt=At.status;return{traceId:Vt.encodeSpanContext(Jt.traceId),spanId:Vt.encodeSpanContext(Jt.spanId),parentSpanId:Vt.encodeOptionalSpanContext(At.parentSpanId),traceState:null===(Qt=Jt.traceState)||void 0===Qt?void 0:Qt.serialize(),name:At.name,kind:null==At.kind?0:At.kind+1,startTimeUnixNano:Vt.encodeHrTime(At.startTime),endTimeUnixNano:Vt.encodeHrTime(At.endTime),attributes:Je(At.attributes),droppedAttributesCount:At.droppedAttributesCount,events:At.events.map(function(nn){return function dt(At,Vt){return{attributes:At.attributes?Je(At.attributes):[],name:At.name,timeUnixNano:Vt.encodeHrTime(At.time),droppedAttributesCount:At.droppedAttributesCount||0}}(nn,Vt)}),droppedEventsCount:At.droppedEventsCount,status:{code:Zt.code,message:Zt.message},links:At.links.map(function(nn){return function $e(At,Vt){var Qt;return{attributes:At.attributes?Je(At.attributes):[],spanId:Vt.encodeSpanContext(At.context.spanId),traceId:Vt.encodeSpanContext(At.context.traceId),traceState:null===(Qt=At.context.traceState)||void 0===Qt?void 0:Qt.serialize(),droppedAttributesCount:At.droppedAttributesCount||0}}(nn,Vt)}),droppedLinksCount:At.droppedLinksCount}}var Pe=s(23500),J=s(2776);function vt(At){var Vt=BigInt(1e9);return BigInt(At[0])*Vt+BigInt(At[1])}function ue(At){return function ve(At){return{low:Number(BigInt.asUintN(32,At)),high:Number(BigInt.asUintN(32,At>>BigInt(32)))}}(vt(At))}var se=typeof BigInt<"u"?function et(At){return vt(At).toString()}:Pe.u5;function Ce(At){return At}function be(At){if(void 0!==At)return(0,J.Q)(At)}var rt={encodeHrTime:ue,encodeSpanContext:J.Q,encodeOptionalSpanContext:be};function le(At){return{attributes:Je(At.attributes),droppedAttributesCount:0}}var Xe=function(At){var Vt="function"==typeof Symbol&&Symbol.iterator,Qt=Vt&&At[Vt],Jt=0;if(Qt)return Qt.call(At);if(At&&"number"==typeof At.length)return{next:function(){return At&&Jt>=At.length&&(At=void 0),{value:At&&At[Jt++],done:!At}}};throw new TypeError(Vt?"Object is not iterable.":"Symbol.iterator is not defined.")},Se=function(At,Vt){var Qt="function"==typeof Symbol&&At[Symbol.iterator];if(!Qt)return At;var Zt,Xt,Jt=Qt.call(At),nn=[];try{for(;(void 0===Vt||Vt-- >0)&&!(Zt=Jt.next()).done;)nn.push(Zt.value)}catch(lt){Xt={error:lt}}finally{try{Zt&&!Zt.done&&(Qt=Jt.return)&&Qt.call(Jt)}finally{if(Xt)throw Xt.error}}return nn};function ye(At,Vt){for(var Qt=function Ne(At){var Vt,Qt,Jt=new Map;try{for(var Zt=Xe(At),nn=Zt.next();!nn.done;nn=Zt.next()){var Xt=nn.value,lt=Jt.get(Xt.resource);lt||Jt.set(Xt.resource,lt=new Map);var Ue=Xt.instrumentationLibrary.name+"@"+(Xt.instrumentationLibrary.version||"")+":"+(Xt.instrumentationLibrary.schemaUrl||""),wt=lt.get(Ue);wt||lt.set(Ue,wt=[]),wt.push(Xt)}}catch(gt){Vt={error:gt}}finally{try{nn&&!nn.done&&(Qt=Zt.return)&&Qt.call(Zt)}finally{if(Vt)throw Vt.error}}return Jt}(At),Jt=[],Zt=Qt.entries(),nn=Zt.next();!nn.done;){for(var Xt=Se(nn.value,2),lt=Xt[0],wt=[],gt=Xt[1].values(),Ht=gt.next();!Ht.done;){var bn=Ht.value;if(bn.length>0){var Ut=bn.map(function(Le){return Ve(Le,Vt)});wt.push({scope:nt(bn[0].instrumentationLibrary),spans:Ut,schemaUrl:bn[0].instrumentationLibrary.schemaUrl})}Ht=gt.next()}var Bt={resource:le(lt),scopeSpans:wt,schemaUrl:void 0};Jt.push(Bt),nn=Zt.next()}return Jt}var Ot=function(){var At=function(Vt,Qt){return(At=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Jt,Zt){Jt.__proto__=Zt}||function(Jt,Zt){for(var nn in Zt)Object.prototype.hasOwnProperty.call(Zt,nn)&&(Jt[nn]=Zt[nn])})(Vt,Qt)};return function(Vt,Qt){if("function"!=typeof Qt&&null!==Qt)throw new TypeError("Class extends value "+String(Qt)+" is not a constructor or null");function Jt(){this.constructor=Vt}At(Vt,Qt),Vt.prototype=null===Qt?Object.create(Qt):(Jt.prototype=Qt.prototype,new Jt)}}(),sn="v1/traces",dn="http://localhost:4318/"+sn,yn=function(At){function Vt(Qt){void 0===Qt&&(Qt={});var Jt=At.call(this,Qt)||this;return Jt._headers=Object.assign(Jt._headers,i.parseKeyPairsIntoRecord((0,n._)().OTEL_EXPORTER_OTLP_TRACES_HEADERS)),Jt}return Ot(Vt,At),Vt.prototype.convert=function(Qt){return function fe(At,Vt){var Qt=function me(At){var Vt,Qt;if(void 0===At)return rt;var Jt=null===(Vt=At.useLongBits)||void 0===Vt||Vt,Zt=null!==(Qt=At.useHex)&&void 0!==Qt&&Qt;return{encodeHrTime:Jt?ue:se,encodeSpanContext:Zt?Ce:J.Q,encodeOptionalSpanContext:Zt?Ce:be}}(Vt);return{resourceSpans:ye(At,Qt)}}(Qt)},Vt.prototype.getDefaultUrl=function(Qt){return"string"==typeof Qt.url?Qt.url:(0,n._)().OTEL_EXPORTER_OTLP_TRACES_ENDPOINT.length>0?function l(At){try{var Vt=new URL(At);return""===Vt.pathname&&(Vt.pathname=Vt.pathname+"/"),Vt.toString()}catch{return h.s.warn("Could not parse export URL: '"+At+"'"),At}}((0,n._)().OTEL_EXPORTER_OTLP_TRACES_ENDPOINT):(0,n._)().OTEL_EXPORTER_OTLP_ENDPOINT.length>0?function m(At,Vt){return At.endsWith("/")||(At+="/"),At+Vt}((0,n._)().OTEL_EXPORTER_OTLP_ENDPOINT,sn):dn},Vt.prototype.getServiceClientType=function(){return R.SPANS},Vt}(ct)},89304:(St,z,s)=>{"use strict";var A,x,P,M,i=s(6350),n=i.Reader,h=i.Writer,C=i.util,S=i.roots.default||(i.roots.default={});S.opentelemetry=((M={}).proto=((P={}).common=((x={}).v1=((A={}).AnyValue=function(){function g(l){if(l)for(var r=Object.keys(l),u=0;u<r.length;++u)null!=l[r[u]]&&(this[r[u]]=l[r[u]])}var m;return g.prototype.stringValue=null,g.prototype.boolValue=null,g.prototype.intValue=null,g.prototype.doubleValue=null,g.prototype.arrayValue=null,g.prototype.kvlistValue=null,g.prototype.bytesValue=null,Object.defineProperty(g.prototype,"value",{get:C.oneOfGetter(m=["stringValue","boolValue","intValue","doubleValue","arrayValue","kvlistValue","bytesValue"]),set:C.oneOfSetter(m)}),g.create=function(r){return new g(r)},g.encode=function(r,u){return u||(u=h.create()),null!=r.stringValue&&Object.hasOwnProperty.call(r,"stringValue")&&u.uint32(10).string(r.stringValue),null!=r.boolValue&&Object.hasOwnProperty.call(r,"boolValue")&&u.uint32(16).bool(r.boolValue),null!=r.intValue&&Object.hasOwnProperty.call(r,"intValue")&&u.uint32(24).int64(r.intValue),null!=r.doubleValue&&Object.hasOwnProperty.call(r,"doubleValue")&&u.uint32(33).double(r.doubleValue),null!=r.arrayValue&&Object.hasOwnProperty.call(r,"arrayValue")&&S.opentelemetry.proto.common.v1.ArrayValue.encode(r.arrayValue,u.uint32(42).fork()).ldelim(),null!=r.kvlistValue&&Object.hasOwnProperty.call(r,"kvlistValue")&&S.opentelemetry.proto.common.v1.KeyValueList.encode(r.kvlistValue,u.uint32(50).fork()).ldelim(),null!=r.bytesValue&&Object.hasOwnProperty.call(r,"bytesValue")&&u.uint32(58).bytes(r.bytesValue),u},g.encodeDelimited=function(r,u){return this.encode(r,u).ldelim()},g.decode=function(r,u){r instanceof n||(r=n.create(r));for(var v=void 0===u?r.len:r.pos+u,E=new S.opentelemetry.proto.common.v1.AnyValue;r.pos<v;){var T=r.uint32();switch(T>>>3){case 1:E.stringValue=r.string();break;case 2:E.boolValue=r.bool();break;case 3:E.intValue=r.int64();break;case 4:E.doubleValue=r.double();break;case 5:E.arrayValue=S.opentelemetry.proto.common.v1.ArrayValue.decode(r,r.uint32());break;case 6:E.kvlistValue=S.opentelemetry.proto.common.v1.KeyValueList.decode(r,r.uint32());break;case 7:E.bytesValue=r.bytes();break;default:r.skipType(7&T)}}return E},g.decodeDelimited=function(r){return r instanceof n||(r=new n(r)),this.decode(r,r.uint32())},g.verify=function(r){if("object"!=typeof r||null===r)return"object expected";var u={};if(null!=r.stringValue&&r.hasOwnProperty("stringValue")&&(u.value=1,!C.isString(r.stringValue)))return"stringValue: string expected";if(null!=r.boolValue&&r.hasOwnProperty("boolValue")){if(1===u.value)return"value: multiple values";if(u.value=1,"boolean"!=typeof r.boolValue)return"boolValue: boolean expected"}if(null!=r.intValue&&r.hasOwnProperty("intValue")){if(1===u.value)return"value: multiple values";if(u.value=1,!(C.isInteger(r.intValue)||r.intValue&&C.isInteger(r.intValue.low)&&C.isInteger(r.intValue.high)))return"intValue: integer|Long expected"}if(null!=r.doubleValue&&r.hasOwnProperty("doubleValue")){if(1===u.value)return"value: multiple values";if(u.value=1,"number"!=typeof r.doubleValue)return"doubleValue: number expected"}if(null!=r.arrayValue&&r.hasOwnProperty("arrayValue")){if(1===u.value)return"value: multiple values";if(u.value=1,v=S.opentelemetry.proto.common.v1.ArrayValue.verify(r.arrayValue))return"arrayValue."+v}if(null!=r.kvlistValue&&r.hasOwnProperty("kvlistValue")){if(1===u.value)return"value: multiple values";var v;if(u.value=1,v=S.opentelemetry.proto.common.v1.KeyValueList.verify(r.kvlistValue))return"kvlistValue."+v}if(null!=r.bytesValue&&r.hasOwnProperty("bytesValue")){if(1===u.value)return"value: multiple values";if(u.value=1,!(r.bytesValue&&"number"==typeof r.bytesValue.length||C.isString(r.bytesValue)))return"bytesValue: buffer expected"}return null},g.fromObject=function(r){if(r instanceof S.opentelemetry.proto.common.v1.AnyValue)return r;var u=new S.opentelemetry.proto.common.v1.AnyValue;if(null!=r.stringValue&&(u.stringValue=String(r.stringValue)),null!=r.boolValue&&(u.boolValue=!!r.boolValue),null!=r.intValue&&(C.Long?(u.intValue=C.Long.fromValue(r.intValue)).unsigned=!1:"string"==typeof r.intValue?u.intValue=parseInt(r.intValue,10):"number"==typeof r.intValue?u.intValue=r.intValue:"object"==typeof r.intValue&&(u.intValue=new C.LongBits(r.intValue.low>>>0,r.intValue.high>>>0).toNumber())),null!=r.doubleValue&&(u.doubleValue=Number(r.doubleValue)),null!=r.arrayValue){if("object"!=typeof r.arrayValue)throw TypeError(".opentelemetry.proto.common.v1.AnyValue.arrayValue: object expected");u.arrayValue=S.opentelemetry.proto.common.v1.ArrayValue.fromObject(r.arrayValue)}if(null!=r.kvlistValue){if("object"!=typeof r.kvlistValue)throw TypeError(".opentelemetry.proto.common.v1.AnyValue.kvlistValue: object expected");u.kvlistValue=S.opentelemetry.proto.common.v1.KeyValueList.fromObject(r.kvlistValue)}return null!=r.bytesValue&&("string"==typeof r.bytesValue?C.base64.decode(r.bytesValue,u.bytesValue=C.newBuffer(C.base64.length(r.bytesValue)),0):r.bytesValue.length>=0&&(u.bytesValue=r.bytesValue)),u},g.toObject=function(r,u){u||(u={});var v={};return null!=r.stringValue&&r.hasOwnProperty("stringValue")&&(v.stringValue=r.stringValue,u.oneofs&&(v.value="stringValue")),null!=r.boolValue&&r.hasOwnProperty("boolValue")&&(v.boolValue=r.boolValue,u.oneofs&&(v.value="boolValue")),null!=r.intValue&&r.hasOwnProperty("intValue")&&(v.intValue="number"==typeof r.intValue?u.longs===String?String(r.intValue):r.intValue:u.longs===String?C.Long.prototype.toString.call(r.intValue):u.longs===Number?new C.LongBits(r.intValue.low>>>0,r.intValue.high>>>0).toNumber():r.intValue,u.oneofs&&(v.value="intValue")),null!=r.doubleValue&&r.hasOwnProperty("doubleValue")&&(v.doubleValue=u.json&&!isFinite(r.doubleValue)?String(r.doubleValue):r.doubleValue,u.oneofs&&(v.value="doubleValue")),null!=r.arrayValue&&r.hasOwnProperty("arrayValue")&&(v.arrayValue=S.opentelemetry.proto.common.v1.ArrayValue.toObject(r.arrayValue,u),u.oneofs&&(v.value="arrayValue")),null!=r.kvlistValue&&r.hasOwnProperty("kvlistValue")&&(v.kvlistValue=S.opentelemetry.proto.common.v1.KeyValueList.toObject(r.kvlistValue,u),u.oneofs&&(v.value="kvlistValue")),null!=r.bytesValue&&r.hasOwnProperty("bytesValue")&&(v.bytesValue=u.bytes===String?C.base64.encode(r.bytesValue,0,r.bytesValue.length):u.bytes===Array?Array.prototype.slice.call(r.bytesValue):r.bytesValue,u.oneofs&&(v.value="bytesValue")),v},g.prototype.toJSON=function(){return this.constructor.toObject(this,i.util.toJSONOptions)},g.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/opentelemetry.proto.common.v1.AnyValue"},g}(),A.ArrayValue=function(){function g(m){if(this.values=[],m)for(var l=Object.keys(m),r=0;r<l.length;++r)null!=m[l[r]]&&(this[l[r]]=m[l[r]])}return g.prototype.values=C.emptyArray,g.create=function(l){return new g(l)},g.encode=function(l,r){if(r||(r=h.create()),null!=l.values&&l.values.length)for(var u=0;u<l.values.length;++u)S.opentelemetry.proto.common.v1.AnyValue.encode(l.values[u],r.uint32(10).fork()).ldelim();return r},g.encodeDelimited=function(l,r){return this.encode(l,r).ldelim()},g.decode=function(l,r){l instanceof n||(l=n.create(l));for(var u=void 0===r?l.len:l.pos+r,v=new S.opentelemetry.proto.common.v1.ArrayValue;l.pos<u;){var E=l.uint32();E>>>3==1?(v.values&&v.values.length||(v.values=[]),v.values.push(S.opentelemetry.proto.common.v1.AnyValue.decode(l,l.uint32()))):l.skipType(7&E)}return v},g.decodeDelimited=function(l){return l instanceof n||(l=new n(l)),this.decode(l,l.uint32())},g.verify=function(l){if("object"!=typeof l||null===l)return"object expected";if(null!=l.values&&l.hasOwnProperty("values")){if(!Array.isArray(l.values))return"values: array expected";for(var r=0;r<l.values.length;++r){var u=S.opentelemetry.proto.common.v1.AnyValue.verify(l.values[r]);if(u)return"values."+u}}return null},g.fromObject=function(l){if(l instanceof S.opentelemetry.proto.common.v1.ArrayValue)return l;var r=new S.opentelemetry.proto.common.v1.ArrayValue;if(l.values){if(!Array.isArray(l.values))throw TypeError(".opentelemetry.proto.common.v1.ArrayValue.values: array expected");r.values=[];for(var u=0;u<l.values.length;++u){if("object"!=typeof l.values[u])throw TypeError(".opentelemetry.proto.common.v1.ArrayValue.values: object expected");r.values[u]=S.opentelemetry.proto.common.v1.AnyValue.fromObject(l.values[u])}}return r},g.toObject=function(l,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.values=[]),l.values&&l.values.length){u.values=[];for(var v=0;v<l.values.length;++v)u.values[v]=S.opentelemetry.proto.common.v1.AnyValue.toObject(l.values[v],r)}return u},g.prototype.toJSON=function(){return this.constructor.toObject(this,i.util.toJSONOptions)},g.getTypeUrl=function(l){return void 0===l&&(l="type.googleapis.com"),l+"/opentelemetry.proto.common.v1.ArrayValue"},g}(),A.KeyValueList=function(){function g(m){if(this.values=[],m)for(var l=Object.keys(m),r=0;r<l.length;++r)null!=m[l[r]]&&(this[l[r]]=m[l[r]])}return g.prototype.values=C.emptyArray,g.create=function(l){return new g(l)},g.encode=function(l,r){if(r||(r=h.create()),null!=l.values&&l.values.length)for(var u=0;u<l.values.length;++u)S.opentelemetry.proto.common.v1.KeyValue.encode(l.values[u],r.uint32(10).fork()).ldelim();return r},g.encodeDelimited=function(l,r){return this.encode(l,r).ldelim()},g.decode=function(l,r){l instanceof n||(l=n.create(l));for(var u=void 0===r?l.len:l.pos+r,v=new S.opentelemetry.proto.common.v1.KeyValueList;l.pos<u;){var E=l.uint32();E>>>3==1?(v.values&&v.values.length||(v.values=[]),v.values.push(S.opentelemetry.proto.common.v1.KeyValue.decode(l,l.uint32()))):l.skipType(7&E)}return v},g.decodeDelimited=function(l){return l instanceof n||(l=new n(l)),this.decode(l,l.uint32())},g.verify=function(l){if("object"!=typeof l||null===l)return"object expected";if(null!=l.values&&l.hasOwnProperty("values")){if(!Array.isArray(l.values))return"values: array expected";for(var r=0;r<l.values.length;++r){var u=S.opentelemetry.proto.common.v1.KeyValue.verify(l.values[r]);if(u)return"values."+u}}return null},g.fromObject=function(l){if(l instanceof S.opentelemetry.proto.common.v1.KeyValueList)return l;var r=new S.opentelemetry.proto.common.v1.KeyValueList;if(l.values){if(!Array.isArray(l.values))throw TypeError(".opentelemetry.proto.common.v1.KeyValueList.values: array expected");r.values=[];for(var u=0;u<l.values.length;++u){if("object"!=typeof l.values[u])throw TypeError(".opentelemetry.proto.common.v1.KeyValueList.values: object expected");r.values[u]=S.opentelemetry.proto.common.v1.KeyValue.fromObject(l.values[u])}}return r},g.toObject=function(l,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.values=[]),l.values&&l.values.length){u.values=[];for(var v=0;v<l.values.length;++v)u.values[v]=S.opentelemetry.proto.common.v1.KeyValue.toObject(l.values[v],r)}return u},g.prototype.toJSON=function(){return this.constructor.toObject(this,i.util.toJSONOptions)},g.getTypeUrl=function(l){return void 0===l&&(l="type.googleapis.com"),l+"/opentelemetry.proto.common.v1.KeyValueList"},g}(),A.KeyValue=function(){function g(m){if(m)for(var l=Object.keys(m),r=0;r<l.length;++r)null!=m[l[r]]&&(this[l[r]]=m[l[r]])}return g.prototype.key=null,g.prototype.value=null,g.create=function(l){return new g(l)},g.encode=function(l,r){return r||(r=h.create()),null!=l.key&&Object.hasOwnProperty.call(l,"key")&&r.uint32(10).string(l.key),null!=l.value&&Object.hasOwnProperty.call(l,"value")&&S.opentelemetry.proto.common.v1.AnyValue.encode(l.value,r.uint32(18).fork()).ldelim(),r},g.encodeDelimited=function(l,r){return this.encode(l,r).ldelim()},g.decode=function(l,r){l instanceof n||(l=n.create(l));for(var u=void 0===r?l.len:l.pos+r,v=new S.opentelemetry.proto.common.v1.KeyValue;l.pos<u;){var E=l.uint32();switch(E>>>3){case 1:v.key=l.string();break;case 2:v.value=S.opentelemetry.proto.common.v1.AnyValue.decode(l,l.uint32());break;default:l.skipType(7&E)}}return v},g.decodeDelimited=function(l){return l instanceof n||(l=new n(l)),this.decode(l,l.uint32())},g.verify=function(l){if("object"!=typeof l||null===l)return"object expected";if(null!=l.key&&l.hasOwnProperty("key")&&!C.isString(l.key))return"key: string expected";if(null!=l.value&&l.hasOwnProperty("value")){var r=S.opentelemetry.proto.common.v1.AnyValue.verify(l.value);if(r)return"value."+r}return null},g.fromObject=function(l){if(l instanceof S.opentelemetry.proto.common.v1.KeyValue)return l;var r=new S.opentelemetry.proto.common.v1.KeyValue;if(null!=l.key&&(r.key=String(l.key)),null!=l.value){if("object"!=typeof l.value)throw TypeError(".opentelemetry.proto.common.v1.KeyValue.value: object expected");r.value=S.opentelemetry.proto.common.v1.AnyValue.fromObject(l.value)}return r},g.toObject=function(l,r){r||(r={});var u={};return r.defaults&&(u.key="",u.value=null),null!=l.key&&l.hasOwnProperty("key")&&(u.key=l.key),null!=l.value&&l.hasOwnProperty("value")&&(u.value=S.opentelemetry.proto.common.v1.AnyValue.toObject(l.value,r)),u},g.prototype.toJSON=function(){return this.constructor.toObject(this,i.util.toJSONOptions)},g.getTypeUrl=function(l){return void 0===l&&(l="type.googleapis.com"),l+"/opentelemetry.proto.common.v1.KeyValue"},g}(),A.InstrumentationScope=function(){function g(m){if(this.attributes=[],m)for(var l=Object.keys(m),r=0;r<l.length;++r)null!=m[l[r]]&&(this[l[r]]=m[l[r]])}return g.prototype.name=null,g.prototype.version=null,g.prototype.attributes=C.emptyArray,g.prototype.droppedAttributesCount=null,g.create=function(l){return new g(l)},g.encode=function(l,r){if(r||(r=h.create()),null!=l.name&&Object.hasOwnProperty.call(l,"name")&&r.uint32(10).string(l.name),null!=l.version&&Object.hasOwnProperty.call(l,"version")&&r.uint32(18).string(l.version),null!=l.attributes&&l.attributes.length)for(var u=0;u<l.attributes.length;++u)S.opentelemetry.proto.common.v1.KeyValue.encode(l.attributes[u],r.uint32(26).fork()).ldelim();return null!=l.droppedAttributesCount&&Object.hasOwnProperty.call(l,"droppedAttributesCount")&&r.uint32(32).uint32(l.droppedAttributesCount),r},g.encodeDelimited=function(l,r){return this.encode(l,r).ldelim()},g.decode=function(l,r){l instanceof n||(l=n.create(l));for(var u=void 0===r?l.len:l.pos+r,v=new S.opentelemetry.proto.common.v1.InstrumentationScope;l.pos<u;){var E=l.uint32();switch(E>>>3){case 1:v.name=l.string();break;case 2:v.version=l.string();break;case 3:v.attributes&&v.attributes.length||(v.attributes=[]),v.attributes.push(S.opentelemetry.proto.common.v1.KeyValue.decode(l,l.uint32()));break;case 4:v.droppedAttributesCount=l.uint32();break;default:l.skipType(7&E)}}return v},g.decodeDelimited=function(l){return l instanceof n||(l=new n(l)),this.decode(l,l.uint32())},g.verify=function(l){if("object"!=typeof l||null===l)return"object expected";if(null!=l.name&&l.hasOwnProperty("name")&&!C.isString(l.name))return"name: string expected";if(null!=l.version&&l.hasOwnProperty("version")&&!C.isString(l.version))return"version: string expected";if(null!=l.attributes&&l.hasOwnProperty("attributes")){if(!Array.isArray(l.attributes))return"attributes: array expected";for(var r=0;r<l.attributes.length;++r){var u=S.opentelemetry.proto.common.v1.KeyValue.verify(l.attributes[r]);if(u)return"attributes."+u}}return null!=l.droppedAttributesCount&&l.hasOwnProperty("droppedAttributesCount")&&!C.isInteger(l.droppedAttributesCount)?"droppedAttributesCount: integer expected":null},g.fromObject=function(l){if(l instanceof S.opentelemetry.proto.common.v1.InstrumentationScope)return l;var r=new S.opentelemetry.proto.common.v1.InstrumentationScope;if(null!=l.name&&(r.name=String(l.name)),null!=l.version&&(r.version=String(l.version)),l.attributes){if(!Array.isArray(l.attributes))throw TypeError(".opentelemetry.proto.common.v1.InstrumentationScope.attributes: array expected");r.attributes=[];for(var u=0;u<l.attributes.length;++u){if("object"!=typeof l.attributes[u])throw TypeError(".opentelemetry.proto.common.v1.InstrumentationScope.attributes: object expected");r.attributes[u]=S.opentelemetry.proto.common.v1.KeyValue.fromObject(l.attributes[u])}}return null!=l.droppedAttributesCount&&(r.droppedAttributesCount=l.droppedAttributesCount>>>0),r},g.toObject=function(l,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.attributes=[]),r.defaults&&(u.name="",u.version="",u.droppedAttributesCount=0),null!=l.name&&l.hasOwnProperty("name")&&(u.name=l.name),null!=l.version&&l.hasOwnProperty("version")&&(u.version=l.version),l.attributes&&l.attributes.length){u.attributes=[];for(var v=0;v<l.attributes.length;++v)u.attributes[v]=S.opentelemetry.proto.common.v1.KeyValue.toObject(l.attributes[v],r)}return null!=l.droppedAttributesCount&&l.hasOwnProperty("droppedAttributesCount")&&(u.droppedAttributesCount=l.droppedAttributesCount),u},g.prototype.toJSON=function(){return this.constructor.toObject(this,i.util.toJSONOptions)},g.getTypeUrl=function(l){return void 0===l&&(l="type.googleapis.com"),l+"/opentelemetry.proto.common.v1.InstrumentationScope"},g}(),A),x),P.resource=function(){var x={};return x.v1=function(){var A={};return A.Resource=function(){function g(m){if(this.attributes=[],m)for(var l=Object.keys(m),r=0;r<l.length;++r)null!=m[l[r]]&&(this[l[r]]=m[l[r]])}return g.prototype.attributes=C.emptyArray,g.prototype.droppedAttributesCount=null,g.create=function(l){return new g(l)},g.encode=function(l,r){if(r||(r=h.create()),null!=l.attributes&&l.attributes.length)for(var u=0;u<l.attributes.length;++u)S.opentelemetry.proto.common.v1.KeyValue.encode(l.attributes[u],r.uint32(10).fork()).ldelim();return null!=l.droppedAttributesCount&&Object.hasOwnProperty.call(l,"droppedAttributesCount")&&r.uint32(16).uint32(l.droppedAttributesCount),r},g.encodeDelimited=function(l,r){return this.encode(l,r).ldelim()},g.decode=function(l,r){l instanceof n||(l=n.create(l));for(var u=void 0===r?l.len:l.pos+r,v=new S.opentelemetry.proto.resource.v1.Resource;l.pos<u;){var E=l.uint32();switch(E>>>3){case 1:v.attributes&&v.attributes.length||(v.attributes=[]),v.attributes.push(S.opentelemetry.proto.common.v1.KeyValue.decode(l,l.uint32()));break;case 2:v.droppedAttributesCount=l.uint32();break;default:l.skipType(7&E)}}return v},g.decodeDelimited=function(l){return l instanceof n||(l=new n(l)),this.decode(l,l.uint32())},g.verify=function(l){if("object"!=typeof l||null===l)return"object expected";if(null!=l.attributes&&l.hasOwnProperty("attributes")){if(!Array.isArray(l.attributes))return"attributes: array expected";for(var r=0;r<l.attributes.length;++r){var u=S.opentelemetry.proto.common.v1.KeyValue.verify(l.attributes[r]);if(u)return"attributes."+u}}return null!=l.droppedAttributesCount&&l.hasOwnProperty("droppedAttributesCount")&&!C.isInteger(l.droppedAttributesCount)?"droppedAttributesCount: integer expected":null},g.fromObject=function(l){if(l instanceof S.opentelemetry.proto.resource.v1.Resource)return l;var r=new S.opentelemetry.proto.resource.v1.Resource;if(l.attributes){if(!Array.isArray(l.attributes))throw TypeError(".opentelemetry.proto.resource.v1.Resource.attributes: array expected");r.attributes=[];for(var u=0;u<l.attributes.length;++u){if("object"!=typeof l.attributes[u])throw TypeError(".opentelemetry.proto.resource.v1.Resource.attributes: object expected");r.attributes[u]=S.opentelemetry.proto.common.v1.KeyValue.fromObject(l.attributes[u])}}return null!=l.droppedAttributesCount&&(r.droppedAttributesCount=l.droppedAttributesCount>>>0),r},g.toObject=function(l,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.attributes=[]),r.defaults&&(u.droppedAttributesCount=0),l.attributes&&l.attributes.length){u.attributes=[];for(var v=0;v<l.attributes.length;++v)u.attributes[v]=S.opentelemetry.proto.common.v1.KeyValue.toObject(l.attributes[v],r)}return null!=l.droppedAttributesCount&&l.hasOwnProperty("droppedAttributesCount")&&(u.droppedAttributesCount=l.droppedAttributesCount),u},g.prototype.toJSON=function(){return this.constructor.toObject(this,i.util.toJSONOptions)},g.getTypeUrl=function(l){return void 0===l&&(l="type.googleapis.com"),l+"/opentelemetry.proto.resource.v1.Resource"},g}(),A}(),x}(),P.trace=function(){var x={};return x.v1=function(){var A={};return A.TracesData=function(){function g(m){if(this.resourceSpans=[],m)for(var l=Object.keys(m),r=0;r<l.length;++r)null!=m[l[r]]&&(this[l[r]]=m[l[r]])}return g.prototype.resourceSpans=C.emptyArray,g.create=function(l){return new g(l)},g.encode=function(l,r){if(r||(r=h.create()),null!=l.resourceSpans&&l.resourceSpans.length)for(var u=0;u<l.resourceSpans.length;++u)S.opentelemetry.proto.trace.v1.ResourceSpans.encode(l.resourceSpans[u],r.uint32(10).fork()).ldelim();return r},g.encodeDelimited=function(l,r){return this.encode(l,r).ldelim()},g.decode=function(l,r){l instanceof n||(l=n.create(l));for(var u=void 0===r?l.len:l.pos+r,v=new S.opentelemetry.proto.trace.v1.TracesData;l.pos<u;){var E=l.uint32();E>>>3==1?(v.resourceSpans&&v.resourceSpans.length||(v.resourceSpans=[]),v.resourceSpans.push(S.opentelemetry.proto.trace.v1.ResourceSpans.decode(l,l.uint32()))):l.skipType(7&E)}return v},g.decodeDelimited=function(l){return l instanceof n||(l=new n(l)),this.decode(l,l.uint32())},g.verify=function(l){if("object"!=typeof l||null===l)return"object expected";if(null!=l.resourceSpans&&l.hasOwnProperty("resourceSpans")){if(!Array.isArray(l.resourceSpans))return"resourceSpans: array expected";for(var r=0;r<l.resourceSpans.length;++r){var u=S.opentelemetry.proto.trace.v1.ResourceSpans.verify(l.resourceSpans[r]);if(u)return"resourceSpans."+u}}return null},g.fromObject=function(l){if(l instanceof S.opentelemetry.proto.trace.v1.TracesData)return l;var r=new S.opentelemetry.proto.trace.v1.TracesData;if(l.resourceSpans){if(!Array.isArray(l.resourceSpans))throw TypeError(".opentelemetry.proto.trace.v1.TracesData.resourceSpans: array expected");r.resourceSpans=[];for(var u=0;u<l.resourceSpans.length;++u){if("object"!=typeof l.resourceSpans[u])throw TypeError(".opentelemetry.proto.trace.v1.TracesData.resourceSpans: object expected");r.resourceSpans[u]=S.opentelemetry.proto.trace.v1.ResourceSpans.fromObject(l.resourceSpans[u])}}return r},g.toObject=function(l,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.resourceSpans=[]),l.resourceSpans&&l.resourceSpans.length){u.resourceSpans=[];for(var v=0;v<l.resourceSpans.length;++v)u.resourceSpans[v]=S.opentelemetry.proto.trace.v1.ResourceSpans.toObject(l.resourceSpans[v],r)}return u},g.prototype.toJSON=function(){return this.constructor.toObject(this,i.util.toJSONOptions)},g.getTypeUrl=function(l){return void 0===l&&(l="type.googleapis.com"),l+"/opentelemetry.proto.trace.v1.TracesData"},g}(),A.ResourceSpans=function(){function g(m){if(this.scopeSpans=[],m)for(var l=Object.keys(m),r=0;r<l.length;++r)null!=m[l[r]]&&(this[l[r]]=m[l[r]])}return g.prototype.resource=null,g.prototype.scopeSpans=C.emptyArray,g.prototype.schemaUrl=null,g.create=function(l){return new g(l)},g.encode=function(l,r){if(r||(r=h.create()),null!=l.resource&&Object.hasOwnProperty.call(l,"resource")&&S.opentelemetry.proto.resource.v1.Resource.encode(l.resource,r.uint32(10).fork()).ldelim(),null!=l.scopeSpans&&l.scopeSpans.length)for(var u=0;u<l.scopeSpans.length;++u)S.opentelemetry.proto.trace.v1.ScopeSpans.encode(l.scopeSpans[u],r.uint32(18).fork()).ldelim();return null!=l.schemaUrl&&Object.hasOwnProperty.call(l,"schemaUrl")&&r.uint32(26).string(l.schemaUrl),r},g.encodeDelimited=function(l,r){return this.encode(l,r).ldelim()},g.decode=function(l,r){l instanceof n||(l=n.create(l));for(var u=void 0===r?l.len:l.pos+r,v=new S.opentelemetry.proto.trace.v1.ResourceSpans;l.pos<u;){var E=l.uint32();switch(E>>>3){case 1:v.resource=S.opentelemetry.proto.resource.v1.Resource.decode(l,l.uint32());break;case 2:v.scopeSpans&&v.scopeSpans.length||(v.scopeSpans=[]),v.scopeSpans.push(S.opentelemetry.proto.trace.v1.ScopeSpans.decode(l,l.uint32()));break;case 3:v.schemaUrl=l.string();break;default:l.skipType(7&E)}}return v},g.decodeDelimited=function(l){return l instanceof n||(l=new n(l)),this.decode(l,l.uint32())},g.verify=function(l){if("object"!=typeof l||null===l)return"object expected";if(null!=l.resource&&l.hasOwnProperty("resource")&&(r=S.opentelemetry.proto.resource.v1.Resource.verify(l.resource)))return"resource."+r;if(null!=l.scopeSpans&&l.hasOwnProperty("scopeSpans")){if(!Array.isArray(l.scopeSpans))return"scopeSpans: array expected";for(var u=0;u<l.scopeSpans.length;++u){var r;if(r=S.opentelemetry.proto.trace.v1.ScopeSpans.verify(l.scopeSpans[u]))return"scopeSpans."+r}}return null!=l.schemaUrl&&l.hasOwnProperty("schemaUrl")&&!C.isString(l.schemaUrl)?"schemaUrl: string expected":null},g.fromObject=function(l){if(l instanceof S.opentelemetry.proto.trace.v1.ResourceSpans)return l;var r=new S.opentelemetry.proto.trace.v1.ResourceSpans;if(null!=l.resource){if("object"!=typeof l.resource)throw TypeError(".opentelemetry.proto.trace.v1.ResourceSpans.resource: object expected");r.resource=S.opentelemetry.proto.resource.v1.Resource.fromObject(l.resource)}if(l.scopeSpans){if(!Array.isArray(l.scopeSpans))throw TypeError(".opentelemetry.proto.trace.v1.ResourceSpans.scopeSpans: array expected");r.scopeSpans=[];for(var u=0;u<l.scopeSpans.length;++u){if("object"!=typeof l.scopeSpans[u])throw TypeError(".opentelemetry.proto.trace.v1.ResourceSpans.scopeSpans: object expected");r.scopeSpans[u]=S.opentelemetry.proto.trace.v1.ScopeSpans.fromObject(l.scopeSpans[u])}}return null!=l.schemaUrl&&(r.schemaUrl=String(l.schemaUrl)),r},g.toObject=function(l,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.scopeSpans=[]),r.defaults&&(u.resource=null,u.schemaUrl=""),null!=l.resource&&l.hasOwnProperty("resource")&&(u.resource=S.opentelemetry.proto.resource.v1.Resource.toObject(l.resource,r)),l.scopeSpans&&l.scopeSpans.length){u.scopeSpans=[];for(var v=0;v<l.scopeSpans.length;++v)u.scopeSpans[v]=S.opentelemetry.proto.trace.v1.ScopeSpans.toObject(l.scopeSpans[v],r)}return null!=l.schemaUrl&&l.hasOwnProperty("schemaUrl")&&(u.schemaUrl=l.schemaUrl),u},g.prototype.toJSON=function(){return this.constructor.toObject(this,i.util.toJSONOptions)},g.getTypeUrl=function(l){return void 0===l&&(l="type.googleapis.com"),l+"/opentelemetry.proto.trace.v1.ResourceSpans"},g}(),A.ScopeSpans=function(){function g(m){if(this.spans=[],m)for(var l=Object.keys(m),r=0;r<l.length;++r)null!=m[l[r]]&&(this[l[r]]=m[l[r]])}return g.prototype.scope=null,g.prototype.spans=C.emptyArray,g.prototype.schemaUrl=null,g.create=function(l){return new g(l)},g.encode=function(l,r){if(r||(r=h.create()),null!=l.scope&&Object.hasOwnProperty.call(l,"scope")&&S.opentelemetry.proto.common.v1.InstrumentationScope.encode(l.scope,r.uint32(10).fork()).ldelim(),null!=l.spans&&l.spans.length)for(var u=0;u<l.spans.length;++u)S.opentelemetry.proto.trace.v1.Span.encode(l.spans[u],r.uint32(18).fork()).ldelim();return null!=l.schemaUrl&&Object.hasOwnProperty.call(l,"schemaUrl")&&r.uint32(26).string(l.schemaUrl),r},g.encodeDelimited=function(l,r){return this.encode(l,r).ldelim()},g.decode=function(l,r){l instanceof n||(l=n.create(l));for(var u=void 0===r?l.len:l.pos+r,v=new S.opentelemetry.proto.trace.v1.ScopeSpans;l.pos<u;){var E=l.uint32();switch(E>>>3){case 1:v.scope=S.opentelemetry.proto.common.v1.InstrumentationScope.decode(l,l.uint32());break;case 2:v.spans&&v.spans.length||(v.spans=[]),v.spans.push(S.opentelemetry.proto.trace.v1.Span.decode(l,l.uint32()));break;case 3:v.schemaUrl=l.string();break;default:l.skipType(7&E)}}return v},g.decodeDelimited=function(l){return l instanceof n||(l=new n(l)),this.decode(l,l.uint32())},g.verify=function(l){if("object"!=typeof l||null===l)return"object expected";if(null!=l.scope&&l.hasOwnProperty("scope")&&(r=S.opentelemetry.proto.common.v1.InstrumentationScope.verify(l.scope)))return"scope."+r;if(null!=l.spans&&l.hasOwnProperty("spans")){if(!Array.isArray(l.spans))return"spans: array expected";for(var u=0;u<l.spans.length;++u){var r;if(r=S.opentelemetry.proto.trace.v1.Span.verify(l.spans[u]))return"spans."+r}}return null!=l.schemaUrl&&l.hasOwnProperty("schemaUrl")&&!C.isString(l.schemaUrl)?"schemaUrl: string expected":null},g.fromObject=function(l){if(l instanceof S.opentelemetry.proto.trace.v1.ScopeSpans)return l;var r=new S.opentelemetry.proto.trace.v1.ScopeSpans;if(null!=l.scope){if("object"!=typeof l.scope)throw TypeError(".opentelemetry.proto.trace.v1.ScopeSpans.scope: object expected");r.scope=S.opentelemetry.proto.common.v1.InstrumentationScope.fromObject(l.scope)}if(l.spans){if(!Array.isArray(l.spans))throw TypeError(".opentelemetry.proto.trace.v1.ScopeSpans.spans: array expected");r.spans=[];for(var u=0;u<l.spans.length;++u){if("object"!=typeof l.spans[u])throw TypeError(".opentelemetry.proto.trace.v1.ScopeSpans.spans: object expected");r.spans[u]=S.opentelemetry.proto.trace.v1.Span.fromObject(l.spans[u])}}return null!=l.schemaUrl&&(r.schemaUrl=String(l.schemaUrl)),r},g.toObject=function(l,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.spans=[]),r.defaults&&(u.scope=null,u.schemaUrl=""),null!=l.scope&&l.hasOwnProperty("scope")&&(u.scope=S.opentelemetry.proto.common.v1.InstrumentationScope.toObject(l.scope,r)),l.spans&&l.spans.length){u.spans=[];for(var v=0;v<l.spans.length;++v)u.spans[v]=S.opentelemetry.proto.trace.v1.Span.toObject(l.spans[v],r)}return null!=l.schemaUrl&&l.hasOwnProperty("schemaUrl")&&(u.schemaUrl=l.schemaUrl),u},g.prototype.toJSON=function(){return this.constructor.toObject(this,i.util.toJSONOptions)},g.getTypeUrl=function(l){return void 0===l&&(l="type.googleapis.com"),l+"/opentelemetry.proto.trace.v1.ScopeSpans"},g}(),A.Span=function(){function g(m){if(this.attributes=[],this.events=[],this.links=[],m)for(var l=Object.keys(m),r=0;r<l.length;++r)null!=m[l[r]]&&(this[l[r]]=m[l[r]])}return g.prototype.traceId=null,g.prototype.spanId=null,g.prototype.traceState=null,g.prototype.parentSpanId=null,g.prototype.name=null,g.prototype.kind=null,g.prototype.startTimeUnixNano=null,g.prototype.endTimeUnixNano=null,g.prototype.attributes=C.emptyArray,g.prototype.droppedAttributesCount=null,g.prototype.events=C.emptyArray,g.prototype.droppedEventsCount=null,g.prototype.links=C.emptyArray,g.prototype.droppedLinksCount=null,g.prototype.status=null,g.create=function(l){return new g(l)},g.encode=function(l,r){if(r||(r=h.create()),null!=l.traceId&&Object.hasOwnProperty.call(l,"traceId")&&r.uint32(10).bytes(l.traceId),null!=l.spanId&&Object.hasOwnProperty.call(l,"spanId")&&r.uint32(18).bytes(l.spanId),null!=l.traceState&&Object.hasOwnProperty.call(l,"traceState")&&r.uint32(26).string(l.traceState),null!=l.parentSpanId&&Object.hasOwnProperty.call(l,"parentSpanId")&&r.uint32(34).bytes(l.parentSpanId),null!=l.name&&Object.hasOwnProperty.call(l,"name")&&r.uint32(42).string(l.name),null!=l.kind&&Object.hasOwnProperty.call(l,"kind")&&r.uint32(48).int32(l.kind),null!=l.startTimeUnixNano&&Object.hasOwnProperty.call(l,"startTimeUnixNano")&&r.uint32(57).fixed64(l.startTimeUnixNano),null!=l.endTimeUnixNano&&Object.hasOwnProperty.call(l,"endTimeUnixNano")&&r.uint32(65).fixed64(l.endTimeUnixNano),null!=l.attributes&&l.attributes.length)for(var u=0;u<l.attributes.length;++u)S.opentelemetry.proto.common.v1.KeyValue.encode(l.attributes[u],r.uint32(74).fork()).ldelim();if(null!=l.droppedAttributesCount&&Object.hasOwnProperty.call(l,"droppedAttributesCount")&&r.uint32(80).uint32(l.droppedAttributesCount),null!=l.events&&l.events.length)for(u=0;u<l.events.length;++u)S.opentelemetry.proto.trace.v1.Span.Event.encode(l.events[u],r.uint32(90).fork()).ldelim();if(null!=l.droppedEventsCount&&Object.hasOwnProperty.call(l,"droppedEventsCount")&&r.uint32(96).uint32(l.droppedEventsCount),null!=l.links&&l.links.length)for(u=0;u<l.links.length;++u)S.opentelemetry.proto.trace.v1.Span.Link.encode(l.links[u],r.uint32(106).fork()).ldelim();return null!=l.droppedLinksCount&&Object.hasOwnProperty.call(l,"droppedLinksCount")&&r.uint32(112).uint32(l.droppedLinksCount),null!=l.status&&Object.hasOwnProperty.call(l,"status")&&S.opentelemetry.proto.trace.v1.Status.encode(l.status,r.uint32(122).fork()).ldelim(),r},g.encodeDelimited=function(l,r){return this.encode(l,r).ldelim()},g.decode=function(l,r){l instanceof n||(l=n.create(l));for(var u=void 0===r?l.len:l.pos+r,v=new S.opentelemetry.proto.trace.v1.Span;l.pos<u;){var E=l.uint32();switch(E>>>3){case 1:v.traceId=l.bytes();break;case 2:v.spanId=l.bytes();break;case 3:v.traceState=l.string();break;case 4:v.parentSpanId=l.bytes();break;case 5:v.name=l.string();break;case 6:v.kind=l.int32();break;case 7:v.startTimeUnixNano=l.fixed64();break;case 8:v.endTimeUnixNano=l.fixed64();break;case 9:v.attributes&&v.attributes.length||(v.attributes=[]),v.attributes.push(S.opentelemetry.proto.common.v1.KeyValue.decode(l,l.uint32()));break;case 10:v.droppedAttributesCount=l.uint32();break;case 11:v.events&&v.events.length||(v.events=[]),v.events.push(S.opentelemetry.proto.trace.v1.Span.Event.decode(l,l.uint32()));break;case 12:v.droppedEventsCount=l.uint32();break;case 13:v.links&&v.links.length||(v.links=[]),v.links.push(S.opentelemetry.proto.trace.v1.Span.Link.decode(l,l.uint32()));break;case 14:v.droppedLinksCount=l.uint32();break;case 15:v.status=S.opentelemetry.proto.trace.v1.Status.decode(l,l.uint32());break;default:l.skipType(7&E)}}return v},g.decodeDelimited=function(l){return l instanceof n||(l=new n(l)),this.decode(l,l.uint32())},g.verify=function(l){if("object"!=typeof l||null===l)return"object expected";if(null!=l.traceId&&l.hasOwnProperty("traceId")&&!(l.traceId&&"number"==typeof l.traceId.length||C.isString(l.traceId)))return"traceId: buffer expected";if(null!=l.spanId&&l.hasOwnProperty("spanId")&&!(l.spanId&&"number"==typeof l.spanId.length||C.isString(l.spanId)))return"spanId: buffer expected";if(null!=l.traceState&&l.hasOwnProperty("traceState")&&!C.isString(l.traceState))return"traceState: string expected";if(null!=l.parentSpanId&&l.hasOwnProperty("parentSpanId")&&!(l.parentSpanId&&"number"==typeof l.parentSpanId.length||C.isString(l.parentSpanId)))return"parentSpanId: buffer expected";if(null!=l.name&&l.hasOwnProperty("name")&&!C.isString(l.name))return"name: string expected";if(null!=l.kind&&l.hasOwnProperty("kind"))switch(l.kind){default:return"kind: enum value expected";case 0:case 1:case 2:case 3:case 4:case 5:}if(null!=l.startTimeUnixNano&&l.hasOwnProperty("startTimeUnixNano")&&!C.isInteger(l.startTimeUnixNano)&&!(l.startTimeUnixNano&&C.isInteger(l.startTimeUnixNano.low)&&C.isInteger(l.startTimeUnixNano.high)))return"startTimeUnixNano: integer|Long expected";if(null!=l.endTimeUnixNano&&l.hasOwnProperty("endTimeUnixNano")&&!C.isInteger(l.endTimeUnixNano)&&!(l.endTimeUnixNano&&C.isInteger(l.endTimeUnixNano.low)&&C.isInteger(l.endTimeUnixNano.high)))return"endTimeUnixNano: integer|Long expected";if(null!=l.attributes&&l.hasOwnProperty("attributes")){if(!Array.isArray(l.attributes))return"attributes: array expected";for(var r=0;r<l.attributes.length;++r)if(u=S.opentelemetry.proto.common.v1.KeyValue.verify(l.attributes[r]))return"attributes."+u}if(null!=l.droppedAttributesCount&&l.hasOwnProperty("droppedAttributesCount")&&!C.isInteger(l.droppedAttributesCount))return"droppedAttributesCount: integer expected";if(null!=l.events&&l.hasOwnProperty("events")){if(!Array.isArray(l.events))return"events: array expected";for(r=0;r<l.events.length;++r)if(u=S.opentelemetry.proto.trace.v1.Span.Event.verify(l.events[r]))return"events."+u}if(null!=l.droppedEventsCount&&l.hasOwnProperty("droppedEventsCount")&&!C.isInteger(l.droppedEventsCount))return"droppedEventsCount: integer expected";if(null!=l.links&&l.hasOwnProperty("links")){if(!Array.isArray(l.links))return"links: array expected";for(r=0;r<l.links.length;++r)if(u=S.opentelemetry.proto.trace.v1.Span.Link.verify(l.links[r]))return"links."+u}return null!=l.droppedLinksCount&&l.hasOwnProperty("droppedLinksCount")&&!C.isInteger(l.droppedLinksCount)?"droppedLinksCount: integer expected":null!=l.status&&l.hasOwnProperty("status")&&(u=S.opentelemetry.proto.trace.v1.Status.verify(l.status))?"status."+u:null;var u},g.fromObject=function(l){if(l instanceof S.opentelemetry.proto.trace.v1.Span)return l;var r=new S.opentelemetry.proto.trace.v1.Span;switch(null!=l.traceId&&("string"==typeof l.traceId?C.base64.decode(l.traceId,r.traceId=C.newBuffer(C.base64.length(l.traceId)),0):l.traceId.length>=0&&(r.traceId=l.traceId)),null!=l.spanId&&("string"==typeof l.spanId?C.base64.decode(l.spanId,r.spanId=C.newBuffer(C.base64.length(l.spanId)),0):l.spanId.length>=0&&(r.spanId=l.spanId)),null!=l.traceState&&(r.traceState=String(l.traceState)),null!=l.parentSpanId&&("string"==typeof l.parentSpanId?C.base64.decode(l.parentSpanId,r.parentSpanId=C.newBuffer(C.base64.length(l.parentSpanId)),0):l.parentSpanId.length>=0&&(r.parentSpanId=l.parentSpanId)),null!=l.name&&(r.name=String(l.name)),l.kind){default:if("number"==typeof l.kind){r.kind=l.kind;break}break;case"SPAN_KIND_UNSPECIFIED":case 0:r.kind=0;break;case"SPAN_KIND_INTERNAL":case 1:r.kind=1;break;case"SPAN_KIND_SERVER":case 2:r.kind=2;break;case"SPAN_KIND_CLIENT":case 3:r.kind=3;break;case"SPAN_KIND_PRODUCER":case 4:r.kind=4;break;case"SPAN_KIND_CONSUMER":case 5:r.kind=5}if(null!=l.startTimeUnixNano&&(C.Long?(r.startTimeUnixNano=C.Long.fromValue(l.startTimeUnixNano)).unsigned=!1:"string"==typeof l.startTimeUnixNano?r.startTimeUnixNano=parseInt(l.startTimeUnixNano,10):"number"==typeof l.startTimeUnixNano?r.startTimeUnixNano=l.startTimeUnixNano:"object"==typeof l.startTimeUnixNano&&(r.startTimeUnixNano=new C.LongBits(l.startTimeUnixNano.low>>>0,l.startTimeUnixNano.high>>>0).toNumber())),null!=l.endTimeUnixNano&&(C.Long?(r.endTimeUnixNano=C.Long.fromValue(l.endTimeUnixNano)).unsigned=!1:"string"==typeof l.endTimeUnixNano?r.endTimeUnixNano=parseInt(l.endTimeUnixNano,10):"number"==typeof l.endTimeUnixNano?r.endTimeUnixNano=l.endTimeUnixNano:"object"==typeof l.endTimeUnixNano&&(r.endTimeUnixNano=new C.LongBits(l.endTimeUnixNano.low>>>0,l.endTimeUnixNano.high>>>0).toNumber())),l.attributes){if(!Array.isArray(l.attributes))throw TypeError(".opentelemetry.proto.trace.v1.Span.attributes: array expected");r.attributes=[];for(var u=0;u<l.attributes.length;++u){if("object"!=typeof l.attributes[u])throw TypeError(".opentelemetry.proto.trace.v1.Span.attributes: object expected");r.attributes[u]=S.opentelemetry.proto.common.v1.KeyValue.fromObject(l.attributes[u])}}if(null!=l.droppedAttributesCount&&(r.droppedAttributesCount=l.droppedAttributesCount>>>0),l.events){if(!Array.isArray(l.events))throw TypeError(".opentelemetry.proto.trace.v1.Span.events: array expected");for(r.events=[],u=0;u<l.events.length;++u){if("object"!=typeof l.events[u])throw TypeError(".opentelemetry.proto.trace.v1.Span.events: object expected");r.events[u]=S.opentelemetry.proto.trace.v1.Span.Event.fromObject(l.events[u])}}if(null!=l.droppedEventsCount&&(r.droppedEventsCount=l.droppedEventsCount>>>0),l.links){if(!Array.isArray(l.links))throw TypeError(".opentelemetry.proto.trace.v1.Span.links: array expected");for(r.links=[],u=0;u<l.links.length;++u){if("object"!=typeof l.links[u])throw TypeError(".opentelemetry.proto.trace.v1.Span.links: object expected");r.links[u]=S.opentelemetry.proto.trace.v1.Span.Link.fromObject(l.links[u])}}if(null!=l.droppedLinksCount&&(r.droppedLinksCount=l.droppedLinksCount>>>0),null!=l.status){if("object"!=typeof l.status)throw TypeError(".opentelemetry.proto.trace.v1.Span.status: object expected");r.status=S.opentelemetry.proto.trace.v1.Status.fromObject(l.status)}return r},g.toObject=function(l,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.attributes=[],u.events=[],u.links=[]),r.defaults){if(r.bytes===String?u.traceId="":(u.traceId=[],r.bytes!==Array&&(u.traceId=C.newBuffer(u.traceId))),r.bytes===String?u.spanId="":(u.spanId=[],r.bytes!==Array&&(u.spanId=C.newBuffer(u.spanId))),u.traceState="",r.bytes===String?u.parentSpanId="":(u.parentSpanId=[],r.bytes!==Array&&(u.parentSpanId=C.newBuffer(u.parentSpanId))),u.name="",u.kind=r.enums===String?"SPAN_KIND_UNSPECIFIED":0,C.Long){var v=new C.Long(0,0,!1);u.startTimeUnixNano=r.longs===String?v.toString():r.longs===Number?v.toNumber():v}else u.startTimeUnixNano=r.longs===String?"0":0;C.Long?(v=new C.Long(0,0,!1),u.endTimeUnixNano=r.longs===String?v.toString():r.longs===Number?v.toNumber():v):u.endTimeUnixNano=r.longs===String?"0":0,u.droppedAttributesCount=0,u.droppedEventsCount=0,u.droppedLinksCount=0,u.status=null}if(null!=l.traceId&&l.hasOwnProperty("traceId")&&(u.traceId=r.bytes===String?C.base64.encode(l.traceId,0,l.traceId.length):r.bytes===Array?Array.prototype.slice.call(l.traceId):l.traceId),null!=l.spanId&&l.hasOwnProperty("spanId")&&(u.spanId=r.bytes===String?C.base64.encode(l.spanId,0,l.spanId.length):r.bytes===Array?Array.prototype.slice.call(l.spanId):l.spanId),null!=l.traceState&&l.hasOwnProperty("traceState")&&(u.traceState=l.traceState),null!=l.parentSpanId&&l.hasOwnProperty("parentSpanId")&&(u.parentSpanId=r.bytes===String?C.base64.encode(l.parentSpanId,0,l.parentSpanId.length):r.bytes===Array?Array.prototype.slice.call(l.parentSpanId):l.parentSpanId),null!=l.name&&l.hasOwnProperty("name")&&(u.name=l.name),null!=l.kind&&l.hasOwnProperty("kind")&&(u.kind=r.enums===String?void 0===S.opentelemetry.proto.trace.v1.Span.SpanKind[l.kind]?l.kind:S.opentelemetry.proto.trace.v1.Span.SpanKind[l.kind]:l.kind),null!=l.startTimeUnixNano&&l.hasOwnProperty("startTimeUnixNano")&&(u.startTimeUnixNano="number"==typeof l.startTimeUnixNano?r.longs===String?String(l.startTimeUnixNano):l.startTimeUnixNano:r.longs===String?C.Long.prototype.toString.call(l.startTimeUnixNano):r.longs===Number?new C.LongBits(l.startTimeUnixNano.low>>>0,l.startTimeUnixNano.high>>>0).toNumber():l.startTimeUnixNano),null!=l.endTimeUnixNano&&l.hasOwnProperty("endTimeUnixNano")&&(u.endTimeUnixNano="number"==typeof l.endTimeUnixNano?r.longs===String?String(l.endTimeUnixNano):l.endTimeUnixNano:r.longs===String?C.Long.prototype.toString.call(l.endTimeUnixNano):r.longs===Number?new C.LongBits(l.endTimeUnixNano.low>>>0,l.endTimeUnixNano.high>>>0).toNumber():l.endTimeUnixNano),l.attributes&&l.attributes.length){u.attributes=[];for(var E=0;E<l.attributes.length;++E)u.attributes[E]=S.opentelemetry.proto.common.v1.KeyValue.toObject(l.attributes[E],r)}if(null!=l.droppedAttributesCount&&l.hasOwnProperty("droppedAttributesCount")&&(u.droppedAttributesCount=l.droppedAttributesCount),l.events&&l.events.length)for(u.events=[],E=0;E<l.events.length;++E)u.events[E]=S.opentelemetry.proto.trace.v1.Span.Event.toObject(l.events[E],r);if(null!=l.droppedEventsCount&&l.hasOwnProperty("droppedEventsCount")&&(u.droppedEventsCount=l.droppedEventsCount),l.links&&l.links.length)for(u.links=[],E=0;E<l.links.length;++E)u.links[E]=S.opentelemetry.proto.trace.v1.Span.Link.toObject(l.links[E],r);return null!=l.droppedLinksCount&&l.hasOwnProperty("droppedLinksCount")&&(u.droppedLinksCount=l.droppedLinksCount),null!=l.status&&l.hasOwnProperty("status")&&(u.status=S.opentelemetry.proto.trace.v1.Status.toObject(l.status,r)),u},g.prototype.toJSON=function(){return this.constructor.toObject(this,i.util.toJSONOptions)},g.getTypeUrl=function(l){return void 0===l&&(l="type.googleapis.com"),l+"/opentelemetry.proto.trace.v1.Span"},g.SpanKind=(m={},(l=Object.create(m))[m[0]="SPAN_KIND_UNSPECIFIED"]=0,l[m[1]="SPAN_KIND_INTERNAL"]=1,l[m[2]="SPAN_KIND_SERVER"]=2,l[m[3]="SPAN_KIND_CLIENT"]=3,l[m[4]="SPAN_KIND_PRODUCER"]=4,l[m[5]="SPAN_KIND_CONSUMER"]=5,l),g.Event=function(){function m(l){if(this.attributes=[],l)for(var r=Object.keys(l),u=0;u<r.length;++u)null!=l[r[u]]&&(this[r[u]]=l[r[u]])}return m.prototype.timeUnixNano=null,m.prototype.name=null,m.prototype.attributes=C.emptyArray,m.prototype.droppedAttributesCount=null,m.create=function(r){return new m(r)},m.encode=function(r,u){if(u||(u=h.create()),null!=r.timeUnixNano&&Object.hasOwnProperty.call(r,"timeUnixNano")&&u.uint32(9).fixed64(r.timeUnixNano),null!=r.name&&Object.hasOwnProperty.call(r,"name")&&u.uint32(18).string(r.name),null!=r.attributes&&r.attributes.length)for(var v=0;v<r.attributes.length;++v)S.opentelemetry.proto.common.v1.KeyValue.encode(r.attributes[v],u.uint32(26).fork()).ldelim();return null!=r.droppedAttributesCount&&Object.hasOwnProperty.call(r,"droppedAttributesCount")&&u.uint32(32).uint32(r.droppedAttributesCount),u},m.encodeDelimited=function(r,u){return this.encode(r,u).ldelim()},m.decode=function(r,u){r instanceof n||(r=n.create(r));for(var v=void 0===u?r.len:r.pos+u,E=new S.opentelemetry.proto.trace.v1.Span.Event;r.pos<v;){var T=r.uint32();switch(T>>>3){case 1:E.timeUnixNano=r.fixed64();break;case 2:E.name=r.string();break;case 3:E.attributes&&E.attributes.length||(E.attributes=[]),E.attributes.push(S.opentelemetry.proto.common.v1.KeyValue.decode(r,r.uint32()));break;case 4:E.droppedAttributesCount=r.uint32();break;default:r.skipType(7&T)}}return E},m.decodeDelimited=function(r){return r instanceof n||(r=new n(r)),this.decode(r,r.uint32())},m.verify=function(r){if("object"!=typeof r||null===r)return"object expected";if(null!=r.timeUnixNano&&r.hasOwnProperty("timeUnixNano")&&!C.isInteger(r.timeUnixNano)&&!(r.timeUnixNano&&C.isInteger(r.timeUnixNano.low)&&C.isInteger(r.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(null!=r.name&&r.hasOwnProperty("name")&&!C.isString(r.name))return"name: string expected";if(null!=r.attributes&&r.hasOwnProperty("attributes")){if(!Array.isArray(r.attributes))return"attributes: array expected";for(var u=0;u<r.attributes.length;++u){var v=S.opentelemetry.proto.common.v1.KeyValue.verify(r.attributes[u]);if(v)return"attributes."+v}}return null!=r.droppedAttributesCount&&r.hasOwnProperty("droppedAttributesCount")&&!C.isInteger(r.droppedAttributesCount)?"droppedAttributesCount: integer expected":null},m.fromObject=function(r){if(r instanceof S.opentelemetry.proto.trace.v1.Span.Event)return r;var u=new S.opentelemetry.proto.trace.v1.Span.Event;if(null!=r.timeUnixNano&&(C.Long?(u.timeUnixNano=C.Long.fromValue(r.timeUnixNano)).unsigned=!1:"string"==typeof r.timeUnixNano?u.timeUnixNano=parseInt(r.timeUnixNano,10):"number"==typeof r.timeUnixNano?u.timeUnixNano=r.timeUnixNano:"object"==typeof r.timeUnixNano&&(u.timeUnixNano=new C.LongBits(r.timeUnixNano.low>>>0,r.timeUnixNano.high>>>0).toNumber())),null!=r.name&&(u.name=String(r.name)),r.attributes){if(!Array.isArray(r.attributes))throw TypeError(".opentelemetry.proto.trace.v1.Span.Event.attributes: array expected");u.attributes=[];for(var v=0;v<r.attributes.length;++v){if("object"!=typeof r.attributes[v])throw TypeError(".opentelemetry.proto.trace.v1.Span.Event.attributes: object expected");u.attributes[v]=S.opentelemetry.proto.common.v1.KeyValue.fromObject(r.attributes[v])}}return null!=r.droppedAttributesCount&&(u.droppedAttributesCount=r.droppedAttributesCount>>>0),u},m.toObject=function(r,u){u||(u={});var v={};if((u.arrays||u.defaults)&&(v.attributes=[]),u.defaults){if(C.Long){var E=new C.Long(0,0,!1);v.timeUnixNano=u.longs===String?E.toString():u.longs===Number?E.toNumber():E}else v.timeUnixNano=u.longs===String?"0":0;v.name="",v.droppedAttributesCount=0}if(null!=r.timeUnixNano&&r.hasOwnProperty("timeUnixNano")&&(v.timeUnixNano="number"==typeof r.timeUnixNano?u.longs===String?String(r.timeUnixNano):r.timeUnixNano:u.longs===String?C.Long.prototype.toString.call(r.timeUnixNano):u.longs===Number?new C.LongBits(r.timeUnixNano.low>>>0,r.timeUnixNano.high>>>0).toNumber():r.timeUnixNano),null!=r.name&&r.hasOwnProperty("name")&&(v.name=r.name),r.attributes&&r.attributes.length){v.attributes=[];for(var T=0;T<r.attributes.length;++T)v.attributes[T]=S.opentelemetry.proto.common.v1.KeyValue.toObject(r.attributes[T],u)}return null!=r.droppedAttributesCount&&r.hasOwnProperty("droppedAttributesCount")&&(v.droppedAttributesCount=r.droppedAttributesCount),v},m.prototype.toJSON=function(){return this.constructor.toObject(this,i.util.toJSONOptions)},m.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/opentelemetry.proto.trace.v1.Span.Event"},m}(),g.Link=function(){function m(l){if(this.attributes=[],l)for(var r=Object.keys(l),u=0;u<r.length;++u)null!=l[r[u]]&&(this[r[u]]=l[r[u]])}return m.prototype.traceId=null,m.prototype.spanId=null,m.prototype.traceState=null,m.prototype.attributes=C.emptyArray,m.prototype.droppedAttributesCount=null,m.create=function(r){return new m(r)},m.encode=function(r,u){if(u||(u=h.create()),null!=r.traceId&&Object.hasOwnProperty.call(r,"traceId")&&u.uint32(10).bytes(r.traceId),null!=r.spanId&&Object.hasOwnProperty.call(r,"spanId")&&u.uint32(18).bytes(r.spanId),null!=r.traceState&&Object.hasOwnProperty.call(r,"traceState")&&u.uint32(26).string(r.traceState),null!=r.attributes&&r.attributes.length)for(var v=0;v<r.attributes.length;++v)S.opentelemetry.proto.common.v1.KeyValue.encode(r.attributes[v],u.uint32(34).fork()).ldelim();return null!=r.droppedAttributesCount&&Object.hasOwnProperty.call(r,"droppedAttributesCount")&&u.uint32(40).uint32(r.droppedAttributesCount),u},m.encodeDelimited=function(r,u){return this.encode(r,u).ldelim()},m.decode=function(r,u){r instanceof n||(r=n.create(r));for(var v=void 0===u?r.len:r.pos+u,E=new S.opentelemetry.proto.trace.v1.Span.Link;r.pos<v;){var T=r.uint32();switch(T>>>3){case 1:E.traceId=r.bytes();break;case 2:E.spanId=r.bytes();break;case 3:E.traceState=r.string();break;case 4:E.attributes&&E.attributes.length||(E.attributes=[]),E.attributes.push(S.opentelemetry.proto.common.v1.KeyValue.decode(r,r.uint32()));break;case 5:E.droppedAttributesCount=r.uint32();break;default:r.skipType(7&T)}}return E},m.decodeDelimited=function(r){return r instanceof n||(r=new n(r)),this.decode(r,r.uint32())},m.verify=function(r){if("object"!=typeof r||null===r)return"object expected";if(null!=r.traceId&&r.hasOwnProperty("traceId")&&!(r.traceId&&"number"==typeof r.traceId.length||C.isString(r.traceId)))return"traceId: buffer expected";if(null!=r.spanId&&r.hasOwnProperty("spanId")&&!(r.spanId&&"number"==typeof r.spanId.length||C.isString(r.spanId)))return"spanId: buffer expected";if(null!=r.traceState&&r.hasOwnProperty("traceState")&&!C.isString(r.traceState))return"traceState: string expected";if(null!=r.attributes&&r.hasOwnProperty("attributes")){if(!Array.isArray(r.attributes))return"attributes: array expected";for(var u=0;u<r.attributes.length;++u){var v=S.opentelemetry.proto.common.v1.KeyValue.verify(r.attributes[u]);if(v)return"attributes."+v}}return null!=r.droppedAttributesCount&&r.hasOwnProperty("droppedAttributesCount")&&!C.isInteger(r.droppedAttributesCount)?"droppedAttributesCount: integer expected":null},m.fromObject=function(r){if(r instanceof S.opentelemetry.proto.trace.v1.Span.Link)return r;var u=new S.opentelemetry.proto.trace.v1.Span.Link;if(null!=r.traceId&&("string"==typeof r.traceId?C.base64.decode(r.traceId,u.traceId=C.newBuffer(C.base64.length(r.traceId)),0):r.traceId.length>=0&&(u.traceId=r.traceId)),null!=r.spanId&&("string"==typeof r.spanId?C.base64.decode(r.spanId,u.spanId=C.newBuffer(C.base64.length(r.spanId)),0):r.spanId.length>=0&&(u.spanId=r.spanId)),null!=r.traceState&&(u.traceState=String(r.traceState)),r.attributes){if(!Array.isArray(r.attributes))throw TypeError(".opentelemetry.proto.trace.v1.Span.Link.attributes: array expected");u.attributes=[];for(var v=0;v<r.attributes.length;++v){if("object"!=typeof r.attributes[v])throw TypeError(".opentelemetry.proto.trace.v1.Span.Link.attributes: object expected");u.attributes[v]=S.opentelemetry.proto.common.v1.KeyValue.fromObject(r.attributes[v])}}return null!=r.droppedAttributesCount&&(u.droppedAttributesCount=r.droppedAttributesCount>>>0),u},m.toObject=function(r,u){u||(u={});var v={};if((u.arrays||u.defaults)&&(v.attributes=[]),u.defaults&&(u.bytes===String?v.traceId="":(v.traceId=[],u.bytes!==Array&&(v.traceId=C.newBuffer(v.traceId))),u.bytes===String?v.spanId="":(v.spanId=[],u.bytes!==Array&&(v.spanId=C.newBuffer(v.spanId))),v.traceState="",v.droppedAttributesCount=0),null!=r.traceId&&r.hasOwnProperty("traceId")&&(v.traceId=u.bytes===String?C.base64.encode(r.traceId,0,r.traceId.length):u.bytes===Array?Array.prototype.slice.call(r.traceId):r.traceId),null!=r.spanId&&r.hasOwnProperty("spanId")&&(v.spanId=u.bytes===String?C.base64.encode(r.spanId,0,r.spanId.length):u.bytes===Array?Array.prototype.slice.call(r.spanId):r.spanId),null!=r.traceState&&r.hasOwnProperty("traceState")&&(v.traceState=r.traceState),r.attributes&&r.attributes.length){v.attributes=[];for(var E=0;E<r.attributes.length;++E)v.attributes[E]=S.opentelemetry.proto.common.v1.KeyValue.toObject(r.attributes[E],u)}return null!=r.droppedAttributesCount&&r.hasOwnProperty("droppedAttributesCount")&&(v.droppedAttributesCount=r.droppedAttributesCount),v},m.prototype.toJSON=function(){return this.constructor.toObject(this,i.util.toJSONOptions)},m.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/opentelemetry.proto.trace.v1.Span.Link"},m}(),g;var m,l}(),A.Status=function(){function g(m){if(m)for(var l=Object.keys(m),r=0;r<l.length;++r)null!=m[l[r]]&&(this[l[r]]=m[l[r]])}return g.prototype.message=null,g.prototype.code=null,g.create=function(l){return new g(l)},g.encode=function(l,r){return r||(r=h.create()),null!=l.message&&Object.hasOwnProperty.call(l,"message")&&r.uint32(18).string(l.message),null!=l.code&&Object.hasOwnProperty.call(l,"code")&&r.uint32(24).int32(l.code),r},g.encodeDelimited=function(l,r){return this.encode(l,r).ldelim()},g.decode=function(l,r){l instanceof n||(l=n.create(l));for(var u=void 0===r?l.len:l.pos+r,v=new S.opentelemetry.proto.trace.v1.Status;l.pos<u;){var E=l.uint32();switch(E>>>3){case 2:v.message=l.string();break;case 3:v.code=l.int32();break;default:l.skipType(7&E)}}return v},g.decodeDelimited=function(l){return l instanceof n||(l=new n(l)),this.decode(l,l.uint32())},g.verify=function(l){if("object"!=typeof l||null===l)return"object expected";if(null!=l.message&&l.hasOwnProperty("message")&&!C.isString(l.message))return"message: string expected";if(null!=l.code&&l.hasOwnProperty("code"))switch(l.code){default:return"code: enum value expected";case 0:case 1:case 2:}return null},g.fromObject=function(l){if(l instanceof S.opentelemetry.proto.trace.v1.Status)return l;var r=new S.opentelemetry.proto.trace.v1.Status;switch(null!=l.message&&(r.message=String(l.message)),l.code){default:if("number"==typeof l.code){r.code=l.code;break}break;case"STATUS_CODE_UNSET":case 0:r.code=0;break;case"STATUS_CODE_OK":case 1:r.code=1;break;case"STATUS_CODE_ERROR":case 2:r.code=2}return r},g.toObject=function(l,r){r||(r={});var u={};return r.defaults&&(u.message="",u.code=r.enums===String?"STATUS_CODE_UNSET":0),null!=l.message&&l.hasOwnProperty("message")&&(u.message=l.message),null!=l.code&&l.hasOwnProperty("code")&&(u.code=r.enums===String?void 0===S.opentelemetry.proto.trace.v1.Status.StatusCode[l.code]?l.code:S.opentelemetry.proto.trace.v1.Status.StatusCode[l.code]:l.code),u},g.prototype.toJSON=function(){return this.constructor.toObject(this,i.util.toJSONOptions)},g.getTypeUrl=function(l){return void 0===l&&(l="type.googleapis.com"),l+"/opentelemetry.proto.trace.v1.Status"},g.StatusCode=(m={},(l=Object.create(m))[m[0]="STATUS_CODE_UNSET"]=0,l[m[1]="STATUS_CODE_OK"]=1,l[m[2]="STATUS_CODE_ERROR"]=2,l),g;var m,l}(),A}(),x}(),P.collector=function(){var x={};return x.trace=function(){var g,A={};return A.v1=((g={}).TraceService=function(){function m(l,r,u){i.rpc.Service.call(this,l,r,u)}return(m.prototype=Object.create(i.rpc.Service.prototype)).constructor=m,m.create=function(r,u,v){return new this(r,u,v)},Object.defineProperty(m.prototype.export=function l(r,u){return this.rpcCall(l,S.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest,S.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse,r,u)},"name",{value:"Export"}),m}(),g.ExportTraceServiceRequest=function(){function m(l){if(this.resourceSpans=[],l)for(var r=Object.keys(l),u=0;u<r.length;++u)null!=l[r[u]]&&(this[r[u]]=l[r[u]])}return m.prototype.resourceSpans=C.emptyArray,m.create=function(r){return new m(r)},m.encode=function(r,u){if(u||(u=h.create()),null!=r.resourceSpans&&r.resourceSpans.length)for(var v=0;v<r.resourceSpans.length;++v)S.opentelemetry.proto.trace.v1.ResourceSpans.encode(r.resourceSpans[v],u.uint32(10).fork()).ldelim();return u},m.encodeDelimited=function(r,u){return this.encode(r,u).ldelim()},m.decode=function(r,u){r instanceof n||(r=n.create(r));for(var v=void 0===u?r.len:r.pos+u,E=new S.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest;r.pos<v;){var T=r.uint32();T>>>3==1?(E.resourceSpans&&E.resourceSpans.length||(E.resourceSpans=[]),E.resourceSpans.push(S.opentelemetry.proto.trace.v1.ResourceSpans.decode(r,r.uint32()))):r.skipType(7&T)}return E},m.decodeDelimited=function(r){return r instanceof n||(r=new n(r)),this.decode(r,r.uint32())},m.verify=function(r){if("object"!=typeof r||null===r)return"object expected";if(null!=r.resourceSpans&&r.hasOwnProperty("resourceSpans")){if(!Array.isArray(r.resourceSpans))return"resourceSpans: array expected";for(var u=0;u<r.resourceSpans.length;++u){var v=S.opentelemetry.proto.trace.v1.ResourceSpans.verify(r.resourceSpans[u]);if(v)return"resourceSpans."+v}}return null},m.fromObject=function(r){if(r instanceof S.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest)return r;var u=new S.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest;if(r.resourceSpans){if(!Array.isArray(r.resourceSpans))throw TypeError(".opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest.resourceSpans: array expected");u.resourceSpans=[];for(var v=0;v<r.resourceSpans.length;++v){if("object"!=typeof r.resourceSpans[v])throw TypeError(".opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest.resourceSpans: object expected");u.resourceSpans[v]=S.opentelemetry.proto.trace.v1.ResourceSpans.fromObject(r.resourceSpans[v])}}return u},m.toObject=function(r,u){u||(u={});var v={};if((u.arrays||u.defaults)&&(v.resourceSpans=[]),r.resourceSpans&&r.resourceSpans.length){v.resourceSpans=[];for(var E=0;E<r.resourceSpans.length;++E)v.resourceSpans[E]=S.opentelemetry.proto.trace.v1.ResourceSpans.toObject(r.resourceSpans[E],u)}return v},m.prototype.toJSON=function(){return this.constructor.toObject(this,i.util.toJSONOptions)},m.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest"},m}(),g.ExportTraceServiceResponse=function(){function m(l){if(l)for(var r=Object.keys(l),u=0;u<r.length;++u)null!=l[r[u]]&&(this[r[u]]=l[r[u]])}return m.prototype.partialSuccess=null,m.create=function(r){return new m(r)},m.encode=function(r,u){return u||(u=h.create()),null!=r.partialSuccess&&Object.hasOwnProperty.call(r,"partialSuccess")&&S.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.encode(r.partialSuccess,u.uint32(10).fork()).ldelim(),u},m.encodeDelimited=function(r,u){return this.encode(r,u).ldelim()},m.decode=function(r,u){r instanceof n||(r=n.create(r));for(var v=void 0===u?r.len:r.pos+u,E=new S.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse;r.pos<v;){var T=r.uint32();T>>>3==1?E.partialSuccess=S.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.decode(r,r.uint32()):r.skipType(7&T)}return E},m.decodeDelimited=function(r){return r instanceof n||(r=new n(r)),this.decode(r,r.uint32())},m.verify=function(r){if("object"!=typeof r||null===r)return"object expected";if(null!=r.partialSuccess&&r.hasOwnProperty("partialSuccess")){var u=S.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.verify(r.partialSuccess);if(u)return"partialSuccess."+u}return null},m.fromObject=function(r){if(r instanceof S.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse)return r;var u=new S.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse;if(null!=r.partialSuccess){if("object"!=typeof r.partialSuccess)throw TypeError(".opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse.partialSuccess: object expected");u.partialSuccess=S.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.fromObject(r.partialSuccess)}return u},m.toObject=function(r,u){u||(u={});var v={};return u.defaults&&(v.partialSuccess=null),null!=r.partialSuccess&&r.hasOwnProperty("partialSuccess")&&(v.partialSuccess=S.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.toObject(r.partialSuccess,u)),v},m.prototype.toJSON=function(){return this.constructor.toObject(this,i.util.toJSONOptions)},m.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse"},m}(),g.ExportTracePartialSuccess=function(){function m(l){if(l)for(var r=Object.keys(l),u=0;u<r.length;++u)null!=l[r[u]]&&(this[r[u]]=l[r[u]])}return m.prototype.rejectedSpans=null,m.prototype.errorMessage=null,m.create=function(r){return new m(r)},m.encode=function(r,u){return u||(u=h.create()),null!=r.rejectedSpans&&Object.hasOwnProperty.call(r,"rejectedSpans")&&u.uint32(8).int64(r.rejectedSpans),null!=r.errorMessage&&Object.hasOwnProperty.call(r,"errorMessage")&&u.uint32(18).string(r.errorMessage),u},m.encodeDelimited=function(r,u){return this.encode(r,u).ldelim()},m.decode=function(r,u){r instanceof n||(r=n.create(r));for(var v=void 0===u?r.len:r.pos+u,E=new S.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess;r.pos<v;){var T=r.uint32();switch(T>>>3){case 1:E.rejectedSpans=r.int64();break;case 2:E.errorMessage=r.string();break;default:r.skipType(7&T)}}return E},m.decodeDelimited=function(r){return r instanceof n||(r=new n(r)),this.decode(r,r.uint32())},m.verify=function(r){return"object"!=typeof r||null===r?"object expected":null==r.rejectedSpans||!r.hasOwnProperty("rejectedSpans")||C.isInteger(r.rejectedSpans)||r.rejectedSpans&&C.isInteger(r.rejectedSpans.low)&&C.isInteger(r.rejectedSpans.high)?null!=r.errorMessage&&r.hasOwnProperty("errorMessage")&&!C.isString(r.errorMessage)?"errorMessage: string expected":null:"rejectedSpans: integer|Long expected"},m.fromObject=function(r){if(r instanceof S.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess)return r;var u=new S.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess;return null!=r.rejectedSpans&&(C.Long?(u.rejectedSpans=C.Long.fromValue(r.rejectedSpans)).unsigned=!1:"string"==typeof r.rejectedSpans?u.rejectedSpans=parseInt(r.rejectedSpans,10):"number"==typeof r.rejectedSpans?u.rejectedSpans=r.rejectedSpans:"object"==typeof r.rejectedSpans&&(u.rejectedSpans=new C.LongBits(r.rejectedSpans.low>>>0,r.rejectedSpans.high>>>0).toNumber())),null!=r.errorMessage&&(u.errorMessage=String(r.errorMessage)),u},m.toObject=function(r,u){u||(u={});var v={};if(u.defaults){if(C.Long){var E=new C.Long(0,0,!1);v.rejectedSpans=u.longs===String?E.toString():u.longs===Number?E.toNumber():E}else v.rejectedSpans=u.longs===String?"0":0;v.errorMessage=""}return null!=r.rejectedSpans&&r.hasOwnProperty("rejectedSpans")&&(v.rejectedSpans="number"==typeof r.rejectedSpans?u.longs===String?String(r.rejectedSpans):r.rejectedSpans:u.longs===String?C.Long.prototype.toString.call(r.rejectedSpans):u.longs===Number?new C.LongBits(r.rejectedSpans.low>>>0,r.rejectedSpans.high>>>0).toNumber():r.rejectedSpans),null!=r.errorMessage&&r.hasOwnProperty("errorMessage")&&(v.errorMessage=r.errorMessage),v},m.prototype.toJSON=function(){return this.constructor.toObject(this,i.util.toJSONOptions)},m.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess"},m}(),g),A}(),x.metrics=function(){var g,A={};return A.v1=((g={}).MetricsService=function(){function m(l,r,u){i.rpc.Service.call(this,l,r,u)}return(m.prototype=Object.create(i.rpc.Service.prototype)).constructor=m,m.create=function(r,u,v){return new this(r,u,v)},Object.defineProperty(m.prototype.export=function l(r,u){return this.rpcCall(l,S.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest,S.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse,r,u)},"name",{value:"Export"}),m}(),g.ExportMetricsServiceRequest=function(){function m(l){if(this.resourceMetrics=[],l)for(var r=Object.keys(l),u=0;u<r.length;++u)null!=l[r[u]]&&(this[r[u]]=l[r[u]])}return m.prototype.resourceMetrics=C.emptyArray,m.create=function(r){return new m(r)},m.encode=function(r,u){if(u||(u=h.create()),null!=r.resourceMetrics&&r.resourceMetrics.length)for(var v=0;v<r.resourceMetrics.length;++v)S.opentelemetry.proto.metrics.v1.ResourceMetrics.encode(r.resourceMetrics[v],u.uint32(10).fork()).ldelim();return u},m.encodeDelimited=function(r,u){return this.encode(r,u).ldelim()},m.decode=function(r,u){r instanceof n||(r=n.create(r));for(var v=void 0===u?r.len:r.pos+u,E=new S.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest;r.pos<v;){var T=r.uint32();T>>>3==1?(E.resourceMetrics&&E.resourceMetrics.length||(E.resourceMetrics=[]),E.resourceMetrics.push(S.opentelemetry.proto.metrics.v1.ResourceMetrics.decode(r,r.uint32()))):r.skipType(7&T)}return E},m.decodeDelimited=function(r){return r instanceof n||(r=new n(r)),this.decode(r,r.uint32())},m.verify=function(r){if("object"!=typeof r||null===r)return"object expected";if(null!=r.resourceMetrics&&r.hasOwnProperty("resourceMetrics")){if(!Array.isArray(r.resourceMetrics))return"resourceMetrics: array expected";for(var u=0;u<r.resourceMetrics.length;++u){var v=S.opentelemetry.proto.metrics.v1.ResourceMetrics.verify(r.resourceMetrics[u]);if(v)return"resourceMetrics."+v}}return null},m.fromObject=function(r){if(r instanceof S.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest)return r;var u=new S.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest;if(r.resourceMetrics){if(!Array.isArray(r.resourceMetrics))throw TypeError(".opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest.resourceMetrics: array expected");u.resourceMetrics=[];for(var v=0;v<r.resourceMetrics.length;++v){if("object"!=typeof r.resourceMetrics[v])throw TypeError(".opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest.resourceMetrics: object expected");u.resourceMetrics[v]=S.opentelemetry.proto.metrics.v1.ResourceMetrics.fromObject(r.resourceMetrics[v])}}return u},m.toObject=function(r,u){u||(u={});var v={};if((u.arrays||u.defaults)&&(v.resourceMetrics=[]),r.resourceMetrics&&r.resourceMetrics.length){v.resourceMetrics=[];for(var E=0;E<r.resourceMetrics.length;++E)v.resourceMetrics[E]=S.opentelemetry.proto.metrics.v1.ResourceMetrics.toObject(r.resourceMetrics[E],u)}return v},m.prototype.toJSON=function(){return this.constructor.toObject(this,i.util.toJSONOptions)},m.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest"},m}(),g.ExportMetricsServiceResponse=function(){function m(l){if(l)for(var r=Object.keys(l),u=0;u<r.length;++u)null!=l[r[u]]&&(this[r[u]]=l[r[u]])}return m.prototype.partialSuccess=null,m.create=function(r){return new m(r)},m.encode=function(r,u){return u||(u=h.create()),null!=r.partialSuccess&&Object.hasOwnProperty.call(r,"partialSuccess")&&S.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.encode(r.partialSuccess,u.uint32(10).fork()).ldelim(),u},m.encodeDelimited=function(r,u){return this.encode(r,u).ldelim()},m.decode=function(r,u){r instanceof n||(r=n.create(r));for(var v=void 0===u?r.len:r.pos+u,E=new S.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse;r.pos<v;){var T=r.uint32();T>>>3==1?E.partialSuccess=S.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.decode(r,r.uint32()):r.skipType(7&T)}return E},m.decodeDelimited=function(r){return r instanceof n||(r=new n(r)),this.decode(r,r.uint32())},m.verify=function(r){if("object"!=typeof r||null===r)return"object expected";if(null!=r.partialSuccess&&r.hasOwnProperty("partialSuccess")){var u=S.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.verify(r.partialSuccess);if(u)return"partialSuccess."+u}return null},m.fromObject=function(r){if(r instanceof S.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse)return r;var u=new S.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse;if(null!=r.partialSuccess){if("object"!=typeof r.partialSuccess)throw TypeError(".opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse.partialSuccess: object expected");u.partialSuccess=S.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.fromObject(r.partialSuccess)}return u},m.toObject=function(r,u){u||(u={});var v={};return u.defaults&&(v.partialSuccess=null),null!=r.partialSuccess&&r.hasOwnProperty("partialSuccess")&&(v.partialSuccess=S.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.toObject(r.partialSuccess,u)),v},m.prototype.toJSON=function(){return this.constructor.toObject(this,i.util.toJSONOptions)},m.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse"},m}(),g.ExportMetricsPartialSuccess=function(){function m(l){if(l)for(var r=Object.keys(l),u=0;u<r.length;++u)null!=l[r[u]]&&(this[r[u]]=l[r[u]])}return m.prototype.rejectedDataPoints=null,m.prototype.errorMessage=null,m.create=function(r){return new m(r)},m.encode=function(r,u){return u||(u=h.create()),null!=r.rejectedDataPoints&&Object.hasOwnProperty.call(r,"rejectedDataPoints")&&u.uint32(8).int64(r.rejectedDataPoints),null!=r.errorMessage&&Object.hasOwnProperty.call(r,"errorMessage")&&u.uint32(18).string(r.errorMessage),u},m.encodeDelimited=function(r,u){return this.encode(r,u).ldelim()},m.decode=function(r,u){r instanceof n||(r=n.create(r));for(var v=void 0===u?r.len:r.pos+u,E=new S.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess;r.pos<v;){var T=r.uint32();switch(T>>>3){case 1:E.rejectedDataPoints=r.int64();break;case 2:E.errorMessage=r.string();break;default:r.skipType(7&T)}}return E},m.decodeDelimited=function(r){return r instanceof n||(r=new n(r)),this.decode(r,r.uint32())},m.verify=function(r){return"object"!=typeof r||null===r?"object expected":null==r.rejectedDataPoints||!r.hasOwnProperty("rejectedDataPoints")||C.isInteger(r.rejectedDataPoints)||r.rejectedDataPoints&&C.isInteger(r.rejectedDataPoints.low)&&C.isInteger(r.rejectedDataPoints.high)?null!=r.errorMessage&&r.hasOwnProperty("errorMessage")&&!C.isString(r.errorMessage)?"errorMessage: string expected":null:"rejectedDataPoints: integer|Long expected"},m.fromObject=function(r){if(r instanceof S.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess)return r;var u=new S.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess;return null!=r.rejectedDataPoints&&(C.Long?(u.rejectedDataPoints=C.Long.fromValue(r.rejectedDataPoints)).unsigned=!1:"string"==typeof r.rejectedDataPoints?u.rejectedDataPoints=parseInt(r.rejectedDataPoints,10):"number"==typeof r.rejectedDataPoints?u.rejectedDataPoints=r.rejectedDataPoints:"object"==typeof r.rejectedDataPoints&&(u.rejectedDataPoints=new C.LongBits(r.rejectedDataPoints.low>>>0,r.rejectedDataPoints.high>>>0).toNumber())),null!=r.errorMessage&&(u.errorMessage=String(r.errorMessage)),u},m.toObject=function(r,u){u||(u={});var v={};if(u.defaults){if(C.Long){var E=new C.Long(0,0,!1);v.rejectedDataPoints=u.longs===String?E.toString():u.longs===Number?E.toNumber():E}else v.rejectedDataPoints=u.longs===String?"0":0;v.errorMessage=""}return null!=r.rejectedDataPoints&&r.hasOwnProperty("rejectedDataPoints")&&(v.rejectedDataPoints="number"==typeof r.rejectedDataPoints?u.longs===String?String(r.rejectedDataPoints):r.rejectedDataPoints:u.longs===String?C.Long.prototype.toString.call(r.rejectedDataPoints):u.longs===Number?new C.LongBits(r.rejectedDataPoints.low>>>0,r.rejectedDataPoints.high>>>0).toNumber():r.rejectedDataPoints),null!=r.errorMessage&&r.hasOwnProperty("errorMessage")&&(v.errorMessage=r.errorMessage),v},m.prototype.toJSON=function(){return this.constructor.toObject(this,i.util.toJSONOptions)},m.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess"},m}(),g),A}(),x.logs=function(){var g,A={};return A.v1=((g={}).LogsService=function(){function m(l,r,u){i.rpc.Service.call(this,l,r,u)}return(m.prototype=Object.create(i.rpc.Service.prototype)).constructor=m,m.create=function(r,u,v){return new this(r,u,v)},Object.defineProperty(m.prototype.export=function l(r,u){return this.rpcCall(l,S.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest,S.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse,r,u)},"name",{value:"Export"}),m}(),g.ExportLogsServiceRequest=function(){function m(l){if(this.resourceLogs=[],l)for(var r=Object.keys(l),u=0;u<r.length;++u)null!=l[r[u]]&&(this[r[u]]=l[r[u]])}return m.prototype.resourceLogs=C.emptyArray,m.create=function(r){return new m(r)},m.encode=function(r,u){if(u||(u=h.create()),null!=r.resourceLogs&&r.resourceLogs.length)for(var v=0;v<r.resourceLogs.length;++v)S.opentelemetry.proto.logs.v1.ResourceLogs.encode(r.resourceLogs[v],u.uint32(10).fork()).ldelim();return u},m.encodeDelimited=function(r,u){return this.encode(r,u).ldelim()},m.decode=function(r,u){r instanceof n||(r=n.create(r));for(var v=void 0===u?r.len:r.pos+u,E=new S.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest;r.pos<v;){var T=r.uint32();T>>>3==1?(E.resourceLogs&&E.resourceLogs.length||(E.resourceLogs=[]),E.resourceLogs.push(S.opentelemetry.proto.logs.v1.ResourceLogs.decode(r,r.uint32()))):r.skipType(7&T)}return E},m.decodeDelimited=function(r){return r instanceof n||(r=new n(r)),this.decode(r,r.uint32())},m.verify=function(r){if("object"!=typeof r||null===r)return"object expected";if(null!=r.resourceLogs&&r.hasOwnProperty("resourceLogs")){if(!Array.isArray(r.resourceLogs))return"resourceLogs: array expected";for(var u=0;u<r.resourceLogs.length;++u){var v=S.opentelemetry.proto.logs.v1.ResourceLogs.verify(r.resourceLogs[u]);if(v)return"resourceLogs."+v}}return null},m.fromObject=function(r){if(r instanceof S.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest)return r;var u=new S.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest;if(r.resourceLogs){if(!Array.isArray(r.resourceLogs))throw TypeError(".opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest.resourceLogs: array expected");u.resourceLogs=[];for(var v=0;v<r.resourceLogs.length;++v){if("object"!=typeof r.resourceLogs[v])throw TypeError(".opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest.resourceLogs: object expected");u.resourceLogs[v]=S.opentelemetry.proto.logs.v1.ResourceLogs.fromObject(r.resourceLogs[v])}}return u},m.toObject=function(r,u){u||(u={});var v={};if((u.arrays||u.defaults)&&(v.resourceLogs=[]),r.resourceLogs&&r.resourceLogs.length){v.resourceLogs=[];for(var E=0;E<r.resourceLogs.length;++E)v.resourceLogs[E]=S.opentelemetry.proto.logs.v1.ResourceLogs.toObject(r.resourceLogs[E],u)}return v},m.prototype.toJSON=function(){return this.constructor.toObject(this,i.util.toJSONOptions)},m.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest"},m}(),g.ExportLogsServiceResponse=function(){function m(l){if(l)for(var r=Object.keys(l),u=0;u<r.length;++u)null!=l[r[u]]&&(this[r[u]]=l[r[u]])}return m.prototype.partialSuccess=null,m.create=function(r){return new m(r)},m.encode=function(r,u){return u||(u=h.create()),null!=r.partialSuccess&&Object.hasOwnProperty.call(r,"partialSuccess")&&S.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.encode(r.partialSuccess,u.uint32(10).fork()).ldelim(),u},m.encodeDelimited=function(r,u){return this.encode(r,u).ldelim()},m.decode=function(r,u){r instanceof n||(r=n.create(r));for(var v=void 0===u?r.len:r.pos+u,E=new S.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse;r.pos<v;){var T=r.uint32();T>>>3==1?E.partialSuccess=S.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.decode(r,r.uint32()):r.skipType(7&T)}return E},m.decodeDelimited=function(r){return r instanceof n||(r=new n(r)),this.decode(r,r.uint32())},m.verify=function(r){if("object"!=typeof r||null===r)return"object expected";if(null!=r.partialSuccess&&r.hasOwnProperty("partialSuccess")){var u=S.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.verify(r.partialSuccess);if(u)return"partialSuccess."+u}return null},m.fromObject=function(r){if(r instanceof S.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse)return r;var u=new S.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse;if(null!=r.partialSuccess){if("object"!=typeof r.partialSuccess)throw TypeError(".opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse.partialSuccess: object expected");u.partialSuccess=S.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.fromObject(r.partialSuccess)}return u},m.toObject=function(r,u){u||(u={});var v={};return u.defaults&&(v.partialSuccess=null),null!=r.partialSuccess&&r.hasOwnProperty("partialSuccess")&&(v.partialSuccess=S.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.toObject(r.partialSuccess,u)),v},m.prototype.toJSON=function(){return this.constructor.toObject(this,i.util.toJSONOptions)},m.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse"},m}(),g.ExportLogsPartialSuccess=function(){function m(l){if(l)for(var r=Object.keys(l),u=0;u<r.length;++u)null!=l[r[u]]&&(this[r[u]]=l[r[u]])}return m.prototype.rejectedLogRecords=null,m.prototype.errorMessage=null,m.create=function(r){return new m(r)},m.encode=function(r,u){return u||(u=h.create()),null!=r.rejectedLogRecords&&Object.hasOwnProperty.call(r,"rejectedLogRecords")&&u.uint32(8).int64(r.rejectedLogRecords),null!=r.errorMessage&&Object.hasOwnProperty.call(r,"errorMessage")&&u.uint32(18).string(r.errorMessage),u},m.encodeDelimited=function(r,u){return this.encode(r,u).ldelim()},m.decode=function(r,u){r instanceof n||(r=n.create(r));for(var v=void 0===u?r.len:r.pos+u,E=new S.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess;r.pos<v;){var T=r.uint32();switch(T>>>3){case 1:E.rejectedLogRecords=r.int64();break;case 2:E.errorMessage=r.string();break;default:r.skipType(7&T)}}return E},m.decodeDelimited=function(r){return r instanceof n||(r=new n(r)),this.decode(r,r.uint32())},m.verify=function(r){return"object"!=typeof r||null===r?"object expected":null==r.rejectedLogRecords||!r.hasOwnProperty("rejectedLogRecords")||C.isInteger(r.rejectedLogRecords)||r.rejectedLogRecords&&C.isInteger(r.rejectedLogRecords.low)&&C.isInteger(r.rejectedLogRecords.high)?null!=r.errorMessage&&r.hasOwnProperty("errorMessage")&&!C.isString(r.errorMessage)?"errorMessage: string expected":null:"rejectedLogRecords: integer|Long expected"},m.fromObject=function(r){if(r instanceof S.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess)return r;var u=new S.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess;return null!=r.rejectedLogRecords&&(C.Long?(u.rejectedLogRecords=C.Long.fromValue(r.rejectedLogRecords)).unsigned=!1:"string"==typeof r.rejectedLogRecords?u.rejectedLogRecords=parseInt(r.rejectedLogRecords,10):"number"==typeof r.rejectedLogRecords?u.rejectedLogRecords=r.rejectedLogRecords:"object"==typeof r.rejectedLogRecords&&(u.rejectedLogRecords=new C.LongBits(r.rejectedLogRecords.low>>>0,r.rejectedLogRecords.high>>>0).toNumber())),null!=r.errorMessage&&(u.errorMessage=String(r.errorMessage)),u},m.toObject=function(r,u){u||(u={});var v={};if(u.defaults){if(C.Long){var E=new C.Long(0,0,!1);v.rejectedLogRecords=u.longs===String?E.toString():u.longs===Number?E.toNumber():E}else v.rejectedLogRecords=u.longs===String?"0":0;v.errorMessage=""}return null!=r.rejectedLogRecords&&r.hasOwnProperty("rejectedLogRecords")&&(v.rejectedLogRecords="number"==typeof r.rejectedLogRecords?u.longs===String?String(r.rejectedLogRecords):r.rejectedLogRecords:u.longs===String?C.Long.prototype.toString.call(r.rejectedLogRecords):u.longs===Number?new C.LongBits(r.rejectedLogRecords.low>>>0,r.rejectedLogRecords.high>>>0).toNumber():r.rejectedLogRecords),null!=r.errorMessage&&r.hasOwnProperty("errorMessage")&&(v.errorMessage=r.errorMessage),v},m.prototype.toJSON=function(){return this.constructor.toObject(this,i.util.toJSONOptions)},m.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess"},m}(),g),A}(),x}(),P.metrics=function(){var x={};return x.v1=function(){var g,m,A={};return A.MetricsData=function(){function g(m){if(this.resourceMetrics=[],m)for(var l=Object.keys(m),r=0;r<l.length;++r)null!=m[l[r]]&&(this[l[r]]=m[l[r]])}return g.prototype.resourceMetrics=C.emptyArray,g.create=function(l){return new g(l)},g.encode=function(l,r){if(r||(r=h.create()),null!=l.resourceMetrics&&l.resourceMetrics.length)for(var u=0;u<l.resourceMetrics.length;++u)S.opentelemetry.proto.metrics.v1.ResourceMetrics.encode(l.resourceMetrics[u],r.uint32(10).fork()).ldelim();return r},g.encodeDelimited=function(l,r){return this.encode(l,r).ldelim()},g.decode=function(l,r){l instanceof n||(l=n.create(l));for(var u=void 0===r?l.len:l.pos+r,v=new S.opentelemetry.proto.metrics.v1.MetricsData;l.pos<u;){var E=l.uint32();E>>>3==1?(v.resourceMetrics&&v.resourceMetrics.length||(v.resourceMetrics=[]),v.resourceMetrics.push(S.opentelemetry.proto.metrics.v1.ResourceMetrics.decode(l,l.uint32()))):l.skipType(7&E)}return v},g.decodeDelimited=function(l){return l instanceof n||(l=new n(l)),this.decode(l,l.uint32())},g.verify=function(l){if("object"!=typeof l||null===l)return"object expected";if(null!=l.resourceMetrics&&l.hasOwnProperty("resourceMetrics")){if(!Array.isArray(l.resourceMetrics))return"resourceMetrics: array expected";for(var r=0;r<l.resourceMetrics.length;++r){var u=S.opentelemetry.proto.metrics.v1.ResourceMetrics.verify(l.resourceMetrics[r]);if(u)return"resourceMetrics."+u}}return null},g.fromObject=function(l){if(l instanceof S.opentelemetry.proto.metrics.v1.MetricsData)return l;var r=new S.opentelemetry.proto.metrics.v1.MetricsData;if(l.resourceMetrics){if(!Array.isArray(l.resourceMetrics))throw TypeError(".opentelemetry.proto.metrics.v1.MetricsData.resourceMetrics: array expected");r.resourceMetrics=[];for(var u=0;u<l.resourceMetrics.length;++u){if("object"!=typeof l.resourceMetrics[u])throw TypeError(".opentelemetry.proto.metrics.v1.MetricsData.resourceMetrics: object expected");r.resourceMetrics[u]=S.opentelemetry.proto.metrics.v1.ResourceMetrics.fromObject(l.resourceMetrics[u])}}return r},g.toObject=function(l,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.resourceMetrics=[]),l.resourceMetrics&&l.resourceMetrics.length){u.resourceMetrics=[];for(var v=0;v<l.resourceMetrics.length;++v)u.resourceMetrics[v]=S.opentelemetry.proto.metrics.v1.ResourceMetrics.toObject(l.resourceMetrics[v],r)}return u},g.prototype.toJSON=function(){return this.constructor.toObject(this,i.util.toJSONOptions)},g.getTypeUrl=function(l){return void 0===l&&(l="type.googleapis.com"),l+"/opentelemetry.proto.metrics.v1.MetricsData"},g}(),A.ResourceMetrics=function(){function g(m){if(this.scopeMetrics=[],m)for(var l=Object.keys(m),r=0;r<l.length;++r)null!=m[l[r]]&&(this[l[r]]=m[l[r]])}return g.prototype.resource=null,g.prototype.scopeMetrics=C.emptyArray,g.prototype.schemaUrl=null,g.create=function(l){return new g(l)},g.encode=function(l,r){if(r||(r=h.create()),null!=l.resource&&Object.hasOwnProperty.call(l,"resource")&&S.opentelemetry.proto.resource.v1.Resource.encode(l.resource,r.uint32(10).fork()).ldelim(),null!=l.scopeMetrics&&l.scopeMetrics.length)for(var u=0;u<l.scopeMetrics.length;++u)S.opentelemetry.proto.metrics.v1.ScopeMetrics.encode(l.scopeMetrics[u],r.uint32(18).fork()).ldelim();return null!=l.schemaUrl&&Object.hasOwnProperty.call(l,"schemaUrl")&&r.uint32(26).string(l.schemaUrl),r},g.encodeDelimited=function(l,r){return this.encode(l,r).ldelim()},g.decode=function(l,r){l instanceof n||(l=n.create(l));for(var u=void 0===r?l.len:l.pos+r,v=new S.opentelemetry.proto.metrics.v1.ResourceMetrics;l.pos<u;){var E=l.uint32();switch(E>>>3){case 1:v.resource=S.opentelemetry.proto.resource.v1.Resource.decode(l,l.uint32());break;case 2:v.scopeMetrics&&v.scopeMetrics.length||(v.scopeMetrics=[]),v.scopeMetrics.push(S.opentelemetry.proto.metrics.v1.ScopeMetrics.decode(l,l.uint32()));break;case 3:v.schemaUrl=l.string();break;default:l.skipType(7&E)}}return v},g.decodeDelimited=function(l){return l instanceof n||(l=new n(l)),this.decode(l,l.uint32())},g.verify=function(l){if("object"!=typeof l||null===l)return"object expected";if(null!=l.resource&&l.hasOwnProperty("resource")&&(r=S.opentelemetry.proto.resource.v1.Resource.verify(l.resource)))return"resource."+r;if(null!=l.scopeMetrics&&l.hasOwnProperty("scopeMetrics")){if(!Array.isArray(l.scopeMetrics))return"scopeMetrics: array expected";for(var u=0;u<l.scopeMetrics.length;++u){var r;if(r=S.opentelemetry.proto.metrics.v1.ScopeMetrics.verify(l.scopeMetrics[u]))return"scopeMetrics."+r}}return null!=l.schemaUrl&&l.hasOwnProperty("schemaUrl")&&!C.isString(l.schemaUrl)?"schemaUrl: string expected":null},g.fromObject=function(l){if(l instanceof S.opentelemetry.proto.metrics.v1.ResourceMetrics)return l;var r=new S.opentelemetry.proto.metrics.v1.ResourceMetrics;if(null!=l.resource){if("object"!=typeof l.resource)throw TypeError(".opentelemetry.proto.metrics.v1.ResourceMetrics.resource: object expected");r.resource=S.opentelemetry.proto.resource.v1.Resource.fromObject(l.resource)}if(l.scopeMetrics){if(!Array.isArray(l.scopeMetrics))throw TypeError(".opentelemetry.proto.metrics.v1.ResourceMetrics.scopeMetrics: array expected");r.scopeMetrics=[];for(var u=0;u<l.scopeMetrics.length;++u){if("object"!=typeof l.scopeMetrics[u])throw TypeError(".opentelemetry.proto.metrics.v1.ResourceMetrics.scopeMetrics: object expected");r.scopeMetrics[u]=S.opentelemetry.proto.metrics.v1.ScopeMetrics.fromObject(l.scopeMetrics[u])}}return null!=l.schemaUrl&&(r.schemaUrl=String(l.schemaUrl)),r},g.toObject=function(l,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.scopeMetrics=[]),r.defaults&&(u.resource=null,u.schemaUrl=""),null!=l.resource&&l.hasOwnProperty("resource")&&(u.resource=S.opentelemetry.proto.resource.v1.Resource.toObject(l.resource,r)),l.scopeMetrics&&l.scopeMetrics.length){u.scopeMetrics=[];for(var v=0;v<l.scopeMetrics.length;++v)u.scopeMetrics[v]=S.opentelemetry.proto.metrics.v1.ScopeMetrics.toObject(l.scopeMetrics[v],r)}return null!=l.schemaUrl&&l.hasOwnProperty("schemaUrl")&&(u.schemaUrl=l.schemaUrl),u},g.prototype.toJSON=function(){return this.constructor.toObject(this,i.util.toJSONOptions)},g.getTypeUrl=function(l){return void 0===l&&(l="type.googleapis.com"),l+"/opentelemetry.proto.metrics.v1.ResourceMetrics"},g}(),A.ScopeMetrics=function(){function g(m){if(this.metrics=[],m)for(var l=Object.keys(m),r=0;r<l.length;++r)null!=m[l[r]]&&(this[l[r]]=m[l[r]])}return g.prototype.scope=null,g.prototype.metrics=C.emptyArray,g.prototype.schemaUrl=null,g.create=function(l){return new g(l)},g.encode=function(l,r){if(r||(r=h.create()),null!=l.scope&&Object.hasOwnProperty.call(l,"scope")&&S.opentelemetry.proto.common.v1.InstrumentationScope.encode(l.scope,r.uint32(10).fork()).ldelim(),null!=l.metrics&&l.metrics.length)for(var u=0;u<l.metrics.length;++u)S.opentelemetry.proto.metrics.v1.Metric.encode(l.metrics[u],r.uint32(18).fork()).ldelim();return null!=l.schemaUrl&&Object.hasOwnProperty.call(l,"schemaUrl")&&r.uint32(26).string(l.schemaUrl),r},g.encodeDelimited=function(l,r){return this.encode(l,r).ldelim()},g.decode=function(l,r){l instanceof n||(l=n.create(l));for(var u=void 0===r?l.len:l.pos+r,v=new S.opentelemetry.proto.metrics.v1.ScopeMetrics;l.pos<u;){var E=l.uint32();switch(E>>>3){case 1:v.scope=S.opentelemetry.proto.common.v1.InstrumentationScope.decode(l,l.uint32());break;case 2:v.metrics&&v.metrics.length||(v.metrics=[]),v.metrics.push(S.opentelemetry.proto.metrics.v1.Metric.decode(l,l.uint32()));break;case 3:v.schemaUrl=l.string();break;default:l.skipType(7&E)}}return v},g.decodeDelimited=function(l){return l instanceof n||(l=new n(l)),this.decode(l,l.uint32())},g.verify=function(l){if("object"!=typeof l||null===l)return"object expected";if(null!=l.scope&&l.hasOwnProperty("scope")&&(r=S.opentelemetry.proto.common.v1.InstrumentationScope.verify(l.scope)))return"scope."+r;if(null!=l.metrics&&l.hasOwnProperty("metrics")){if(!Array.isArray(l.metrics))return"metrics: array expected";for(var u=0;u<l.metrics.length;++u){var r;if(r=S.opentelemetry.proto.metrics.v1.Metric.verify(l.metrics[u]))return"metrics."+r}}return null!=l.schemaUrl&&l.hasOwnProperty("schemaUrl")&&!C.isString(l.schemaUrl)?"schemaUrl: string expected":null},g.fromObject=function(l){if(l instanceof S.opentelemetry.proto.metrics.v1.ScopeMetrics)return l;var r=new S.opentelemetry.proto.metrics.v1.ScopeMetrics;if(null!=l.scope){if("object"!=typeof l.scope)throw TypeError(".opentelemetry.proto.metrics.v1.ScopeMetrics.scope: object expected");r.scope=S.opentelemetry.proto.common.v1.InstrumentationScope.fromObject(l.scope)}if(l.metrics){if(!Array.isArray(l.metrics))throw TypeError(".opentelemetry.proto.metrics.v1.ScopeMetrics.metrics: array expected");r.metrics=[];for(var u=0;u<l.metrics.length;++u){if("object"!=typeof l.metrics[u])throw TypeError(".opentelemetry.proto.metrics.v1.ScopeMetrics.metrics: object expected");r.metrics[u]=S.opentelemetry.proto.metrics.v1.Metric.fromObject(l.metrics[u])}}return null!=l.schemaUrl&&(r.schemaUrl=String(l.schemaUrl)),r},g.toObject=function(l,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.metrics=[]),r.defaults&&(u.scope=null,u.schemaUrl=""),null!=l.scope&&l.hasOwnProperty("scope")&&(u.scope=S.opentelemetry.proto.common.v1.InstrumentationScope.toObject(l.scope,r)),l.metrics&&l.metrics.length){u.metrics=[];for(var v=0;v<l.metrics.length;++v)u.metrics[v]=S.opentelemetry.proto.metrics.v1.Metric.toObject(l.metrics[v],r)}return null!=l.schemaUrl&&l.hasOwnProperty("schemaUrl")&&(u.schemaUrl=l.schemaUrl),u},g.prototype.toJSON=function(){return this.constructor.toObject(this,i.util.toJSONOptions)},g.getTypeUrl=function(l){return void 0===l&&(l="type.googleapis.com"),l+"/opentelemetry.proto.metrics.v1.ScopeMetrics"},g}(),A.Metric=function(){function g(l){if(l)for(var r=Object.keys(l),u=0;u<r.length;++u)null!=l[r[u]]&&(this[r[u]]=l[r[u]])}var m;return g.prototype.name=null,g.prototype.description=null,g.prototype.unit=null,g.prototype.gauge=null,g.prototype.sum=null,g.prototype.histogram=null,g.prototype.exponentialHistogram=null,g.prototype.summary=null,Object.defineProperty(g.prototype,"data",{get:C.oneOfGetter(m=["gauge","sum","histogram","exponentialHistogram","summary"]),set:C.oneOfSetter(m)}),g.create=function(r){return new g(r)},g.encode=function(r,u){return u||(u=h.create()),null!=r.name&&Object.hasOwnProperty.call(r,"name")&&u.uint32(10).string(r.name),null!=r.description&&Object.hasOwnProperty.call(r,"description")&&u.uint32(18).string(r.description),null!=r.unit&&Object.hasOwnProperty.call(r,"unit")&&u.uint32(26).string(r.unit),null!=r.gauge&&Object.hasOwnProperty.call(r,"gauge")&&S.opentelemetry.proto.metrics.v1.Gauge.encode(r.gauge,u.uint32(42).fork()).ldelim(),null!=r.sum&&Object.hasOwnProperty.call(r,"sum")&&S.opentelemetry.proto.metrics.v1.Sum.encode(r.sum,u.uint32(58).fork()).ldelim(),null!=r.histogram&&Object.hasOwnProperty.call(r,"histogram")&&S.opentelemetry.proto.metrics.v1.Histogram.encode(r.histogram,u.uint32(74).fork()).ldelim(),null!=r.exponentialHistogram&&Object.hasOwnProperty.call(r,"exponentialHistogram")&&S.opentelemetry.proto.metrics.v1.ExponentialHistogram.encode(r.exponentialHistogram,u.uint32(82).fork()).ldelim(),null!=r.summary&&Object.hasOwnProperty.call(r,"summary")&&S.opentelemetry.proto.metrics.v1.Summary.encode(r.summary,u.uint32(90).fork()).ldelim(),u},g.encodeDelimited=function(r,u){return this.encode(r,u).ldelim()},g.decode=function(r,u){r instanceof n||(r=n.create(r));for(var v=void 0===u?r.len:r.pos+u,E=new S.opentelemetry.proto.metrics.v1.Metric;r.pos<v;){var T=r.uint32();switch(T>>>3){case 1:E.name=r.string();break;case 2:E.description=r.string();break;case 3:E.unit=r.string();break;case 5:E.gauge=S.opentelemetry.proto.metrics.v1.Gauge.decode(r,r.uint32());break;case 7:E.sum=S.opentelemetry.proto.metrics.v1.Sum.decode(r,r.uint32());break;case 9:E.histogram=S.opentelemetry.proto.metrics.v1.Histogram.decode(r,r.uint32());break;case 10:E.exponentialHistogram=S.opentelemetry.proto.metrics.v1.ExponentialHistogram.decode(r,r.uint32());break;case 11:E.summary=S.opentelemetry.proto.metrics.v1.Summary.decode(r,r.uint32());break;default:r.skipType(7&T)}}return E},g.decodeDelimited=function(r){return r instanceof n||(r=new n(r)),this.decode(r,r.uint32())},g.verify=function(r){if("object"!=typeof r||null===r)return"object expected";var u={};if(null!=r.name&&r.hasOwnProperty("name")&&!C.isString(r.name))return"name: string expected";if(null!=r.description&&r.hasOwnProperty("description")&&!C.isString(r.description))return"description: string expected";if(null!=r.unit&&r.hasOwnProperty("unit")&&!C.isString(r.unit))return"unit: string expected";if(null!=r.gauge&&r.hasOwnProperty("gauge")&&(u.data=1,v=S.opentelemetry.proto.metrics.v1.Gauge.verify(r.gauge)))return"gauge."+v;if(null!=r.sum&&r.hasOwnProperty("sum")){if(1===u.data)return"data: multiple values";if(u.data=1,v=S.opentelemetry.proto.metrics.v1.Sum.verify(r.sum))return"sum."+v}if(null!=r.histogram&&r.hasOwnProperty("histogram")){if(1===u.data)return"data: multiple values";if(u.data=1,v=S.opentelemetry.proto.metrics.v1.Histogram.verify(r.histogram))return"histogram."+v}if(null!=r.exponentialHistogram&&r.hasOwnProperty("exponentialHistogram")){if(1===u.data)return"data: multiple values";if(u.data=1,v=S.opentelemetry.proto.metrics.v1.ExponentialHistogram.verify(r.exponentialHistogram))return"exponentialHistogram."+v}if(null!=r.summary&&r.hasOwnProperty("summary")){if(1===u.data)return"data: multiple values";var v;if(u.data=1,v=S.opentelemetry.proto.metrics.v1.Summary.verify(r.summary))return"summary."+v}return null},g.fromObject=function(r){if(r instanceof S.opentelemetry.proto.metrics.v1.Metric)return r;var u=new S.opentelemetry.proto.metrics.v1.Metric;if(null!=r.name&&(u.name=String(r.name)),null!=r.description&&(u.description=String(r.description)),null!=r.unit&&(u.unit=String(r.unit)),null!=r.gauge){if("object"!=typeof r.gauge)throw TypeError(".opentelemetry.proto.metrics.v1.Metric.gauge: object expected");u.gauge=S.opentelemetry.proto.metrics.v1.Gauge.fromObject(r.gauge)}if(null!=r.sum){if("object"!=typeof r.sum)throw TypeError(".opentelemetry.proto.metrics.v1.Metric.sum: object expected");u.sum=S.opentelemetry.proto.metrics.v1.Sum.fromObject(r.sum)}if(null!=r.histogram){if("object"!=typeof r.histogram)throw TypeError(".opentelemetry.proto.metrics.v1.Metric.histogram: object expected");u.histogram=S.opentelemetry.proto.metrics.v1.Histogram.fromObject(r.histogram)}if(null!=r.exponentialHistogram){if("object"!=typeof r.exponentialHistogram)throw TypeError(".opentelemetry.proto.metrics.v1.Metric.exponentialHistogram: object expected");u.exponentialHistogram=S.opentelemetry.proto.metrics.v1.ExponentialHistogram.fromObject(r.exponentialHistogram)}if(null!=r.summary){if("object"!=typeof r.summary)throw TypeError(".opentelemetry.proto.metrics.v1.Metric.summary: object expected");u.summary=S.opentelemetry.proto.metrics.v1.Summary.fromObject(r.summary)}return u},g.toObject=function(r,u){u||(u={});var v={};return u.defaults&&(v.name="",v.description="",v.unit=""),null!=r.name&&r.hasOwnProperty("name")&&(v.name=r.name),null!=r.description&&r.hasOwnProperty("description")&&(v.description=r.description),null!=r.unit&&r.hasOwnProperty("unit")&&(v.unit=r.unit),null!=r.gauge&&r.hasOwnProperty("gauge")&&(v.gauge=S.opentelemetry.proto.metrics.v1.Gauge.toObject(r.gauge,u),u.oneofs&&(v.data="gauge")),null!=r.sum&&r.hasOwnProperty("sum")&&(v.sum=S.opentelemetry.proto.metrics.v1.Sum.toObject(r.sum,u),u.oneofs&&(v.data="sum")),null!=r.histogram&&r.hasOwnProperty("histogram")&&(v.histogram=S.opentelemetry.proto.metrics.v1.Histogram.toObject(r.histogram,u),u.oneofs&&(v.data="histogram")),null!=r.exponentialHistogram&&r.hasOwnProperty("exponentialHistogram")&&(v.exponentialHistogram=S.opentelemetry.proto.metrics.v1.ExponentialHistogram.toObject(r.exponentialHistogram,u),u.oneofs&&(v.data="exponentialHistogram")),null!=r.summary&&r.hasOwnProperty("summary")&&(v.summary=S.opentelemetry.proto.metrics.v1.Summary.toObject(r.summary,u),u.oneofs&&(v.data="summary")),v},g.prototype.toJSON=function(){return this.constructor.toObject(this,i.util.toJSONOptions)},g.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/opentelemetry.proto.metrics.v1.Metric"},g}(),A.Gauge=function(){function g(m){if(this.dataPoints=[],m)for(var l=Object.keys(m),r=0;r<l.length;++r)null!=m[l[r]]&&(this[l[r]]=m[l[r]])}return g.prototype.dataPoints=C.emptyArray,g.create=function(l){return new g(l)},g.encode=function(l,r){if(r||(r=h.create()),null!=l.dataPoints&&l.dataPoints.length)for(var u=0;u<l.dataPoints.length;++u)S.opentelemetry.proto.metrics.v1.NumberDataPoint.encode(l.dataPoints[u],r.uint32(10).fork()).ldelim();return r},g.encodeDelimited=function(l,r){return this.encode(l,r).ldelim()},g.decode=function(l,r){l instanceof n||(l=n.create(l));for(var u=void 0===r?l.len:l.pos+r,v=new S.opentelemetry.proto.metrics.v1.Gauge;l.pos<u;){var E=l.uint32();E>>>3==1?(v.dataPoints&&v.dataPoints.length||(v.dataPoints=[]),v.dataPoints.push(S.opentelemetry.proto.metrics.v1.NumberDataPoint.decode(l,l.uint32()))):l.skipType(7&E)}return v},g.decodeDelimited=function(l){return l instanceof n||(l=new n(l)),this.decode(l,l.uint32())},g.verify=function(l){if("object"!=typeof l||null===l)return"object expected";if(null!=l.dataPoints&&l.hasOwnProperty("dataPoints")){if(!Array.isArray(l.dataPoints))return"dataPoints: array expected";for(var r=0;r<l.dataPoints.length;++r){var u=S.opentelemetry.proto.metrics.v1.NumberDataPoint.verify(l.dataPoints[r]);if(u)return"dataPoints."+u}}return null},g.fromObject=function(l){if(l instanceof S.opentelemetry.proto.metrics.v1.Gauge)return l;var r=new S.opentelemetry.proto.metrics.v1.Gauge;if(l.dataPoints){if(!Array.isArray(l.dataPoints))throw TypeError(".opentelemetry.proto.metrics.v1.Gauge.dataPoints: array expected");r.dataPoints=[];for(var u=0;u<l.dataPoints.length;++u){if("object"!=typeof l.dataPoints[u])throw TypeError(".opentelemetry.proto.metrics.v1.Gauge.dataPoints: object expected");r.dataPoints[u]=S.opentelemetry.proto.metrics.v1.NumberDataPoint.fromObject(l.dataPoints[u])}}return r},g.toObject=function(l,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.dataPoints=[]),l.dataPoints&&l.dataPoints.length){u.dataPoints=[];for(var v=0;v<l.dataPoints.length;++v)u.dataPoints[v]=S.opentelemetry.proto.metrics.v1.NumberDataPoint.toObject(l.dataPoints[v],r)}return u},g.prototype.toJSON=function(){return this.constructor.toObject(this,i.util.toJSONOptions)},g.getTypeUrl=function(l){return void 0===l&&(l="type.googleapis.com"),l+"/opentelemetry.proto.metrics.v1.Gauge"},g}(),A.Sum=function(){function g(m){if(this.dataPoints=[],m)for(var l=Object.keys(m),r=0;r<l.length;++r)null!=m[l[r]]&&(this[l[r]]=m[l[r]])}return g.prototype.dataPoints=C.emptyArray,g.prototype.aggregationTemporality=null,g.prototype.isMonotonic=null,g.create=function(l){return new g(l)},g.encode=function(l,r){if(r||(r=h.create()),null!=l.dataPoints&&l.dataPoints.length)for(var u=0;u<l.dataPoints.length;++u)S.opentelemetry.proto.metrics.v1.NumberDataPoint.encode(l.dataPoints[u],r.uint32(10).fork()).ldelim();return null!=l.aggregationTemporality&&Object.hasOwnProperty.call(l,"aggregationTemporality")&&r.uint32(16).int32(l.aggregationTemporality),null!=l.isMonotonic&&Object.hasOwnProperty.call(l,"isMonotonic")&&r.uint32(24).bool(l.isMonotonic),r},g.encodeDelimited=function(l,r){return this.encode(l,r).ldelim()},g.decode=function(l,r){l instanceof n||(l=n.create(l));for(var u=void 0===r?l.len:l.pos+r,v=new S.opentelemetry.proto.metrics.v1.Sum;l.pos<u;){var E=l.uint32();switch(E>>>3){case 1:v.dataPoints&&v.dataPoints.length||(v.dataPoints=[]),v.dataPoints.push(S.opentelemetry.proto.metrics.v1.NumberDataPoint.decode(l,l.uint32()));break;case 2:v.aggregationTemporality=l.int32();break;case 3:v.isMonotonic=l.bool();break;default:l.skipType(7&E)}}return v},g.decodeDelimited=function(l){return l instanceof n||(l=new n(l)),this.decode(l,l.uint32())},g.verify=function(l){if("object"!=typeof l||null===l)return"object expected";if(null!=l.dataPoints&&l.hasOwnProperty("dataPoints")){if(!Array.isArray(l.dataPoints))return"dataPoints: array expected";for(var r=0;r<l.dataPoints.length;++r){var u=S.opentelemetry.proto.metrics.v1.NumberDataPoint.verify(l.dataPoints[r]);if(u)return"dataPoints."+u}}if(null!=l.aggregationTemporality&&l.hasOwnProperty("aggregationTemporality"))switch(l.aggregationTemporality){default:return"aggregationTemporality: enum value expected";case 0:case 1:case 2:}return null!=l.isMonotonic&&l.hasOwnProperty("isMonotonic")&&"boolean"!=typeof l.isMonotonic?"isMonotonic: boolean expected":null},g.fromObject=function(l){if(l instanceof S.opentelemetry.proto.metrics.v1.Sum)return l;var r=new S.opentelemetry.proto.metrics.v1.Sum;if(l.dataPoints){if(!Array.isArray(l.dataPoints))throw TypeError(".opentelemetry.proto.metrics.v1.Sum.dataPoints: array expected");r.dataPoints=[];for(var u=0;u<l.dataPoints.length;++u){if("object"!=typeof l.dataPoints[u])throw TypeError(".opentelemetry.proto.metrics.v1.Sum.dataPoints: object expected");r.dataPoints[u]=S.opentelemetry.proto.metrics.v1.NumberDataPoint.fromObject(l.dataPoints[u])}}switch(l.aggregationTemporality){default:if("number"==typeof l.aggregationTemporality){r.aggregationTemporality=l.aggregationTemporality;break}break;case"AGGREGATION_TEMPORALITY_UNSPECIFIED":case 0:r.aggregationTemporality=0;break;case"AGGREGATION_TEMPORALITY_DELTA":case 1:r.aggregationTemporality=1;break;case"AGGREGATION_TEMPORALITY_CUMULATIVE":case 2:r.aggregationTemporality=2}return null!=l.isMonotonic&&(r.isMonotonic=!!l.isMonotonic),r},g.toObject=function(l,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.dataPoints=[]),r.defaults&&(u.aggregationTemporality=r.enums===String?"AGGREGATION_TEMPORALITY_UNSPECIFIED":0,u.isMonotonic=!1),l.dataPoints&&l.dataPoints.length){u.dataPoints=[];for(var v=0;v<l.dataPoints.length;++v)u.dataPoints[v]=S.opentelemetry.proto.metrics.v1.NumberDataPoint.toObject(l.dataPoints[v],r)}return null!=l.aggregationTemporality&&l.hasOwnProperty("aggregationTemporality")&&(u.aggregationTemporality=r.enums===String?void 0===S.opentelemetry.proto.metrics.v1.AggregationTemporality[l.aggregationTemporality]?l.aggregationTemporality:S.opentelemetry.proto.metrics.v1.AggregationTemporality[l.aggregationTemporality]:l.aggregationTemporality),null!=l.isMonotonic&&l.hasOwnProperty("isMonotonic")&&(u.isMonotonic=l.isMonotonic),u},g.prototype.toJSON=function(){return this.constructor.toObject(this,i.util.toJSONOptions)},g.getTypeUrl=function(l){return void 0===l&&(l="type.googleapis.com"),l+"/opentelemetry.proto.metrics.v1.Sum"},g}(),A.Histogram=function(){function g(m){if(this.dataPoints=[],m)for(var l=Object.keys(m),r=0;r<l.length;++r)null!=m[l[r]]&&(this[l[r]]=m[l[r]])}return g.prototype.dataPoints=C.emptyArray,g.prototype.aggregationTemporality=null,g.create=function(l){return new g(l)},g.encode=function(l,r){if(r||(r=h.create()),null!=l.dataPoints&&l.dataPoints.length)for(var u=0;u<l.dataPoints.length;++u)S.opentelemetry.proto.metrics.v1.HistogramDataPoint.encode(l.dataPoints[u],r.uint32(10).fork()).ldelim();return null!=l.aggregationTemporality&&Object.hasOwnProperty.call(l,"aggregationTemporality")&&r.uint32(16).int32(l.aggregationTemporality),r},g.encodeDelimited=function(l,r){return this.encode(l,r).ldelim()},g.decode=function(l,r){l instanceof n||(l=n.create(l));for(var u=void 0===r?l.len:l.pos+r,v=new S.opentelemetry.proto.metrics.v1.Histogram;l.pos<u;){var E=l.uint32();switch(E>>>3){case 1:v.dataPoints&&v.dataPoints.length||(v.dataPoints=[]),v.dataPoints.push(S.opentelemetry.proto.metrics.v1.HistogramDataPoint.decode(l,l.uint32()));break;case 2:v.aggregationTemporality=l.int32();break;default:l.skipType(7&E)}}return v},g.decodeDelimited=function(l){return l instanceof n||(l=new n(l)),this.decode(l,l.uint32())},g.verify=function(l){if("object"!=typeof l||null===l)return"object expected";if(null!=l.dataPoints&&l.hasOwnProperty("dataPoints")){if(!Array.isArray(l.dataPoints))return"dataPoints: array expected";for(var r=0;r<l.dataPoints.length;++r){var u=S.opentelemetry.proto.metrics.v1.HistogramDataPoint.verify(l.dataPoints[r]);if(u)return"dataPoints."+u}}if(null!=l.aggregationTemporality&&l.hasOwnProperty("aggregationTemporality"))switch(l.aggregationTemporality){default:return"aggregationTemporality: enum value expected";case 0:case 1:case 2:}return null},g.fromObject=function(l){if(l instanceof S.opentelemetry.proto.metrics.v1.Histogram)return l;var r=new S.opentelemetry.proto.metrics.v1.Histogram;if(l.dataPoints){if(!Array.isArray(l.dataPoints))throw TypeError(".opentelemetry.proto.metrics.v1.Histogram.dataPoints: array expected");r.dataPoints=[];for(var u=0;u<l.dataPoints.length;++u){if("object"!=typeof l.dataPoints[u])throw TypeError(".opentelemetry.proto.metrics.v1.Histogram.dataPoints: object expected");r.dataPoints[u]=S.opentelemetry.proto.metrics.v1.HistogramDataPoint.fromObject(l.dataPoints[u])}}switch(l.aggregationTemporality){default:if("number"==typeof l.aggregationTemporality){r.aggregationTemporality=l.aggregationTemporality;break}break;case"AGGREGATION_TEMPORALITY_UNSPECIFIED":case 0:r.aggregationTemporality=0;break;case"AGGREGATION_TEMPORALITY_DELTA":case 1:r.aggregationTemporality=1;break;case"AGGREGATION_TEMPORALITY_CUMULATIVE":case 2:r.aggregationTemporality=2}return r},g.toObject=function(l,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.dataPoints=[]),r.defaults&&(u.aggregationTemporality=r.enums===String?"AGGREGATION_TEMPORALITY_UNSPECIFIED":0),l.dataPoints&&l.dataPoints.length){u.dataPoints=[];for(var v=0;v<l.dataPoints.length;++v)u.dataPoints[v]=S.opentelemetry.proto.metrics.v1.HistogramDataPoint.toObject(l.dataPoints[v],r)}return null!=l.aggregationTemporality&&l.hasOwnProperty("aggregationTemporality")&&(u.aggregationTemporality=r.enums===String?void 0===S.opentelemetry.proto.metrics.v1.AggregationTemporality[l.aggregationTemporality]?l.aggregationTemporality:S.opentelemetry.proto.metrics.v1.AggregationTemporality[l.aggregationTemporality]:l.aggregationTemporality),u},g.prototype.toJSON=function(){return this.constructor.toObject(this,i.util.toJSONOptions)},g.getTypeUrl=function(l){return void 0===l&&(l="type.googleapis.com"),l+"/opentelemetry.proto.metrics.v1.Histogram"},g}(),A.ExponentialHistogram=function(){function g(m){if(this.dataPoints=[],m)for(var l=Object.keys(m),r=0;r<l.length;++r)null!=m[l[r]]&&(this[l[r]]=m[l[r]])}return g.prototype.dataPoints=C.emptyArray,g.prototype.aggregationTemporality=null,g.create=function(l){return new g(l)},g.encode=function(l,r){if(r||(r=h.create()),null!=l.dataPoints&&l.dataPoints.length)for(var u=0;u<l.dataPoints.length;++u)S.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.encode(l.dataPoints[u],r.uint32(10).fork()).ldelim();return null!=l.aggregationTemporality&&Object.hasOwnProperty.call(l,"aggregationTemporality")&&r.uint32(16).int32(l.aggregationTemporality),r},g.encodeDelimited=function(l,r){return this.encode(l,r).ldelim()},g.decode=function(l,r){l instanceof n||(l=n.create(l));for(var u=void 0===r?l.len:l.pos+r,v=new S.opentelemetry.proto.metrics.v1.ExponentialHistogram;l.pos<u;){var E=l.uint32();switch(E>>>3){case 1:v.dataPoints&&v.dataPoints.length||(v.dataPoints=[]),v.dataPoints.push(S.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.decode(l,l.uint32()));break;case 2:v.aggregationTemporality=l.int32();break;default:l.skipType(7&E)}}return v},g.decodeDelimited=function(l){return l instanceof n||(l=new n(l)),this.decode(l,l.uint32())},g.verify=function(l){if("object"!=typeof l||null===l)return"object expected";if(null!=l.dataPoints&&l.hasOwnProperty("dataPoints")){if(!Array.isArray(l.dataPoints))return"dataPoints: array expected";for(var r=0;r<l.dataPoints.length;++r){var u=S.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.verify(l.dataPoints[r]);if(u)return"dataPoints."+u}}if(null!=l.aggregationTemporality&&l.hasOwnProperty("aggregationTemporality"))switch(l.aggregationTemporality){default:return"aggregationTemporality: enum value expected";case 0:case 1:case 2:}return null},g.fromObject=function(l){if(l instanceof S.opentelemetry.proto.metrics.v1.ExponentialHistogram)return l;var r=new S.opentelemetry.proto.metrics.v1.ExponentialHistogram;if(l.dataPoints){if(!Array.isArray(l.dataPoints))throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogram.dataPoints: array expected");r.dataPoints=[];for(var u=0;u<l.dataPoints.length;++u){if("object"!=typeof l.dataPoints[u])throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogram.dataPoints: object expected");r.dataPoints[u]=S.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.fromObject(l.dataPoints[u])}}switch(l.aggregationTemporality){default:if("number"==typeof l.aggregationTemporality){r.aggregationTemporality=l.aggregationTemporality;break}break;case"AGGREGATION_TEMPORALITY_UNSPECIFIED":case 0:r.aggregationTemporality=0;break;case"AGGREGATION_TEMPORALITY_DELTA":case 1:r.aggregationTemporality=1;break;case"AGGREGATION_TEMPORALITY_CUMULATIVE":case 2:r.aggregationTemporality=2}return r},g.toObject=function(l,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.dataPoints=[]),r.defaults&&(u.aggregationTemporality=r.enums===String?"AGGREGATION_TEMPORALITY_UNSPECIFIED":0),l.dataPoints&&l.dataPoints.length){u.dataPoints=[];for(var v=0;v<l.dataPoints.length;++v)u.dataPoints[v]=S.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.toObject(l.dataPoints[v],r)}return null!=l.aggregationTemporality&&l.hasOwnProperty("aggregationTemporality")&&(u.aggregationTemporality=r.enums===String?void 0===S.opentelemetry.proto.metrics.v1.AggregationTemporality[l.aggregationTemporality]?l.aggregationTemporality:S.opentelemetry.proto.metrics.v1.AggregationTemporality[l.aggregationTemporality]:l.aggregationTemporality),u},g.prototype.toJSON=function(){return this.constructor.toObject(this,i.util.toJSONOptions)},g.getTypeUrl=function(l){return void 0===l&&(l="type.googleapis.com"),l+"/opentelemetry.proto.metrics.v1.ExponentialHistogram"},g}(),A.Summary=function(){function g(m){if(this.dataPoints=[],m)for(var l=Object.keys(m),r=0;r<l.length;++r)null!=m[l[r]]&&(this[l[r]]=m[l[r]])}return g.prototype.dataPoints=C.emptyArray,g.create=function(l){return new g(l)},g.encode=function(l,r){if(r||(r=h.create()),null!=l.dataPoints&&l.dataPoints.length)for(var u=0;u<l.dataPoints.length;++u)S.opentelemetry.proto.metrics.v1.SummaryDataPoint.encode(l.dataPoints[u],r.uint32(10).fork()).ldelim();return r},g.encodeDelimited=function(l,r){return this.encode(l,r).ldelim()},g.decode=function(l,r){l instanceof n||(l=n.create(l));for(var u=void 0===r?l.len:l.pos+r,v=new S.opentelemetry.proto.metrics.v1.Summary;l.pos<u;){var E=l.uint32();E>>>3==1?(v.dataPoints&&v.dataPoints.length||(v.dataPoints=[]),v.dataPoints.push(S.opentelemetry.proto.metrics.v1.SummaryDataPoint.decode(l,l.uint32()))):l.skipType(7&E)}return v},g.decodeDelimited=function(l){return l instanceof n||(l=new n(l)),this.decode(l,l.uint32())},g.verify=function(l){if("object"!=typeof l||null===l)return"object expected";if(null!=l.dataPoints&&l.hasOwnProperty("dataPoints")){if(!Array.isArray(l.dataPoints))return"dataPoints: array expected";for(var r=0;r<l.dataPoints.length;++r){var u=S.opentelemetry.proto.metrics.v1.SummaryDataPoint.verify(l.dataPoints[r]);if(u)return"dataPoints."+u}}return null},g.fromObject=function(l){if(l instanceof S.opentelemetry.proto.metrics.v1.Summary)return l;var r=new S.opentelemetry.proto.metrics.v1.Summary;if(l.dataPoints){if(!Array.isArray(l.dataPoints))throw TypeError(".opentelemetry.proto.metrics.v1.Summary.dataPoints: array expected");r.dataPoints=[];for(var u=0;u<l.dataPoints.length;++u){if("object"!=typeof l.dataPoints[u])throw TypeError(".opentelemetry.proto.metrics.v1.Summary.dataPoints: object expected");r.dataPoints[u]=S.opentelemetry.proto.metrics.v1.SummaryDataPoint.fromObject(l.dataPoints[u])}}return r},g.toObject=function(l,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.dataPoints=[]),l.dataPoints&&l.dataPoints.length){u.dataPoints=[];for(var v=0;v<l.dataPoints.length;++v)u.dataPoints[v]=S.opentelemetry.proto.metrics.v1.SummaryDataPoint.toObject(l.dataPoints[v],r)}return u},g.prototype.toJSON=function(){return this.constructor.toObject(this,i.util.toJSONOptions)},g.getTypeUrl=function(l){return void 0===l&&(l="type.googleapis.com"),l+"/opentelemetry.proto.metrics.v1.Summary"},g}(),A.AggregationTemporality=(g={},(m=Object.create(g))[g[0]="AGGREGATION_TEMPORALITY_UNSPECIFIED"]=0,m[g[1]="AGGREGATION_TEMPORALITY_DELTA"]=1,m[g[2]="AGGREGATION_TEMPORALITY_CUMULATIVE"]=2,m),A.DataPointFlags=function(){var g={},m=Object.create(g);return m[g[0]="DATA_POINT_FLAGS_DO_NOT_USE"]=0,m[g[1]="DATA_POINT_FLAGS_NO_RECORDED_VALUE_MASK"]=1,m}(),A.NumberDataPoint=function(){function g(l){if(this.attributes=[],this.exemplars=[],l)for(var r=Object.keys(l),u=0;u<r.length;++u)null!=l[r[u]]&&(this[r[u]]=l[r[u]])}var m;return g.prototype.attributes=C.emptyArray,g.prototype.startTimeUnixNano=null,g.prototype.timeUnixNano=null,g.prototype.asDouble=null,g.prototype.asInt=null,g.prototype.exemplars=C.emptyArray,g.prototype.flags=null,Object.defineProperty(g.prototype,"value",{get:C.oneOfGetter(m=["asDouble","asInt"]),set:C.oneOfSetter(m)}),g.create=function(r){return new g(r)},g.encode=function(r,u){if(u||(u=h.create()),null!=r.startTimeUnixNano&&Object.hasOwnProperty.call(r,"startTimeUnixNano")&&u.uint32(17).fixed64(r.startTimeUnixNano),null!=r.timeUnixNano&&Object.hasOwnProperty.call(r,"timeUnixNano")&&u.uint32(25).fixed64(r.timeUnixNano),null!=r.asDouble&&Object.hasOwnProperty.call(r,"asDouble")&&u.uint32(33).double(r.asDouble),null!=r.exemplars&&r.exemplars.length)for(var v=0;v<r.exemplars.length;++v)S.opentelemetry.proto.metrics.v1.Exemplar.encode(r.exemplars[v],u.uint32(42).fork()).ldelim();if(null!=r.asInt&&Object.hasOwnProperty.call(r,"asInt")&&u.uint32(49).sfixed64(r.asInt),null!=r.attributes&&r.attributes.length)for(v=0;v<r.attributes.length;++v)S.opentelemetry.proto.common.v1.KeyValue.encode(r.attributes[v],u.uint32(58).fork()).ldelim();return null!=r.flags&&Object.hasOwnProperty.call(r,"flags")&&u.uint32(64).uint32(r.flags),u},g.encodeDelimited=function(r,u){return this.encode(r,u).ldelim()},g.decode=function(r,u){r instanceof n||(r=n.create(r));for(var v=void 0===u?r.len:r.pos+u,E=new S.opentelemetry.proto.metrics.v1.NumberDataPoint;r.pos<v;){var T=r.uint32();switch(T>>>3){case 7:E.attributes&&E.attributes.length||(E.attributes=[]),E.attributes.push(S.opentelemetry.proto.common.v1.KeyValue.decode(r,r.uint32()));break;case 2:E.startTimeUnixNano=r.fixed64();break;case 3:E.timeUnixNano=r.fixed64();break;case 4:E.asDouble=r.double();break;case 6:E.asInt=r.sfixed64();break;case 5:E.exemplars&&E.exemplars.length||(E.exemplars=[]),E.exemplars.push(S.opentelemetry.proto.metrics.v1.Exemplar.decode(r,r.uint32()));break;case 8:E.flags=r.uint32();break;default:r.skipType(7&T)}}return E},g.decodeDelimited=function(r){return r instanceof n||(r=new n(r)),this.decode(r,r.uint32())},g.verify=function(r){if("object"!=typeof r||null===r)return"object expected";var u={};if(null!=r.attributes&&r.hasOwnProperty("attributes")){if(!Array.isArray(r.attributes))return"attributes: array expected";for(var v=0;v<r.attributes.length;++v)if(E=S.opentelemetry.proto.common.v1.KeyValue.verify(r.attributes[v]))return"attributes."+E}if(null!=r.startTimeUnixNano&&r.hasOwnProperty("startTimeUnixNano")&&!C.isInteger(r.startTimeUnixNano)&&!(r.startTimeUnixNano&&C.isInteger(r.startTimeUnixNano.low)&&C.isInteger(r.startTimeUnixNano.high)))return"startTimeUnixNano: integer|Long expected";if(null!=r.timeUnixNano&&r.hasOwnProperty("timeUnixNano")&&!C.isInteger(r.timeUnixNano)&&!(r.timeUnixNano&&C.isInteger(r.timeUnixNano.low)&&C.isInteger(r.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(null!=r.asDouble&&r.hasOwnProperty("asDouble")&&(u.value=1,"number"!=typeof r.asDouble))return"asDouble: number expected";if(null!=r.asInt&&r.hasOwnProperty("asInt")){if(1===u.value)return"value: multiple values";if(u.value=1,!(C.isInteger(r.asInt)||r.asInt&&C.isInteger(r.asInt.low)&&C.isInteger(r.asInt.high)))return"asInt: integer|Long expected"}if(null!=r.exemplars&&r.hasOwnProperty("exemplars")){if(!Array.isArray(r.exemplars))return"exemplars: array expected";for(v=0;v<r.exemplars.length;++v){var E;if(E=S.opentelemetry.proto.metrics.v1.Exemplar.verify(r.exemplars[v]))return"exemplars."+E}}return null!=r.flags&&r.hasOwnProperty("flags")&&!C.isInteger(r.flags)?"flags: integer expected":null},g.fromObject=function(r){if(r instanceof S.opentelemetry.proto.metrics.v1.NumberDataPoint)return r;var u=new S.opentelemetry.proto.metrics.v1.NumberDataPoint;if(r.attributes){if(!Array.isArray(r.attributes))throw TypeError(".opentelemetry.proto.metrics.v1.NumberDataPoint.attributes: array expected");u.attributes=[];for(var v=0;v<r.attributes.length;++v){if("object"!=typeof r.attributes[v])throw TypeError(".opentelemetry.proto.metrics.v1.NumberDataPoint.attributes: object expected");u.attributes[v]=S.opentelemetry.proto.common.v1.KeyValue.fromObject(r.attributes[v])}}if(null!=r.startTimeUnixNano&&(C.Long?(u.startTimeUnixNano=C.Long.fromValue(r.startTimeUnixNano)).unsigned=!1:"string"==typeof r.startTimeUnixNano?u.startTimeUnixNano=parseInt(r.startTimeUnixNano,10):"number"==typeof r.startTimeUnixNano?u.startTimeUnixNano=r.startTimeUnixNano:"object"==typeof r.startTimeUnixNano&&(u.startTimeUnixNano=new C.LongBits(r.startTimeUnixNano.low>>>0,r.startTimeUnixNano.high>>>0).toNumber())),null!=r.timeUnixNano&&(C.Long?(u.timeUnixNano=C.Long.fromValue(r.timeUnixNano)).unsigned=!1:"string"==typeof r.timeUnixNano?u.timeUnixNano=parseInt(r.timeUnixNano,10):"number"==typeof r.timeUnixNano?u.timeUnixNano=r.timeUnixNano:"object"==typeof r.timeUnixNano&&(u.timeUnixNano=new C.LongBits(r.timeUnixNano.low>>>0,r.timeUnixNano.high>>>0).toNumber())),null!=r.asDouble&&(u.asDouble=Number(r.asDouble)),null!=r.asInt&&(C.Long?(u.asInt=C.Long.fromValue(r.asInt)).unsigned=!1:"string"==typeof r.asInt?u.asInt=parseInt(r.asInt,10):"number"==typeof r.asInt?u.asInt=r.asInt:"object"==typeof r.asInt&&(u.asInt=new C.LongBits(r.asInt.low>>>0,r.asInt.high>>>0).toNumber())),r.exemplars){if(!Array.isArray(r.exemplars))throw TypeError(".opentelemetry.proto.metrics.v1.NumberDataPoint.exemplars: array expected");for(u.exemplars=[],v=0;v<r.exemplars.length;++v){if("object"!=typeof r.exemplars[v])throw TypeError(".opentelemetry.proto.metrics.v1.NumberDataPoint.exemplars: object expected");u.exemplars[v]=S.opentelemetry.proto.metrics.v1.Exemplar.fromObject(r.exemplars[v])}}return null!=r.flags&&(u.flags=r.flags>>>0),u},g.toObject=function(r,u){u||(u={});var v={};if((u.arrays||u.defaults)&&(v.exemplars=[],v.attributes=[]),u.defaults){if(C.Long){var E=new C.Long(0,0,!1);v.startTimeUnixNano=u.longs===String?E.toString():u.longs===Number?E.toNumber():E}else v.startTimeUnixNano=u.longs===String?"0":0;C.Long?(E=new C.Long(0,0,!1),v.timeUnixNano=u.longs===String?E.toString():u.longs===Number?E.toNumber():E):v.timeUnixNano=u.longs===String?"0":0,v.flags=0}if(null!=r.startTimeUnixNano&&r.hasOwnProperty("startTimeUnixNano")&&(v.startTimeUnixNano="number"==typeof r.startTimeUnixNano?u.longs===String?String(r.startTimeUnixNano):r.startTimeUnixNano:u.longs===String?C.Long.prototype.toString.call(r.startTimeUnixNano):u.longs===Number?new C.LongBits(r.startTimeUnixNano.low>>>0,r.startTimeUnixNano.high>>>0).toNumber():r.startTimeUnixNano),null!=r.timeUnixNano&&r.hasOwnProperty("timeUnixNano")&&(v.timeUnixNano="number"==typeof r.timeUnixNano?u.longs===String?String(r.timeUnixNano):r.timeUnixNano:u.longs===String?C.Long.prototype.toString.call(r.timeUnixNano):u.longs===Number?new C.LongBits(r.timeUnixNano.low>>>0,r.timeUnixNano.high>>>0).toNumber():r.timeUnixNano),null!=r.asDouble&&r.hasOwnProperty("asDouble")&&(v.asDouble=u.json&&!isFinite(r.asDouble)?String(r.asDouble):r.asDouble,u.oneofs&&(v.value="asDouble")),r.exemplars&&r.exemplars.length){v.exemplars=[];for(var T=0;T<r.exemplars.length;++T)v.exemplars[T]=S.opentelemetry.proto.metrics.v1.Exemplar.toObject(r.exemplars[T],u)}if(null!=r.asInt&&r.hasOwnProperty("asInt")&&(v.asInt="number"==typeof r.asInt?u.longs===String?String(r.asInt):r.asInt:u.longs===String?C.Long.prototype.toString.call(r.asInt):u.longs===Number?new C.LongBits(r.asInt.low>>>0,r.asInt.high>>>0).toNumber():r.asInt,u.oneofs&&(v.value="asInt")),r.attributes&&r.attributes.length)for(v.attributes=[],T=0;T<r.attributes.length;++T)v.attributes[T]=S.opentelemetry.proto.common.v1.KeyValue.toObject(r.attributes[T],u);return null!=r.flags&&r.hasOwnProperty("flags")&&(v.flags=r.flags),v},g.prototype.toJSON=function(){return this.constructor.toObject(this,i.util.toJSONOptions)},g.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/opentelemetry.proto.metrics.v1.NumberDataPoint"},g}(),A.HistogramDataPoint=function(){function g(l){if(this.attributes=[],this.bucketCounts=[],this.explicitBounds=[],this.exemplars=[],l)for(var r=Object.keys(l),u=0;u<r.length;++u)null!=l[r[u]]&&(this[r[u]]=l[r[u]])}var m;return g.prototype.attributes=C.emptyArray,g.prototype.startTimeUnixNano=null,g.prototype.timeUnixNano=null,g.prototype.count=null,g.prototype.sum=null,g.prototype.bucketCounts=C.emptyArray,g.prototype.explicitBounds=C.emptyArray,g.prototype.exemplars=C.emptyArray,g.prototype.flags=null,g.prototype.min=null,g.prototype.max=null,Object.defineProperty(g.prototype,"_sum",{get:C.oneOfGetter(m=["sum"]),set:C.oneOfSetter(m)}),Object.defineProperty(g.prototype,"_min",{get:C.oneOfGetter(m=["min"]),set:C.oneOfSetter(m)}),Object.defineProperty(g.prototype,"_max",{get:C.oneOfGetter(m=["max"]),set:C.oneOfSetter(m)}),g.create=function(r){return new g(r)},g.encode=function(r,u){if(u||(u=h.create()),null!=r.startTimeUnixNano&&Object.hasOwnProperty.call(r,"startTimeUnixNano")&&u.uint32(17).fixed64(r.startTimeUnixNano),null!=r.timeUnixNano&&Object.hasOwnProperty.call(r,"timeUnixNano")&&u.uint32(25).fixed64(r.timeUnixNano),null!=r.count&&Object.hasOwnProperty.call(r,"count")&&u.uint32(33).fixed64(r.count),null!=r.sum&&Object.hasOwnProperty.call(r,"sum")&&u.uint32(41).double(r.sum),null!=r.bucketCounts&&r.bucketCounts.length){u.uint32(50).fork();for(var v=0;v<r.bucketCounts.length;++v)u.fixed64(r.bucketCounts[v]);u.ldelim()}if(null!=r.explicitBounds&&r.explicitBounds.length){for(u.uint32(58).fork(),v=0;v<r.explicitBounds.length;++v)u.double(r.explicitBounds[v]);u.ldelim()}if(null!=r.exemplars&&r.exemplars.length)for(v=0;v<r.exemplars.length;++v)S.opentelemetry.proto.metrics.v1.Exemplar.encode(r.exemplars[v],u.uint32(66).fork()).ldelim();if(null!=r.attributes&&r.attributes.length)for(v=0;v<r.attributes.length;++v)S.opentelemetry.proto.common.v1.KeyValue.encode(r.attributes[v],u.uint32(74).fork()).ldelim();return null!=r.flags&&Object.hasOwnProperty.call(r,"flags")&&u.uint32(80).uint32(r.flags),null!=r.min&&Object.hasOwnProperty.call(r,"min")&&u.uint32(89).double(r.min),null!=r.max&&Object.hasOwnProperty.call(r,"max")&&u.uint32(97).double(r.max),u},g.encodeDelimited=function(r,u){return this.encode(r,u).ldelim()},g.decode=function(r,u){r instanceof n||(r=n.create(r));for(var v=void 0===u?r.len:r.pos+u,E=new S.opentelemetry.proto.metrics.v1.HistogramDataPoint;r.pos<v;){var T=r.uint32();switch(T>>>3){case 9:E.attributes&&E.attributes.length||(E.attributes=[]),E.attributes.push(S.opentelemetry.proto.common.v1.KeyValue.decode(r,r.uint32()));break;case 2:E.startTimeUnixNano=r.fixed64();break;case 3:E.timeUnixNano=r.fixed64();break;case 4:E.count=r.fixed64();break;case 5:E.sum=r.double();break;case 6:if(E.bucketCounts&&E.bucketCounts.length||(E.bucketCounts=[]),2==(7&T))for(var R=r.uint32()+r.pos;r.pos<R;)E.bucketCounts.push(r.fixed64());else E.bucketCounts.push(r.fixed64());break;case 7:if(E.explicitBounds&&E.explicitBounds.length||(E.explicitBounds=[]),2==(7&T))for(R=r.uint32()+r.pos;r.pos<R;)E.explicitBounds.push(r.double());else E.explicitBounds.push(r.double());break;case 8:E.exemplars&&E.exemplars.length||(E.exemplars=[]),E.exemplars.push(S.opentelemetry.proto.metrics.v1.Exemplar.decode(r,r.uint32()));break;case 10:E.flags=r.uint32();break;case 11:E.min=r.double();break;case 12:E.max=r.double();break;default:r.skipType(7&T)}}return E},g.decodeDelimited=function(r){return r instanceof n||(r=new n(r)),this.decode(r,r.uint32())},g.verify=function(r){if("object"!=typeof r||null===r)return"object expected";var u={};if(null!=r.attributes&&r.hasOwnProperty("attributes")){if(!Array.isArray(r.attributes))return"attributes: array expected";for(var v=0;v<r.attributes.length;++v)if(E=S.opentelemetry.proto.common.v1.KeyValue.verify(r.attributes[v]))return"attributes."+E}if(null!=r.startTimeUnixNano&&r.hasOwnProperty("startTimeUnixNano")&&!C.isInteger(r.startTimeUnixNano)&&!(r.startTimeUnixNano&&C.isInteger(r.startTimeUnixNano.low)&&C.isInteger(r.startTimeUnixNano.high)))return"startTimeUnixNano: integer|Long expected";if(null!=r.timeUnixNano&&r.hasOwnProperty("timeUnixNano")&&!C.isInteger(r.timeUnixNano)&&!(r.timeUnixNano&&C.isInteger(r.timeUnixNano.low)&&C.isInteger(r.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(null!=r.count&&r.hasOwnProperty("count")&&!C.isInteger(r.count)&&!(r.count&&C.isInteger(r.count.low)&&C.isInteger(r.count.high)))return"count: integer|Long expected";if(null!=r.sum&&r.hasOwnProperty("sum")&&(u._sum=1,"number"!=typeof r.sum))return"sum: number expected";if(null!=r.bucketCounts&&r.hasOwnProperty("bucketCounts")){if(!Array.isArray(r.bucketCounts))return"bucketCounts: array expected";for(v=0;v<r.bucketCounts.length;++v)if(!(C.isInteger(r.bucketCounts[v])||r.bucketCounts[v]&&C.isInteger(r.bucketCounts[v].low)&&C.isInteger(r.bucketCounts[v].high)))return"bucketCounts: integer|Long[] expected"}if(null!=r.explicitBounds&&r.hasOwnProperty("explicitBounds")){if(!Array.isArray(r.explicitBounds))return"explicitBounds: array expected";for(v=0;v<r.explicitBounds.length;++v)if("number"!=typeof r.explicitBounds[v])return"explicitBounds: number[] expected"}if(null!=r.exemplars&&r.hasOwnProperty("exemplars")){if(!Array.isArray(r.exemplars))return"exemplars: array expected";for(v=0;v<r.exemplars.length;++v){var E;if(E=S.opentelemetry.proto.metrics.v1.Exemplar.verify(r.exemplars[v]))return"exemplars."+E}}return null!=r.flags&&r.hasOwnProperty("flags")&&!C.isInteger(r.flags)?"flags: integer expected":null!=r.min&&r.hasOwnProperty("min")&&(u._min=1,"number"!=typeof r.min)?"min: number expected":null!=r.max&&r.hasOwnProperty("max")&&(u._max=1,"number"!=typeof r.max)?"max: number expected":null},g.fromObject=function(r){if(r instanceof S.opentelemetry.proto.metrics.v1.HistogramDataPoint)return r;var u=new S.opentelemetry.proto.metrics.v1.HistogramDataPoint;if(r.attributes){if(!Array.isArray(r.attributes))throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.attributes: array expected");u.attributes=[];for(var v=0;v<r.attributes.length;++v){if("object"!=typeof r.attributes[v])throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.attributes: object expected");u.attributes[v]=S.opentelemetry.proto.common.v1.KeyValue.fromObject(r.attributes[v])}}if(null!=r.startTimeUnixNano&&(C.Long?(u.startTimeUnixNano=C.Long.fromValue(r.startTimeUnixNano)).unsigned=!1:"string"==typeof r.startTimeUnixNano?u.startTimeUnixNano=parseInt(r.startTimeUnixNano,10):"number"==typeof r.startTimeUnixNano?u.startTimeUnixNano=r.startTimeUnixNano:"object"==typeof r.startTimeUnixNano&&(u.startTimeUnixNano=new C.LongBits(r.startTimeUnixNano.low>>>0,r.startTimeUnixNano.high>>>0).toNumber())),null!=r.timeUnixNano&&(C.Long?(u.timeUnixNano=C.Long.fromValue(r.timeUnixNano)).unsigned=!1:"string"==typeof r.timeUnixNano?u.timeUnixNano=parseInt(r.timeUnixNano,10):"number"==typeof r.timeUnixNano?u.timeUnixNano=r.timeUnixNano:"object"==typeof r.timeUnixNano&&(u.timeUnixNano=new C.LongBits(r.timeUnixNano.low>>>0,r.timeUnixNano.high>>>0).toNumber())),null!=r.count&&(C.Long?(u.count=C.Long.fromValue(r.count)).unsigned=!1:"string"==typeof r.count?u.count=parseInt(r.count,10):"number"==typeof r.count?u.count=r.count:"object"==typeof r.count&&(u.count=new C.LongBits(r.count.low>>>0,r.count.high>>>0).toNumber())),null!=r.sum&&(u.sum=Number(r.sum)),r.bucketCounts){if(!Array.isArray(r.bucketCounts))throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.bucketCounts: array expected");for(u.bucketCounts=[],v=0;v<r.bucketCounts.length;++v)C.Long?(u.bucketCounts[v]=C.Long.fromValue(r.bucketCounts[v])).unsigned=!1:"string"==typeof r.bucketCounts[v]?u.bucketCounts[v]=parseInt(r.bucketCounts[v],10):"number"==typeof r.bucketCounts[v]?u.bucketCounts[v]=r.bucketCounts[v]:"object"==typeof r.bucketCounts[v]&&(u.bucketCounts[v]=new C.LongBits(r.bucketCounts[v].low>>>0,r.bucketCounts[v].high>>>0).toNumber())}if(r.explicitBounds){if(!Array.isArray(r.explicitBounds))throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.explicitBounds: array expected");for(u.explicitBounds=[],v=0;v<r.explicitBounds.length;++v)u.explicitBounds[v]=Number(r.explicitBounds[v])}if(r.exemplars){if(!Array.isArray(r.exemplars))throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.exemplars: array expected");for(u.exemplars=[],v=0;v<r.exemplars.length;++v){if("object"!=typeof r.exemplars[v])throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.exemplars: object expected");u.exemplars[v]=S.opentelemetry.proto.metrics.v1.Exemplar.fromObject(r.exemplars[v])}}return null!=r.flags&&(u.flags=r.flags>>>0),null!=r.min&&(u.min=Number(r.min)),null!=r.max&&(u.max=Number(r.max)),u},g.toObject=function(r,u){u||(u={});var v={};if((u.arrays||u.defaults)&&(v.bucketCounts=[],v.explicitBounds=[],v.exemplars=[],v.attributes=[]),u.defaults){if(C.Long){var E=new C.Long(0,0,!1);v.startTimeUnixNano=u.longs===String?E.toString():u.longs===Number?E.toNumber():E}else v.startTimeUnixNano=u.longs===String?"0":0;C.Long?(E=new C.Long(0,0,!1),v.timeUnixNano=u.longs===String?E.toString():u.longs===Number?E.toNumber():E):v.timeUnixNano=u.longs===String?"0":0,C.Long?(E=new C.Long(0,0,!1),v.count=u.longs===String?E.toString():u.longs===Number?E.toNumber():E):v.count=u.longs===String?"0":0,v.flags=0}if(null!=r.startTimeUnixNano&&r.hasOwnProperty("startTimeUnixNano")&&(v.startTimeUnixNano="number"==typeof r.startTimeUnixNano?u.longs===String?String(r.startTimeUnixNano):r.startTimeUnixNano:u.longs===String?C.Long.prototype.toString.call(r.startTimeUnixNano):u.longs===Number?new C.LongBits(r.startTimeUnixNano.low>>>0,r.startTimeUnixNano.high>>>0).toNumber():r.startTimeUnixNano),null!=r.timeUnixNano&&r.hasOwnProperty("timeUnixNano")&&(v.timeUnixNano="number"==typeof r.timeUnixNano?u.longs===String?String(r.timeUnixNano):r.timeUnixNano:u.longs===String?C.Long.prototype.toString.call(r.timeUnixNano):u.longs===Number?new C.LongBits(r.timeUnixNano.low>>>0,r.timeUnixNano.high>>>0).toNumber():r.timeUnixNano),null!=r.count&&r.hasOwnProperty("count")&&(v.count="number"==typeof r.count?u.longs===String?String(r.count):r.count:u.longs===String?C.Long.prototype.toString.call(r.count):u.longs===Number?new C.LongBits(r.count.low>>>0,r.count.high>>>0).toNumber():r.count),null!=r.sum&&r.hasOwnProperty("sum")&&(v.sum=u.json&&!isFinite(r.sum)?String(r.sum):r.sum,u.oneofs&&(v._sum="sum")),r.bucketCounts&&r.bucketCounts.length){v.bucketCounts=[];for(var T=0;T<r.bucketCounts.length;++T)v.bucketCounts[T]="number"==typeof r.bucketCounts[T]?u.longs===String?String(r.bucketCounts[T]):r.bucketCounts[T]:u.longs===String?C.Long.prototype.toString.call(r.bucketCounts[T]):u.longs===Number?new C.LongBits(r.bucketCounts[T].low>>>0,r.bucketCounts[T].high>>>0).toNumber():r.bucketCounts[T]}if(r.explicitBounds&&r.explicitBounds.length)for(v.explicitBounds=[],T=0;T<r.explicitBounds.length;++T)v.explicitBounds[T]=u.json&&!isFinite(r.explicitBounds[T])?String(r.explicitBounds[T]):r.explicitBounds[T];if(r.exemplars&&r.exemplars.length)for(v.exemplars=[],T=0;T<r.exemplars.length;++T)v.exemplars[T]=S.opentelemetry.proto.metrics.v1.Exemplar.toObject(r.exemplars[T],u);if(r.attributes&&r.attributes.length)for(v.attributes=[],T=0;T<r.attributes.length;++T)v.attributes[T]=S.opentelemetry.proto.common.v1.KeyValue.toObject(r.attributes[T],u);return null!=r.flags&&r.hasOwnProperty("flags")&&(v.flags=r.flags),null!=r.min&&r.hasOwnProperty("min")&&(v.min=u.json&&!isFinite(r.min)?String(r.min):r.min,u.oneofs&&(v._min="min")),null!=r.max&&r.hasOwnProperty("max")&&(v.max=u.json&&!isFinite(r.max)?String(r.max):r.max,u.oneofs&&(v._max="max")),v},g.prototype.toJSON=function(){return this.constructor.toObject(this,i.util.toJSONOptions)},g.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/opentelemetry.proto.metrics.v1.HistogramDataPoint"},g}(),A.ExponentialHistogramDataPoint=function(){function g(l){if(this.attributes=[],this.exemplars=[],l)for(var r=Object.keys(l),u=0;u<r.length;++u)null!=l[r[u]]&&(this[r[u]]=l[r[u]])}var m;return g.prototype.attributes=C.emptyArray,g.prototype.startTimeUnixNano=null,g.prototype.timeUnixNano=null,g.prototype.count=null,g.prototype.sum=null,g.prototype.scale=null,g.prototype.zeroCount=null,g.prototype.positive=null,g.prototype.negative=null,g.prototype.flags=null,g.prototype.exemplars=C.emptyArray,g.prototype.min=null,g.prototype.max=null,g.prototype.zeroThreshold=null,Object.defineProperty(g.prototype,"_sum",{get:C.oneOfGetter(m=["sum"]),set:C.oneOfSetter(m)}),Object.defineProperty(g.prototype,"_min",{get:C.oneOfGetter(m=["min"]),set:C.oneOfSetter(m)}),Object.defineProperty(g.prototype,"_max",{get:C.oneOfGetter(m=["max"]),set:C.oneOfSetter(m)}),g.create=function(r){return new g(r)},g.encode=function(r,u){if(u||(u=h.create()),null!=r.attributes&&r.attributes.length)for(var v=0;v<r.attributes.length;++v)S.opentelemetry.proto.common.v1.KeyValue.encode(r.attributes[v],u.uint32(10).fork()).ldelim();if(null!=r.startTimeUnixNano&&Object.hasOwnProperty.call(r,"startTimeUnixNano")&&u.uint32(17).fixed64(r.startTimeUnixNano),null!=r.timeUnixNano&&Object.hasOwnProperty.call(r,"timeUnixNano")&&u.uint32(25).fixed64(r.timeUnixNano),null!=r.count&&Object.hasOwnProperty.call(r,"count")&&u.uint32(33).fixed64(r.count),null!=r.sum&&Object.hasOwnProperty.call(r,"sum")&&u.uint32(41).double(r.sum),null!=r.scale&&Object.hasOwnProperty.call(r,"scale")&&u.uint32(48).sint32(r.scale),null!=r.zeroCount&&Object.hasOwnProperty.call(r,"zeroCount")&&u.uint32(57).fixed64(r.zeroCount),null!=r.positive&&Object.hasOwnProperty.call(r,"positive")&&S.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.encode(r.positive,u.uint32(66).fork()).ldelim(),null!=r.negative&&Object.hasOwnProperty.call(r,"negative")&&S.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.encode(r.negative,u.uint32(74).fork()).ldelim(),null!=r.flags&&Object.hasOwnProperty.call(r,"flags")&&u.uint32(80).uint32(r.flags),null!=r.exemplars&&r.exemplars.length)for(v=0;v<r.exemplars.length;++v)S.opentelemetry.proto.metrics.v1.Exemplar.encode(r.exemplars[v],u.uint32(90).fork()).ldelim();return null!=r.min&&Object.hasOwnProperty.call(r,"min")&&u.uint32(97).double(r.min),null!=r.max&&Object.hasOwnProperty.call(r,"max")&&u.uint32(105).double(r.max),null!=r.zeroThreshold&&Object.hasOwnProperty.call(r,"zeroThreshold")&&u.uint32(113).double(r.zeroThreshold),u},g.encodeDelimited=function(r,u){return this.encode(r,u).ldelim()},g.decode=function(r,u){r instanceof n||(r=n.create(r));for(var v=void 0===u?r.len:r.pos+u,E=new S.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint;r.pos<v;){var T=r.uint32();switch(T>>>3){case 1:E.attributes&&E.attributes.length||(E.attributes=[]),E.attributes.push(S.opentelemetry.proto.common.v1.KeyValue.decode(r,r.uint32()));break;case 2:E.startTimeUnixNano=r.fixed64();break;case 3:E.timeUnixNano=r.fixed64();break;case 4:E.count=r.fixed64();break;case 5:E.sum=r.double();break;case 6:E.scale=r.sint32();break;case 7:E.zeroCount=r.fixed64();break;case 8:E.positive=S.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.decode(r,r.uint32());break;case 9:E.negative=S.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.decode(r,r.uint32());break;case 10:E.flags=r.uint32();break;case 11:E.exemplars&&E.exemplars.length||(E.exemplars=[]),E.exemplars.push(S.opentelemetry.proto.metrics.v1.Exemplar.decode(r,r.uint32()));break;case 12:E.min=r.double();break;case 13:E.max=r.double();break;case 14:E.zeroThreshold=r.double();break;default:r.skipType(7&T)}}return E},g.decodeDelimited=function(r){return r instanceof n||(r=new n(r)),this.decode(r,r.uint32())},g.verify=function(r){if("object"!=typeof r||null===r)return"object expected";var u={};if(null!=r.attributes&&r.hasOwnProperty("attributes")){if(!Array.isArray(r.attributes))return"attributes: array expected";for(var v=0;v<r.attributes.length;++v)if(E=S.opentelemetry.proto.common.v1.KeyValue.verify(r.attributes[v]))return"attributes."+E}if(null!=r.startTimeUnixNano&&r.hasOwnProperty("startTimeUnixNano")&&!C.isInteger(r.startTimeUnixNano)&&!(r.startTimeUnixNano&&C.isInteger(r.startTimeUnixNano.low)&&C.isInteger(r.startTimeUnixNano.high)))return"startTimeUnixNano: integer|Long expected";if(null!=r.timeUnixNano&&r.hasOwnProperty("timeUnixNano")&&!C.isInteger(r.timeUnixNano)&&!(r.timeUnixNano&&C.isInteger(r.timeUnixNano.low)&&C.isInteger(r.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(null!=r.count&&r.hasOwnProperty("count")&&!C.isInteger(r.count)&&!(r.count&&C.isInteger(r.count.low)&&C.isInteger(r.count.high)))return"count: integer|Long expected";if(null!=r.sum&&r.hasOwnProperty("sum")&&(u._sum=1,"number"!=typeof r.sum))return"sum: number expected";if(null!=r.scale&&r.hasOwnProperty("scale")&&!C.isInteger(r.scale))return"scale: integer expected";if(null!=r.zeroCount&&r.hasOwnProperty("zeroCount")&&!C.isInteger(r.zeroCount)&&!(r.zeroCount&&C.isInteger(r.zeroCount.low)&&C.isInteger(r.zeroCount.high)))return"zeroCount: integer|Long expected";if(null!=r.positive&&r.hasOwnProperty("positive")&&(E=S.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.verify(r.positive)))return"positive."+E;if(null!=r.negative&&r.hasOwnProperty("negative")&&(E=S.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.verify(r.negative)))return"negative."+E;if(null!=r.flags&&r.hasOwnProperty("flags")&&!C.isInteger(r.flags))return"flags: integer expected";if(null!=r.exemplars&&r.hasOwnProperty("exemplars")){if(!Array.isArray(r.exemplars))return"exemplars: array expected";for(v=0;v<r.exemplars.length;++v){var E;if(E=S.opentelemetry.proto.metrics.v1.Exemplar.verify(r.exemplars[v]))return"exemplars."+E}}return null!=r.min&&r.hasOwnProperty("min")&&(u._min=1,"number"!=typeof r.min)?"min: number expected":null!=r.max&&r.hasOwnProperty("max")&&(u._max=1,"number"!=typeof r.max)?"max: number expected":null!=r.zeroThreshold&&r.hasOwnProperty("zeroThreshold")&&"number"!=typeof r.zeroThreshold?"zeroThreshold: number expected":null},g.fromObject=function(r){if(r instanceof S.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint)return r;var u=new S.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint;if(r.attributes){if(!Array.isArray(r.attributes))throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.attributes: array expected");u.attributes=[];for(var v=0;v<r.attributes.length;++v){if("object"!=typeof r.attributes[v])throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.attributes: object expected");u.attributes[v]=S.opentelemetry.proto.common.v1.KeyValue.fromObject(r.attributes[v])}}if(null!=r.startTimeUnixNano&&(C.Long?(u.startTimeUnixNano=C.Long.fromValue(r.startTimeUnixNano)).unsigned=!1:"string"==typeof r.startTimeUnixNano?u.startTimeUnixNano=parseInt(r.startTimeUnixNano,10):"number"==typeof r.startTimeUnixNano?u.startTimeUnixNano=r.startTimeUnixNano:"object"==typeof r.startTimeUnixNano&&(u.startTimeUnixNano=new C.LongBits(r.startTimeUnixNano.low>>>0,r.startTimeUnixNano.high>>>0).toNumber())),null!=r.timeUnixNano&&(C.Long?(u.timeUnixNano=C.Long.fromValue(r.timeUnixNano)).unsigned=!1:"string"==typeof r.timeUnixNano?u.timeUnixNano=parseInt(r.timeUnixNano,10):"number"==typeof r.timeUnixNano?u.timeUnixNano=r.timeUnixNano:"object"==typeof r.timeUnixNano&&(u.timeUnixNano=new C.LongBits(r.timeUnixNano.low>>>0,r.timeUnixNano.high>>>0).toNumber())),null!=r.count&&(C.Long?(u.count=C.Long.fromValue(r.count)).unsigned=!1:"string"==typeof r.count?u.count=parseInt(r.count,10):"number"==typeof r.count?u.count=r.count:"object"==typeof r.count&&(u.count=new C.LongBits(r.count.low>>>0,r.count.high>>>0).toNumber())),null!=r.sum&&(u.sum=Number(r.sum)),null!=r.scale&&(u.scale=0|r.scale),null!=r.zeroCount&&(C.Long?(u.zeroCount=C.Long.fromValue(r.zeroCount)).unsigned=!1:"string"==typeof r.zeroCount?u.zeroCount=parseInt(r.zeroCount,10):"number"==typeof r.zeroCount?u.zeroCount=r.zeroCount:"object"==typeof r.zeroCount&&(u.zeroCount=new C.LongBits(r.zeroCount.low>>>0,r.zeroCount.high>>>0).toNumber())),null!=r.positive){if("object"!=typeof r.positive)throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.positive: object expected");u.positive=S.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.fromObject(r.positive)}if(null!=r.negative){if("object"!=typeof r.negative)throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.negative: object expected");u.negative=S.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.fromObject(r.negative)}if(null!=r.flags&&(u.flags=r.flags>>>0),r.exemplars){if(!Array.isArray(r.exemplars))throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.exemplars: array expected");for(u.exemplars=[],v=0;v<r.exemplars.length;++v){if("object"!=typeof r.exemplars[v])throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.exemplars: object expected");u.exemplars[v]=S.opentelemetry.proto.metrics.v1.Exemplar.fromObject(r.exemplars[v])}}return null!=r.min&&(u.min=Number(r.min)),null!=r.max&&(u.max=Number(r.max)),null!=r.zeroThreshold&&(u.zeroThreshold=Number(r.zeroThreshold)),u},g.toObject=function(r,u){u||(u={});var v={};if((u.arrays||u.defaults)&&(v.attributes=[],v.exemplars=[]),u.defaults){if(C.Long){var E=new C.Long(0,0,!1);v.startTimeUnixNano=u.longs===String?E.toString():u.longs===Number?E.toNumber():E}else v.startTimeUnixNano=u.longs===String?"0":0;C.Long?(E=new C.Long(0,0,!1),v.timeUnixNano=u.longs===String?E.toString():u.longs===Number?E.toNumber():E):v.timeUnixNano=u.longs===String?"0":0,C.Long?(E=new C.Long(0,0,!1),v.count=u.longs===String?E.toString():u.longs===Number?E.toNumber():E):v.count=u.longs===String?"0":0,v.scale=0,C.Long?(E=new C.Long(0,0,!1),v.zeroCount=u.longs===String?E.toString():u.longs===Number?E.toNumber():E):v.zeroCount=u.longs===String?"0":0,v.positive=null,v.negative=null,v.flags=0,v.zeroThreshold=0}if(r.attributes&&r.attributes.length){v.attributes=[];for(var T=0;T<r.attributes.length;++T)v.attributes[T]=S.opentelemetry.proto.common.v1.KeyValue.toObject(r.attributes[T],u)}if(null!=r.startTimeUnixNano&&r.hasOwnProperty("startTimeUnixNano")&&(v.startTimeUnixNano="number"==typeof r.startTimeUnixNano?u.longs===String?String(r.startTimeUnixNano):r.startTimeUnixNano:u.longs===String?C.Long.prototype.toString.call(r.startTimeUnixNano):u.longs===Number?new C.LongBits(r.startTimeUnixNano.low>>>0,r.startTimeUnixNano.high>>>0).toNumber():r.startTimeUnixNano),null!=r.timeUnixNano&&r.hasOwnProperty("timeUnixNano")&&(v.timeUnixNano="number"==typeof r.timeUnixNano?u.longs===String?String(r.timeUnixNano):r.timeUnixNano:u.longs===String?C.Long.prototype.toString.call(r.timeUnixNano):u.longs===Number?new C.LongBits(r.timeUnixNano.low>>>0,r.timeUnixNano.high>>>0).toNumber():r.timeUnixNano),null!=r.count&&r.hasOwnProperty("count")&&(v.count="number"==typeof r.count?u.longs===String?String(r.count):r.count:u.longs===String?C.Long.prototype.toString.call(r.count):u.longs===Number?new C.LongBits(r.count.low>>>0,r.count.high>>>0).toNumber():r.count),null!=r.sum&&r.hasOwnProperty("sum")&&(v.sum=u.json&&!isFinite(r.sum)?String(r.sum):r.sum,u.oneofs&&(v._sum="sum")),null!=r.scale&&r.hasOwnProperty("scale")&&(v.scale=r.scale),null!=r.zeroCount&&r.hasOwnProperty("zeroCount")&&(v.zeroCount="number"==typeof r.zeroCount?u.longs===String?String(r.zeroCount):r.zeroCount:u.longs===String?C.Long.prototype.toString.call(r.zeroCount):u.longs===Number?new C.LongBits(r.zeroCount.low>>>0,r.zeroCount.high>>>0).toNumber():r.zeroCount),null!=r.positive&&r.hasOwnProperty("positive")&&(v.positive=S.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.toObject(r.positive,u)),null!=r.negative&&r.hasOwnProperty("negative")&&(v.negative=S.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.toObject(r.negative,u)),null!=r.flags&&r.hasOwnProperty("flags")&&(v.flags=r.flags),r.exemplars&&r.exemplars.length)for(v.exemplars=[],T=0;T<r.exemplars.length;++T)v.exemplars[T]=S.opentelemetry.proto.metrics.v1.Exemplar.toObject(r.exemplars[T],u);return null!=r.min&&r.hasOwnProperty("min")&&(v.min=u.json&&!isFinite(r.min)?String(r.min):r.min,u.oneofs&&(v._min="min")),null!=r.max&&r.hasOwnProperty("max")&&(v.max=u.json&&!isFinite(r.max)?String(r.max):r.max,u.oneofs&&(v._max="max")),null!=r.zeroThreshold&&r.hasOwnProperty("zeroThreshold")&&(v.zeroThreshold=u.json&&!isFinite(r.zeroThreshold)?String(r.zeroThreshold):r.zeroThreshold),v},g.prototype.toJSON=function(){return this.constructor.toObject(this,i.util.toJSONOptions)},g.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint"},g.Buckets=function(){function l(r){if(this.bucketCounts=[],r)for(var u=Object.keys(r),v=0;v<u.length;++v)null!=r[u[v]]&&(this[u[v]]=r[u[v]])}return l.prototype.offset=null,l.prototype.bucketCounts=C.emptyArray,l.create=function(u){return new l(u)},l.encode=function(u,v){if(v||(v=h.create()),null!=u.offset&&Object.hasOwnProperty.call(u,"offset")&&v.uint32(8).sint32(u.offset),null!=u.bucketCounts&&u.bucketCounts.length){v.uint32(18).fork();for(var E=0;E<u.bucketCounts.length;++E)v.uint64(u.bucketCounts[E]);v.ldelim()}return v},l.encodeDelimited=function(u,v){return this.encode(u,v).ldelim()},l.decode=function(u,v){u instanceof n||(u=n.create(u));for(var E=void 0===v?u.len:u.pos+v,T=new S.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets;u.pos<E;){var R=u.uint32();switch(R>>>3){case 1:T.offset=u.sint32();break;case 2:if(T.bucketCounts&&T.bucketCounts.length||(T.bucketCounts=[]),2==(7&R))for(var B=u.uint32()+u.pos;u.pos<B;)T.bucketCounts.push(u.uint64());else T.bucketCounts.push(u.uint64());break;default:u.skipType(7&R)}}return T},l.decodeDelimited=function(u){return u instanceof n||(u=new n(u)),this.decode(u,u.uint32())},l.verify=function(u){if("object"!=typeof u||null===u)return"object expected";if(null!=u.offset&&u.hasOwnProperty("offset")&&!C.isInteger(u.offset))return"offset: integer expected";if(null!=u.bucketCounts&&u.hasOwnProperty("bucketCounts")){if(!Array.isArray(u.bucketCounts))return"bucketCounts: array expected";for(var v=0;v<u.bucketCounts.length;++v)if(!(C.isInteger(u.bucketCounts[v])||u.bucketCounts[v]&&C.isInteger(u.bucketCounts[v].low)&&C.isInteger(u.bucketCounts[v].high)))return"bucketCounts: integer|Long[] expected"}return null},l.fromObject=function(u){if(u instanceof S.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets)return u;var v=new S.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets;if(null!=u.offset&&(v.offset=0|u.offset),u.bucketCounts){if(!Array.isArray(u.bucketCounts))throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.bucketCounts: array expected");v.bucketCounts=[];for(var E=0;E<u.bucketCounts.length;++E)C.Long?(v.bucketCounts[E]=C.Long.fromValue(u.bucketCounts[E])).unsigned=!0:"string"==typeof u.bucketCounts[E]?v.bucketCounts[E]=parseInt(u.bucketCounts[E],10):"number"==typeof u.bucketCounts[E]?v.bucketCounts[E]=u.bucketCounts[E]:"object"==typeof u.bucketCounts[E]&&(v.bucketCounts[E]=new C.LongBits(u.bucketCounts[E].low>>>0,u.bucketCounts[E].high>>>0).toNumber(!0))}return v},l.toObject=function(u,v){v||(v={});var E={};if((v.arrays||v.defaults)&&(E.bucketCounts=[]),v.defaults&&(E.offset=0),null!=u.offset&&u.hasOwnProperty("offset")&&(E.offset=u.offset),u.bucketCounts&&u.bucketCounts.length){E.bucketCounts=[];for(var T=0;T<u.bucketCounts.length;++T)E.bucketCounts[T]="number"==typeof u.bucketCounts[T]?v.longs===String?String(u.bucketCounts[T]):u.bucketCounts[T]:v.longs===String?C.Long.prototype.toString.call(u.bucketCounts[T]):v.longs===Number?new C.LongBits(u.bucketCounts[T].low>>>0,u.bucketCounts[T].high>>>0).toNumber(!0):u.bucketCounts[T]}return E},l.prototype.toJSON=function(){return this.constructor.toObject(this,i.util.toJSONOptions)},l.getTypeUrl=function(u){return void 0===u&&(u="type.googleapis.com"),u+"/opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets"},l}(),g}(),A.SummaryDataPoint=function(){function g(m){if(this.attributes=[],this.quantileValues=[],m)for(var l=Object.keys(m),r=0;r<l.length;++r)null!=m[l[r]]&&(this[l[r]]=m[l[r]])}return g.prototype.attributes=C.emptyArray,g.prototype.startTimeUnixNano=null,g.prototype.timeUnixNano=null,g.prototype.count=null,g.prototype.sum=null,g.prototype.quantileValues=C.emptyArray,g.prototype.flags=null,g.create=function(l){return new g(l)},g.encode=function(l,r){if(r||(r=h.create()),null!=l.startTimeUnixNano&&Object.hasOwnProperty.call(l,"startTimeUnixNano")&&r.uint32(17).fixed64(l.startTimeUnixNano),null!=l.timeUnixNano&&Object.hasOwnProperty.call(l,"timeUnixNano")&&r.uint32(25).fixed64(l.timeUnixNano),null!=l.count&&Object.hasOwnProperty.call(l,"count")&&r.uint32(33).fixed64(l.count),null!=l.sum&&Object.hasOwnProperty.call(l,"sum")&&r.uint32(41).double(l.sum),null!=l.quantileValues&&l.quantileValues.length)for(var u=0;u<l.quantileValues.length;++u)S.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.encode(l.quantileValues[u],r.uint32(50).fork()).ldelim();if(null!=l.attributes&&l.attributes.length)for(u=0;u<l.attributes.length;++u)S.opentelemetry.proto.common.v1.KeyValue.encode(l.attributes[u],r.uint32(58).fork()).ldelim();return null!=l.flags&&Object.hasOwnProperty.call(l,"flags")&&r.uint32(64).uint32(l.flags),r},g.encodeDelimited=function(l,r){return this.encode(l,r).ldelim()},g.decode=function(l,r){l instanceof n||(l=n.create(l));for(var u=void 0===r?l.len:l.pos+r,v=new S.opentelemetry.proto.metrics.v1.SummaryDataPoint;l.pos<u;){var E=l.uint32();switch(E>>>3){case 7:v.attributes&&v.attributes.length||(v.attributes=[]),v.attributes.push(S.opentelemetry.proto.common.v1.KeyValue.decode(l,l.uint32()));break;case 2:v.startTimeUnixNano=l.fixed64();break;case 3:v.timeUnixNano=l.fixed64();break;case 4:v.count=l.fixed64();break;case 5:v.sum=l.double();break;case 6:v.quantileValues&&v.quantileValues.length||(v.quantileValues=[]),v.quantileValues.push(S.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.decode(l,l.uint32()));break;case 8:v.flags=l.uint32();break;default:l.skipType(7&E)}}return v},g.decodeDelimited=function(l){return l instanceof n||(l=new n(l)),this.decode(l,l.uint32())},g.verify=function(l){if("object"!=typeof l||null===l)return"object expected";if(null!=l.attributes&&l.hasOwnProperty("attributes")){if(!Array.isArray(l.attributes))return"attributes: array expected";for(var r=0;r<l.attributes.length;++r)if(u=S.opentelemetry.proto.common.v1.KeyValue.verify(l.attributes[r]))return"attributes."+u}if(null!=l.startTimeUnixNano&&l.hasOwnProperty("startTimeUnixNano")&&!C.isInteger(l.startTimeUnixNano)&&!(l.startTimeUnixNano&&C.isInteger(l.startTimeUnixNano.low)&&C.isInteger(l.startTimeUnixNano.high)))return"startTimeUnixNano: integer|Long expected";if(null!=l.timeUnixNano&&l.hasOwnProperty("timeUnixNano")&&!C.isInteger(l.timeUnixNano)&&!(l.timeUnixNano&&C.isInteger(l.timeUnixNano.low)&&C.isInteger(l.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(null!=l.count&&l.hasOwnProperty("count")&&!C.isInteger(l.count)&&!(l.count&&C.isInteger(l.count.low)&&C.isInteger(l.count.high)))return"count: integer|Long expected";if(null!=l.sum&&l.hasOwnProperty("sum")&&"number"!=typeof l.sum)return"sum: number expected";if(null!=l.quantileValues&&l.hasOwnProperty("quantileValues")){if(!Array.isArray(l.quantileValues))return"quantileValues: array expected";for(r=0;r<l.quantileValues.length;++r){var u;if(u=S.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.verify(l.quantileValues[r]))return"quantileValues."+u}}return null!=l.flags&&l.hasOwnProperty("flags")&&!C.isInteger(l.flags)?"flags: integer expected":null},g.fromObject=function(l){if(l instanceof S.opentelemetry.proto.metrics.v1.SummaryDataPoint)return l;var r=new S.opentelemetry.proto.metrics.v1.SummaryDataPoint;if(l.attributes){if(!Array.isArray(l.attributes))throw TypeError(".opentelemetry.proto.metrics.v1.SummaryDataPoint.attributes: array expected");r.attributes=[];for(var u=0;u<l.attributes.length;++u){if("object"!=typeof l.attributes[u])throw TypeError(".opentelemetry.proto.metrics.v1.SummaryDataPoint.attributes: object expected");r.attributes[u]=S.opentelemetry.proto.common.v1.KeyValue.fromObject(l.attributes[u])}}if(null!=l.startTimeUnixNano&&(C.Long?(r.startTimeUnixNano=C.Long.fromValue(l.startTimeUnixNano)).unsigned=!1:"string"==typeof l.startTimeUnixNano?r.startTimeUnixNano=parseInt(l.startTimeUnixNano,10):"number"==typeof l.startTimeUnixNano?r.startTimeUnixNano=l.startTimeUnixNano:"object"==typeof l.startTimeUnixNano&&(r.startTimeUnixNano=new C.LongBits(l.startTimeUnixNano.low>>>0,l.startTimeUnixNano.high>>>0).toNumber())),null!=l.timeUnixNano&&(C.Long?(r.timeUnixNano=C.Long.fromValue(l.timeUnixNano)).unsigned=!1:"string"==typeof l.timeUnixNano?r.timeUnixNano=parseInt(l.timeUnixNano,10):"number"==typeof l.timeUnixNano?r.timeUnixNano=l.timeUnixNano:"object"==typeof l.timeUnixNano&&(r.timeUnixNano=new C.LongBits(l.timeUnixNano.low>>>0,l.timeUnixNano.high>>>0).toNumber())),null!=l.count&&(C.Long?(r.count=C.Long.fromValue(l.count)).unsigned=!1:"string"==typeof l.count?r.count=parseInt(l.count,10):"number"==typeof l.count?r.count=l.count:"object"==typeof l.count&&(r.count=new C.LongBits(l.count.low>>>0,l.count.high>>>0).toNumber())),null!=l.sum&&(r.sum=Number(l.sum)),l.quantileValues){if(!Array.isArray(l.quantileValues))throw TypeError(".opentelemetry.proto.metrics.v1.SummaryDataPoint.quantileValues: array expected");for(r.quantileValues=[],u=0;u<l.quantileValues.length;++u){if("object"!=typeof l.quantileValues[u])throw TypeError(".opentelemetry.proto.metrics.v1.SummaryDataPoint.quantileValues: object expected");r.quantileValues[u]=S.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.fromObject(l.quantileValues[u])}}return null!=l.flags&&(r.flags=l.flags>>>0),r},g.toObject=function(l,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.quantileValues=[],u.attributes=[]),r.defaults){if(C.Long){var v=new C.Long(0,0,!1);u.startTimeUnixNano=r.longs===String?v.toString():r.longs===Number?v.toNumber():v}else u.startTimeUnixNano=r.longs===String?"0":0;C.Long?(v=new C.Long(0,0,!1),u.timeUnixNano=r.longs===String?v.toString():r.longs===Number?v.toNumber():v):u.timeUnixNano=r.longs===String?"0":0,C.Long?(v=new C.Long(0,0,!1),u.count=r.longs===String?v.toString():r.longs===Number?v.toNumber():v):u.count=r.longs===String?"0":0,u.sum=0,u.flags=0}if(null!=l.startTimeUnixNano&&l.hasOwnProperty("startTimeUnixNano")&&(u.startTimeUnixNano="number"==typeof l.startTimeUnixNano?r.longs===String?String(l.startTimeUnixNano):l.startTimeUnixNano:r.longs===String?C.Long.prototype.toString.call(l.startTimeUnixNano):r.longs===Number?new C.LongBits(l.startTimeUnixNano.low>>>0,l.startTimeUnixNano.high>>>0).toNumber():l.startTimeUnixNano),null!=l.timeUnixNano&&l.hasOwnProperty("timeUnixNano")&&(u.timeUnixNano="number"==typeof l.timeUnixNano?r.longs===String?String(l.timeUnixNano):l.timeUnixNano:r.longs===String?C.Long.prototype.toString.call(l.timeUnixNano):r.longs===Number?new C.LongBits(l.timeUnixNano.low>>>0,l.timeUnixNano.high>>>0).toNumber():l.timeUnixNano),null!=l.count&&l.hasOwnProperty("count")&&(u.count="number"==typeof l.count?r.longs===String?String(l.count):l.count:r.longs===String?C.Long.prototype.toString.call(l.count):r.longs===Number?new C.LongBits(l.count.low>>>0,l.count.high>>>0).toNumber():l.count),null!=l.sum&&l.hasOwnProperty("sum")&&(u.sum=r.json&&!isFinite(l.sum)?String(l.sum):l.sum),l.quantileValues&&l.quantileValues.length){u.quantileValues=[];for(var E=0;E<l.quantileValues.length;++E)u.quantileValues[E]=S.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.toObject(l.quantileValues[E],r)}if(l.attributes&&l.attributes.length)for(u.attributes=[],E=0;E<l.attributes.length;++E)u.attributes[E]=S.opentelemetry.proto.common.v1.KeyValue.toObject(l.attributes[E],r);return null!=l.flags&&l.hasOwnProperty("flags")&&(u.flags=l.flags),u},g.prototype.toJSON=function(){return this.constructor.toObject(this,i.util.toJSONOptions)},g.getTypeUrl=function(l){return void 0===l&&(l="type.googleapis.com"),l+"/opentelemetry.proto.metrics.v1.SummaryDataPoint"},g.ValueAtQuantile=function(){function m(l){if(l)for(var r=Object.keys(l),u=0;u<r.length;++u)null!=l[r[u]]&&(this[r[u]]=l[r[u]])}return m.prototype.quantile=null,m.prototype.value=null,m.create=function(r){return new m(r)},m.encode=function(r,u){return u||(u=h.create()),null!=r.quantile&&Object.hasOwnProperty.call(r,"quantile")&&u.uint32(9).double(r.quantile),null!=r.value&&Object.hasOwnProperty.call(r,"value")&&u.uint32(17).double(r.value),u},m.encodeDelimited=function(r,u){return this.encode(r,u).ldelim()},m.decode=function(r,u){r instanceof n||(r=n.create(r));for(var v=void 0===u?r.len:r.pos+u,E=new S.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile;r.pos<v;){var T=r.uint32();switch(T>>>3){case 1:E.quantile=r.double();break;case 2:E.value=r.double();break;default:r.skipType(7&T)}}return E},m.decodeDelimited=function(r){return r instanceof n||(r=new n(r)),this.decode(r,r.uint32())},m.verify=function(r){return"object"!=typeof r||null===r?"object expected":null!=r.quantile&&r.hasOwnProperty("quantile")&&"number"!=typeof r.quantile?"quantile: number expected":null!=r.value&&r.hasOwnProperty("value")&&"number"!=typeof r.value?"value: number expected":null},m.fromObject=function(r){if(r instanceof S.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile)return r;var u=new S.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile;return null!=r.quantile&&(u.quantile=Number(r.quantile)),null!=r.value&&(u.value=Number(r.value)),u},m.toObject=function(r,u){u||(u={});var v={};return u.defaults&&(v.quantile=0,v.value=0),null!=r.quantile&&r.hasOwnProperty("quantile")&&(v.quantile=u.json&&!isFinite(r.quantile)?String(r.quantile):r.quantile),null!=r.value&&r.hasOwnProperty("value")&&(v.value=u.json&&!isFinite(r.value)?String(r.value):r.value),v},m.prototype.toJSON=function(){return this.constructor.toObject(this,i.util.toJSONOptions)},m.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile"},m}(),g}(),A.Exemplar=function(){function g(l){if(this.filteredAttributes=[],l)for(var r=Object.keys(l),u=0;u<r.length;++u)null!=l[r[u]]&&(this[r[u]]=l[r[u]])}var m;return g.prototype.filteredAttributes=C.emptyArray,g.prototype.timeUnixNano=null,g.prototype.asDouble=null,g.prototype.asInt=null,g.prototype.spanId=null,g.prototype.traceId=null,Object.defineProperty(g.prototype,"value",{get:C.oneOfGetter(m=["asDouble","asInt"]),set:C.oneOfSetter(m)}),g.create=function(r){return new g(r)},g.encode=function(r,u){if(u||(u=h.create()),null!=r.timeUnixNano&&Object.hasOwnProperty.call(r,"timeUnixNano")&&u.uint32(17).fixed64(r.timeUnixNano),null!=r.asDouble&&Object.hasOwnProperty.call(r,"asDouble")&&u.uint32(25).double(r.asDouble),null!=r.spanId&&Object.hasOwnProperty.call(r,"spanId")&&u.uint32(34).bytes(r.spanId),null!=r.traceId&&Object.hasOwnProperty.call(r,"traceId")&&u.uint32(42).bytes(r.traceId),null!=r.asInt&&Object.hasOwnProperty.call(r,"asInt")&&u.uint32(49).sfixed64(r.asInt),null!=r.filteredAttributes&&r.filteredAttributes.length)for(var v=0;v<r.filteredAttributes.length;++v)S.opentelemetry.proto.common.v1.KeyValue.encode(r.filteredAttributes[v],u.uint32(58).fork()).ldelim();return u},g.encodeDelimited=function(r,u){return this.encode(r,u).ldelim()},g.decode=function(r,u){r instanceof n||(r=n.create(r));for(var v=void 0===u?r.len:r.pos+u,E=new S.opentelemetry.proto.metrics.v1.Exemplar;r.pos<v;){var T=r.uint32();switch(T>>>3){case 7:E.filteredAttributes&&E.filteredAttributes.length||(E.filteredAttributes=[]),E.filteredAttributes.push(S.opentelemetry.proto.common.v1.KeyValue.decode(r,r.uint32()));break;case 2:E.timeUnixNano=r.fixed64();break;case 3:E.asDouble=r.double();break;case 6:E.asInt=r.sfixed64();break;case 4:E.spanId=r.bytes();break;case 5:E.traceId=r.bytes();break;default:r.skipType(7&T)}}return E},g.decodeDelimited=function(r){return r instanceof n||(r=new n(r)),this.decode(r,r.uint32())},g.verify=function(r){if("object"!=typeof r||null===r)return"object expected";var u={};if(null!=r.filteredAttributes&&r.hasOwnProperty("filteredAttributes")){if(!Array.isArray(r.filteredAttributes))return"filteredAttributes: array expected";for(var v=0;v<r.filteredAttributes.length;++v){var E=S.opentelemetry.proto.common.v1.KeyValue.verify(r.filteredAttributes[v]);if(E)return"filteredAttributes."+E}}if(null!=r.timeUnixNano&&r.hasOwnProperty("timeUnixNano")&&!C.isInteger(r.timeUnixNano)&&!(r.timeUnixNano&&C.isInteger(r.timeUnixNano.low)&&C.isInteger(r.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(null!=r.asDouble&&r.hasOwnProperty("asDouble")&&(u.value=1,"number"!=typeof r.asDouble))return"asDouble: number expected";if(null!=r.asInt&&r.hasOwnProperty("asInt")){if(1===u.value)return"value: multiple values";if(u.value=1,!(C.isInteger(r.asInt)||r.asInt&&C.isInteger(r.asInt.low)&&C.isInteger(r.asInt.high)))return"asInt: integer|Long expected"}return null!=r.spanId&&r.hasOwnProperty("spanId")&&!(r.spanId&&"number"==typeof r.spanId.length||C.isString(r.spanId))?"spanId: buffer expected":null!=r.traceId&&r.hasOwnProperty("traceId")&&!(r.traceId&&"number"==typeof r.traceId.length||C.isString(r.traceId))?"traceId: buffer expected":null},g.fromObject=function(r){if(r instanceof S.opentelemetry.proto.metrics.v1.Exemplar)return r;var u=new S.opentelemetry.proto.metrics.v1.Exemplar;if(r.filteredAttributes){if(!Array.isArray(r.filteredAttributes))throw TypeError(".opentelemetry.proto.metrics.v1.Exemplar.filteredAttributes: array expected");u.filteredAttributes=[];for(var v=0;v<r.filteredAttributes.length;++v){if("object"!=typeof r.filteredAttributes[v])throw TypeError(".opentelemetry.proto.metrics.v1.Exemplar.filteredAttributes: object expected");u.filteredAttributes[v]=S.opentelemetry.proto.common.v1.KeyValue.fromObject(r.filteredAttributes[v])}}return null!=r.timeUnixNano&&(C.Long?(u.timeUnixNano=C.Long.fromValue(r.timeUnixNano)).unsigned=!1:"string"==typeof r.timeUnixNano?u.timeUnixNano=parseInt(r.timeUnixNano,10):"number"==typeof r.timeUnixNano?u.timeUnixNano=r.timeUnixNano:"object"==typeof r.timeUnixNano&&(u.timeUnixNano=new C.LongBits(r.timeUnixNano.low>>>0,r.timeUnixNano.high>>>0).toNumber())),null!=r.asDouble&&(u.asDouble=Number(r.asDouble)),null!=r.asInt&&(C.Long?(u.asInt=C.Long.fromValue(r.asInt)).unsigned=!1:"string"==typeof r.asInt?u.asInt=parseInt(r.asInt,10):"number"==typeof r.asInt?u.asInt=r.asInt:"object"==typeof r.asInt&&(u.asInt=new C.LongBits(r.asInt.low>>>0,r.asInt.high>>>0).toNumber())),null!=r.spanId&&("string"==typeof r.spanId?C.base64.decode(r.spanId,u.spanId=C.newBuffer(C.base64.length(r.spanId)),0):r.spanId.length>=0&&(u.spanId=r.spanId)),null!=r.traceId&&("string"==typeof r.traceId?C.base64.decode(r.traceId,u.traceId=C.newBuffer(C.base64.length(r.traceId)),0):r.traceId.length>=0&&(u.traceId=r.traceId)),u},g.toObject=function(r,u){u||(u={});var v={};if((u.arrays||u.defaults)&&(v.filteredAttributes=[]),u.defaults){if(C.Long){var E=new C.Long(0,0,!1);v.timeUnixNano=u.longs===String?E.toString():u.longs===Number?E.toNumber():E}else v.timeUnixNano=u.longs===String?"0":0;u.bytes===String?v.spanId="":(v.spanId=[],u.bytes!==Array&&(v.spanId=C.newBuffer(v.spanId))),u.bytes===String?v.traceId="":(v.traceId=[],u.bytes!==Array&&(v.traceId=C.newBuffer(v.traceId)))}if(null!=r.timeUnixNano&&r.hasOwnProperty("timeUnixNano")&&(v.timeUnixNano="number"==typeof r.timeUnixNano?u.longs===String?String(r.timeUnixNano):r.timeUnixNano:u.longs===String?C.Long.prototype.toString.call(r.timeUnixNano):u.longs===Number?new C.LongBits(r.timeUnixNano.low>>>0,r.timeUnixNano.high>>>0).toNumber():r.timeUnixNano),null!=r.asDouble&&r.hasOwnProperty("asDouble")&&(v.asDouble=u.json&&!isFinite(r.asDouble)?String(r.asDouble):r.asDouble,u.oneofs&&(v.value="asDouble")),null!=r.spanId&&r.hasOwnProperty("spanId")&&(v.spanId=u.bytes===String?C.base64.encode(r.spanId,0,r.spanId.length):u.bytes===Array?Array.prototype.slice.call(r.spanId):r.spanId),null!=r.traceId&&r.hasOwnProperty("traceId")&&(v.traceId=u.bytes===String?C.base64.encode(r.traceId,0,r.traceId.length):u.bytes===Array?Array.prototype.slice.call(r.traceId):r.traceId),null!=r.asInt&&r.hasOwnProperty("asInt")&&(v.asInt="number"==typeof r.asInt?u.longs===String?String(r.asInt):r.asInt:u.longs===String?C.Long.prototype.toString.call(r.asInt):u.longs===Number?new C.LongBits(r.asInt.low>>>0,r.asInt.high>>>0).toNumber():r.asInt,u.oneofs&&(v.value="asInt")),r.filteredAttributes&&r.filteredAttributes.length){v.filteredAttributes=[];for(var T=0;T<r.filteredAttributes.length;++T)v.filteredAttributes[T]=S.opentelemetry.proto.common.v1.KeyValue.toObject(r.filteredAttributes[T],u)}return v},g.prototype.toJSON=function(){return this.constructor.toObject(this,i.util.toJSONOptions)},g.getTypeUrl=function(r){return void 0===r&&(r="type.googleapis.com"),r+"/opentelemetry.proto.metrics.v1.Exemplar"},g}(),A}(),x}(),P.logs=function(){var x={};return x.v1=function(){var g,m,A={};return A.LogsData=function(){function g(m){if(this.resourceLogs=[],m)for(var l=Object.keys(m),r=0;r<l.length;++r)null!=m[l[r]]&&(this[l[r]]=m[l[r]])}return g.prototype.resourceLogs=C.emptyArray,g.create=function(l){return new g(l)},g.encode=function(l,r){if(r||(r=h.create()),null!=l.resourceLogs&&l.resourceLogs.length)for(var u=0;u<l.resourceLogs.length;++u)S.opentelemetry.proto.logs.v1.ResourceLogs.encode(l.resourceLogs[u],r.uint32(10).fork()).ldelim();return r},g.encodeDelimited=function(l,r){return this.encode(l,r).ldelim()},g.decode=function(l,r){l instanceof n||(l=n.create(l));for(var u=void 0===r?l.len:l.pos+r,v=new S.opentelemetry.proto.logs.v1.LogsData;l.pos<u;){var E=l.uint32();E>>>3==1?(v.resourceLogs&&v.resourceLogs.length||(v.resourceLogs=[]),v.resourceLogs.push(S.opentelemetry.proto.logs.v1.ResourceLogs.decode(l,l.uint32()))):l.skipType(7&E)}return v},g.decodeDelimited=function(l){return l instanceof n||(l=new n(l)),this.decode(l,l.uint32())},g.verify=function(l){if("object"!=typeof l||null===l)return"object expected";if(null!=l.resourceLogs&&l.hasOwnProperty("resourceLogs")){if(!Array.isArray(l.resourceLogs))return"resourceLogs: array expected";for(var r=0;r<l.resourceLogs.length;++r){var u=S.opentelemetry.proto.logs.v1.ResourceLogs.verify(l.resourceLogs[r]);if(u)return"resourceLogs."+u}}return null},g.fromObject=function(l){if(l instanceof S.opentelemetry.proto.logs.v1.LogsData)return l;var r=new S.opentelemetry.proto.logs.v1.LogsData;if(l.resourceLogs){if(!Array.isArray(l.resourceLogs))throw TypeError(".opentelemetry.proto.logs.v1.LogsData.resourceLogs: array expected");r.resourceLogs=[];for(var u=0;u<l.resourceLogs.length;++u){if("object"!=typeof l.resourceLogs[u])throw TypeError(".opentelemetry.proto.logs.v1.LogsData.resourceLogs: object expected");r.resourceLogs[u]=S.opentelemetry.proto.logs.v1.ResourceLogs.fromObject(l.resourceLogs[u])}}return r},g.toObject=function(l,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.resourceLogs=[]),l.resourceLogs&&l.resourceLogs.length){u.resourceLogs=[];for(var v=0;v<l.resourceLogs.length;++v)u.resourceLogs[v]=S.opentelemetry.proto.logs.v1.ResourceLogs.toObject(l.resourceLogs[v],r)}return u},g.prototype.toJSON=function(){return this.constructor.toObject(this,i.util.toJSONOptions)},g.getTypeUrl=function(l){return void 0===l&&(l="type.googleapis.com"),l+"/opentelemetry.proto.logs.v1.LogsData"},g}(),A.ResourceLogs=function(){function g(m){if(this.scopeLogs=[],m)for(var l=Object.keys(m),r=0;r<l.length;++r)null!=m[l[r]]&&(this[l[r]]=m[l[r]])}return g.prototype.resource=null,g.prototype.scopeLogs=C.emptyArray,g.prototype.schemaUrl=null,g.create=function(l){return new g(l)},g.encode=function(l,r){if(r||(r=h.create()),null!=l.resource&&Object.hasOwnProperty.call(l,"resource")&&S.opentelemetry.proto.resource.v1.Resource.encode(l.resource,r.uint32(10).fork()).ldelim(),null!=l.scopeLogs&&l.scopeLogs.length)for(var u=0;u<l.scopeLogs.length;++u)S.opentelemetry.proto.logs.v1.ScopeLogs.encode(l.scopeLogs[u],r.uint32(18).fork()).ldelim();return null!=l.schemaUrl&&Object.hasOwnProperty.call(l,"schemaUrl")&&r.uint32(26).string(l.schemaUrl),r},g.encodeDelimited=function(l,r){return this.encode(l,r).ldelim()},g.decode=function(l,r){l instanceof n||(l=n.create(l));for(var u=void 0===r?l.len:l.pos+r,v=new S.opentelemetry.proto.logs.v1.ResourceLogs;l.pos<u;){var E=l.uint32();switch(E>>>3){case 1:v.resource=S.opentelemetry.proto.resource.v1.Resource.decode(l,l.uint32());break;case 2:v.scopeLogs&&v.scopeLogs.length||(v.scopeLogs=[]),v.scopeLogs.push(S.opentelemetry.proto.logs.v1.ScopeLogs.decode(l,l.uint32()));break;case 3:v.schemaUrl=l.string();break;default:l.skipType(7&E)}}return v},g.decodeDelimited=function(l){return l instanceof n||(l=new n(l)),this.decode(l,l.uint32())},g.verify=function(l){if("object"!=typeof l||null===l)return"object expected";if(null!=l.resource&&l.hasOwnProperty("resource")&&(r=S.opentelemetry.proto.resource.v1.Resource.verify(l.resource)))return"resource."+r;if(null!=l.scopeLogs&&l.hasOwnProperty("scopeLogs")){if(!Array.isArray(l.scopeLogs))return"scopeLogs: array expected";for(var u=0;u<l.scopeLogs.length;++u){var r;if(r=S.opentelemetry.proto.logs.v1.ScopeLogs.verify(l.scopeLogs[u]))return"scopeLogs."+r}}return null!=l.schemaUrl&&l.hasOwnProperty("schemaUrl")&&!C.isString(l.schemaUrl)?"schemaUrl: string expected":null},g.fromObject=function(l){if(l instanceof S.opentelemetry.proto.logs.v1.ResourceLogs)return l;var r=new S.opentelemetry.proto.logs.v1.ResourceLogs;if(null!=l.resource){if("object"!=typeof l.resource)throw TypeError(".opentelemetry.proto.logs.v1.ResourceLogs.resource: object expected");r.resource=S.opentelemetry.proto.resource.v1.Resource.fromObject(l.resource)}if(l.scopeLogs){if(!Array.isArray(l.scopeLogs))throw TypeError(".opentelemetry.proto.logs.v1.ResourceLogs.scopeLogs: array expected");r.scopeLogs=[];for(var u=0;u<l.scopeLogs.length;++u){if("object"!=typeof l.scopeLogs[u])throw TypeError(".opentelemetry.proto.logs.v1.ResourceLogs.scopeLogs: object expected");r.scopeLogs[u]=S.opentelemetry.proto.logs.v1.ScopeLogs.fromObject(l.scopeLogs[u])}}return null!=l.schemaUrl&&(r.schemaUrl=String(l.schemaUrl)),r},g.toObject=function(l,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.scopeLogs=[]),r.defaults&&(u.resource=null,u.schemaUrl=""),null!=l.resource&&l.hasOwnProperty("resource")&&(u.resource=S.opentelemetry.proto.resource.v1.Resource.toObject(l.resource,r)),l.scopeLogs&&l.scopeLogs.length){u.scopeLogs=[];for(var v=0;v<l.scopeLogs.length;++v)u.scopeLogs[v]=S.opentelemetry.proto.logs.v1.ScopeLogs.toObject(l.scopeLogs[v],r)}return null!=l.schemaUrl&&l.hasOwnProperty("schemaUrl")&&(u.schemaUrl=l.schemaUrl),u},g.prototype.toJSON=function(){return this.constructor.toObject(this,i.util.toJSONOptions)},g.getTypeUrl=function(l){return void 0===l&&(l="type.googleapis.com"),l+"/opentelemetry.proto.logs.v1.ResourceLogs"},g}(),A.ScopeLogs=function(){function g(m){if(this.logRecords=[],m)for(var l=Object.keys(m),r=0;r<l.length;++r)null!=m[l[r]]&&(this[l[r]]=m[l[r]])}return g.prototype.scope=null,g.prototype.logRecords=C.emptyArray,g.prototype.schemaUrl=null,g.create=function(l){return new g(l)},g.encode=function(l,r){if(r||(r=h.create()),null!=l.scope&&Object.hasOwnProperty.call(l,"scope")&&S.opentelemetry.proto.common.v1.InstrumentationScope.encode(l.scope,r.uint32(10).fork()).ldelim(),null!=l.logRecords&&l.logRecords.length)for(var u=0;u<l.logRecords.length;++u)S.opentelemetry.proto.logs.v1.LogRecord.encode(l.logRecords[u],r.uint32(18).fork()).ldelim();return null!=l.schemaUrl&&Object.hasOwnProperty.call(l,"schemaUrl")&&r.uint32(26).string(l.schemaUrl),r},g.encodeDelimited=function(l,r){return this.encode(l,r).ldelim()},g.decode=function(l,r){l instanceof n||(l=n.create(l));for(var u=void 0===r?l.len:l.pos+r,v=new S.opentelemetry.proto.logs.v1.ScopeLogs;l.pos<u;){var E=l.uint32();switch(E>>>3){case 1:v.scope=S.opentelemetry.proto.common.v1.InstrumentationScope.decode(l,l.uint32());break;case 2:v.logRecords&&v.logRecords.length||(v.logRecords=[]),v.logRecords.push(S.opentelemetry.proto.logs.v1.LogRecord.decode(l,l.uint32()));break;case 3:v.schemaUrl=l.string();break;default:l.skipType(7&E)}}return v},g.decodeDelimited=function(l){return l instanceof n||(l=new n(l)),this.decode(l,l.uint32())},g.verify=function(l){if("object"!=typeof l||null===l)return"object expected";if(null!=l.scope&&l.hasOwnProperty("scope")&&(r=S.opentelemetry.proto.common.v1.InstrumentationScope.verify(l.scope)))return"scope."+r;if(null!=l.logRecords&&l.hasOwnProperty("logRecords")){if(!Array.isArray(l.logRecords))return"logRecords: array expected";for(var u=0;u<l.logRecords.length;++u){var r;if(r=S.opentelemetry.proto.logs.v1.LogRecord.verify(l.logRecords[u]))return"logRecords."+r}}return null!=l.schemaUrl&&l.hasOwnProperty("schemaUrl")&&!C.isString(l.schemaUrl)?"schemaUrl: string expected":null},g.fromObject=function(l){if(l instanceof S.opentelemetry.proto.logs.v1.ScopeLogs)return l;var r=new S.opentelemetry.proto.logs.v1.ScopeLogs;if(null!=l.scope){if("object"!=typeof l.scope)throw TypeError(".opentelemetry.proto.logs.v1.ScopeLogs.scope: object expected");r.scope=S.opentelemetry.proto.common.v1.InstrumentationScope.fromObject(l.scope)}if(l.logRecords){if(!Array.isArray(l.logRecords))throw TypeError(".opentelemetry.proto.logs.v1.ScopeLogs.logRecords: array expected");r.logRecords=[];for(var u=0;u<l.logRecords.length;++u){if("object"!=typeof l.logRecords[u])throw TypeError(".opentelemetry.proto.logs.v1.ScopeLogs.logRecords: object expected");r.logRecords[u]=S.opentelemetry.proto.logs.v1.LogRecord.fromObject(l.logRecords[u])}}return null!=l.schemaUrl&&(r.schemaUrl=String(l.schemaUrl)),r},g.toObject=function(l,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.logRecords=[]),r.defaults&&(u.scope=null,u.schemaUrl=""),null!=l.scope&&l.hasOwnProperty("scope")&&(u.scope=S.opentelemetry.proto.common.v1.InstrumentationScope.toObject(l.scope,r)),l.logRecords&&l.logRecords.length){u.logRecords=[];for(var v=0;v<l.logRecords.length;++v)u.logRecords[v]=S.opentelemetry.proto.logs.v1.LogRecord.toObject(l.logRecords[v],r)}return null!=l.schemaUrl&&l.hasOwnProperty("schemaUrl")&&(u.schemaUrl=l.schemaUrl),u},g.prototype.toJSON=function(){return this.constructor.toObject(this,i.util.toJSONOptions)},g.getTypeUrl=function(l){return void 0===l&&(l="type.googleapis.com"),l+"/opentelemetry.proto.logs.v1.ScopeLogs"},g}(),A.SeverityNumber=(g={},(m=Object.create(g))[g[0]="SEVERITY_NUMBER_UNSPECIFIED"]=0,m[g[1]="SEVERITY_NUMBER_TRACE"]=1,m[g[2]="SEVERITY_NUMBER_TRACE2"]=2,m[g[3]="SEVERITY_NUMBER_TRACE3"]=3,m[g[4]="SEVERITY_NUMBER_TRACE4"]=4,m[g[5]="SEVERITY_NUMBER_DEBUG"]=5,m[g[6]="SEVERITY_NUMBER_DEBUG2"]=6,m[g[7]="SEVERITY_NUMBER_DEBUG3"]=7,m[g[8]="SEVERITY_NUMBER_DEBUG4"]=8,m[g[9]="SEVERITY_NUMBER_INFO"]=9,m[g[10]="SEVERITY_NUMBER_INFO2"]=10,m[g[11]="SEVERITY_NUMBER_INFO3"]=11,m[g[12]="SEVERITY_NUMBER_INFO4"]=12,m[g[13]="SEVERITY_NUMBER_WARN"]=13,m[g[14]="SEVERITY_NUMBER_WARN2"]=14,m[g[15]="SEVERITY_NUMBER_WARN3"]=15,m[g[16]="SEVERITY_NUMBER_WARN4"]=16,m[g[17]="SEVERITY_NUMBER_ERROR"]=17,m[g[18]="SEVERITY_NUMBER_ERROR2"]=18,m[g[19]="SEVERITY_NUMBER_ERROR3"]=19,m[g[20]="SEVERITY_NUMBER_ERROR4"]=20,m[g[21]="SEVERITY_NUMBER_FATAL"]=21,m[g[22]="SEVERITY_NUMBER_FATAL2"]=22,m[g[23]="SEVERITY_NUMBER_FATAL3"]=23,m[g[24]="SEVERITY_NUMBER_FATAL4"]=24,m),A.LogRecordFlags=function(){var g={},m=Object.create(g);return m[g[0]="LOG_RECORD_FLAGS_DO_NOT_USE"]=0,m[g[255]="LOG_RECORD_FLAGS_TRACE_FLAGS_MASK"]=255,m}(),A.LogRecord=function(){function g(m){if(this.attributes=[],m)for(var l=Object.keys(m),r=0;r<l.length;++r)null!=m[l[r]]&&(this[l[r]]=m[l[r]])}return g.prototype.timeUnixNano=null,g.prototype.observedTimeUnixNano=null,g.prototype.severityNumber=null,g.prototype.severityText=null,g.prototype.body=null,g.prototype.attributes=C.emptyArray,g.prototype.droppedAttributesCount=null,g.prototype.flags=null,g.prototype.traceId=null,g.prototype.spanId=null,g.create=function(l){return new g(l)},g.encode=function(l,r){if(r||(r=h.create()),null!=l.timeUnixNano&&Object.hasOwnProperty.call(l,"timeUnixNano")&&r.uint32(9).fixed64(l.timeUnixNano),null!=l.severityNumber&&Object.hasOwnProperty.call(l,"severityNumber")&&r.uint32(16).int32(l.severityNumber),null!=l.severityText&&Object.hasOwnProperty.call(l,"severityText")&&r.uint32(26).string(l.severityText),null!=l.body&&Object.hasOwnProperty.call(l,"body")&&S.opentelemetry.proto.common.v1.AnyValue.encode(l.body,r.uint32(42).fork()).ldelim(),null!=l.attributes&&l.attributes.length)for(var u=0;u<l.attributes.length;++u)S.opentelemetry.proto.common.v1.KeyValue.encode(l.attributes[u],r.uint32(50).fork()).ldelim();return null!=l.droppedAttributesCount&&Object.hasOwnProperty.call(l,"droppedAttributesCount")&&r.uint32(56).uint32(l.droppedAttributesCount),null!=l.flags&&Object.hasOwnProperty.call(l,"flags")&&r.uint32(69).fixed32(l.flags),null!=l.traceId&&Object.hasOwnProperty.call(l,"traceId")&&r.uint32(74).bytes(l.traceId),null!=l.spanId&&Object.hasOwnProperty.call(l,"spanId")&&r.uint32(82).bytes(l.spanId),null!=l.observedTimeUnixNano&&Object.hasOwnProperty.call(l,"observedTimeUnixNano")&&r.uint32(89).fixed64(l.observedTimeUnixNano),r},g.encodeDelimited=function(l,r){return this.encode(l,r).ldelim()},g.decode=function(l,r){l instanceof n||(l=n.create(l));for(var u=void 0===r?l.len:l.pos+r,v=new S.opentelemetry.proto.logs.v1.LogRecord;l.pos<u;){var E=l.uint32();switch(E>>>3){case 1:v.timeUnixNano=l.fixed64();break;case 11:v.observedTimeUnixNano=l.fixed64();break;case 2:v.severityNumber=l.int32();break;case 3:v.severityText=l.string();break;case 5:v.body=S.opentelemetry.proto.common.v1.AnyValue.decode(l,l.uint32());break;case 6:v.attributes&&v.attributes.length||(v.attributes=[]),v.attributes.push(S.opentelemetry.proto.common.v1.KeyValue.decode(l,l.uint32()));break;case 7:v.droppedAttributesCount=l.uint32();break;case 8:v.flags=l.fixed32();break;case 9:v.traceId=l.bytes();break;case 10:v.spanId=l.bytes();break;default:l.skipType(7&E)}}return v},g.decodeDelimited=function(l){return l instanceof n||(l=new n(l)),this.decode(l,l.uint32())},g.verify=function(l){if("object"!=typeof l||null===l)return"object expected";if(null!=l.timeUnixNano&&l.hasOwnProperty("timeUnixNano")&&!C.isInteger(l.timeUnixNano)&&!(l.timeUnixNano&&C.isInteger(l.timeUnixNano.low)&&C.isInteger(l.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(null!=l.observedTimeUnixNano&&l.hasOwnProperty("observedTimeUnixNano")&&!C.isInteger(l.observedTimeUnixNano)&&!(l.observedTimeUnixNano&&C.isInteger(l.observedTimeUnixNano.low)&&C.isInteger(l.observedTimeUnixNano.high)))return"observedTimeUnixNano: integer|Long expected";if(null!=l.severityNumber&&l.hasOwnProperty("severityNumber"))switch(l.severityNumber){default:return"severityNumber: enum value expected";case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:case 15:case 16:case 17:case 18:case 19:case 20:case 21:case 22:case 23:case 24:}if(null!=l.severityText&&l.hasOwnProperty("severityText")&&!C.isString(l.severityText))return"severityText: string expected";if(null!=l.body&&l.hasOwnProperty("body")&&(r=S.opentelemetry.proto.common.v1.AnyValue.verify(l.body)))return"body."+r;if(null!=l.attributes&&l.hasOwnProperty("attributes")){if(!Array.isArray(l.attributes))return"attributes: array expected";for(var u=0;u<l.attributes.length;++u){var r;if(r=S.opentelemetry.proto.common.v1.KeyValue.verify(l.attributes[u]))return"attributes."+r}}return null!=l.droppedAttributesCount&&l.hasOwnProperty("droppedAttributesCount")&&!C.isInteger(l.droppedAttributesCount)?"droppedAttributesCount: integer expected":null!=l.flags&&l.hasOwnProperty("flags")&&!C.isInteger(l.flags)?"flags: integer expected":null!=l.traceId&&l.hasOwnProperty("traceId")&&!(l.traceId&&"number"==typeof l.traceId.length||C.isString(l.traceId))?"traceId: buffer expected":null!=l.spanId&&l.hasOwnProperty("spanId")&&!(l.spanId&&"number"==typeof l.spanId.length||C.isString(l.spanId))?"spanId: buffer expected":null},g.fromObject=function(l){if(l instanceof S.opentelemetry.proto.logs.v1.LogRecord)return l;var r=new S.opentelemetry.proto.logs.v1.LogRecord;switch(null!=l.timeUnixNano&&(C.Long?(r.timeUnixNano=C.Long.fromValue(l.timeUnixNano)).unsigned=!1:"string"==typeof l.timeUnixNano?r.timeUnixNano=parseInt(l.timeUnixNano,10):"number"==typeof l.timeUnixNano?r.timeUnixNano=l.timeUnixNano:"object"==typeof l.timeUnixNano&&(r.timeUnixNano=new C.LongBits(l.timeUnixNano.low>>>0,l.timeUnixNano.high>>>0).toNumber())),null!=l.observedTimeUnixNano&&(C.Long?(r.observedTimeUnixNano=C.Long.fromValue(l.observedTimeUnixNano)).unsigned=!1:"string"==typeof l.observedTimeUnixNano?r.observedTimeUnixNano=parseInt(l.observedTimeUnixNano,10):"number"==typeof l.observedTimeUnixNano?r.observedTimeUnixNano=l.observedTimeUnixNano:"object"==typeof l.observedTimeUnixNano&&(r.observedTimeUnixNano=new C.LongBits(l.observedTimeUnixNano.low>>>0,l.observedTimeUnixNano.high>>>0).toNumber())),l.severityNumber){default:if("number"==typeof l.severityNumber){r.severityNumber=l.severityNumber;break}break;case"SEVERITY_NUMBER_UNSPECIFIED":case 0:r.severityNumber=0;break;case"SEVERITY_NUMBER_TRACE":case 1:r.severityNumber=1;break;case"SEVERITY_NUMBER_TRACE2":case 2:r.severityNumber=2;break;case"SEVERITY_NUMBER_TRACE3":case 3:r.severityNumber=3;break;case"SEVERITY_NUMBER_TRACE4":case 4:r.severityNumber=4;break;case"SEVERITY_NUMBER_DEBUG":case 5:r.severityNumber=5;break;case"SEVERITY_NUMBER_DEBUG2":case 6:r.severityNumber=6;break;case"SEVERITY_NUMBER_DEBUG3":case 7:r.severityNumber=7;break;case"SEVERITY_NUMBER_DEBUG4":case 8:r.severityNumber=8;break;case"SEVERITY_NUMBER_INFO":case 9:r.severityNumber=9;break;case"SEVERITY_NUMBER_INFO2":case 10:r.severityNumber=10;break;case"SEVERITY_NUMBER_INFO3":case 11:r.severityNumber=11;break;case"SEVERITY_NUMBER_INFO4":case 12:r.severityNumber=12;break;case"SEVERITY_NUMBER_WARN":case 13:r.severityNumber=13;break;case"SEVERITY_NUMBER_WARN2":case 14:r.severityNumber=14;break;case"SEVERITY_NUMBER_WARN3":case 15:r.severityNumber=15;break;case"SEVERITY_NUMBER_WARN4":case 16:r.severityNumber=16;break;case"SEVERITY_NUMBER_ERROR":case 17:r.severityNumber=17;break;case"SEVERITY_NUMBER_ERROR2":case 18:r.severityNumber=18;break;case"SEVERITY_NUMBER_ERROR3":case 19:r.severityNumber=19;break;case"SEVERITY_NUMBER_ERROR4":case 20:r.severityNumber=20;break;case"SEVERITY_NUMBER_FATAL":case 21:r.severityNumber=21;break;case"SEVERITY_NUMBER_FATAL2":case 22:r.severityNumber=22;break;case"SEVERITY_NUMBER_FATAL3":case 23:r.severityNumber=23;break;case"SEVERITY_NUMBER_FATAL4":case 24:r.severityNumber=24}if(null!=l.severityText&&(r.severityText=String(l.severityText)),null!=l.body){if("object"!=typeof l.body)throw TypeError(".opentelemetry.proto.logs.v1.LogRecord.body: object expected");r.body=S.opentelemetry.proto.common.v1.AnyValue.fromObject(l.body)}if(l.attributes){if(!Array.isArray(l.attributes))throw TypeError(".opentelemetry.proto.logs.v1.LogRecord.attributes: array expected");r.attributes=[];for(var u=0;u<l.attributes.length;++u){if("object"!=typeof l.attributes[u])throw TypeError(".opentelemetry.proto.logs.v1.LogRecord.attributes: object expected");r.attributes[u]=S.opentelemetry.proto.common.v1.KeyValue.fromObject(l.attributes[u])}}return null!=l.droppedAttributesCount&&(r.droppedAttributesCount=l.droppedAttributesCount>>>0),null!=l.flags&&(r.flags=l.flags>>>0),null!=l.traceId&&("string"==typeof l.traceId?C.base64.decode(l.traceId,r.traceId=C.newBuffer(C.base64.length(l.traceId)),0):l.traceId.length>=0&&(r.traceId=l.traceId)),null!=l.spanId&&("string"==typeof l.spanId?C.base64.decode(l.spanId,r.spanId=C.newBuffer(C.base64.length(l.spanId)),0):l.spanId.length>=0&&(r.spanId=l.spanId)),r},g.toObject=function(l,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.attributes=[]),r.defaults){if(C.Long){var v=new C.Long(0,0,!1);u.timeUnixNano=r.longs===String?v.toString():r.longs===Number?v.toNumber():v}else u.timeUnixNano=r.longs===String?"0":0;u.severityNumber=r.enums===String?"SEVERITY_NUMBER_UNSPECIFIED":0,u.severityText="",u.body=null,u.droppedAttributesCount=0,u.flags=0,r.bytes===String?u.traceId="":(u.traceId=[],r.bytes!==Array&&(u.traceId=C.newBuffer(u.traceId))),r.bytes===String?u.spanId="":(u.spanId=[],r.bytes!==Array&&(u.spanId=C.newBuffer(u.spanId))),C.Long?(v=new C.Long(0,0,!1),u.observedTimeUnixNano=r.longs===String?v.toString():r.longs===Number?v.toNumber():v):u.observedTimeUnixNano=r.longs===String?"0":0}if(null!=l.timeUnixNano&&l.hasOwnProperty("timeUnixNano")&&(u.timeUnixNano="number"==typeof l.timeUnixNano?r.longs===String?String(l.timeUnixNano):l.timeUnixNano:r.longs===String?C.Long.prototype.toString.call(l.timeUnixNano):r.longs===Number?new C.LongBits(l.timeUnixNano.low>>>0,l.timeUnixNano.high>>>0).toNumber():l.timeUnixNano),null!=l.severityNumber&&l.hasOwnProperty("severityNumber")&&(u.severityNumber=r.enums===String?void 0===S.opentelemetry.proto.logs.v1.SeverityNumber[l.severityNumber]?l.severityNumber:S.opentelemetry.proto.logs.v1.SeverityNumber[l.severityNumber]:l.severityNumber),null!=l.severityText&&l.hasOwnProperty("severityText")&&(u.severityText=l.severityText),null!=l.body&&l.hasOwnProperty("body")&&(u.body=S.opentelemetry.proto.common.v1.AnyValue.toObject(l.body,r)),l.attributes&&l.attributes.length){u.attributes=[];for(var E=0;E<l.attributes.length;++E)u.attributes[E]=S.opentelemetry.proto.common.v1.KeyValue.toObject(l.attributes[E],r)}return null!=l.droppedAttributesCount&&l.hasOwnProperty("droppedAttributesCount")&&(u.droppedAttributesCount=l.droppedAttributesCount),null!=l.flags&&l.hasOwnProperty("flags")&&(u.flags=l.flags),null!=l.traceId&&l.hasOwnProperty("traceId")&&(u.traceId=r.bytes===String?C.base64.encode(l.traceId,0,l.traceId.length):r.bytes===Array?Array.prototype.slice.call(l.traceId):l.traceId),null!=l.spanId&&l.hasOwnProperty("spanId")&&(u.spanId=r.bytes===String?C.base64.encode(l.spanId,0,l.spanId.length):r.bytes===Array?Array.prototype.slice.call(l.spanId):l.spanId),null!=l.observedTimeUnixNano&&l.hasOwnProperty("observedTimeUnixNano")&&(u.observedTimeUnixNano="number"==typeof l.observedTimeUnixNano?r.longs===String?String(l.observedTimeUnixNano):l.observedTimeUnixNano:r.longs===String?C.Long.prototype.toString.call(l.observedTimeUnixNano):r.longs===Number?new C.LongBits(l.observedTimeUnixNano.low>>>0,l.observedTimeUnixNano.high>>>0).toNumber():l.observedTimeUnixNano),u},g.prototype.toJSON=function(){return this.constructor.toObject(this,i.util.toJSONOptions)},g.getTypeUrl=function(l){return void 0===l&&(l="type.googleapis.com"),l+"/opentelemetry.proto.logs.v1.LogRecord"},g}(),A}(),x}(),P),M),St.exports=S},23403:(St,z,s)=>{"use strict";s.d(z,{F:()=>A});var i=s(40698),n=s(23413),h=s(91085),C=s(99583),S=function(){return S=Object.assign||function(g){for(var m,l=1,r=arguments.length;l<r;l++)for(var u in m=arguments[l])Object.prototype.hasOwnProperty.call(m,u)&&(g[u]=m[u]);return g},S.apply(this,arguments)},A=function(){function g(m,l){var u,r=this;this._attributes=m,this.asyncAttributesPending=null!=l,this._syncAttributes=null!==(u=this._attributes)&&void 0!==u?u:{},this._asyncAttributesPromise=l?.then(function(v){return r._attributes=Object.assign({},r._attributes,v),r.asyncAttributesPending=!1,v},function(v){return i.s.debug("a resource's async attributes promise rejected: %s",v),r.asyncAttributesPending=!1,{}})}return g.empty=function(){return g.EMPTY},g.default=function(){var m;return new g(((m={})[n.AV]=(0,C.m)(),m[n.Pl]=h.q[n.Pl],m[n.$L]=h.q[n.$L],m[n.y$]=h.q[n.y$],m))},Object.defineProperty(g.prototype,"attributes",{get:function(){var m;return this.asyncAttributesPending&&i.s.error("Accessing resource attributes before async attributes settled"),null!==(m=this._attributes)&&void 0!==m?m:{}},enumerable:!1,configurable:!0}),g.prototype.waitForAsyncAttributes=function(){return function(g,m,l,r){return new(l||(l=Promise))(function(v,E){function T(U){try{B(r.next(U))}catch(Y){E(Y)}}function R(U){try{B(r.throw(U))}catch(Y){E(Y)}}function B(U){U.done?v(U.value):function u(v){return v instanceof l?v:new l(function(E){E(v)})}(U.value).then(T,R)}B((r=r.apply(g,m||[])).next())})}(this,void 0,void 0,function(){return function(g,m){var r,u,v,E,l={label:0,sent:function(){if(1&v[0])throw v[1];return v[1]},trys:[],ops:[]};return E={next:T(0),throw:T(1),return:T(2)},"function"==typeof Symbol&&(E[Symbol.iterator]=function(){return this}),E;function T(B){return function(U){return function R(B){if(r)throw new TypeError("Generator is already executing.");for(;l;)try{if(r=1,u&&(v=2&B[0]?u.return:B[0]?u.throw||((v=u.return)&&v.call(u),0):u.next)&&!(v=v.call(u,B[1])).done)return v;switch(u=0,v&&(B=[2&B[0],v.value]),B[0]){case 0:case 1:v=B;break;case 4:return l.label++,{value:B[1],done:!1};case 5:l.label++,u=B[1],B=[0];continue;case 7:B=l.ops.pop(),l.trys.pop();continue;default:if(!(v=(v=l.trys).length>0&&v[v.length-1])&&(6===B[0]||2===B[0])){l=0;continue}if(3===B[0]&&(!v||B[1]>v[0]&&B[1]<v[3])){l.label=B[1];break}if(6===B[0]&&l.label<v[1]){l.label=v[1],v=B;break}if(v&&l.label<v[2]){l.label=v[2],l.ops.push(B);break}v[2]&&l.ops.pop(),l.trys.pop();continue}B=m.call(g,l)}catch(U){B=[6,U],u=0}finally{r=v=0}if(5&B[0])throw B[1];return{value:B[0]?B[1]:void 0,done:!0}}([B,U])}}}(this,function(m){switch(m.label){case 0:return this.asyncAttributesPending?[4,this._asyncAttributesPromise]:[3,2];case 1:m.sent(),m.label=2;case 2:return[2]}})})},g.prototype.merge=function(m){var r,l=this;if(!m)return this;var u=S(S({},this._syncAttributes),null!==(r=m._syncAttributes)&&void 0!==r?r:m.attributes);if(!this._asyncAttributesPromise&&!m._asyncAttributesPromise)return new g(u);var v=Promise.all([this._asyncAttributesPromise,m._asyncAttributesPromise]).then(function(E){var T,R=function(g,m){var l="function"==typeof Symbol&&g[Symbol.iterator];if(!l)return g;var u,E,r=l.call(g),v=[];try{for(;(void 0===m||m-- >0)&&!(u=r.next()).done;)v.push(u.value)}catch(T){E={error:T}}finally{try{u&&!u.done&&(l=r.return)&&l.call(r)}finally{if(E)throw E.error}}return v}(E,2),B=R[0],U=R[1];return S(S(S(S({},l._syncAttributes),B),null!==(T=m._syncAttributes)&&void 0!==T?T:m.attributes),U)});return new g(u,v)},g.EMPTY=new g({}),g}()},14656:(St,z,s)=>{"use strict";s.r(z),s.d(z,{Resource:()=>i.F,browserDetector:()=>A,browserDetectorSync:()=>P,defaultServiceName:()=>n.m,detectResources:()=>it,detectResourcesSync:()=>Fe,envDetector:()=>E,envDetectorSync:()=>u,hostDetector:()=>Y,hostDetectorSync:()=>ae,osDetector:()=>G,osDetectorSync:()=>k,processDetector:()=>X,processDetectorSync:()=>q,serviceInstanceIdDetectorSync:()=>Q});var i=s(23403),n=s(99583),h=s(23413),C=s(40698),S=function(){return S=Object.assign||function(ct){for(var Ge,nt=1,Je=arguments.length;nt<Je;nt++)for(var ze in Ge=arguments[nt])Object.prototype.hasOwnProperty.call(Ge,ze)&&(ct[ze]=Ge[ze]);return ct},S.apply(this,arguments)},P=new(function(){function ct(){}return ct.prototype.detect=function(Ge){var nt,Je,ze,Ke;if(!(typeof navigator<"u"&&void 0===(null===(ze=null===(Je=global.process)||void 0===Je?void 0:Je.versions)||void 0===ze?void 0:ze.node)&&void 0===(null===(Ke=global.Bun)||void 0===Ke?void 0:Ke.version)))return i.F.empty();var $e=((nt={})[h._2.PROCESS_RUNTIME_NAME]="browser",nt[h._2.PROCESS_RUNTIME_DESCRIPTION]="Web Browser",nt[h._2.PROCESS_RUNTIME_VERSION]=navigator.userAgent,nt);return this._getResourceAttributes($e,Ge)},ct.prototype._getResourceAttributes=function(Ge,nt){return""===Ge[h._2.PROCESS_RUNTIME_VERSION]?(C.s.debug("BrowserDetector failed: Unable to find required browser resources. "),i.F.empty()):new i.F(S({},Ge))},ct}()),A=new(function(){function ct(){}return ct.prototype.detect=function(Ge){return Promise.resolve(P.detect(Ge))},ct}()),g=s(75701),l=function(ct,Ge){var nt="function"==typeof Symbol&&ct[Symbol.iterator];if(!nt)return ct;var ze,Ve,Je=nt.call(ct),Ke=[];try{for(;(void 0===Ge||Ge-- >0)&&!(ze=Je.next()).done;)Ke.push(ze.value)}catch($e){Ve={error:$e}}finally{try{ze&&!ze.done&&(nt=Je.return)&&nt.call(Je)}finally{if(Ve)throw Ve.error}}return Ke},u=new(function(){function ct(){this._MAX_LENGTH=255,this._COMMA_SEPARATOR=",",this._LABEL_KEY_VALUE_SPLITTER="=",this._ERROR_MESSAGE_INVALID_CHARS="should be a ASCII string with a length greater than 0 and not exceed "+this._MAX_LENGTH+" characters.",this._ERROR_MESSAGE_INVALID_VALUE="should be a ASCII string with a length not exceed "+this._MAX_LENGTH+" characters."}return ct.prototype.detect=function(Ge){var nt={},Je=(0,g._)(),ze=Je.OTEL_RESOURCE_ATTRIBUTES,Ke=Je.OTEL_SERVICE_NAME;if(ze)try{var Ve=this._parseResourceAttributes(ze);Object.assign(nt,Ve)}catch($e){C.s.debug("EnvDetector failed: "+$e.message)}return Ke&&(nt[h.AV]=Ke),new i.F(nt)},ct.prototype._parseResourceAttributes=function(Ge){var nt,Je;if(!Ge)return{};var ze={},Ke=Ge.split(this._COMMA_SEPARATOR,-1);try{for(var Ve=function(ct){var Ge="function"==typeof Symbol&&Symbol.iterator,nt=Ge&&ct[Ge],Je=0;if(nt)return nt.call(ct);if(ct&&"number"==typeof ct.length)return{next:function(){return ct&&Je>=ct.length&&(ct=void 0),{value:ct&&ct[Je++],done:!ct}}};throw new TypeError(Ge?"Object is not iterable.":"Symbol.iterator is not defined.")}(Ke),$e=Ve.next();!$e.done;$e=Ve.next()){var Pe=$e.value.split(this._LABEL_KEY_VALUE_SPLITTER,-1);if(2===Pe.length){var J=l(Pe,2),vt=J[0],ve=J[1];if(vt=vt.trim(),ve=ve.trim().split(/^"|"$/).join(""),!this._isValidAndNotEmpty(vt))throw new Error("Attribute key "+this._ERROR_MESSAGE_INVALID_CHARS);if(!this._isValid(ve))throw new Error("Attribute value "+this._ERROR_MESSAGE_INVALID_VALUE);ze[vt]=decodeURIComponent(ve)}}}catch(ue){nt={error:ue}}finally{try{$e&&!$e.done&&(Je=Ve.return)&&Je.call(Ve)}finally{if(nt)throw nt.error}}return ze},ct.prototype._isValid=function(Ge){return Ge.length<=this._MAX_LENGTH&&this._isBaggageOctetString(Ge)},ct.prototype._isBaggageOctetString=function(Ge){for(var nt=0;nt<Ge.length;nt++){var Je=Ge.charCodeAt(nt);if(Je<33||44===Je||59===Je||92===Je||Je>126)return!1}return!0},ct.prototype._isValidAndNotEmpty=function(Ge){return Ge.length>0&&this._isValid(Ge)},ct}()),E=new(function(){function ct(){}return ct.prototype.detect=function(Ge){return Promise.resolve(u.detect(Ge))},ct}()),R=new(function(){function ct(){}return ct.prototype.detect=function(){return new i.F({})},ct}()),U=new(function(){function ct(){}return ct.prototype.detect=function(){return Promise.resolve(R.detect())},ct}()),Y=U,ae=R,G=U,k=R,X=U,q=U,Q=R,te=function(ct,Ge,nt,Je){return new(nt||(nt=Promise))(function(Ke,Ve){function $e(J){try{Pe(Je.next(J))}catch(vt){Ve(vt)}}function dt(J){try{Pe(Je.throw(J))}catch(vt){Ve(vt)}}function Pe(J){J.done?Ke(J.value):function ze(Ke){return Ke instanceof nt?Ke:new nt(function(Ve){Ve(Ke)})}(J.value).then($e,dt)}Pe((Je=Je.apply(ct,Ge||[])).next())})},Ee=function(ct,Ge){var Je,ze,Ke,Ve,nt={label:0,sent:function(){if(1&Ke[0])throw Ke[1];return Ke[1]},trys:[],ops:[]};return Ve={next:$e(0),throw:$e(1),return:$e(2)},"function"==typeof Symbol&&(Ve[Symbol.iterator]=function(){return this}),Ve;function $e(Pe){return function(J){return function dt(Pe){if(Je)throw new TypeError("Generator is already executing.");for(;nt;)try{if(Je=1,ze&&(Ke=2&Pe[0]?ze.return:Pe[0]?ze.throw||((Ke=ze.return)&&Ke.call(ze),0):ze.next)&&!(Ke=Ke.call(ze,Pe[1])).done)return Ke;switch(ze=0,Ke&&(Pe=[2&Pe[0],Ke.value]),Pe[0]){case 0:case 1:Ke=Pe;break;case 4:return nt.label++,{value:Pe[1],done:!1};case 5:nt.label++,ze=Pe[1],Pe=[0];continue;case 7:Pe=nt.ops.pop(),nt.trys.pop();continue;default:if(!(Ke=(Ke=nt.trys).length>0&&Ke[Ke.length-1])&&(6===Pe[0]||2===Pe[0])){nt=0;continue}if(3===Pe[0]&&(!Ke||Pe[1]>Ke[0]&&Pe[1]<Ke[3])){nt.label=Pe[1];break}if(6===Pe[0]&&nt.label<Ke[1]){nt.label=Ke[1],Ke=Pe;break}if(Ke&&nt.label<Ke[2]){nt.label=Ke[2],nt.ops.push(Pe);break}Ke[2]&&nt.ops.pop(),nt.trys.pop();continue}Pe=Ge.call(ct,nt)}catch(J){Pe=[6,J],ze=0}finally{Je=Ke=0}if(5&Pe[0])throw Pe[1];return{value:Pe[0]?Pe[1]:void 0,done:!0}}([Pe,J])}}},it=function(ct){return void 0===ct&&(ct={}),te(void 0,void 0,void 0,function(){var Ge;return Ee(this,function(nt){switch(nt.label){case 0:return[4,Promise.all((ct.detectors||[]).map(function(Je){return te(void 0,void 0,void 0,function(){var ze,Ke;return Ee(this,function(Ve){switch(Ve.label){case 0:return Ve.trys.push([0,2,,3]),[4,Je.detect(ct)];case 1:return ze=Ve.sent(),C.s.debug(Je.constructor.name+" found resource.",ze),[2,ze];case 2:return Ke=Ve.sent(),C.s.debug(Je.constructor.name+" failed: "+Ke.message),[2,i.F.empty()];case 3:return[2]}})})}))];case 1:return Ge=nt.sent(),Qe(Ge),[2,Ge.reduce(function(Je,ze){return Je.merge(ze)},i.F.empty())]}})})},Fe=function(ct){var Ge;void 0===ct&&(ct={});var nt=(null!==(Ge=ct.detectors)&&void 0!==Ge?Ge:[]).map(function(ze){try{var Ve,Ke=ze.detect(ct);return Ve=function(ct){return null!==ct&&"object"==typeof ct&&"function"==typeof ct.then}(Ke)?new i.F({},te(void 0,void 0,void 0,function(){return Ee(this,function(Pe){switch(Pe.label){case 0:return[4,Ke];case 1:return[2,Pe.sent().attributes]}})})):Ke,Ve.waitForAsyncAttributes?Ve.waitForAsyncAttributes().then(function(){return C.s.debug(ze.constructor.name+" found resource.",Ve)}):C.s.debug(ze.constructor.name+" found resource.",Ve),Ve}catch(dt){return C.s.error(ze.constructor.name+" failed: "+dt.message),i.F.empty()}}),Je=nt.reduce(function(ze,Ke){return ze.merge(Ke)},i.F.empty());return Je.waitForAsyncAttributes&&Je.waitForAsyncAttributes().then(function(){Qe(nt)}),Je},Qe=function(ct){ct.forEach(function(Ge){if(Object.keys(Ge.attributes).length>0){var nt=JSON.stringify(Ge.attributes,null,4);C.s.verbose(nt)}})}},99583:(St,z,s)=>{"use strict";function i(){return"unknown_service"}s.d(z,{m:()=>i})},19553:(St,z,s)=>{"use strict";s.d(z,{l:()=>U,d:()=>B});var i=s(40698),n=s(92414),h=s(33784),C=s(35475),S=s(92848),M=s(75701),P=s(76181),x=s(90775),A=s(9113),g=s(23403),m=s(31661),l=s(87390),r=s(70440),u=function(Y){var ae="function"==typeof Symbol&&Symbol.iterator,G=ae&&Y[ae],k=0;if(G)return G.call(Y);if(Y&&"number"==typeof Y.length)return{next:function(){return Y&&k>=Y.length&&(Y=void 0),{value:Y&&Y[k++],done:!Y}}};throw new TypeError(ae?"Object is not iterable.":"Symbol.iterator is not defined.")},v=function(){function Y(ae){this._spanProcessors=ae}return Y.prototype.forceFlush=function(){var ae,G,k=[];try{for(var X=u(this._spanProcessors),q=X.next();!q.done;q=X.next())k.push(q.value.forceFlush())}catch(ce){ae={error:ce}}finally{try{q&&!q.done&&(G=X.return)&&G.call(X)}finally{if(ae)throw ae.error}}return new Promise(function(ce){Promise.all(k).then(function(){ce()}).catch(function(te){(0,r.s)(te||new Error("MultiSpanProcessor: forceFlush failed")),ce()})})},Y.prototype.onStart=function(ae,G){var k,X;try{for(var q=u(this._spanProcessors),Q=q.next();!Q.done;Q=q.next())Q.value.onStart(ae,G)}catch(te){k={error:te}}finally{try{Q&&!Q.done&&(X=q.return)&&X.call(q)}finally{if(k)throw k.error}}},Y.prototype.onEnd=function(ae){var G,k;try{for(var X=u(this._spanProcessors),q=X.next();!q.done;q=X.next())q.value.onEnd(ae)}catch(ce){G={error:ce}}finally{try{q&&!q.done&&(k=X.return)&&k.call(X)}finally{if(G)throw G.error}}},Y.prototype.shutdown=function(){var ae,G,k=[];try{for(var X=u(this._spanProcessors),q=X.next();!q.done;q=X.next())k.push(q.value.shutdown())}catch(ce){ae={error:ce}}finally{try{q&&!q.done&&(G=X.return)&&G.call(X)}finally{if(ae)throw ae.error}}return new Promise(function(ce,te){Promise.all(k).then(function(){ce()},te)})},Y}(),E=s(18225),T=s(44748),R=s(77686),B=function(Y){return Y[Y.resolved=0]="resolved",Y[Y.timeout=1]="timeout",Y[Y.error=2]="error",Y[Y.unresolved=3]="unresolved",Y}(B||{}),U=function(){function Y(ae){var G;void 0===ae&&(ae={}),this._registeredSpanProcessors=[],this._tracers=new Map;var k=(0,S.h)({},(0,l.S)(),(0,R.W)(ae));this.resource=null!==(G=k.resource)&&void 0!==G?G:g.F.empty(),this.resource=g.F.default().merge(this.resource),this._config=Object.assign({},k,{resource:this.resource});var X=this._buildExporterFromEnv();if(void 0!==X){var q=new T.J(X);this.activeSpanProcessor=q}else this.activeSpanProcessor=new E.N}return Y.prototype.getTracer=function(ae,G,k){var X=ae+"@"+(G||"")+":"+(k?.schemaUrl||"");return this._tracers.has(X)||this._tracers.set(X,new m.s({name:ae,version:G,schemaUrl:k?.schemaUrl},this._config,this)),this._tracers.get(X)},Y.prototype.addSpanProcessor=function(ae){0===this._registeredSpanProcessors.length&&this.activeSpanProcessor.shutdown().catch(function(G){return i.s.error("Error while trying to shutdown current span processor",G)}),this._registeredSpanProcessors.push(ae),this.activeSpanProcessor=new v(this._registeredSpanProcessors)},Y.prototype.getActiveSpanProcessor=function(){return this.activeSpanProcessor},Y.prototype.register=function(ae){void 0===ae&&(ae={}),n.u.setGlobalTracerProvider(this),void 0===ae.propagator&&(ae.propagator=this._buildPropagatorFromEnv()),ae.contextManager&&h._.setGlobalContextManager(ae.contextManager),ae.propagator&&C.$.setGlobalPropagator(ae.propagator)},Y.prototype.forceFlush=function(){var ae=this._config.forceFlushTimeoutMillis,G=this._registeredSpanProcessors.map(function(k){return new Promise(function(X){var q,Q=setTimeout(function(){X(new Error("Span processor did not completed within timeout period of "+ae+" ms")),q=B.timeout},ae);k.forceFlush().then(function(){clearTimeout(Q),q!==B.timeout&&X(q=B.resolved)}).catch(function(ce){clearTimeout(Q),q=B.error,X(ce)})})});return new Promise(function(k,X){Promise.all(G).then(function(q){var Q=q.filter(function(ce){return ce!==B.resolved});Q.length>0?X(Q):k()}).catch(function(q){return X([q])})})},Y.prototype.shutdown=function(){return this.activeSpanProcessor.shutdown()},Y.prototype._getPropagator=function(ae){var G;return null===(G=this.constructor._registeredPropagators.get(ae))||void 0===G?void 0:G()},Y.prototype._getSpanExporter=function(ae){var G;return null===(G=this.constructor._registeredExporters.get(ae))||void 0===G?void 0:G()},Y.prototype._buildPropagatorFromEnv=function(){var ae=this,G=Array.from(new Set((0,M._)().OTEL_PROPAGATORS)),X=G.map(function(q){var Q=ae._getPropagator(q);return Q||i.s.warn('Propagator "'+q+'" requested through environment variable is unavailable.'),Q}).reduce(function(q,Q){return Q&&q.push(Q),q},[]);if(0!==X.length)return 1===G.length?X[0]:new P.n({propagators:X})},Y.prototype._buildExporterFromEnv=function(){var ae=(0,M._)().OTEL_TRACES_EXPORTER;if("none"!==ae&&""!==ae){var G=this._getSpanExporter(ae);return G||i.s.error('Exporter "'+ae+'" requested through environment variable is unavailable.'),G}},Y._registeredPropagators=new Map([["tracecontext",function(){return new x.lm}],["baggage",function(){return new A.t}]]),Y._registeredExporters=new Map,Y}()},45198:(St,z,s)=>{"use strict";s.d(z,{i:()=>i});var i=function(n){return n[n.NOT_RECORD=0]="NOT_RECORD",n[n.RECORD=1]="RECORD",n[n.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED",n}(i||{})},73569:(St,z,s)=>{"use strict";s.d(z,{L:()=>g});var i=s(75376),n=s(40698),h=s(52246),C=s(23500),S=s(58312),M=s(52666),A=function(m,l){var r="function"==typeof Symbol&&m[Symbol.iterator];if(!r)return m;var v,T,u=r.call(m),E=[];try{for(;(void 0===l||l-- >0)&&!(v=u.next()).done;)E.push(v.value)}catch(R){T={error:R}}finally{try{v&&!v.done&&(r=u.return)&&r.call(u)}finally{if(T)throw T.error}}return E},g=function(){function m(l,r,u,v,E,T,R,B,U,Y){void 0===R&&(R=[]),this.attributes={},this.links=[],this.events=[],this._droppedAttributesCount=0,this._droppedEventsCount=0,this._droppedLinksCount=0,this.status={code:i.s.UNSET},this.endTime=[0,0],this._ended=!1,this._duration=[-1,-1],this.name=u,this._spanContext=v,this.parentSpanId=T,this.kind=E,this.links=R;var ae=Date.now();this._performanceStartTime=h.u.now(),this._performanceOffset=ae-(this._performanceStartTime+(0,C.uc)()),this._startTimeProvided=null!=B,this.startTime=this._getTime(B??ae),this.resource=l.resource,this.instrumentationLibrary=l.instrumentationLibrary,this._spanLimits=l.getSpanLimits(),this._attributeValueLengthLimit=this._spanLimits.attributeValueLengthLimit||0,null!=Y&&this.setAttributes(Y),this._spanProcessor=l.getActiveSpanProcessor(),this._spanProcessor.onStart(this,r)}return m.prototype.spanContext=function(){return this._spanContext},m.prototype.setAttribute=function(l,r){return null==r||this._isSpanEnded()?this:0===l.length?(n.s.warn("Invalid attribute key: "+l),this):(0,S.m)(r)?Object.keys(this.attributes).length>=this._spanLimits.attributeCountLimit&&!Object.prototype.hasOwnProperty.call(this.attributes,l)?(this._droppedAttributesCount++,this):(this.attributes[l]=this._truncateToSize(r),this):(n.s.warn("Invalid attribute value set for key: "+l),this)},m.prototype.setAttributes=function(l){var r,u;try{for(var v=function(m){var l="function"==typeof Symbol&&Symbol.iterator,r=l&&m[l],u=0;if(r)return r.call(m);if(m&&"number"==typeof m.length)return{next:function(){return m&&u>=m.length&&(m=void 0),{value:m&&m[u++],done:!m}}};throw new TypeError(l?"Object is not iterable.":"Symbol.iterator is not defined.")}(Object.entries(l)),E=v.next();!E.done;E=v.next()){var T=A(E.value,2);this.setAttribute(T[0],T[1])}}catch(U){r={error:U}}finally{try{E&&!E.done&&(u=v.return)&&u.call(v)}finally{if(r)throw r.error}}return this},m.prototype.addEvent=function(l,r,u){if(this._isSpanEnded())return this;if(0===this._spanLimits.eventCountLimit)return n.s.warn("No events allowed."),this._droppedEventsCount++,this;this.events.length>=this._spanLimits.eventCountLimit&&(0===this._droppedEventsCount&&n.s.debug("Dropping extra events."),this.events.shift(),this._droppedEventsCount++),(0,C.Ir)(r)&&((0,C.Ir)(u)||(u=r),r=void 0);var v=(0,S.L)(r);return this.events.push({name:l,attributes:v,time:this._getTime(u),droppedAttributesCount:0}),this},m.prototype.setStatus=function(l){return this._isSpanEnded()||(this.status=l),this},m.prototype.updateName=function(l){return this._isSpanEnded()||(this.name=l),this},m.prototype.end=function(l){this._isSpanEnded()?n.s.error(this.name+" "+this._spanContext.traceId+"-"+this._spanContext.spanId+" - You can only call end() on a span once."):(this._ended=!0,this.endTime=this._getTime(l),this._duration=(0,C.W5)(this.startTime,this.endTime),this._duration[0]<0&&(n.s.warn("Inconsistent start and end time, startTime > endTime. Setting span duration to 0ms.",this.startTime,this.endTime),this.endTime=this.startTime.slice(),this._duration=[0,0]),this._droppedEventsCount>0&&n.s.warn("Dropped "+this._droppedEventsCount+" events because eventCountLimit reached"),this._spanProcessor.onEnd(this))},m.prototype._getTime=function(l){if("number"==typeof l&&l<h.u.now())return(0,C._5)(l+this._performanceOffset);if("number"==typeof l)return(0,C.lg)(l);if(l instanceof Date)return(0,C.lg)(l.getTime());if((0,C.VL)(l))return l;if(this._startTimeProvided)return(0,C.lg)(Date.now());var r=h.u.now()-this._performanceStartTime;return(0,C.mw)(this.startTime,(0,C.lg)(r))},m.prototype.isRecording=function(){return!1===this._ended},m.prototype.recordException=function(l,r){var u={};"string"==typeof l?u[M.IXq.EXCEPTION_MESSAGE]=l:l&&(l.code?u[M.IXq.EXCEPTION_TYPE]=l.code.toString():l.name&&(u[M.IXq.EXCEPTION_TYPE]=l.name),l.message&&(u[M.IXq.EXCEPTION_MESSAGE]=l.message),l.stack&&(u[M.IXq.EXCEPTION_STACKTRACE]=l.stack)),u[M.IXq.EXCEPTION_TYPE]||u[M.IXq.EXCEPTION_MESSAGE]?this.addEvent("exception",u,r):n.s.warn("Failed to record an exception "+l)},Object.defineProperty(m.prototype,"duration",{get:function(){return this._duration},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"ended",{get:function(){return this._ended},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"droppedAttributesCount",{get:function(){return this._droppedAttributesCount},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"droppedEventsCount",{get:function(){return this._droppedEventsCount},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"droppedLinksCount",{get:function(){return this._droppedLinksCount},enumerable:!1,configurable:!0}),m.prototype._isSpanEnded=function(){return this._ended&&n.s.warn("Can not execute the operation on ended Span {traceId: "+this._spanContext.traceId+", spanId: "+this._spanContext.spanId+"}"),this._ended},m.prototype._truncateToLimitUtil=function(l,r){return l.length<=r?l:l.substr(0,r)},m.prototype._truncateToSize=function(l){var r=this,u=this._attributeValueLengthLimit;return u<=0?(n.s.warn("Attribute value limit must be positive, got "+u),l):"string"==typeof l?this._truncateToLimitUtil(l,u):Array.isArray(l)?l.map(function(v){return"string"==typeof v?r._truncateToLimitUtil(v,u):v}):l},m}()},31661:(St,z,s)=>{"use strict";s.d(z,{s:()=>r});var i=s(33784),n=s(92414),h=s(40698),C=s(99652),S=s(23431),M=s(42710),P=s(57585),x=s(10857),A=s(58312),g=s(73569),m=s(77686),l=s(73348),r=function(){function u(v,E,T){this._tracerProvider=T;var R=(0,m.R)(E);this._sampler=R.sampler,this._generalLimits=R.generalLimits,this._spanLimits=R.spanLimits,this._idGenerator=E.idGenerator||new l.s,this.resource=T.resource,this.instrumentationLibrary=v}return u.prototype.startSpan=function(v,E,T){var R,B,U;void 0===E&&(E={}),void 0===T&&(T=i._.active()),E.root&&(T=n.u.deleteSpan(T));var Y=n.u.getSpan(T);if((0,x.Zf)(T))return h.s.debug("Instrumentation suppressed, returning Noop Span"),n.u.wrapSpanContext(C.dM);var X,q,Q,G=Y?.spanContext(),k=this._idGenerator.generateSpanId();G&&n.u.isSpanContextValid(G)?(X=G.traceId,q=G.traceState,Q=G.spanId):X=this._idGenerator.generateTraceId();var ce=null!==(R=E.kind)&&void 0!==R?R:S.v.INTERNAL,te=(null!==(B=E.links)&&void 0!==B?B:[]).map(function(nt){return{context:nt.context,attributes:(0,A.L)(nt.attributes)}}),Ee=(0,A.L)(E.attributes),it=this._sampler.shouldSample(T,X,v,ce,Ee,te);q=null!==(U=it.traceState)&&void 0!==U?U:q;var Qe={traceId:X,spanId:k,traceFlags:it.decision===M.i.RECORD_AND_SAMPLED?P.X.SAMPLED:P.X.NONE,traceState:q};if(it.decision===M.i.NOT_RECORD)return h.s.debug("Recording is off, propagating context in a non-recording span"),n.u.wrapSpanContext(Qe);var ct=(0,A.L)(Object.assign(Ee,it.attributes));return new g.L(this,T,v,Qe,ce,Q,te,E.startTime,void 0,ct)},u.prototype.startActiveSpan=function(v,E,T,R){var B,U,Y;if(!(arguments.length<2)){2===arguments.length?Y=E:3===arguments.length?(B=E,Y=T):(B=E,U=T,Y=R);var ae=U??i._.active(),G=this.startSpan(v,B,ae),k=n.u.setSpan(ae,G);return i._.with(k,Y,void 0,G)}},u.prototype.getGeneralLimits=function(){return this._generalLimits},u.prototype.getSpanLimits=function(){return this._spanLimits},u.prototype.getActiveSpanProcessor=function(){return this._tracerProvider.getActiveSpanProcessor()},u}()},87390:(St,z,s)=>{"use strict";s.d(z,{S:()=>m,m:()=>l});var i=s(40698),n=s(75701),h=s(26056),C=s(3183),S=s(6221),M=s(80548),P=s(48211),x=(0,n._)(),A=h.R.AlwaysOn,g=1;function m(){return{sampler:l(x),forceFlushTimeoutMillis:3e4,generalLimits:{attributeValueLengthLimit:(0,n._)().OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT,attributeCountLimit:(0,n._)().OTEL_ATTRIBUTE_COUNT_LIMIT},spanLimits:{attributeValueLengthLimit:(0,n._)().OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT,attributeCountLimit:(0,n._)().OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT,linkCountLimit:(0,n._)().OTEL_SPAN_LINK_COUNT_LIMIT,eventCountLimit:(0,n._)().OTEL_SPAN_EVENT_COUNT_LIMIT,attributePerEventCountLimit:(0,n._)().OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT,attributePerLinkCountLimit:(0,n._)().OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT}}}function l(u){switch(void 0===u&&(u=(0,n._)()),u.OTEL_TRACES_SAMPLER){case h.R.AlwaysOn:return new S.f;case h.R.AlwaysOff:return new C.t;case h.R.ParentBasedAlwaysOn:return new M.e({root:new S.f});case h.R.ParentBasedAlwaysOff:return new M.e({root:new C.t});case h.R.TraceIdRatio:return new P.h(r(u));case h.R.ParentBasedTraceIdRatio:return new M.e({root:new P.h(r(u))});default:return i.s.error('OTEL_TRACES_SAMPLER value "'+u.OTEL_TRACES_SAMPLER+" invalid, defaulting to "+A+'".'),new S.f}}function r(u){if(void 0===u.OTEL_TRACES_SAMPLER_ARG||""===u.OTEL_TRACES_SAMPLER_ARG)return i.s.error("OTEL_TRACES_SAMPLER_ARG is blank, defaulting to "+g+"."),g;var v=Number(u.OTEL_TRACES_SAMPLER_ARG);return isNaN(v)?(i.s.error("OTEL_TRACES_SAMPLER_ARG="+u.OTEL_TRACES_SAMPLER_ARG+" was given, but it is invalid, defaulting to "+g+"."),g):v<0||v>1?(i.s.error("OTEL_TRACES_SAMPLER_ARG="+u.OTEL_TRACES_SAMPLER_ARG+" was given, but it is out of range ([0..1]), defaulting to "+g+"."),g):v}},18225:(St,z,s)=>{"use strict";s.d(z,{N:()=>i});var i=function(){function n(){}return n.prototype.onStart=function(h,C){},n.prototype.onEnd=function(h){},n.prototype.shutdown=function(){return Promise.resolve()},n.prototype.forceFlush=function(){return Promise.resolve()},n}()},73348:(St,z,s)=>{"use strict";s.d(z,{s:()=>h});var h=function(){return function M(){this.generateTraceId=S(16),this.generateSpanId=S(8)}}(),C=Array(32);function S(M){return function(){for(var x=0;x<2*M;x++)C[x]=Math.floor(16*Math.random())+48,C[x]>=58&&(C[x]+=39);return String.fromCharCode.apply(null,C.slice(0,2*M))}}},44748:(St,z,s)=>{"use strict";s.d(z,{J:()=>l});var i=s(40698),n=s(57585),h=s(33784),C=s(75701),S=s(25578),M=s(10857),P=s(99200),x=s(70440),A=s(60554),g=function(){function r(u,v){this._exporter=u,this._isExporting=!1,this._finishedSpans=[],this._droppedSpansCount=0;var E=(0,C._)();this._maxExportBatchSize="number"==typeof v?.maxExportBatchSize?v.maxExportBatchSize:E.OTEL_BSP_MAX_EXPORT_BATCH_SIZE,this._maxQueueSize="number"==typeof v?.maxQueueSize?v.maxQueueSize:E.OTEL_BSP_MAX_QUEUE_SIZE,this._scheduledDelayMillis="number"==typeof v?.scheduledDelayMillis?v.scheduledDelayMillis:E.OTEL_BSP_SCHEDULE_DELAY,this._exportTimeoutMillis="number"==typeof v?.exportTimeoutMillis?v.exportTimeoutMillis:E.OTEL_BSP_EXPORT_TIMEOUT,this._shutdownOnce=new S.I(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize&&(i.s.warn("BatchSpanProcessor: maxExportBatchSize must be smaller or equal to maxQueueSize, setting maxExportBatchSize to match maxQueueSize"),this._maxExportBatchSize=this._maxQueueSize)}return r.prototype.forceFlush=function(){return this._shutdownOnce.isCalled?this._shutdownOnce.promise:this._flushAll()},r.prototype.onStart=function(u,v){},r.prototype.onEnd=function(u){this._shutdownOnce.isCalled||u.spanContext().traceFlags&n.X.SAMPLED&&this._addToBuffer(u)},r.prototype.shutdown=function(){return this._shutdownOnce.call()},r.prototype._shutdown=function(){var u=this;return Promise.resolve().then(function(){return u.onShutdown()}).then(function(){return u._flushAll()}).then(function(){return u._exporter.shutdown()})},r.prototype._addToBuffer=function(u){if(this._finishedSpans.length>=this._maxQueueSize)return 0===this._droppedSpansCount&&i.s.debug("maxQueueSize reached, dropping spans"),void this._droppedSpansCount++;this._droppedSpansCount>0&&(i.s.warn("Dropped "+this._droppedSpansCount+" spans because maxQueueSize reached"),this._droppedSpansCount=0),this._finishedSpans.push(u),this._maybeStartTimer()},r.prototype._flushAll=function(){var u=this;return new Promise(function(v,E){for(var T=[],B=0,U=Math.ceil(u._finishedSpans.length/u._maxExportBatchSize);B<U;B++)T.push(u._flushOneBatch());Promise.all(T).then(function(){v()}).catch(E)})},r.prototype._flushOneBatch=function(){var u=this;return this._clearTimer(),0===this._finishedSpans.length?Promise.resolve():new Promise(function(v,E){var T=setTimeout(function(){E(new Error("Timeout"))},u._exportTimeoutMillis);h._.with((0,M.M1)(h._.active()),function(){var R;u._finishedSpans.length<=u._maxExportBatchSize?(R=u._finishedSpans,u._finishedSpans=[]):R=u._finishedSpans.splice(0,u._maxExportBatchSize);for(var B=function(){return u._exporter.export(R,function(k){var X;clearTimeout(T),k.code===P.V.SUCCESS?v():E(null!==(X=k.error)&&void 0!==X?X:new Error("BatchSpanProcessor: span export failed"))})},U=null,Y=0,ae=R.length;Y<ae;Y++){var G=R[Y];G.resource.asyncAttributesPending&&G.resource.waitForAsyncAttributes&&(U??(U=[]),U.push(G.resource.waitForAsyncAttributes()))}null===U?B():Promise.all(U).then(B,function(k){(0,x.s)(k),E(k)})})})},r.prototype._maybeStartTimer=function(){var u=this;if(!this._isExporting){var v=function(){u._isExporting=!0,u._flushOneBatch().finally(function(){u._isExporting=!1,u._finishedSpans.length>0&&(u._clearTimer(),u._maybeStartTimer())}).catch(function(E){u._isExporting=!1,(0,x.s)(E)})};if(this._finishedSpans.length>=this._maxExportBatchSize)return v();void 0===this._timer&&(this._timer=setTimeout(function(){return v()},this._scheduledDelayMillis),(0,A.K)(this._timer))}},r.prototype._clearTimer=function(){void 0!==this._timer&&(clearTimeout(this._timer),this._timer=void 0)},r}(),m=function(){var r=function(u,v){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,T){E.__proto__=T}||function(E,T){for(var R in T)Object.prototype.hasOwnProperty.call(T,R)&&(E[R]=T[R])})(u,v)};return function(u,v){if("function"!=typeof v&&null!==v)throw new TypeError("Class extends value "+String(v)+" is not a constructor or null");function E(){this.constructor=u}r(u,v),u.prototype=null===v?Object.create(v):(E.prototype=v.prototype,new E)}}(),l=function(r){function u(v,E){var T=r.call(this,v,E)||this;return T.onInit(E),T}return m(u,r),u.prototype.onInit=function(v){var E=this;!0!==v?.disableAutoFlushOnDocumentHide&&typeof document<"u"&&(this._visibilityChangeListener=function(){"hidden"===document.visibilityState&&E.forceFlush()},this._pageHideListener=function(){E.forceFlush()},document.addEventListener("visibilitychange",this._visibilityChangeListener),document.addEventListener("pagehide",this._pageHideListener))},u.prototype.onShutdown=function(){typeof document<"u"&&(this._visibilityChangeListener&&document.removeEventListener("visibilitychange",this._visibilityChangeListener),this._pageHideListener&&document.removeEventListener("pagehide",this._pageHideListener))},u}(g)},3183:(St,z,s)=>{"use strict";s.d(z,{t:()=>n});var i=s(45198),n=function(){function h(){}return h.prototype.shouldSample=function(){return{decision:i.i.NOT_RECORD}},h.prototype.toString=function(){return"AlwaysOffSampler"},h}()},6221:(St,z,s)=>{"use strict";s.d(z,{f:()=>n});var i=s(45198),n=function(){function h(){}return h.prototype.shouldSample=function(){return{decision:i.i.RECORD_AND_SAMPLED}},h.prototype.toString=function(){return"AlwaysOnSampler"},h}()},80548:(St,z,s)=>{"use strict";s.d(z,{e:()=>P});var i=s(92414),n=s(63051),h=s(57585),C=s(70440),S=s(3183),M=s(6221),P=function(){function x(A){var g,m,l,r;this._root=A.root,this._root||((0,C.s)(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new M.f),this._remoteParentSampled=null!==(g=A.remoteParentSampled)&&void 0!==g?g:new M.f,this._remoteParentNotSampled=null!==(m=A.remoteParentNotSampled)&&void 0!==m?m:new S.t,this._localParentSampled=null!==(l=A.localParentSampled)&&void 0!==l?l:new M.f,this._localParentNotSampled=null!==(r=A.localParentNotSampled)&&void 0!==r?r:new S.t}return x.prototype.shouldSample=function(A,g,m,l,r,u){var v=i.u.getSpanContext(A);return v&&(0,n.YA)(v)?v.isRemote?v.traceFlags&h.X.SAMPLED?this._remoteParentSampled.shouldSample(A,g,m,l,r,u):this._remoteParentNotSampled.shouldSample(A,g,m,l,r,u):v.traceFlags&h.X.SAMPLED?this._localParentSampled.shouldSample(A,g,m,l,r,u):this._localParentNotSampled.shouldSample(A,g,m,l,r,u):this._root.shouldSample(A,g,m,l,r,u)},x.prototype.toString=function(){return"ParentBased{root="+this._root.toString()+", remoteParentSampled="+this._remoteParentSampled.toString()+", remoteParentNotSampled="+this._remoteParentNotSampled.toString()+", localParentSampled="+this._localParentSampled.toString()+", localParentNotSampled="+this._localParentNotSampled.toString()+"}"},x}()},48211:(St,z,s)=>{"use strict";s.d(z,{h:()=>h});var i=s(63051),n=s(45198),h=function(){function C(S){void 0===S&&(S=0),this._ratio=S,this._ratio=this._normalize(S),this._upperBound=Math.floor(4294967295*this._ratio)}return C.prototype.shouldSample=function(S,M){return{decision:(0,i.hX)(M)&&this._accumulate(M)<this._upperBound?n.i.RECORD_AND_SAMPLED:n.i.NOT_RECORD}},C.prototype.toString=function(){return"TraceIdRatioBased{"+this._ratio+"}"},C.prototype._normalize=function(S){return"number"!=typeof S||isNaN(S)?0:S>=1?1:S<=0?0:S},C.prototype._accumulate=function(S){for(var M=0,P=0;P<S.length/8;P++){var x=8*P;M=(M^parseInt(S.slice(x,x+8),16))>>>0}return M},C}()},77686:(St,z,s)=>{"use strict";s.d(z,{R:()=>C,W:()=>S});var i=s(87390),n=s(75701),h=s(98828);function C(M){var P={sampler:(0,i.m)()},x=(0,i.S)(),A=Object.assign({},x,P,M);return A.generalLimits=Object.assign({},x.generalLimits,M.generalLimits||{}),A.spanLimits=Object.assign({},x.spanLimits,M.spanLimits||{}),A}function S(M){var P,x,A,g,m,l,r,u,v,E,T,R,B=Object.assign({},M.spanLimits),U=(0,n.w)();return B.attributeCountLimit=null!==(l=null!==(m=null!==(g=null!==(x=null===(P=M.spanLimits)||void 0===P?void 0:P.attributeCountLimit)&&void 0!==x?x:null===(A=M.generalLimits)||void 0===A?void 0:A.attributeCountLimit)&&void 0!==g?g:U.OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT)&&void 0!==m?m:U.OTEL_ATTRIBUTE_COUNT_LIMIT)&&void 0!==l?l:h.fv,B.attributeValueLengthLimit=null!==(R=null!==(T=null!==(E=null!==(u=null===(r=M.spanLimits)||void 0===r?void 0:r.attributeValueLengthLimit)&&void 0!==u?u:null===(v=M.generalLimits)||void 0===v?void 0:v.attributeValueLengthLimit)&&void 0!==E?E:U.OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT)&&void 0!==T?T:U.OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT)&&void 0!==R?R:h.aE,Object.assign({},M,{spanLimits:B})}},86215:(St,z,s)=>{"use strict";s.d(z,{D:()=>C});var i=s(24773),C=function(){function S(){this._enabled=!1,this._currentContext=i.l}return S.prototype._bindFunction=function(M,P){void 0===M&&(M=i.l);var x=this,A=function(){for(var g=this,m=[],l=0;l<arguments.length;l++)m[l]=arguments[l];return x.with(M,function(){return P.apply(g,m)})};return Object.defineProperty(A,"length",{enumerable:!1,configurable:!0,writable:!1,value:P.length}),A},S.prototype.active=function(){return this._currentContext},S.prototype.bind=function(M,P){return void 0===M&&(M=this.active()),"function"==typeof P?this._bindFunction(M,P):P},S.prototype.disable=function(){return this._currentContext=i.l,this._enabled=!1,this},S.prototype.enable=function(){return this._enabled||(this._enabled=!0,this._currentContext=i.l),this},S.prototype.with=function(M,P,x){for(var A=[],g=3;g<arguments.length;g++)A[g-3]=arguments[g];var m=this._currentContext;this._currentContext=M||i.l;try{return P.call.apply(P,function(S,M,P){if(P||2===arguments.length)for(var g,x=0,A=M.length;x<A;x++)(g||!(x in M))&&(g||(g=Array.prototype.slice.call(M,0,x)),g[x]=M[x]);return S.concat(g||Array.prototype.slice.call(M))}([x],function(S,M){var P="function"==typeof Symbol&&S[Symbol.iterator];if(!P)return S;var A,m,x=P.call(S),g=[];try{for(;(void 0===M||M-- >0)&&!(A=x.next()).done;)g.push(A.value)}catch(l){m={error:l}}finally{try{A&&!A.done&&(P=x.return)&&P.call(x)}finally{if(m)throw m.error}}return g}(A),!1))}finally{this._currentContext=m}},S}()},77855:(St,z,s)=>{"use strict";s.d(z,{Z:()=>C});var i=s(19553),n=s(86215),h=function(){var S=function(M,P){return(S=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,A){x.__proto__=A}||function(x,A){for(var g in A)Object.prototype.hasOwnProperty.call(A,g)&&(x[g]=A[g])})(M,P)};return function(M,P){if("function"!=typeof P&&null!==P)throw new TypeError("Class extends value "+String(P)+" is not a constructor or null");function x(){this.constructor=M}S(M,P),M.prototype=null===P?Object.create(P):(x.prototype=P.prototype,new x)}}(),C=function(S){function M(P){void 0===P&&(P={});var x=S.call(this,P)||this;if(P.contextManager)throw"contextManager should be defined in register method not in constructor";if(P.propagator)throw"propagator should be defined in register method not in constructor";return x}return h(M,S),M.prototype.register=function(P){void 0===P&&(P={}),void 0===P.contextManager&&(P.contextManager=new n.D),P.contextManager&&P.contextManager.enable(),S.prototype.register.call(this,P)},M}(i.l)},81116:(St,z,s)=>{"use strict";s.r(z),s.d(z,{AlwaysOffSampler:()=>$e.t,AlwaysOnSampler:()=>dt.f,BasicTracerProvider:()=>k.l,BatchSpanProcessor:()=>X.J,ConsoleSpanExporter:()=>te,ForceFlushState:()=>k.d,InMemorySpanExporter:()=>Fe,NoopSpanProcessor:()=>Ve.N,ParentBasedSampler:()=>Pe.e,PerformanceTimingNames:()=>h,RandomIdGenerator:()=>q.s,SamplingDecision:()=>vt.i,SimpleSpanProcessor:()=>Ke,Span:()=>ve.L,StackContextManager:()=>n.D,TraceIdRatioBasedSampler:()=>J.h,Tracer:()=>G.s,WebTracerProvider:()=>i.Z,addSpanNetworkEvent:()=>g,addSpanNetworkEvents:()=>m,getElementXPath:()=>B,getResource:()=>u,hasKey:()=>A,normalizeUrl:()=>R,parseUrl:()=>T,shouldPropagateTraceHeaders:()=>ae,sortResources:()=>l});var P,i=s(77855),n=s(86215),h=function(ue){return ue.CONNECT_END="connectEnd",ue.CONNECT_START="connectStart",ue.DECODED_BODY_SIZE="decodedBodySize",ue.DOM_COMPLETE="domComplete",ue.DOM_CONTENT_LOADED_EVENT_END="domContentLoadedEventEnd",ue.DOM_CONTENT_LOADED_EVENT_START="domContentLoadedEventStart",ue.DOM_INTERACTIVE="domInteractive",ue.DOMAIN_LOOKUP_END="domainLookupEnd",ue.DOMAIN_LOOKUP_START="domainLookupStart",ue.ENCODED_BODY_SIZE="encodedBodySize",ue.FETCH_START="fetchStart",ue.LOAD_EVENT_END="loadEventEnd",ue.LOAD_EVENT_START="loadEventStart",ue.NAVIGATION_START="navigationStart",ue.REDIRECT_END="redirectEnd",ue.REDIRECT_START="redirectStart",ue.REQUEST_START="requestStart",ue.RESPONSE_END="responseEnd",ue.RESPONSE_START="responseStart",ue.SECURE_CONNECTION_START="secureConnectionStart",ue.UNLOAD_EVENT_END="unloadEventEnd",ue.UNLOAD_EVENT_START="unloadEventStart",ue}(h||{}),C=s(23500),S=s(28280),M=s(52666);function A(ue,et){return et in ue}function g(ue,et,se,Ce){var be=void 0,rt=void 0;A(se,et)&&"number"==typeof se[et]&&(be=se[et]);var me=Ce||h.FETCH_START;if(A(se,me)&&"number"==typeof se[me]&&(rt=se[me]),void 0!==be&&void 0!==rt&&be>=rt)return ue.addEvent(et,be),ue}function m(ue,et){g(ue,h.FETCH_START,et),g(ue,h.DOMAIN_LOOKUP_START,et),g(ue,h.DOMAIN_LOOKUP_END,et),g(ue,h.CONNECT_START,et),A(et,"name")&&et.name.startsWith("https:")&&g(ue,h.SECURE_CONNECTION_START,et),g(ue,h.CONNECT_END,et),g(ue,h.REQUEST_START,et),g(ue,h.RESPONSE_START,et),g(ue,h.RESPONSE_END,et);var se=et[h.ENCODED_BODY_SIZE];void 0!==se&&ue.setAttribute(M.IXq.HTTP_RESPONSE_CONTENT_LENGTH,se);var Ce=et[h.DECODED_BODY_SIZE];void 0!==Ce&&se!==Ce&&ue.setAttribute(M.IXq.HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED,Ce)}function l(ue){return ue.slice().sort(function(et,se){var Ce=et[h.FETCH_START],be=se[h.FETCH_START];return Ce>be?1:Ce<be?-1:0})}function r(){return typeof location<"u"?location.origin:void 0}function u(ue,et,se,Ce,be,rt){void 0===be&&(be=new WeakSet);var me=T(ue),le=function E(ue,et,se,Ce,be,rt){var me=(0,C.u5)(et),le=(0,C.u5)(se),Xe=Ce.filter(function(Se){var fe=(0,C.u5)((0,C.KJ)(Se[h.FETCH_START])),Ne=(0,C.u5)((0,C.KJ)(Se[h.RESPONSE_END]));return Se.initiatorType.toLowerCase()===(rt||"xmlhttprequest")&&Se.name===ue&&fe>=me&&Ne<=le});return Xe.length>0&&(Xe=Xe.filter(function(Se){return!be.has(Se)})),Xe}(ue=me.toString(),et,se,Ce,be,rt);if(0===le.length)return{mainRequest:void 0};if(1===le.length)return{mainRequest:le[0]};var Xe=l(le);if(me.origin!==r()&&Xe.length>1){var Se=Xe[0],fe=function v(ue,et,se){for(var me,Ce=(0,C.u5)(se),be=(0,C.u5)((0,C.KJ)(et)),rt=ue[1],le=ue.length,Xe=1;Xe<le;Xe++){var Se=ue[Xe],fe=(0,C.u5)((0,C.KJ)(Se[h.FETCH_START])),ye=Ce-(0,C.u5)((0,C.KJ)(Se[h.RESPONSE_END]));fe>=be&&(!me||ye<me)&&(me=ye,rt=Se)}return rt}(Xe,Se[h.RESPONSE_END],se);return fe[h.FETCH_START]<Se[h.RESPONSE_END]&&(fe=Se,Se=void 0),{corsPreFlightRequest:Se,mainRequest:fe}}return{mainRequest:le[0]}}function T(ue){if("function"==typeof URL)return new URL(ue,typeof document<"u"?document.baseURI:typeof location<"u"?location.href:void 0);var et=function x(){return P||(P=document.createElement("a")),P}();return et.href=ue,et}function R(ue){return T(ue).href}function B(ue,et){if(ue.nodeType===Node.DOCUMENT_NODE)return"/";var se=function Y(ue,et){var se=ue.nodeType,Ce=function U(ue){if(!ue.parentNode)return 0;var et=[ue.nodeType];ue.nodeType===Node.CDATA_SECTION_NODE&&et.push(Node.TEXT_NODE);var se=Array.from(ue.parentNode.childNodes);return se=se.filter(function(Ce){var be=Ce.localName;return et.indexOf(Ce.nodeType)>=0&&be===ue.localName}),se.length>=1?se.indexOf(ue)+1:0}(ue),be="";if(se===Node.ELEMENT_NODE){var rt=ue.getAttribute("id");if(et&&rt)return'//*[@id="'+rt+'"]';be=ue.localName}else if(se===Node.TEXT_NODE||se===Node.CDATA_SECTION_NODE)be="text()";else{if(se!==Node.COMMENT_NODE)return"";be="comment()"}return be&&Ce>1?"/"+be+"["+Ce+"]":"/"+be}(ue,et);if(et&&se.indexOf("@id")>0)return se;var Ce="";return ue.parentNode&&(Ce+=B(ue.parentNode,!1)),Ce+se}function ae(ue,et){var se=et||[];return("string"==typeof se||se instanceof RegExp)&&(se=[se]),T(ue).origin===r()||se.some(function(be){return(0,S.f)(ue,be)})}var G=s(31661),k=s(19553),X=s(44748),q=s(73348),Q=s(99200),te=function(){function ue(){}return ue.prototype.export=function(et,se){return this._sendSpans(et,se)},ue.prototype.shutdown=function(){return this._sendSpans([]),this.forceFlush()},ue.prototype.forceFlush=function(){return Promise.resolve()},ue.prototype._exportInfo=function(et){var se;return{resource:{attributes:et.resource.attributes},traceId:et.spanContext().traceId,parentId:et.parentSpanId,traceState:null===(se=et.spanContext().traceState)||void 0===se?void 0:se.serialize(),name:et.name,id:et.spanContext().spanId,kind:et.kind,timestamp:(0,C.w_)(et.startTime),duration:(0,C.w_)(et.duration),attributes:et.attributes,status:et.status,events:et.events,links:et.links}},ue.prototype._sendSpans=function(et,se){var Ce,be;try{for(var rt=function(ue){var et="function"==typeof Symbol&&Symbol.iterator,se=et&&ue[et],Ce=0;if(se)return se.call(ue);if(ue&&"number"==typeof ue.length)return{next:function(){return ue&&Ce>=ue.length&&(ue=void 0),{value:ue&&ue[Ce++],done:!ue}}};throw new TypeError(et?"Object is not iterable.":"Symbol.iterator is not defined.")}(et),me=rt.next();!me.done;me=rt.next())console.dir(this._exportInfo(me.value),{depth:3})}catch(Xe){Ce={error:Xe}}finally{try{me&&!me.done&&(be=rt.return)&&be.call(rt)}finally{if(Ce)throw Ce.error}}if(se)return se({code:Q.V.SUCCESS})},ue}(),Fe=function(){function ue(){this._finishedSpans=[],this._stopped=!1}return ue.prototype.export=function(et,se){var Ce;if(this._stopped)return se({code:Q.V.FAILED,error:new Error("Exporter has been stopped")});(Ce=this._finishedSpans).push.apply(Ce,function(ue,et,se){if(se||2===arguments.length)for(var rt,Ce=0,be=et.length;Ce<be;Ce++)(rt||!(Ce in et))&&(rt||(rt=Array.prototype.slice.call(et,0,Ce)),rt[Ce]=et[Ce]);return ue.concat(rt||Array.prototype.slice.call(et))}([],function(ue,et){var se="function"==typeof Symbol&&ue[Symbol.iterator];if(!se)return ue;var be,me,Ce=se.call(ue),rt=[];try{for(;(void 0===et||et-- >0)&&!(be=Ce.next()).done;)rt.push(be.value)}catch(le){me={error:le}}finally{try{be&&!be.done&&(se=Ce.return)&&se.call(Ce)}finally{if(me)throw me.error}}return rt}(et),!1)),setTimeout(function(){return se({code:Q.V.SUCCESS})},0)},ue.prototype.shutdown=function(){return this._stopped=!0,this._finishedSpans=[],this.forceFlush()},ue.prototype.forceFlush=function(){return Promise.resolve()},ue.prototype.reset=function(){this._finishedSpans=[]},ue.prototype.getFinishedSpans=function(){return this._finishedSpans},ue}(),Qe=s(57585),ct=s(25578),Ge=s(21902),nt=s(70440),Ke=function(){function ue(et){this._exporter=et,this._shutdownOnce=new ct.I(this._shutdown,this),this._unresolvedExports=new Set}return ue.prototype.forceFlush=function(){return function(ue,et,se,Ce){return new(se||(se=Promise))(function(rt,me){function le(fe){try{Se(Ce.next(fe))}catch(Ne){me(Ne)}}function Xe(fe){try{Se(Ce.throw(fe))}catch(Ne){me(Ne)}}function Se(fe){fe.done?rt(fe.value):function be(rt){return rt instanceof se?rt:new se(function(me){me(rt)})}(fe.value).then(le,Xe)}Se((Ce=Ce.apply(ue,et||[])).next())})}(this,void 0,void 0,function(){return function(ue,et){var Ce,be,rt,me,se={label:0,sent:function(){if(1&rt[0])throw rt[1];return rt[1]},trys:[],ops:[]};return me={next:le(0),throw:le(1),return:le(2)},"function"==typeof Symbol&&(me[Symbol.iterator]=function(){return this}),me;function le(Se){return function(fe){return function Xe(Se){if(Ce)throw new TypeError("Generator is already executing.");for(;se;)try{if(Ce=1,be&&(rt=2&Se[0]?be.return:Se[0]?be.throw||((rt=be.return)&&rt.call(be),0):be.next)&&!(rt=rt.call(be,Se[1])).done)return rt;switch(be=0,rt&&(Se=[2&Se[0],rt.value]),Se[0]){case 0:case 1:rt=Se;break;case 4:return se.label++,{value:Se[1],done:!1};case 5:se.label++,be=Se[1],Se=[0];continue;case 7:Se=se.ops.pop(),se.trys.pop();continue;default:if(!(rt=(rt=se.trys).length>0&&rt[rt.length-1])&&(6===Se[0]||2===Se[0])){se=0;continue}if(3===Se[0]&&(!rt||Se[1]>rt[0]&&Se[1]<rt[3])){se.label=Se[1];break}if(6===Se[0]&&se.label<rt[1]){se.label=rt[1],rt=Se;break}if(rt&&se.label<rt[2]){se.label=rt[2],se.ops.push(Se);break}rt[2]&&se.ops.pop(),se.trys.pop();continue}Se=et.call(ue,se)}catch(fe){Se=[6,fe],be=0}finally{Ce=rt=0}if(5&Se[0])throw Se[1];return{value:Se[0]?Se[1]:void 0,done:!0}}([Se,fe])}}}(this,function(et){switch(et.label){case 0:return[4,Promise.all(Array.from(this._unresolvedExports))];case 1:return et.sent(),this._exporter.forceFlush?[4,this._exporter.forceFlush()]:[3,3];case 2:et.sent(),et.label=3;case 3:return[2]}})})},ue.prototype.onStart=function(et,se){},ue.prototype.onEnd=function(et){var Ce,be,se=this;if(!this._shutdownOnce.isCalled&&et.spanContext().traceFlags&Qe.X.SAMPLED){var rt=function(){return Ge.internal._export(se._exporter,[et]).then(function(le){var Xe;le.code!==Q.V.SUCCESS&&(0,nt.s)(null!==(Xe=le.error)&&void 0!==Xe?Xe:new Error("SimpleSpanProcessor: span export failed (status "+le+")"))}).catch(function(le){(0,nt.s)(le)})};if(et.resource.asyncAttributesPending){var me=null===(be=(Ce=et.resource).waitForAsyncAttributes)||void 0===be?void 0:be.call(Ce).then(function(){return null!=me&&se._unresolvedExports.delete(me),rt()},function(le){return(0,nt.s)(le)});null!=me&&this._unresolvedExports.add(me)}else rt()}},ue.prototype.shutdown=function(){return this._shutdownOnce.call()},ue.prototype._shutdown=function(){return this._exporter.shutdown()},ue}(),Ve=s(18225),$e=s(3183),dt=s(6221),Pe=s(80548),J=s(48211),vt=s(45198),ve=s(73569)},76431:(St,z,s)=>{"use strict";s.r(z),s.d(z,{AWSECSLAUNCHTYPEVALUES_EC2:()=>n.Jn,AWSECSLAUNCHTYPEVALUES_FARGATE:()=>n.Fz,AwsEcsLaunchtypeValues:()=>n.AS,CLOUDPLATFORMVALUES_ALIBABA_CLOUD_ECS:()=>n.WE,CLOUDPLATFORMVALUES_ALIBABA_CLOUD_FC:()=>n.op,CLOUDPLATFORMVALUES_AWS_EC2:()=>n.WC,CLOUDPLATFORMVALUES_AWS_ECS:()=>n.p7,CLOUDPLATFORMVALUES_AWS_EKS:()=>n.Vx,CLOUDPLATFORMVALUES_AWS_ELASTIC_BEANSTALK:()=>n.Vf,CLOUDPLATFORMVALUES_AWS_LAMBDA:()=>n.JO,CLOUDPLATFORMVALUES_AZURE_AKS:()=>n.Vm,CLOUDPLATFORMVALUES_AZURE_APP_SERVICE:()=>n.L6,CLOUDPLATFORMVALUES_AZURE_CONTAINER_INSTANCES:()=>n.oH,CLOUDPLATFORMVALUES_AZURE_FUNCTIONS:()=>n.$R,CLOUDPLATFORMVALUES_AZURE_VM:()=>n.zF,CLOUDPLATFORMVALUES_GCP_APP_ENGINE:()=>n.$T,CLOUDPLATFORMVALUES_GCP_CLOUD_FUNCTIONS:()=>n.a1,CLOUDPLATFORMVALUES_GCP_CLOUD_RUN:()=>n.qB,CLOUDPLATFORMVALUES_GCP_COMPUTE_ENGINE:()=>n.Tg,CLOUDPLATFORMVALUES_GCP_KUBERNETES_ENGINE:()=>n.qN,CLOUDPROVIDERVALUES_ALIBABA_CLOUD:()=>n.Eh,CLOUDPROVIDERVALUES_AWS:()=>n.Xm,CLOUDPROVIDERVALUES_AZURE:()=>n.BY,CLOUDPROVIDERVALUES_GCP:()=>n.ov,CloudPlatformValues:()=>n.ns,CloudProviderValues:()=>n.jV,DBCASSANDRACONSISTENCYLEVELVALUES_ALL:()=>i.Bh9,DBCASSANDRACONSISTENCYLEVELVALUES_ANY:()=>i.Eo2,DBCASSANDRACONSISTENCYLEVELVALUES_EACH_QUORUM:()=>i.$8v,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_ONE:()=>i.slN,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_QUORUM:()=>i.VMk,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_SERIAL:()=>i.g9x,DBCASSANDRACONSISTENCYLEVELVALUES_ONE:()=>i.G49,DBCASSANDRACONSISTENCYLEVELVALUES_QUORUM:()=>i.vhy,DBCASSANDRACONSISTENCYLEVELVALUES_SERIAL:()=>i.OSW,DBCASSANDRACONSISTENCYLEVELVALUES_THREE:()=>i.O2W,DBCASSANDRACONSISTENCYLEVELVALUES_TWO:()=>i.WJJ,DBSYSTEMVALUES_ADABAS:()=>i.nWK,DBSYSTEMVALUES_CACHE:()=>i.V02,DBSYSTEMVALUES_CASSANDRA:()=>i.Rk0,DBSYSTEMVALUES_CLOUDSCAPE:()=>i.CQB,DBSYSTEMVALUES_COCKROACHDB:()=>i.y__,DBSYSTEMVALUES_COLDFUSION:()=>i.TKU,DBSYSTEMVALUES_COSMOSDB:()=>i.zmF,DBSYSTEMVALUES_COUCHBASE:()=>i.oBD,DBSYSTEMVALUES_COUCHDB:()=>i.hV,DBSYSTEMVALUES_DB2:()=>i.xhJ,DBSYSTEMVALUES_DERBY:()=>i.XTF,DBSYSTEMVALUES_DYNAMODB:()=>i.poY,DBSYSTEMVALUES_EDB:()=>i.ynC,DBSYSTEMVALUES_ELASTICSEARCH:()=>i.Ylk,DBSYSTEMVALUES_FILEMAKER:()=>i.Xdf,DBSYSTEMVALUES_FIREBIRD:()=>i.IOi,DBSYSTEMVALUES_FIRSTSQL:()=>i.$wW,DBSYSTEMVALUES_GEODE:()=>i.N4Y,DBSYSTEMVALUES_H2:()=>i.JZz,DBSYSTEMVALUES_HANADB:()=>i.Dzx,DBSYSTEMVALUES_HBASE:()=>i.Spc,DBSYSTEMVALUES_HIVE:()=>i.nwz,DBSYSTEMVALUES_HSQLDB:()=>i.pfp,DBSYSTEMVALUES_INFORMIX:()=>i.L5D,DBSYSTEMVALUES_INGRES:()=>i.L2R,DBSYSTEMVALUES_INSTANTDB:()=>i.K2_,DBSYSTEMVALUES_INTERBASE:()=>i.y6V,DBSYSTEMVALUES_MARIADB:()=>i.ngE,DBSYSTEMVALUES_MAXDB:()=>i.XER,DBSYSTEMVALUES_MEMCACHED:()=>i.Oe4,DBSYSTEMVALUES_MONGODB:()=>i.X36,DBSYSTEMVALUES_MSSQL:()=>i.Vp5,DBSYSTEMVALUES_MYSQL:()=>i.bfK,DBSYSTEMVALUES_NEO4J:()=>i.BJ_,DBSYSTEMVALUES_NETEZZA:()=>i.irN,DBSYSTEMVALUES_ORACLE:()=>i.PU4,DBSYSTEMVALUES_OTHER_SQL:()=>i.Wb_,DBSYSTEMVALUES_PERVASIVE:()=>i.mc2,DBSYSTEMVALUES_POINTBASE:()=>i.Y$v,DBSYSTEMVALUES_POSTGRESQL:()=>i.jCw,DBSYSTEMVALUES_PROGRESS:()=>i.KjL,DBSYSTEMVALUES_REDIS:()=>i.W_f,DBSYSTEMVALUES_REDSHIFT:()=>i.MpS,DBSYSTEMVALUES_SQLITE:()=>i.vl2,DBSYSTEMVALUES_SYBASE:()=>i.K0$,DBSYSTEMVALUES_TERADATA:()=>i.Xuz,DBSYSTEMVALUES_VERTICA:()=>i.lcm,DbCassandraConsistencyLevelValues:()=>i.Nxd,DbSystemValues:()=>i.Q5s,FAASDOCUMENTOPERATIONVALUES_DELETE:()=>i.mlL,FAASDOCUMENTOPERATIONVALUES_EDIT:()=>i.VEl,FAASDOCUMENTOPERATIONVALUES_INSERT:()=>i.oF4,FAASINVOKEDPROVIDERVALUES_ALIBABA_CLOUD:()=>i.y3W,FAASINVOKEDPROVIDERVALUES_AWS:()=>i.Tl5,FAASINVOKEDPROVIDERVALUES_AZURE:()=>i.d3j,FAASINVOKEDPROVIDERVALUES_GCP:()=>i.kOl,FAASTRIGGERVALUES_DATASOURCE:()=>i.uZf,FAASTRIGGERVALUES_HTTP:()=>i.v8K,FAASTRIGGERVALUES_OTHER:()=>i.ToY,FAASTRIGGERVALUES_PUBSUB:()=>i.CK9,FAASTRIGGERVALUES_TIMER:()=>i.IxL,FaasDocumentOperationValues:()=>i.Ijl,FaasInvokedProviderValues:()=>i.zI8,FaasTriggerValues:()=>i.iPC,HOSTARCHVALUES_AMD64:()=>n.so,HOSTARCHVALUES_ARM32:()=>n.hi,HOSTARCHVALUES_ARM64:()=>n.UQ,HOSTARCHVALUES_IA64:()=>n.av,HOSTARCHVALUES_PPC32:()=>n.OZ,HOSTARCHVALUES_PPC64:()=>n.DL,HOSTARCHVALUES_X86:()=>n.ig,HTTPFLAVORVALUES_HTTP_1_0:()=>i.dbJ,HTTPFLAVORVALUES_HTTP_1_1:()=>i.kPW,HTTPFLAVORVALUES_HTTP_2_0:()=>i.gGD,HTTPFLAVORVALUES_QUIC:()=>i.iFX,HTTPFLAVORVALUES_SPDY:()=>i.QhH,HostArchValues:()=>n.Cg,HttpFlavorValues:()=>i.dNH,MESSAGETYPEVALUES_RECEIVED:()=>i.sr7,MESSAGETYPEVALUES_SENT:()=>i.bZN,MESSAGINGDESTINATIONKINDVALUES_QUEUE:()=>i.npt,MESSAGINGDESTINATIONKINDVALUES_TOPIC:()=>i.HXm,MESSAGINGOPERATIONVALUES_PROCESS:()=>i.AVC,MESSAGINGOPERATIONVALUES_RECEIVE:()=>i.mO,MessageTypeValues:()=>i.Ywq,MessagingDestinationKindValues:()=>i.b7t,MessagingOperationValues:()=>i.Qgf,NETHOSTCONNECTIONSUBTYPEVALUES_CDMA:()=>i.i9b,NETHOSTCONNECTIONSUBTYPEVALUES_CDMA2000_1XRTT:()=>i.mN_,NETHOSTCONNECTIONSUBTYPEVALUES_EDGE:()=>i.Q_6,NETHOSTCONNECTIONSUBTYPEVALUES_EHRPD:()=>i.EPu,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_0:()=>i.uzh,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_A:()=>i.Bez,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_B:()=>i.uwh,NETHOSTCONNECTIONSUBTYPEVALUES_GPRS:()=>i.Rpt,NETHOSTCONNECTIONSUBTYPEVALUES_GSM:()=>i.AdO,NETHOSTCONNECTIONSUBTYPEVALUES_HSDPA:()=>i.hu9,NETHOSTCONNECTIONSUBTYPEVALUES_HSPA:()=>i.x0j,NETHOSTCONNECTIONSUBTYPEVALUES_HSPAP:()=>i.hze,NETHOSTCONNECTIONSUBTYPEVALUES_HSUPA:()=>i.kgK,NETHOSTCONNECTIONSUBTYPEVALUES_IDEN:()=>i.rBh,NETHOSTCONNECTIONSUBTYPEVALUES_IWLAN:()=>i.IMI,NETHOSTCONNECTIONSUBTYPEVALUES_LTE:()=>i.wYf,NETHOSTCONNECTIONSUBTYPEVALUES_LTE_CA:()=>i.bWQ,NETHOSTCONNECTIONSUBTYPEVALUES_NR:()=>i.JPM,NETHOSTCONNECTIONSUBTYPEVALUES_NRNSA:()=>i.ddb,NETHOSTCONNECTIONSUBTYPEVALUES_TD_SCDMA:()=>i._28,NETHOSTCONNECTIONSUBTYPEVALUES_UMTS:()=>i.yIV,NETHOSTCONNECTIONTYPEVALUES_CELL:()=>i.j7z,NETHOSTCONNECTIONTYPEVALUES_UNAVAILABLE:()=>i.D3U,NETHOSTCONNECTIONTYPEVALUES_UNKNOWN:()=>i.Vur,NETHOSTCONNECTIONTYPEVALUES_WIFI:()=>i.CGC,NETHOSTCONNECTIONTYPEVALUES_WIRED:()=>i.c1V,NETTRANSPORTVALUES_INPROC:()=>i.JjG,NETTRANSPORTVALUES_IP:()=>i.fN3,NETTRANSPORTVALUES_IP_TCP:()=>i.x85,NETTRANSPORTVALUES_IP_UDP:()=>i.ZUK,NETTRANSPORTVALUES_OTHER:()=>i.EUV,NETTRANSPORTVALUES_PIPE:()=>i.cjY,NETTRANSPORTVALUES_UNIX:()=>i.GR7,NetHostConnectionSubtypeValues:()=>i.cAF,NetHostConnectionTypeValues:()=>i.KSs,NetTransportValues:()=>i.z4S,OSTYPEVALUES_AIX:()=>n.cJ,OSTYPEVALUES_DARWIN:()=>n.JW,OSTYPEVALUES_DRAGONFLYBSD:()=>n.tD,OSTYPEVALUES_FREEBSD:()=>n.xG,OSTYPEVALUES_HPUX:()=>n.BT,OSTYPEVALUES_LINUX:()=>n.Yh,OSTYPEVALUES_NETBSD:()=>n.sS,OSTYPEVALUES_OPENBSD:()=>n.h7,OSTYPEVALUES_SOLARIS:()=>n.l9,OSTYPEVALUES_WINDOWS:()=>n.xR,OSTYPEVALUES_Z_OS:()=>n.Pi,OsTypeValues:()=>n.h0,RPCGRPCSTATUSCODEVALUES_ABORTED:()=>i.$5b,RPCGRPCSTATUSCODEVALUES_ALREADY_EXISTS:()=>i.TiO,RPCGRPCSTATUSCODEVALUES_CANCELLED:()=>i.Ryq,RPCGRPCSTATUSCODEVALUES_DATA_LOSS:()=>i.ueJ,RPCGRPCSTATUSCODEVALUES_DEADLINE_EXCEEDED:()=>i.wAY,RPCGRPCSTATUSCODEVALUES_FAILED_PRECONDITION:()=>i._pX,RPCGRPCSTATUSCODEVALUES_INTERNAL:()=>i.dXK,RPCGRPCSTATUSCODEVALUES_INVALID_ARGUMENT:()=>i.njt,RPCGRPCSTATUSCODEVALUES_NOT_FOUND:()=>i.ay9,RPCGRPCSTATUSCODEVALUES_OK:()=>i.wJ,RPCGRPCSTATUSCODEVALUES_OUT_OF_RANGE:()=>i.GY$,RPCGRPCSTATUSCODEVALUES_PERMISSION_DENIED:()=>i.nXs,RPCGRPCSTATUSCODEVALUES_RESOURCE_EXHAUSTED:()=>i.KNN,RPCGRPCSTATUSCODEVALUES_UNAUTHENTICATED:()=>i._Q_,RPCGRPCSTATUSCODEVALUES_UNAVAILABLE:()=>i.gFG,RPCGRPCSTATUSCODEVALUES_UNIMPLEMENTED:()=>i.p1q,RPCGRPCSTATUSCODEVALUES_UNKNOWN:()=>i.ch2,RpcGrpcStatusCodeValues:()=>i.f3T,SEMATTRS_AWS_DYNAMODB_ATTRIBUTES_TO_GET:()=>i.wpU,SEMATTRS_AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS:()=>i.fhG,SEMATTRS_AWS_DYNAMODB_CONSISTENT_READ:()=>i.tGA,SEMATTRS_AWS_DYNAMODB_CONSUMED_CAPACITY:()=>i.byW,SEMATTRS_AWS_DYNAMODB_COUNT:()=>i.F7w,SEMATTRS_AWS_DYNAMODB_EXCLUSIVE_START_TABLE:()=>i.Wif,SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES:()=>i.TVZ,SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES:()=>i.Ouu,SEMATTRS_AWS_DYNAMODB_INDEX_NAME:()=>i.gUJ,SEMATTRS_AWS_DYNAMODB_ITEM_COLLECTION_METRICS:()=>i.Wx7,SEMATTRS_AWS_DYNAMODB_LIMIT:()=>i.La$,SEMATTRS_AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES:()=>i.ti,SEMATTRS_AWS_DYNAMODB_PROJECTION:()=>i.frU,SEMATTRS_AWS_DYNAMODB_PROVISIONED_READ_CAPACITY:()=>i.a4d,SEMATTRS_AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY:()=>i.p30,SEMATTRS_AWS_DYNAMODB_SCANNED_COUNT:()=>i.sxk,SEMATTRS_AWS_DYNAMODB_SCAN_FORWARD:()=>i.r0m,SEMATTRS_AWS_DYNAMODB_SEGMENT:()=>i.F0K,SEMATTRS_AWS_DYNAMODB_SELECT:()=>i.u4L,SEMATTRS_AWS_DYNAMODB_TABLE_COUNT:()=>i.mGg,SEMATTRS_AWS_DYNAMODB_TABLE_NAMES:()=>i.Ta3,SEMATTRS_AWS_DYNAMODB_TOTAL_SEGMENTS:()=>i.DBy,SEMATTRS_AWS_LAMBDA_INVOKED_ARN:()=>i.TCh,SEMATTRS_CODE_FILEPATH:()=>i.cvh,SEMATTRS_CODE_FUNCTION:()=>i.jrL,SEMATTRS_CODE_LINENO:()=>i.usz,SEMATTRS_CODE_NAMESPACE:()=>i.klU,SEMATTRS_DB_CASSANDRA_CONSISTENCY_LEVEL:()=>i.Qt9,SEMATTRS_DB_CASSANDRA_COORDINATOR_DC:()=>i.DNX,SEMATTRS_DB_CASSANDRA_COORDINATOR_ID:()=>i.xq_,SEMATTRS_DB_CASSANDRA_IDEMPOTENCE:()=>i._iR,SEMATTRS_DB_CASSANDRA_KEYSPACE:()=>i.Unu,SEMATTRS_DB_CASSANDRA_PAGE_SIZE:()=>i.Itx,SEMATTRS_DB_CASSANDRA_SPECULATIVE_EXECUTION_COUNT:()=>i.NlD,SEMATTRS_DB_CASSANDRA_TABLE:()=>i.zri,SEMATTRS_DB_CONNECTION_STRING:()=>i.cd9,SEMATTRS_DB_HBASE_NAMESPACE:()=>i.bd4,SEMATTRS_DB_JDBC_DRIVER_CLASSNAME:()=>i.qGX,SEMATTRS_DB_MONGODB_COLLECTION:()=>i.NlA,SEMATTRS_DB_MSSQL_INSTANCE_NAME:()=>i.Eh5,SEMATTRS_DB_NAME:()=>i.Rt6,SEMATTRS_DB_OPERATION:()=>i.l60,SEMATTRS_DB_REDIS_DATABASE_INDEX:()=>i.wy2,SEMATTRS_DB_SQL_TABLE:()=>i.pHC,SEMATTRS_DB_STATEMENT:()=>i.FoJ,SEMATTRS_DB_SYSTEM:()=>i.V0Q,SEMATTRS_DB_USER:()=>i.N9D,SEMATTRS_ENDUSER_ID:()=>i.RHQ,SEMATTRS_ENDUSER_ROLE:()=>i.cSi,SEMATTRS_ENDUSER_SCOPE:()=>i.MWE,SEMATTRS_EXCEPTION_ESCAPED:()=>i.GKr,SEMATTRS_EXCEPTION_MESSAGE:()=>i.aP6,SEMATTRS_EXCEPTION_STACKTRACE:()=>i.ipG,SEMATTRS_EXCEPTION_TYPE:()=>i.P4J,SEMATTRS_FAAS_COLDSTART:()=>i.TRX,SEMATTRS_FAAS_CRON:()=>i.HVV,SEMATTRS_FAAS_DOCUMENT_COLLECTION:()=>i.LxM,SEMATTRS_FAAS_DOCUMENT_NAME:()=>i.aTe,SEMATTRS_FAAS_DOCUMENT_OPERATION:()=>i.abe,SEMATTRS_FAAS_DOCUMENT_TIME:()=>i.aKn,SEMATTRS_FAAS_EXECUTION:()=>i.dsp,SEMATTRS_FAAS_INVOKED_NAME:()=>i.PIi,SEMATTRS_FAAS_INVOKED_PROVIDER:()=>i.XNY,SEMATTRS_FAAS_INVOKED_REGION:()=>i.imY,SEMATTRS_FAAS_TIME:()=>i.cFk,SEMATTRS_FAAS_TRIGGER:()=>i.bes,SEMATTRS_HTTP_CLIENT_IP:()=>i.nS0,SEMATTRS_HTTP_FLAVOR:()=>i.o8O,SEMATTRS_HTTP_HOST:()=>i.Qv9,SEMATTRS_HTTP_METHOD:()=>i.vof,SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH:()=>i.OdI,SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED:()=>i.Plv,SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH:()=>i.crS,SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED:()=>i.XyR,SEMATTRS_HTTP_ROUTE:()=>i.tto,SEMATTRS_HTTP_SCHEME:()=>i.zPu,SEMATTRS_HTTP_SERVER_NAME:()=>i.H35,SEMATTRS_HTTP_STATUS_CODE:()=>i.W_O,SEMATTRS_HTTP_TARGET:()=>i.fub,SEMATTRS_HTTP_URL:()=>i.vSt,SEMATTRS_HTTP_USER_AGENT:()=>i.Nz$,SEMATTRS_MESSAGE_COMPRESSED_SIZE:()=>i.U5o,SEMATTRS_MESSAGE_ID:()=>i.Gsd,SEMATTRS_MESSAGE_TYPE:()=>i.$58,SEMATTRS_MESSAGE_UNCOMPRESSED_SIZE:()=>i.LfK,SEMATTRS_MESSAGING_CONSUMER_ID:()=>i.w54,SEMATTRS_MESSAGING_CONVERSATION_ID:()=>i.nN_,SEMATTRS_MESSAGING_DESTINATION:()=>i.Yjy,SEMATTRS_MESSAGING_DESTINATION_KIND:()=>i.lDI,SEMATTRS_MESSAGING_KAFKA_CLIENT_ID:()=>i.cZl,SEMATTRS_MESSAGING_KAFKA_CONSUMER_GROUP:()=>i.rsL,SEMATTRS_MESSAGING_KAFKA_MESSAGE_KEY:()=>i.yRs,SEMATTRS_MESSAGING_KAFKA_PARTITION:()=>i.tNm,SEMATTRS_MESSAGING_KAFKA_TOMBSTONE:()=>i.E__,SEMATTRS_MESSAGING_MESSAGE_ID:()=>i.XH7,SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_COMPRESSED_SIZE_BYTES:()=>i.CdG,SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_SIZE_BYTES:()=>i._Zr,SEMATTRS_MESSAGING_OPERATION:()=>i.zpg,SEMATTRS_MESSAGING_PROTOCOL:()=>i._af,SEMATTRS_MESSAGING_PROTOCOL_VERSION:()=>i.DA0,SEMATTRS_MESSAGING_RABBITMQ_ROUTING_KEY:()=>i.Zl1,SEMATTRS_MESSAGING_SYSTEM:()=>i.zBy,SEMATTRS_MESSAGING_TEMP_DESTINATION:()=>i.JK9,SEMATTRS_MESSAGING_URL:()=>i.t8j,SEMATTRS_NET_HOST_CARRIER_ICC:()=>i.wgx,SEMATTRS_NET_HOST_CARRIER_MCC:()=>i.cA3,SEMATTRS_NET_HOST_CARRIER_MNC:()=>i.hXS,SEMATTRS_NET_HOST_CARRIER_NAME:()=>i.ynP,SEMATTRS_NET_HOST_CONNECTION_SUBTYPE:()=>i.Ltc,SEMATTRS_NET_HOST_CONNECTION_TYPE:()=>i.PfM,SEMATTRS_NET_HOST_IP:()=>i.j$y,SEMATTRS_NET_HOST_NAME:()=>i.h70,SEMATTRS_NET_HOST_PORT:()=>i.Puv,SEMATTRS_NET_PEER_IP:()=>i.RvY,SEMATTRS_NET_PEER_NAME:()=>i.nvt,SEMATTRS_NET_PEER_PORT:()=>i.ZUg,SEMATTRS_NET_TRANSPORT:()=>i.Ac3,SEMATTRS_PEER_SERVICE:()=>i.RyT,SEMATTRS_RPC_GRPC_STATUS_CODE:()=>i.C2y,SEMATTRS_RPC_JSONRPC_ERROR_CODE:()=>i.Zwr,SEMATTRS_RPC_JSONRPC_ERROR_MESSAGE:()=>i.z_u,SEMATTRS_RPC_JSONRPC_REQUEST_ID:()=>i.yew,SEMATTRS_RPC_JSONRPC_VERSION:()=>i.ZSz,SEMATTRS_RPC_METHOD:()=>i.Y3v,SEMATTRS_RPC_SERVICE:()=>i.GOV,SEMATTRS_RPC_SYSTEM:()=>i.sLO,SEMATTRS_THREAD_ID:()=>i.lpz,SEMATTRS_THREAD_NAME:()=>i.taz,SEMRESATTRS_AWS_ECS_CLUSTER_ARN:()=>n.VH,SEMRESATTRS_AWS_ECS_CONTAINER_ARN:()=>n.SV,SEMRESATTRS_AWS_ECS_LAUNCHTYPE:()=>n.SA,SEMRESATTRS_AWS_ECS_TASK_ARN:()=>n.yB,SEMRESATTRS_AWS_ECS_TASK_FAMILY:()=>n.Zf,SEMRESATTRS_AWS_ECS_TASK_REVISION:()=>n.MK,SEMRESATTRS_AWS_EKS_CLUSTER_ARN:()=>n.v0,SEMRESATTRS_AWS_LOG_GROUP_ARNS:()=>n.an,SEMRESATTRS_AWS_LOG_GROUP_NAMES:()=>n.qF,SEMRESATTRS_AWS_LOG_STREAM_ARNS:()=>n.ZZ,SEMRESATTRS_AWS_LOG_STREAM_NAMES:()=>n.Dn,SEMRESATTRS_CLOUD_ACCOUNT_ID:()=>n.E3,SEMRESATTRS_CLOUD_AVAILABILITY_ZONE:()=>n.xC,SEMRESATTRS_CLOUD_PLATFORM:()=>n.Iq,SEMRESATTRS_CLOUD_PROVIDER:()=>n.mA,SEMRESATTRS_CLOUD_REGION:()=>n.Nw,SEMRESATTRS_CONTAINER_ID:()=>n.ux,SEMRESATTRS_CONTAINER_IMAGE_NAME:()=>n.uB,SEMRESATTRS_CONTAINER_IMAGE_TAG:()=>n.RB,SEMRESATTRS_CONTAINER_NAME:()=>n.aA,SEMRESATTRS_CONTAINER_RUNTIME:()=>n.PZ,SEMRESATTRS_DEPLOYMENT_ENVIRONMENT:()=>n.I2,SEMRESATTRS_DEVICE_ID:()=>n.tn,SEMRESATTRS_DEVICE_MODEL_IDENTIFIER:()=>n.BF,SEMRESATTRS_DEVICE_MODEL_NAME:()=>n.Bt,SEMRESATTRS_FAAS_ID:()=>n.Mm,SEMRESATTRS_FAAS_INSTANCE:()=>n.uu,SEMRESATTRS_FAAS_MAX_MEMORY:()=>n.PO,SEMRESATTRS_FAAS_NAME:()=>n.Uf,SEMRESATTRS_FAAS_VERSION:()=>n.lO,SEMRESATTRS_HOST_ARCH:()=>n.yT,SEMRESATTRS_HOST_ID:()=>n.zs,SEMRESATTRS_HOST_IMAGE_ID:()=>n.HP,SEMRESATTRS_HOST_IMAGE_NAME:()=>n.be,SEMRESATTRS_HOST_IMAGE_VERSION:()=>n.g9,SEMRESATTRS_HOST_NAME:()=>n.RK,SEMRESATTRS_HOST_TYPE:()=>n.kE,SEMRESATTRS_K8S_CLUSTER_NAME:()=>n.IG,SEMRESATTRS_K8S_CONTAINER_NAME:()=>n.Pb,SEMRESATTRS_K8S_CRONJOB_NAME:()=>n.Vy,SEMRESATTRS_K8S_CRONJOB_UID:()=>n.gT,SEMRESATTRS_K8S_DAEMONSET_NAME:()=>n.Su,SEMRESATTRS_K8S_DAEMONSET_UID:()=>n.rK,SEMRESATTRS_K8S_DEPLOYMENT_NAME:()=>n.do,SEMRESATTRS_K8S_DEPLOYMENT_UID:()=>n.k7,SEMRESATTRS_K8S_JOB_NAME:()=>n.z3,SEMRESATTRS_K8S_JOB_UID:()=>n.mc,SEMRESATTRS_K8S_NAMESPACE_NAME:()=>n.Tl,SEMRESATTRS_K8S_NODE_NAME:()=>n.Ky,SEMRESATTRS_K8S_NODE_UID:()=>n.pV,SEMRESATTRS_K8S_POD_NAME:()=>n.TH,SEMRESATTRS_K8S_POD_UID:()=>n.gJ,SEMRESATTRS_K8S_REPLICASET_NAME:()=>n.kv,SEMRESATTRS_K8S_REPLICASET_UID:()=>n.PU,SEMRESATTRS_K8S_STATEFULSET_NAME:()=>n.kn,SEMRESATTRS_K8S_STATEFULSET_UID:()=>n.f8,SEMRESATTRS_OS_DESCRIPTION:()=>n.ik,SEMRESATTRS_OS_NAME:()=>n.hQ,SEMRESATTRS_OS_TYPE:()=>n.ko,SEMRESATTRS_OS_VERSION:()=>n.AC,SEMRESATTRS_PROCESS_COMMAND:()=>n.Cn,SEMRESATTRS_PROCESS_COMMAND_ARGS:()=>n.U2,SEMRESATTRS_PROCESS_COMMAND_LINE:()=>n.x2,SEMRESATTRS_PROCESS_EXECUTABLE_NAME:()=>n.fP,SEMRESATTRS_PROCESS_EXECUTABLE_PATH:()=>n.xQ,SEMRESATTRS_PROCESS_OWNER:()=>n.Yb,SEMRESATTRS_PROCESS_PID:()=>n.ky,SEMRESATTRS_PROCESS_RUNTIME_DESCRIPTION:()=>n.C3,SEMRESATTRS_PROCESS_RUNTIME_NAME:()=>n.lb,SEMRESATTRS_PROCESS_RUNTIME_VERSION:()=>n.cV,SEMRESATTRS_SERVICE_INSTANCE_ID:()=>n.PL,SEMRESATTRS_SERVICE_NAME:()=>n.AV,SEMRESATTRS_SERVICE_NAMESPACE:()=>n.ar,SEMRESATTRS_SERVICE_VERSION:()=>n.xs,SEMRESATTRS_TELEMETRY_AUTO_VERSION:()=>n.nA,SEMRESATTRS_TELEMETRY_SDK_LANGUAGE:()=>n.Pl,SEMRESATTRS_TELEMETRY_SDK_NAME:()=>n.$L,SEMRESATTRS_TELEMETRY_SDK_VERSION:()=>n.y$,SEMRESATTRS_WEBENGINE_DESCRIPTION:()=>n.U1,SEMRESATTRS_WEBENGINE_NAME:()=>n.HF,SEMRESATTRS_WEBENGINE_VERSION:()=>n.WN,SemanticAttributes:()=>i.IXq,SemanticResourceAttributes:()=>n._2,TELEMETRYSDKLANGUAGEVALUES_CPP:()=>n.S5,TELEMETRYSDKLANGUAGEVALUES_DOTNET:()=>n.XE,TELEMETRYSDKLANGUAGEVALUES_ERLANG:()=>n.o2,TELEMETRYSDKLANGUAGEVALUES_GO:()=>n.HE,TELEMETRYSDKLANGUAGEVALUES_JAVA:()=>n.du,TELEMETRYSDKLANGUAGEVALUES_NODEJS:()=>n.wE,TELEMETRYSDKLANGUAGEVALUES_PHP:()=>n.tP,TELEMETRYSDKLANGUAGEVALUES_PYTHON:()=>n.$c,TELEMETRYSDKLANGUAGEVALUES_RUBY:()=>n.jN,TELEMETRYSDKLANGUAGEVALUES_WEBJS:()=>n.uh,TelemetrySdkLanguageValues:()=>n.wP});var i=s(52666),n=s(23413)},32610:(St,z,s)=>{"use strict";function i(n){for(var h={},C=n.length,S=0;S<C;S++){var M=n[S];M&&(h[String(M).toUpperCase().replace(/[-.]/g,"_")]=M)}return h}s.d(z,{O:()=>i})},23413:(St,z,s)=>{"use strict";s.d(z,{$L:()=>eo,$R:()=>Mt,$T:()=>Ws,$c:()=>_,AC:()=>Fo,AS:()=>Is,AV:()=>Ha,BF:()=>ai,BT:()=>Vr,BY:()=>so,Bt:()=>Li,C3:()=>nl,Cg:()=>Zs,Cn:()=>Go,DL:()=>Or,Dn:()=>ir,E3:()=>Wt,Eh:()=>Fs,Fz:()=>hs,HE:()=>io,HF:()=>la,HP:()=>ds,I2:()=>Vn,IG:()=>An,Iq:()=>En,JO:()=>ca,JW:()=>ws,Jn:()=>vl,Ky:()=>zn,L6:()=>Dn,MK:()=>Rn,Mm:()=>Mn,Nw:()=>Kt,OZ:()=>Nr,PL:()=>Xa,PO:()=>fi,PU:()=>qr,PZ:()=>Pr,Pb:()=>mr,Pi:()=>sa,Pl:()=>Ks,RB:()=>js,RK:()=>tr,S5:()=>cl,SA:()=>Gi,SV:()=>kn,Su:()=>vs,TH:()=>Wi,Tg:()=>qn,Tl:()=>di,U1:()=>na,U2:()=>As,UQ:()=>ii,Uf:()=>Lr,VH:()=>Ai,Vf:()=>al,Vm:()=>Dt,Vx:()=>ps,Vy:()=>Pa,WC:()=>Xi,WE:()=>fl,WN:()=>wo,XE:()=>Ta,Xm:()=>Co,Yb:()=>Uo,Yh:()=>ns,ZZ:()=>Ir,Zf:()=>Zi,_2:()=>Ro,a1:()=>Do,aA:()=>hr,an:()=>Ni,ar:()=>bo,av:()=>Hi,be:()=>Sr,cJ:()=>Ca,cV:()=>pa,do:()=>Qs,du:()=>Fa,f8:()=>ks,fP:()=>So,g9:()=>bs,gJ:()=>Oi,gT:()=>vo,h0:()=>rl,h7:()=>Da,hQ:()=>Io,hi:()=>Un,ig:()=>es,ik:()=>fs,jN:()=>D,jV:()=>La,k7:()=>us,kE:()=>qi,kn:()=>Ar,ko:()=>fa,kv:()=>ms,ky:()=>qs,l9:()=>ua,lO:()=>Qn,lb:()=>Rr,mA:()=>Ft,mc:()=>fo,nA:()=>ar,ns:()=>Bi,o2:()=>pl,oH:()=>on,op:()=>Wa,ov:()=>_o,p7:()=>Ao,pV:()=>Jn,qB:()=>Yr,qF:()=>Kn,qN:()=>_s,rK:()=>Ur,sS:()=>ao,so:()=>Yt,tD:()=>Sl,tP:()=>Ze,tn:()=>Ei,uB:()=>lo,uh:()=>I,uu:()=>Zn,ux:()=>Ms,v0:()=>Gn,wE:()=>Mr,wP:()=>j,x2:()=>Mo,xC:()=>cn,xG:()=>oo,xQ:()=>ta,xR:()=>Dr,xs:()=>Es,y$:()=>oa,yB:()=>bt,yT:()=>Br,z3:()=>Zo,zF:()=>ga,zs:()=>yi});var i=s(32610),n="cloud.provider",h="cloud.account.id",C="cloud.region",S="cloud.availability_zone",M="cloud.platform",P="aws.ecs.container.arn",x="aws.ecs.cluster.arn",A="aws.ecs.launchtype",g="aws.ecs.task.arn",m="aws.ecs.task.family",l="aws.ecs.task.revision",r="aws.eks.cluster.arn",u="aws.log.group.names",v="aws.log.group.arns",E="aws.log.stream.names",T="aws.log.stream.arns",R="container.name",B="container.id",U="container.runtime",Y="container.image.name",ae="container.image.tag",G="deployment.environment",k="device.id",X="device.model.identifier",q="device.model.name",Q="faas.name",ce="faas.id",te="faas.version",Ee="faas.instance",it="faas.max_memory",Fe="host.id",Qe="host.name",ct="host.type",Ge="host.arch",nt="host.image.name",Je="host.image.id",ze="host.image.version",Ke="k8s.cluster.name",Ve="k8s.node.name",$e="k8s.node.uid",dt="k8s.namespace.name",Pe="k8s.pod.uid",J="k8s.pod.name",vt="k8s.container.name",ve="k8s.replicaset.uid",ue="k8s.replicaset.name",et="k8s.deployment.uid",se="k8s.deployment.name",Ce="k8s.statefulset.uid",be="k8s.statefulset.name",rt="k8s.daemonset.uid",me="k8s.daemonset.name",le="k8s.job.uid",Xe="k8s.job.name",Se="k8s.cronjob.uid",fe="k8s.cronjob.name",Ne="os.type",ye="os.description",Ot="os.name",sn="os.version",dn="process.pid",yn="process.executable.name",At="process.executable.path",Vt="process.command",Qt="process.command_line",Jt="process.command_args",Zt="process.owner",nn="process.runtime.name",Xt="process.runtime.version",lt="process.runtime.description",Ue="service.name",wt="service.namespace",gt="service.instance.id",Ht="service.version",bn="telemetry.sdk.name",Ut="telemetry.sdk.language",Bt="telemetry.sdk.version",Le="telemetry.auto.version",V="webengine.name",de="webengine.version",ge="webengine.description",Ft=n,Wt=h,Kt=C,cn=S,En=M,kn=P,Ai=x,Gi=A,bt=g,Zi=m,Rn=l,Gn=r,Kn=u,Ni=v,ir=E,Ir=T,hr=R,Ms=B,Pr=U,lo=Y,js=ae,Vn=G,Ei=k,ai=X,Li=q,Lr=Q,Mn=ce,Qn=te,Zn=Ee,fi=it,yi=Fe,tr=Qe,qi=ct,Br=Ge,Sr=nt,ds=Je,bs=ze,An=Ke,zn=Ve,Jn=$e,di=dt,Oi=Pe,Wi=J,mr=vt,qr=ve,ms=ue,us=et,Qs=se,ks=Ce,Ar=be,Ur=rt,vs=me,fo=le,Zo=Xe,vo=Se,Pa=fe,fa=Ne,fs=ye,Io=Ot,Fo=sn,qs=dn,So=yn,ta=At,Go=Vt,Mo=Qt,As=Jt,Uo=Zt,Rr=nn,pa=Xt,nl=lt,Ha=Ue,bo=wt,Xa=gt,Es=Ht,eo=bn,Ks=Ut,oa=Bt,ar=Le,la=V,wo=de,na=ge,Ro=(0,i.O)([n,h,C,S,M,P,x,A,g,m,l,r,u,v,E,T,R,B,U,Y,ae,G,k,X,q,Q,ce,te,Ee,it,Fe,Qe,ct,Ge,nt,Je,ze,Ke,Ve,$e,dt,Pe,J,vt,ve,ue,et,se,Ce,be,rt,me,le,Xe,Se,fe,Ne,ye,Ot,sn,dn,yn,At,Vt,Qt,Jt,Zt,nn,Xt,lt,Ue,wt,gt,Ht,bn,Ut,Bt,Le,V,de,ge]),ja="alibaba_cloud",Fs=ja,Co="aws",so="azure",_o="gcp",La=(0,i.O)([ja,"aws","azure","gcp"]),Ko="alibaba_cloud_ecs",Jo="alibaba_cloud_fc",ka="aws_ec2",il="aws_ecs",co="aws_eks",po="aws_lambda",$s="aws_elastic_beanstalk",Sn="azure_vm",ba="azure_container_instances",uo="azure_aks",$o="azure_functions",aa="azure_app_service",Xs="gcp_compute_engine",_a="gcp_cloud_run",zi="gcp_kubernetes_engine",Ae="gcp_cloud_functions",jo="gcp_app_engine",fl=Ko,Wa=Jo,Xi=ka,Ao=il,ps=co,ca=po,al=$s,ga=Sn,on=ba,Dt=uo,Mt=$o,Dn=aa,qn=Xs,Yr=_a,_s=zi,Do=Ae,Ws=jo,Bi=(0,i.O)([Ko,Jo,ka,il,co,po,$s,Sn,ba,uo,$o,aa,Xs,_a,zi,Ae,jo]),Ea="fargate",vl="ec2",hs=Ea,Is=(0,i.O)(["ec2",Ea]),Yt="amd64",Un="arm32",ii="arm64",Hi="ia64",Nr="ppc32",Or="ppc64",es="x86",Zs=(0,i.O)(["amd64","arm32","arm64","ia64","ppc32","ppc64","x86"]),wr="windows",Ma="freebsd",Qa="openbsd",za="dragonflybsd",Ii="solaris",Dr=wr,ns="linux",ws="darwin",oo=Ma,ao="netbsd",Da=Qa,Sl=za,Vr="hpux",Ca="aix",ua=Ii,sa="z_os",rl=(0,i.O)([wr,"linux","darwin",Ma,"netbsd",Qa,za,"hpux","aix",Ii,"z_os"]),cl="cpp",Ta="dotnet",pl="erlang",io="go",Fa="java",Mr="nodejs",Ze="php",_="python",D="ruby",I="webjs",j=(0,i.O)(["cpp","dotnet","erlang","go","java","nodejs","php","python","ruby","webjs"])},52666:(St,z,s)=>{"use strict";s.d(z,{$58:()=>lr,$5b:()=>Bd,$8v:()=>Zr,$wW:()=>Hr,AVC:()=>qc,Ac3:()=>Ho,AdO:()=>Wh,BJ_:()=>Xo,Bez:()=>bc,Bh9:()=>Rc,C2y:()=>ua,CGC:()=>Zc,CK9:()=>Pn,CQB:()=>kr,CdG:()=>li,D3U:()=>No,DA0:()=>Ma,DBy:()=>Un,DNX:()=>Go,Dzx:()=>Qr,EPu:()=>cd,EUV:()=>cc,E__:()=>Da,Eh5:()=>Pa,Eo2:()=>Z,F0K:()=>Yt,F7w:()=>ii,FoJ:()=>Zo,G49:()=>c,GKr:()=>bo,GOV:()=>Vr,GR7:()=>bl,GY$:()=>mu,Gsd:()=>zs,H35:()=>Dn,HVV:()=>wo,HXm:()=>Ld,IMI:()=>Id,IOi:()=>Er,IXq:()=>Vi,Ijl:()=>cs,Itx:()=>fs,IxL:()=>Bn,JK9:()=>Us,JPM:()=>hh,JZz:()=>Re,JjG:()=>Ka,K0$:()=>_r,K2_:()=>Be,KNN:()=>nu,KSs:()=>uc,KjL:()=>Kr,L2R:()=>Rs,L5D:()=>ft,La$:()=>hs,LfK:()=>ho,Ltc:()=>Jo,LxM:()=>eo,MWE:()=>uo,MpS:()=>vr,N4Y:()=>Ps,N9D:()=>Ur,NlA:()=>Uo,NlD:()=>So,Nxd:()=>je,Nz$:()=>al,O2W:()=>O,OSW:()=>re,OdI:()=>ga,Oe4:()=>Aa,Ouu:()=>Or,P4J:()=>pa,PIi:()=>Ro,PU4:()=>Ti,PfM:()=>Ko,Plv:()=>on,Puv:()=>_o,Q5s:()=>lc,Q_6:()=>Td,Qgf:()=>ol,QhH:()=>uu,Qt9:()=>Io,Qv9:()=>Xi,RHQ:()=>Sn,Rk0:()=>an,Rpt:()=>Sc,Rt6:()=>fo,RvY:()=>no,RyT:()=>$s,Ryq:()=>Yu,Spc:()=>Hn,TCh:()=>Qs,TKU:()=>rn,TRX:()=>na,TVZ:()=>ia,Ta3:()=>_s,TiO:()=>gu,Tl5:()=>Vo,ToY:()=>ei,U5o:()=>xa,Unu:()=>fa,V02:()=>Wo,V0Q:()=>ks,VEl:()=>er,VMk:()=>y,Vp5:()=>Ki,Vur:()=>Fc,WJJ:()=>p,W_O:()=>ps,W_f:()=>yr,Wb_:()=>rr,Wif:()=>ra,Wx7:()=>Ws,X36:()=>xi,XER:()=>Wr,XH7:()=>Qa,XNY:()=>ja,XTF:()=>Ui,Xdf:()=>Te,Xuz:()=>ut,XyR:()=>Mt,Y$v:()=>mi,Y3v:()=>Ca,Yjy:()=>Zs,Ylk:()=>sl,Ywq:()=>$h,ZSz:()=>sa,ZUK:()=>Za,ZUg:()=>Fs,Zl1:()=>Dr,Zwr:()=>ll,_28:()=>Wu,_Q_:()=>jc,_Zr:()=>Bo,_af:()=>Vs,_iR:()=>qs,_pX:()=>ed,a4d:()=>Bi,aKn:()=>oa,aP6:()=>nl,aTe:()=>ar,abe:()=>Ks,ay9:()=>hd,b7t:()=>Vc,bWQ:()=>zh,bZN:()=>Vd,bd4:()=>Mo,bes:()=>Xa,bfK:()=>pr,byW:()=>Do,c1V:()=>Lc,cA3:()=>il,cAF:()=>wd,cFk:()=>la,cSi:()=>ba,cZl:()=>oo,cd9:()=>Ar,ch2:()=>Yl,cjY:()=>gl,crS:()=>Dt,cvh:()=>zi,d3j:()=>Ds,dNH:()=>Nd,dXK:()=>ph,dbJ:()=>Rl,ddb:()=>Xl,dsp:()=>Es,f3T:()=>fd,fN3:()=>Ja,fhG:()=>Nr,frU:()=>vl,fub:()=>Wa,g9x:()=>Oe,gFG:()=>_u,gGD:()=>pc,gUJ:()=>da,h70:()=>La,hV:()=>gr,hXS:()=>co,hu9:()=>Hh,hze:()=>dd,i9b:()=>cu,iFX:()=>Jd,iPC:()=>jn,imY:()=>Eo,ipG:()=>Ha,irN:()=>pn,j$y:()=>so,j7z:()=>kc,jCw:()=>Gr,jrL:()=>Xs,kOl:()=>Ss,kPW:()=>fh,kgK:()=>jh,klU:()=>_a,l60:()=>vo,lDI:()=>wr,lcm:()=>Pt,lpz:()=>$o,mGg:()=>$n,mN_:()=>Yd,mO:()=>mc,mc2:()=>Xn,mlL:()=>nr,nN_:()=>za,nS0:()=>Yr,nWK:()=>_i,nXs:()=>Hc,ngE:()=>jt,njt:()=>Kh,npt:()=>xs,nvt:()=>Co,nwz:()=>Fi,o8O:()=>ca,oBD:()=>ts,oF4:()=>$i,p1q:()=>vu,p30:()=>Di,pHC:()=>Rr,pfp:()=>cr,poY:()=>os,qGX:()=>vs,r0m:()=>mt,rBh:()=>ad,rsL:()=>ws,sLO:()=>Sl,slN:()=>F,sr7:()=>Zu,sxk:()=>Hi,t8j:()=>Ya,tGA:()=>Ea,tNm:()=>ao,taz:()=>aa,ti:()=>Oo,tto:()=>qn,u4L:()=>jr,uZf:()=>gn,ueJ:()=>yu,usz:()=>Ae,uwh:()=>du,uzh:()=>ju,v8K:()=>tn,vSt:()=>fl,vhy:()=>od,vl2:()=>Ci,vof:()=>jo,w54:()=>Pi,wAY:()=>Qu,wJ:()=>Ud,wYf:()=>ld,wgx:()=>po,wpU:()=>Is,wy2:()=>As,x0j:()=>Sd,x85:()=>Ua,xhJ:()=>Qi,xq_:()=>ta,y3W:()=>go,y6V:()=>at,yIV:()=>uh,yRs:()=>ns,y__:()=>ma,yew:()=>rl,ynC:()=>as,ynP:()=>ka,z4S:()=>dc,zBy:()=>es,zI8:()=>Js,zPu:()=>Ao,z_u:()=>Os,zmF:()=>Cr,zpg:()=>Ii,zri:()=>Fo});var i=s(32610),n="aws.lambda.invoked_arn",h="db.system",C="db.connection_string",S="db.user",M="db.jdbc.driver_classname",P="db.name",x="db.statement",A="db.operation",g="db.mssql.instance_name",m="db.cassandra.keyspace",l="db.cassandra.page_size",r="db.cassandra.consistency_level",u="db.cassandra.table",v="db.cassandra.idempotence",E="db.cassandra.speculative_execution_count",T="db.cassandra.coordinator.id",R="db.cassandra.coordinator.dc",B="db.hbase.namespace",U="db.redis.database_index",Y="db.mongodb.collection",ae="db.sql.table",G="exception.type",k="exception.message",X="exception.stacktrace",q="exception.escaped",Q="faas.trigger",ce="faas.execution",te="faas.document.collection",Ee="faas.document.operation",it="faas.document.time",Fe="faas.document.name",Qe="faas.time",ct="faas.cron",Ge="faas.coldstart",nt="faas.invoked_name",Je="faas.invoked_provider",ze="faas.invoked_region",Ke="net.transport",Ve="net.peer.ip",$e="net.peer.port",dt="net.peer.name",Pe="net.host.ip",J="net.host.port",vt="net.host.name",ve="net.host.connection.type",ue="net.host.connection.subtype",et="net.host.carrier.name",se="net.host.carrier.mcc",Ce="net.host.carrier.mnc",be="net.host.carrier.icc",rt="peer.service",me="enduser.id",le="enduser.role",Xe="enduser.scope",Se="thread.id",fe="thread.name",Ne="code.function",ye="code.namespace",Ot="code.filepath",sn="code.lineno",dn="http.method",yn="http.url",At="http.target",Vt="http.host",Qt="http.scheme",Jt="http.status_code",Zt="http.flavor",nn="http.user_agent",Xt="http.request_content_length",lt="http.request_content_length_uncompressed",Ue="http.response_content_length",wt="http.response_content_length_uncompressed",gt="http.server_name",Ht="http.route",bn="http.client_ip",Ut="aws.dynamodb.table_names",Bt="aws.dynamodb.consumed_capacity",Le="aws.dynamodb.item_collection_metrics",V="aws.dynamodb.provisioned_read_capacity",de="aws.dynamodb.provisioned_write_capacity",ge="aws.dynamodb.consistent_read",Ft="aws.dynamodb.projection",Wt="aws.dynamodb.limit",Kt="aws.dynamodb.attributes_to_get",cn="aws.dynamodb.index_name",En="aws.dynamodb.select",kn="aws.dynamodb.global_secondary_indexes",Ai="aws.dynamodb.local_secondary_indexes",Gi="aws.dynamodb.exclusive_start_table",bt="aws.dynamodb.table_count",Zi="aws.dynamodb.scan_forward",Rn="aws.dynamodb.segment",Gn="aws.dynamodb.total_segments",Kn="aws.dynamodb.count",Ni="aws.dynamodb.scanned_count",ir="aws.dynamodb.attribute_definitions",Ir="aws.dynamodb.global_secondary_index_updates",hr="messaging.system",Ms="messaging.destination",Pr="messaging.destination_kind",lo="messaging.temp_destination",js="messaging.protocol",Vn="messaging.protocol_version",Ei="messaging.url",ai="messaging.message_id",Li="messaging.conversation_id",Lr="messaging.message_payload_size_bytes",Mn="messaging.message_payload_compressed_size_bytes",Qn="messaging.operation",Zn="messaging.consumer_id",fi="messaging.rabbitmq.routing_key",yi="messaging.kafka.message_key",tr="messaging.kafka.consumer_group",qi="messaging.kafka.client_id",Br="messaging.kafka.partition",Sr="messaging.kafka.tombstone",ds="rpc.system",bs="rpc.service",An="rpc.method",zn="rpc.grpc.status_code",Jn="rpc.jsonrpc.version",di="rpc.jsonrpc.request_id",Oi="rpc.jsonrpc.error_code",Wi="rpc.jsonrpc.error_message",mr="message.type",qr="message.id",ms="message.compressed_size",us="message.uncompressed_size",Qs=n,ks=h,Ar=C,Ur=S,vs=M,fo=P,Zo=x,vo=A,Pa=g,fa=m,fs=l,Io=r,Fo=u,qs=v,So=E,ta=T,Go=R,Mo=B,As=U,Uo=Y,Rr=ae,pa=G,nl=k,Ha=X,bo=q,Xa=Q,Es=ce,eo=te,Ks=Ee,oa=it,ar=Fe,la=Qe,wo=ct,na=Ge,Ro=nt,ja=Je,Eo=ze,Ho=Ke,no=Ve,Fs=$e,Co=dt,so=Pe,_o=J,La=vt,Ko=ve,Jo=ue,ka=et,il=se,co=Ce,po=be,$s=rt,Sn=me,ba=le,uo=Xe,$o=Se,aa=fe,Xs=Ne,_a=ye,zi=Ot,Ae=sn,jo=dn,fl=yn,Wa=At,Xi=Vt,Ao=Qt,ps=Jt,ca=Zt,al=nn,ga=Xt,on=lt,Dt=Ue,Mt=wt,Dn=gt,qn=Ht,Yr=bn,_s=Ut,Do=Bt,Ws=Le,Bi=V,Di=de,Ea=ge,vl=Ft,hs=Wt,Is=Kt,da=cn,jr=En,ia=kn,Oo=Ai,ra=Gi,$n=bt,mt=Zi,Yt=Rn,Un=Gn,ii=Kn,Hi=Ni,Nr=ir,Or=Ir,es=hr,Zs=Ms,wr=Pr,Us=lo,Vs=js,Ma=Vn,Ya=Ei,Qa=ai,za=Li,Bo=Lr,li=Mn,Ii=Qn,Pi=Zn,Dr=fi,ns=yi,ws=tr,oo=qi,ao=Br,Da=Sr,Sl=ds,Vr=bs,Ca=An,ua=zn,sa=Jn,rl=di,ll=Oi,Os=Wi,lr=mr,zs=qr,xa=ms,ho=us,Vi=(0,i.O)([n,h,C,S,M,P,x,A,g,m,l,r,u,v,E,T,R,B,U,Y,ae,G,k,X,q,Q,ce,te,Ee,it,Fe,Qe,ct,Ge,nt,Je,ze,Ke,Ve,$e,dt,Pe,J,vt,ve,ue,et,se,Ce,be,rt,me,le,Xe,Se,fe,Ne,ye,Ot,sn,dn,yn,At,Vt,Qt,Jt,Zt,nn,Xt,lt,Ue,wt,gt,Ht,bn,Ut,Bt,Le,V,de,ge,Ft,Wt,Kt,cn,En,kn,Ai,Gi,bt,Zi,Rn,Gn,Kn,Ni,ir,Ir,hr,Ms,Pr,lo,js,Vn,Ei,ai,Li,Lr,Mn,Qn,Zn,fi,yi,tr,qi,Br,Sr,ds,bs,An,zn,Jn,di,Oi,Wi,mr,qr,ms,us]),br="other_sql",pl="postgresql",io="redshift",Mr="cloudscape",_="progress",D="maxdb",I="hanadb",j="ingres",pe="firstsql",ht="firebird",Gt="filemaker",$t="informix",st="instantdb",tt="interbase",Tt="mariadb",Ye="netezza",kt="pervasive",It="pointbase",In="teradata",Nn="vertica",ui="coldfusion",ne="cassandra",_t="mongodb",en="couchbase",vn="couchdb",fn="cosmosdb",Cn="dynamodb",gi="elasticsearch",ln="memcached",ki="cockroachdb",rr=br,Ki="mssql",pr="mysql",Ti="oracle",Qi="db2",Gr=pl,vr=io,Fi="hive",kr=Mr,cr="hsqldb",Kr=_,Wr=D,Qr=I,Rs=j,Hr=pe,as="edb",Wo="cache",_i="adabas",Er=ht,Ui="derby",Te=Gt,ft=$t,Be=st,at=tt,jt=Tt,pn=Ye,Xn=kt,mi=It,Ci="sqlite",_r="sybase",ut=In,Pt=Nn,Re="h2",rn=ui,an=ne,Hn="hbase",xi=_t,yr="redis",ts=en,gr=vn,Cr=fn,os=Cn,Xo="neo4j",Ps="geode",sl=gi,Aa=ln,ma=ki,lc=(0,i.O)([br,"mssql","mysql","oracle","db2",pl,io,"hive",Mr,"hsqldb",_,D,I,j,pe,"edb","cache","adabas",ht,"derby",Gt,$t,st,tt,Tt,Ye,kt,It,"sqlite","sybase",In,Nn,"h2",ui,ne,"hbase",_t,"redis",en,vn,fn,Cn,"neo4j","geode",gi,ln,ki]),sd="each_quorum",dl="local_quorum",wc="local_one",ec="local_serial",Rc="all",Zr=sd,od="quorum",y=dl,c="one",p="two",O="three",F=wc,Z="any",re="serial",Oe=ec,je=(0,i.O)(["all",sd,"quorum",dl,"one","two","three",wc,"any","serial",ec]),ot="datasource",gn=ot,tn="http",Pn="pubsub",Bn="timer",ei="other",jn=(0,i.O)([ot,"http","pubsub","timer","other"]),$i="insert",er="edit",nr="delete",cs=(0,i.O)(["insert","edit","delete"]),ys="alibaba_cloud",go=ys,Vo="aws",Ds="azure",Ss="gcp",Js=(0,i.O)([ys,"aws","azure","gcp"]),Ua="ip_tcp",Za="ip_udp",Ja="ip",bl="unix",gl="pipe",Ka="inproc",cc="other",dc=(0,i.O)(["ip_tcp","ip_udp","ip","unix","pipe","inproc","other"]),ul="unavailable",Kl="unknown",Zc="wifi",Lc="wired",kc="cell",No=ul,Fc=Kl,uc=(0,i.O)(["wifi","wired","cell",ul,Kl]),Uc="cdma2000_1xrtt",Ia="td_scdma",Sc="gprs",Td="edge",uh="umts",cu="cdma",ju="evdo_0",bc="evdo_a",Yd=Uc,Hh="hsdpa",jh="hsupa",Sd="hspa",ad="iden",du="evdo_b",ld="lte",cd="ehrpd",dd="hspap",Wh="gsm",Wu=Ia,Id="iwlan",hh="nr",Xl="nrnsa",zh="lte_ca",wd=(0,i.O)(["gprs","edge","umts","cdma","evdo_0","evdo_a",Uc,"hsdpa","hsupa","hspa","iden","evdo_b","lte","ehrpd","hspap","gsm",Ia,"iwlan","nr","nrnsa","lte_ca"]),Rl="1.0",fh="1.1",pc="2.0",uu="SPDY",Jd="QUIC",Nd={HTTP_1_0:"1.0",HTTP_1_1:"1.1",HTTP_2_0:"2.0",SPDY:"SPDY",QUIC:"QUIC"},xs="queue",Ld="topic",Vc=(0,i.O)(["queue","topic"]),ic="receive",yo="process",mc=ic,qc=yo,ol=(0,i.O)([ic,yo]),Ud=0,Yu=1,Yl=2,Kh=3,Qu=4,hd=5,gu=6,Hc=7,nu=8,ed=9,Bd=10,mu=11,vu=12,ph=13,_u=14,yu=15,jc=16,fd={OK:0,CANCELLED:1,UNKNOWN:2,INVALID_ARGUMENT:3,DEADLINE_EXCEEDED:4,NOT_FOUND:5,ALREADY_EXISTS:6,PERMISSION_DENIED:7,RESOURCE_EXHAUSTED:8,FAILED_PRECONDITION:9,ABORTED:10,OUT_OF_RANGE:11,UNIMPLEMENTED:12,INTERNAL:13,UNAVAILABLE:14,DATA_LOSS:15,UNAUTHENTICATED:16},Wc="RECEIVED",Vd="SENT",Zu=Wc,$h=(0,i.O)(["SENT",Wc])},69753:St=>{"use strict";St.exports=function z(s,i){for(var n=new Array(arguments.length-1),h=0,C=2,S=!0;C<arguments.length;)n[h++]=arguments[C++];return new Promise(function(P,x){n[h]=function(g){if(S)if(S=!1,g)x(g);else{for(var m=new Array(arguments.length-1),l=0;l<m.length;)m[l++]=arguments[l];P.apply(null,m)}};try{s.apply(i||null,n)}catch(A){S&&(S=!1,x(A))}})}},5275:(St,z)=>{"use strict";var s=z;s.length=function(M){var P=M.length;if(!P)return 0;for(var x=0;--P%4>1&&"="===M.charAt(P);)++x;return Math.ceil(3*M.length)/4-x};for(var i=new Array(64),n=new Array(123),h=0;h<64;)n[i[h]=h<26?h+65:h<52?h+71:h<62?h-4:h-59|43]=h++;s.encode=function(M,P,x){for(var r,A=null,g=[],m=0,l=0;P<x;){var u=M[P++];switch(l){case 0:g[m++]=i[u>>2],r=(3&u)<<4,l=1;break;case 1:g[m++]=i[r|u>>4],r=(15&u)<<2,l=2;break;case 2:g[m++]=i[r|u>>6],g[m++]=i[63&u],l=0}m>8191&&((A||(A=[])).push(String.fromCharCode.apply(String,g)),m=0)}return l&&(g[m++]=i[r],g[m++]=61,1===l&&(g[m++]=61)),A?(m&&A.push(String.fromCharCode.apply(String,g.slice(0,m))),A.join("")):String.fromCharCode.apply(String,g.slice(0,m))};var C="invalid encoding";s.decode=function(M,P,x){for(var m,A=x,g=0,l=0;l<M.length;){var r=M.charCodeAt(l++);if(61===r&&g>1)break;if(void 0===(r=n[r]))throw Error(C);switch(g){case 0:m=r,g=1;break;case 1:P[x++]=m<<2|(48&r)>>4,m=r,g=2;break;case 2:P[x++]=(15&m)<<4|(60&r)>>2,m=r,g=3;break;case 3:P[x++]=(3&m)<<6|r,g=0}}if(1===g)throw Error(C);return x-A},s.test=function(M){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(M)}},84978:St=>{"use strict";function z(){this._listeners={}}St.exports=z,z.prototype.on=function(i,n,h){return(this._listeners[i]||(this._listeners[i]=[])).push({fn:n,ctx:h||this}),this},z.prototype.off=function(i,n){if(void 0===i)this._listeners={};else if(void 0===n)this._listeners[i]=[];else for(var h=this._listeners[i],C=0;C<h.length;)h[C].fn===n?h.splice(C,1):++C;return this},z.prototype.emit=function(i){var n=this._listeners[i];if(n){for(var h=[],C=1;C<arguments.length;)h.push(arguments[C++]);for(C=0;C<n.length;)n[C].fn.apply(n[C++].ctx,h)}return this}},8982:St=>{"use strict";function z(C){return typeof Float32Array<"u"?function(){var S=new Float32Array([-0]),M=new Uint8Array(S.buffer),P=128===M[3];function x(l,r,u){S[0]=l,r[u]=M[0],r[u+1]=M[1],r[u+2]=M[2],r[u+3]=M[3]}function A(l,r,u){S[0]=l,r[u]=M[3],r[u+1]=M[2],r[u+2]=M[1],r[u+3]=M[0]}function g(l,r){return M[0]=l[r],M[1]=l[r+1],M[2]=l[r+2],M[3]=l[r+3],S[0]}function m(l,r){return M[3]=l[r],M[2]=l[r+1],M[1]=l[r+2],M[0]=l[r+3],S[0]}C.writeFloatLE=P?x:A,C.writeFloatBE=P?A:x,C.readFloatLE=P?g:m,C.readFloatBE=P?m:g}():function(){function S(P,x,A,g){var m=x<0?1:0;if(m&&(x=-x),0===x)P(1/x>0?0:2147483648,A,g);else if(isNaN(x))P(2143289344,A,g);else if(x>34028234663852886e22)P((m<<31|2139095040)>>>0,A,g);else if(x<11754943508222875e-54)P((m<<31|Math.round(x/1401298464324817e-60))>>>0,A,g);else{var l=Math.floor(Math.log(x)/Math.LN2);P((m<<31|l+127<<23|8388607&Math.round(x*Math.pow(2,-l)*8388608))>>>0,A,g)}}function M(P,x,A){var g=P(x,A),m=2*(g>>31)+1,l=g>>>23&255,r=8388607&g;return 255===l?r?NaN:m*(1/0):0===l?1401298464324817e-60*m*r:m*Math.pow(2,l-150)*(r+8388608)}C.writeFloatLE=S.bind(null,s),C.writeFloatBE=S.bind(null,i),C.readFloatLE=M.bind(null,n),C.readFloatBE=M.bind(null,h)}(),typeof Float64Array<"u"?function(){var S=new Float64Array([-0]),M=new Uint8Array(S.buffer),P=128===M[7];function x(l,r,u){S[0]=l,r[u]=M[0],r[u+1]=M[1],r[u+2]=M[2],r[u+3]=M[3],r[u+4]=M[4],r[u+5]=M[5],r[u+6]=M[6],r[u+7]=M[7]}function A(l,r,u){S[0]=l,r[u]=M[7],r[u+1]=M[6],r[u+2]=M[5],r[u+3]=M[4],r[u+4]=M[3],r[u+5]=M[2],r[u+6]=M[1],r[u+7]=M[0]}function g(l,r){return M[0]=l[r],M[1]=l[r+1],M[2]=l[r+2],M[3]=l[r+3],M[4]=l[r+4],M[5]=l[r+5],M[6]=l[r+6],M[7]=l[r+7],S[0]}function m(l,r){return M[7]=l[r],M[6]=l[r+1],M[5]=l[r+2],M[4]=l[r+3],M[3]=l[r+4],M[2]=l[r+5],M[1]=l[r+6],M[0]=l[r+7],S[0]}C.writeDoubleLE=P?x:A,C.writeDoubleBE=P?A:x,C.readDoubleLE=P?g:m,C.readDoubleBE=P?m:g}():function(){function S(P,x,A,g,m,l){var r=g<0?1:0;if(r&&(g=-g),0===g)P(0,m,l+x),P(1/g>0?0:2147483648,m,l+A);else if(isNaN(g))P(0,m,l+x),P(2146959360,m,l+A);else if(g>17976931348623157e292)P(0,m,l+x),P((r<<31|2146435072)>>>0,m,l+A);else{var u;if(g<22250738585072014e-324)P((u=g/5e-324)>>>0,m,l+x),P((r<<31|u/4294967296)>>>0,m,l+A);else{var v=Math.floor(Math.log(g)/Math.LN2);1024===v&&(v=1023),P(4503599627370496*(u=g*Math.pow(2,-v))>>>0,m,l+x),P((r<<31|v+1023<<20|1048576*u&1048575)>>>0,m,l+A)}}}function M(P,x,A,g,m){var l=P(g,m+x),r=P(g,m+A),u=2*(r>>31)+1,v=r>>>20&2047,E=4294967296*(1048575&r)+l;return 2047===v?E?NaN:u*(1/0):0===v?5e-324*u*E:u*Math.pow(2,v-1075)*(E+4503599627370496)}C.writeDoubleLE=S.bind(null,s,0,4),C.writeDoubleBE=S.bind(null,i,4,0),C.readDoubleLE=M.bind(null,n,0,4),C.readDoubleBE=M.bind(null,h,4,0)}(),C}function s(C,S,M){S[M]=255&C,S[M+1]=C>>>8&255,S[M+2]=C>>>16&255,S[M+3]=C>>>24}function i(C,S,M){S[M]=C>>>24,S[M+1]=C>>>16&255,S[M+2]=C>>>8&255,S[M+3]=255&C}function n(C,S){return(C[S]|C[S+1]<<8|C[S+2]<<16|C[S+3]<<24)>>>0}function h(C,S){return(C[S]<<24|C[S+1]<<16|C[S+2]<<8|C[S+3])>>>0}St.exports=z(z)},46469:module=>{"use strict";function inquire(moduleName){try{var mod=eval("quire".replace(/^/,"re"))(moduleName);if(mod&&(mod.length||Object.keys(mod).length))return mod}catch(St){}return null}module.exports=inquire},74722:St=>{"use strict";St.exports=function z(s,i,n){var h=n||8192,C=h>>>1,S=null,M=h;return function(x){if(x<1||x>C)return s(x);M+x>h&&(S=s(h),M=0);var A=i.call(S,M,M+=x);return 7&M&&(M=1+(7|M)),A}}},61755:(St,z)=>{"use strict";var s=z;s.length=function(n){for(var h=0,C=0,S=0;S<n.length;++S)(C=n.charCodeAt(S))<128?h+=1:C<2048?h+=2:55296==(64512&C)&&56320==(64512&n.charCodeAt(S+1))?(++S,h+=4):h+=3;return h},s.read=function(n,h,C){if(C-h<1)return"";for(var A,M=null,P=[],x=0;h<C;)(A=n[h++])<128?P[x++]=A:A>191&&A<224?P[x++]=(31&A)<<6|63&n[h++]:A>239&&A<365?(A=((7&A)<<18|(63&n[h++])<<12|(63&n[h++])<<6|63&n[h++])-65536,P[x++]=55296+(A>>10),P[x++]=56320+(1023&A)):P[x++]=(15&A)<<12|(63&n[h++])<<6|63&n[h++],x>8191&&((M||(M=[])).push(String.fromCharCode.apply(String,P)),x=0);return M?(x&&M.push(String.fromCharCode.apply(String,P.slice(0,x))),M.join("")):String.fromCharCode.apply(String,P.slice(0,x))},s.write=function(n,h,C){for(var M,P,S=C,x=0;x<n.length;++x)(M=n.charCodeAt(x))<128?h[C++]=M:M<2048?(h[C++]=M>>6|192,h[C++]=63&M|128):55296==(64512&M)&&56320==(64512&(P=n.charCodeAt(x+1)))?(++x,h[C++]=(M=65536+((1023&M)<<10)+(1023&P))>>18|240,h[C++]=M>>12&63|128,h[C++]=M>>6&63|128,h[C++]=63&M|128):(h[C++]=M>>12|224,h[C++]=M>>6&63|128,h[C++]=63&M|128);return C-S}},52490:(St,z)=>{"use strict";z.bg=function g(u){for(var v,E=function P(u){var v=u.length;if(v%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var E=u.indexOf("=");return-1===E&&(E=v),[E,E===v?0:4-E%4]}(u),T=E[0],R=E[1],B=new h(function A(u,v,E){return 3*(v+E)/4-E}(0,T,R)),U=0,Y=R>0?T-4:T,ae=0;ae<Y;ae+=4)v=n[u.charCodeAt(ae)]<<18|n[u.charCodeAt(ae+1)]<<12|n[u.charCodeAt(ae+2)]<<6|n[u.charCodeAt(ae+3)],B[U++]=v>>16&255,B[U++]=v>>8&255,B[U++]=255&v;return 2===R&&(v=n[u.charCodeAt(ae)]<<2|n[u.charCodeAt(ae+1)]>>4,B[U++]=255&v),1===R&&(v=n[u.charCodeAt(ae)]<<10|n[u.charCodeAt(ae+1)]<<4|n[u.charCodeAt(ae+2)]>>2,B[U++]=v>>8&255,B[U++]=255&v),B},z.iI=function r(u){for(var v,E=u.length,T=E%3,R=[],B=16383,U=0,Y=E-T;U<Y;U+=B)R.push(l(u,U,U+B>Y?Y:U+B));return 1===T?R.push(i[(v=u[E-1])>>2]+i[v<<4&63]+"=="):2===T&&R.push(i[(v=(u[E-2]<<8)+u[E-1])>>10]+i[v>>4&63]+i[v<<2&63]+"="),R.join("")};for(var i=[],n=[],h=typeof Uint8Array<"u"?Uint8Array:Array,C="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",S=0;S<64;++S)i[S]=C[S],n[C.charCodeAt(S)]=S;function m(u){return i[u>>18&63]+i[u>>12&63]+i[u>>6&63]+i[63&u]}function l(u,v,E){for(var R=[],B=v;B<E;B+=3)R.push(m((u[B]<<16&16711680)+(u[B+1]<<8&65280)+(255&u[B+2])));return R.join("")}n[45]=62,n[95]=63},94329:St=>{var C=.1,S="function"==typeof Float32Array;function M(u,v){return 1-3*v+3*u}function P(u,v){return 3*v-6*u}function x(u){return 3*u}function A(u,v,E){return((M(v,E)*u+P(v,E))*u+x(v))*u}function g(u,v,E){return 3*M(v,E)*u*u+2*P(v,E)*u+x(v)}function r(u){return u}St.exports=function(v,E,T,R){if(!(0<=v&&v<=1&&0<=T&&T<=1))throw new Error("bezier x values must be in [0, 1] range");if(v===E&&T===R)return r;for(var B=S?new Float32Array(11):new Array(11),U=0;U<11;++U)B[U]=A(U*C,v,T);return function(G){return 0===G?0:1===G?1:A(function Y(ae){for(var G=0,k=1;10!==k&&B[k]<=ae;++k)G+=C;--k;var Q=G+(ae-B[k])/(B[k+1]-B[k])*C,ce=g(Q,v,T);return ce>=.001?function l(u,v,E,T){for(var R=0;R<4;++R){var B=g(v,E,T);if(0===B)return v;v-=(A(v,E,T)-u)/B}return v}(ae,Q,v,T):0===ce?Q:function m(u,v,E,T,R){var B,U,Y=0;do{(B=A(U=v+(E-v)/2,T,R)-u)>0?E=U:v=U}while(Math.abs(B)>1e-7&&++Y<10);return U}(ae,G,G+C,v,T)}(G),E,R)}}},19884:St=>{"use strict";var z={single_source_shortest_paths:function(s,i,n){var h={},C={};C[i]=0;var M,P,x,A,g,l,S=z.PriorityQueue.make();for(S.push(i,0);!S.empty();)for(x in A=(M=S.pop()).cost,g=s[P=M.value]||{})g.hasOwnProperty(x)&&(l=A+g[x],(typeof C[x]>"u"||C[x]>l)&&(C[x]=l,S.push(x,l),h[x]=P));if(typeof n<"u"&&typeof C[n]>"u"){var v=["Could not find a path from ",i," to ",n,"."].join("");throw new Error(v)}return h},extract_shortest_path_from_predecessor_list:function(s,i){for(var n=[],h=i;h;)n.push(h),h=s[h];return n.reverse(),n},find_path:function(s,i,n){var h=z.single_source_shortest_paths(s,i,n);return z.extract_shortest_path_from_predecessor_list(h,n)},PriorityQueue:{make:function(s){var h,i=z.PriorityQueue,n={};for(h in s=s||{},i)i.hasOwnProperty(h)&&(n[h]=i[h]);return n.queue=[],n.sorter=s.sorter||i.default_sorter,n},default_sorter:function(s,i){return s.cost-i.cost},push:function(s,i){this.queue.push({value:s,cost:i}),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};St.exports=z},30741:St=>{"use strict";St.exports=function(s){for(var i=[],n=s.length,h=0;h<n;h++){var C=s.charCodeAt(h);if(C>=55296&&C<=56319&&n>h+1){var S=s.charCodeAt(h+1);S>=56320&&S<=57343&&(C=1024*(C-55296)+S-56320+65536,h+=1)}C<128?i.push(C):C<2048?(i.push(C>>6|192),i.push(63&C|128)):C<55296||C>=57344&&C<65536?(i.push(C>>12|224),i.push(C>>6&63|128),i.push(63&C|128)):C>=65536&&C<=1114111?(i.push(C>>18|240),i.push(C>>12&63|128),i.push(C>>6&63|128),i.push(63&C|128)):i.push(239,191,189)}return new Uint8Array(i).buffer}},20468:(St,z,s)=>{var i;!function(){"use strict";var n="input is invalid type",h="object"==typeof window,C=h?window:{};C.JS_SHA256_NO_WINDOW&&(h=!1);var S=!h&&"object"==typeof self,M=!C.JS_SHA256_NO_NODE_JS&&"object"==typeof process&&process.versions&&process.versions.node;M?C=global:S&&(C=self);var P=!C.JS_SHA256_NO_COMMON_JS&&St.exports,x=s.amdO,A=!C.JS_SHA256_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",g="0123456789abcdef".split(""),m=[-2147483648,8388608,32768,128],l=[24,16,8,0],r=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],u=["hex","array","digest","arrayBuffer"],v=[];(C.JS_SHA256_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(k){return"[object Array]"===Object.prototype.toString.call(k)}),A&&(C.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(k){return"object"==typeof k&&k.buffer&&k.buffer.constructor===ArrayBuffer});var E=function(k,X){return function(q){return new Y(X,!0).update(q)[k]()}},T=function(k){var X=E("hex",k);M&&(X=R(X,k)),X.create=function(){return new Y(k)},X.update=function(ce){return X.create().update(ce)};for(var q=0;q<u.length;++q){var Q=u[q];X[Q]=E(Q,k)}return X},R=function(k,X){var te,q=s(24394),Q=s(91903).Buffer,ce=X?"sha224":"sha256";return te=Q.from&&!C.JS_SHA256_NO_BUFFER_FROM?Q.from:function(it){return new Q(it)},function(it){if("string"==typeof it)return q.createHash(ce).update(it,"utf8").digest("hex");if(null==it)throw new Error(n);return it.constructor===ArrayBuffer&&(it=new Uint8Array(it)),Array.isArray(it)||ArrayBuffer.isView(it)||it.constructor===Q?q.createHash(ce).update(te(it)).digest("hex"):k(it)}},B=function(k,X){return function(q,Q){return new ae(q,X,!0).update(Q)[k]()}},U=function(k){var X=B("hex",k);X.create=function(ce){return new ae(ce,k)},X.update=function(ce,te){return X.create(ce).update(te)};for(var q=0;q<u.length;++q){var Q=u[q];X[Q]=B(Q,k)}return X};function Y(k,X){X?(v[0]=v[16]=v[1]=v[2]=v[3]=v[4]=v[5]=v[6]=v[7]=v[8]=v[9]=v[10]=v[11]=v[12]=v[13]=v[14]=v[15]=0,this.blocks=v):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],k?(this.h0=3238371032,this.h1=914150663,this.h2=812702999,this.h3=4144912697,this.h4=4290775857,this.h5=1750603025,this.h6=1694076839,this.h7=3204075428):(this.h0=1779033703,this.h1=3144134277,this.h2=1013904242,this.h3=2773480762,this.h4=1359893119,this.h5=2600822924,this.h6=528734635,this.h7=1541459225),this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0,this.is224=k}function ae(k,X,q){var Q,ce=typeof k;if("string"===ce){var Fe,te=[],Ee=k.length,it=0;for(Q=0;Q<Ee;++Q)(Fe=k.charCodeAt(Q))<128?te[it++]=Fe:Fe<2048?(te[it++]=192|Fe>>>6,te[it++]=128|63&Fe):Fe<55296||Fe>=57344?(te[it++]=224|Fe>>>12,te[it++]=128|Fe>>>6&63,te[it++]=128|63&Fe):(Fe=65536+((1023&Fe)<<10|1023&k.charCodeAt(++Q)),te[it++]=240|Fe>>>18,te[it++]=128|Fe>>>12&63,te[it++]=128|Fe>>>6&63,te[it++]=128|63&Fe);k=te}else{if("object"!==ce)throw new Error(n);if(null===k)throw new Error(n);if(A&&k.constructor===ArrayBuffer)k=new Uint8Array(k);else if(!(Array.isArray(k)||A&&ArrayBuffer.isView(k)))throw new Error(n)}k.length>64&&(k=new Y(X,!0).update(k).array());var Qe=[],ct=[];for(Q=0;Q<64;++Q){var Ge=k[Q]||0;Qe[Q]=92^Ge,ct[Q]=54^Ge}Y.call(this,X,q),this.update(ct),this.oKeyPad=Qe,this.inner=!0,this.sharedMemory=q}Y.prototype.update=function(k){if(!this.finalized){var X,q=typeof k;if("string"!==q){if("object"!==q)throw new Error(n);if(null===k)throw new Error(n);if(A&&k.constructor===ArrayBuffer)k=new Uint8Array(k);else if(!(Array.isArray(k)||A&&ArrayBuffer.isView(k)))throw new Error(n);X=!0}for(var Q,te,ce=0,Ee=k.length,it=this.blocks;ce<Ee;){if(this.hashed&&(this.hashed=!1,it[0]=this.block,this.block=it[16]=it[1]=it[2]=it[3]=it[4]=it[5]=it[6]=it[7]=it[8]=it[9]=it[10]=it[11]=it[12]=it[13]=it[14]=it[15]=0),X)for(te=this.start;ce<Ee&&te<64;++ce)it[te>>>2]|=k[ce]<<l[3&te++];else for(te=this.start;ce<Ee&&te<64;++ce)(Q=k.charCodeAt(ce))<128?it[te>>>2]|=Q<<l[3&te++]:Q<2048?(it[te>>>2]|=(192|Q>>>6)<<l[3&te++],it[te>>>2]|=(128|63&Q)<<l[3&te++]):Q<55296||Q>=57344?(it[te>>>2]|=(224|Q>>>12)<<l[3&te++],it[te>>>2]|=(128|Q>>>6&63)<<l[3&te++],it[te>>>2]|=(128|63&Q)<<l[3&te++]):(Q=65536+((1023&Q)<<10|1023&k.charCodeAt(++ce)),it[te>>>2]|=(240|Q>>>18)<<l[3&te++],it[te>>>2]|=(128|Q>>>12&63)<<l[3&te++],it[te>>>2]|=(128|Q>>>6&63)<<l[3&te++],it[te>>>2]|=(128|63&Q)<<l[3&te++]);this.lastByteIndex=te,this.bytes+=te-this.start,te>=64?(this.block=it[16],this.start=te-64,this.hash(),this.hashed=!0):this.start=te}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296|0,this.bytes=this.bytes%4294967296),this}},Y.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var k=this.blocks,X=this.lastByteIndex;k[16]=this.block,k[X>>>2]|=m[3&X],this.block=k[16],X>=56&&(this.hashed||this.hash(),k[0]=this.block,k[16]=k[1]=k[2]=k[3]=k[4]=k[5]=k[6]=k[7]=k[8]=k[9]=k[10]=k[11]=k[12]=k[13]=k[14]=k[15]=0),k[14]=this.hBytes<<3|this.bytes>>>29,k[15]=this.bytes<<3,this.hash()}},Y.prototype.hash=function(){var Qe,Je,Ve,$e,dt,Pe,k=this.h0,X=this.h1,q=this.h2,Q=this.h3,ce=this.h4,te=this.h5,Ee=this.h6,it=this.h7,Fe=this.blocks;for(Qe=16;Qe<64;++Qe)Fe[Qe]=Fe[Qe-16]+(((Je=Fe[Qe-15])>>>7|Je<<25)^(Je>>>18|Je<<14)^Je>>>3)+Fe[Qe-7]+(((Je=Fe[Qe-2])>>>17|Je<<15)^(Je>>>19|Je<<13)^Je>>>10)|0;for(Pe=X&q,Qe=0;Qe<64;Qe+=4)this.first?(this.is224?(Ve=300032,it=(Je=Fe[0]-1413257819)-150054599|0,Q=Je+24177077|0):(Ve=704751109,it=(Je=Fe[0]-210244248)-1521486534|0,Q=Je+143694565|0),this.first=!1):(it=Q+(Je=it+((ce>>>6|ce<<26)^(ce>>>11|ce<<21)^(ce>>>25|ce<<7))+(ce&te^~ce&Ee)+r[Qe]+Fe[Qe])|0,Q=Je+(((k>>>2|k<<30)^(k>>>13|k<<19)^(k>>>22|k<<10))+((Ve=k&X)^k&q^Pe))|0),Ee=q+(Je=Ee+((it>>>6|it<<26)^(it>>>11|it<<21)^(it>>>25|it<<7))+(it&ce^~it&te)+r[Qe+1]+Fe[Qe+1])|0,q=Je+(((Q>>>2|Q<<30)^(Q>>>13|Q<<19)^(Q>>>22|Q<<10))+(($e=Q&k)^Q&X^Ve))|0,te=X+(Je=te+((Ee>>>6|Ee<<26)^(Ee>>>11|Ee<<21)^(Ee>>>25|Ee<<7))+(Ee&it^~Ee&ce)+r[Qe+2]+Fe[Qe+2])|0,X=Je+(((q>>>2|q<<30)^(q>>>13|q<<19)^(q>>>22|q<<10))+((dt=q&Q)^q&k^$e))|0,ce=k+(Je=ce+((te>>>6|te<<26)^(te>>>11|te<<21)^(te>>>25|te<<7))+(te&Ee^~te&it)+r[Qe+3]+Fe[Qe+3])|0,k=Je+(((X>>>2|X<<30)^(X>>>13|X<<19)^(X>>>22|X<<10))+((Pe=X&q)^X&Q^dt))|0,this.chromeBugWorkAround=!0;this.h0=this.h0+k|0,this.h1=this.h1+X|0,this.h2=this.h2+q|0,this.h3=this.h3+Q|0,this.h4=this.h4+ce|0,this.h5=this.h5+te|0,this.h6=this.h6+Ee|0,this.h7=this.h7+it|0},Y.prototype.toString=Y.prototype.hex=function(){this.finalize();var k=this.h0,X=this.h1,q=this.h2,Q=this.h3,ce=this.h4,te=this.h5,Ee=this.h6,it=this.h7,Fe=g[k>>>28&15]+g[k>>>24&15]+g[k>>>20&15]+g[k>>>16&15]+g[k>>>12&15]+g[k>>>8&15]+g[k>>>4&15]+g[15&k]+g[X>>>28&15]+g[X>>>24&15]+g[X>>>20&15]+g[X>>>16&15]+g[X>>>12&15]+g[X>>>8&15]+g[X>>>4&15]+g[15&X]+g[q>>>28&15]+g[q>>>24&15]+g[q>>>20&15]+g[q>>>16&15]+g[q>>>12&15]+g[q>>>8&15]+g[q>>>4&15]+g[15&q]+g[Q>>>28&15]+g[Q>>>24&15]+g[Q>>>20&15]+g[Q>>>16&15]+g[Q>>>12&15]+g[Q>>>8&15]+g[Q>>>4&15]+g[15&Q]+g[ce>>>28&15]+g[ce>>>24&15]+g[ce>>>20&15]+g[ce>>>16&15]+g[ce>>>12&15]+g[ce>>>8&15]+g[ce>>>4&15]+g[15&ce]+g[te>>>28&15]+g[te>>>24&15]+g[te>>>20&15]+g[te>>>16&15]+g[te>>>12&15]+g[te>>>8&15]+g[te>>>4&15]+g[15&te]+g[Ee>>>28&15]+g[Ee>>>24&15]+g[Ee>>>20&15]+g[Ee>>>16&15]+g[Ee>>>12&15]+g[Ee>>>8&15]+g[Ee>>>4&15]+g[15&Ee];return this.is224||(Fe+=g[it>>>28&15]+g[it>>>24&15]+g[it>>>20&15]+g[it>>>16&15]+g[it>>>12&15]+g[it>>>8&15]+g[it>>>4&15]+g[15&it]),Fe},Y.prototype.array=Y.prototype.digest=function(){this.finalize();var k=this.h0,X=this.h1,q=this.h2,Q=this.h3,ce=this.h4,te=this.h5,Ee=this.h6,it=this.h7,Fe=[k>>>24&255,k>>>16&255,k>>>8&255,255&k,X>>>24&255,X>>>16&255,X>>>8&255,255&X,q>>>24&255,q>>>16&255,q>>>8&255,255&q,Q>>>24&255,Q>>>16&255,Q>>>8&255,255&Q,ce>>>24&255,ce>>>16&255,ce>>>8&255,255&ce,te>>>24&255,te>>>16&255,te>>>8&255,255&te,Ee>>>24&255,Ee>>>16&255,Ee>>>8&255,255&Ee];return this.is224||Fe.push(it>>>24&255,it>>>16&255,it>>>8&255,255&it),Fe},Y.prototype.arrayBuffer=function(){this.finalize();var k=new ArrayBuffer(this.is224?28:32),X=new DataView(k);return X.setUint32(0,this.h0),X.setUint32(4,this.h1),X.setUint32(8,this.h2),X.setUint32(12,this.h3),X.setUint32(16,this.h4),X.setUint32(20,this.h5),X.setUint32(24,this.h6),this.is224||X.setUint32(28,this.h7),k},(ae.prototype=new Y).finalize=function(){if(Y.prototype.finalize.call(this),this.inner){this.inner=!1;var k=this.array();Y.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(k),Y.prototype.finalize.call(this)}};var G=T();G.sha256=G,G.sha224=T(!0),G.sha256.hmac=U(),G.sha224.hmac=U(!0),P?St.exports=G:(C.sha256=G.sha256,C.sha224=G.sha224,x&&void 0!==(i=function(){return G}.call(G,s,G,St))&&(St.exports=i))}()},58007:(St,z)=>{var _,I,j,pe,_e,xe,He,ht,yt,Gt,st,D,i={userAgent:!1},n={},S=S||(_=Math,j=(I={}).lib={},pe=j.Base=function(){function tt(){}return{extend:function(Tt){tt.prototype=this;var Ye=new tt;return Tt&&Ye.mixIn(Tt),Ye.hasOwnProperty("init")||(Ye.init=function(){Ye.$super.init.apply(this,arguments)}),Ye.init.prototype=Ye,Ye.$super=this,Ye},create:function(){var Tt=this.extend();return Tt.init.apply(Tt,arguments),Tt},init:function(){},mixIn:function(Tt){for(var Ye in Tt)Tt.hasOwnProperty(Ye)&&(this[Ye]=Tt[Ye]);Tt.hasOwnProperty("toString")&&(this.toString=Tt.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),_e=j.WordArray=pe.extend({init:function(tt,Tt){tt=this.words=tt||[],this.sigBytes=null!=Tt?Tt:4*tt.length},toString:function(tt){return(tt||He).stringify(this)},concat:function(tt){var Tt=this.words,Ye=tt.words,kt=this.sigBytes,It=tt.sigBytes;if(this.clamp(),kt%4)for(var un=0;un<It;un++)Tt[kt+un>>>2]|=(Ye[un>>>2]>>>24-un%4*8&255)<<24-(kt+un)%4*8;else for(un=0;un<It;un+=4)Tt[kt+un>>>2]=Ye[un>>>2];return this.sigBytes+=It,this},clamp:function(){var tt=this.words,Tt=this.sigBytes;tt[Tt>>>2]&=4294967295<<32-Tt%4*8,tt.length=_.ceil(Tt/4)},clone:function(){var tt=pe.clone.call(this);return tt.words=this.words.slice(0),tt},random:function(tt){for(var Tt=[],Ye=0;Ye<tt;Ye+=4)Tt.push(4294967296*_.random()|0);return new _e.init(Tt,tt)}}),xe=I.enc={},He=xe.Hex={stringify:function(tt){for(var Tt=tt.words,Ye=tt.sigBytes,kt=[],It=0;It<Ye;It++){var un=Tt[It>>>2]>>>24-It%4*8&255;kt.push((un>>>4).toString(16)),kt.push((15&un).toString(16))}return kt.join("")},parse:function(tt){for(var Tt=tt.length,Ye=[],kt=0;kt<Tt;kt+=2)Ye[kt>>>3]|=parseInt(tt.substr(kt,2),16)<<24-kt%8*4;return new _e.init(Ye,Tt/2)}},ht=xe.Latin1={stringify:function(tt){for(var Tt=tt.words,Ye=tt.sigBytes,kt=[],It=0;It<Ye;It++)kt.push(String.fromCharCode(Tt[It>>>2]>>>24-It%4*8&255));return kt.join("")},parse:function(tt){for(var Tt=tt.length,Ye=[],kt=0;kt<Tt;kt++)Ye[kt>>>2]|=(255&tt.charCodeAt(kt))<<24-kt%4*8;return new _e.init(Ye,Tt)}},yt=xe.Utf8={stringify:function(tt){try{return decodeURIComponent(escape(ht.stringify(tt)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(tt){return ht.parse(unescape(encodeURIComponent(tt)))}},Gt=j.BufferedBlockAlgorithm=pe.extend({reset:function(){this._data=new _e.init,this._nDataBytes=0},_append:function(tt){"string"==typeof tt&&(tt=yt.parse(tt)),this._data.concat(tt),this._nDataBytes+=tt.sigBytes},_process:function(tt){var Tt=this._data,Ye=Tt.words,kt=Tt.sigBytes,It=this.blockSize,xn=kt/(4*It),In=(xn=tt?_.ceil(xn):_.max((0|xn)-this._minBufferSize,0))*It,Nn=_.min(4*In,kt);if(In){for(var ri=0;ri<In;ri+=It)this._doProcessBlock(Ye,ri);var ui=Ye.splice(0,In);Tt.sigBytes-=Nn}return new _e.init(ui,Nn)},clone:function(){var tt=pe.clone.call(this);return tt._data=this._data.clone(),tt},_minBufferSize:0}),j.Hasher=Gt.extend({cfg:pe.extend(),init:function(tt){this.cfg=this.cfg.extend(tt),this.reset()},reset:function(){Gt.reset.call(this),this._doReset()},update:function(tt){return this._append(tt),this._process(),this},finalize:function(tt){return tt&&this._append(tt),this._doFinalize()},blockSize:16,_createHelper:function(tt){return function(Tt,Ye){return new tt.init(Ye).finalize(Tt)}},_createHmacHelper:function(tt){return function(Tt,Ye){return new st.HMAC.init(tt,Ye).finalize(Tt)}}}),st=I.algo={},I);(function(_){var pe,D=(pe=S).lib,I=D.Base,j=D.WordArray;(pe=pe.x64={}).Word=I.extend({init:function(_e,xe){this.high=_e,this.low=xe}}),pe.WordArray=I.extend({init:function(_e,xe){_e=this.words=_e||[],this.sigBytes=null!=xe?xe:8*_e.length},toX32:function(){for(var _e=this.words,xe=_e.length,He=[],ht=0;ht<xe;ht++){var yt=_e[ht];He.push(yt.high),He.push(yt.low)}return j.create(He,this.sigBytes)},clone:function(){for(var _e=I.clone.call(this),xe=_e.words=this.words.slice(0),He=xe.length,ht=0;ht<He;ht++)xe[ht]=xe[ht].clone();return _e}})})(),S.lib.Cipher||function(_){var D=(tt=S).lib,I=D.Base,j=D.WordArray,pe=D.BufferedBlockAlgorithm,_e=tt.enc.Base64,xe=tt.algo.EvpKDF,He=D.Cipher=pe.extend({cfg:I.extend(),createEncryptor:function(Ye,kt){return this.create(this._ENC_XFORM_MODE,Ye,kt)},createDecryptor:function(Ye,kt){return this.create(this._DEC_XFORM_MODE,Ye,kt)},init:function(Ye,kt,It){this.cfg=this.cfg.extend(It),this._xformMode=Ye,this._key=kt,this.reset()},reset:function(){pe.reset.call(this),this._doReset()},process:function(Ye){return this._append(Ye),this._process()},finalize:function(Ye){return Ye&&this._append(Ye),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(Ye){return{encrypt:function(kt,It,un){return("string"==typeof It?Tt:st).encrypt(Ye,kt,It,un)},decrypt:function(kt,It,un){return("string"==typeof It?Tt:st).decrypt(Ye,kt,It,un)}}}});D.StreamCipher=He.extend({_doFinalize:function(){return this._process(!0)},blockSize:1});var $t=tt.mode={},ht=function(Ye,kt,It){var un=this._iv;un?this._iv=void 0:un=this._prevBlock;for(var xn=0;xn<It;xn++)Ye[kt+xn]^=un[xn]},yt=(D.BlockCipherMode=I.extend({createEncryptor:function(Ye,kt){return this.Encryptor.create(Ye,kt)},createDecryptor:function(Ye,kt){return this.Decryptor.create(Ye,kt)},init:function(Ye,kt){this._cipher=Ye,this._iv=kt}})).extend();yt.Encryptor=yt.extend({processBlock:function(Ye,kt){var It=this._cipher,un=It.blockSize;ht.call(this,Ye,kt,un),It.encryptBlock(Ye,kt),this._prevBlock=Ye.slice(kt,kt+un)}}),yt.Decryptor=yt.extend({processBlock:function(Ye,kt){var It=this._cipher,un=It.blockSize,xn=Ye.slice(kt,kt+un);It.decryptBlock(Ye,kt),ht.call(this,Ye,kt,un),this._prevBlock=xn}}),$t=$t.CBC=yt,yt=(tt.pad={}).Pkcs7={pad:function(Ye,kt){for(var It,un=(It=(It=4*kt)-Ye.sigBytes%It)<<24|It<<16|It<<8|It,xn=[],In=0;In<It;In+=4)xn.push(un);It=j.create(xn,It),Ye.concat(It)},unpad:function(Ye){Ye.sigBytes-=255&Ye.words[Ye.sigBytes-1>>>2]}},D.BlockCipher=He.extend({cfg:He.cfg.extend({mode:$t,padding:yt}),reset:function(){He.reset.call(this);var Ye=(kt=this.cfg).iv,kt=kt.mode;if(this._xformMode==this._ENC_XFORM_MODE)var It=kt.createEncryptor;else It=kt.createDecryptor,this._minBufferSize=1;this._mode=It.call(kt,this,Ye&&Ye.words)},_doProcessBlock:function(Ye,kt){this._mode.processBlock(Ye,kt)},_doFinalize:function(){var Ye=this.cfg.padding;if(this._xformMode==this._ENC_XFORM_MODE){Ye.pad(this._data,this.blockSize);var kt=this._process(!0)}else kt=this._process(!0),Ye.unpad(kt);return kt},blockSize:4});var Gt=D.CipherParams=I.extend({init:function(Ye){this.mixIn(Ye)},toString:function(Ye){return(Ye||this.formatter).stringify(this)}}),st=($t=(tt.format={}).OpenSSL={stringify:function(Ye){var kt=Ye.ciphertext;return((Ye=Ye.salt)?j.create([1398893684,1701076831]).concat(Ye).concat(kt):kt).toString(_e)},parse:function(Ye){var kt=(Ye=_e.parse(Ye)).words;if(1398893684==kt[0]&&1701076831==kt[1]){var It=j.create(kt.slice(2,4));kt.splice(0,4),Ye.sigBytes-=16}return Gt.create({ciphertext:Ye,salt:It})}},D.SerializableCipher=I.extend({cfg:I.extend({format:$t}),encrypt:function(Ye,kt,It,un){un=this.cfg.extend(un);var xn=Ye.createEncryptor(It,un);return kt=xn.finalize(kt),Gt.create({ciphertext:kt,key:It,iv:(xn=xn.cfg).iv,algorithm:Ye,mode:xn.mode,padding:xn.padding,blockSize:Ye.blockSize,formatter:un.format})},decrypt:function(Ye,kt,It,un){return un=this.cfg.extend(un),kt=this._parse(kt,un.format),Ye.createDecryptor(It,un).finalize(kt.ciphertext)},_parse:function(Ye,kt){return"string"==typeof Ye?kt.parse(Ye,this):Ye}})),tt=(tt.kdf={}).OpenSSL={execute:function(Ye,kt,It,un){return un||(un=j.random(8)),Ye=xe.create({keySize:kt+It}).compute(Ye,un),It=j.create(Ye.words.slice(kt),4*It),Ye.sigBytes=4*kt,Gt.create({key:Ye,iv:It,salt:un})}},Tt=D.PasswordBasedCipher=st.extend({cfg:st.cfg.extend({kdf:tt}),encrypt:function(Ye,kt,It,un){return It=(un=this.cfg.extend(un)).kdf.execute(It,Ye.keySize,Ye.ivSize),un.iv=It.iv,(Ye=st.encrypt.call(this,Ye,kt,It.key,un)).mixIn(It),Ye},decrypt:function(Ye,kt,It,un){return un=this.cfg.extend(un),kt=this._parse(kt,un.format),It=un.kdf.execute(It,Ye.keySize,Ye.ivSize,kt.salt),un.iv=It.iv,st.decrypt.call(this,Ye,kt,It.key,un)}})}(),function(){for(var _=S,D=_.lib.BlockCipher,ri=_.algo,I=[],j=[],pe=[],_e=[],xe=[],He=[],ht=[],yt=[],Gt=[],$t=[],st=[],tt=0;256>tt;tt++)st[tt]=128>tt?tt<<1:tt<<1^283;var Tt=0,Ye=0;for(tt=0;256>tt;tt++){var kt;I[Tt]=kt=(kt=Ye^Ye<<1^Ye<<2^Ye<<3^Ye<<4)>>>8^255&kt^99,j[kt]=Tt;var It=st[Tt],un=st[It],xn=st[un],In=257*st[kt]^16843008*kt;pe[Tt]=In<<24|In>>>8,_e[Tt]=In<<16|In>>>16,xe[Tt]=In<<8|In>>>24,He[Tt]=In,ht[kt]=(In=16843009*xn^65537*un^257*It^16843008*Tt)<<24|In>>>8,yt[kt]=In<<16|In>>>16,Gt[kt]=In<<8|In>>>24,$t[kt]=In,Tt?(Tt=It^st[st[st[xn^It]]],Ye^=st[st[Ye]]):Tt=Ye=1}var Nn=[0,1,2,4,8,16,32,64,128,27,54];ri=ri.AES=D.extend({_doReset:function(){for(var ui=(Ie=this._key).words,ne=Ie.sigBytes/4,Ie=4*((this._nRounds=ne+6)+1),_t=this._keySchedule=[],Nt=0;Nt<Ie;Nt++)if(Nt<ne)_t[Nt]=ui[Nt];else{var en=_t[Nt-1];Nt%ne?6<ne&&Nt%ne==4&&(en=I[en>>>24]<<24|I[en>>>16&255]<<16|I[en>>>8&255]<<8|I[255&en]):(en=I[(en=en<<8|en>>>24)>>>24]<<24|I[en>>>16&255]<<16|I[en>>>8&255]<<8|I[255&en],en^=Nn[Nt/ne|0]<<24),_t[Nt]=_t[Nt-ne]^en}for(ui=this._invKeySchedule=[],ne=0;ne<Ie;ne++)Nt=Ie-ne,en=ne%4?_t[Nt]:_t[Nt-4],ui[ne]=4>ne||4>=Nt?en:ht[I[en>>>24]]^yt[I[en>>>16&255]]^Gt[I[en>>>8&255]]^$t[I[255&en]]},encryptBlock:function(ui,ne){this._doCryptBlock(ui,ne,this._keySchedule,pe,_e,xe,He,I)},decryptBlock:function(ui,ne){var Ie=ui[ne+1];ui[ne+1]=ui[ne+3],ui[ne+3]=Ie,this._doCryptBlock(ui,ne,this._invKeySchedule,ht,yt,Gt,$t,j),Ie=ui[ne+1],ui[ne+1]=ui[ne+3],ui[ne+3]=Ie},_doCryptBlock:function(ui,ne,Ie,_t,Nt,en,vn,fn){for(var Cn=this._nRounds,Ki=ui[ne]^Ie[0],pr=ui[ne+1]^Ie[1],Ti=ui[ne+2]^Ie[2],rr=ui[ne+3]^Ie[3],Tn=4,Wn=1;Wn<Cn;Wn++){var gi=_t[Ki>>>24]^Nt[pr>>>16&255]^en[Ti>>>8&255]^vn[255&rr]^Ie[Tn++],ln=_t[pr>>>24]^Nt[Ti>>>16&255]^en[rr>>>8&255]^vn[255&Ki]^Ie[Tn++],ki=_t[Ti>>>24]^Nt[rr>>>16&255]^en[Ki>>>8&255]^vn[255&pr]^Ie[Tn++];rr=_t[rr>>>24]^Nt[Ki>>>16&255]^en[pr>>>8&255]^vn[255&Ti]^Ie[Tn++],Ki=gi,pr=ln,Ti=ki}gi=(fn[Ki>>>24]<<24|fn[pr>>>16&255]<<16|fn[Ti>>>8&255]<<8|fn[255&rr])^Ie[Tn++],ln=(fn[pr>>>24]<<24|fn[Ti>>>16&255]<<16|fn[rr>>>8&255]<<8|fn[255&Ki])^Ie[Tn++],ki=(fn[Ti>>>24]<<24|fn[rr>>>16&255]<<16|fn[Ki>>>8&255]<<8|fn[255&pr])^Ie[Tn++],rr=(fn[rr>>>24]<<24|fn[Ki>>>16&255]<<16|fn[pr>>>8&255]<<8|fn[255&Ti])^Ie[Tn++],ui[ne]=gi,ui[ne+1]=ln,ui[ne+2]=ki,ui[ne+3]=rr},keySize:8}),_.AES=D._createHelper(ri)}(),function(){function _(st,tt){var Tt=(this._lBlock>>>st^this._rBlock)&tt;this._rBlock^=Tt,this._lBlock^=Tt<<st}function D(st,tt){var Tt=(this._rBlock>>>st^this._lBlock)&tt;this._lBlock^=Tt,this._rBlock^=Tt<<st}var pe,I=S,j=(pe=I.lib).WordArray,_e=I.algo,xe=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],He=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],ht=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],yt=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],Gt=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],$t=_e.DES=(pe=pe.BlockCipher).extend({_doReset:function(){for(var st=this._key.words,tt=[],Tt=0;56>Tt;Tt++){var Ye=xe[Tt]-1;tt[Tt]=st[Ye>>>5]>>>31-Ye%32&1}for(st=this._subKeys=[],Ye=0;16>Ye;Ye++){var kt=st[Ye]=[],It=ht[Ye];for(Tt=0;24>Tt;Tt++)kt[Tt/6|0]|=tt[(He[Tt]-1+It)%28]<<31-Tt%6,kt[4+(Tt/6|0)]|=tt[28+(He[Tt+24]-1+It)%28]<<31-Tt%6;for(kt[0]=kt[0]<<1|kt[0]>>>31,Tt=1;7>Tt;Tt++)kt[Tt]>>>=4*(Tt-1)+3;kt[7]=kt[7]<<5|kt[7]>>>27}for(tt=this._invSubKeys=[],Tt=0;16>Tt;Tt++)tt[Tt]=st[15-Tt]},encryptBlock:function(st,tt){this._doCryptBlock(st,tt,this._subKeys)},decryptBlock:function(st,tt){this._doCryptBlock(st,tt,this._invSubKeys)},_doCryptBlock:function(st,tt,Tt){this._lBlock=st[tt],this._rBlock=st[tt+1],_.call(this,4,252645135),_.call(this,16,65535),D.call(this,2,858993459),D.call(this,8,16711935),_.call(this,1,1431655765);for(var Ye=0;16>Ye;Ye++){for(var kt=Tt[Ye],It=this._lBlock,un=this._rBlock,xn=0,In=0;8>In;In++)xn|=yt[In][((un^kt[In])&Gt[In])>>>0];this._lBlock=un,this._rBlock=It^xn}Tt=this._lBlock,this._lBlock=this._rBlock,this._rBlock=Tt,_.call(this,1,1431655765),D.call(this,8,16711935),D.call(this,2,858993459),_.call(this,16,65535),_.call(this,4,252645135),st[tt]=this._lBlock,st[tt+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});I.DES=pe._createHelper($t),_e=_e.TripleDES=pe.extend({_doReset:function(){var st=this._key.words;this._des1=$t.createEncryptor(j.create(st.slice(0,2))),this._des2=$t.createEncryptor(j.create(st.slice(2,4))),this._des3=$t.createEncryptor(j.create(st.slice(4,6)))},encryptBlock:function(st,tt){this._des1.encryptBlock(st,tt),this._des2.decryptBlock(st,tt),this._des3.encryptBlock(st,tt)},decryptBlock:function(st,tt){this._des3.decryptBlock(st,tt),this._des2.encryptBlock(st,tt),this._des1.decryptBlock(st,tt)},keySize:6,ivSize:2,blockSize:2}),I.TripleDES=pe._createHelper(_e)}(),D=S.lib.WordArray,S.enc.Base64={stringify:function(I){var j=I.words,pe=I.sigBytes,_e=this._map;I.clamp(),I=[];for(var xe=0;xe<pe;xe+=3)for(var He=(j[xe>>>2]>>>24-xe%4*8&255)<<16|(j[xe+1>>>2]>>>24-(xe+1)%4*8&255)<<8|j[xe+2>>>2]>>>24-(xe+2)%4*8&255,ht=0;4>ht&&xe+.75*ht<pe;ht++)I.push(_e.charAt(He>>>6*(3-ht)&63));if(j=_e.charAt(64))for(;I.length%4;)I.push(j);return I.join("")},parse:function(I){var j=I.length,pe=this._map;(_e=pe.charAt(64))&&-1!=(_e=I.indexOf(_e))&&(j=_e);for(var _e=[],xe=0,He=0;He<j;He++)if(He%4){var ht=pe.indexOf(I.charAt(He-1))<<He%4*2,yt=pe.indexOf(I.charAt(He))>>>6-He%4*2;_e[xe>>>2]|=(ht|yt)<<24-xe%4*8,xe++}return D.create(_e,xe)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},function(_){function D($t,st,tt,Tt,Ye,kt,It){return(($t=$t+(st&tt|~st&Tt)+Ye+It)<<kt|$t>>>32-kt)+st}function I($t,st,tt,Tt,Ye,kt,It){return(($t=$t+(st&Tt|tt&~Tt)+Ye+It)<<kt|$t>>>32-kt)+st}function j($t,st,tt,Tt,Ye,kt,It){return(($t=$t+(st^tt^Tt)+Ye+It)<<kt|$t>>>32-kt)+st}function pe($t,st,tt,Tt,Ye,kt,It){return(($t=$t+(tt^(st|~Tt))+Ye+It)<<kt|$t>>>32-kt)+st}for(var _e=S,xe=(ht=_e.lib).WordArray,He=ht.Hasher,ht=_e.algo,yt=[],Gt=0;64>Gt;Gt++)yt[Gt]=4294967296*_.abs(_.sin(Gt+1))|0;ht=ht.MD5=He.extend({_doReset:function(){this._hash=new xe.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function($t,st){for(var tt=0;16>tt;tt++)$t[Tt=st+tt]=16711935&((Ye=$t[Tt])<<8|Ye>>>24)|4278255360&(Ye<<24|Ye>>>8);var Tt,Ye=$t[st+1],kt=$t[st+2],It=$t[st+3],un=$t[st+4],xn=$t[st+5],In=$t[st+6],Nn=$t[st+7],ri=$t[st+8],ui=$t[st+9],ne=$t[st+10],Ie=$t[st+11],_t=$t[st+12],Nt=$t[st+13],en=$t[st+14],vn=$t[st+15],fn=D(fn=(tt=this._hash.words)[0],Wn=tt[1],Tn=tt[2],Cn=tt[3],Tt=$t[st+0],7,yt[0]),Cn=D(Cn,fn,Wn,Tn,Ye,12,yt[1]),Tn=D(Tn,Cn,fn,Wn,kt,17,yt[2]),Wn=D(Wn,Tn,Cn,fn,It,22,yt[3]);fn=D(fn,Wn,Tn,Cn,un,7,yt[4]),Cn=D(Cn,fn,Wn,Tn,xn,12,yt[5]),Tn=D(Tn,Cn,fn,Wn,In,17,yt[6]),Wn=D(Wn,Tn,Cn,fn,Nn,22,yt[7]),fn=D(fn,Wn,Tn,Cn,ri,7,yt[8]),Cn=D(Cn,fn,Wn,Tn,ui,12,yt[9]),Tn=D(Tn,Cn,fn,Wn,ne,17,yt[10]),Wn=D(Wn,Tn,Cn,fn,Ie,22,yt[11]),fn=D(fn,Wn,Tn,Cn,_t,7,yt[12]),Cn=D(Cn,fn,Wn,Tn,Nt,12,yt[13]),Tn=D(Tn,Cn,fn,Wn,en,17,yt[14]),fn=I(fn,Wn=D(Wn,Tn,Cn,fn,vn,22,yt[15]),Tn,Cn,Ye,5,yt[16]),Cn=I(Cn,fn,Wn,Tn,In,9,yt[17]),Tn=I(Tn,Cn,fn,Wn,Ie,14,yt[18]),Wn=I(Wn,Tn,Cn,fn,Tt,20,yt[19]),fn=I(fn,Wn,Tn,Cn,xn,5,yt[20]),Cn=I(Cn,fn,Wn,Tn,ne,9,yt[21]),Tn=I(Tn,Cn,fn,Wn,vn,14,yt[22]),Wn=I(Wn,Tn,Cn,fn,un,20,yt[23]),fn=I(fn,Wn,Tn,Cn,ui,5,yt[24]),Cn=I(Cn,fn,Wn,Tn,en,9,yt[25]),Tn=I(Tn,Cn,fn,Wn,It,14,yt[26]),Wn=I(Wn,Tn,Cn,fn,ri,20,yt[27]),fn=I(fn,Wn,Tn,Cn,Nt,5,yt[28]),Cn=I(Cn,fn,Wn,Tn,kt,9,yt[29]),Tn=I(Tn,Cn,fn,Wn,Nn,14,yt[30]),fn=j(fn,Wn=I(Wn,Tn,Cn,fn,_t,20,yt[31]),Tn,Cn,xn,4,yt[32]),Cn=j(Cn,fn,Wn,Tn,ri,11,yt[33]),Tn=j(Tn,Cn,fn,Wn,Ie,16,yt[34]),Wn=j(Wn,Tn,Cn,fn,en,23,yt[35]),fn=j(fn,Wn,Tn,Cn,Ye,4,yt[36]),Cn=j(Cn,fn,Wn,Tn,un,11,yt[37]),Tn=j(Tn,Cn,fn,Wn,Nn,16,yt[38]),Wn=j(Wn,Tn,Cn,fn,ne,23,yt[39]),fn=j(fn,Wn,Tn,Cn,Nt,4,yt[40]),Cn=j(Cn,fn,Wn,Tn,Tt,11,yt[41]),Tn=j(Tn,Cn,fn,Wn,It,16,yt[42]),Wn=j(Wn,Tn,Cn,fn,In,23,yt[43]),fn=j(fn,Wn,Tn,Cn,ui,4,yt[44]),Cn=j(Cn,fn,Wn,Tn,_t,11,yt[45]),Tn=j(Tn,Cn,fn,Wn,vn,16,yt[46]),fn=pe(fn,Wn=j(Wn,Tn,Cn,fn,kt,23,yt[47]),Tn,Cn,Tt,6,yt[48]),Cn=pe(Cn,fn,Wn,Tn,Nn,10,yt[49]),Tn=pe(Tn,Cn,fn,Wn,en,15,yt[50]),Wn=pe(Wn,Tn,Cn,fn,xn,21,yt[51]),fn=pe(fn,Wn,Tn,Cn,_t,6,yt[52]),Cn=pe(Cn,fn,Wn,Tn,It,10,yt[53]),Tn=pe(Tn,Cn,fn,Wn,ne,15,yt[54]),Wn=pe(Wn,Tn,Cn,fn,Ye,21,yt[55]),fn=pe(fn,Wn,Tn,Cn,ri,6,yt[56]),Cn=pe(Cn,fn,Wn,Tn,vn,10,yt[57]),Tn=pe(Tn,Cn,fn,Wn,In,15,yt[58]),Wn=pe(Wn,Tn,Cn,fn,Nt,21,yt[59]),fn=pe(fn,Wn,Tn,Cn,un,6,yt[60]),Cn=pe(Cn,fn,Wn,Tn,Ie,10,yt[61]),Tn=pe(Tn,Cn,fn,Wn,kt,15,yt[62]),Wn=pe(Wn,Tn,Cn,fn,ui,21,yt[63]),tt[0]=tt[0]+fn|0,tt[1]=tt[1]+Wn|0,tt[2]=tt[2]+Tn|0,tt[3]=tt[3]+Cn|0},_doFinalize:function(){var $t=this._data,st=$t.words,tt=8*this._nDataBytes,Tt=8*$t.sigBytes;st[Tt>>>5]|=128<<24-Tt%32;var Ye=_.floor(tt/4294967296);for(st[15+(Tt+64>>>9<<4)]=16711935&(Ye<<8|Ye>>>24)|4278255360&(Ye<<24|Ye>>>8),st[14+(Tt+64>>>9<<4)]=16711935&(tt<<8|tt>>>24)|4278255360&(tt<<24|tt>>>8),$t.sigBytes=4*(st.length+1),this._process(),st=($t=this._hash).words,tt=0;4>tt;tt++)st[tt]=16711935&((Tt=st[tt])<<8|Tt>>>24)|4278255360&(Tt<<24|Tt>>>8);return $t},clone:function(){var $t=He.clone.call(this);return $t._hash=this._hash.clone(),$t}}),_e.MD5=He._createHelper(ht),_e.HmacMD5=He._createHmacHelper(ht)}(Math),function(){var _=S,D=(pe=_.lib).WordArray,I=pe.Hasher,j=[],pe=_.algo.SHA1=I.extend({_doReset:function(){this._hash=new D.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(_e,xe){for(var He=this._hash.words,ht=He[0],yt=He[1],Gt=He[2],$t=He[3],st=He[4],tt=0;80>tt;tt++){if(16>tt)j[tt]=0|_e[xe+tt];else{var Tt=j[tt-3]^j[tt-8]^j[tt-14]^j[tt-16];j[tt]=Tt<<1|Tt>>>31}Tt=(ht<<5|ht>>>27)+st+j[tt],Tt=20>tt?Tt+(1518500249+(yt&Gt|~yt&$t)):40>tt?Tt+(1859775393+(yt^Gt^$t)):60>tt?Tt+((yt&Gt|yt&$t|Gt&$t)-1894007588):Tt+((yt^Gt^$t)-899497514),st=$t,$t=Gt,Gt=yt<<30|yt>>>2,yt=ht,ht=Tt}He[0]=He[0]+ht|0,He[1]=He[1]+yt|0,He[2]=He[2]+Gt|0,He[3]=He[3]+$t|0,He[4]=He[4]+st|0},_doFinalize:function(){var _e=this._data,xe=_e.words,He=8*this._nDataBytes,ht=8*_e.sigBytes;return xe[ht>>>5]|=128<<24-ht%32,xe[14+(ht+64>>>9<<4)]=Math.floor(He/4294967296),xe[15+(ht+64>>>9<<4)]=He,_e.sigBytes=4*xe.length,this._process(),this._hash},clone:function(){var _e=I.clone.call(this);return _e._hash=this._hash.clone(),_e}});_.SHA1=I._createHelper(pe),_.HmacSHA1=I._createHmacHelper(pe)}(),function(_){for(var D=S,I=(tt=D.lib).WordArray,j=tt.Hasher,tt=D.algo,pe=[],_e=[],xe=function(Ye){return 4294967296*(Ye-(0|Ye))|0},He=2,ht=0;64>ht;){var yt;e:{for(var Gt=_.sqrt(yt=He),$t=2;$t<=Gt;$t++)if(!(yt%$t)){yt=!1;break e}yt=!0}yt&&(8>ht&&(pe[ht]=xe(_.pow(He,.5))),_e[ht]=xe(_.pow(He,1/3)),ht++),He++}var st=[];tt=tt.SHA256=j.extend({_doReset:function(){this._hash=new I.init(pe.slice(0))},_doProcessBlock:function(Tt,Ye){for(var kt=this._hash.words,It=kt[0],un=kt[1],xn=kt[2],In=kt[3],Nn=kt[4],ri=kt[5],ui=kt[6],ne=kt[7],Ie=0;64>Ie;Ie++){if(16>Ie)st[Ie]=0|Tt[Ye+Ie];else{var _t=st[Ie-15],Nt=st[Ie-2];st[Ie]=((_t<<25|_t>>>7)^(_t<<14|_t>>>18)^_t>>>3)+st[Ie-7]+((Nt<<15|Nt>>>17)^(Nt<<13|Nt>>>19)^Nt>>>10)+st[Ie-16]}_t=ne+((Nn<<26|Nn>>>6)^(Nn<<21|Nn>>>11)^(Nn<<7|Nn>>>25))+(Nn&ri^~Nn&ui)+_e[Ie]+st[Ie],Nt=((It<<30|It>>>2)^(It<<19|It>>>13)^(It<<10|It>>>22))+(It&un^It&xn^un&xn),ne=ui,ui=ri,ri=Nn,Nn=In+_t|0,In=xn,xn=un,un=It,It=_t+Nt|0}kt[0]=kt[0]+It|0,kt[1]=kt[1]+un|0,kt[2]=kt[2]+xn|0,kt[3]=kt[3]+In|0,kt[4]=kt[4]+Nn|0,kt[5]=kt[5]+ri|0,kt[6]=kt[6]+ui|0,kt[7]=kt[7]+ne|0},_doFinalize:function(){var Tt=this._data,Ye=Tt.words,kt=8*this._nDataBytes,It=8*Tt.sigBytes;return Ye[It>>>5]|=128<<24-It%32,Ye[14+(It+64>>>9<<4)]=_.floor(kt/4294967296),Ye[15+(It+64>>>9<<4)]=kt,Tt.sigBytes=4*Ye.length,this._process(),this._hash},clone:function(){var Tt=j.clone.call(this);return Tt._hash=this._hash.clone(),Tt}}),D.SHA256=j._createHelper(tt),D.HmacSHA256=j._createHmacHelper(tt)}(Math),function(){var _=S,D=_.lib.WordArray,I=(j=_.algo).SHA256,j=j.SHA224=I.extend({_doReset:function(){this._hash=new D.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var pe=I._doFinalize.call(this);return pe.sigBytes-=4,pe}});_.SHA224=I._createHelper(j),_.HmacSHA224=I._createHmacHelper(j)}(),function(){function _(){return j.create.apply(j,arguments)}for(var D=S,I=D.lib.Hasher,j=(_e=D.x64).Word,pe=_e.WordArray,_e=D.algo,xe=[_(1116352408,3609767458),_(1899447441,602891725),_(3049323471,3964484399),_(3921009573,2173295548),_(961987163,4081628472),_(1508970993,3053834265),_(2453635748,2937671579),_(2870763221,3664609560),_(3624381080,2734883394),_(310598401,1164996542),_(607225278,1323610764),_(1426881987,3590304994),_(1925078388,4068182383),_(2162078206,991336113),_(2614888103,633803317),_(3248222580,3479774868),_(3835390401,2666613458),_(4022224774,944711139),_(264347078,2341262773),_(604807628,2007800933),_(770255983,1495990901),_(1249150122,1856431235),_(1555081692,3175218132),_(1996064986,2198950837),_(2554220882,3999719339),_(2821834349,766784016),_(2952996808,2566594879),_(3210313671,3203337956),_(3336571891,1034457026),_(3584528711,2466948901),_(113926993,3758326383),_(338241895,168717936),_(666307205,1188179964),_(773529912,1546045734),_(1294757372,1522805485),_(1396182291,2643833823),_(1695183700,2343527390),_(1986661051,1014477480),_(2177026350,1206759142),_(2456956037,344077627),_(2730485921,1290863460),_(2820302411,3158454273),_(3259730800,3505952657),_(3345764771,106217008),_(3516065817,3606008344),_(3600352804,1432725776),_(4094571909,1467031594),_(275423344,851169720),_(430227734,3100823752),_(506948616,1363258195),_(659060556,3750685593),_(883997877,3785050280),_(958139571,3318307427),_(1322822218,3812723403),_(1537002063,2003034995),_(1747873779,3602036899),_(1955562222,1575990012),_(2024104815,1125592928),_(2227730452,2716904306),_(2361852424,442776044),_(2428436474,593698344),_(2756734187,3733110249),_(3204031479,2999351573),_(3329325298,3815920427),_(3391569614,3928383900),_(3515267271,566280711),_(3940187606,3454069534),_(4118630271,4000239992),_(116418474,1914138554),_(174292421,2731055270),_(289380356,3203993006),_(460393269,320620315),_(685471733,587496836),_(852142971,1086792851),_(1017036298,365543100),_(1126000580,2618297676),_(1288033470,3409855158),_(1501505948,4234509866),_(1607167915,987167468),_(1816402316,1246189591)],He=[],ht=0;80>ht;ht++)He[ht]=_();_e=_e.SHA512=I.extend({_doReset:function(){this._hash=new pe.init([new j.init(1779033703,4089235720),new j.init(3144134277,2227873595),new j.init(1013904242,4271175723),new j.init(2773480762,1595750129),new j.init(1359893119,2917565137),new j.init(2600822924,725511199),new j.init(528734635,4215389547),new j.init(1541459225,327033209)])},_doProcessBlock:function(yt,Gt){for(var un,$t=(un=this._hash.words)[0],st=un[1],tt=un[2],Tt=un[3],Ye=un[4],kt=un[5],It=un[6],xn=$t.high,In=$t.low,Nn=st.high,ri=st.low,ui=tt.high,ne=tt.low,Ie=Tt.high,_t=Tt.low,Nt=Ye.high,en=Ye.low,vn=kt.high,fn=kt.low,Cn=It.high,Tn=It.low,Wn=(un=un[7]).high,gi=un.low,ln=xn,ki=In,rr=Nn,Ki=ri,pr=ui,Ti=ne,Qi=Ie,Gr=_t,vr=Nt,Fi=en,kr=vn,cr=fn,Kr=Cn,Wr=Tn,Qr=Wn,Rs=gi,Hr=0;80>Hr;Hr++){var Xn=He[Hr];if(16>Hr)var as=Xn.high=0|yt[Gt+2*Hr],pn=Xn.low=0|yt[Gt+2*Hr+1];else{as=((pn=(as=He[Hr-15]).high)>>>1|(Ui=as.low)<<31)^(pn>>>8|Ui<<24)^pn>>>7;var Ui=(Ui>>>1|pn<<31)^(Ui>>>8|pn<<24)^(Ui>>>7|pn<<25),Te=((pn=(Te=He[Hr-2]).high)>>>19|(at=Te.low)<<13)^(pn<<3|at>>>29)^pn>>>6,at=(at>>>19|pn<<13)^(at<<3|pn>>>29)^(at>>>6|pn<<26);Xn.high=as=(as=(as=as+(Wo=(pn=He[Hr-7]).high)+((pn=Ui+pn.low)>>>0<Ui>>>0?1:0))+Te+((pn+=at)>>>0<at>>>0?1:0))+(jt=(_i=He[Hr-16]).high)+((pn+=_i=_i.low)>>>0<_i>>>0?1:0),Xn.low=pn}var Wo=vr&kr^~vr&Kr,_i=Fi&cr^~Fi&Wr,Er=(Xn=ln&rr^ln&pr^rr&pr,ki&Ki^ki&Ti^Ki&Ti),ft=(at=xe[Hr]).high,Be=at.low,jt=Qr+((vr>>>14|Fi<<18)^(vr>>>18|Fi<<14)^(vr<<23|Fi>>>9))+((at=Rs+((Fi>>>14|vr<<18)^(Fi>>>18|vr<<14)^(Fi<<23|vr>>>9)))>>>0<Rs>>>0?1:0);Qr=Kr,Rs=Wr,Kr=kr,Wr=cr,kr=vr,cr=Fi,vr=Qi+(jt=(jt=(jt=jt+Wo+((at+=_i)>>>0<_i>>>0?1:0))+ft+((at+=Be)>>>0<Be>>>0?1:0))+as+((at+=pn)>>>0<pn>>>0?1:0))+((Fi=Gr+at|0)>>>0<Gr>>>0?1:0)|0,Qi=pr,Gr=Ti,pr=rr,Ti=Ki,rr=ln,Ki=ki,ln=jt+(Xn=(Ui=(ln>>>28|ki<<4)^(ln<<30|ki>>>2)^(ln<<25|ki>>>7))+Xn+((pn=(Te=(ki>>>28|ln<<4)^(ki<<30|ln>>>2)^(ki<<25|ln>>>7))+Er)>>>0<Te>>>0?1:0))+((ki=at+pn|0)>>>0<at>>>0?1:0)|0}In=$t.low=In+ki,$t.high=xn+ln+(In>>>0<ki>>>0?1:0),ri=st.low=ri+Ki,st.high=Nn+rr+(ri>>>0<Ki>>>0?1:0),ne=tt.low=ne+Ti,tt.high=ui+pr+(ne>>>0<Ti>>>0?1:0),_t=Tt.low=_t+Gr,Tt.high=Ie+Qi+(_t>>>0<Gr>>>0?1:0),en=Ye.low=en+Fi,Ye.high=Nt+vr+(en>>>0<Fi>>>0?1:0),fn=kt.low=fn+cr,kt.high=vn+kr+(fn>>>0<cr>>>0?1:0),Tn=It.low=Tn+Wr,It.high=Cn+Kr+(Tn>>>0<Wr>>>0?1:0),gi=un.low=gi+Rs,un.high=Wn+Qr+(gi>>>0<Rs>>>0?1:0)},_doFinalize:function(){var yt=this._data,Gt=yt.words,$t=8*this._nDataBytes,st=8*yt.sigBytes;return Gt[st>>>5]|=128<<24-st%32,Gt[30+(st+128>>>10<<5)]=Math.floor($t/4294967296),Gt[31+(st+128>>>10<<5)]=$t,yt.sigBytes=4*Gt.length,this._process(),this._hash.toX32()},clone:function(){var yt=I.clone.call(this);return yt._hash=this._hash.clone(),yt},blockSize:32}),D.SHA512=I._createHelper(_e),D.HmacSHA512=I._createHmacHelper(_e)}(),function(){var _=S,D=(pe=_.x64).Word,I=pe.WordArray,j=(pe=_.algo).SHA512,pe=pe.SHA384=j.extend({_doReset:function(){this._hash=new I.init([new D.init(3418070365,3238371032),new D.init(1654270250,914150663),new D.init(2438529370,812702999),new D.init(355462360,4144912697),new D.init(1731405415,4290775857),new D.init(2394180231,1750603025),new D.init(3675008525,1694076839),new D.init(1203062813,3204075428)])},_doFinalize:function(){var _e=j._doFinalize.call(this);return _e.sigBytes-=16,_e}});_.SHA384=j._createHelper(pe),_.HmacSHA384=j._createHmacHelper(pe)}(),function(){var _=S,D=(yt=_.lib).WordArray,I=yt.Hasher,yt=_.algo,j=D.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),pe=D.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),_e=D.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),xe=D.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),He=D.create([0,1518500249,1859775393,2400959708,2840853838]),ht=D.create([1352829926,1548603684,1836072691,2053994217,0]);yt=yt.RIPEMD160=I.extend({_doReset:function(){this._hash=D.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(Gt,$t){for(var st=0;16>st;st++)Gt[tt=$t+st]=16711935&((Tt=Gt[tt])<<8|Tt>>>24)|4278255360&(Tt<<24|Tt>>>8);var tt,In,Nn,ri,ui,ne,Ie,_t,Nt,en,vn,fn,Tt=He.words,Ye=ht.words,kt=j.words,It=pe.words,un=_e.words,xn=xe.words;for(Ie=In=(tt=this._hash.words)[0],_t=Nn=tt[1],Nt=ri=tt[2],en=ui=tt[3],vn=ne=tt[4],st=0;80>st;st+=1)fn=In+Gt[$t+kt[st]]|0,fn=16>st?fn+((Nn^ri^ui)+Tt[0]):32>st?fn+((Nn&ri|~Nn&ui)+Tt[1]):48>st?fn+(((Nn|~ri)^ui)+Tt[2]):64>st?fn+((Nn&ui|ri&~ui)+Tt[3]):fn+((Nn^(ri|~ui))+Tt[4]),fn=(fn=(fn|=0)<<un[st]|fn>>>32-un[st])+ne|0,In=ne,ne=ui,ui=ri<<10|ri>>>22,ri=Nn,Nn=fn,fn=Ie+Gt[$t+It[st]]|0,fn=16>st?fn+((_t^(Nt|~en))+Ye[0]):32>st?fn+((_t&en|Nt&~en)+Ye[1]):48>st?fn+(((_t|~Nt)^en)+Ye[2]):64>st?fn+((_t&Nt|~_t&en)+Ye[3]):fn+((_t^Nt^en)+Ye[4]),fn=(fn=(fn|=0)<<xn[st]|fn>>>32-xn[st])+vn|0,Ie=vn,vn=en,en=Nt<<10|Nt>>>22,Nt=_t,_t=fn;fn=tt[1]+ri+en|0,tt[1]=tt[2]+ui+vn|0,tt[2]=tt[3]+ne+Ie|0,tt[3]=tt[4]+In+_t|0,tt[4]=tt[0]+Nn+Nt|0,tt[0]=fn},_doFinalize:function(){var Gt=this._data,$t=Gt.words,st=8*this._nDataBytes,tt=8*Gt.sigBytes;for($t[tt>>>5]|=128<<24-tt%32,$t[14+(tt+64>>>9<<4)]=16711935&(st<<8|st>>>24)|4278255360&(st<<24|st>>>8),Gt.sigBytes=4*($t.length+1),this._process(),$t=(Gt=this._hash).words,st=0;5>st;st++)$t[st]=16711935&((tt=$t[st])<<8|tt>>>24)|4278255360&(tt<<24|tt>>>8);return Gt},clone:function(){var Gt=I.clone.call(this);return Gt._hash=this._hash.clone(),Gt}}),_.RIPEMD160=I._createHelper(yt),_.HmacRIPEMD160=I._createHmacHelper(yt)}(Math),function(){var D=S.enc.Utf8;S.algo.HMAC=S.lib.Base.extend({init:function(I,j){I=this._hasher=new I.init,"string"==typeof j&&(j=D.parse(j));var pe=I.blockSize,_e=4*pe;j.sigBytes>_e&&(j=I.finalize(j)),j.clamp();for(var xe=this._oKey=j.clone(),He=this._iKey=j.clone(),ht=xe.words,yt=He.words,Gt=0;Gt<pe;Gt++)ht[Gt]^=1549556828,yt[Gt]^=909522486;xe.sigBytes=He.sigBytes=_e,this.reset()},reset:function(){var I=this._hasher;I.reset(),I.update(this._iKey)},update:function(I){return this._hasher.update(I),this},finalize:function(I){var j=this._hasher;return I=j.finalize(I),j.reset(),j.finalize(this._oKey.clone().concat(I))}})}(),function(){var j,_=S,D=(j=_.lib).Base,I=j.WordArray,pe=(j=_.algo).HMAC,_e=j.PBKDF2=D.extend({cfg:D.extend({keySize:4,hasher:j.SHA1,iterations:1}),init:function(xe){this.cfg=this.cfg.extend(xe)},compute:function(xe,He){for(var ht=pe.create((Tt=this.cfg).hasher,xe),yt=I.create(),Gt=I.create([1]),$t=yt.words,st=Gt.words,tt=Tt.keySize,Tt=Tt.iterations;$t.length<tt;){var Ye=ht.update(He).finalize(Gt);ht.reset();for(var kt=Ye.words,It=kt.length,un=Ye,xn=1;xn<Tt;xn++){un=ht.finalize(un),ht.reset();for(var In=un.words,Nn=0;Nn<It;Nn++)kt[Nn]^=In[Nn]}yt.concat(Ye),st[0]++}return yt.sigBytes=4*tt,yt}});_.PBKDF2=function(xe,He,ht){return _e.create(ht).compute(xe,He)}}();var m,M="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",P="=";function x(_){var D,I,j="";for(D=0;D+3<=_.length;D+=3)I=parseInt(_.substring(D,D+3),16),j+=M.charAt(I>>6)+M.charAt(63&I);if(D+1==_.length?(I=parseInt(_.substring(D,D+1),16),j+=M.charAt(I<<2)):D+2==_.length&&(I=parseInt(_.substring(D,D+2),16),j+=M.charAt(I>>2)+M.charAt((3&I)<<4)),P)for(;(3&j.length)>0;)j+=P;return j}function A(_){var I,pe,_e,D="",j=0;for(I=0;I<_.length&&_.charAt(I)!=P;++I)!((_e=M.indexOf(_.charAt(I)))<0)&&(0==j?(D+=k(_e>>2),pe=3&_e,j=1):1==j?(D+=k(pe<<2|_e>>4),pe=15&_e,j=2):2==j?(D+=k(pe),D+=k(_e>>2),pe=3&_e,j=3):(D+=k(pe<<2|_e>>4),D+=k(15&_e),j=0));return 1==j&&(D+=k(pe<<2)),D}function u(_,D,I){null!=_&&("number"==typeof _?this.fromNumber(_,D,I):this.fromString(_,null==D&&"string"!=typeof _?256:D))}function v(){return new u(null)}"Microsoft Internet Explorer"==i.appName?(u.prototype.am=function T(_,D,I,j,pe,_e){for(var xe=32767&D,He=D>>15;--_e>=0;){var ht=32767&this[_],yt=this[_++]>>15,Gt=He*ht+yt*xe;pe=((ht=xe*ht+((32767&Gt)<<15)+I[j]+(1073741823&pe))>>>30)+(Gt>>>15)+He*yt+(pe>>>30),I[j++]=1073741823&ht}return pe},m=30):"Netscape"!=i.appName?(u.prototype.am=function E(_,D,I,j,pe,_e){for(;--_e>=0;){var xe=D*this[_++]+I[j]+pe;pe=Math.floor(xe/67108864),I[j++]=67108863&xe}return pe},m=26):(u.prototype.am=function R(_,D,I,j,pe,_e){for(var xe=16383&D,He=D>>14;--_e>=0;){var ht=16383&this[_],yt=this[_++]>>14,Gt=He*ht+yt*xe;pe=((ht=xe*ht+((16383&Gt)<<14)+I[j]+pe)>>28)+(Gt>>14)+He*yt,I[j++]=268435455&ht}return pe},m=28),u.prototype.DB=m,u.prototype.DM=(1<<m)-1,u.prototype.DV=1<<m,u.prototype.FV=Math.pow(2,52),u.prototype.F1=52-m,u.prototype.F2=2*m-52;var ae,G,U="0123456789abcdefghijklmnopqrstuvwxyz",Y=new Array;for(ae=48,G=0;G<=9;++G)Y[ae++]=G;for(ae=97,G=10;G<36;++G)Y[ae++]=G;for(ae=65,G=10;G<36;++G)Y[ae++]=G;function k(_){return U.charAt(_)}function X(_,D){return Y[_.charCodeAt(D)]??-1}function ce(_){var D=v();return D.fromInt(_),D}function Ge(_){var I,D=1;return 0!=(I=_>>>16)&&(_=I,D+=16),0!=(I=_>>8)&&(_=I,D+=8),0!=(I=_>>4)&&(_=I,D+=4),0!=(I=_>>2)&&(_=I,D+=2),0!=(I=_>>1)&&(_=I,D+=1),D}function ve(_){this.m=_}function me(_){this.m=_,this.mp=_.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<_.DB-15)-1,this.mt2=2*_.t}function bn(_,D){return _&D}function Bt(_,D){return _|D}function V(_,D){return _^D}function ge(_,D){return _&~D}function En(_){if(0==_)return-1;var D=0;return 65535&_||(_>>=16,D+=16),255&_||(_>>=8,D+=8),15&_||(_>>=4,D+=4),3&_||(_>>=2,D+=2),1&_||++D,D}function Ai(_){for(var D=0;0!=_;)_&=_-1,++D;return D}function ai(){}function Li(_){return _}function yi(_){this.r2=v(),this.q3=v(),u.ONE.dlShiftTo(2*_.t,this.r2),this.mu=this.r2.divide(_),this.m=_}ve.prototype.convert=function ue(_){return _.s<0||_.compareTo(this.m)>=0?_.mod(this.m):_},ve.prototype.revert=function et(_){return _},ve.prototype.reduce=function se(_){_.divRemTo(this.m,null,_)},ve.prototype.mulTo=function Ce(_,D,I){_.multiplyTo(D,I),this.reduce(I)},ve.prototype.sqrTo=function be(_,D){_.squareTo(D),this.reduce(D)},me.prototype.convert=function le(_){var D=v();return _.abs().dlShiftTo(this.m.t,D),D.divRemTo(this.m,null,D),_.s<0&&D.compareTo(u.ZERO)>0&&this.m.subTo(D,D),D},me.prototype.revert=function Xe(_){var D=v();return _.copyTo(D),this.reduce(D),D},me.prototype.reduce=function Se(_){for(;_.t<=this.mt2;)_[_.t++]=0;for(var D=0;D<this.m.t;++D){var I=32767&_[D],j=I*this.mpl+((I*this.mph+(_[D]>>15)*this.mpl&this.um)<<15)&_.DM;for(_[I=D+this.m.t]+=this.m.am(0,j,_,D,0,this.m.t);_[I]>=_.DV;)_[I]-=_.DV,_[++I]++}_.clamp(),_.drShiftTo(this.m.t,_),_.compareTo(this.m)>=0&&_.subTo(this.m,_)},me.prototype.mulTo=function Ne(_,D,I){_.multiplyTo(D,I),this.reduce(I)},me.prototype.sqrTo=function fe(_,D){_.squareTo(D),this.reduce(D)},u.prototype.copyTo=function q(_){for(var D=this.t-1;D>=0;--D)_[D]=this[D];_.t=this.t,_.s=this.s},u.prototype.fromInt=function Q(_){this.t=1,this.s=_<0?-1:0,_>0?this[0]=_:_<-1?this[0]=_+this.DV:this.t=0},u.prototype.fromString=function te(_,D){var I;if(16==D)I=4;else if(8==D)I=3;else if(256==D)I=8;else if(2==D)I=1;else if(32==D)I=5;else{if(4!=D)return void this.fromRadix(_,D);I=2}this.t=0,this.s=0;for(var j=_.length,pe=!1,_e=0;--j>=0;){var xe=8==I?255&_[j]:X(_,j);xe<0?"-"==_.charAt(j)&&(pe=!0):(pe=!1,0==_e?this[this.t++]=xe:_e+I>this.DB?(this[this.t-1]|=(xe&(1<<this.DB-_e)-1)<<_e,this[this.t++]=xe>>this.DB-_e):this[this.t-1]|=xe<<_e,(_e+=I)>=this.DB&&(_e-=this.DB))}8==I&&128&_[0]&&(this.s=-1,_e>0&&(this[this.t-1]|=(1<<this.DB-_e)-1<<_e)),this.clamp(),pe&&u.ZERO.subTo(this,this)},u.prototype.clamp=function Ee(){for(var _=this.s&this.DM;this.t>0&&this[this.t-1]==_;)--this.t},u.prototype.dlShiftTo=function Je(_,D){var I;for(I=this.t-1;I>=0;--I)D[I+_]=this[I];for(I=_-1;I>=0;--I)D[I]=0;D.t=this.t+_,D.s=this.s},u.prototype.drShiftTo=function ze(_,D){for(var I=_;I<this.t;++I)D[I-_]=this[I];D.t=Math.max(this.t-_,0),D.s=this.s},u.prototype.lShiftTo=function Ke(_,D){var He,I=_%this.DB,j=this.DB-I,pe=(1<<j)-1,_e=Math.floor(_/this.DB),xe=this.s<<I&this.DM;for(He=this.t-1;He>=0;--He)D[He+_e+1]=this[He]>>j|xe,xe=(this[He]&pe)<<I;for(He=_e-1;He>=0;--He)D[He]=0;D[_e]=xe,D.t=this.t+_e+1,D.s=this.s,D.clamp()},u.prototype.rShiftTo=function Ve(_,D){D.s=this.s;var I=Math.floor(_/this.DB);if(I>=this.t)D.t=0;else{var j=_%this.DB,pe=this.DB-j,_e=(1<<j)-1;D[0]=this[I]>>j;for(var xe=I+1;xe<this.t;++xe)D[xe-I-1]|=(this[xe]&_e)<<pe,D[xe-I]=this[xe]>>j;j>0&&(D[this.t-I-1]|=(this.s&_e)<<pe),D.t=this.t-I,D.clamp()}},u.prototype.subTo=function $e(_,D){for(var I=0,j=0,pe=Math.min(_.t,this.t);I<pe;)j+=this[I]-_[I],D[I++]=j&this.DM,j>>=this.DB;if(_.t<this.t){for(j-=_.s;I<this.t;)j+=this[I],D[I++]=j&this.DM,j>>=this.DB;j+=this.s}else{for(j+=this.s;I<_.t;)j-=_[I],D[I++]=j&this.DM,j>>=this.DB;j-=_.s}D.s=j<0?-1:0,j<-1?D[I++]=this.DV+j:j>0&&(D[I++]=j),D.t=I,D.clamp()},u.prototype.multiplyTo=function dt(_,D){var I=this.abs(),j=_.abs(),pe=I.t;for(D.t=pe+j.t;--pe>=0;)D[pe]=0;for(pe=0;pe<j.t;++pe)D[pe+I.t]=I.am(0,j[pe],D,pe,0,I.t);D.s=0,D.clamp(),this.s!=_.s&&u.ZERO.subTo(D,D)},u.prototype.squareTo=function Pe(_){for(var D=this.abs(),I=_.t=2*D.t;--I>=0;)_[I]=0;for(I=0;I<D.t-1;++I){var j=D.am(I,D[I],_,2*I,0,1);(_[I+D.t]+=D.am(I+1,2*D[I],_,2*I+1,j,D.t-I-1))>=D.DV&&(_[I+D.t]-=D.DV,_[I+D.t+1]=1)}_.t>0&&(_[_.t-1]+=D.am(I,D[I],_,2*I,0,1)),_.s=0,_.clamp()},u.prototype.divRemTo=function J(_,D,I){var j=_.abs();if(!(j.t<=0)){var pe=this.abs();if(pe.t<j.t)return D?.fromInt(0),void(null!=I&&this.copyTo(I));null==I&&(I=v());var _e=v(),xe=this.s,He=_.s,ht=this.DB-Ge(j[j.t-1]);ht>0?(j.lShiftTo(ht,_e),pe.lShiftTo(ht,I)):(j.copyTo(_e),pe.copyTo(I));var yt=_e.t,Gt=_e[yt-1];if(0!=Gt){var $t=Gt*(1<<this.F1)+(yt>1?_e[yt-2]>>this.F2:0),st=this.FV/$t,tt=(1<<this.F1)/$t,Tt=1<<this.F2,Ye=I.t,kt=Ye-yt,It=D??v();for(_e.dlShiftTo(kt,It),I.compareTo(It)>=0&&(I[I.t++]=1,I.subTo(It,I)),u.ONE.dlShiftTo(yt,It),It.subTo(_e,_e);_e.t<yt;)_e[_e.t++]=0;for(;--kt>=0;){var un=I[--Ye]==Gt?this.DM:Math.floor(I[Ye]*st+(I[Ye-1]+Tt)*tt);if((I[Ye]+=_e.am(0,un,I,kt,0,yt))<un)for(_e.dlShiftTo(kt,It),I.subTo(It,I);I[Ye]<--un;)I.subTo(It,I)}null!=D&&(I.drShiftTo(yt,D),xe!=He&&u.ZERO.subTo(D,D)),I.t=yt,I.clamp(),ht>0&&I.rShiftTo(ht,I),xe<0&&u.ZERO.subTo(I,I)}}},u.prototype.invDigit=function rt(){if(this.t<1)return 0;var _=this[0];if(!(1&_))return 0;var D=3&_;return(D=(D=(D=(D=D*(2-(15&_)*D)&15)*(2-(255&_)*D)&255)*(2-((65535&_)*D&65535))&65535)*(2-_*D%this.DV)%this.DV)>0?this.DV-D:-D},u.prototype.isEven=function ye(){return 0==(this.t>0?1&this[0]:this.s)},u.prototype.exp=function Ot(_,D){if(_>4294967295||_<1)return u.ONE;var I=v(),j=v(),pe=D.convert(this),_e=Ge(_)-1;for(pe.copyTo(I);--_e>=0;)if(D.sqrTo(I,j),(_&1<<_e)>0)D.mulTo(j,pe,I);else{var xe=I;I=j,j=xe}return D.revert(I)},u.prototype.toString=function it(_){if(this.s<0)return"-"+this.negate().toString(_);var D;if(16==_)D=4;else if(8==_)D=3;else if(2==_)D=1;else if(32==_)D=5;else{if(4!=_)return this.toRadix(_);D=2}var j,I=(1<<D)-1,pe=!1,_e="",xe=this.t,He=this.DB-xe*this.DB%D;if(xe-- >0)for(He<this.DB&&(j=this[xe]>>He)>0&&(pe=!0,_e=k(j));xe>=0;)He<D?(j=(this[xe]&(1<<He)-1)<<D-He,j|=this[--xe]>>(He+=this.DB-D)):(j=this[xe]>>(He-=D)&I,He<=0&&(He+=this.DB,--xe)),j>0&&(pe=!0),pe&&(_e+=k(j));return pe?_e:"0"},u.prototype.negate=function Fe(){var _=v();return u.ZERO.subTo(this,_),_},u.prototype.abs=function Qe(){return this.s<0?this.negate():this},u.prototype.compareTo=function ct(_){var D=this.s-_.s;if(0!=D)return D;var I=this.t;if(0!=(D=I-_.t))return this.s<0?-D:D;for(;--I>=0;)if(0!=(D=this[I]-_[I]))return D;return 0},u.prototype.bitLength=function nt(){return this.t<=0?0:this.DB*(this.t-1)+Ge(this[this.t-1]^this.s&this.DM)},u.prototype.mod=function vt(_){var D=v();return this.abs().divRemTo(_,null,D),this.s<0&&D.compareTo(u.ZERO)>0&&_.subTo(D,D),D},u.prototype.modPowInt=function sn(_,D){var I;return I=_<256||D.isEven()?new ve(D):new me(D),this.exp(_,I)},u.ZERO=ce(0),u.ONE=ce(1),ai.prototype.convert=Li,ai.prototype.revert=Li,ai.prototype.mulTo=function Lr(_,D,I){_.multiplyTo(D,I)},ai.prototype.sqrTo=function Mn(_,D){_.squareTo(D)},yi.prototype.convert=function tr(_){if(_.s<0||_.t>2*this.m.t)return _.mod(this.m);if(_.compareTo(this.m)<0)return _;var D=v();return _.copyTo(D),this.reduce(D),D},yi.prototype.revert=function qi(_){return _},yi.prototype.reduce=function Br(_){for(_.drShiftTo(this.m.t-1,this.r2),_.t>this.m.t+1&&(_.t=this.m.t+1,_.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);_.compareTo(this.r2)<0;)_.dAddOffset(1,this.m.t+1);for(_.subTo(this.r2,_);_.compareTo(this.m)>=0;)_.subTo(this.m,_)},yi.prototype.mulTo=function ds(_,D,I){_.multiplyTo(D,I),this.reduce(I)},yi.prototype.sqrTo=function Sr(_,D){_.squareTo(D),this.reduce(D)};var di=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],Oi=(1<<26)/di[di.length-1];function qr(){this.i=0,this.j=0,this.S=new Array}u.prototype.chunkSize=function Qt(_){return Math.floor(Math.LN2*this.DB/Math.log(_))},u.prototype.toRadix=function Zt(_){if(null==_&&(_=10),0==this.signum()||_<2||_>36)return"0";var D=this.chunkSize(_),I=Math.pow(_,D),j=ce(I),pe=v(),_e=v(),xe="";for(this.divRemTo(j,pe,_e);pe.signum()>0;)xe=(I+_e.intValue()).toString(_).substr(1)+xe,pe.divRemTo(j,pe,_e);return _e.intValue().toString(_)+xe},u.prototype.fromRadix=function nn(_,D){this.fromInt(0),null==D&&(D=10);for(var I=this.chunkSize(D),j=Math.pow(D,I),pe=!1,_e=0,xe=0,He=0;He<_.length;++He){var ht=X(_,He);ht<0?"-"==_.charAt(He)&&0==this.signum()&&(pe=!0):(xe=D*xe+ht,++_e>=I&&(this.dMultiply(j),this.dAddOffset(xe,0),_e=0,xe=0))}_e>0&&(this.dMultiply(Math.pow(D,_e)),this.dAddOffset(xe,0)),pe&&u.ZERO.subTo(this,this)},u.prototype.fromNumber=function Xt(_,D,I){if("number"==typeof D)if(_<2)this.fromInt(1);else for(this.fromNumber(_,I),this.testBit(_-1)||this.bitwiseTo(u.ONE.shiftLeft(_-1),Bt,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(D);)this.dAddOffset(2,0),this.bitLength()>_&&this.subTo(u.ONE.shiftLeft(_-1),this);else{var j=new Array,pe=7&_;j.length=1+(_>>3),D.nextBytes(j),pe>0?j[0]&=(1<<pe)-1:j[0]=0,this.fromString(j,256)}},u.prototype.bitwiseTo=function Ht(_,D,I){var j,pe,_e=Math.min(_.t,this.t);for(j=0;j<_e;++j)I[j]=D(this[j],_[j]);if(_.t<this.t){for(pe=_.s&this.DM,j=_e;j<this.t;++j)I[j]=D(this[j],pe);I.t=this.t}else{for(pe=this.s&this.DM,j=_e;j<_.t;++j)I[j]=D(pe,_[j]);I.t=_.t}I.s=D(this.s,_.s),I.clamp()},u.prototype.changeBit=function Zi(_,D){var I=u.ONE.shiftLeft(_);return this.bitwiseTo(I,D,I),I},u.prototype.addTo=function Ni(_,D){for(var I=0,j=0,pe=Math.min(_.t,this.t);I<pe;)j+=this[I]+_[I],D[I++]=j&this.DM,j>>=this.DB;if(_.t<this.t){for(j+=_.s;I<this.t;)j+=this[I],D[I++]=j&this.DM,j>>=this.DB;j+=this.s}else{for(j+=this.s;I<_.t;)j+=_[I],D[I++]=j&this.DM,j>>=this.DB;j+=_.s}D.s=j<0?-1:0,j>0?D[I++]=j:j<-1&&(D[I++]=this.DV+j),D.t=I,D.clamp()},u.prototype.dMultiply=function Vn(_){this[this.t]=this.am(0,_-1,this,0,0,this.t),++this.t,this.clamp()},u.prototype.dAddOffset=function Ei(_,D){if(0!=_){for(;this.t<=D;)this[this.t++]=0;for(this[D]+=_;this[D]>=this.DV;)this[D]-=this.DV,++D>=this.t&&(this[this.t++]=0),++this[D]}},u.prototype.multiplyLowerTo=function Zn(_,D,I){var pe,j=Math.min(this.t+_.t,D);for(I.s=0,I.t=j;j>0;)I[--j]=0;for(pe=I.t-this.t;j<pe;++j)I[j+this.t]=this.am(0,_[j],I,j,0,this.t);for(pe=Math.min(_.t,D);j<pe;++j)this.am(0,_[j],I,j,0,D-j);I.clamp()},u.prototype.multiplyUpperTo=function fi(_,D,I){--D;var j=I.t=this.t+_.t-D;for(I.s=0;--j>=0;)I[j]=0;for(j=Math.max(D-this.t,0);j<_.t;++j)I[this.t+j-D]=this.am(D-j,_[j],I,0,0,this.t+j-D);I.clamp(),I.drShiftTo(1,I)},u.prototype.modInt=function zn(_){if(_<=0)return 0;var D=this.DV%_,I=this.s<0?_-1:0;if(this.t>0)if(0==D)I=this[0]%_;else for(var j=this.t-1;j>=0;--j)I=(D*I+this[j])%_;return I},u.prototype.millerRabin=function mr(_){var D=this.subtract(u.ONE),I=D.getLowestSetBit();if(I<=0)return!1;var j=D.shiftRight(I);(_=_+1>>1)>di.length&&(_=di.length);for(var pe=v(),_e=0;_e<_;++_e){pe.fromInt(di[Math.floor(Math.random()*di.length)]);var xe=pe.modPow(j,this);if(0!=xe.compareTo(u.ONE)&&0!=xe.compareTo(D)){for(var He=1;He++<I&&0!=xe.compareTo(D);)if(0==(xe=xe.modPowInt(2,this)).compareTo(u.ONE))return!1;if(0!=xe.compareTo(D))return!1}}return!0},u.prototype.clone=function dn(){var _=v();return this.copyTo(_),_},u.prototype.intValue=function yn(){if(this.s<0){if(1==this.t)return this[0]-this.DV;if(0==this.t)return-1}else{if(1==this.t)return this[0];if(0==this.t)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},u.prototype.byteValue=function At(){return 0==this.t?this.s:this[0]<<24>>24},u.prototype.shortValue=function Vt(){return 0==this.t?this.s:this[0]<<16>>16},u.prototype.signum=function Jt(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1},u.prototype.toByteArray=function lt(){var _=this.t,D=new Array;D[0]=this.s;var j,I=this.DB-_*this.DB%8,pe=0;if(_-- >0)for(I<this.DB&&(j=this[_]>>I)!=(this.s&this.DM)>>I&&(D[pe++]=j|this.s<<this.DB-I);_>=0;)I<8?(j=(this[_]&(1<<I)-1)<<8-I,j|=this[--_]>>(I+=this.DB-8)):(j=this[_]>>(I-=8)&255,I<=0&&(I+=this.DB,--_)),128&j&&(j|=-256),0==pe&&(128&this.s)!=(128&j)&&++pe,(pe>0||j!=this.s)&&(D[pe++]=j);return D},u.prototype.equals=function Ue(_){return 0==this.compareTo(_)},u.prototype.min=function wt(_){return this.compareTo(_)<0?this:_},u.prototype.max=function gt(_){return this.compareTo(_)>0?this:_},u.prototype.and=function Ut(_){var D=v();return this.bitwiseTo(_,bn,D),D},u.prototype.or=function Le(_){var D=v();return this.bitwiseTo(_,Bt,D),D},u.prototype.xor=function de(_){var D=v();return this.bitwiseTo(_,V,D),D},u.prototype.andNot=function Ft(_){var D=v();return this.bitwiseTo(_,ge,D),D},u.prototype.not=function Wt(){for(var _=v(),D=0;D<this.t;++D)_[D]=this.DM&~this[D];return _.t=this.t,_.s=~this.s,_},u.prototype.shiftLeft=function Kt(_){var D=v();return _<0?this.rShiftTo(-_,D):this.lShiftTo(_,D),D},u.prototype.shiftRight=function cn(_){var D=v();return _<0?this.lShiftTo(-_,D):this.rShiftTo(_,D),D},u.prototype.getLowestSetBit=function kn(){for(var _=0;_<this.t;++_)if(0!=this[_])return _*this.DB+En(this[_]);return this.s<0?this.t*this.DB:-1},u.prototype.bitCount=function Gi(){for(var _=0,D=this.s&this.DM,I=0;I<this.t;++I)_+=Ai(this[I]^D);return _},u.prototype.testBit=function bt(_){var D=Math.floor(_/this.DB);return D>=this.t?0!=this.s:!!(this[D]&1<<_%this.DB)},u.prototype.setBit=function Rn(_){return this.changeBit(_,Bt)},u.prototype.clearBit=function Gn(_){return this.changeBit(_,ge)},u.prototype.flipBit=function Kn(_){return this.changeBit(_,V)},u.prototype.add=function ir(_){var D=v();return this.addTo(_,D),D},u.prototype.subtract=function Ir(_){var D=v();return this.subTo(_,D),D},u.prototype.multiply=function hr(_){var D=v();return this.multiplyTo(_,D),D},u.prototype.divide=function Pr(_){var D=v();return this.divRemTo(_,D,null),D},u.prototype.remainder=function lo(_){var D=v();return this.divRemTo(_,null,D),D},u.prototype.divideAndRemainder=function js(_){var D=v(),I=v();return this.divRemTo(_,D,I),new Array(D,I)},u.prototype.modPow=function bs(_,D){var j,_e,I=_.bitLength(),pe=ce(1);if(I<=0)return pe;j=I<18?1:I<48?3:I<144?4:I<768?5:6,_e=I<8?new ve(D):D.isEven()?new yi(D):new me(D);var xe=new Array,He=3,ht=j-1,yt=(1<<j)-1;if(xe[1]=_e.convert(this),j>1){var Gt=v();for(_e.sqrTo(xe[1],Gt);He<=yt;)xe[He]=v(),_e.mulTo(Gt,xe[He-2],xe[He]),He+=2}var st,Ye,$t=_.t-1,tt=!0,Tt=v();for(I=Ge(_[$t])-1;$t>=0;){for(I>=ht?st=_[$t]>>I-ht&yt:(st=(_[$t]&(1<<I+1)-1)<<ht-I,$t>0&&(st|=_[$t-1]>>this.DB+I-ht)),He=j;!(1&st);)st>>=1,--He;if((I-=He)<0&&(I+=this.DB,--$t),tt)xe[st].copyTo(pe),tt=!1;else{for(;He>1;)_e.sqrTo(pe,Tt),_e.sqrTo(Tt,pe),He-=2;He>0?_e.sqrTo(pe,Tt):(Ye=pe,pe=Tt,Tt=Ye),_e.mulTo(Tt,xe[st],pe)}for(;$t>=0&&!(_[$t]&1<<I);)_e.sqrTo(pe,Tt),Ye=pe,pe=Tt,Tt=Ye,--I<0&&(I=this.DB-1,--$t)}return _e.revert(pe)},u.prototype.modInverse=function Jn(_){var D=_.isEven();if(this.isEven()&&D||0==_.signum())return u.ZERO;for(var I=_.clone(),j=this.clone(),pe=ce(1),_e=ce(0),xe=ce(0),He=ce(1);0!=I.signum();){for(;I.isEven();)I.rShiftTo(1,I),D?((!pe.isEven()||!_e.isEven())&&(pe.addTo(this,pe),_e.subTo(_,_e)),pe.rShiftTo(1,pe)):_e.isEven()||_e.subTo(_,_e),_e.rShiftTo(1,_e);for(;j.isEven();)j.rShiftTo(1,j),D?((!xe.isEven()||!He.isEven())&&(xe.addTo(this,xe),He.subTo(_,He)),xe.rShiftTo(1,xe)):He.isEven()||He.subTo(_,He),He.rShiftTo(1,He);I.compareTo(j)>=0?(I.subTo(j,I),D&&pe.subTo(xe,pe),_e.subTo(He,_e)):(j.subTo(I,j),D&&xe.subTo(pe,xe),He.subTo(_e,He))}return 0!=j.compareTo(u.ONE)?u.ZERO:He.compareTo(_)>=0?He.subtract(_):He.signum()<0?(He.addTo(_,He),He.signum()<0?He.add(_):He):He},u.prototype.pow=function Qn(_){return this.exp(_,new ai)},u.prototype.gcd=function An(_){var D=this.s<0?this.negate():this.clone(),I=_.s<0?_.negate():_.clone();if(D.compareTo(I)<0){var j=D;D=I,I=j}var pe=D.getLowestSetBit(),_e=I.getLowestSetBit();if(_e<0)return D;for(pe<_e&&(_e=pe),_e>0&&(D.rShiftTo(_e,D),I.rShiftTo(_e,I));D.signum()>0;)(pe=D.getLowestSetBit())>0&&D.rShiftTo(pe,D),(pe=I.getLowestSetBit())>0&&I.rShiftTo(pe,I),D.compareTo(I)>=0?(D.subTo(I,D),D.rShiftTo(1,D)):(I.subTo(D,I),I.rShiftTo(1,I));return _e>0&&I.lShiftTo(_e,I),I},u.prototype.isProbablePrime=function Wi(_){var D,I=this.abs();if(1==I.t&&I[0]<=di[di.length-1]){for(D=0;D<di.length;++D)if(I[0]==di[D])return!0;return!1}if(I.isEven())return!1;for(D=1;D<di.length;){for(var j=di[D],pe=D+1;pe<di.length&&j<Oi;)j*=di[pe++];for(j=I.modInt(j);D<pe;)if(j%di[D++]==0)return!1}return I.millerRabin(_)},u.prototype.square=function Ms(){var _=v();return this.squareTo(_),_},qr.prototype.init=function ms(_){var D,I,j;for(D=0;D<256;++D)this.S[D]=D;for(I=0,D=0;D<256;++D)j=this.S[D],this.S[D]=this.S[I=I+this.S[D]+_[D%_.length]&255],this.S[I]=j;this.i=0,this.j=0},qr.prototype.next=function us(){var _;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,_=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=_,this.S[_+this.S[this.i]&255]};var Ar,Ur,vs,ks=256;function Zo(){!function fo(_){Ur[vs++]^=255&_,Ur[vs++]^=_>>8&255,Ur[vs++]^=_>>16&255,Ur[vs++]^=_>>24&255,vs>=ks&&(vs-=ks)}((new Date).getTime())}if(null==Ur){var vo;if(Ur=new Array,vs=0,void 0!==n&&(void 0!==n.crypto||void 0!==n.msCrypto)){var Pa=n.crypto||n.msCrypto;if(Pa.getRandomValues){var fa=new Uint8Array(32);for(Pa.getRandomValues(fa),vo=0;vo<32;++vo)Ur[vs++]=fa[vo]}else if("Netscape"==i.appName&&i.appVersion<"5"){var fs=n.crypto.random(32);for(vo=0;vo<fs.length;++vo)Ur[vs++]=255&fs.charCodeAt(vo)}}for(;vs<ks;)vo=Math.floor(65536*Math.random()),Ur[vs++]=vo>>>8,Ur[vs++]=255&vo;vs=0,Zo()}function Io(){if(null==Ar){for(Zo(),(Ar=function Qs(){return new qr}()).init(Ur),vs=0;vs<Ur.length;++vs)Ur[vs]=0;vs=0}return Ar.next()}function qs(){}function So(_,D){return new u(_,D)}function Rr(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}function ar(_,D){this.x=D,this.q=_}function Fs(_,D,I,j){this.curve=_,this.x=D,this.y=I,this.z=null==j?u.ONE:j,this.zinv=null}function po(_,D,I){this.q=_,this.a=this.fromBigInteger(D),this.b=this.fromBigInteger(I),this.infinity=new Fs(this,null,null)}qs.prototype.nextBytes=function Fo(_){var D;for(D=0;D<_.length;++D)_[D]=Io()},Rr.prototype.doPublic=function nl(_){return _.modPowInt(this.e,this.n)},Rr.prototype.setPublic=function pa(_,D){if(this.isPublic=!0,this.isPrivate=!1,"string"!=typeof _)this.n=_,this.e=D;else{if(!(null!=_&&null!=D&&_.length>0&&D.length>0))throw"Invalid RSA public key";this.n=So(_,16),this.e=parseInt(D,16)}},Rr.prototype.type="RSA",Rr.prototype.doPrivate=function oa(_){if(null==this.p||null==this.q)return _.modPow(this.d,this.n);for(var D=_.mod(this.p).modPow(this.dmp1,this.p),I=_.mod(this.q).modPow(this.dmq1,this.q);D.compareTo(I)<0;)D=D.add(this.p);return D.subtract(I).multiply(this.coeff).mod(this.p).multiply(this.q).add(I)},Rr.prototype.setPrivate=function Es(_,D,I){if(this.isPrivate=!0,"string"!=typeof _)this.n=_,this.e=D,this.d=I;else{if(!(null!=_&&null!=D&&_.length>0&&D.length>0))throw"Invalid RSA private key";this.n=So(_,16),this.e=parseInt(D,16),this.d=So(I,16)}},Rr.prototype.setPrivateEx=function eo(_,D,I,j,pe,_e,xe,He){if(this.isPrivate=!0,this.isPublic=!1,null==_)throw"RSASetPrivateEx N == null";if(null==D)throw"RSASetPrivateEx E == null";if(0==_.length)throw"RSASetPrivateEx N.length == 0";if(0==D.length)throw"RSASetPrivateEx E.length == 0";if(!(null!=_&&null!=D&&_.length>0&&D.length>0))throw"Invalid RSA private key in RSASetPrivateEx";this.n=So(_,16),this.e=parseInt(D,16),this.d=So(I,16),this.p=So(j,16),this.q=So(pe,16),this.dmp1=So(_e,16),this.dmq1=So(xe,16),this.coeff=So(He,16)},Rr.prototype.generate=function Ks(_,D){var I=new qs,j=_>>1;this.e=parseInt(D,16);for(var pe=new u(D,16),_e=_/2-100,xe=u.ONE.shiftLeft(_e);;){for(;this.p=new u(_-j,1,I),0!=this.p.subtract(u.ONE).gcd(pe).compareTo(u.ONE)||!this.p.isProbablePrime(10););for(;this.q=new u(j,1,I),0!=this.q.subtract(u.ONE).gcd(pe).compareTo(u.ONE)||!this.q.isProbablePrime(10););if(this.p.compareTo(this.q)<=0){var He=this.p;this.p=this.q,this.q=He}var ht=this.q.subtract(this.p).abs();if(!(ht.bitLength()<_e||ht.compareTo(xe)<=0)){var yt=this.p.subtract(u.ONE),Gt=this.q.subtract(u.ONE),$t=yt.multiply(Gt);if(0==$t.gcd(pe).compareTo(u.ONE)&&(this.n=this.p.multiply(this.q),this.n.bitLength()==_)){this.d=pe.modInverse($t),this.dmp1=this.d.mod(yt),this.dmq1=this.d.mod(Gt),this.coeff=this.q.modInverse(this.p);break}}}this.isPrivate=!0},ar.prototype.equals=function la(_){return _==this||this.q.equals(_.q)&&this.x.equals(_.x)},ar.prototype.toBigInteger=function wo(){return this.x},ar.prototype.negate=function na(){return new ar(this.q,this.x.negate().mod(this.q))},ar.prototype.add=function Ro(_){return new ar(this.q,this.x.add(_.toBigInteger()).mod(this.q))},ar.prototype.subtract=function ja(_){return new ar(this.q,this.x.subtract(_.toBigInteger()).mod(this.q))},ar.prototype.multiply=function Eo(_){return new ar(this.q,this.x.multiply(_.toBigInteger()).mod(this.q))},ar.prototype.square=function Ho(){return new ar(this.q,this.x.square().mod(this.q))},ar.prototype.divide=function no(_){return new ar(this.q,this.x.multiply(_.toBigInteger().modInverse(this.q)).mod(this.q))},ar.prototype.sqrt=function(){return new ar(this.q,this.x.sqrt().mod(this.q))},Fs.prototype.getX=function Co(){return null==this.zinv&&(this.zinv=this.z.modInverse(this.curve.q)),this.curve.fromBigInteger(this.x.toBigInteger().multiply(this.zinv).mod(this.curve.q))},Fs.prototype.getY=function so(){return null==this.zinv&&(this.zinv=this.z.modInverse(this.curve.q)),this.curve.fromBigInteger(this.y.toBigInteger().multiply(this.zinv).mod(this.curve.q))},Fs.prototype.equals=function _o(_){return _==this||(this.isInfinity()?_.isInfinity():_.isInfinity()?this.isInfinity():!!_.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(_.z)).mod(this.curve.q).equals(u.ZERO)&&_.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(_.z)).mod(this.curve.q).equals(u.ZERO))},Fs.prototype.isInfinity=function La(){return null==this.x&&null==this.y||this.z.equals(u.ZERO)&&!this.y.toBigInteger().equals(u.ZERO)},Fs.prototype.negate=function Ko(){return new Fs(this.curve,this.x,this.y.negate(),this.z)},Fs.prototype.add=function Jo(_){if(this.isInfinity())return _;if(_.isInfinity())return this;var D=_.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(_.z)).mod(this.curve.q),I=_.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(_.z)).mod(this.curve.q);if(u.ZERO.equals(I))return u.ZERO.equals(D)?this.twice():this.curve.getInfinity();var j=new u("3"),pe=this.x.toBigInteger(),_e=this.y.toBigInteger(),ht=(_.x.toBigInteger(),_.y.toBigInteger(),I.square()),yt=ht.multiply(I),Gt=pe.multiply(ht),$t=D.square().multiply(this.z),st=$t.subtract(Gt.shiftLeft(1)).multiply(_.z).subtract(yt).multiply(I).mod(this.curve.q),tt=Gt.multiply(j).multiply(D).subtract(_e.multiply(yt)).subtract($t.multiply(D)).multiply(_.z).add(D.multiply(yt)).mod(this.curve.q),Tt=yt.multiply(this.z).multiply(_.z).mod(this.curve.q);return new Fs(this.curve,this.curve.fromBigInteger(st),this.curve.fromBigInteger(tt),Tt)},Fs.prototype.twice=function ka(){if(this.isInfinity())return this;if(0==this.y.toBigInteger().signum())return this.curve.getInfinity();var _=new u("3"),D=this.x.toBigInteger(),I=this.y.toBigInteger(),j=I.multiply(this.z),pe=j.multiply(I).mod(this.curve.q),_e=this.curve.a.toBigInteger(),xe=D.square().multiply(_);u.ZERO.equals(_e)||(xe=xe.add(this.z.square().multiply(_e)));var He=(xe=xe.mod(this.curve.q)).square().subtract(D.shiftLeft(3).multiply(pe)).shiftLeft(1).multiply(j).mod(this.curve.q),ht=xe.multiply(_).multiply(D).subtract(pe.shiftLeft(1)).shiftLeft(2).multiply(pe).subtract(xe.square().multiply(xe)).mod(this.curve.q),yt=j.square().multiply(j).shiftLeft(3).mod(this.curve.q);return new Fs(this.curve,this.curve.fromBigInteger(He),this.curve.fromBigInteger(ht),yt)},Fs.prototype.multiply=function il(_){if(this.isInfinity())return this;if(0==_.signum())return this.curve.getInfinity();var yt,D=_,I=D.multiply(new u("3")),j=this.negate(),pe=this,_e=this.curve.q.subtract(_),xe=_e.multiply(new u("3")),He=new Fs(this.curve,this.x,this.y),ht=He.negate();for(yt=I.bitLength()-2;yt>0;--yt){pe=pe.twice();var Gt=I.testBit(yt);Gt!=D.testBit(yt)&&(pe=pe.add(Gt?this:j))}for(yt=xe.bitLength()-2;yt>0;--yt){He=He.twice();var st=xe.testBit(yt);st!=_e.testBit(yt)&&(He=He.add(st?He:ht))}return pe},Fs.prototype.multiplyTwo=function co(_,D,I){var j;j=_.bitLength()>I.bitLength()?_.bitLength()-1:I.bitLength()-1;for(var pe=this.curve.getInfinity(),_e=this.add(D);j>=0;)pe=pe.twice(),_.testBit(j)?pe=I.testBit(j)?pe.add(_e):pe.add(this):I.testBit(j)&&(pe=pe.add(D)),--j;return pe},po.prototype.getQ=function $s(){return this.q},po.prototype.getA=function Sn(){return this.a},po.prototype.getB=function ba(){return this.b},po.prototype.equals=function uo(_){return _==this||this.q.equals(_.q)&&this.a.equals(_.a)&&this.b.equals(_.b)},po.prototype.getInfinity=function $o(){return this.infinity},po.prototype.fromBigInteger=function aa(_){return new ar(this.q,_)},po.prototype.decodePointHex=function Xs(_){switch(parseInt(_.substr(0,2),16)){case 0:return this.infinity;case 2:case 3:var D=_.substr(0,2),j=(_.substr(2),this.fromBigInteger(new u(yt,16))),pe=this.getA(),_e=this.getB(),He=j.square().add(pe).multiply(j).add(_e).sqrt();return"03"==D&&(He=He.negate()),new Fs(this,j,He);case 4:case 6:case 7:var ht=(_.length-2)/2,yt=_.substr(2,ht),Gt=_.substr(ht+2,ht);return new Fs(this,this.fromBigInteger(new u(yt,16)),this.fromBigInteger(new u(Gt,16)));default:return null}},ar.prototype.getByteLength=function(){return Math.floor((this.toBigInteger().bitLength()+7)/8)},Fs.prototype.getEncoded=function(_){var D=function(_e,xe){var He=_e.toByteArrayUnsigned();if(xe<He.length)He=He.slice(He.length-xe);else for(;xe>He.length;)He.unshift(0);return He},I=this.getX().toBigInteger(),j=this.getY().toBigInteger(),pe=D(I,32);return _?j.isEven()?pe.unshift(2):pe.unshift(3):(pe.unshift(4),pe=pe.concat(D(j,32))),pe},Fs.decodeFrom=function(_,D){var j=D.length-1,pe=D.slice(1,1+j/2),_e=D.slice(1+j/2,1+j);pe.unshift(0),_e.unshift(0);var xe=new u(pe),He=new u(_e);return new Fs(_,_.fromBigInteger(xe),_.fromBigInteger(He))},Fs.decodeFromHex=function(_,D){D.substr(0,2);var j=D.length-2,pe=D.substr(2,j/2),_e=D.substr(2+j/2,j/2),xe=new u(pe,16),He=new u(_e,16);return new Fs(_,_.fromBigInteger(xe),_.fromBigInteger(He))},Fs.prototype.add2D=function(_){if(this.isInfinity())return _;if(_.isInfinity())return this;if(this.x.equals(_.x))return this.y.equals(_.y)?this.twice():this.curve.getInfinity();var D=_.x.subtract(this.x),j=_.y.subtract(this.y).divide(D),pe=j.square().subtract(this.x).subtract(_.x),_e=j.multiply(this.x.subtract(pe)).subtract(this.y);return new Fs(this.curve,pe,_e)},Fs.prototype.twice2D=function(){if(this.isInfinity())return this;if(0==this.y.toBigInteger().signum())return this.curve.getInfinity();var _=this.curve.fromBigInteger(u.valueOf(2)),D=this.curve.fromBigInteger(u.valueOf(3)),I=this.x.square().multiply(D).add(this.curve.a).divide(this.y.multiply(_)),j=I.square().subtract(this.x.multiply(_)),pe=I.multiply(this.x.subtract(j)).subtract(this.y);return new Fs(this.curve,j,pe)},Fs.prototype.multiply2D=function(_){if(this.isInfinity())return this;if(0==_.signum())return this.curve.getInfinity();var _e,D=_,I=D.multiply(new u("3")),j=this.negate(),pe=this;for(_e=I.bitLength()-2;_e>0;--_e){pe=pe.twice();var xe=I.testBit(_e);xe!=D.testBit(_e)&&(pe=pe.add2D(xe?this:j))}return pe},Fs.prototype.isOnCurve=function(){var _=this.getX().toBigInteger(),D=this.getY().toBigInteger(),I=this.curve.getA().toBigInteger(),j=this.curve.getB().toBigInteger(),pe=this.curve.getQ(),_e=D.multiply(D).mod(pe),xe=_.multiply(_).multiply(_).add(I.multiply(_)).add(j).mod(pe);return _e.equals(xe)},Fs.prototype.toString=function(){return"("+this.getX().toBigInteger().toString()+","+this.getY().toBigInteger().toString()+")"},Fs.prototype.validate=function(){var _=this.curve.getQ();if(this.isInfinity())throw new Error("Point is at infinity.");var D=this.getX().toBigInteger(),I=this.getY().toBigInteger();if(D.compareTo(u.ONE)<0||D.compareTo(_.subtract(u.ONE))>0)throw new Error("x coordinate out of bounds");if(I.compareTo(u.ONE)<0||I.compareTo(_.subtract(u.ONE))>0)throw new Error("y coordinate out of bounds");if(!this.isOnCurve())throw new Error("Point is not on the curve.");if(this.multiply(_).isInfinity())throw new Error("Point is not a scalar multiple of G.");return!0};var _a=function(){var j=new RegExp('(?:false|true|null|[\\{\\}\\[\\]]|(?:-?\\b(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?\\b)|(?:"(?:[^\\0-\\x08\\x0a-\\x1f"\\\\]|\\\\(?:["/\\\\bfnrt]|u[0-9A-Fa-f]{4}))*"))',"g"),pe=new RegExp("\\\\(?:([^u])|u(.{4}))","g"),_e={'"':'"',"/":"/","\\":"\\",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"};function xe($t,st,tt){return st?_e[st]:String.fromCharCode(parseInt(tt,16))}var He=new String(""),Gt=Object.hasOwnProperty;return function($t,st){var Tt,tt=$t.match(j),Ye=tt[0],kt=!1;"{"===Ye?Tt={}:"["===Ye?Tt=[]:(Tt=[],kt=!0);for(var It,un=[Tt],xn=1-kt,In=tt.length;xn<In;++xn){var Nn;switch((Ye=tt[xn]).charCodeAt(0)){default:(Nn=un[0])[It||Nn.length]=+Ye,It=void 0;break;case 34:if(-1!==(Ye=Ye.substring(1,Ye.length-1)).indexOf("\\")&&(Ye=Ye.replace(pe,xe)),Nn=un[0],!It){if(!(Nn instanceof Array)){It=Ye||He;break}It=Nn.length}Nn[It]=Ye,It=void 0;break;case 91:un.unshift((Nn=un[0])[It||Nn.length]=[]),It=void 0;break;case 93:case 125:un.shift();break;case 102:(Nn=un[0])[It||Nn.length]=!1,It=void 0;break;case 110:(Nn=un[0])[It||Nn.length]=null,It=void 0;break;case 116:(Nn=un[0])[It||Nn.length]=!0,It=void 0;break;case 123:un.unshift((Nn=un[0])[It||Nn.length]={}),It=void 0}}if(kt){if(1!==un.length)throw new Error;Tt=Tt[0]}else if(un.length)throw new Error;if(st){var ri=function(ui,ne){var Ie=ui[ne];if(Ie&&"object"==typeof Ie){var _t=null;for(var Nt in Ie)if(Gt.call(Ie,Nt)&&Ie!==ui){var en=ri(Ie,Nt);void 0!==en?Ie[Nt]=en:(_t||(_t=[]),_t.push(Nt))}if(_t)for(var vn=_t.length;--vn>=0;)delete Ie[_t[vn]]}return st.call(ui,ne,Ie)};Tt=ri({"":Tt},"")}return Tt}}();(typeof Ae>"u"||!Ae)&&(Ae={}),(typeof Ae.asn1>"u"||!Ae.asn1)&&(Ae.asn1={}),Ae.asn1.ASN1Util=new function(){this.integerToByteHex=function(_){var D=_.toString(16);return D.length%2==1&&(D="0"+D),D},this.bigIntToMinTwosComplementsHex=function(_){return sa(_)},this.getPEMStringFromHex=function(_,D){return $n(_,D)},this.newObject=function(_){var I=Ae.asn1,j=I.ASN1Object,pe=I.DERBoolean,_e=I.DERInteger,xe=I.DERBitString,He=I.DEROctetString,ht=I.DERNull,yt=I.DERObjectIdentifier,Gt=I.DEREnumerated,$t=I.DERUTF8String,st=I.DERNumericString,tt=I.DERPrintableString,Tt=I.DERTeletexString,Ye=I.DERIA5String,kt=I.DERUTCTime,It=I.DERGeneralizedTime,un=I.DERVisibleString,xn=I.DERBMPString,In=I.DERSequence,Nn=I.DERSet,ri=I.DERTaggedObject,ui=I.ASN1Util.newObject;if(_ instanceof I.ASN1Object)return _;var ne=Object.keys(_);if(1!=ne.length)throw new Error("key of param shall be only one.");var Ie=ne[0];if(-1==":asn1:bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:visstr:bmpstr:seq:set:tag:".indexOf(":"+Ie+":"))throw new Error("undefined key: "+Ie);if("bool"==Ie)return new pe(_[Ie]);if("int"==Ie)return new _e(_[Ie]);if("bitstr"==Ie)return new xe(_[Ie]);if("octstr"==Ie)return new He(_[Ie]);if("null"==Ie)return new ht(_[Ie]);if("oid"==Ie)return new yt(_[Ie]);if("enum"==Ie)return new Gt(_[Ie]);if("utf8str"==Ie)return new $t(_[Ie]);if("numstr"==Ie)return new st(_[Ie]);if("prnstr"==Ie)return new tt(_[Ie]);if("telstr"==Ie)return new Tt(_[Ie]);if("ia5str"==Ie)return new Ye(_[Ie]);if("utctime"==Ie)return new kt(_[Ie]);if("gentime"==Ie)return new It(_[Ie]);if("visstr"==Ie)return new un(_[Ie]);if("bmpstr"==Ie)return new xn(_[Ie]);if("asn1"==Ie)return new j(_[Ie]);if("seq"==Ie){for(var _t=_[Ie],Nt=[],en=0;en<_t.length;en++){var vn=ui(_t[en]);Nt.push(vn)}return new In({array:Nt})}if("set"==Ie){for(_t=_[Ie],Nt=[],en=0;en<_t.length;en++)vn=ui(_t[en]),Nt.push(vn);return new Nn({array:Nt})}if("tag"==Ie){var fn=_[Ie];if("[object Array]"===Object.prototype.toString.call(fn)&&3==fn.length){var Cn=ui(fn[2]);return new ri({tag:fn[0],explicit:fn[1],obj:Cn})}return new ri(fn)}},this.jsonToASN1HEX=function(_){return this.newObject(_).tohex()}},Ae.asn1.ASN1Util.oidHexToInt=function(_){for(var pe="",D=parseInt(_.substr(0,2),16),_e=(pe=Math.floor(D/40)+"."+D%40,""),xe=2;xe<_.length;xe+=2){var ht=("00000000"+parseInt(_.substr(xe,2),16).toString(2)).slice(-8);_e+=ht.substr(1,7),"0"==ht.substr(0,1)&&(pe=pe+"."+new u(_e,2).toString(10),_e="")}return pe},Ae.asn1.ASN1Util.oidIntToHex=function(_){var D=function(He){var ht=He.toString(16);return 1==ht.length&&(ht="0"+ht),ht},I=function(He){var ht="",Gt=new u(He,10).toString(2),$t=7-Gt.length%7;7==$t&&($t=0);for(var st="",tt=0;tt<$t;tt++)st+="0";for(Gt=st+Gt,tt=0;tt<Gt.length-1;tt+=7){var Tt=Gt.substr(tt,7);tt!=Gt.length-7&&(Tt="1"+Tt),ht+=D(parseInt(Tt,2))}return ht};if(!_.match(/^[0-9.]+$/))throw"malformed oid string: "+_;var j="",pe=_.split("."),_e=40*parseInt(pe[0])+parseInt(pe[1]);j+=D(_e),pe.splice(0,2);for(var xe=0;xe<pe.length;xe++)j+=I(pe[xe]);return j},Ae.asn1.ASN1Object=function(_){this.params=null,this.getLengthHexFromValue=function(){if(typeof this.hV>"u"||null==this.hV)throw new Error("this.hV is null or undefined");if(this.hV.length%2==1)throw new Error("value hex must be even length: n=0,v="+this.hV);var xe=this.hV.length/2,He=xe.toString(16);if(He.length%2==1&&(He="0"+He),xe<128)return He;var ht=He.length/2;if(ht>15)throw new Error("ASN.1 length too long to represent by 8x: n = "+xe.toString(16));return(128+ht).toString(16)+He},this.tohex=function(){return(null==this.hTLV||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getEncodedHex=function(){return this.tohex()},this.getValueHex=function(){return this.tohex(),this.hV},this.getFreshValueHex=function(){return""},this.setByParam=function(xe){this.params=xe},null!=_&&null!=_.tlv&&(this.hTLV=_.tlv,this.isModified=!1)},Ae.asn1.DERAbstractString=function(_){Ae.asn1.DERAbstractString.superclass.constructor.call(this),this.getString=function(){return this.s},this.setString=function(j){this.hTLV=null,this.isModified=!0,this.s=j,this.hV=Do(this.s).toLowerCase()},this.setStringHex=function(j){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=j},this.getFreshValueHex=function(){return this.hV},typeof _<"u"&&("string"==typeof _?this.setString(_):typeof _.str<"u"?this.setString(_.str):typeof _.hex<"u"&&this.setStringHex(_.hex))},Vi(Ae.asn1.DERAbstractString,Ae.asn1.ASN1Object),Ae.asn1.DERAbstractTime=function(_){Ae.asn1.DERAbstractTime.superclass.constructor.call(this),this.localDateToUTC=function(j){var pe=j.getTime()+6e4*j.getTimezoneOffset();return new Date(pe)},this.formatDate=function(j,pe,_e){var xe=this.zeroPadding,He=this.localDateToUTC(j),ht=String(He.getFullYear());"utc"==pe&&(ht=ht.substr(2,2));var Tt=ht+xe(String(He.getMonth()+1),2)+xe(String(He.getDate()),2)+xe(String(He.getHours()),2)+xe(String(He.getMinutes()),2)+xe(String(He.getSeconds()),2);if(!0===_e){var Ye=He.getMilliseconds();if(0!=Ye){var kt=xe(String(Ye),3);Tt=Tt+"."+(kt=kt.replace(/[0]+$/,""))}}return Tt+"Z"},this.zeroPadding=function(j,pe){return j.length>=pe?j:new Array(pe-j.length+1).join("0")+j},this.setByParam=function(j){this.hV=null,this.hTLV=null,this.params=j},this.getString=function(){},this.setString=function(j){this.hTLV=null,this.isModified=!0,null==this.params&&(this.params={}),this.params.str=j},this.setByDate=function(j){this.hTLV=null,this.isModified=!0,null==this.params&&(this.params={}),this.params.date=j},this.setByDateValue=function(j,pe,_e,xe,He,ht){var yt=new Date(Date.UTC(j,pe-1,_e,xe,He,ht,0));this.setByDate(yt)},this.getFreshValueHex=function(){return this.hV}},Vi(Ae.asn1.DERAbstractTime,Ae.asn1.ASN1Object),Ae.asn1.DERAbstractStructured=function(_){Ae.asn1.DERAbstractString.superclass.constructor.call(this),this.setByASN1ObjectArray=function(I){this.hTLV=null,this.isModified=!0,this.asn1Array=I},this.appendASN1Object=function(I){this.hTLV=null,this.isModified=!0,this.asn1Array.push(I)},this.asn1Array=new Array,typeof _<"u"&&typeof _.array<"u"&&(this.asn1Array=_.array)},Vi(Ae.asn1.DERAbstractStructured,Ae.asn1.ASN1Object),Ae.asn1.DERBoolean=function(_){Ae.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV=0==_?"010100":"0101ff"},Vi(Ae.asn1.DERBoolean,Ae.asn1.ASN1Object),Ae.asn1.DERInteger=function(_){Ae.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.params=null;var D=sa;this.setByBigInteger=function(I){this.isModified=!0,this.params={bigint:I}},this.setByInteger=function(I){this.isModified=!0,this.params=I},this.setValueHex=function(I){this.isModified=!0,this.params={hex:I}},this.getFreshValueHex=function(){var I=this.params,j=null;if(null==I)throw new Error("value not set");if("object"==typeof I&&null!=I.hex)return this.hV=I.hex,this.hV;if("number"==typeof I)j=new u(String(I),10);else if(null!=I.int)j=new u(String(I.int),10);else{if(null==I.bigint)throw new Error("wrong parameter");j=I.bigint}return this.hV=D(j),this.hV},null!=_&&(this.params=_)},Vi(Ae.asn1.DERInteger,Ae.asn1.ASN1Object),Ae.asn1.DERBitString=function(_){if(void 0!==_&&typeof _.obj<"u"){var D=Ae.asn1.ASN1Util.newObject(_.obj);_.hex="00"+D.tohex()}Ae.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(I){this.hTLV=null,this.isModified=!0,this.hV=I},this.setUnusedBitsAndHexValue=function(I,j){if(I<0||7<I)throw"unused bits shall be from 0 to 7: u = "+I;var pe="0"+I;this.hTLV=null,this.isModified=!0,this.hV=pe+j},this.setByBinaryString=function(I){var j=8-(I=I.replace(/0+$/,"")).length%8;8==j&&(j=0),I+="0000000".substr(0,j);for(var pe="",_e=0;_e<I.length-1;_e+=8){var xe=I.substr(_e,8),He=parseInt(xe,2).toString(16);1==He.length&&(He="0"+He),pe+=He}this.hTLV=null,this.isModified=!0,this.hV="0"+j+pe},this.setByBooleanArray=function(I){for(var j="",pe=0;pe<I.length;pe++)j+=1==I[pe]?"1":"0";this.setByBinaryString(j)},this.newFalseArray=function(I){for(var j=new Array(I),pe=0;pe<I;pe++)j[pe]=!1;return j},this.getFreshValueHex=function(){return this.hV},typeof _<"u"&&("string"==typeof _&&_.toLowerCase().match(/^[0-9a-f]+$/)?this.setHexValueIncludingUnusedBits(_):typeof _.hex<"u"?this.setHexValueIncludingUnusedBits(_.hex):typeof _.bin<"u"?this.setByBinaryString(_.bin):typeof _.array<"u"&&this.setByBooleanArray(_.array))},Vi(Ae.asn1.DERBitString,Ae.asn1.ASN1Object),Ae.asn1.DEROctetString=function(_){if(void 0!==_&&typeof _.obj<"u"){var D=Ae.asn1.ASN1Util.newObject(_.obj);_.hex=D.tohex()}Ae.asn1.DEROctetString.superclass.constructor.call(this,_),this.hT="04"},Vi(Ae.asn1.DEROctetString,Ae.asn1.DERAbstractString),Ae.asn1.DERNull=function(){Ae.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},Vi(Ae.asn1.DERNull,Ae.asn1.ASN1Object),Ae.asn1.DERObjectIdentifier=function(_){Ae.asn1.DERObjectIdentifier.superclass.constructor.call(this),this.hT="06",this.setValueHex=function(D){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=D},this.setValueOidString=function(D){var I=function Vr(_){var D=function(He){var ht=He.toString(16);return 1==ht.length&&(ht="0"+ht),ht},I=function(He){var ht="",Gt=parseInt(He,10).toString(2),$t=7-Gt.length%7;7==$t&&($t=0);for(var st="",tt=0;tt<$t;tt++)st+="0";for(Gt=st+Gt,tt=0;tt<Gt.length-1;tt+=7){var Tt=Gt.substr(tt,7);tt!=Gt.length-7&&(Tt="1"+Tt),ht+=D(parseInt(Tt,2))}return ht};try{if(!_.match(/^[0-9.]+$/))return null;var j="",pe=_.split("."),_e=40*parseInt(pe[0],10)+parseInt(pe[1],10);j+=D(_e),pe.splice(0,2);for(var xe=0;xe<pe.length;xe++)j+=I(pe[xe]);return j}catch{return null}}(D);if(null==I)throw new Error("malformed oid string: "+D);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=I},this.setValueName=function(D){var I=Ae.asn1.x509.OID.name2oid(D);if(""===I)throw new Error("DERObjectIdentifier oidName undefined: "+D);this.setValueOidString(I)},this.setValueNameOrOid=function(D){D.match(/^[0-2].[0-9.]+$/)?this.setValueOidString(D):this.setValueName(D)},this.getFreshValueHex=function(){return this.hV},this.setByParam=function(D){"string"==typeof D?this.setValueNameOrOid(D):void 0!==D.oid?this.setValueNameOrOid(D.oid):void 0!==D.name?this.setValueNameOrOid(D.name):void 0!==D.hex&&this.setValueHex(D.hex)},void 0!==_&&this.setByParam(_)},Vi(Ae.asn1.DERObjectIdentifier,Ae.asn1.ASN1Object),Ae.asn1.DEREnumerated=function(_){Ae.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(D){this.hTLV=null,this.isModified=!0,this.hV=sa(D)},this.setByInteger=function(D){var I=new u(String(D),10);this.setByBigInteger(I)},this.setValueHex=function(D){this.hV=D},this.getFreshValueHex=function(){return this.hV},typeof _<"u"&&(typeof _.int<"u"?this.setByInteger(_.int):"number"==typeof _?this.setByInteger(_):typeof _.hex<"u"&&this.setValueHex(_.hex))},Vi(Ae.asn1.DEREnumerated,Ae.asn1.ASN1Object),Ae.asn1.DERUTF8String=function(_){Ae.asn1.DERUTF8String.superclass.constructor.call(this,_),this.hT="0c"},Vi(Ae.asn1.DERUTF8String,Ae.asn1.DERAbstractString),Ae.asn1.DERNumericString=function(_){Ae.asn1.DERNumericString.superclass.constructor.call(this,_),this.hT="12"},Vi(Ae.asn1.DERNumericString,Ae.asn1.DERAbstractString),Ae.asn1.DERPrintableString=function(_){Ae.asn1.DERPrintableString.superclass.constructor.call(this,_),this.hT="13"},Vi(Ae.asn1.DERPrintableString,Ae.asn1.DERAbstractString),Ae.asn1.DERTeletexString=function(_){Ae.asn1.DERTeletexString.superclass.constructor.call(this,_),this.hT="14"},Vi(Ae.asn1.DERTeletexString,Ae.asn1.DERAbstractString),Ae.asn1.DERIA5String=function(_){Ae.asn1.DERIA5String.superclass.constructor.call(this,_),this.hT="16"},Vi(Ae.asn1.DERIA5String,Ae.asn1.DERAbstractString),Ae.asn1.DERVisibleString=function(_){Ae.asn1.DERIA5String.superclass.constructor.call(this,_),this.hT="1a"},Vi(Ae.asn1.DERVisibleString,Ae.asn1.DERAbstractString),Ae.asn1.DERBMPString=function(_){Ae.asn1.DERBMPString.superclass.constructor.call(this,_),this.hT="1e"},Vi(Ae.asn1.DERBMPString,Ae.asn1.DERAbstractString),Ae.asn1.DERUTCTime=function(_){Ae.asn1.DERUTCTime.superclass.constructor.call(this,_),this.hT="17",this.params=void 0,this.getFreshValueHex=function(){var D=this.params;if(null==this.params&&(D={date:new Date}),"string"==typeof D){if(!D.match(/^[0-9]{12}Z$/)&&!D.match(/^[0-9]{12}\.[0-9]+Z$/))throw new Error("malformed string for UTCTime: "+D);this.hV=Ao(D)}else null!=D.str?this.hV=Ao(D.str):null==D.date&&1==D.millis?this.hV=Ao(this.formatDate(new Date,"utc",!0)):null!=D.date&&D.date instanceof Date?this.hV=Ao(this.formatDate(D.date,"utc",!0===D.millis)):D instanceof Date&&(this.hV=Ao(this.formatDate(D,"utc")));if(null==this.hV)throw new Error("parameter not specified properly for UTCTime");return this.hV},null!=_&&this.setByParam(_)},Vi(Ae.asn1.DERUTCTime,Ae.asn1.DERAbstractTime),Ae.asn1.DERGeneralizedTime=function(_){Ae.asn1.DERGeneralizedTime.superclass.constructor.call(this,_),this.hT="18",this.params=_,this.getFreshValueHex=function(){var D=this.params;if(null==this.params&&(D={date:new Date}),"string"==typeof D){if(!D.match(/^[0-9]{14}Z$/)&&!D.match(/^[0-9]{14}\.[0-9]+Z$/))throw new Error("malformed string for GeneralizedTime: "+D);this.hV=Ao(D)}else null!=D.str?this.hV=Ao(D.str):null==D.date&&1==D.millis?this.hV=Ao(this.formatDate(new Date,"gen",!0)):null!=D.date&&D.date instanceof Date?this.hV=Ao(this.formatDate(D.date,"gen",!0===D.millis)):D instanceof Date&&(this.hV=Ao(this.formatDate(D,"gen")));if(null==this.hV)throw new Error("parameter not specified properly for GeneralizedTime");return this.hV},null!=_&&this.setByParam(_)},Vi(Ae.asn1.DERGeneralizedTime,Ae.asn1.DERAbstractTime),Ae.asn1.DERSequence=function(_){Ae.asn1.DERSequence.superclass.constructor.call(this,_),this.hT="30",this.getFreshValueHex=function(){for(var D="",I=0;I<this.asn1Array.length;I++)D+=this.asn1Array[I].tohex();return this.hV=D,this.hV}},Vi(Ae.asn1.DERSequence,Ae.asn1.DERAbstractStructured),Ae.asn1.DERSet=function(_){Ae.asn1.DERSet.superclass.constructor.call(this,_),this.hT="31",this.sortFlag=!0,this.getFreshValueHex=function(){for(var D=new Array,I=0;I<this.asn1Array.length;I++)D.push(this.asn1Array[I].tohex());return 1==this.sortFlag&&D.sort(),this.hV=D.join(""),this.hV},typeof _<"u"&&typeof _.sortflag<"u"&&0==_.sortflag&&(this.sortFlag=!1)},Vi(Ae.asn1.DERSet,Ae.asn1.DERAbstractStructured),Ae.asn1.DERTaggedObject=function(_){Ae.asn1.DERTaggedObject.superclass.constructor.call(this);var D=Ae.asn1,j=zi.getV,_e=D.ASN1Util.newObject;this.hT="a0",this.hV="",this.isExplicit=!0,this.asn1Object=null,this.params={tag:"a0",explicit:!0},this.setASN1Object=function(xe,He,ht){this.params={tag:He,explicit:xe,obj:ht}},this.getFreshValueHex=function(){var xe=this.params;if(null==xe.explicit&&(xe.explicit=!0),null!=xe.tage&&(xe.tag=xe.tage,xe.explicit=!0),null!=xe.tagi&&(xe.tag=xe.tagi,xe.explicit=!1),null!=xe.str)this.hV=Do(xe.str);else if(null!=xe.hex)this.hV=xe.hex;else{if(null==xe.obj)throw new Error("str, hex nor obj not specified");var He;xe.obj instanceof D.ASN1Object?He=xe.obj.tohex():"object"==typeof xe.obj&&(He=_e(xe.obj).tohex()),this.hV=xe.explicit?He:j(He,0)}return null==xe.tag&&(xe.tag="a0"),this.hT=xe.tag,this.hTLV=null,this.isModified=!0,this.hV},this.setByParam=function(xe){this.params=xe},void 0!==_&&this.setByParam(_)},Vi(Ae.asn1.DERTaggedObject,Ae.asn1.ASN1Object);var Ae,Dn,qn,zi=new function(){};function Xi(_){for(var D="",I=0;I<_.length;I++){var j=_[I].toString(16);1==j.length&&(j="0"+j),D+=j}return D}function Ao(_){return Xi(function fl(_){for(var D=new Array,I=0;I<_.length;I++)D[I]=_.charCodeAt(I);return D}(_))}function ga(_){return(_=(_=_.replace(/\=/g,"")).replace(/\+/g,"-")).replace(/\//g,"_")}function on(_){return _.length%4==2?_+="==":_.length%4==3&&(_+="="),(_=_.replace(/-/g,"+")).replace(/_/g,"/")}function Dt(_){return _.length%2==1&&(_="0"+_),ga(x(_))}function Mt(_){return A(on(_))}function Do(_){return Us(Pi(_)).toLowerCase()}function Ws(_){try{return decodeURIComponent(Vs(_))}catch{return null}}function Bi(_){return Ws(function Ea(_){for(var D=_.match(/.{1,2}/g),I=[],j=0;j<D.length;j++){var pe=parseInt(D[j],16);161<=pe&&pe<=191?(I.push("c2"),I.push(D[j])):192<=pe&&pe<=255?(I.push("c3"),I.push((pe-64).toString(16))):I.push(D[j])}return I.join("")}(_))}function hs(_){for(var D="",I=0;I<_.length-1;I+=2)D+=String.fromCharCode(parseInt(_.substr(I,2),16));return D}function Is(_){for(var D="",I=0;I<_.length;I++)D+=("0"+_.charCodeAt(I).toString(16)).slice(-2);return D}function $n(_,D){return"-----BEGIN "+D+"-----\r\n"+function ia(_,D){return(_=_.replace(new RegExp("(.{"+D+"})","g"),"$1\r\n")).replace(/\s+$/,"")}(function da(_){return x(_)}(_),64)+"\r\n-----END "+D+"-----\r\n"}function mt(_,D){if(-1==_.indexOf("-----BEGIN "))throw new Error("can't find PEM header");return function Oo(_){return A(_.replace(/[^0-9A-Za-z\/+=]*/g,""))}(_=void 0!==D?(_=_.replace(new RegExp("^[^]*-----BEGIN "+D+"-----"),"")).replace(new RegExp("-----END "+D+"-----[^]*$"),""):(_=_.replace(/^[^]*-----BEGIN [^-]+-----/,"")).replace(/-----END [^-]+-----[^]*$/,""))}function Or(_){return Math.round(function Hi(_){var D,I,j,pe,_e,xe,He,Gt,$t,st;if(st=(_=function wr(_){return _.match(/^[0-9]{12}Z$/)||_.match(/^[0-9]{12}[.][0-9]*Z$/)?_.match(/^[0-4]/)?"20"+_:"19"+_:_}(_)).match(/^(\d{4})(\d\d)(\d\d)(\d\d)(\d\d)(\d\d)(|\.\d+)Z$/))return D=parseInt(st[1]),I=parseInt(st[2])-1,j=parseInt(st[3]),pe=parseInt(st[4]),_e=parseInt(st[5]),xe=parseInt(st[6]),He=0,""!==(Gt=st[7])&&($t=(Gt.substr(1)+"00").substr(0,3),He=parseInt($t)),Date.UTC(D,I,j,pe,_e,xe,He);throw new Error("unsupported zulu format: "+_)}(_)/1e3)}function Us(_){return _.replace(/%/g,"")}function Vs(_){return _.replace(/(..)/g,"%$1")}function Ma(_){var D="malformed IPv6 address";if(!_.match(/^[0-9A-Fa-f:]+$/))throw D;var I=(_=_.toLowerCase()).split(":").length-1;if(I<2)throw D;var j=":".repeat(7-I+2),pe=(_=_.replace("::",j)).split(":");if(8!=pe.length)throw D;for(var _e=0;_e<8;_e++)pe[_e]=("0000"+pe[_e]).slice(-4);return pe.join("")}function Ya(_){if(!_.match(/^[0-9A-Fa-f]{32}$/))throw new Error("malformed IPv6 address: "+_);var D=(_=_.toLowerCase()).match(/.{1,4}/g);D=D.map(function(pe){return pe.replace(/^0+/,"")}),D=D.map(function(pe){return""==pe?"0":pe});var I=(_=":"+D.join(":")+":").match(/:(0:){2,}/g);if(null==I)return _.slice(1,-1);var j=I.sort().slice(-1)[0];return"::"!=(_=_.replace(j.substr(0,j.length-1),":")).substr(0,2)&&(_=_.substr(1)),"::"!=_.substr(-2,2)&&(_=_.substr(0,_.length-1)),_}function Qa(_){var D=new Error("malformed hex value");if(!_.match(/^([0-9A-Fa-f][0-9A-Fa-f]){1,}$/))throw D;if(8==_.length)try{return parseInt(_.substr(0,2),16)+"."+parseInt(_.substr(2,2),16)+"."+parseInt(_.substr(4,2),16)+"."+parseInt(_.substr(6,2),16)}catch{throw D}else{if(16!=_.length){if(32==_.length)return Ya(_);if(64==_.length){try{return Ya(_.substr(0,32))+"/"+za(_.substr(32))}catch{throw D}return}return _}try{return Qa(_.substr(0,8))+"/"+za(_.substr(8))}catch{throw D}}}function za(_){var I,D=new Error("malformed mask");try{I=new u(_,16).toString(2)}catch{throw D}if(!I.match(/^1*0*$/))throw D;return I.replace(/0+$/,"").length}function Bo(_){var D=new Error("malformed IP address");if(!(_=_.toLowerCase(_)).match(/^[0-9a-f.:/]+$/))throw D;if(!_.match(/^[0-9.]+$/)){var xe;if(_.match(/^[0-9.]+\/[0-9]+$/))return Bo((xe=_.split("/"))[0])+li(parseInt(xe[1]),32);if(_.match(/^[0-9a-f:]+$/)&&-1!==_.indexOf(":"))return Ma(_);if(_.match(/^[0-9a-f:]+\/[0-9]+$/)&&-1!==_.indexOf(":"))return Ma((xe=_.split("/"))[0])+li(parseInt(xe[1]),128);throw D}var I=_.split(".");if(4!==I.length)throw D;var j="";try{for(var pe=0;pe<4;pe++)j+=("0"+parseInt(I[pe]).toString(16)).slice(-2);return j}catch{throw D}}function li(_,D){return 32==D&&0==_?"00000000":128==D&&0==_?"00000000000000000000000000000000":new u(Array(_+1).join("1")+Array(D-_+1).join("0"),2).toString(16)}function Ii(_){var j=_.match(/.{4}/g).map(function D(pe){var _e=parseInt(pe.substr(0,2),16),xe=parseInt(pe.substr(2),16);if(0==_e&xe<128)return String.fromCharCode(xe);if(_e<8){var ht=128|63&xe;return Ws((192|(7&_e)<<3|(192&xe)>>6).toString(16)+ht.toString(16))}ht=128|(15&_e)<<2|(192&xe)>>6;var yt=128|63&xe;return Ws((224|(240&_e)>>4).toString(16)+ht.toString(16)+yt.toString(16))});return j.join("")}function Pi(_){for(var D=encodeURIComponent(_),I="",j=0;j<D.length;j++)"%"==D[j]?(I+=D.substr(j,3),j+=2):I=I+"%"+Ao(D[j]);return I}function ws(_){return!(_.length%2!=0||!_.match(/^[0-9a-f]+$/)&&!_.match(/^[0-9A-F]+$/))}function oo(_){return!!_.match(/^[0-9A-Za-z-_.]+$/)}function ao(_){return _.length%2==1?"0"+_:_.substr(0,1)>"7"?"00"+_:_}function Ca(_){if(!ws(_))return null;try{var D=[],I=_.substr(0,2),j=parseInt(I,16);D[0]=new String(Math.floor(j/40)),D[1]=new String(j%40);for(var pe=_.substr(2),_e=[],xe=0;xe<pe.length/2;xe++)_e.push(parseInt(pe.substr(2*xe,2),16));var He=[],ht="";for(xe=0;xe<_e.length;xe++)128&_e[xe]?ht+=rl((127&_e[xe]).toString(2),7):(ht+=rl((127&_e[xe]).toString(2),7),He.push(new String(parseInt(ht,2))),ht="");var yt=D.join(".");return He.length>0&&(yt=yt+"."+He.join(".")),yt}catch{return null}}function ua(_){return sa(new u(String(_),10))}function sa(_){var D=_.toString(16);if("-"!=D.substr(0,1))return D.length%2==1?D="0"+D:D.match(/^[0-7]/)||(D="00"+D),D;var j=D.substr(1).length;j%2==1?j+=1:D.match(/^[0-7]/)||(j+=2);for(var pe="",_e=0;_e<j;_e++)pe+="f";return new u(pe,16).xor(_).add(u.ONE).toString(16).replace(/^-/,"")}zi.getLblen=function(_,D){if("8"!=_.substr(D+2,1))return 1;var I=parseInt(_.substr(D+3,1));return 0==I?-1:0<I&&I<10?I+1:-2},zi.getL=function(_,D){var I=zi.getLblen(_,D);return I<1?"":_.substr(D+2,2*I)},zi.getVblen=function(_,D){var I;return""==(I=zi.getL(_,D))?-1:("8"===I.substr(0,1)?new u(I.substr(2),16):new u(I,16)).intValue()},zi.getVidx=function(_,D){var I=zi.getLblen(_,D);return I<0?I:D+2*(I+1)},zi.getV=function(_,D){var I=zi.getVidx(_,D),j=zi.getVblen(_,D);return _.substr(I,2*j)},zi.getTLV=function(_,D){return _.substr(D,2)+zi.getL(_,D)+zi.getV(_,D)},zi.getTLVblen=function(_,D){return 2+2*zi.getLblen(_,D)+2*zi.getVblen(_,D)},zi.getNextSiblingIdx=function(_,D){return zi.getVidx(_,D)+2*zi.getVblen(_,D)},zi.getChildIdx=function(_,D){var pe,_e,xe,I=zi,j=[];pe=I.getVidx(_,D),_e=2*I.getVblen(_,D),"03"==_.substr(D,2)&&(pe+=2,_e-=2),xe=0;for(var He=pe;xe<=_e;){var ht=I.getTLVblen(_,He);if((xe+=ht)<=_e&&j.push(He),He+=ht,xe>=_e)break}return j},zi.getNthChildIdx=function(_,D,I){return zi.getChildIdx(_,D)[I]},zi.getIdxbyList=function(_,D,I,j){var _e,xe,pe=zi;return 0==I.length?void 0!==j&&_.substr(D,2)!==j?-1:D:(_e=I.shift())>=(xe=pe.getChildIdx(_,D)).length?-1:pe.getIdxbyList(_,xe[_e],I,j)},zi.getIdxbyListEx=function(_,D,I,j){var _e,xe,pe=zi;if(0==I.length)return void 0!==j&&_.substr(D,2)!==j?-1:D;_e=I.shift(),xe=pe.getChildIdx(_,D);for(var He=0,ht=0;ht<xe.length;ht++){var yt=_.substr(xe[ht],2);if("number"==typeof _e&&!pe.isContextTag(yt)&&He==_e||"string"==typeof _e&&pe.isContextTag(yt,_e))return pe.getIdxbyListEx(_,xe[ht],I,j);pe.isContextTag(yt)||He++}return-1},zi.getTLVbyList=function(_,D,I,j){var pe=zi,_e=pe.getIdxbyList(_,D,I,j);return-1==_e||_e>=_.length?null:pe.getTLV(_,_e)},zi.getTLVbyListEx=function(_,D,I,j){var pe=zi,_e=pe.getIdxbyListEx(_,D,I,j);return-1==_e?null:pe.getTLV(_,_e)},zi.getVbyList=function(_,D,I,j,pe){var xe,He,_e=zi;return-1==(xe=_e.getIdxbyList(_,D,I,j))||xe>=_.length?null:(He=_e.getV(_,xe),!0===pe&&(He=He.substr(2)),He)},zi.getVbyListEx=function(_,D,I,j,pe){var xe,ht,_e=zi;return-1==(xe=_e.getIdxbyListEx(_,D,I,j))?null:(ht=_e.getV(_,xe),"03"==_.substr(xe,2)&&!1!==pe&&(ht=ht.substr(2)),ht)},zi.getInt=function(_,D,I){null==I&&(I=-1);try{var j=_.substr(D,2);if("02"!=j&&"03"!=j)return I;var pe=zi.getV(_,D);return"02"==j?parseInt(pe,16):function ll(_){if(_.length%2!=0||null==(_=_.toLowerCase()).match(/^[0-9a-f]+$/))return-1;try{var D=_.substr(0,2);if("00"==D)return parseInt(_.substr(2),16);var I=parseInt(D,16);if(I>7)return-1;var j=_.substr(2),pe=parseInt(j,16).toString(2);"0"==pe&&(pe="00000000"),pe=pe.slice(0,0-I);var _e=parseInt(pe,2);return NaN==_e?-1:_e}catch{return-1}}(pe)}catch{return I}},zi.getOID=function(_,D,I){null==I&&(I=null);try{return"06"!=_.substr(D,2)?I:Ca(zi.getV(_,D))}catch{return I}},zi.getOIDName=function(_,D,I){null==I&&(I=null);try{var j=zi.getOID(_,D,I);if(j==I)return I;var pe=Ae.asn1.x509.OID.oid2name(j);return""==pe?j:pe}catch{return I}},zi.getString=function(_,D,I){null==I&&(I=null);try{return hs(zi.getV(_,D))}catch{return I}},zi.hextooidstr=function(_){var D=function($t,st){return $t.length>=st?$t:new Array(st-$t.length+1).join("0")+$t},I=[],j=_.substr(0,2),pe=parseInt(j,16);I[0]=new String(Math.floor(pe/40)),I[1]=new String(pe%40);for(var _e=_.substr(2),xe=[],He=0;He<_e.length/2;He++)xe.push(parseInt(_e.substr(2*He,2),16));var ht=[],yt="";for(He=0;He<xe.length;He++)128&xe[He]?yt+=D((127&xe[He]).toString(2),7):(yt+=D((127&xe[He]).toString(2),7),ht.push(new String(parseInt(yt,2))),yt="");var Gt=I.join(".");return ht.length>0&&(Gt=Gt+"."+ht.join(".")),Gt},zi.dump=function(_,D,I,j){var pe=zi,_e=pe.getV,xe=pe.dump,He=pe.getChildIdx,ht=_;_ instanceof Ae.asn1.ASN1Object&&(ht=_.tohex());var yt=function(ui,ne){return ui.length<=2*ne?ui:ui.substr(0,ne)+"..(total "+ui.length/2+"bytes).."+ui.substr(ui.length-ne,ne)};void 0===D&&(D={ommit_long_octet:32}),void 0===I&&(I=0),void 0===j&&(j="");var Nn,Gt=D.ommit_long_octet;if("01"==(Nn=ht.substr(I,2)))return"00"==($t=_e(ht,I))?j+"BOOLEAN FALSE\n":j+"BOOLEAN TRUE\n";if("02"==Nn)return j+"INTEGER "+yt($t=_e(ht,I),Gt)+"\n";if("03"==Nn){var $t=_e(ht,I);return pe.isASN1HEX($t.substr(2))?(st=j+"BITSTRING, encapsulates\n")+xe($t.substr(2),D,0,j+" "):j+"BITSTRING "+yt($t,Gt)+"\n"}if("04"==Nn)return $t=_e(ht,I),pe.isASN1HEX($t)?(st=j+"OCTETSTRING, encapsulates\n")+xe($t,D,0,j+" "):j+"OCTETSTRING "+yt($t,Gt)+"\n";if("05"==Nn)return j+"NULL\n";if("06"==Nn){var tt=_e(ht,I),Tt=Ae.asn1.ASN1Util.oidHexToInt(tt),Ye=Ae.asn1.x509.OID.oid2name(Tt),kt=Tt.replace(/\./g," ");return""!=Ye?j+"ObjectIdentifier "+Ye+" ("+kt+")\n":j+"ObjectIdentifier ("+kt+")\n"}if("0a"==Nn)return j+"ENUMERATED "+parseInt(_e(ht,I))+"\n";if("0c"==Nn)return j+"UTF8String '"+Ws(_e(ht,I))+"'\n";if("13"==Nn)return j+"PrintableString '"+Ws(_e(ht,I))+"'\n";if("14"==Nn)return j+"TeletexString '"+Ws(_e(ht,I))+"'\n";if("16"==Nn)return j+"IA5String '"+Ws(_e(ht,I))+"'\n";if("17"==Nn)return j+"UTCTime "+Ws(_e(ht,I))+"\n";if("18"==Nn)return j+"GeneralizedTime "+Ws(_e(ht,I))+"\n";if("1a"==Nn)return j+"VisualString '"+Ws(_e(ht,I))+"'\n";if("1e"==Nn)return j+"BMPString '"+Ii(_e(ht,I))+"'\n";if("30"==Nn){if("3000"==ht.substr(I,4))return j+"SEQUENCE {}\n";st=j+"SEQUENCE\n";var un=D;if((2==(It=He(ht,I)).length||3==It.length)&&"06"==ht.substr(It[0],2)&&"04"==ht.substr(It[It.length-1],2)){Ye=pe.oidname(_e(ht,It[0]));var xn=JSON.parse(JSON.stringify(D));xn.x509ExtName=Ye,un=xn}for(var In=0;In<It.length;In++)st+=xe(ht,un,It[In],j+" ");return st}if("31"==Nn){st=j+"SET\n";var It=He(ht,I);for(In=0;In<It.length;In++)st+=xe(ht,D,It[In],j+" ");return st}if(128&(Nn=parseInt(Nn,16))){var st,ri=31&Nn;if(32&Nn){for(st=j+"["+ri+"]\n",It=He(ht,I),In=0;In<It.length;In++)st+=xe(ht,D,It[In],j+" ");return st}return $t=_e(ht,I),zi.isASN1HEX($t)?(st=j+"["+ri+"]\n")+xe($t,D,0,j+" "):(("68747470"==$t.substr(0,8)||"subjectAltName"===D.x509ExtName&&2==ri)&&($t=Ws($t)),j+"["+ri+"] "+$t+"\n")}return j+"UNKNOWN("+Nn+") "+_e(ht,I)+"\n"},zi.parse=function(_){var I=zi.parse,j=zi.isASN1HEX,pe=zi.getV,_e=zi.getTLV,xe=zi.getChildIdx,He=Ae.asn1,ht=He.ASN1Util.oidHexToInt,yt=He.x509.OID.oid2name,Gt=Ws,$t=Ii,st=Bi,tt={"0c":"utf8str",12:"numstr",13:"prnstr",14:"telstr",16:"ia5str",17:"utctime",18:"gentime","1a":"visstr","1e":"bmpstr",30:"seq",31:"set"},Ye=_.substr(0,2),kt={},It=pe(_,0);if("01"==Ye)return"0101ff"==_?{bool:!0}:{bool:!1};if("02"==Ye)return{int:{hex:It}};if("03"==Ye)try{if("00"!=It.substr(0,2))throw"not encap";var un=It.substr(2);if(!j(un))throw"not encap";return{bitstr:{obj:I(un)}}}catch{var xn=null;return It.length<=10&&(xn=function lr(_){if("string"!=typeof _||_.length%2!=0||!_.match(/^[0-9a-f]+$/))return null;try{var D=parseInt(_.substr(0,2),16);if(D<0||7<D)return null;for(var I=_.substr(2),j="",pe=0;pe<I.length;pe+=2){var _e=I.substr(pe,2),xe=parseInt(_e,16).toString(2);j+=xe=("0000000"+xe).slice(-8)}return j.substr(0,j.length-D)}catch{return null}}(It)),null==xn?{bitstr:{hex:It}}:{bitstr:{bin:xn}}}else if("04"==Ye)try{if(!j(It))throw"not encap";return{octstr:{obj:I(It)}}}catch{return{octstr:{hex:It}}}else{if("05"==Ye)return{null:""};if("06"==Ye){var In=ht(It),Nn=yt(In);return""==Nn?{oid:In}:{oid:Nn}}if("0a"==Ye)return It.length>4?{enum:{hex:It}}:{enum:parseInt(It,16)};if("30"==Ye||"31"==Ye)return kt[tt[Ye]]=function(Ie){for(var _t=[],Nt=xe(Ie,0),en=0;en<Nt.length;en++){var fn=_e(Ie,Nt[en]),Cn=I(fn);_t.push(Cn)}return _t}(_),kt;if("14"==Ye){var ri=st(It);return kt[tt[Ye]]={str:ri},kt}if("1e"==Ye)return ri=$t(It),kt[tt[Ye]]={str:ri},kt;if(-1!=":0c:12:13:16:17:18:1a:".indexOf(Ye))return ri=Gt(It),kt[tt[Ye]]={str:ri},kt;if(Ye.match(/^8[0-9]$/))return null==(ri=Gt(It))|""==ri||null!=ri.match(/[\x00-\x1F\x7F-\x9F]/)||null!=ri.match(/[\u0000-\u001F\u0080\u2013\u009F]/)?{tag:{tag:Ye,explicit:!1,hex:It}}:{tag:{tag:Ye,explicit:!1,str:ri}};if(!Ye.match(/^a[0-9]$/)){var ui=new Ae.asn1.ASN1Object;return ui.hV=It,{asn1:{tlv:Ye+ui.getLengthHexFromValue()+It}}}try{if(!j(It))throw new Error("not encap");return{tag:{tag:Ye,explicit:!0,obj:I(It)}}}catch{return{tag:{tag:Ye,explicit:!0,hex:It}}}}},zi.isContextTag=function(_,D){var I,j;_=_.toLowerCase();try{I=parseInt(_,16)}catch{return-1}if(void 0===D)return 128==(192&I);try{return!(null==D.match(/^\[[0-9]+\]$/)||(j=parseInt(D.substr(1,D.length-1),10),j>31))&&128==(192&I)&&(31&I)==j}catch{return!1}},zi.isASN1HEX=function(_){var D=zi;if(_.length%2==1)return!1;var I=D.getVblen(_,0),j=_.substr(0,2),pe=D.getL(_,0);return _.length-j.length-pe.length==2*I},zi.checkStrictDER=function(_,D,I,j,pe){var _e=zi;if(void 0===I){if("string"!=typeof _)throw new Error("not hex string");if(_=_.toLowerCase(),!Ae.lang.String.isHex(_))throw new Error("not hex string");I=_.length,pe=(j=_.length/2)<128?1:Math.ceil(j.toString(16))+1}if(_e.getL(_,D).length>2*pe)throw new Error("L of TLV too long: idx="+D);var He=_e.getVblen(_,D);if(He>j)throw new Error("value of L too long than hex: idx="+D);var ht=_e.getTLV(_,D),yt=ht.length-2-_e.getL(_,D).length;if(yt!==2*He)throw new Error("V string length and L's value not the same:"+yt+"/"+2*He);if(0===D&&_.length!=ht.length)throw new Error("total length and TLV length unmatch:"+_.length+"!="+ht.length);var Gt=_.substr(D,2);if("02"===Gt){var $t=_e.getVidx(_,D);if("00"==_.substr($t,2)&&_.charCodeAt($t+2)<56)throw new Error("not least zeros for DER INTEGER")}if(32&parseInt(Gt,16)){for(var st=_e.getVblen(_,D),tt=0,Tt=_e.getChildIdx(_,D),Ye=0;Ye<Tt.length;Ye++)tt+=_e.getTLV(_,Tt[Ye]).length,_e.checkStrictDER(_,Tt[Ye],I,j,pe);if(2*st!=tt)throw new Error("sum of children's TLV length and L unmatch: "+2*st+"!="+tt)}},zi.oidname=function(_){var D=Ae.asn1;Ae.lang.String.isHex(_)&&(_=D.ASN1Util.oidHexToInt(_));var I=D.x509.OID.oid2name(_);return""===I&&(I=_),I},(typeof Ae>"u"||!Ae)&&(Ae={}),(typeof Ae.asn1>"u"||!Ae.asn1)&&(Ae.asn1={}),(typeof Ae.asn1.x509>"u"||!Ae.asn1.x509)&&(Ae.asn1.x509={}),Ae.asn1.x509.Certificate=function(_){Ae.asn1.x509.Certificate.superclass.constructor.call(this);var I=Ae.asn1,j=I.DERBitString,pe=I.DERSequence,_e=I.x509,xe=_e.TBSCertificate,He=_e.AlgorithmIdentifier;this.params=void 0,this.setByParam=function(ht){this.params=ht},this.sign=function(){var ht=this.params,yt=ht.sigalg;null!=ht.sigalg.name&&(yt=ht.sigalg.name);var Gt=ht.tbsobj.tohex(),$t=new Ae.crypto.Signature({alg:yt});$t.init(ht.cakey),$t.updateHex(Gt),ht.sighex=$t.sign()},this.getPEM=function(){return $n(this.tohex(),"CERTIFICATE")},this.tohex=function(){var ht=this.params;if((null==ht.tbsobj||null==ht.tbsobj)&&(ht.tbsobj=new xe(ht)),null==ht.sighex&&null!=ht.cakey&&this.sign(),null==ht.sighex)throw new Error("sighex or cakey parameter not defined");var yt=[];return yt.push(ht.tbsobj),yt.push(new He({name:ht.sigalg})),yt.push(new j({hex:"00"+ht.sighex})),new pe({array:yt}).tohex()},this.getEncodedHex=function(){return this.tohex()},null!=_&&(this.params=_)},Vi(Ae.asn1.x509.Certificate,Ae.asn1.ASN1Object),Ae.asn1.x509.TBSCertificate=function(_){Ae.asn1.x509.TBSCertificate.superclass.constructor.call(this);var I=Ae.asn1,j=I.x509,pe=I.DERTaggedObject,_e=I.DERInteger,xe=I.DERSequence,He=j.AlgorithmIdentifier,ht=j.Time,yt=j.X500Name,Gt=j.Extensions,$t=j.SubjectPublicKeyInfo;this.params=null,this.setByParam=function(st){this.params=st},this.tohex=function(){var st=[],tt=this.params;if(null!=tt.version||1!=tt.version){var Tt=2;null!=tt.version&&(Tt=tt.version-1);var Ye=new pe({obj:new _e({int:Tt})});st.push(Ye)}return st.push(new _e(tt.serial)),st.push(new He({name:tt.sigalg})),st.push(new yt(tt.issuer)),st.push(new xe({array:[new ht(tt.notbefore),new ht(tt.notafter)]})),st.push(new yt(tt.subject)),st.push(new $t(br.getKey(tt.sbjpubkey))),void 0!==tt.ext&&tt.ext.length>0&&st.push(new pe({tag:"a3",obj:new Gt(tt.ext)})),new Ae.asn1.DERSequence({array:st}).tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!==_&&this.setByParam(_)},Vi(Ae.asn1.x509.TBSCertificate,Ae.asn1.ASN1Object),Ae.asn1.x509.Extensions=function(_){Ae.asn1.x509.Extensions.superclass.constructor.call(this);var I=Ae.asn1,j=I.DERSequence,pe=I.x509;this.aParam=[],this.setByParam=function(_e){this.aParam=_e},this.tohex=function(){for(var _e=[],xe=0;xe<this.aParam.length;xe++){var He=this.aParam[xe],ht=He.extname,yt=null;if(null!=He.extn)yt=new pe.PrivateExtension(He);else if("subjectKeyIdentifier"==ht)yt=new pe.SubjectKeyIdentifier(He);else if("keyUsage"==ht)yt=new pe.KeyUsage(He);else if("subjectAltName"==ht)yt=new pe.SubjectAltName(He);else if("issuerAltName"==ht)yt=new pe.IssuerAltName(He);else if("basicConstraints"==ht)yt=new pe.BasicConstraints(He);else if("nameConstraints"==ht)yt=new pe.NameConstraints(He);else if("cRLDistributionPoints"==ht)yt=new pe.CRLDistributionPoints(He);else if("certificatePolicies"==ht)yt=new pe.CertificatePolicies(He);else if("policyMappings"==ht)yt=new pe.PolicyMappings(He);else if("policyConstraints"==ht)yt=new pe.PolicyConstraints(He);else if("inhibitAnyPolicy"==ht)yt=new pe.InhibitAnyPolicy(He);else if("authorityKeyIdentifier"==ht)yt=new pe.AuthorityKeyIdentifier(He);else if("extKeyUsage"==ht)yt=new pe.ExtKeyUsage(He);else if("authorityInfoAccess"==ht)yt=new pe.AuthorityInfoAccess(He);else if("cRLNumber"==ht)yt=new pe.CRLNumber(He);else if("cRLReason"==ht)yt=new pe.CRLReason(He);else if("ocspNonce"==ht)yt=new pe.OCSPNonce(He);else if("ocspNoCheck"==ht)yt=new pe.OCSPNoCheck(He);else if("adobeTimeStamp"==ht)yt=new pe.AdobeTimeStamp(He);else{if("subjectDirectoryAttributes"!=ht)throw new Error("extension not supported:"+JSON.stringify(He));yt=new pe.SubjectDirectoryAttributes(He)}null!=yt&&_e.push(yt)}return new j({array:_e}).tohex()},this.getEncodedHex=function(){return this.tohex()},null!=_&&this.setByParam(_)},Vi(Ae.asn1.x509.Extensions,Ae.asn1.ASN1Object),Ae.asn1.x509.Extension=function(_){Ae.asn1.x509.Extension.superclass.constructor.call(this);var j=Ae.asn1,pe=j.DERObjectIdentifier,_e=j.DEROctetString,He=j.DERBoolean,ht=j.DERSequence;this.tohex=function(){var yt=new pe({oid:this.oid}),Gt=new _e({hex:this.getExtnValueHex()}),$t=new Array;return $t.push(yt),this.critical&&$t.push(new He),$t.push(Gt),new ht({array:$t}).tohex()},this.getEncodedHex=function(){return this.tohex()},this.critical=!1,void 0!==_&&void 0!==_.critical&&(this.critical=_.critical)},Vi(Ae.asn1.x509.Extension,Ae.asn1.ASN1Object),Ae.asn1.x509.KeyUsage=function(_){Ae.asn1.x509.KeyUsage.superclass.constructor.call(this,_);var D=Error,I={digitalSignature:0,nonRepudiation:1,keyEncipherment:2,dataEncipherment:3,keyAgreement:4,keyCertSign:5,cRLSign:6,encipherOnly:7,decipherOnly:8};this.getExtnValueHex=function(){var j=this.getBinValue();return this.asn1ExtnValue=new Ae.asn1.DERBitString({bin:j}),this.asn1ExtnValue.tohex()},this.getBinValue=function(){var j=this.params;if("object"!=typeof j||"object"!=typeof j.names&&"string"!=typeof j.bin)throw new D("parameter not yet set");if(null!=j.names)return xa(j.names,I);if(null!=j.bin)return j.bin;throw new D("parameter not set properly")},this.oid="2.5.29.15",void 0!==_&&(this.params=_)},Vi(Ae.asn1.x509.KeyUsage,Ae.asn1.x509.Extension),Ae.asn1.x509.BasicConstraints=function(_){Ae.asn1.x509.BasicConstraints.superclass.constructor.call(this,_);var D=Ae.asn1,I=D.DERBoolean,j=D.DERInteger,pe=D.DERSequence;this.getExtnValueHex=function(){var He=new Array;this.cA&&He.push(new I),this.pathLen>-1&&He.push(new j({int:this.pathLen}));var ht=new pe({array:He});return this.asn1ExtnValue=ht,this.asn1ExtnValue.tohex()},this.oid="2.5.29.19",this.cA=!1,this.pathLen=-1,void 0!==_&&(void 0!==_.cA&&(this.cA=_.cA),void 0!==_.pathLen&&(this.pathLen=_.pathLen))},Vi(Ae.asn1.x509.BasicConstraints,Ae.asn1.x509.Extension),Ae.asn1.x509.CRLDistributionPoints=function(_){Ae.asn1.x509.CRLDistributionPoints.superclass.constructor.call(this,_);var I=Ae.asn1,j=I.x509;this.getExtnValueHex=function(){return this.asn1ExtnValue.tohex()},this.setByDPArray=function(pe){for(var _e=[],xe=0;xe<pe.length;xe++)if(pe[xe]instanceof Ae.asn1.ASN1Object)_e.push(pe[xe]);else{var He=new j.DistributionPoint(pe[xe]);_e.push(He)}this.asn1ExtnValue=new I.DERSequence({array:_e})},this.setByOneURI=function(pe){var _e=new j.DistributionPoint({fulluri:pe});this.setByDPArray([_e])},this.oid="2.5.29.31",void 0!==_&&(void 0!==_.array?this.setByDPArray(_.array):void 0!==_.uri&&this.setByOneURI(_.uri))},Vi(Ae.asn1.x509.CRLDistributionPoints,Ae.asn1.x509.Extension),Ae.asn1.x509.DistributionPoint=function(_){Ae.asn1.x509.DistributionPoint.superclass.constructor.call(this);var j=Ae.asn1,pe=j.x509.DistributionPointName;this.tohex=function(){var _e=new j.DERSequence;if(null!=this.asn1DP){var xe=new j.DERTaggedObject({explicit:!0,tag:"a0",obj:this.asn1DP});_e.appendASN1Object(xe)}return this.hTLV=_e.tohex(),this.hTLV},this.getEncodedHex=function(){return this.tohex()},void 0!==_&&(void 0!==_.dpobj?this.asn1DP=_.dpobj:void 0!==_.dpname?this.asn1DP=new pe(_.dpname):void 0!==_.fulluri&&(this.asn1DP=new pe({full:[{uri:_.fulluri}]})))},Vi(Ae.asn1.x509.DistributionPoint,Ae.asn1.ASN1Object),Ae.asn1.x509.DistributionPointName=function(_){Ae.asn1.x509.DistributionPointName.superclass.constructor.call(this);var xe=Ae.asn1,He=xe.DERTaggedObject;if(this.tohex=function(){if("full"!=this.type)throw new Error("currently type shall be 'full': "+this.type);return this.asn1Obj=new He({explicit:!1,tag:this.tag,obj:this.asn1V}),this.hTLV=this.asn1Obj.tohex(),this.hTLV},this.getEncodedHex=function(){return this.tohex()},void 0!==_)if(xe.x509.GeneralNames.prototype.isPrototypeOf(_))this.type="full",this.tag="a0",this.asn1V=_;else{if(void 0===_.full)throw new Error("This class supports GeneralNames only as argument");this.type="full",this.tag="a0",this.asn1V=new xe.x509.GeneralNames(_.full)}},Vi(Ae.asn1.x509.DistributionPointName,Ae.asn1.ASN1Object),Ae.asn1.x509.CertificatePolicies=function(_){Ae.asn1.x509.CertificatePolicies.superclass.constructor.call(this,_);var I=Ae.asn1,pe=I.DERSequence,_e=I.x509.PolicyInformation;this.params=null,this.getExtnValueHex=function(){for(var xe=[],He=0;He<this.params.array.length;He++)xe.push(new _e(this.params.array[He]));var ht=new pe({array:xe});return this.asn1ExtnValue=ht,this.asn1ExtnValue.tohex()},this.oid="2.5.29.32",void 0!==_&&(this.params=_)},Vi(Ae.asn1.x509.CertificatePolicies,Ae.asn1.x509.Extension),Ae.asn1.x509.PolicyInformation=function(_){Ae.asn1.x509.PolicyInformation.superclass.constructor.call(this,_);var D=Ae.asn1,I=D.DERSequence,j=D.DERObjectIdentifier,pe=D.x509.PolicyQualifierInfo;this.params=null,this.tohex=function(){if(void 0===this.params.policyoid&&void 0===this.params.array)throw new Error("parameter oid and array missing");var _e=[new j(this.params.policyoid)];if(void 0!==this.params.array){for(var xe=[],He=0;He<this.params.array.length;He++)xe.push(new pe(this.params.array[He]));xe.length>0&&_e.push(new I({array:xe}))}return new I({array:_e}).tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!==_&&(this.params=_)},Vi(Ae.asn1.x509.PolicyInformation,Ae.asn1.ASN1Object),Ae.asn1.x509.PolicyQualifierInfo=function(_){Ae.asn1.x509.PolicyQualifierInfo.superclass.constructor.call(this,_);var D=Ae.asn1,I=D.DERSequence,j=D.DERIA5String,pe=D.DERObjectIdentifier,_e=D.x509.UserNotice;this.params=null,this.tohex=function(){return void 0!==this.params.cps?new I({array:[new pe({oid:"1.3.6.1.5.5.7.2.1"}),new j({str:this.params.cps})]}).tohex():null!=this.params.unotice?new I({array:[new pe({oid:"1.3.6.1.5.5.7.2.2"}),new _e(this.params.unotice)]}).tohex():void 0},this.getEncodedHex=function(){return this.tohex()},void 0!==_&&(this.params=_)},Vi(Ae.asn1.x509.PolicyQualifierInfo,Ae.asn1.ASN1Object),Ae.asn1.x509.UserNotice=function(_){Ae.asn1.x509.UserNotice.superclass.constructor.call(this,_);var D=Ae.asn1.DERSequence,j=Ae.asn1.x509.DisplayText,pe=Ae.asn1.x509.NoticeReference;this.params=null,this.tohex=function(){var _e=[];return void 0!==this.params.noticeref&&_e.push(new pe(this.params.noticeref)),void 0!==this.params.exptext&&_e.push(new j(this.params.exptext)),new D({array:_e}).tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!==_&&(this.params=_)},Vi(Ae.asn1.x509.UserNotice,Ae.asn1.ASN1Object),Ae.asn1.x509.NoticeReference=function(_){Ae.asn1.x509.NoticeReference.superclass.constructor.call(this,_);var D=Ae.asn1.DERSequence,I=Ae.asn1.DERInteger,j=Ae.asn1.x509.DisplayText;this.params=null,this.tohex=function(){var pe=[];if(void 0!==this.params.org&&pe.push(new j(this.params.org)),void 0!==this.params.noticenum){for(var _e=[],xe=this.params.noticenum,He=0;He<xe.length;He++)_e.push(new I(xe[He]));pe.push(new D({array:_e}))}if(0==pe.length)throw new Error("parameter is empty");return new D({array:pe}).tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!==_&&(this.params=_)},Vi(Ae.asn1.x509.NoticeReference,Ae.asn1.ASN1Object),Ae.asn1.x509.DisplayText=function(_){Ae.asn1.x509.DisplayText.superclass.constructor.call(this,_),this.hT="0c",void 0!==_&&("ia5"===_.type?this.hT="16":"vis"===_.type?this.hT="1a":"bmp"===_.type&&(this.hT="1e"))},Vi(Ae.asn1.x509.DisplayText,Ae.asn1.DERAbstractString),Ae.asn1.x509.PolicyMappings=function(_){Ae.asn1.x509.PolicyMappings.superclass.constructor.call(this,_);var pe=Ae.asn1.ASN1Util.newObject;this.params=null,this.getExtnValueHex=function(){for(var _e=this.params,xe=[],He=0;He<_e.array.length;He++){var ht=_e.array[He];xe.push({seq:[{oid:ht[0]},{oid:ht[1]}]})}return this.asn1ExtnValue=pe({seq:xe}),this.asn1ExtnValue.tohex()},this.oid="2.5.29.33",void 0!==_&&(this.params=_)},Vi(Ae.asn1.x509.PolicyMappings,Ae.asn1.x509.Extension),Ae.asn1.x509.PolicyConstraints=function(_){Ae.asn1.x509.PolicyConstraints.superclass.constructor.call(this,_);var pe=Ae.asn1.ASN1Util.newObject;this.params=null,this.getExtnValueHex=function(){var _e=this.params,xe=[];return null!=_e.reqexp&&xe.push({tag:{tagi:"80",obj:{int:_e.reqexp}}}),null!=_e.inhibit&&xe.push({tag:{tagi:"81",obj:{int:_e.inhibit}}}),this.asn1ExtnValue=pe({seq:xe}),this.asn1ExtnValue.tohex()},this.oid="2.5.29.36",void 0!==_&&(this.params=_)},Vi(Ae.asn1.x509.PolicyConstraints,Ae.asn1.x509.Extension),Ae.asn1.x509.InhibitAnyPolicy=function(_){Ae.asn1.x509.InhibitAnyPolicy.superclass.constructor.call(this,_);var pe=Ae.asn1.ASN1Util.newObject;this.params=null,this.getExtnValueHex=function(){return this.asn1ExtnValue=pe({int:this.params.skip}),this.asn1ExtnValue.tohex()},this.oid="2.5.29.54",void 0!==_&&(this.params=_)},Vi(Ae.asn1.x509.InhibitAnyPolicy,Ae.asn1.x509.Extension),Ae.asn1.x509.NameConstraints=function(_){Ae.asn1.x509.NameConstraints.superclass.constructor.call(this,_);var I=Ae.asn1,pe=I.ASN1Util.newObject,_e=I.x509.GeneralSubtree;this.params=null,this.getExtnValueHex=function(){var xe=this.params,He=[];if(null!=xe.permit&&null!=xe.permit.length){for(var ht=[],yt=0;yt<xe.permit.length;yt++)ht.push(new _e(xe.permit[yt]));He.push({tag:{tagi:"a0",obj:{seq:ht}}})}if(null!=xe.exclude&&null!=xe.exclude.length){var Gt=[];for(yt=0;yt<xe.exclude.length;yt++)Gt.push(new _e(xe.exclude[yt]));He.push({tag:{tagi:"a1",obj:{seq:Gt}}})}return this.asn1ExtnValue=pe({seq:He}),this.asn1ExtnValue.tohex()},this.oid="2.5.29.30",void 0!==_&&(this.params=_)},Vi(Ae.asn1.x509.NameConstraints,Ae.asn1.x509.Extension),Ae.asn1.x509.GeneralSubtree=function(_){Ae.asn1.x509.GeneralSubtree.superclass.constructor.call(this);var D=Ae.asn1,j=D.x509.GeneralName,pe=D.ASN1Util.newObject;this.params=null,this.setByParam=function(_e){this.params=_e},this.tohex=function(){var _e=this.params,xe=[new j(_e)];return null!=_e.min&&xe.push({tag:{tagi:"80",obj:{int:_e.min}}}),null!=_e.max&&xe.push({tag:{tagi:"81",obj:{int:_e.max}}}),pe({seq:xe}).tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!==_&&this.setByParam(_)},Vi(Ae.asn1.x509.GeneralSubtree,Ae.asn1.ASN1Object),Ae.asn1.x509.ExtKeyUsage=function(_){Ae.asn1.x509.ExtKeyUsage.superclass.constructor.call(this,_);var I=Ae.asn1;this.setPurposeArray=function(j){this.asn1ExtnValue=new I.DERSequence;for(var pe=0;pe<j.length;pe++){var _e=new I.DERObjectIdentifier(j[pe]);this.asn1ExtnValue.appendASN1Object(_e)}},this.getExtnValueHex=function(){return this.asn1ExtnValue.tohex()},this.oid="2.5.29.37",void 0!==_&&void 0!==_.array&&this.setPurposeArray(_.array)},Vi(Ae.asn1.x509.ExtKeyUsage,Ae.asn1.x509.Extension),Ae.asn1.x509.AuthorityKeyIdentifier=function(_){Ae.asn1.x509.AuthorityKeyIdentifier.superclass.constructor.call(this,_);var I=Ae.asn1,j=I.DERTaggedObject,pe=I.x509.GeneralNames;this.asn1KID=null,this.asn1CertIssuer=null,this.asn1CertSN=null,this.getExtnValueHex=function(){var xe=new Array;this.asn1KID&&xe.push(new j({explicit:!1,tag:"80",obj:this.asn1KID})),this.asn1CertIssuer&&xe.push(new j({explicit:!1,tag:"a1",obj:new pe([{dn:this.asn1CertIssuer}])})),this.asn1CertSN&&xe.push(new j({explicit:!1,tag:"82",obj:this.asn1CertSN}));var He=new I.DERSequence({array:xe});return this.asn1ExtnValue=He,this.asn1ExtnValue.tohex()},this.setKIDByParam=function(xe){if(void 0!==xe.str||void 0!==xe.hex)this.asn1KID=new Ae.asn1.DEROctetString(xe);else if("object"==typeof xe&&Ae.crypto.Util.isKey(xe)||"string"==typeof xe&&-1!=xe.indexOf("BEGIN ")){var He=xe;"string"==typeof xe&&(He=br.getKey(xe));var ht=br.getKeyID(He);this.asn1KID=new Ae.asn1.DEROctetString({hex:ht})}},this.setCertIssuerByParam=function(xe){void 0!==xe.str||void 0!==xe.ldapstr||void 0!==xe.hex||void 0!==xe.certsubject||void 0!==xe.certissuer?this.asn1CertIssuer=new Ae.asn1.x509.X500Name(xe):"string"==typeof xe&&-1!=xe.indexOf("BEGIN ")&&-1!=xe.indexOf("CERTIFICATE")&&(this.asn1CertIssuer=new Ae.asn1.x509.X500Name({certissuer:xe}))},this.setCertSNByParam=function(xe){if(void 0!==xe.str||void 0!==xe.bigint||void 0!==xe.hex)this.asn1CertSN=new Ae.asn1.DERInteger(xe);else if("string"==typeof xe&&-1!=xe.indexOf("BEGIN ")&&xe.indexOf("CERTIFICATE")){var He=new Mr;He.readCertPEM(xe);var ht=He.getSerialNumberHex();this.asn1CertSN=new Ae.asn1.DERInteger({hex:ht})}},this.oid="2.5.29.35",void 0!==_&&(void 0!==_.kid&&this.setKIDByParam(_.kid),void 0!==_.issuer&&this.setCertIssuerByParam(_.issuer),void 0!==_.sn&&this.setCertSNByParam(_.sn),void 0!==_.issuersn&&"string"==typeof _.issuersn&&-1!=_.issuersn.indexOf("BEGIN ")&&_.issuersn.indexOf("CERTIFICATE")&&(this.setCertSNByParam(_.issuersn),this.setCertIssuerByParam(_.issuersn)))},Vi(Ae.asn1.x509.AuthorityKeyIdentifier,Ae.asn1.x509.Extension),Ae.asn1.x509.SubjectKeyIdentifier=function(_){Ae.asn1.x509.SubjectKeyIdentifier.superclass.constructor.call(this,_);var j=Ae.asn1.DEROctetString;this.asn1KID=null,this.getExtnValueHex=function(){return this.asn1ExtnValue=this.asn1KID,this.asn1ExtnValue.tohex()},this.setKIDByParam=function(pe){if(void 0!==pe.str||void 0!==pe.hex)this.asn1KID=new j(pe);else if("object"==typeof pe&&Ae.crypto.Util.isKey(pe)||"string"==typeof pe&&-1!=pe.indexOf("BEGIN")){var _e=pe;"string"==typeof pe&&(_e=br.getKey(pe));var xe=br.getKeyID(_e);this.asn1KID=new Ae.asn1.DEROctetString({hex:xe})}},this.oid="2.5.29.14",void 0!==_&&void 0!==_.kid&&this.setKIDByParam(_.kid)},Vi(Ae.asn1.x509.SubjectKeyIdentifier,Ae.asn1.x509.Extension),Ae.asn1.x509.AuthorityInfoAccess=function(_){Ae.asn1.x509.AuthorityInfoAccess.superclass.constructor.call(this,_),this.setAccessDescriptionArray=function(D){for(var I=new Array,pe=Ae.asn1,_e=pe.DERSequence,xe=pe.DERObjectIdentifier,He=pe.x509.GeneralName,ht=0;ht<D.length;ht++){var yt,Gt=D[ht];if(void 0!==Gt.ocsp)yt=new _e({array:[new xe({oid:"1.3.6.1.5.5.7.48.1"}),new He({uri:Gt.ocsp})]});else{if(void 0===Gt.caissuer)throw new Error("unknown AccessMethod parameter: "+JSON.stringify(Gt));yt=new _e({array:[new xe({oid:"1.3.6.1.5.5.7.48.2"}),new He({uri:Gt.caissuer})]})}I.push(yt)}this.asn1ExtnValue=new _e({array:I})},this.getExtnValueHex=function(){return this.asn1ExtnValue.tohex()},this.oid="1.3.6.1.5.5.7.1.1",void 0!==_&&void 0!==_.array&&this.setAccessDescriptionArray(_.array)},Vi(Ae.asn1.x509.AuthorityInfoAccess,Ae.asn1.x509.Extension),Ae.asn1.x509.SubjectAltName=function(_){Ae.asn1.x509.SubjectAltName.superclass.constructor.call(this,_),this.setNameArray=function(D){this.asn1ExtnValue=new Ae.asn1.x509.GeneralNames(D)},this.getExtnValueHex=function(){return this.asn1ExtnValue.tohex()},this.oid="2.5.29.17",void 0!==_&&void 0!==_.array&&this.setNameArray(_.array)},Vi(Ae.asn1.x509.SubjectAltName,Ae.asn1.x509.Extension),Ae.asn1.x509.IssuerAltName=function(_){Ae.asn1.x509.IssuerAltName.superclass.constructor.call(this,_),this.setNameArray=function(D){this.asn1ExtnValue=new Ae.asn1.x509.GeneralNames(D)},this.getExtnValueHex=function(){return this.asn1ExtnValue.tohex()},this.oid="2.5.29.18",void 0!==_&&void 0!==_.array&&this.setNameArray(_.array)},Vi(Ae.asn1.x509.IssuerAltName,Ae.asn1.x509.Extension),Ae.asn1.x509.SubjectDirectoryAttributes=function(_){Ae.asn1.x509.SubjectDirectoryAttributes.superclass.constructor.call(this,_);var D=Ae.asn1,I=D.DERSequence,j=D.ASN1Util.newObject,pe=D.x509.OID.name2oid;this.params=null,this.getExtnValueHex=function(){for(var _e=[],xe=0;xe<this.params.array.length;xe++){var He=this.params.array[xe];if(null==He.attr||null==He.array){var yt={seq:[{oid:"1.2.3.4"},{set:[{utf8str:"DE"}]}]};if("dateOfBirth"==He.attr)yt.seq[0].oid=pe(He.attr),yt.seq[1].set[0]={gentime:He.str};else if("placeOfBirth"==He.attr)yt.seq[0].oid=pe(He.attr),yt.seq[1].set[0]={utf8str:He.str};else if("gender"==He.attr)yt.seq[0].oid=pe(He.attr),yt.seq[1].set[0]={prnstr:He.str};else if("countryOfCitizenship"==He.attr)yt.seq[0].oid=pe(He.attr),yt.seq[1].set[0]={prnstr:He.str};else{if("countryOfResidence"!=He.attr)throw new Error("unsupported attribute: "+He.attr);yt.seq[0].oid=pe(He.attr),yt.seq[1].set[0]={prnstr:He.str}}_e.push(new j(yt))}else _e.push(j({seq:[{oid:He.attr},{set:He.array}]}))}var Gt=new I({array:_e});return this.asn1ExtnValue=Gt,this.asn1ExtnValue.tohex()},this.oid="2.5.29.9",void 0!==_&&(this.params=_)},Vi(Ae.asn1.x509.SubjectDirectoryAttributes,Ae.asn1.x509.Extension),Ae.asn1.x509.PrivateExtension=function(_){Ae.asn1.x509.PrivateExtension.superclass.constructor.call(this,_);var I=Ae.lang.String.isHex,j=Ae.asn1,pe=j.x509.OID.name2oid,_e=j.ASN1Util.newObject;this.params=null,this.setByParam=function(xe){this.oid=pe(xe.extname),this.params=xe},this.getExtnValueHex=function(){if(null==this.params.extname||null==this.params.extn)throw new Error("extname or extnhex not specified");var xe=this.params.extn;if("string"==typeof xe&&I(xe))return xe;if("object"==typeof xe)try{return _e(xe).tohex()}catch{}throw new Error("unsupported extn value")},null!=_&&this.setByParam(_)},Vi(Ae.asn1.x509.PrivateExtension,Ae.asn1.x509.Extension),Ae.asn1.x509.CRL=function(_){Ae.asn1.x509.CRL.superclass.constructor.call(this);var I=Ae.asn1,j=I.DERSequence,pe=I.DERBitString,_e=I.x509,xe=_e.AlgorithmIdentifier,He=_e.TBSCertList;this.params=void 0,this.setByParam=function(ht){this.params=ht},this.sign=function(){var ht=new He(this.params).tohex(),yt=new Ae.crypto.Signature({alg:this.params.sigalg});yt.init(this.params.cakey),yt.updateHex(ht);var Gt=yt.sign();this.params.sighex=Gt},this.getPEM=function(){return $n(this.tohex(),"X509 CRL")},this.tohex=function(){var ht=this.params;if(null==ht.tbsobj&&(ht.tbsobj=new He(ht)),null==ht.sighex&&null!=ht.cakey&&this.sign(),null==ht.sighex)throw new Error("sighex or cakey parameter not defined");var yt=[];return yt.push(ht.tbsobj),yt.push(new xe({name:ht.sigalg})),yt.push(new pe({hex:"00"+ht.sighex})),new j({array:yt}).tohex()},this.getEncodedHex=function(){return this.tohex()},null!=_&&(this.params=_)},Vi(Ae.asn1.x509.CRL,Ae.asn1.ASN1Object),Ae.asn1.x509.TBSCertList=function(_){Ae.asn1.x509.TBSCertList.superclass.constructor.call(this);var I=Ae.asn1,j=I.DERInteger,pe=I.DERSequence,_e=I.DERTaggedObject,He=I.x509,ht=He.AlgorithmIdentifier,yt=He.Time,Gt=He.Extensions,$t=He.X500Name;this.params=null,this.setByParam=function(st){this.params=st},this.getRevCertSequence=function(){for(var st=[],tt=this.params.revcert,Tt=0;Tt<tt.length;Tt++){var Ye=[new j(tt[Tt].sn),new yt(tt[Tt].date)];null!=tt[Tt].ext&&Ye.push(new Gt(tt[Tt].ext)),st.push(new pe({array:Ye}))}return new pe({array:st})},this.tohex=function(){var st=[],tt=this.params;if(null!=tt.version){var Ye=new j({int:tt.version-1});st.push(Ye)}if(st.push(new ht({name:tt.sigalg})),st.push(new $t(tt.issuer)),st.push(new yt(tt.thisupdate)),null!=tt.nextupdate&&st.push(new yt(tt.nextupdate)),null!=tt.revcert&&st.push(this.getRevCertSequence()),null!=tt.ext){var kt=new Gt(tt.ext);st.push(new _e({tag:"a0",explicit:!0,obj:kt}))}return new pe({array:st}).tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!==_&&this.setByParam(_)},Vi(Ae.asn1.x509.TBSCertList,Ae.asn1.ASN1Object),Ae.asn1.x509.CRLEntry=function(_){Ae.asn1.x509.CRLEntry.superclass.constructor.call(this);var pe=Ae.asn1;this.setCertSerial=function(_e){this.sn=new pe.DERInteger(_e)},this.setRevocationDate=function(_e){this.time=new pe.x509.Time(_e)},this.tohex=function(){var _e=new pe.DERSequence({array:[this.sn,this.time]});return this.TLV=_e.tohex(),this.TLV},this.getEncodedHex=function(){return this.tohex()},void 0!==_&&(void 0!==_.time&&this.setRevocationDate(_.time),void 0!==_.sn&&this.setCertSerial(_.sn))},Vi(Ae.asn1.x509.CRLEntry,Ae.asn1.ASN1Object),Ae.asn1.x509.CRLNumber=function(_){Ae.asn1.x509.CRLNumber.superclass.constructor.call(this,_),this.params=void 0,this.getExtnValueHex=function(){return this.asn1ExtnValue=new Ae.asn1.DERInteger(this.params.num),this.asn1ExtnValue.tohex()},this.oid="2.5.29.20",null!=_&&(this.params=_)},Vi(Ae.asn1.x509.CRLNumber,Ae.asn1.x509.Extension),Ae.asn1.x509.CRLReason=function(_){Ae.asn1.x509.CRLReason.superclass.constructor.call(this,_),this.params=void 0,this.getExtnValueHex=function(){return this.asn1ExtnValue=new Ae.asn1.DEREnumerated(this.params.code),this.asn1ExtnValue.tohex()},this.oid="2.5.29.21",null!=_&&(this.params=_)},Vi(Ae.asn1.x509.CRLReason,Ae.asn1.x509.Extension),Ae.asn1.x509.OCSPNonce=function(_){Ae.asn1.x509.OCSPNonce.superclass.constructor.call(this,_),this.params=void 0,this.getExtnValueHex=function(){return this.asn1ExtnValue=new Ae.asn1.DEROctetString(this.params),this.asn1ExtnValue.tohex()},this.oid="1.3.6.1.5.5.7.48.1.2",null!=_&&(this.params=_)},Vi(Ae.asn1.x509.OCSPNonce,Ae.asn1.x509.Extension),Ae.asn1.x509.OCSPNoCheck=function(_){Ae.asn1.x509.OCSPNoCheck.superclass.constructor.call(this,_),this.params=void 0,this.getExtnValueHex=function(){return this.asn1ExtnValue=new Ae.asn1.DERNull,this.asn1ExtnValue.tohex()},this.oid="1.3.6.1.5.5.7.48.1.5",null!=_&&(this.params=_)},Vi(Ae.asn1.x509.OCSPNoCheck,Ae.asn1.x509.Extension),Ae.asn1.x509.AdobeTimeStamp=function(_){Ae.asn1.x509.AdobeTimeStamp.superclass.constructor.call(this,_);var I=Ae.asn1,j=I.DERInteger,pe=I.DERBoolean,_e=I.DERSequence,xe=I.x509.GeneralName;this.params=null,this.getExtnValueHex=function(){var He=this.params,ht=[new j(1)];return ht.push(new xe({uri:He.uri})),null!=He.reqauth&&ht.push(new pe(He.reqauth)),this.asn1ExtnValue=new _e({array:ht}),this.asn1ExtnValue.tohex()},this.oid="1.2.840.113583.1.1.9.1",void 0!==_&&this.setByParam(_)},Vi(Ae.asn1.x509.AdobeTimeStamp,Ae.asn1.x509.Extension),Ae.asn1.x509.X500Name=function(_){Ae.asn1.x509.X500Name.superclass.constructor.call(this),this.asn1Array=[],this.paramArray=[],this.sRule="utf8";var I=Ae.asn1,j=I.x509,pe=j.RDN;this.setByString=function(xe,He){void 0!==He&&(this.sRule=He);var ht=xe.split("/");ht.shift();for(var yt=[],Gt=0;Gt<ht.length;Gt++)if(ht[Gt].match(/^[^=]+=.+$/))yt.push(ht[Gt]);else{var $t=yt.length-1;yt[$t]=yt[$t]+"/"+ht[Gt]}for(Gt=0;Gt<yt.length;Gt++)this.asn1Array.push(new pe({str:yt[Gt],rule:this.sRule}))},this.setByLdapString=function(xe,He){void 0!==He&&(this.sRule=He);var ht=j.X500Name.ldapToCompat(xe);this.setByString(ht,He)},this.setByObject=function(xe,He){for(var ht in void 0!==He&&(this.sRule=He),xe)if(xe.hasOwnProperty(ht)){var yt=new pe({str:ht+"="+xe[ht],rule:this.sRule});this.asn1Array?this.asn1Array.push(yt):this.asn1Array=[yt]}},this.setByParam=function(xe){if(void 0!==xe.rule&&(this.sRule=xe.rule),void 0!==xe.array)this.paramArray=xe.array;else if(void 0!==xe.str)this.setByString(xe.str);else if(void 0!==xe.ldapstr)this.setByLdapString(xe.ldapstr);else if(void 0!==xe.hex)this.hTLV=xe.hex;else if(void 0!==xe.certissuer)(He=new Mr).readCertPEM(xe.certissuer),this.hTLV=He.getIssuerHex();else if(void 0!==xe.certsubject){var He;(He=new Mr).readCertPEM(xe.certsubject),this.hTLV=He.getSubjectHex()}else"object"==typeof xe&&void 0===xe.certsubject&&void 0===xe.certissuer&&this.setByObject(xe)},this.tohex=function(){if("string"==typeof this.hTLV)return this.hTLV;if(0==this.asn1Array.length&&this.paramArray.length>0)for(var xe=0;xe<this.paramArray.length;xe++){var He={array:this.paramArray[xe]};"utf8"!=this.sRule&&(He.rule=this.sRule);var ht=new pe(He);this.asn1Array.push(ht)}var yt=new I.DERSequence({array:this.asn1Array});return this.hTLV=yt.tohex(),this.hTLV},this.getEncodedHex=function(){return this.tohex()},void 0!==_&&this.setByParam(_)},Vi(Ae.asn1.x509.X500Name,Ae.asn1.ASN1Object),Ae.asn1.x509.X500Name.compatToLDAP=function(_){if("/"!==_.substr(0,1))throw"malformed input";var I=(_=_.substr(1)).split("/");return I.reverse(),I=I.map(function(j){return j.replace(/,/,"\\,")}),I.join(",")},Ae.asn1.x509.X500Name.onelineToLDAP=function(_){return Ae.asn1.x509.X500Name.compatToLDAP(_)},Ae.asn1.x509.X500Name.ldapToCompat=function(_){for(var D=_.split(","),I=!1,j=[],pe=0;D.length>0;pe++){var _e=D.shift();if(!0===I){var He=(j.pop()+","+_e).replace(/\\,/g,",");j.push(He),I=!1}else j.push(_e);"\\"===_e.substr(-1,1)&&(I=!0)}return j=j.map(function(ht){return ht.replace("/","\\/")}),j.reverse(),"/"+j.join("/")},Ae.asn1.x509.X500Name.ldapToOneline=function(_){return Ae.asn1.x509.X500Name.ldapToCompat(_)},Ae.asn1.x509.RDN=function(_){Ae.asn1.x509.RDN.superclass.constructor.call(this),this.asn1Array=[],this.paramArray=[],this.sRule="utf8";var D=Ae.asn1.x509.AttributeTypeAndValue;this.setByParam=function(I){void 0!==I.rule&&(this.sRule=I.rule),void 0!==I.str&&this.addByMultiValuedString(I.str),void 0!==I.array&&(this.paramArray=I.array)},this.addByString=function(I){this.asn1Array.push(new Ae.asn1.x509.AttributeTypeAndValue({str:I,rule:this.sRule}))},this.addByMultiValuedString=function(I){for(var j=Ae.asn1.x509.RDN.parseString(I),pe=0;pe<j.length;pe++)this.addByString(j[pe])},this.tohex=function(){if(0==this.asn1Array.length&&this.paramArray.length>0)for(var I=0;I<this.paramArray.length;I++){var j=this.paramArray[I];void 0!==j.rule&&"utf8"!=this.sRule&&(j.rule=this.sRule);var pe=new D(j);this.asn1Array.push(pe)}var _e=new Ae.asn1.DERSet({array:this.asn1Array});return this.TLV=_e.tohex(),this.TLV},this.getEncodedHex=function(){return this.tohex()},void 0!==_&&this.setByParam(_)},Vi(Ae.asn1.x509.RDN,Ae.asn1.ASN1Object),Ae.asn1.x509.RDN.parseString=function(_){for(var D=_.split(/\+/),I=!1,j=[],pe=0;D.length>0;pe++){var _e=D.shift();if(!0===I){var He=(j.pop()+"+"+_e).replace(/\\\+/g,"+");j.push(He),I=!1}else j.push(_e);"\\"===_e.substr(-1,1)&&(I=!0)}var ht=!1,yt=[];for(pe=0;j.length>0;pe++){if(_e=j.shift(),!0===ht){var Gt=yt.pop();_e.match(/"$/)?(He=(Gt+"+"+_e).replace(/^([^=]+)="(.*)"$/,"$1=$2"),yt.push(He),ht=!1):yt.push(Gt+"+"+_e)}else yt.push(_e);_e.match(/^[^=]+="/)&&(ht=!0)}return yt},Ae.asn1.x509.AttributeTypeAndValue=function(_){Ae.asn1.x509.AttributeTypeAndValue.superclass.constructor.call(this),this.sRule="utf8",this.sType=null,this.sValue=null,this.dsType=null;var I=Ae.asn1,j=I.DERSequence,pe=I.DERUTF8String,_e=I.DERPrintableString,xe=I.DERTeletexString,He=I.DERIA5String,ht=I.DERVisibleString,yt=I.DERBMPString,Gt=Ae.lang.String.isMail,$t=Ae.lang.String.isPrintable;this.setByParam=function(st){if(void 0!==st.rule&&(this.sRule=st.rule),void 0!==st.ds&&(this.dsType=st.ds),void 0===st.value&&void 0!==st.str){var Tt=st.str.match(/^([^=]+)=(.+)$/);if(!Tt)throw new Error("malformed attrTypeAndValueStr: "+attrTypeAndValueStr);this.sType=Tt[1],this.sValue=Tt[2]}else this.sType=st.type,this.sValue=st.value},this.setByString=function(st,tt){void 0!==tt&&(this.sRule=tt);var Tt=st.match(/^([^=]+)=(.+)$/);if(!Tt)throw new Error("malformed attrTypeAndValueStr: "+attrTypeAndValueStr);this.setByAttrTypeAndValueStr(Tt[1],Tt[2])},this._getDsType=function(){var st=this.sType,tt=this.sValue,Tt=this.sRule;return"prn"===Tt?"CN"==st&&Gt(tt)?"ia5":$t(tt)?"prn":"utf8":"utf8"===Tt?"CN"==st&&Gt(tt)?"ia5":"C"==st?"prn":"utf8":"utf8"},this.setByAttrTypeAndValueStr=function(st,tt,Tt){void 0!==Tt&&(this.sRule=Tt),this.sType=st,this.sValue=tt},this.getValueObj=function(st,tt){if("utf8"==st)return new pe({str:tt});if("prn"==st)return new _e({str:tt});if("tel"==st)return new xe({str:tt});if("ia5"==st)return new He({str:tt});if("vis"==st)return new ht({str:tt});if("bmp"==st)return new yt({str:tt});throw new Error("unsupported directory string type: type="+st+" value="+tt)},this.tohex=function(){null==this.dsType&&(this.dsType=this._getDsType());var st=Ae.asn1.x509.OID.atype2obj(this.sType),tt=this.getValueObj(this.dsType,this.sValue),Tt=new j({array:[st,tt]});return this.TLV=Tt.tohex(),this.TLV},this.getEncodedHex=function(){return this.tohex()},void 0!==_&&this.setByParam(_)},Vi(Ae.asn1.x509.AttributeTypeAndValue,Ae.asn1.ASN1Object),Ae.asn1.x509.SubjectPublicKeyInfo=function(_){Ae.asn1.x509.SubjectPublicKeyInfo.superclass.constructor.call(this);var pe=Ae.asn1,_e=pe.DERInteger,xe=pe.DERBitString,He=pe.DERObjectIdentifier,ht=pe.DERSequence,yt=pe.ASN1Util.newObject,$t=pe.x509.AlgorithmIdentifier;this.getASN1Object=function(){if(null==this.asn1AlgId||null==this.asn1SubjPKey)throw"algId and/or subjPubKey not set";return new ht({array:[this.asn1AlgId,this.asn1SubjPKey]})},this.tohex=function(){var Ye=this.getASN1Object();return this.hTLV=Ye.tohex(),this.hTLV},this.getEncodedHex=function(){return this.tohex()},this.setPubKey=function(Ye){try{if(Ye instanceof Rr){var It=yt({seq:[{int:{bigint:Ye.n}},{int:{int:Ye.e}}]}).tohex();this.asn1AlgId=new $t({name:"rsaEncryption"}),this.asn1SubjPKey=new xe({hex:"00"+It})}}catch{}try{if(Ye instanceof Ae.crypto.ECDSA){var un=new He({name:Ye.curveName});this.asn1AlgId=new $t({name:"ecPublicKey",asn1params:un}),this.asn1SubjPKey=new xe({hex:"00"+Ye.pubKeyHex})}}catch{}try{if(Ye instanceof Ae.crypto.DSA){un=new yt({seq:[{int:{bigint:Ye.p}},{int:{bigint:Ye.q}},{int:{bigint:Ye.g}}]}),this.asn1AlgId=new $t({name:"dsa",asn1params:un});var xn=new _e({bigint:Ye.y});this.asn1SubjPKey=new xe({hex:"00"+xn.tohex()})}}catch{}},void 0!==_&&this.setPubKey(_)},Vi(Ae.asn1.x509.SubjectPublicKeyInfo,Ae.asn1.ASN1Object),Ae.asn1.x509.Time=function(_){Ae.asn1.x509.Time.superclass.constructor.call(this);var pe=Ae.asn1,_e=pe.DERUTCTime,xe=pe.DERGeneralizedTime;this.params=null,this.type=null,this.setTimeParams=function(He){this.timeParams=He},this.setByParam=function(He){this.params=He},this.getType=function(He){return He.match(/^[0-9]{12}Z$/)?"utc":He.match(/^[0-9]{14}Z$/)?"gen":He.match(/^[0-9]{12}\.[0-9]+Z$/)?"utc":He.match(/^[0-9]{14}\.[0-9]+Z$/)?"gen":null},this.tohex=function(){var He=this.params,ht=null;if("string"==typeof He&&(He={str:He}),null!=He&&He.str&&(null==He.type||null==He.type)&&(He.type=this.getType(He.str)),null!=He&&He.str?("utc"==He.type&&(ht=new _e(He.str)),"gen"==He.type&&(ht=new xe(He.str))):ht="gen"==this.type?new xe:new _e,null==ht)throw new Error("wrong setting for Time");return this.TLV=ht.tohex(),this.TLV},this.getEncodedHex=function(){return this.tohex()},null!=_&&this.setByParam(_)},Ae.asn1.x509.Time_bak=function(_){Ae.asn1.x509.Time_bak.superclass.constructor.call(this);var pe=Ae.asn1,_e=pe.DERUTCTime,xe=pe.DERGeneralizedTime;this.setTimeParams=function(He){this.timeParams=He},this.tohex=function(){var He=null;return He=null!=this.timeParams?"utc"==this.type?new _e(this.timeParams):new xe(this.timeParams):"utc"==this.type?new _e:new xe,this.TLV=He.tohex(),this.TLV},this.getEncodedHex=function(){return this.tohex()},this.type="utc",void 0!==_&&(void 0!==_.type?this.type=_.type:void 0!==_.str&&(_.str.match(/^[0-9]{12}Z$/)&&(this.type="utc"),_.str.match(/^[0-9]{14}Z$/)&&(this.type="gen")),this.timeParams=_)},Vi(Ae.asn1.x509.Time,Ae.asn1.ASN1Object),Ae.asn1.x509.AlgorithmIdentifier=function(_){Ae.asn1.x509.AlgorithmIdentifier.superclass.constructor.call(this),this.nameAlg=null,this.asn1Alg=null,this.asn1Params=null,this.paramEmpty=!1;var I=Ae.asn1,j=I.x509.AlgorithmIdentifier.PSSNAME2ASN1TLV;if(this.tohex=function(){if(null===this.nameAlg&&null===this.asn1Alg)throw new Error("algorithm not specified");if(null!==this.nameAlg){var _e=null;for(var xe in j)xe===this.nameAlg&&(_e=j[xe]);if(null!==_e)return this.hTLV=_e,this.hTLV}null!==this.nameAlg&&null===this.asn1Alg&&(this.asn1Alg=I.x509.OID.name2obj(this.nameAlg));var He=[this.asn1Alg];null!==this.asn1Params&&He.push(this.asn1Params);var ht=new I.DERSequence({array:He});return this.hTLV=ht.tohex(),this.hTLV},this.getEncodedHex=function(){return this.tohex()},void 0!==_&&(void 0!==_.name&&(this.nameAlg=_.name),void 0!==_.asn1params&&(this.asn1Params=_.asn1params),void 0!==_.paramempty&&(this.paramEmpty=_.paramempty)),null===this.asn1Params&&!1===this.paramEmpty&&null!==this.nameAlg){void 0!==this.nameAlg.name&&(this.nameAlg=this.nameAlg.name);var pe=this.nameAlg.toLowerCase();"withdsa"!==pe.substr(-7,7)&&"withecdsa"!==pe.substr(-9,9)&&(this.asn1Params=new I.DERNull)}},Vi(Ae.asn1.x509.AlgorithmIdentifier,Ae.asn1.ASN1Object),Ae.asn1.x509.AlgorithmIdentifier.PSSNAME2ASN1TLV={SHAwithRSAandMGF1:"300d06092a864886f70d01010a3000",SHA256withRSAandMGF1:"303d06092a864886f70d01010a3030a00d300b0609608648016503040201a11a301806092a864886f70d010108300b0609608648016503040201a203020120",SHA384withRSAandMGF1:"303d06092a864886f70d01010a3030a00d300b0609608648016503040202a11a301806092a864886f70d010108300b0609608648016503040202a203020130",SHA512withRSAandMGF1:"303d06092a864886f70d01010a3030a00d300b0609608648016503040203a11a301806092a864886f70d010108300b0609608648016503040203a203020140"},Ae.asn1.x509.GeneralName=function(_){Ae.asn1.x509.GeneralName.superclass.constructor.call(this);var j=Ae.asn1,pe=j.x509,_e=pe.X500Name,xe=pe.OtherName,He=j.DERIA5String,yt=j.DEROctetString,Gt=j.DERTaggedObject,$t=j.ASN1Object,st=Error;this.params=null,this.setByParam=function(tt){this.params=tt},this.tohex=function(){var Tt,Ye,tt=this.params,kt=!1;if(void 0!==tt.other)Tt="a0",Ye=new xe(tt.other);else if(void 0!==tt.rfc822)Tt="81",Ye=new He({str:tt.rfc822});else if(void 0!==tt.dns)Tt="82",Ye=new He({str:tt.dns});else if(void 0!==tt.dn)Tt="a4",kt=!0,Ye="string"==typeof tt.dn?new _e({str:tt.dn}):tt.dn instanceof Ae.asn1.x509.X500Name?tt.dn:new _e(tt.dn);else if(void 0!==tt.ldapdn)Tt="a4",kt=!0,Ye=new _e({ldapstr:tt.ldapdn});else if(void 0!==tt.certissuer||void 0!==tt.certsubj){Tt="a4",kt=!0;var It,un,xn=null;if(void 0!==tt.certsubj?(It=!1,un=tt.certsubj):(It=!0,un=tt.certissuer),un.match(/^[0-9A-Fa-f]+$/),-1!=un.indexOf("-----BEGIN ")&&(xn=mt(un)),null==xn)throw new Error("certsubj/certissuer not cert");var Nn,In=new Mr;In.hex=xn,Nn=It?In.getIssuerHex():In.getSubjectHex(),(Ye=new $t).hTLV=Nn}else if(void 0!==tt.uri)Tt="86",Ye=new He({str:tt.uri});else{if(void 0===tt.ip)throw new st("improper params");Tt="87";var ri,ui=tt.ip;try{if(ui.match(/^[0-9a-f]+$/)){var ne=ui.length;if(8!=ne&&16!=ne&&32!=ne&&64!=ne)throw"err";ri=ui}else ri=Bo(ui)}catch(_t){throw new st("malformed IP address: "+tt.ip+":"+_t.message)}Ye=new yt({hex:ri})}return new Gt({tag:Tt,explicit:kt,obj:Ye}).tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!==_&&this.setByParam(_)},Vi(Ae.asn1.x509.GeneralName,Ae.asn1.ASN1Object),Ae.asn1.x509.GeneralNames=function(_){Ae.asn1.x509.GeneralNames.superclass.constructor.call(this);var j=Ae.asn1;this.setByParamArray=function(pe){for(var _e=0;_e<pe.length;_e++){var xe=new j.x509.GeneralName(pe[_e]);this.asn1Array.push(xe)}},this.tohex=function(){return new j.DERSequence({array:this.asn1Array}).tohex()},this.getEncodedHex=function(){return this.tohex()},this.asn1Array=new Array,typeof _<"u"&&this.setByParamArray(_)},Vi(Ae.asn1.x509.GeneralNames,Ae.asn1.ASN1Object),Ae.asn1.x509.OtherName=function(_){Ae.asn1.x509.OtherName.superclass.constructor.call(this);var pe=Ae.asn1,_e=pe.DERObjectIdentifier,xe=pe.DERSequence,He=pe.ASN1Util.newObject;this.params=null,this.setByParam=function(ht){this.params=ht},this.tohex=function(){var ht=this.params;if(null==ht.oid||null==ht.value)throw new Error("oid or value not specified");var yt=new _e({oid:ht.oid}),Gt=He({tag:{tag:"a0",explicit:!0,obj:ht.value}});return new xe({array:[yt,Gt]}).tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!==_&&this.setByParam(_)},Vi(Ae.asn1.x509.OtherName,Ae.asn1.ASN1Object),Ae.asn1.x509.OID=new function(){var _=Ae.asn1.DERObjectIdentifier;this.name2oidList={"aes128-CBC":"2.16.840.1.101.3.4.1.2","aes256-CBC":"2.16.840.1.101.3.4.1.42",sha1:"1.3.14.3.2.26",sha256:"2.16.840.1.101.3.4.2.1",sha384:"2.16.840.1.101.3.4.2.2",sha512:"2.16.840.1.101.3.4.2.3",sha224:"2.16.840.1.101.3.4.2.4",md5:"1.2.840.113549.2.5",md2:"1.3.14.7.2.2.1",ripemd160:"1.3.36.3.2.1",hmacWithSHA1:"1.2.840.113549.2.7",hmacWithSHA224:"1.2.840.113549.2.8",hmacWithSHA256:"1.2.840.113549.2.9",hmacWithSHA384:"1.2.840.113549.2.10",hmacWithSHA512:"1.2.840.113549.2.11",MD2withRSA:"1.2.840.113549.1.1.2",MD4withRSA:"1.2.840.113549.1.1.3",MD5withRSA:"1.2.840.113549.1.1.4",SHA1withRSA:"1.2.840.113549.1.1.5","pkcs1-MGF":"1.2.840.113549.1.1.8",rsaPSS:"1.2.840.113549.1.1.10",SHA224withRSA:"1.2.840.113549.1.1.14",SHA256withRSA:"1.2.840.113549.1.1.11",SHA384withRSA:"1.2.840.113549.1.1.12",SHA512withRSA:"1.2.840.113549.1.1.13",SHA1withECDSA:"1.2.840.10045.4.1",SHA224withECDSA:"1.2.840.10045.4.3.1",SHA256withECDSA:"1.2.840.10045.4.3.2",SHA384withECDSA:"1.2.840.10045.4.3.3",SHA512withECDSA:"1.2.840.10045.4.3.4",dsa:"1.2.840.10040.4.1",SHA1withDSA:"1.2.840.10040.4.3",SHA224withDSA:"2.16.840.1.101.3.4.3.1",SHA256withDSA:"2.16.840.1.101.3.4.3.2",rsaEncryption:"1.2.840.113549.1.1.1",commonName:"2.5.4.3",countryName:"2.5.4.6",localityName:"2.5.4.7",stateOrProvinceName:"2.5.4.8",streetAddress:"2.5.4.9",organizationName:"2.5.4.10",organizationalUnitName:"2.5.4.11",domainComponent:"0.9.2342.19200300.100.1.25",userId:"0.9.2342.19200300.100.1.1",surname:"2.5.4.4",givenName:"2.5.4.42",title:"2.5.4.12",distinguishedName:"2.5.4.49",emailAddress:"1.2.840.113549.1.9.1",description:"2.5.4.13",businessCategory:"2.5.4.15",postalCode:"2.5.4.17",uniqueIdentifier:"2.5.4.45",organizationIdentifier:"2.5.4.97",jurisdictionOfIncorporationL:"1.3.6.1.4.1.311.60.2.1.1",jurisdictionOfIncorporationSP:"1.3.6.1.4.1.311.60.2.1.2",jurisdictionOfIncorporationC:"1.3.6.1.4.1.311.60.2.1.3",subjectDirectoryAttributes:"2.5.29.9",subjectKeyIdentifier:"2.5.29.14",keyUsage:"2.5.29.15",subjectAltName:"2.5.29.17",issuerAltName:"2.5.29.18",basicConstraints:"2.5.29.19",cRLNumber:"2.5.29.20",cRLReason:"2.5.29.21",nameConstraints:"2.5.29.30",cRLDistributionPoints:"2.5.29.31",certificatePolicies:"2.5.29.32",anyPolicy:"2.5.29.32.0",policyMappings:"2.5.29.33",authorityKeyIdentifier:"2.5.29.35",policyConstraints:"2.5.29.36",extKeyUsage:"2.5.29.37",inhibitAnyPolicy:"2.5.29.54",authorityInfoAccess:"1.3.6.1.5.5.7.1.1",ocsp:"1.3.6.1.5.5.7.48.1",ocspBasic:"1.3.6.1.5.5.7.48.1.1",ocspNonce:"1.3.6.1.5.5.7.48.1.2",ocspNoCheck:"1.3.6.1.5.5.7.48.1.5",caIssuers:"1.3.6.1.5.5.7.48.2",anyExtendedKeyUsage:"2.5.29.37.0",serverAuth:"1.3.6.1.5.5.7.3.1",clientAuth:"1.3.6.1.5.5.7.3.2",codeSigning:"1.3.6.1.5.5.7.3.3",emailProtection:"1.3.6.1.5.5.7.3.4",timeStamping:"1.3.6.1.5.5.7.3.8",ocspSigning:"1.3.6.1.5.5.7.3.9",smtpUTF8Mailbox:"1.3.6.1.5.5.7.8.9",dateOfBirth:"1.3.6.1.5.5.7.9.1",placeOfBirth:"1.3.6.1.5.5.7.9.2",gender:"1.3.6.1.5.5.7.9.3",countryOfCitizenship:"1.3.6.1.5.5.7.9.4",countryOfResidence:"1.3.6.1.5.5.7.9.5",ecPublicKey:"1.2.840.10045.2.1","P-256":"1.2.840.10045.3.1.7",secp256r1:"1.2.840.10045.3.1.7",secp256k1:"1.3.132.0.10",secp384r1:"1.3.132.0.34",secp521r1:"1.3.132.0.35",pkcs5PBES2:"1.2.840.113549.1.5.13",pkcs5PBKDF2:"1.2.840.113549.1.5.12","des-EDE3-CBC":"1.2.840.113549.3.7",data:"1.2.840.113549.1.7.1","signed-data":"1.2.840.113549.1.7.2","enveloped-data":"1.2.840.113549.1.7.3","digested-data":"1.2.840.113549.1.7.5","encrypted-data":"1.2.840.113549.1.7.6","authenticated-data":"1.2.840.113549.1.9.16.1.2",tstinfo:"1.2.840.113549.1.9.16.1.4",signingCertificate:"1.2.840.113549.1.9.16.2.12",timeStampToken:"1.2.840.113549.1.9.16.2.14",signaturePolicyIdentifier:"1.2.840.113549.1.9.16.2.15",etsArchiveTimeStamp:"1.2.840.113549.1.9.16.2.27",signingCertificateV2:"1.2.840.113549.1.9.16.2.47",etsArchiveTimeStampV2:"1.2.840.113549.1.9.16.2.48",extensionRequest:"1.2.840.113549.1.9.14",contentType:"1.2.840.113549.1.9.3",messageDigest:"1.2.840.113549.1.9.4",signingTime:"1.2.840.113549.1.9.5",counterSignature:"1.2.840.113549.1.9.6",archiveTimeStampV3:"0.4.0.1733.2.4",pdfRevocationInfoArchival:"1.2.840.113583.1.1.8",adobeTimeStamp:"1.2.840.113583.1.1.9.1",smimeMailboxLegacy:"2.23.140.1.5.1.1",smimeMailboxMulti:"2.23.140.1.5.1.2",smimeMailboxStrict:"2.23.140.1.5.1.3",smimeOrganizationLegacy:"2.23.140.1.5.2.1",smimeOrganizationMulti:"2.23.140.1.5.2.2",smimeOrganizationStrict:"2.23.140.1.5.2.3",smimeSponsorLegacy:"2.23.140.1.5.3.1",smimeSponsorMulti:"2.23.140.1.5.3.2",smimeSponsorStrict:"2.23.140.1.5.3.3",smimeIndividualLegacy:"2.23.140.1.5.4.1",smimeIndividualMulti:"2.23.140.1.5.4.2",smimeIndividualStrict:"2.23.140.1.5.4.3"},this.atype2oidList={CN:"2.5.4.3",L:"2.5.4.7",ST:"2.5.4.8",O:"2.5.4.10",OU:"2.5.4.11",C:"2.5.4.6",STREET:"2.5.4.9",DC:"0.9.2342.19200300.100.1.25",UID:"0.9.2342.19200300.100.1.1",SN:"2.5.4.4",T:"2.5.4.12",GN:"2.5.4.42",DN:"2.5.4.49",E:"1.2.840.113549.1.9.1",description:"2.5.4.13",businessCategory:"2.5.4.15",postalCode:"2.5.4.17",serialNumber:"2.5.4.5",uniqueIdentifier:"2.5.4.45",organizationIdentifier:"2.5.4.97",jurisdictionOfIncorporationL:"1.3.6.1.4.1.311.60.2.1.1",jurisdictionOfIncorporationSP:"1.3.6.1.4.1.311.60.2.1.2",jurisdictionOfIncorporationC:"1.3.6.1.4.1.311.60.2.1.3"},this.objCache={},this.name2obj=function(D){if(typeof this.objCache[D]<"u")return this.objCache[D];if(typeof this.name2oidList[D]>"u")throw"Name of ObjectIdentifier not defined: "+D;var j=new _({oid:this.name2oidList[D]});return this.objCache[D]=j,j},this.atype2obj=function(D){if(void 0!==this.objCache[D])return this.objCache[D];var I;if(D.match(/^\d+\.\d+\.[0-9.]+$/))I=D;else if(void 0!==this.atype2oidList[D])I=this.atype2oidList[D];else{if(void 0===this.name2oidList[D])throw new Error("AttributeType name undefined: "+D);I=this.name2oidList[D]}var j=new _({oid:I});return this.objCache[D]=j,j},this.registerOIDs=function(D){if(this.checkOIDs(D))for(var I in D)this.name2oidList[I]=D[I]},this.checkOIDs=function(D){try{var I=Object.keys(D);return 0!=I.length&&(I.map(function(j,pe,_e){if(!this[j].match(/^[0-2]\.[0-9.]+$/))throw new Error("value is not OID")},D),!0)}catch{return!1}}},Ae.asn1.x509.OID.oid2name=function(_){var D=Ae.asn1.x509.OID.name2oidList;for(var I in D)if(D[I]==_)return I;return""},Ae.asn1.x509.OID.oid2atype=function(_){var D=Ae.asn1.x509.OID.atype2oidList;for(var I in D)if(D[I]==_)return I;return _},Ae.asn1.x509.OID.name2oid=function(_){if(_.match(/^[0-9.]+$/))return _;var D=Ae.asn1.x509.OID.name2oidList;return void 0===D[_]?"":D[_]},Ae.asn1.x509.X509Util={},Ae.asn1.x509.X509Util.newCertPEM=function(_){return new(0,Ae.asn1.x509.Certificate)(_).getPEM()},(typeof Ae>"u"||!Ae)&&(Ae={}),(typeof Ae.asn1>"u"||!Ae.asn1)&&(Ae.asn1={}),(typeof Ae.asn1.cms>"u"||!Ae.asn1.cms)&&(Ae.asn1.cms={}),Ae.asn1.cms.Attribute=function(_){var D=Error,j=Ae.asn1,pe=j.DERSequence,_e=j.DERSet,xe=j.DERObjectIdentifier;this.params=null,this.typeOid=null,this.setByParam=function(He){this.params=He},this.getValueArray=function(){throw new D("not yet implemented abstract")},this.tohex=function(){var He=new xe({oid:this.typeOid}),ht=new _e({array:this.getValueArray()});return new pe({array:[He,ht]}).tohex()},this.getEncodedHex=function(){return this.tohex()}},Vi(Ae.asn1.cms.Attribute,Ae.asn1.ASN1Object),Ae.asn1.cms.ContentType=function(_){var I=Ae.asn1;I.cms.ContentType.superclass.constructor.call(this),this.typeOid="1.2.840.113549.1.9.3",this.getValueArray=function(){return[new I.DERObjectIdentifier(this.params.type)]},null!=_&&this.setByParam(_)},Vi(Ae.asn1.cms.ContentType,Ae.asn1.cms.Attribute),Ae.asn1.cms.MessageDigest=function(_){var I=Ae.asn1,j=I.DEROctetString;I.cms.MessageDigest.superclass.constructor.call(this),this.typeOid="1.2.840.113549.1.9.4",this.getValueArray=function(){return[new j(this.params)]},null!=_&&this.setByParam(_)},Vi(Ae.asn1.cms.MessageDigest,Ae.asn1.cms.Attribute),Ae.asn1.cms.SigningTime=function(_){var I=Ae.asn1;I.cms.SigningTime.superclass.constructor.call(this),this.typeOid="1.2.840.113549.1.9.5",this.getValueArray=function(){return[new I.x509.Time(this.params)]},null!=_&&this.setByParam(_)},Vi(Ae.asn1.cms.SigningTime,Ae.asn1.cms.Attribute),Ae.asn1.cms.SigningCertificate=function(_){var D=Error,j=Ae.asn1,pe=j.DERSequence,_e=j.cms,xe=_e.ESSCertID;_e.SigningCertificate.superclass.constructor.call(this),this.typeOid="1.2.840.113549.1.9.16.2.12",this.getValueArray=function(){if(null==this.params||null==this.params||null==this.params.array)throw new D("parameter 'array' not specified");for(var ht=this.params.array,yt=[],Gt=0;Gt<ht.length;Gt++){var $t=ht[Gt];0==_.hasis&&"string"==typeof $t&&(-1!=$t.indexOf("-----BEGIN")||zi.isASN1HEX($t))&&($t={cert:$t}),0!=$t.hasis&&0==_.hasis&&($t.hasis=!1),yt.push(new xe($t))}var st=new pe({array:yt});return[new pe({array:[st]})]},null!=_&&this.setByParam(_)},Vi(Ae.asn1.cms.SigningCertificate,Ae.asn1.cms.Attribute),Ae.asn1.cms.ESSCertID=function(_){Ae.asn1.cms.ESSCertID.superclass.constructor.call(this);var D=Error,I=Ae,j=I.asn1,pe=j.DEROctetString,_e=j.DERSequence,xe=j.cms.IssuerSerial;this.params=null,this.getCertHash=function(He,ht){if(null!=He.hash)return He.hash;if("string"==typeof He&&-1==He.indexOf("-----BEGIN")&&!zi.isASN1HEX(He))return He;var yt,Gt,$t;if("string"==typeof He)yt=He;else{if(null==He.cert)throw new D("hash nor cert unspecified");yt=He.cert}if(Gt=-1!=yt.indexOf("-----BEGIN")?mt(yt):yt,"string"==typeof He&&(-1!=He.indexOf("-----BEGIN")?Gt=mt(He):zi.isASN1HEX(He)&&(Gt=He)),null!=He.alg)$t=He.alg;else{if(null==ht)throw new D("hash alg unspecified");$t=ht}return I.crypto.Util.hashHex(Gt,$t)},this.tohex=function(){var He=this.params,ht=this.getCertHash(He,"sha1"),yt=[];return yt.push(new pe({hex:ht})),("string"==typeof He&&-1!=He.indexOf("-----BEGIN")||null!=He.cert&&0!=He.hasis||null!=He.issuer&&null!=He.serial)&&yt.push(new xe(He)),new _e({array:yt}).tohex()},this.getEncodedHex=function(){return this.tohex()},null!=_&&this.setByParam(_)},Vi(Ae.asn1.cms.ESSCertID,Ae.asn1.ASN1Object),Ae.asn1.cms.SigningCertificateV2=function(_){var D=Error,j=Ae.asn1,pe=j.DERSequence,xe=j.cms,He=xe.ESSCertIDv2;xe.SigningCertificateV2.superclass.constructor.call(this),this.typeOid="1.2.840.113549.1.9.16.2.47",this.getValueArray=function(){if(null==this.params||null==this.params||null==this.params.array)throw new D("parameter 'array' not specified");for(var yt=this.params.array,Gt=[],$t=0;$t<yt.length;$t++){var st=yt[$t];(null!=_.alg||0==_.hasis)&&"string"==typeof st&&(-1!=st.indexOf("-----BEGIN")||zi.isASN1HEX(st))&&(st={cert:st}),null==st.alg&&null!=_.alg&&(st.alg=_.alg),0!=st.hasis&&0==_.hasis&&(st.hasis=!1),Gt.push(new He(st))}var tt=new pe({array:Gt});return[new pe({array:[tt]})]},null!=_&&this.setByParam(_)},Vi(Ae.asn1.cms.SigningCertificateV2,Ae.asn1.cms.Attribute),Ae.asn1.cms.ESSCertIDv2=function(_){Ae.asn1.cms.ESSCertIDv2.superclass.constructor.call(this),Error;var j=Ae.asn1,pe=j.DEROctetString,_e=j.DERSequence,xe=j.cms.IssuerSerial,He=j.x509.AlgorithmIdentifier;this.params=null,this.tohex=function(){var ht=this.params,yt=this.getCertHash(ht,"sha256"),Gt=[];return null!=ht.alg&&"sha256"!=ht.alg&&Gt.push(new He({name:ht.alg})),Gt.push(new pe({hex:yt})),("string"==typeof ht&&-1!=ht.indexOf("-----BEGIN")||null!=ht.cert&&0!=ht.hasis||null!=ht.issuer&&null!=ht.serial)&&Gt.push(new xe(ht)),new _e({array:Gt}).tohex()},this.getEncodedHex=function(){return this.tohex()},null!=_&&this.setByParam(_)},Vi(Ae.asn1.cms.ESSCertIDv2,Ae.asn1.cms.ESSCertID),Ae.asn1.cms.IssuerSerial=function(_){var D=Error,j=Ae.asn1,pe=j.DERInteger,_e=j.DERSequence,ht=j.x509.GeneralNames,yt=Mr;j.cms.IssuerSerial.superclass.constructor.call(this),this.setByParam=function(Gt){this.params=Gt},this.tohex=function(){var $t,st,Gt=this.params;if("string"==typeof Gt&&-1!=Gt.indexOf("-----BEGIN")||null!=Gt.cert){var tt;tt=null!=Gt.cert?Gt.cert:Gt;var Tt=new yt;Tt.readCertPEM(tt),$t=Tt.getIssuer(),st={hex:Tt.getSerialNumberHex()}}else{if(null==Gt.issuer||!Gt.serial)throw new D("cert or issuer and serial parameter not specified");$t=Gt.issuer,st=Gt.serial}var Ye=new ht([{dn:$t}]),kt=new pe(st);return new _e({array:[Ye,kt]}).tohex()},this.getEncodedHex=function(){return this.tohex()},null!=_&&this.setByParam(_)},Vi(Ae.asn1.cms.IssuerSerial,Ae.asn1.ASN1Object),Ae.asn1.cms.SignerIdentifier=function(_){var _e=Ae.asn1.cms,xe=_e.IssuerAndSerialNumber,He=_e.SubjectKeyIdentifier;Error,_e.SignerIdentifier.superclass.constructor.call(this),this.params=null,this.tohex=function(){var st=this.params;if("isssn"==st.type)return new xe(st).tohex();if("skid"==st.type)return new He(st).tohex();throw new Error("wrong property for isssn or skid")},this.getEncodedHex=function(){return this.tohex()},null!=_&&this.setByParam(_)},Vi(Ae.asn1.cms.SignerIdentifier,Ae.asn1.ASN1Object),Ae.asn1.cms.IssuerAndSerialNumber=function(_){var I=Ae.asn1,j=I.DERInteger,pe=I.DERSequence,He=I.x509.X500Name,ht=Mr,yt=Error;I.cms.IssuerAndSerialNumber.superclass.constructor.call(this),this.params=null,this.tohex=function(){var $t,st,Gt=this.params;if("string"==typeof Gt&&-1!=Gt.indexOf("-----BEGIN")||null!=Gt.cert){var tt;tt=null!=Gt.cert?Gt.cert:Gt;var Tt=new ht;Tt.readCertPEM(tt),$t=Tt.getIssuer(),st={hex:Tt.getSerialNumberHex()}}else{if(null==Gt.issuer||!Gt.serial)throw new yt("cert or issuer and serial parameter not specified");$t=Gt.issuer,st=Gt.serial}var Ye=new He($t),kt=new j(st);return new pe({array:[Ye,kt]}).tohex()},this.getEncodedHex=function(){return this.tohex()},this.setByParam=function(Gt){this.params=Gt},null!=_&&this.setByParam(_)},Vi(Ae.asn1.cms.IssuerAndSerialNumber,Ae.asn1.ASN1Object),Ae.asn1.cms.SubjectKeyIdentifier=function(_){var I=Ae.asn1,_e=I.ASN1Util.newObject,$t=Mr,st=Error;I.cms.SubjectKeyIdentifier.superclass.constructor.call(this),this.tohex=function(){var Tt,tt=this.params;if(null==tt.cert&&null==tt.skid)throw new st("property cert nor skid undefined");return null!=tt.cert?Tt=new $t(tt.cert).getExtSubjectKeyIdentifier().kid.hex:null!=tt.skid&&(Tt=tt.skid),_e({tag:{tage:"a0",obj:{octstr:{hex:Tt}}}}).tohex()},this.getEncodedHex=function(){return this.tohex()},null!=_&&this.setByParam(_)},Vi(Ae.asn1.cms.SubjectKeyIdentifier,Ae.asn1.ASN1Object),Ae.asn1.cms.AttributeList=function(_){var D=Error,j=Ae.asn1,pe=j.DERSet,_e=j.cms;_e.AttributeList.superclass.constructor.call(this),this.params=null,this.hTLV=null,this.setByParam=function(xe){this.params=xe},this.tohex=function(){var xe=this.params;if(null!=this.hTLV)return this.hTLV;var He=!0;null!=xe.sortflag&&(He=xe.sortflag);for(var ht=xe.array,yt=[],Gt=0;Gt<ht.length;Gt++){var $t=ht[Gt],st=$t.attr;if("contentType"==st)yt.push(new _e.ContentType($t));else if("messageDigest"==st)yt.push(new _e.MessageDigest($t));else if("signingTime"==st)yt.push(new _e.SigningTime($t));else if("signingCertificate"==st)yt.push(new _e.SigningCertificate($t));else if("signingCertificateV2"==st)yt.push(new _e.SigningCertificateV2($t));else if("signaturePolicyIdentifier"==st)yt.push(new Ae.asn1.cades.SignaturePolicyIdentifier($t));else{if("signatureTimeStamp"!=st&&"timeStampToken"!=st)throw new D("unknown attr: "+st);yt.push(new Ae.asn1.cades.SignatureTimeStamp($t))}}var tt=new pe({array:yt,sortflag:He});return this.hTLV=tt.tohex(),this.hTLV},this.getEncodedHex=function(){return this.tohex()},null!=_&&this.setByParam(_)},Vi(Ae.asn1.cms.AttributeList,Ae.asn1.ASN1Object),Ae.asn1.cms.SignerInfo=function(_){var D=Error,j=Ae.asn1,pe=j.DERInteger,_e=j.DEROctetString,xe=j.DERSequence,He=j.DERTaggedObject,ht=j.cms,yt=ht.SignerIdentifier,Gt=ht.AttributeList,kt=j.x509.AlgorithmIdentifier,It=Ae.crypto,un=br;ht.SignerInfo.superclass.constructor.call(this),this.params=null,this.sign=function(){var xn=this.params,In=xn.sigalg,Nn=new Gt(xn.sattrs).tohex(),ri=un.getKey(xn.signkey),ui=new It.Signature({alg:In});ui.init(ri),ui.updateHex(Nn);var ne=ui.sign();xn.sighex=ne},this.tohex=function(){var xn=this.params,In=[];if(In.push(new pe({int:xn.version})),In.push(new yt(xn.id)),In.push(new kt({name:xn.hashalg})),null!=xn.sattrs){var Nn=new Gt(xn.sattrs);try{In.push(new He({tag:"a0",explicit:!1,obj:Nn}))}catch(ui){throw new D("si sattr error: "+ui)}}if(In.push(new kt(null!=xn.sigalgfield?{name:xn.sigalgfield}:{name:xn.sigalg})),null==xn.sighex&&null!=xn.signkey&&this.sign(),In.push(new _e({hex:xn.sighex})),null!=xn.uattrs){Nn=new Gt(xn.uattrs);try{In.push(new He({tag:"a1",explicit:!1,obj:Nn}))}catch(ne){throw new D("si uattr error: "+ne)}}return new xe({array:In}).tohex()},this.getEncodedHex=function(){return this.tohex()},null!=_&&this.setByParam(_)},Vi(Ae.asn1.cms.SignerInfo,Ae.asn1.ASN1Object),Ae.asn1.cms.EncapsulatedContentInfo=function(_){var I=Ae.asn1,j=I.DERTaggedObject,pe=I.DERSequence,_e=I.DERObjectIdentifier,xe=I.DEROctetString;I.cms.EncapsulatedContentInfo.superclass.constructor.call(this),this.params=null,this.tohex=function(){var ht=this.params,yt=[];if(yt.push(new _e(ht.type)),null!=ht.content&&(null!=ht.content.hex||null!=ht.content.str)&&1!=ht.isDetached){var Gt=new xe(ht.content),$t=new j({tag:"a0",explicit:!0,obj:Gt});yt.push($t)}return new pe({array:yt}).tohex()},this.getEncodedHex=function(){return this.tohex()},this.setByParam=function(ht){this.params=ht},null!=_&&this.setByParam(_)},Vi(Ae.asn1.cms.EncapsulatedContentInfo,Ae.asn1.ASN1Object),Ae.asn1.cms.ContentInfo=function(_){var I=Ae.asn1,j=I.DERTaggedObject,pe=I.DERSequence,_e=I.DERObjectIdentifier;Ae.asn1.cms.ContentInfo.superclass.constructor.call(this),this.params=null,this.tohex=function(){var ht=this.params,yt=[];yt.push(new _e(ht.type));var Gt=new j({tag:"a0",explicit:!0,obj:ht.obj});return yt.push(Gt),new pe({array:yt}).tohex()},this.getEncodedHex=function(){return this.tohex()},this.setByParam=function(ht){this.params=ht},null!=_&&this.setByParam(_)},Vi(Ae.asn1.cms.ContentInfo,Ae.asn1.ASN1Object),Ae.asn1.cms.SignedData=function(_){Error;var j=Ae.asn1,_e=j.DERInteger,xe=j.DERSet,He=j.DERSequence,yt=j.cms,Gt=yt.EncapsulatedContentInfo,$t=yt.SignerInfo,st=yt.ContentInfo,tt=yt.CertificateSet,Tt=yt.RevocationInfoChoices,kt=j.x509.AlgorithmIdentifier;Ae.asn1.cms.SignedData.superclass.constructor.call(this),this.params=null,this.checkAndFixParam=function(){var It=this.params;this._setDigestAlgs(It),this._setContentTypeByEContent(It),this._setMessageDigestByEContent(It),this._setSignerInfoVersion(It),this._setSignedDataVersion(It)},this._setDigestAlgs=function(It){for(var un={},xn=It.sinfos,In=0;In<xn.length;In++)un[xn[In].hashalg]=1;It.hashalgs=Object.keys(un).sort()},this._setContentTypeByEContent=function(It){for(var un=It.econtent.type,xn=It.sinfos,In=0;In<xn.length;In++)this._getAttrParamByName(xn[In],"contentType").type=un},this._setMessageDigestByEContent=function(It){var un=It.econtent,In=un.content.hex;null==In&&"data"==un.type&&null!=un.content.str&&(In=Is(un.content.str));for(var Nn=It.sinfos,ri=0;ri<Nn.length;ri++){var ui=Nn[ri],ne=ui.hashalg,Ie=this._getAttrParamByName(ui,"messageDigest"),_t=Ae.crypto.Util.hashHex(In,ne);Ie.hex=_t}},this._getAttrParamByName=function(It,un){for(var xn=It.sattrs.array,In=0;In<xn.length;In++)if(xn[In].attr==un)return xn[In]},this._setSignerInfoVersion=function(It){for(var un=It.sinfos,xn=0;xn<un.length;xn++){var In=un[xn],Nn=1;"skid"==In.id.type&&(Nn=3),In.version=Nn}},this._setSignedDataVersion=function(It){var un=this._getSignedDataVersion(It);It.version=un},this._getSignedDataVersion=function(It){if(null!=It.revinfos)for(var un=It.revinfos,xn=0;xn<un.length;xn++)if(null!=un[xn].ocsp)return 5;var Nn=It.sinfos;for(xn=0;xn<Nn.length;xn++)if(3==It.sinfos[xn].version)return 3;return"data"!=It.econtent.type?3:1},this.tohex=function(){var It=this.params;null!=this.getEncodedHexPrepare&&this.getEncodedHexPrepare(),1!=It.fixed&&this.checkAndFixParam();var un=[];un.push(new _e({int:It.version}));for(var xn=[],In=0;In<It.hashalgs.length;In++)xn.push(new kt({name:It.hashalgs[In]}));un.push(new xe({array:xn})),un.push(new Gt(It.econtent)),null!=It.certs&&un.push(new tt(It.certs)),null!=It.revinfos&&un.push(new Tt(It.revinfos));var ri=[];for(In=0;In<It.sinfos.length;In++)ri.push(new $t(It.sinfos[In]));return un.push(new xe({array:ri})),new He({array:un}).tohex()},this.getEncodedHex=function(){return this.tohex()},this.getContentInfo=function(){return new st({type:"signed-data",obj:this})},this.getContentInfoEncodedHex=function(){return this.getContentInfo().tohex()},null!=_&&this.setByParam(_)},Vi(Ae.asn1.cms.SignedData,Ae.asn1.ASN1Object),Ae.asn1.cms.CertificateSet=function(_){Ae.asn1.cms.CertificateSet.superclass.constructor.call(this);var D=Error,I=Ae.asn1,j=I.DERTaggedObject,pe=I.DERSet,_e=I.ASN1Object;this.params=null,this.tohex=function(){var ht,xe=this.params,He=[];if(xe instanceof Array)ht=xe;else{if(null==xe.array)throw new D("cert array not specified");ht=xe.array}for(var yt=0;yt<ht.length;yt++){var $t=mt(ht[yt]),st=new _e;st.hTLV=$t,He.push(st)}var tt={array:He};0==xe.sortflag&&(tt.sortflag=!1);var Tt=new pe(tt);return new j({tag:"a0",explicit:!1,obj:Tt}).tohex()},this.getEncodedHex=function(){return this.tohex()},null!=_&&this.setByParam(_)},Vi(Ae.asn1.cms.CertificateSet,Ae.asn1.ASN1Object),Ae.asn1.cms.RevocationInfoChoices=function(_){Ae.asn1.cms.RevocationInfoChoices.superclass.constructor.call(this),this.params=null,this.tohex=function(){var D=this.params;if(!D instanceof Array)throw new Error("params is not array");for(var I=[],j=0;j<D.length;j++)I.push(new Ae.asn1.cms.RevocationInfoChoice(D[j]));return Ae.asn1.ASN1Util.newObject({tag:{tagi:"a1",obj:{set:I}}}).tohex()},this.getEncodedHex=function(){return this.tohex()},null!=_&&this.setByParam(_)},Vi(Ae.asn1.cms.RevocationInfoChoices,Ae.asn1.ASN1Object),Ae.asn1.cms.RevocationInfoChoice=function(_){Ae.asn1.cms.RevocationInfoChoice.superclass.constructor.call(this),this.params=null,this.tohex=function(){var D=this.params;if(null!=D.crl&&"string"==typeof D.crl){var I=D.crl;return-1!=D.crl.indexOf("-----BEGIN")&&(I=mt(D.crl)),I}if(null!=D.ocsp)return Ae.asn1.ASN1Util.newObject({tag:{tagi:"a1",obj:new Ae.asn1.cms.OtherRevocationFormat(D)}}).tohex();throw new Error("property crl or ocsp undefined")},this.getEncodedHex=function(){return this.tohex()},null!=_&&this.setByParam(_)},Vi(Ae.asn1.cms.RevocationInfoChoice,Ae.asn1.ASN1Object),Ae.asn1.cms.OtherRevocationFormat=function(_){Ae.asn1.cms.OtherRevocationFormat.superclass.constructor.call(this);var D=Error,pe=Ae.asn1.ASN1Util.newObject,_e=Ae.lang.String.isHex;this.params=null,this.tohex=function(){var xe=this.params;if(null==xe.ocsp)throw new D("property ocsp not specified");if(!_e(xe.ocsp)||!zi.isASN1HEX(xe.ocsp))throw new D("ocsp value not ASN.1 hex string");return pe({seq:[{oid:"1.3.6.1.5.5.7.16.2"},{asn1:{tlv:xe.ocsp}}]}).tohex()},this.getEncodedHex=function(){return this.tohex()},null!=_&&this.setByParam(_)},Vi(Ae.asn1.cms.OtherRevocationFormat,Ae.asn1.ASN1Object),Ae.asn1.cms.CMSUtil=new function(){},Ae.asn1.cms.CMSUtil.newSignedData=function(_){return new Ae.asn1.cms.SignedData(_)},Ae.asn1.cms.CMSUtil.verifySignedData=function(_){var tt=zi.getVbyList,Tt=zi.getTLVbyList,Ye=zi.getIdxbyList,kt=zi.getChildIdx,It=zi.getTLV,un=zi.oidname,xn=Ae.crypto.Util.hashHex;void 0===_.cms&&(0,Ae.lang.String.isHex)(_.cms);var In=_.cms,ui=function(Cn,Tn){var Wn=Tn.idx;Tn.signerid_issuer1=Tt(Cn,Wn,[1,0],"30"),Tn.signerid_serial1=tt(Cn,Wn,[1,1],"02"),Tn.hashalg=un(tt(Cn,Wn,[2,0],"06"));var gi=Ye(Cn,Wn,[3],"a0");Tn.idxSignedAttrs=gi,ne(Cn,Tn,gi);var ki=kt(Cn,Wn).length;if(ki<6)throw"malformed SignerInfo";Tn.sigalg=un(tt(Cn,Wn,[ki-2,0],"06")),Tn.sigval=tt(Cn,Wn,[ki-1],"04")},ne=function(Cn,Tn,Wn){var gi=kt(Cn,Wn);Tn.signedAttrIdxList=gi;for(var ln=0;ln<gi.length;ln++){var Ki,ki=gi[ln],rr=tt(Cn,ki,[0],"06");"2a864886f70d010905"===rr?(Ki=Ws(tt(Cn,ki,[1,0])),Tn.saSigningTime=Ki):"2a864886f70d010904"===rr&&(Ki=tt(Cn,ki,[1,0],"04"),Tn.saMessageDigest=Ki)}},en=function(Cn,Tn,Wn,gi){Wn.verifyDetail={};var ln=Wn.verifyDetail,ki=Tn.parse.econtent,rr=Wn.hashalg,Ki=Wn.saMessageDigest;ln.validMessageDigest=!1,xn(ki,rr)===Ki&&(ln.validMessageDigest=!0),function(Cn,Tn,Wn,gi){var ki,ln=Tn.parse.certsIdx;if(void 0===Tn.certs){ki=[],Tn.certkeys=[];for(var rr=kt(Cn,ln),Ki=0;Ki<rr.length;Ki++){var pr=It(Cn,rr[Ki]),Ti=new Mr;Ti.readCertHex(pr),ki[Ki]=Ti,Tn.certkeys[Ki]=Ti.getPublicKey()}Tn.certs=ki}else ki=Tn.certs;for(Tn.cccc=ki.length,Tn.cccci=rr.length,Ki=0;Ki<ki.length;Ki++){var Qi=Ti.getIssuerHex(),Gr=Ti.getSerialNumberHex();Wn.signerid_issuer1===Qi&&Wn.signerid_serial1===Gr&&(Wn.certkey_idx=Ki)}}(Cn,Tn,Wn),ln.validSignatureValue=!1;var pr=Wn.sigalg,Ti="31"+It(Cn,Wn.idxSignedAttrs).substr(2);Wn.signedattrshex=Ti;var Qi=Tn.certs[Wn.certkey_idx].getPublicKey(),Gr=new Ae.crypto.Signature({alg:pr});Gr.init(Qi),Gr.updateHex(Ti);var vr=Gr.verify(Wn.sigval);ln.validSignatureValue_isValid=vr,!0===vr&&(ln.validSignatureValue=!0),Wn.isValid=!1,ln.validMessageDigest&&ln.validSignatureValue&&(Wn.isValid=!0)},fn={isValid:!1,parse:{}};return function(Cn,Tn){if("2a864886f70d010702"!==tt(Cn,0,[0],"06"))return Tn;Tn.cmsType="signedData",Tn.econtent=tt(Cn,0,[1,0,2,1,0]),function(Cn,Tn){for(var Wn,gi=3;gi<6;gi++)if(void 0!==(Wn=Ye(Cn,0,[1,0,gi]))){var ln=Cn.substr(Wn,2);"a0"===ln&&(Tn.certsIdx=Wn),"a1"===ln&&(Tn.revinfosIdx=Wn),"31"===ln&&(Tn.signerinfosIdx=Wn)}}(Cn,Tn),Tn.signerInfos=[],function(Cn,Tn){var Wn=Tn.signerinfosIdx;if(void 0!==Wn){var gi=kt(Cn,Wn);Tn.signerInfoIdxList=gi;for(var ln=0;ln<gi.length;ln++){var rr={idx:gi[ln]};ui(Cn,rr),Tn.signerInfos.push(rr)}}}(Cn,Tn)}(In,fn.parse),function(Cn,Tn){for(var Wn=Tn.parse.signerInfos,gi=Wn.length,ln=!0,ki=0;ki<gi;ki++){var rr=Wn[ki];en(Cn,Tn,rr),rr.isValid||(ln=!1)}Tn.isValid=ln}(In,fn),fn},Ae.asn1.cms.CMSParser=function(){var _=Error,D=Mr,I=new D,j=zi,pe=j.getV,_e=j.getTLV,He=j.getTLVbyList,ht=j.getTLVbyListEx,yt=j.getVbyList,Gt=j.getVbyListEx,$t=j.getChildIdx;this.getCMSSignedData=function(st){var tt=He(st,0,[1,0]);return this.getSignedData(tt)},this.getSignedData=function(st){var tt=$t(st,0),Tt={},Ye=pe(st,tt[0]),kt=parseInt(Ye,16);Tt.version=kt;var It=_e(st,tt[1]);Tt.hashalgs=this.getHashAlgArray(It);var un=_e(st,tt[2]);Tt.econtent=this.getEContent(un);var xn=ht(st,0,["[0]"]);null!=xn&&(Tt.certs=this.getCertificateSet(xn)),ht(st,0,["[1]"]);var Nn=ht(st,0,[3]);return Tt.sinfos=this.getSignerInfos(Nn),Tt},this.getHashAlgArray=function(st){for(var tt=$t(st,0),Tt=new D,Ye=[],kt=0;kt<tt.length;kt++){var It=_e(st,tt[kt]),un=Tt.getAlgorithmIdentifierName(It);Ye.push(un)}return Ye},this.getEContent=function(st){var tt={},Tt=yt(st,0,[0]),Ye=yt(st,0,[1,0]);return tt.type=Ae.asn1.x509.OID.oid2name(zi.hextooidstr(Tt)),tt.content={hex:Ye},tt},this.getSignerInfos=function(st){for(var tt=[],Tt=$t(st,0),Ye=0;Ye<Tt.length;Ye++){var kt=_e(st,Tt[Ye]),It=this.getSignerInfo(kt);tt.push(It)}return tt},this.getSignerInfo=function(st){var tt={},Tt=$t(st,0),Ye=j.getInt(st,Tt[0],-1);-1!=Ye&&(tt.version=Ye);var kt=_e(st,Tt[1]),It=this.getIssuerAndSerialNumber(kt);tt.id=It;var un=_e(st,Tt[2]),xn=I.getAlgorithmIdentifierName(un);tt.hashalg=xn;var In=ht(st,0,["[0]"]);if(null!=In){var Nn=this.getAttributeList(In);tt.sattrs=Nn}var ri=ht(st,0,[3]),ui=I.getAlgorithmIdentifierName(ri);tt.sigalg=ui;var ne=Gt(st,0,[4]);tt.sighex=ne;var Ie=ht(st,0,["[1]"]);if(null!=Ie){var _t=this.getAttributeList(Ie);tt.uattrs=_t}return tt},this.getSignerIdentifier=function(st){if("30"==st.substr(0,2))return this.getIssuerAndSerialNumber(st);throw new Error("SKID of signerIdentifier not supported")},this.getIssuerAndSerialNumber=function(st){var tt={type:"isssn"},Tt=$t(st,0),Ye=_e(st,Tt[0]);tt.issuer=I.getX500Name(Ye);var kt=pe(st,Tt[1]);return tt.serial={hex:kt},tt},this.getAttributeList=function(st){for(var tt=[],Tt=$t(st,0),Ye=0;Ye<Tt.length;Ye++){var kt=_e(st,Tt[Ye]),It=this.getAttribute(kt);tt.push(It)}return{array:tt}},this.getAttribute=function(st){var tt={},Tt=$t(st,0),Ye=j.getOID(st,Tt[0]),kt=Ae.asn1.x509.OID.oid2name(Ye);tt.attr=kt;var It=_e(st,Tt[1]),un=$t(It,0);if(1==un.length)tt.valhex=_e(It,un[0]);else{for(var xn=[],In=0;In<un.length;In++)xn.push(_e(It,un[In]));tt.valhex=xn}return"contentType"==kt?this.setContentType(tt):"messageDigest"==kt?this.setMessageDigest(tt):"signingTime"==kt?this.setSigningTime(tt):"signingCertificate"==kt?this.setSigningCertificate(tt):"signingCertificateV2"==kt?this.setSigningCertificateV2(tt):"signaturePolicyIdentifier"==kt&&this.setSignaturePolicyIdentifier(tt),tt},this.setContentType=function(st){var tt=j.getOIDName(st.valhex,0,null);null!=tt&&(st.type=tt,delete st.valhex)},this.setSigningTime=function(st){var Tt=Ws(pe(st.valhex,0));st.str=Tt,delete st.valhex},this.setMessageDigest=function(st){var tt=pe(st.valhex,0);st.hex=tt,delete st.valhex},this.setSigningCertificate=function(st){var tt=$t(st.valhex,0);if(tt.length>0){for(var Tt=_e(st.valhex,tt[0]),Ye=$t(Tt,0),kt=[],It=0;It<Ye.length;It++){var un=_e(Tt,Ye[It]),xn=this.getESSCertID(un);kt.push(xn)}st.array=kt}if(tt.length>1){var In=_e(st.valhex,tt[1]);st.polhex=In}delete st.valhex},this.setSignaturePolicyIdentifier=function(st){var tt=$t(st.valhex,0);if(tt.length>0){var Tt=j.getOID(st.valhex,tt[0]);st.oid=Tt}if(tt.length>1){var Ye=new D,kt=$t(st.valhex,tt[1]),It=_e(st.valhex,kt[0]),un=Ye.getAlgorithmIdentifierName(It);st.alg=un;var xn=pe(st.valhex,kt[1]);st.hash=xn}delete st.valhex},this.setSigningCertificateV2=function(st){var tt=$t(st.valhex,0);if(tt.length>0){for(var Tt=_e(st.valhex,tt[0]),Ye=$t(Tt,0),kt=[],It=0;It<Ye.length;It++){var un=_e(Tt,Ye[It]),xn=this.getESSCertIDv2(un);kt.push(xn)}st.array=kt}if(tt.length>1){var In=_e(st.valhex,tt[1]);st.polhex=In}delete st.valhex},this.getESSCertID=function(st){var tt={},Tt=$t(st,0);if(Tt.length>0){var Ye=pe(st,Tt[0]);tt.hash=Ye}if(Tt.length>1){var kt=_e(st,Tt[1]),It=this.getIssuerSerial(kt);null!=It.serial&&(tt.serial=It.serial),null!=It.issuer&&(tt.issuer=It.issuer)}return tt},this.getESSCertIDv2=function(st){var tt={},Tt=$t(st,0);if(Tt.length<1||3<Tt.length)throw new _("wrong number of elements");var Ye=0;if("30"==st.substr(Tt[0],2)){var kt=_e(st,Tt[0]);tt.alg=I.getAlgorithmIdentifierName(kt),Ye++}else tt.alg="sha256";var It=pe(st,Tt[Ye]);if(tt.hash=It,Tt.length>Ye+1){var un=_e(st,Tt[Ye+1]),xn=this.getIssuerSerial(un);tt.issuer=xn.issuer,tt.serial=xn.serial}return tt},this.getIssuerSerial=function(st){var tt={},Tt=$t(st,0),Ye=_e(st,Tt[0]),kt=I.getGeneralNames(Ye);tt.issuer=kt[0].dn;var un=pe(st,Tt[1]);return tt.serial={hex:un},tt},this.getCertificateSet=function(st){for(var tt=$t(st,0),Tt=[],Ye=0;Ye<tt.length;Ye++){var kt=_e(st,tt[Ye]);if("30"==kt.substr(0,2)){var It=$n(kt,"CERTIFICATE");Tt.push(It)}}return{array:Tt,sortflag:!1}}},(typeof Ae>"u"||!Ae)&&(Ae={}),(typeof Ae.asn1>"u"||!Ae.asn1)&&(Ae.asn1={}),(typeof Ae.asn1.tsp>"u"||!Ae.asn1.tsp)&&(Ae.asn1.tsp={}),Ae.asn1.tsp.TimeStampToken=function(_){var j=Ae.asn1.tsp;j.TimeStampToken.superclass.constructor.call(this),this.params=null,this.getEncodedHexPrepare=function(){var pe=new j.TSTInfo(this.params.econtent.content);this.params.econtent.content.hex=pe.tohex()},null!=_&&this.setByParam(_)},Vi(Ae.asn1.tsp.TimeStampToken,Ae.asn1.cms.SignedData),Ae.asn1.tsp.TSTInfo=function(_){Error;var j=Ae.asn1,pe=j.DERSequence,_e=j.DERInteger,xe=j.DERBoolean,He=j.DERGeneralizedTime,ht=j.DERObjectIdentifier,yt=j.DERTaggedObject,Gt=j.tsp,$t=Gt.MessageImprint,st=Gt.Accuracy,Tt=j.x509.GeneralName;if(Gt.TSTInfo.superclass.constructor.call(this),this.dVersion=new _e({int:1}),this.dPolicy=null,this.dMessageImprint=null,this.dSerial=null,this.dGenTime=null,this.dAccuracy=null,this.dOrdering=null,this.dNonce=null,this.dTsa=null,this.tohex=function(){var Ye=[this.dVersion];if(null==this.dPolicy)throw new Error("policy shall be specified.");if(Ye.push(this.dPolicy),null==this.dMessageImprint)throw new Error("messageImprint shall be specified.");if(Ye.push(this.dMessageImprint),null==this.dSerial)throw new Error("serialNumber shall be specified.");if(Ye.push(this.dSerial),null==this.dGenTime)throw new Error("genTime shall be specified.");Ye.push(this.dGenTime),null!=this.dAccuracy&&Ye.push(this.dAccuracy),null!=this.dOrdering&&Ye.push(this.dOrdering),null!=this.dNonce&&Ye.push(this.dNonce),null!=this.dTsa&&Ye.push(this.dTsa);var kt=new pe({array:Ye});return this.hTLV=kt.tohex(),this.hTLV},this.getEncodedHex=function(){return this.tohex()},void 0!==_){if("string"==typeof _.policy){if(!_.policy.match(/^[0-9.]+$/))throw"policy shall be oid like 0.1.4.134";this.dPolicy=new ht({oid:_.policy})}void 0!==_.messageImprint&&(this.dMessageImprint=new $t(_.messageImprint)),void 0!==_.serial&&(this.dSerial=new _e(_.serial)),void 0!==_.genTime&&(this.dGenTime=new He(_.genTime)),void 0!==_.accuracy&&(this.dAccuracy=new st(_.accuracy)),void 0!==_.ordering&&1==_.ordering&&(this.dOrdering=new xe),void 0!==_.nonce&&(this.dNonce=new _e(_.nonce)),void 0!==_.tsa&&(this.dTsa=new yt({tag:"a0",explicit:!0,obj:new Tt({dn:_.tsa})}))}},Vi(Ae.asn1.tsp.TSTInfo,Ae.asn1.ASN1Object),Ae.asn1.tsp.Accuracy=function(_){var I=Ae.asn1,j=I.ASN1Util.newObject;I.tsp.Accuracy.superclass.constructor.call(this),this.params=null,this.tohex=function(){var pe=this.params,_e=[];return null!=pe.seconds&&"number"==typeof pe.seconds&&_e.push({int:pe.seconds}),null!=pe.millis&&"number"==typeof pe.millis&&_e.push({tag:{tagi:"80",obj:{int:pe.millis}}}),null!=pe.micros&&"number"==typeof pe.micros&&_e.push({tag:{tagi:"81",obj:{int:pe.micros}}}),j({seq:_e}).tohex()},this.getEncodedHex=function(){return this.tohex()},null!=_&&this.setByParam(_)},Vi(Ae.asn1.tsp.Accuracy,Ae.asn1.ASN1Object),Ae.asn1.tsp.MessageImprint=function(_){var I=Ae.asn1,j=I.DERSequence,pe=I.DEROctetString,xe=I.x509.AlgorithmIdentifier;I.tsp.MessageImprint.superclass.constructor.call(this),this.params=null,this.tohex=function(){var He=this.params,ht=new xe({name:He.alg}),yt=new pe({hex:He.hash});return new j({array:[ht,yt]}).tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!==_&&this.setByParam(_)},Vi(Ae.asn1.tsp.MessageImprint,Ae.asn1.ASN1Object),Ae.asn1.tsp.TimeStampReq=function(_){var I=Ae.asn1,j=I.DERSequence,pe=I.DERInteger,_e=I.DERBoolean,He=I.DERObjectIdentifier,ht=I.tsp,yt=ht.MessageImprint;ht.TimeStampReq.superclass.constructor.call(this),this.params=null,this.tohex=function(){var Gt=this.params,$t=[];return $t.push(new pe({int:1})),$t.push(Gt.messageImprint instanceof Ae.asn1.ASN1Object?Gt.messageImprint:new yt(Gt.messageImprint)),null!=Gt.policy&&$t.push(new He(Gt.policy)),null!=Gt.nonce&&$t.push(new pe(Gt.nonce)),1==Gt.certreq&&$t.push(new _e),new j({array:$t}).tohex()},this.getEncodedHex=function(){return this.tohex()},null!=_&&this.setByParam(_)},Vi(Ae.asn1.tsp.TimeStampReq,Ae.asn1.ASN1Object),Ae.asn1.tsp.TimeStampResp=function(_){var I=Ae.asn1,j=I.DERSequence,_e=I.tsp,xe=_e.PKIStatusInfo;_e.TimeStampResp.superclass.constructor.call(this),this.params=null,this.tohex=function(){var He=this.params,ht=[];if(null!=He.econtent||null!=He.tst)if(ht.push(new xe(null!=He.statusinfo?He.statusinfo:"granted")),null!=He.econtent)ht.push(new _e.TimeStampToken(He).getContentInfo());else{if(!(He.tst instanceof I.ASN1Object))throw new Error("improper member tst value");ht.push(He.tst)}else{if(null==He.statusinfo)throw new Error("parameter for token nor statusinfo not specified");ht.push(new xe(He.statusinfo))}return new j({array:ht}).tohex()},this.getEncodedHex=function(){return this.tohex()},null!=_&&this.setByParam(_)},Vi(Ae.asn1.tsp.TimeStampResp,Ae.asn1.ASN1Object),Ae.asn1.tsp.PKIStatusInfo=function(_){var D=Error,j=Ae.asn1,pe=j.DERSequence,_e=j.tsp,xe=_e.PKIStatus,He=_e.PKIFreeText,ht=_e.PKIFailureInfo;_e.PKIStatusInfo.superclass.constructor.call(this),this.params=null,this.tohex=function(){var yt=this.params,Gt=[];if("string"==typeof yt)Gt.push(new xe(yt));else{if(null==yt.status)throw new D("property 'status' unspecified");Gt.push(new xe(yt.status)),null!=yt.statusstr&&Gt.push(new He(yt.statusstr)),null!=yt.failinfo&&Gt.push(new ht(yt.failinfo))}return new pe({array:Gt}).tohex()},this.getEncodedHex=function(){return this.tohex()},null!=_&&this.setByParam(_)},Vi(Ae.asn1.tsp.PKIStatusInfo,Ae.asn1.ASN1Object),Ae.asn1.tsp.PKIStatus=function(_){var D=Error,j=Ae.asn1,pe=j.DERInteger;j.tsp.PKIStatus.superclass.constructor.call(this);var xe={granted:0,grantedWithMods:1,rejection:2,waiting:3,revocationWarning:4,revocationNotification:5};this.params=null,this.tohex=function(){var yt,He=this.params;if("string"==typeof He)try{yt=xe[He]}catch{throw new D("undefined name: "+He)}else{if("number"!=typeof He)throw new D("unsupported params");yt=He}return new pe({int:yt}).tohex()},this.getEncodedHex=function(){return this.tohex()},null!=_&&this.setByParam(_)},Vi(Ae.asn1.tsp.PKIStatus,Ae.asn1.ASN1Object),Ae.asn1.tsp.PKIFreeText=function(_){var D=Error,j=Ae.asn1,pe=j.DERSequence,_e=j.DERUTF8String;j.tsp.PKIFreeText.superclass.constructor.call(this),this.params=null,this.tohex=function(){var He=this.params;if(!He instanceof Array)throw new D("wrong params: not array");for(var ht=[],yt=0;yt<He.length;yt++)ht.push(new _e({str:He[yt]}));return new pe({array:ht}).tohex()},this.getEncodedHex=function(){return this.tohex()},null!=_&&this.setByParam(_)},Vi(Ae.asn1.tsp.PKIFreeText,Ae.asn1.ASN1Object),Ae.asn1.tsp.PKIFailureInfo=function(_){var D=Error,j=Ae.asn1,pe=j.DERBitString,He={badAlg:0,badRequest:2,badDataFormat:5,timeNotAvailable:14,unacceptedPolicy:15,unacceptedExtension:16,addInfoNotAvailable:17,systemFailure:25};j.tsp.PKIFailureInfo.superclass.constructor.call(this),this.params=null,this.getBinValue=function(){var ht=this.params,yt=0;if("number"==typeof ht&&0<=ht&&ht<=25){for(var Gt=(yt|=1<<ht).toString(2),$t="",st=Gt.length-1;st>=0;st--)$t+=Gt[st];return $t}if("string"==typeof ht&&null!=He[ht])return xa([ht],He);if("object"==typeof ht&&null!=ht.length)return xa(ht,He);throw new D("wrong params")},this.tohex=function(){var yt=this.getBinValue();return new pe({bin:yt}).tohex()},this.getEncodedHex=function(){return this.tohex()},null!=_&&this.setByParam(_)},Vi(Ae.asn1.tsp.PKIFailureInfo,Ae.asn1.ASN1Object),Ae.asn1.tsp.AbstractTSAAdapter=function(_){this.getTSTHex=function(D,I){throw"not implemented yet"}},Ae.asn1.tsp.SimpleTSAAdapter=function(_){var j=Ae.asn1.tsp,pe=Ae.crypto.Util.hashHex;j.SimpleTSAAdapter.superclass.constructor.call(this),this.params=null,this.serial=0,this.getTSTHex=function(_e,xe){var He=pe(_e,xe);this.params.econtent.content.messageImprint={alg:xe,hash:He},this.params.econtent.content.serial={int:this.serial++};var ht=Math.floor(1e9*Math.random());return this.params.econtent.content.nonce={int:ht},new j.TimeStampToken(this.params).getContentInfoEncodedHex()},void 0!==_&&(this.params=_)},Vi(Ae.asn1.tsp.SimpleTSAAdapter,Ae.asn1.tsp.AbstractTSAAdapter),Ae.asn1.tsp.FixedTSAAdapter=function(_){var j=Ae.asn1.tsp,pe=Ae.crypto.Util.hashHex;j.FixedTSAAdapter.superclass.constructor.call(this),this.params=null,this.getTSTHex=function(_e,xe){var He=pe(_e,xe);return this.params.econtent.content.messageImprint={alg:xe,hash:He},new j.TimeStampToken(this.params).getContentInfoEncodedHex()},void 0!==_&&(this.params=_)},Vi(Ae.asn1.tsp.FixedTSAAdapter,Ae.asn1.tsp.AbstractTSAAdapter),Ae.asn1.tsp.TSPUtil=new function(){},Ae.asn1.tsp.TSPUtil.newTimeStampToken=function(_){return new Ae.asn1.tsp.TimeStampToken(_)},Ae.asn1.tsp.TSPUtil.parseTimeStampReq=function(_){return(new Ae.asn1.tsp.TSPParser).getTimeStampReq(_)},Ae.asn1.tsp.TSPUtil.parseMessageImprint=function(_){return(new Ae.asn1.tsp.TSPParser).getMessageImprint(_)},Ae.asn1.tsp.TSPParser=function(){Error;var I=new Mr,j=zi,pe=j.getV,_e=j.getTLV,xe=j.getIdxbyList,ht=j.getChildIdx,yt=["granted","grantedWithMods","rejection","waiting","revocationWarning","revocationNotification"],Gt={0:"badAlg",2:"badRequest",5:"badDataFormat",14:"timeNotAvailable",15:"unacceptedPolicy",16:"unacceptedExtension",17:"addInfoNotAvailable",25:"systemFailure"};this.getResponse=function($t){var st=ht($t,0);if(1==st.length)return this.getPKIStatusInfo(_e($t,st[0]));if(st.length>1){var tt=this.getPKIStatusInfo(_e($t,st[0])),Tt=_e($t,st[1]),Ye=this.getToken(Tt);return Ye.statusinfo=tt,Ye}},this.getToken=function($t){var tt=(new Ae.asn1.cms.CMSParser).getCMSSignedData($t);return this.setTSTInfo(tt),tt},this.setTSTInfo=function($t){var st=$t.econtent;if("tstinfo"==st.type){var Tt=this.getTSTInfo(st.content.hex);st.content=Tt}},this.getTSTInfo=function($t){var st={},tt=ht($t,0),Tt=pe($t,tt[1]);st.policy=Ca(Tt);var Ye=_e($t,tt[2]);st.messageImprint=this.getMessageImprint(Ye);var kt=pe($t,tt[3]);st.serial={hex:kt};var It=pe($t,tt[4]);st.genTime={str:Ws(It)};var un=0;if(tt.length>5&&"30"==$t.substr(tt[5],2)){var xn=_e($t,tt[5]);st.accuracy=this.getAccuracy(xn),un++}if(tt.length>5+un&&"01"==$t.substr(tt[5+un],2)&&("ff"==pe($t,tt[5+un])&&(st.ordering=!0),un++),tt.length>5+un&&"02"==$t.substr(tt[5+un],2)){var Nn=pe($t,tt[5+un]);st.nonce={hex:Nn},un++}if(tt.length>5+un&&"a0"==$t.substr(tt[5+un],2)){var ri=_e($t,tt[5+un]);ri="30"+ri.substr(2),pGeneralNames=I.getGeneralNames(ri);var ui=pGeneralNames[0].dn;st.tsa=ui,un++}if(tt.length>5+un&&"a1"==$t.substr(tt[5+un],2)){var ne=_e($t,tt[5+un]);ne="30"+ne.substr(2);var Ie=I.getExtParamArray(ne);st.ext=Ie,un++}return st},this.getAccuracy=function($t){for(var st={},tt=ht($t,0),Tt=0;Tt<tt.length;Tt++){var Ye=$t.substr(tt[Tt],2),kt=pe($t,tt[Tt]),It=parseInt(kt,16);"02"==Ye?st.seconds=It:"80"==Ye?st.millis=It:"81"==Ye&&(st.micros=It)}return st},this.getMessageImprint=function($t){if("30"!=$t.substr(0,2))throw new Error("head of messageImprint hex shall be x30");var st={},Tt=(ht($t,0),xe($t,0,[0,0])),Ye=pe($t,Tt),kt=j.hextooidstr(Ye),It=Ae.asn1.x509.OID.oid2name(kt);if(""==It)throw new Error("hashAlg name undefined: "+kt);var un=It,xn=xe($t,0,[1]);return st.alg=un,st.hash=pe($t,xn),st},this.getPKIStatusInfo=function($t){var st={},tt=ht($t,0),Tt=0;try{var Ye=pe($t,tt[0]),kt=parseInt(Ye,16);st.status=yt[kt]}catch{}if(tt.length>1&&"30"==$t.substr(tt[1],2)){var It=_e($t,tt[1]);st.statusstr=this.getPKIFreeText(It),Tt++}if(tt.length>Tt&&"03"==$t.substr(tt[1+Tt],2)){var un=_e($t,tt[1+Tt]);st.failinfo=this.getPKIFailureInfo(un)}return st},this.getPKIFreeText=function($t){for(var st=[],tt=ht($t,0),Tt=0;Tt<tt.length;Tt++)st.push(j.getString($t,tt[Tt]));return st},this.getPKIFailureInfo=function($t){var st=j.getInt($t,0);return null!=Gt[st]?Gt[st]:st},this.getTimeStampReq=function($t){var st={certreq:!1},tt=ht($t,0);if(tt.length<2)throw new Error("TimeStampReq must have at least 2 items");var Tt=_e($t,tt[1]);st.messageImprint=Ae.asn1.tsp.TSPUtil.parseMessageImprint(Tt);for(var Ye=2;Ye<tt.length;Ye++){var kt=tt[Ye],It=$t.substr(kt,2);if("06"==It){var un=pe($t,kt);st.policy=j.hextooidstr(un)}"02"==It&&(st.nonce=pe($t,kt)),"01"==It&&(st.certreq=!0)}return st}},(typeof Ae>"u"||!Ae)&&(Ae={}),(typeof Ae.asn1>"u"||!Ae.asn1)&&(Ae.asn1={}),(typeof Ae.asn1.cades>"u"||!Ae.asn1.cades)&&(Ae.asn1.cades={}),Ae.asn1.cades.SignaturePolicyIdentifier=function(_){var j=Ae.asn1.cades,pe=j.SignaturePolicyId;j.SignaturePolicyIdentifier.superclass.constructor.call(this),this.typeOid="1.2.840.113549.1.9.16.2.15",this.params=null,this.getValueArray=function(){return[new pe(this.params)]},this.setByParam=function(_e){this.params=_e},null!=_&&this.setByParam(_)},Vi(Ae.asn1.cades.SignaturePolicyIdentifier,Ae.asn1.cms.Attribute),Ae.asn1.cades.SignaturePolicyId=function(_){var I=Ae.asn1,j=I.DERSequence,pe=I.DERObjectIdentifier,He=I.cades,yt=He.OtherHashAlgAndValue;He.SignaturePolicyId.superclass.constructor.call(this),this.params=null,this.tohex=function(){var Gt=this.params,$t=[];return $t.push(new pe(Gt.oid)),$t.push(new yt(Gt)),new j({array:$t}).tohex()},this.getEncodedHex=function(){return this.tohex()},this.setByParam=function(Gt){this.params=Gt},null!=_&&this.setByParam(_)},Vi(Ae.asn1.cades.SignaturePolicyId,Ae.asn1.ASN1Object),Ae.asn1.cades.OtherHashAlgAndValue=function(_){var D=Error,j=Ae.asn1,pe=j.DERSequence,_e=j.DEROctetString,He=j.x509.AlgorithmIdentifier;j.cades.OtherHashAlgAndValue.superclass.constructor.call(this),this.params=null,this.tohex=function(){var Gt=this.params;if(null==Gt.alg)throw new D("property 'alg' not specified");if(null==Gt.hash&&null==Gt.cert)throw new D("property 'hash' nor 'cert' not specified");var $t=null;if(null!=Gt.hash)$t=Gt.hash;else if(null!=Gt.cert){if("string"!=typeof Gt.cert)throw new D("cert not string");var st=Gt.cert;-1!=Gt.cert.indexOf("-----BEGIN")&&(st=mt(Gt.cert)),$t=Ae.crypto.Util.hashHex(st,Gt.alg)}var tt=[];return tt.push(new He({name:Gt.alg})),tt.push(new _e({hex:$t})),new pe({array:tt}).tohex()},this.getEncodedHex=function(){return this.tohex()},null!=_&&this.setByParam(_)},Vi(Ae.asn1.cades.OtherHashAlgAndValue,Ae.asn1.ASN1Object),Ae.asn1.cades.OtherHashValue=function(_){Ae.asn1.cades.OtherHashValue.superclass.constructor.call(this);var D=Error,_e=Ae.asn1.DEROctetString;this.params=null,this.tohex=function(){var He=this.params;if(null==He.hash&&null==He.cert)throw new D("hash or cert not specified");var ht=null;if(null!=He.hash)ht=He.hash;else if(null!=He.cert){if("string"!=typeof He.cert)throw new D("cert not string");var yt=He.cert;-1!=He.cert.indexOf("-----BEGIN")&&(yt=mt(He.cert)),ht=Ae.crypto.Util.hashHex(yt,"sha1")}return new _e({hex:ht}).tohex()},this.getEncodedHex=function(){return this.tohex()},null!=_&&this.setByParam(_)},Vi(Ae.asn1.cades.OtherHashValue,Ae.asn1.ASN1Object),Ae.asn1.cades.SignatureTimeStamp=function(_){var D=Error,j=Ae.lang.String.isHex,pe=Ae.asn1,_e=pe.ASN1Object;pe.cades.SignatureTimeStamp.superclass.constructor.call(this),this.typeOid="1.2.840.113549.1.9.16.2.14",this.params=null,this.getValueArray=function(){var ht=this.params;if(null!=ht.tst){if(j(ht.tst))return(yt=new _e).hTLV=ht.tst,[yt];if(ht.tst instanceof _e)return[ht.tst];throw new D("params.tst has wrong value")}if(null!=ht.res){var yt,Gt=ht.res;if(Gt instanceof _e&&(Gt=Gt.tohex()),"string"!=typeof Gt||!j(Gt))throw new D("params.res has wrong value");return zi.getTLVbyList(Gt,0,[1]),(yt=new _e).hTLV=ht.tst,[yt]}},null!=_&&this.setByParam(_)},Vi(Ae.asn1.cades.SignatureTimeStamp,Ae.asn1.cms.Attribute),Ae.asn1.cades.CompleteCertificateRefs=function(_){var D=Error,j=Ae.asn1,pe=j.DERSequence,_e=j.cades,xe=_e.OtherCertID,He=Ae.lang.String.isHex;_e.CompleteCertificateRefs.superclass.constructor.call(this),this.typeOid="1.2.840.113549.1.9.16.2.21",this.params=null,this.getValueArray=function(){for(var ht=this.params,yt=[],Gt=0;Gt<ht.array.length;Gt++){var $t=ht.array[Gt];if("string"==typeof $t)if(-1!=$t.indexOf("-----BEGIN"))$t={cert:$t};else{if(!He($t))throw new D("unsupported value: "+$t);$t={hash:$t}}null!=ht.alg&&null==$t.alg&&($t.alg=ht.alg),null!=ht.hasis&&null==$t.hasis&&($t.hasis=ht.hasis);var st=new xe($t);yt.push(st)}return[new pe({array:yt})]},null!=_&&this.setByParam(_)},Vi(Ae.asn1.cades.CompleteCertificateRefs,Ae.asn1.cms.Attribute),Ae.asn1.cades.OtherCertID=function(_){var I=Ae.asn1,j=I.DERSequence,_e=I.cms.IssuerSerial,xe=I.cades,He=xe.OtherHashValue,ht=xe.OtherHashAlgAndValue;xe.OtherCertID.superclass.constructor.call(this),this.params=_,this.tohex=function(){var yt=this.params;"string"==typeof yt&&(-1!=yt.indexOf("-----BEGIN")?yt={cert:yt}:_isHex(yt)&&(yt={hash:yt}));var $t,Gt=[];if($t=null!=yt.alg?new ht(yt):new He(yt),Gt.push($t),null!=yt.cert&&1==yt.hasis||null!=yt.issuer&&null!=yt.serial){var st=new _e(yt);Gt.push(st)}return new j({array:Gt}).tohex()},this.getEncodedHex=function(){return this.tohex()},null!=_&&this.setByParam(_)},Vi(Ae.asn1.cades.OtherCertID,Ae.asn1.ASN1Object),Ae.asn1.cades.OtherHash=function(_){Error;var _e=Ae.asn1.cades,xe=_e.OtherHashAlgAndValue,He=_e.OtherHashValue,yt=Ae.lang.String.isHex;_e.OtherHash.superclass.constructor.call(this),this.params=null,this.tohex=function(){var Gt=this.params;return"string"==typeof Gt&&(-1!=Gt.indexOf("-----BEGIN")?Gt={cert:Gt}:yt(Gt)&&(Gt={hash:Gt})),(null!=Gt.alg?new xe(Gt):new He(Gt)).tohex()},this.getEncodedHex=function(){return this.tohex()},null!=_&&this.setByParam(_)},Vi(Ae.asn1.cades.OtherHash,Ae.asn1.ASN1Object),Ae.asn1.cades.CAdESUtil=new function(){},Ae.asn1.cades.CAdESUtil.parseSignedDataForAddingUnsigned=function(_){return(new Ae.asn1.cms.CMSParser).getCMSSignedData(_)},Ae.asn1.cades.CAdESUtil.parseSignerInfoForAddingUnsigned=function(_,D,I){var _e=zi.getTLV,xe=zi.getV,ht=Ae.asn1,yt=ht.ASN1Object,Gt=ht.cms,$t=Gt.AttributeList,st=Gt.SignerInfo,tt={},Tt=(0,zi.getChildIdx)(_,D);if(6!=Tt.length)throw"not supported items for SignerInfo (!=6)";var Ye=Tt.shift();tt.version=_e(_,Ye);var kt=Tt.shift();tt.si=_e(_,kt);var It=Tt.shift();tt.digalg=_e(_,It);var un=Tt.shift();tt.sattrs=_e(_,un);var xn=Tt.shift();tt.sigalg=_e(_,xn);var In=Tt.shift();tt.sig=_e(_,In),tt.sigval=xe(_,In);var Nn=null;return tt.obj=new st,(Nn=new yt).hTLV=tt.version,tt.obj.dCMSVersion=Nn,(Nn=new yt).hTLV=tt.si,tt.obj.dSignerIdentifier=Nn,(Nn=new yt).hTLV=tt.digalg,tt.obj.dDigestAlgorithm=Nn,(Nn=new yt).hTLV=tt.sattrs,tt.obj.dSignedAttrs=Nn,(Nn=new yt).hTLV=tt.sigalg,tt.obj.dSigAlg=Nn,(Nn=new yt).hTLV=tt.sig,tt.obj.dSig=Nn,tt.obj.dUnsignedAttrs=new $t,tt},(typeof Ae.asn1.csr>"u"||!Ae.asn1.csr)&&(Ae.asn1.csr={}),Ae.asn1.csr.CertificationRequest=function(_){var I=Ae.asn1,j=I.DERBitString,pe=I.DERSequence,_e=I.csr,He=_e.CertificationRequestInfo;_e.CertificationRequest.superclass.constructor.call(this),this.setByParam=function(ht){this.params=ht},this.sign=function(){var ht=new He(this.params).tohex(),yt=new Ae.crypto.Signature({alg:this.params.sigalg});yt.init(this.params.sbjprvkey),yt.updateHex(ht);var Gt=yt.sign();this.params.sighex=Gt},this.getPEM=function(){return $n(this.tohex(),"CERTIFICATE REQUEST")},this.tohex=function(){var ht=this.params,yt=new Ae.asn1.csr.CertificationRequestInfo(this.params),Gt=new Ae.asn1.x509.AlgorithmIdentifier({name:ht.sigalg});if(null==ht.sighex&&null!=ht.sbjprvkey&&this.sign(),null==ht.sighex)throw new Error("sighex or sbjprvkey parameter not defined");var $t=new j({hex:"00"+ht.sighex});return new pe({array:[yt,Gt,$t]}).tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!==_&&this.setByParam(_)},Vi(Ae.asn1.csr.CertificationRequest,Ae.asn1.ASN1Object),Ae.asn1.csr.CertificationRequestInfo=function(_){var I=Ae.asn1,pe=I.DERSequence,_e=I.DERInteger,xe=I.DERUTF8String,He=I.DERTaggedObject,ht=I.ASN1Util.newObject,Gt=I.x509,$t=Gt.X500Name,st=Gt.Extensions,tt=Gt.SubjectPublicKeyInfo;I.csr.CertificationRequestInfo.superclass.constructor.call(this),this.params=null,this.setByParam=function(kt){null!=kt&&(this.params=kt)},this.tohex=function(){var kt=this.params,It=[];if(It.push(new _e({int:0})),It.push(new $t(kt.subject)),It.push(new tt(br.getKey(kt.sbjpubkey))),null!=kt.attrs){var un=function Ye(kt){for(var It=Error,un=Ae.asn1.x509.Extensions,xn=[],In=0;In<kt.length;In++){var Nn=kt[In],ri=Nn.attr;if("extensionRequest"==ri){var ui=new un(Nn.ext);xn.push({seq:[{oid:"1.2.840.113549.1.9.14"},{set:[ui]}]})}else if("unstructuredName"==ri)xn.push({seq:[{oid:"1.2.840.113549.1.9.2"},{set:Nn.names}]});else{if("challengePassword"!=ri)throw new It("unknown CSR attribute");xn.push({seq:[{oid:"1.2.840.113549.1.9.7"},{set:[{utf8str:Nn.password}]}]})}}return{set:xn}}(kt.attrs),xn=ht({tag:{tage:"a0",obj:un}});It.push(xn)}else if(null!=kt.extreq){var In=new st(kt.extreq);xn=ht({tag:{tage:"a0",obj:{seq:[{oid:"1.2.840.113549.1.9.14"},{set:[In]}]}}}),It.push(xn)}else It.push(new He({tag:"a0",explicit:!1,obj:new xe({str:""})}));return new pe({array:It}).tohex()},this.getEncodedHex=function(){return this.tohex()},null!=_&&this.setByParam(_)},Vi(Ae.asn1.csr.CertificationRequestInfo,Ae.asn1.ASN1Object),Ae.asn1.csr.AttributeList=function(_){},Vi(Ae.asn1.csr.AttributeList,Ae.asn1.ASN1Object),Ae.asn1.csr.CSRUtil=new function(){},Ae.asn1.csr.CSRUtil.newCSRPEM=function(_){return new Ae.asn1.csr.CertificationRequest(_).getPEM()},Ae.asn1.csr.CSRUtil.getParam=function(_,D){var j=zi.getV,pe=zi.getIdxbyList,_e=zi.getTLVbyList,xe=zi.getTLVbyListEx,He=zi.getVbyListEx,yt={};if(-1==_.indexOf("-----BEGIN CERTIFICATE REQUEST"))throw new Error("argument is not PEM file");var Gt=mt(_,"CERTIFICATE REQUEST");D&&(yt.tbs=_e(Gt,0,[0]));try{var $t=xe(Gt,0,[0,1]);if("3000"==$t)yt.subject={};else{var Ye=new Mr;yt.subject=Ye.getX500Name($t)}}catch{}var st=xe(Gt,0,[0,2]),tt=br.getKey(st,null,"pkcs8pub");yt.sbjpubkey=br.getPEM(tt,"PKCS8PUB");var un,xn,Tt=(xn=pe(un=Gt,0,[0,3,0,0],"06"),"2a864886f70d01090e"!=j(un,xn)?null:_e(un,0,[0,3,0,1,0],"30"));Ye=new Mr,null!=Tt&&(yt.extreq=Ye.getExtParamArray(Tt));try{var kt=xe(Gt,0,[1],"30");Ye=new Mr,yt.sigalg=Ye.getAlgorithmIdentifierName(kt)}catch{}try{var It=He(Gt,0,[2]);yt.sighex=It}catch{}return yt},Ae.asn1.csr.CSRUtil.verifySignature=function(_){try{var D=null;if("string"==typeof _&&-1!=_.indexOf("-----BEGIN CERTIFICATE REQUEST")?D=Ae.asn1.csr.CSRUtil.getParam(_,!0):"object"==typeof _&&null!=_.sbjpubkey&&null!=_.sigalg&&null!=_.sighex&&null!=_.tbs&&(D=_),null==D)return!1;var I=new Ae.crypto.Signature({alg:D.sigalg});return I.init(D.sbjpubkey),I.updateHex(D.tbs),I.verify(D.sighex)}catch(j){return alert(j),!1}},(typeof Ae>"u"||!Ae)&&(Ae={}),(typeof Ae.asn1>"u"||!Ae.asn1)&&(Ae.asn1={}),(typeof Ae.asn1.ocsp>"u"||!Ae.asn1.ocsp)&&(Ae.asn1.ocsp={}),Ae.asn1.ocsp.DEFAULT_HASH="sha1",Ae.asn1.ocsp.OCSPResponse=function(_){Ae.asn1.ocsp.OCSPResponse.superclass.constructor.call(this);var I=Ae.asn1.ASN1Util.newObject,j=Ae.asn1.ocsp.ResponseBytes,pe=["successful","malformedRequest","internalError","tryLater","_not_used_","sigRequired","unauthorized"];this.params=null,this._getStatusCode=function(){var _e=this.params.resstatus;return"number"==typeof _e?_e:"string"!=typeof _e?-1:pe.indexOf(_e)},this.setByParam=function(_e){this.params=_e},this.tohex=function(){var _e=this.params,xe=this._getStatusCode();if(-1==xe)throw new Error("responseStatus not supported: "+_e.resstatus);if(0!=xe)return I({seq:[{enum:{int:xe}}]}).tohex();var He=new j(_e);return I({seq:[{enum:{int:0}},{tag:{tag:"a0",explicit:!0,obj:He}}]}).tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!==_&&this.setByParam(_)},Vi(Ae.asn1.ocsp.OCSPResponse,Ae.asn1.ASN1Object),Ae.asn1.ocsp.ResponseBytes=function(_){Ae.asn1.ocsp.ResponseBytes.superclass.constructor.call(this);var D=Ae.asn1,I=D.DERSequence,j=D.DERObjectIdentifier,pe=D.DEROctetString,_e=D.ocsp.BasicOCSPResponse;this.params=null,this.setByParam=function(xe){this.params=xe},this.tohex=function(){var xe=this.params;if("ocspBasic"!=xe.restype)throw new Error("not supported responseType: "+xe.restype);var He=new _e(xe),ht=[];return ht.push(new j({name:"ocspBasic"})),ht.push(new pe({hex:He.tohex()})),new I({array:ht}).tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!==_&&this.setByParam(_)},Vi(Ae.asn1.ocsp.ResponseBytes,Ae.asn1.ASN1Object),Ae.asn1.ocsp.BasicOCSPResponse=function(_){Ae.asn1.ocsp.BasicOCSPResponse.superclass.constructor.call(this);var D=Error,I=Ae.asn1,j=I.ASN1Object,pe=I.DERSequence,xe=I.DERTaggedObject,He=I.DERBitString,yt=I.x509.AlgorithmIdentifier,Gt=I.ocsp;_SingleResponseList=Gt.SingleResponseList,_ResponseData=Gt.ResponseData,this.params=null,this.setByParam=function(st){this.params=st},this.sign=function(){var st=this.params,tt=st.tbsresp.tohex(),Tt=new Ae.crypto.Signature({alg:st.sigalg});Tt.init(st.reskey),Tt.updateHex(tt),st.sighex=Tt.sign()},this.tohex=function(){var st=this.params;null==st.tbsresp&&(st.tbsresp=new _ResponseData(st)),null==st.sighex&&null!=st.reskey&&this.sign();var tt=[];if(tt.push(st.tbsresp),tt.push(new yt({name:st.sigalg})),tt.push(new He({hex:"00"+st.sighex})),null!=st.certs&&null!=st.certs.length){for(var Tt=[],Ye=0;Ye<st.certs.length;Ye++){var kt=st.certs[Ye],It=null;if(zi.isASN1HEX(kt))It=kt;else{if(!kt.match(/-----BEGIN/))throw new D("certs["+Ye+"] not hex or PEM");It=mt(kt)}Tt.push(new j({tlv:It}))}var un=new pe({array:Tt});tt.push(new xe({tag:"a0",explicit:!0,obj:un}))}return new pe({array:tt}).tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!==_&&this.setByParam(_)},Vi(Ae.asn1.ocsp.BasicOCSPResponse,Ae.asn1.ASN1Object),Ae.asn1.ocsp.ResponseData=function(_){Ae.asn1.ocsp.ResponseData.superclass.constructor.call(this);var D=Error,I=Ae.asn1,j=I.DERSequence,pe=I.DERGeneralizedTime,_e=I.DERTaggedObject,xe=I.x509.Extensions,He=I.ocsp,ht=He.ResponderID;_SingleResponseList=He.SingleResponseList,this.params=null,this.tohex=function(){var yt=this.params;null!=yt.respid&&new D("respid not specified"),null!=yt.prodat&&new D("prodat not specified"),null!=yt.array&&new D("array not specified");var Gt=[];if(Gt.push(new ht(yt.respid)),Gt.push(new pe(yt.prodat)),Gt.push(new _SingleResponseList(yt.array)),null!=yt.ext){var $t=new xe(yt.ext);Gt.push(new _e({tag:"a1",explicit:!0,obj:$t}))}return new j({array:Gt}).tohex()},this.getEncodedHex=function(){return this.tohex()},this.setByParam=function(yt){this.params=yt},void 0!==_&&this.setByParam(_)},Vi(Ae.asn1.ocsp.ResponseData,Ae.asn1.ASN1Object),Ae.asn1.ocsp.ResponderID=function(_){Ae.asn1.ocsp.ResponderID.superclass.constructor.call(this);var I=Ae.asn1,j=I.ASN1Util.newObject,pe=I.x509.X500Name,_e=Ae.lang.String.isHex,xe=Error;this.params=null,this.tohex=function(){var He=this.params;if(null!=He.key){var ht=null;if("string"==typeof He.key)_e(He.key)&&(ht=He.key),He.key.match(/-----BEGIN CERTIFICATE/)&&null!=(Gt=new Mr(He.key).getExtSubjectKeyIdentifier())&&(ht=Gt.kid.hex);else if(He.key instanceof Mr){var Gt;null!=(Gt=He.key.getExtSubjectKeyIdentifier())&&(ht=Gt.kid.hex)}if(null==ht)throw new xe("wrong key member value");return j({tag:{tag:"a2",explicit:!0,obj:{octstr:{hex:ht}}}}).tohex()}if(null!=He.name){var st=null;if("string"==typeof He.name&&He.name.match(/-----BEGIN CERTIFICATE/)?st=new Mr(He.name).getSubject():He.name instanceof Mr?st=He.name.getSubject():"object"==typeof He.name&&(null!=He.name.array||null!=He.name.str)&&(st=He.name),null==st)throw new xe("wrong name member value");return j({tag:{tag:"a1",explicit:!0,obj:new pe(st)}}).tohex()}throw new xe("key or name not specified")},this.getEncodedHex=function(){return this.tohex()},this.setByParam=function(He){this.params=He},void 0!==_&&this.setByParam(_)},Vi(Ae.asn1.ocsp.ResponderID,Ae.asn1.ASN1Object),Ae.asn1.ocsp.SingleResponseList=function(_){Ae.asn1.ocsp.SingleResponseList.superclass.constructor.call(this);var D=Ae.asn1,I=D.DERSequence,j=D.ocsp.SingleResponse;this.params=null,this.tohex=function(){var pe=this.params;if("object"!=typeof pe||null==pe.length)throw new Error("params not specified properly");for(var _e=[],xe=0;xe<pe.length;xe++)_e.push(new j(pe[xe]));return new I({array:_e}).tohex()},this.getEncodedHex=function(){return this.tohex()},this.setByParam=function(pe){this.params=pe},void 0!==_&&this.setByParam(_)},Vi(Ae.asn1.ocsp.SingleResponseList,Ae.asn1.ASN1Object),Ae.asn1.ocsp.SingleResponse=function(_){var D=Error,j=Ae.asn1,pe=j.DERSequence,_e=j.DERGeneralizedTime,xe=j.DERTaggedObject,He=j.ocsp,ht=He.CertID,yt=He.CertStatus,$t=j.x509.Extensions;He.SingleResponse.superclass.constructor.call(this),this.params=null,this.tohex=function(){var st=this.params,tt=[];if(null==st.certid)throw new D("certid unspecified");if(null==st.status)throw new D("status unspecified");if(null==st.thisupdate)throw new D("thisupdate unspecified");if(tt.push(new ht(st.certid)),tt.push(new yt(st.status)),tt.push(new _e(st.thisupdate)),null!=st.nextupdate){var Tt=new _e(st.nextupdate);tt.push(new xe({tag:"a0",explicit:!0,obj:Tt}))}if(null!=st.ext){var Ye=new $t(st.ext);tt.push(new xe({tag:"a1",explicit:!0,obj:Ye}))}return new pe({array:tt}).tohex()},this.getEncodedHex=function(){return this.tohex()},this.setByParam=function(st){this.params=st},void 0!==_&&this.setByParam(_)},Vi(Ae.asn1.ocsp.SingleResponse,Ae.asn1.ASN1Object),Ae.asn1.ocsp.CertID=function(_){var I=Ae.asn1,j=I.DEROctetString,pe=I.DERInteger,_e=I.DERSequence,He=I.x509.AlgorithmIdentifier,$t=Ae.crypto.Util.hashHex,st=Mr,Tt=zi.getVbyList;I.ocsp.CertID.superclass.constructor.call(this),this.DEFAULT_HASH="sha1",this.params=null,this.setByValue=function(Ye,kt,It,un){null==un&&(un=this.DEFAULT_HASH),this.params={alg:un,issname:Ye,isskey:kt,sbjsn:It}},this.setByCert=function(Ye,kt,It){null==It&&(It=this.DEFAULT_HASH),this.params={alg:It,issuerCert:Ye,subjectCert:kt}},this.getParamByCerts=function(Ye,kt,It){null==It&&(It=this.DEFAULT_HASH);var un=new st(Ye),xn=new st(kt),In=$t(un.getSubjectHex(),It),Nn=un.getPublicKeyHex();return{alg:It,issname:In,isskey:$t(Tt(Nn,0,[1],"03",!0),It),sbjsn:xn.getSerialNumberHex()}},this.tohex=function(){if("object"!=typeof this.params)throw new Error("params not set");var kt,It,un,xn,Ye=this.params;if(xn=null==Ye.alg?this.DEFAULT_HASH:Ye.alg,null!=Ye.issuerCert&&null!=Ye.subjectCert){var In=this.getParamByCerts(Ye.issuerCert,Ye.subjectCert,xn);kt=In.issname,It=In.isskey,un=In.sbjsn}else{if(null==Ye.issname||null==Ye.isskey||null==Ye.sbjsn)throw new Error("required param members not defined");kt=Ye.issname,It=Ye.isskey,un=Ye.sbjsn}var Nn=new He({name:xn}),ri=new j({hex:kt}),ui=new j({hex:It}),ne=new pe({hex:un}),Ie=new _e({array:[Nn,ri,ui,ne]});return this.hTLV=Ie.tohex(),this.hTLV},this.getEncodedHex=function(){return this.tohex()},void 0!==_&&this.setByParam(_)},Vi(Ae.asn1.ocsp.CertID,Ae.asn1.ASN1Object),Ae.asn1.ocsp.CertStatus=function(_){Ae.asn1.ocsp.CertStatus.superclass.constructor.call(this),this.params=null,this.tohex=function(){var D=this.params;if("good"==D.status)return"8000";if("unknown"==D.status)return"8200";if("revoked"==D.status){var I=[{gentime:{str:D.time}}];return null!=D.reason&&I.push({tag:{tag:"a0",explicit:!0,obj:{enum:{int:D.reason}}}}),Ae.asn1.ASN1Util.newObject({tag:{tag:"a1",explicit:!1,obj:{seq:I}}}).tohex()}throw new Error("bad status")},this.getEncodedHex=function(){return this.tohex()},this.setByParam=function(D){this.params=D},void 0!==_&&this.setByParam(_)},Vi(Ae.asn1.ocsp.CertStatus,Ae.asn1.ASN1Object),Ae.asn1.ocsp.Request=function(_){var I=Ae.asn1,j=I.DERSequence,pe=I.ocsp;if(pe.Request.superclass.constructor.call(this),this.dReqCert=null,this.dExt=null,this.tohex=function(){var xe=[];if(null===this.dReqCert)throw"reqCert not set";xe.push(this.dReqCert);var He=new j({array:xe});return this.hTLV=He.tohex(),this.hTLV},this.getEncodedHex=function(){return this.tohex()},typeof _<"u"){var _e=new pe.CertID(_);this.dReqCert=_e}},Vi(Ae.asn1.ocsp.Request,Ae.asn1.ASN1Object),Ae.asn1.ocsp.TBSRequest=function(_){var I=Ae.asn1,j=I.DERSequence,pe=I.ocsp;pe.TBSRequest.superclass.constructor.call(this),this.version=0,this.dRequestorName=null,this.dRequestList=[],this.dRequestExt=null,this.setRequestListByParam=function(_e){for(var xe=[],He=0;He<_e.length;He++){var ht=new pe.Request(_e[0]);xe.push(ht)}this.dRequestList=xe},this.tohex=function(){var _e=[];if(0!==this.version)throw"not supported version: "+this.version;if(null!==this.dRequestorName)throw"requestorName not supported";var xe=new j({array:this.dRequestList});if(_e.push(xe),null!==this.dRequestExt)throw"requestExtensions not supported";var He=new j({array:_e});return this.hTLV=He.tohex(),this.hTLV},this.getEncodedHex=function(){return this.tohex()},void 0!==_&&void 0!==_.reqList&&this.setRequestListByParam(_.reqList)},Vi(Ae.asn1.ocsp.TBSRequest,Ae.asn1.ASN1Object),Ae.asn1.ocsp.OCSPRequest=function(_){var I=Ae.asn1,j=I.DERSequence,pe=I.ocsp;if(pe.OCSPRequest.superclass.constructor.call(this),this.dTbsRequest=null,this.dOptionalSignature=null,this.tohex=function(){var xe=[];if(null===this.dTbsRequest)throw"tbsRequest not set";if(xe.push(this.dTbsRequest),null!==this.dOptionalSignature)throw"optionalSignature not supported";var He=new j({array:xe});return this.hTLV=He.tohex(),this.hTLV},this.getEncodedHex=function(){return this.tohex()},void 0!==_&&void 0!==_.reqList){var _e=new pe.TBSRequest(_);this.dTbsRequest=_e}},Vi(Ae.asn1.ocsp.OCSPRequest,Ae.asn1.ASN1Object),Ae.asn1.ocsp.OCSPUtil={},Ae.asn1.ocsp.OCSPUtil.getRequestHex=function(_,D,I){var _e=Ae.asn1.ocsp;return void 0===I&&(I=_e.DEFAULT_HASH),new _e.OCSPRequest({reqList:[{alg:I,issuerCert:_,subjectCert:D}]}).tohex()},Ae.asn1.ocsp.OCSPUtil.getOCSPResponseInfo=function(_){var I=zi.getVbyList,j=zi.getVbyListEx,pe=zi.getIdxbyList,xe=zi.getV,He={};try{var ht=j(_,0,[0],"0a");He.responseStatus=parseInt(ht,16)}catch{}if(0!==He.responseStatus)return He;try{var yt=pe(_,0,[1,0,1,0,0,2,0,1]);"80"===_.substr(yt,2)?He.certStatus="good":"a1"===_.substr(yt,2)?(He.certStatus="revoked",He.revocationTime=Ws(I(_,yt,[0]))):"82"===_.substr(yt,2)&&(He.certStatus="unknown")}catch{}try{var Gt=pe(_,0,[1,0,1,0,0,2,0,2]);He.thisUpdate=Ws(xe(_,Gt))}catch{}try{var $t=pe(_,0,[1,0,1,0,0,2,0,3]);"a0"===_.substr($t,2)&&(He.nextUpdate=Ws(I(_,$t,[0])))}catch{}return He},Ae.asn1.ocsp.OCSPParser=function(){var _=Error,D=Mr,I=new D,pe=zi.getV,_e=zi.getTLV,xe=zi.getIdxbyList,He=zi.getVbyList,ht=zi.getTLVbyList,yt=zi.getVbyListEx,Gt=zi.getTLVbyListEx,$t=zi.getChildIdx;this.getOCSPRequest=function(st){var tt=$t(st,0);if(1!=tt.length&&2!=tt.length)throw new _("wrong number elements: "+tt.length);return this.getTBSRequest(_e(st,tt[0]))},this.getTBSRequest=function(st){var tt={},Tt=Gt(st,0,[0],"30");tt.array=this.getRequestList(Tt);var Ye=Gt(st,0,["[2]",0],"30");return null!=Ye&&(tt.ext=I.getExtParamArray(Ye)),tt},this.getRequestList=function(st){for(var tt=[],Tt=$t(st,0),Ye=0;Ye<Tt.length;Ye++)st=_e(st,Tt[Ye]),tt.push(this.getRequest(st));return tt},this.getRequest=function(st){var tt=$t(st,0);if(1!=tt.length&&2!=tt.length)throw new _("wrong number elements: "+tt.length);var Tt=this.getCertID(_e(st,tt[0]));if(2==tt.length){var Ye=xe(st,0,[1,0]);Tt.ext=I.getExtParamArray(_e(st,Ye))}return Tt},this.getCertID=function(st){var tt=$t(st,0);if(4!=tt.length)throw new _("wrong number elements: "+tt.length);var Tt=new D,Ye={};return Ye.alg=Tt.getAlgorithmIdentifierName(_e(st,tt[0])),Ye.issname=pe(st,tt[1]),Ye.isskey=pe(st,tt[2]),Ye.sbjsn=pe(st,tt[3]),Ye},this.getOCSPResponse=function(st){var Tt,tt=$t(st,0),Ye=pe(st,tt[0]),kt=parseInt(Ye);if(1==tt.length)return{resstatus:kt};var It=ht(st,0,[1,0]);return(Tt=this.getResponseBytes(It)).resstatus=kt,Tt},this.getResponseBytes=function(st){var Tt,tt=$t(st,0),Ye=ht(st,0,[1,0]);Tt=this.getBasicOCSPResponse(Ye);var kt=pe(st,tt[0]);return Tt.restype=Ae.asn1.x509.OID.oid2name(Ca(kt)),Tt},this.getBasicOCSPResponse=function(st){var Tt,tt=$t(st,0);Tt=this.getResponseData(_e(st,tt[0]));var Ye=new Mr;Tt.alg=Ye.getAlgorithmIdentifierName(_e(st,tt[1]));var kt=pe(st,tt[2]);Tt.sighex=kt.substr(2);var It=yt(st,0,["[0]"]);if(null!=It){for(var un=$t(It,0),xn=[],In=0;In<un.length;In++){var Nn=_e(It,un[In]);xn.push(Nn)}Tt.certs=xn}return Tt},this.getResponseData=function(st){var tt=$t(st,0),Tt=tt.length,Ye={},kt=0;"a0"==st.substr(tt[0],2)&&kt++,Ye.respid=this.getResponderID(_e(st,tt[kt++]));var It=pe(st,tt[kt++]);if(Ye.prodat=Ws(It),Ye.array=this.getSingleResponseList(_e(st,tt[kt++])),"a1"==st.substr(tt[Tt-1],2)){var un=ht(st,tt[Tt-1],[0]),xn=new Mr;Ye.ext=xn.getExtParamArray(un)}return Ye},this.getResponderID=function(st){var tt={};if("a2"==st.substr(0,2)){var Tt=He(st,0,[0]);tt.key=Tt}if("a1"==st.substr(0,2)){var Ye=ht(st,0,[0]),kt=new Mr;tt.name=kt.getX500Name(Ye)}return tt},this.getSingleResponseList=function(st){for(var tt=$t(st,0),Tt=[],Ye=0;Ye<tt.length;Ye++){var kt=this.getSingleResponse(_e(st,tt[Ye]));Tt.push(kt)}return Tt},this.getSingleResponse=function(st){var tt=$t(st,0),Tt={},Ye=this.getCertID(_e(st,tt[0]));Tt.certid=Ye;var kt=this.getCertStatus(_e(st,tt[1]));if(Tt.status=kt,"18"==st.substr(tt[2],2)){var It=pe(st,tt[2]);Tt.thisupdate=Ws(It)}for(var un=3;un<tt.length;un++){if("a0"==st.substr(tt[un],2)){var xn=He(st,tt[un],[0],"18");Tt.nextupdate=Ws(xn)}if("a1"==st.substr(tt[un],2)){var In=new Mr,Nn=ht(st,0,[un,0]);Tt.ext=In.getExtParamArray(Nn)}}return Tt},this.getCertStatus=function(st){var tt={};if("8000"==st)return{status:"good"};if("8200"==st)return{status:"unknown"};if("a1"==st.substr(0,2)){tt.status="revoked";var Ye=Ws(He(st,0,[0]));tt.time=Ye}return tt}},(typeof Ae>"u"||!Ae)&&(Ae={}),(typeof Ae.lang>"u"||!Ae.lang)&&(Ae.lang={}),Ae.lang.String=function(){},"function"==typeof Buffer?(Dn=function(_){return ga(Buffer.from(_,"utf8").toString("base64"))},qn=function(_){return Buffer.from(on(_),"base64").toString("utf8")}):(Dn=function(_){return Dt(Us(Pi(_)))},qn=function(_){return decodeURIComponent(Vs(Mt(_)))}),Ae.lang.String.isInteger=function(_){return!!_.match(/^[0-9]+$/)||!!_.match(/^-[0-9]+$/)},Ae.lang.String.isHex=function(_){return ws(_)},Ae.lang.String.isBase64=function(_){return!(!(_=_.replace(/\s+/g,"")).match(/^[0-9A-Za-z+\/]+={0,3}$/)||_.length%4!=0)},Ae.lang.String.isBase64URL=function(_){return!_.match(/[+/=]/)&&(_=on(_),Ae.lang.String.isBase64(_))},Ae.lang.String.isIntegerArray=function(_){return!!(_=_.replace(/\s+/g,"")).match(/^\[[0-9,]+\]$/)},Ae.lang.String.isPrintable=function(_){return null!==_.match(/^[0-9A-Za-z '()+,-./:=?]*$/)},Ae.lang.String.isIA5=function(_){return null!==_.match(/^[\x20-\x21\x23-\x7f]*$/)},Ae.lang.String.isMail=function(_){return null!==_.match(/^[A-Za-z0-9]{1}[A-Za-z0-9_.-]*@{1}[A-Za-z0-9_.-]{1,}\.[A-Za-z0-9]{1,}$/)};var rl=function(_,D,I){return null==I&&(I="0"),_.length>=D?_:new Array(D-_.length+1).join(I)+_};function xa(_,D){for(var I=0,j=0;j<_.length;j++)I|=1<<D[_[j]];var pe=I.toString(2),_e="";for(j=pe.length-1;j>=0;j--)_e+=pe[j];return _e}function ho(_,j,I){if("object"==typeof _){j=String(j).split(".");for(var pe=0;pe<j.length&&_;pe++){var _e=j[pe];_e.match(/^[0-9]+$/)&&(_e=parseInt(_e)),_=_[_e]}return _||!1===_?_:I}}function Vi(_,D){var I=function(){};I.prototype=D.prototype,_.prototype=new I,_.prototype.constructor=_,_.superclass=D.prototype,D.prototype.constructor==Object.prototype.constructor&&(D.prototype.constructor=D)}(typeof Ae>"u"||!Ae)&&(Ae={}),(typeof Ae.crypto>"u"||!Ae.crypto)&&(Ae.crypto={}),Ae.crypto.Util=new function(){this.DIGESTINFOHEAD={sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",ripemd160:"3021300906052b2403020105000414"},this.DEFAULTPROVIDER={md5:"cryptojs",sha1:"cryptojs",sha224:"cryptojs",sha256:"cryptojs",sha384:"cryptojs",sha512:"cryptojs",ripemd160:"cryptojs",hmacmd5:"cryptojs",hmacsha1:"cryptojs",hmacsha224:"cryptojs",hmacsha256:"cryptojs",hmacsha384:"cryptojs",hmacsha512:"cryptojs",hmacripemd160:"cryptojs",MD5withRSA:"cryptojs/jsrsa",SHA1withRSA:"cryptojs/jsrsa",SHA224withRSA:"cryptojs/jsrsa",SHA256withRSA:"cryptojs/jsrsa",SHA384withRSA:"cryptojs/jsrsa",SHA512withRSA:"cryptojs/jsrsa",RIPEMD160withRSA:"cryptojs/jsrsa",MD5withECDSA:"cryptojs/jsrsa",SHA1withECDSA:"cryptojs/jsrsa",SHA224withECDSA:"cryptojs/jsrsa",SHA256withECDSA:"cryptojs/jsrsa",SHA384withECDSA:"cryptojs/jsrsa",SHA512withECDSA:"cryptojs/jsrsa",RIPEMD160withECDSA:"cryptojs/jsrsa",SHA1withDSA:"cryptojs/jsrsa",SHA224withDSA:"cryptojs/jsrsa",SHA256withDSA:"cryptojs/jsrsa",MD5withRSAandMGF1:"cryptojs/jsrsa",SHAwithRSAandMGF1:"cryptojs/jsrsa",SHA1withRSAandMGF1:"cryptojs/jsrsa",SHA224withRSAandMGF1:"cryptojs/jsrsa",SHA256withRSAandMGF1:"cryptojs/jsrsa",SHA384withRSAandMGF1:"cryptojs/jsrsa",SHA512withRSAandMGF1:"cryptojs/jsrsa",RIPEMD160withRSAandMGF1:"cryptojs/jsrsa"},this.CRYPTOJSMESSAGEDIGESTNAME={md5:S.algo.MD5,sha1:S.algo.SHA1,sha224:S.algo.SHA224,sha256:S.algo.SHA256,sha384:S.algo.SHA384,sha512:S.algo.SHA512,ripemd160:S.algo.RIPEMD160},this.getDigestInfoHex=function(_,D){if(typeof this.DIGESTINFOHEAD[D]>"u")throw"alg not supported in Util.DIGESTINFOHEAD: "+D;return this.DIGESTINFOHEAD[D]+_},this.getPaddedDigestInfoHex=function(_,D,I){var j=this.getDigestInfoHex(_,D),pe=I/4;if(j.length+22>pe)throw"key is too short for SigAlg: keylen="+I+","+D;for(var xe="00"+j,He="",ht=pe-4-xe.length,yt=0;yt<ht;yt+=2)He+="ff";return"0001"+He+xe},this.hashString=function(_,D){return new Ae.crypto.MessageDigest({alg:D}).digestString(_)},this.hashHex=function(_,D){return new Ae.crypto.MessageDigest({alg:D}).digestHex(_)},this.sha1=function(_){return this.hashString(_,"sha1")},this.sha256=function(_){return this.hashString(_,"sha256")},this.sha256Hex=function(_){return this.hashHex(_,"sha256")},this.sha512=function(_){return this.hashString(_,"sha512")},this.sha512Hex=function(_){return this.hashHex(_,"sha512")},this.isKey=function(_){return _ instanceof Rr||_ instanceof Ae.crypto.DSA||_ instanceof Ae.crypto.ECDSA}},Ae.crypto.Util.md5=function(_){return new Ae.crypto.MessageDigest({alg:"md5",prov:"cryptojs"}).digestString(_)},Ae.crypto.Util.ripemd160=function(_){return new Ae.crypto.MessageDigest({alg:"ripemd160",prov:"cryptojs"}).digestString(_)},Ae.crypto.Util.SECURERANDOMGEN=new qs,Ae.crypto.Util.getRandomHexOfNbytes=function(_){var D=new Array(_);return Ae.crypto.Util.SECURERANDOMGEN.nextBytes(D),Xi(D)},Ae.crypto.Util.getRandomBigIntegerOfNbytes=function(_){return new u(Ae.crypto.Util.getRandomHexOfNbytes(_),16)},Ae.crypto.Util.getRandomHexOfNbits=function(_){var D=_%8,j=new Array((_-D)/8+1);return Ae.crypto.Util.SECURERANDOMGEN.nextBytes(j),j[0]=(255<<D&255^255)&j[0],Xi(j)},Ae.crypto.Util.getRandomBigIntegerOfNbits=function(_){return new u(Ae.crypto.Util.getRandomHexOfNbits(_),16)},Ae.crypto.Util.getRandomBigIntegerZeroToMax=function(_){for(var D=_.bitLength();;){var I=Ae.crypto.Util.getRandomBigIntegerOfNbits(D);if(-1!=_.compareTo(I))return I}},Ae.crypto.Util.getRandomBigIntegerMinToMax=function(_,D){var I=_.compareTo(D);if(1==I)throw"biMin is greater than biMax";if(0==I)return _;var j=D.subtract(_);return Ae.crypto.Util.getRandomBigIntegerZeroToMax(j).add(_)},Ae.crypto.MessageDigest=function(_){this.setAlgAndProvider=function(pe,_e){if(null!==(pe=Ae.crypto.MessageDigest.getCanonicalAlgName(pe))&&void 0===_e&&(_e=Ae.crypto.Util.DEFAULTPROVIDER[pe]),-1!=":md5:sha1:sha224:sha256:sha384:sha512:ripemd160:".indexOf(pe)&&"cryptojs"==_e){try{this.md=Ae.crypto.Util.CRYPTOJSMESSAGEDIGESTNAME[pe].create()}catch(xe){throw"setAlgAndProvider hash alg set fail alg="+pe+"/"+xe}this.updateString=function(xe){this.md.update(xe)},this.updateHex=function(xe){var He=S.enc.Hex.parse(xe);this.md.update(He)},this.digest=function(){return this.md.finalize().toString(S.enc.Hex)},this.digestString=function(xe){return this.updateString(xe),this.digest()},this.digestHex=function(xe){return this.updateHex(xe),this.digest()}}if(-1!=":sha256:".indexOf(pe)&&"sjcl"==_e){try{this.md=new sjcl.hash.sha256}catch(xe){throw"setAlgAndProvider hash alg set fail alg="+pe+"/"+xe}this.updateString=function(xe){this.md.update(xe)},this.updateHex=function(xe){var He=sjcl.codec.hex.toBits(xe);this.md.update(He)},this.digest=function(){var xe=this.md.finalize();return sjcl.codec.hex.fromBits(xe)},this.digestString=function(xe){return this.updateString(xe),this.digest()},this.digestHex=function(xe){return this.updateHex(xe),this.digest()}}},this.updateString=function(pe){throw"updateString(str) not supported for this alg/prov: "+this.algName+"/"+this.provName},this.updateHex=function(pe){throw"updateHex(hex) not supported for this alg/prov: "+this.algName+"/"+this.provName},this.digest=function(){throw"digest() not supported for this alg/prov: "+this.algName+"/"+this.provName},this.digestString=function(pe){throw"digestString(str) not supported for this alg/prov: "+this.algName+"/"+this.provName},this.digestHex=function(pe){throw"digestHex(hex) not supported for this alg/prov: "+this.algName+"/"+this.provName},void 0!==_&&void 0!==_.alg&&(this.algName=_.alg,void 0===_.prov&&(this.provName=Ae.crypto.Util.DEFAULTPROVIDER[this.algName]),this.setAlgAndProvider(this.algName,this.provName))},Ae.crypto.MessageDigest.getCanonicalAlgName=function(_){return"string"==typeof _&&(_=(_=_.toLowerCase()).replace(/-/,"")),_},Ae.crypto.MessageDigest.getHashLength=function(_){var D=Ae.crypto.MessageDigest,I=D.getCanonicalAlgName(_);if(void 0===D.HASHLENGTH[I])throw"not supported algorithm: "+_;return D.HASHLENGTH[I]},Ae.crypto.MessageDigest.HASHLENGTH={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,ripemd160:20},Ae.crypto.Mac=function(_){this.setAlgAndProvider=function(xe,He){if(null==(xe=xe.toLowerCase())&&(xe="hmacsha1"),"hmac"!=(xe=xe.toLowerCase()).substr(0,4))throw"setAlgAndProvider unsupported HMAC alg: "+xe;void 0===He&&(He=Ae.crypto.Util.DEFAULTPROVIDER[xe]),this.algProv=xe+"/"+He;var ht=xe.substr(4);if(-1!=":md5:sha1:sha224:sha256:sha384:sha512:ripemd160:".indexOf(ht)&&"cryptojs"==He){try{this.mac=S.algo.HMAC.create(Ae.crypto.Util.CRYPTOJSMESSAGEDIGESTNAME[ht],this.pass)}catch(Gt){throw"setAlgAndProvider hash alg set fail hashAlg="+ht+"/"+Gt}this.updateString=function(Gt){this.mac.update(Gt)},this.updateHex=function(Gt){var $t=S.enc.Hex.parse(Gt);this.mac.update($t)},this.doFinal=function(){return this.mac.finalize().toString(S.enc.Hex)},this.doFinalString=function(Gt){return this.updateString(Gt),this.doFinal()},this.doFinalHex=function(Gt){return this.updateHex(Gt),this.doFinal()}}},this.updateString=function(xe){throw"updateString(str) not supported for this alg/prov: "+this.algProv},this.updateHex=function(xe){throw"updateHex(hex) not supported for this alg/prov: "+this.algProv},this.doFinal=function(){throw"digest() not supported for this alg/prov: "+this.algProv},this.doFinalString=function(xe){throw"digestString(str) not supported for this alg/prov: "+this.algProv},this.doFinalHex=function(xe){throw"digestHex(hex) not supported for this alg/prov: "+this.algProv},this.setPassword=function(xe){if("string"==typeof xe){var He=xe;return(xe.length%2==1||!xe.match(/^[0-9A-Fa-f]+$/))&&(He=Is(xe)),void(this.pass=S.enc.Hex.parse(He))}if("object"!=typeof xe)throw"KJUR.crypto.Mac unsupported password type: "+xe;if(He=null,void 0!==xe.hex){if(xe.hex.length%2!=0||!xe.hex.match(/^[0-9A-Fa-f]+$/))throw"Mac: wrong hex password: "+xe.hex;He=xe.hex}if(void 0!==xe.utf8&&(He=Do(xe.utf8)),void 0!==xe.rstr&&(He=Is(xe.rstr)),void 0!==xe.b64&&(He=A(xe.b64)),void 0!==xe.b64u&&(He=Mt(xe.b64u)),null==He)throw"KJUR.crypto.Mac unsupported password type: "+xe;this.pass=S.enc.Hex.parse(He)},void 0!==_&&(void 0!==_.pass&&this.setPassword(_.pass),void 0!==_.alg&&(this.algName=_.alg,void 0===_.prov&&(this.provName=Ae.crypto.Util.DEFAULTPROVIDER[this.algName]),this.setAlgAndProvider(this.algName,this.provName)))},Ae.crypto.Signature=function(_){var D=null;if(this._setAlgNames=function(){var It=this.algName.match(/^(.+)with(.+)$/);It&&(this.mdAlgName=It[1].toLowerCase(),this.pubkeyAlgName=It[2].toLowerCase(),"rsaandmgf1"==this.pubkeyAlgName&&"sha"==this.mdAlgName&&(this.mdAlgName="sha1"))},this._zeroPaddingOfSignature=function(It,un){for(var xn="",In=un/4-It.length,Nn=0;Nn<In;Nn++)xn+="0";return xn+It},this.setAlgAndProvider=function(It,un){if(this._setAlgNames(),"cryptojs/jsrsa"!=un)throw new Error("provider not supported: "+un);if(-1!=":md5:sha1:sha224:sha256:sha384:sha512:ripemd160:".indexOf(this.mdAlgName)){try{this.md=new Ae.crypto.MessageDigest({alg:this.mdAlgName})}catch(xn){throw new Error("setAlgAndProvider hash alg set fail alg="+this.mdAlgName+"/"+xn)}this.init=function(xn,In){var Nn=null;try{Nn=void 0===In?br.getKey(xn):br.getKey(xn,In)}catch(ri){throw"init failed:"+ri}if(!0===Nn.isPrivate)this.prvKey=Nn,this.state="SIGN";else{if(!0!==Nn.isPublic)throw"init failed.:"+Nn;this.pubKey=Nn,this.state="VERIFY"}},this.updateString=function(xn){this.md.updateString(xn)},this.updateHex=function(xn){this.md.updateHex(xn)},this.sign=function(){if(this.sHashHex=this.md.digest(),void 0===this.prvKey&&void 0!==this.ecprvhex&&void 0!==this.eccurvename&&void 0!==Ae.crypto.ECDSA&&(this.prvKey=new Ae.crypto.ECDSA({curve:this.eccurvename,prv:this.ecprvhex})),this.prvKey instanceof Rr&&"rsaandmgf1"===this.pubkeyAlgName)this.hSign=this.prvKey.signWithMessageHashPSS(this.sHashHex,this.mdAlgName,this.pssSaltLen);else if(this.prvKey instanceof Rr&&"rsa"===this.pubkeyAlgName)this.hSign=this.prvKey.signWithMessageHash(this.sHashHex,this.mdAlgName);else if(this.prvKey instanceof Ae.crypto.ECDSA)this.hSign=this.prvKey.signWithMessageHash(this.sHashHex);else{if(!(this.prvKey instanceof Ae.crypto.DSA))throw"Signature: unsupported private key alg: "+this.pubkeyAlgName;this.hSign=this.prvKey.signWithMessageHash(this.sHashHex)}return this.hSign},this.signString=function(xn){return this.updateString(xn),this.sign()},this.signHex=function(xn){return this.updateHex(xn),this.sign()},this.verify=function(xn){if(this.sHashHex=this.md.digest(),void 0===this.pubKey&&void 0!==this.ecpubhex&&void 0!==this.eccurvename&&void 0!==Ae.crypto.ECDSA&&(this.pubKey=new Ae.crypto.ECDSA({curve:this.eccurvename,pub:this.ecpubhex})),this.pubKey instanceof Rr&&"rsaandmgf1"===this.pubkeyAlgName)return this.pubKey.verifyWithMessageHashPSS(this.sHashHex,xn,this.mdAlgName,this.pssSaltLen);if(this.pubKey instanceof Rr&&"rsa"===this.pubkeyAlgName)return this.pubKey.verifyWithMessageHash(this.sHashHex,xn);if(void 0!==Ae.crypto.ECDSA&&this.pubKey instanceof Ae.crypto.ECDSA)return this.pubKey.verifyWithMessageHash(this.sHashHex,xn);if(void 0!==Ae.crypto.DSA&&this.pubKey instanceof Ae.crypto.DSA)return this.pubKey.verifyWithMessageHash(this.sHashHex,xn);throw"Signature: unsupported public key alg: "+this.pubkeyAlgName}}},this.init=function(It,un){throw"init(key, pass) not supported for this alg:prov="+this.algProvName},this.updateString=function(It){throw"updateString(str) not supported for this alg:prov="+this.algProvName},this.updateHex=function(It){throw"updateHex(hex) not supported for this alg:prov="+this.algProvName},this.sign=function(){throw"sign() not supported for this alg:prov="+this.algProvName},this.signString=function(It){throw"digestString(str) not supported for this alg:prov="+this.algProvName},this.signHex=function(It){throw"digestHex(hex) not supported for this alg:prov="+this.algProvName},this.verify=function(It){throw"verify(hSigVal) not supported for this alg:prov="+this.algProvName},this.initParams=_,void 0!==_&&(void 0!==_.alg&&(this.algName=_.alg,this.provName=void 0===_.prov?Ae.crypto.Util.DEFAULTPROVIDER[this.algName]:_.prov,this.algProvName=this.algName+":"+this.provName,this.setAlgAndProvider(this.algName,this.provName),this._setAlgNames()),void 0!==_.psssaltlen&&(this.pssSaltLen=_.psssaltlen),void 0!==_.prvkeypem)){if(void 0!==_.prvkeypas)throw"both prvkeypem and prvkeypas parameters not supported";try{D=br.getKey(_.prvkeypem),this.init(D)}catch(It){throw"fatal error to load pem private key: "+It}}},Ae.crypto.Cipher=function(_){},Ae.crypto.Cipher.encrypt=function(_,D,I,j){if(null!=ho(j,"enclag")&&(I=j.encalg),"string"==typeof I&&"-CBC"==I.substr(-4)){var pe=D,_e=_;null!=ho(j,"key")&&(pe=j.key),null!=ho(j,"enc")&&(hEnc=j.enc);var yt,xe=S.enc.Hex.parse(pe),He=S.enc.Hex.parse(_e),ht=S.enc.Hex.parse(j.iv);if("des-EDE3-CBC"==I)yt=S.TripleDES.encrypt(He,xe,{iv:ht});else{if("aes128-CBC"!=I&&"aes256-CBC"!=I)throw new Error("unsupported algorithm: "+I);yt=S.AES.encrypt(He,xe,{iv:ht})}return yt+""}throw new Error("Cipher.encrypt: unsupported key or algorithm")},Ae.crypto.Cipher.decrypt=function(_,D,I,j){if(null!=ho(j,"enclag")&&(I=j.encalg),"string"==typeof I&&"-CBC"==I.substr(-4)){var pe=D,_e=_;null!=ho(j,"key")&&(pe=j.key),null!=ho(j,"enc")&&(_e=j.enc);var yt,xe=S.enc.Hex.parse(pe),He=S.enc.Hex.parse(_e),ht=S.enc.Hex.parse(j.iv);if("des-EDE3-CBC"==I)yt=S.TripleDES.decrypt({ciphertext:He},xe,{iv:ht});else{if("aes128-CBC"!=I&&"aes256-CBC"!=I)throw new Error("unsupported algorithm: "+I);yt=S.AES.decrypt({ciphertext:He},xe,{iv:ht})}return S.enc.Hex.stringify(yt)}throw new Error("Cipher.decrypt: unsupported key or algorithm")},Ae.crypto.OID=new function(){this.oidhex2name={"2a864886f70d010101":"rsaEncryption","2a8648ce3d0201":"ecPublicKey","2a8648ce380401":"dsa","2a8648ce3d030107":"secp256r1","2b8104001f":"secp192k1","2b81040021":"secp224r1","2b8104000a":"secp256k1","2b81040022":"secp384r1","2b81040023":"secp521r1","2a8648ce380403":"SHA1withDSA","608648016503040301":"SHA224withDSA","608648016503040302":"SHA256withDSA"}},(typeof Ae>"u"||!Ae)&&(Ae={}),(typeof Ae.crypto>"u"||!Ae.crypto)&&(Ae.crypto={}),Ae.crypto.ECDSA=function(_){var _e=Error,xe=u,He=Fs,ht=Ae.crypto.ECDSA,yt=Ae.crypto.ECParameterDB,Gt=ht.getName,st=zi.getVbyListEx,tt=zi.isASN1HEX,Tt=new qs;this.type="EC",this.isPrivate=!1,this.isPublic=!1,this.getBigRandom=function(It){return new xe(It.bitLength(),Tt).mod(It.subtract(xe.ONE)).add(xe.ONE)},this.setNamedCurve=function(It){this.ecparams=yt.getByName(It),this.prvKeyHex=null,this.pubKeyHex=null,this.curveName=It},this.setPrivateKeyHex=function(It){this.isPrivate=!0,this.prvKeyHex=It},this.setPublicKeyHex=function(It){this.isPublic=!0,this.pubKeyHex=It},this.getPublicKeyXYHex=function(){var It=this.pubKeyHex;if("04"!==It.substr(0,2))throw"this method supports uncompressed format(04) only";var un=this.ecparams.keycharlen;if(It.length!==2+2*un)throw"malformed public key hex length";var xn={};return xn.x=It.substr(2,un),xn.y=It.substr(2+un),xn},this.getShortNISTPCurveName=function(){var It=this.curveName;return"secp256r1"===It||"NIST P-256"===It||"P-256"===It||"prime256v1"===It?"P-256":"secp384r1"===It||"NIST P-384"===It||"P-384"===It?"P-384":"secp521r1"===It||"NIST P-521"===It||"P-521"===It?"P-521":null},this.generateKeyPairHex=function(){var un=this.getBigRandom(this.ecparams.n),xn=this.ecparams.keycharlen,In=("0000000000"+un.toString(16)).slice(-xn);return this.setPrivateKeyHex(In),{ecprvhex:In,ecpubhex:this.generatePublicKeyHex()}},this.generatePublicKeyHex=function(){var It=new xe(this.prvKeyHex,16),un=this.ecparams.G.multiply(It),xn=un.getX().toBigInteger(),In=un.getY().toBigInteger(),Nn=this.ecparams.keycharlen,ne="04"+("0000000000"+xn.toString(16)).slice(-Nn)+("0000000000"+In.toString(16)).slice(-Nn);return this.setPublicKeyHex(ne),ne},this.signWithMessageHash=function(It){return this.signHex(It,this.prvKeyHex)},this.signHex=function(It,un){var xn=new xe(un,16),In=this.ecparams.n,Nn=new xe(It.substring(0,this.ecparams.keycharlen),16);do{var ri=this.getBigRandom(In),Ie=this.ecparams.G.multiply(ri).getX().toBigInteger().mod(In)}while(Ie.compareTo(xe.ZERO)<=0);var _t=ri.modInverse(In).multiply(Nn.add(xn.multiply(Ie))).mod(In);return ht.biRSSigToASN1Sig(Ie,_t)},this.sign=function(It,un){var xn=un,In=this.ecparams.n,Nn=xe.fromByteArrayUnsigned(It);do{var ri=this.getBigRandom(In),Ie=this.ecparams.G.multiply(ri).getX().toBigInteger().mod(In)}while(Ie.compareTo(u.ZERO)<=0);var _t=ri.modInverse(In).multiply(Nn.add(xn.multiply(Ie))).mod(In);return this.serializeSig(Ie,_t)},this.verifyWithMessageHash=function(It,un){return this.verifyHex(It,un,this.pubKeyHex)},this.verifyHex=function(It,un,xn){try{var In,Nn,ri=ht.parseSigHex(un);In=ri.r,Nn=ri.s;var ui=He.decodeFromHex(this.ecparams.curve,xn),ne=new xe(It.substring(0,this.ecparams.keycharlen),16);return this.verifyRaw(ne,In,Nn,ui)}catch{return!1}},this.verify=function(It,un,xn){var In,Nn,ui;if(Bitcoin.Util.isArray(un)){var ri=this.parseSig(un);In=ri.r,Nn=ri.s}else{if("object"!=typeof un||!un.r||!un.s)throw"Invalid value for signature";In=un.r,Nn=un.s}if(xn instanceof Fs)ui=xn;else{if(!Bitcoin.Util.isArray(xn))throw"Invalid format for pubkey value, must be byte array or ECPointFp";ui=He.decodeFrom(this.ecparams.curve,xn)}var ne=xe.fromByteArrayUnsigned(It);return this.verifyRaw(ne,In,Nn,ui)},this.verifyRaw=function(It,un,xn,In){var Nn=this.ecparams.n,ri=this.ecparams.G;if(un.compareTo(xe.ONE)<0||un.compareTo(Nn)>=0||xn.compareTo(xe.ONE)<0||xn.compareTo(Nn)>=0)return!1;var ui=xn.modInverse(Nn),ne=It.multiply(ui).mod(Nn),Ie=un.multiply(ui).mod(Nn);return ri.multiply(ne).add(In.multiply(Ie)).getX().toBigInteger().mod(Nn).equals(un)},this.serializeSig=function(It,un){var xn=It.toByteArraySigned(),In=un.toByteArraySigned(),Nn=[];return Nn.push(2),Nn.push(xn.length),(Nn=Nn.concat(xn)).push(2),Nn.push(In.length),(Nn=Nn.concat(In)).unshift(Nn.length),Nn.unshift(48),Nn},this.parseSig=function(It){var un;if(48!=It[0])throw new Error("Signature not a valid DERSequence");if(2!=It[un=2])throw new Error("First element in signature must be a DERInteger");var xn=It.slice(un+2,un+2+It[un+1]);if(2!=It[un+=2+It[un+1]])throw new Error("Second element in signature must be a DERInteger");var In=It.slice(un+2,un+2+It[un+1]);return un+=2+It[un+1],{r:xe.fromByteArrayUnsigned(xn),s:xe.fromByteArrayUnsigned(In)}},this.parseSigCompact=function(It){if(65!==It.length)throw"Signature has the wrong length";var un=It[0]-27;if(un<0||un>7)throw"Invalid signature type";var xn=this.ecparams.n;return{r:xe.fromByteArrayUnsigned(It.slice(1,33)).mod(xn),s:xe.fromByteArrayUnsigned(It.slice(33,65)).mod(xn),i:un}},this.readPKCS5PrvKeyHex=function(It){if(!1===tt(It))throw new Error("not ASN.1 hex string");var un,xn,In;try{un=st(It,0,["[0]",0],"06"),xn=st(It,0,[1],"04");try{In=st(It,0,["[1]",0],"03")}catch{}}catch{throw new Error("malformed PKCS#1/5 plain ECC private key")}if(this.curveName=Gt(un),void 0===this.curveName)throw"unsupported curve name";this.setNamedCurve(this.curveName),this.setPublicKeyHex(In),this.setPrivateKeyHex(xn),this.isPublic=!1},this.readPKCS8PrvKeyHex=function(It){if(!1===tt(It))throw new _e("not ASN.1 hex string");var xn,In,Nn;try{st(It,0,[1,0],"06"),xn=st(It,0,[1,1],"06"),In=st(It,0,[2,0,1],"04");try{Nn=st(It,0,[2,0,"[1]",0],"03")}catch{}}catch{throw new _e("malformed PKCS#8 plain ECC private key")}if(this.curveName=Gt(xn),void 0===this.curveName)throw new _e("unsupported curve name");this.setNamedCurve(this.curveName),this.setPublicKeyHex(Nn),this.setPrivateKeyHex(In),this.isPublic=!1},this.readPKCS8PubKeyHex=function(It){if(!1===tt(It))throw new _e("not ASN.1 hex string");var xn,In;try{st(It,0,[0,0],"06"),xn=st(It,0,[0,1],"06"),In=st(It,0,[1],"03")}catch{throw new _e("malformed PKCS#8 ECC public key")}if(this.curveName=Gt(xn),null===this.curveName)throw new _e("unsupported curve name");this.setNamedCurve(this.curveName),this.setPublicKeyHex(In)},this.readCertPubKeyHex=function(It,un){if(!1===tt(It))throw new _e("not ASN.1 hex string");var xn,In;try{xn=st(It,0,[0,5,0,1],"06"),In=st(It,0,[0,5,1],"03")}catch{throw new _e("malformed X.509 certificate ECC public key")}if(this.curveName=Gt(xn),null===this.curveName)throw new _e("unsupported curve name");this.setNamedCurve(this.curveName),this.setPublicKeyHex(In)},void 0!==_&&void 0!==_.curve&&(this.curveName=_.curve),void 0===this.curveName&&(this.curveName="secp256r1"),this.setNamedCurve(this.curveName),void 0!==_&&(void 0!==_.prv&&this.setPrivateKeyHex(_.prv),void 0!==_.pub&&this.setPublicKeyHex(_.pub))},Ae.crypto.ECDSA.parseSigHex=function(_){var D=Ae.crypto.ECDSA.parseSigHexInHexRS(_);return{r:new u(D.r,16),s:new u(D.s,16)}},Ae.crypto.ECDSA.parseSigHexInHexRS=function(_){var I=zi.getChildIdx,j=zi.getV;if(zi.checkStrictDER(_,0),"30"!=_.substr(0,2))throw new Error("signature is not a ASN.1 sequence");var pe=I(_,0);if(2!=pe.length)throw new Error("signature shall have two elements");var _e=pe[0],xe=pe[1];if("02"!=_.substr(_e,2))throw new Error("1st item not ASN.1 integer");if("02"!=_.substr(xe,2))throw new Error("2nd item not ASN.1 integer");return{r:j(_,_e),s:j(_,xe)}},Ae.crypto.ECDSA.asn1SigToConcatSig=function(_){var D=Ae.crypto.ECDSA.parseSigHexInHexRS(_),I=D.r,j=D.s;if(I.length>=130&&I.length<=134){if(I.length%2!=0)throw Error("unknown ECDSA sig r length error");if(j.length%2!=0)throw Error("unknown ECDSA sig s length error");"00"==I.substr(0,2)&&(I=I.substr(2)),"00"==j.substr(0,2)&&(j=j.substr(2));var pe=Math.max(I.length,j.length);return(I=("000000"+I).slice(-pe))+("000000"+j).slice(-pe)}if("00"==I.substr(0,2)&&I.length%32==2&&(I=I.substr(2)),"00"==j.substr(0,2)&&j.length%32==2&&(j=j.substr(2)),I.length%32==30&&(I="00"+I),j.length%32==30&&(j="00"+j),I.length%32!=0)throw Error("unknown ECDSA sig r length error");if(j.length%32!=0)throw Error("unknown ECDSA sig s length error");return I+j},Ae.crypto.ECDSA.concatSigToASN1Sig=function(_){if(_.length%4!=0)throw Error("unknown ECDSA concatinated r-s sig length error");var D=_.substr(0,_.length/2),I=_.substr(_.length/2);return Ae.crypto.ECDSA.hexRSSigToASN1Sig(D,I)},Ae.crypto.ECDSA.hexRSSigToASN1Sig=function(_,D){var I=new u(_,16),j=new u(D,16);return Ae.crypto.ECDSA.biRSSigToASN1Sig(I,j)},Ae.crypto.ECDSA.biRSSigToASN1Sig=function(_,D){var I=Ae.asn1,j=new I.DERInteger({bigint:_}),pe=new I.DERInteger({bigint:D});return new I.DERSequence({array:[j,pe]}).tohex()},Ae.crypto.ECDSA.getName=function(_){return"2b8104001f"===_?"secp192k1":"2a8648ce3d030107"===_?"secp256r1":"2b8104000a"===_?"secp256k1":"2b81040021"===_?"secp224r1":"2b81040022"===_?"secp384r1":"2b81040023"===_?"secp521r1":-1!=="|secp256r1|NIST P-256|P-256|prime256v1|".indexOf(_)?"secp256r1":-1!=="|secp256k1|".indexOf(_)?"secp256k1":-1!=="|secp224r1|NIST P-224|P-224|".indexOf(_)?"secp224r1":-1!=="|secp384r1|NIST P-384|P-384|".indexOf(_)?"secp384r1":-1!=="|secp521r1|NIST P-521|P-521|".indexOf(_)?"secp521r1":null},(typeof Ae>"u"||!Ae)&&(Ae={}),(typeof Ae.crypto>"u"||!Ae.crypto)&&(Ae.crypto={}),Ae.crypto.ECParameterDB=new function(){var _={},D={};function I(j){return new u(j,16)}this.getByName=function(j){var pe=j;if(typeof D[pe]<"u"&&(pe=D[j]),typeof _[pe]<"u")return _[pe];throw"unregistered EC curve name: "+pe},this.regist=function(j,pe,_e,xe,He,ht,yt,Gt,$t,st,tt,Tt){_[j]={};var Ye=I(_e),kt=I(xe),It=I(He),un=I(ht),xn=I(yt),In=new po(Ye,kt,It),Nn=In.decodePointHex("04"+Gt+$t);_[j].name=j,_[j].keylen=pe,_[j].keycharlen=2*Math.ceil(pe/8),_[j].curve=In,_[j].G=Nn,_[j].n=un,_[j].h=xn,_[j].oid=tt,_[j].info=Tt;for(var ri=0;ri<st.length;ri++)D[st[ri]]=j}},Ae.crypto.ECParameterDB.regist("secp128r1",128,"FFFFFFFDFFFFFFFFFFFFFFFFFFFFFFFF","FFFFFFFDFFFFFFFFFFFFFFFFFFFFFFFC","E87579C11079F43DD824993C2CEE5ED3","FFFFFFFE0000000075A30D1B9038A115","1","161FF7528B899B2D0C28607CA52C5B86","CF5AC8395BAFEB13C02DA292DDED7A83",[],"","secp128r1 : SECG curve over a 128 bit prime field"),Ae.crypto.ECParameterDB.regist("secp160k1",160,"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFAC73","0","7","0100000000000000000001B8FA16DFAB9ACA16B6B3","1","3B4C382CE37AA192A4019E763036F4F5DD4D7EBB","938CF935318FDCED6BC28286531733C3F03C4FEE",[],"","secp160k1 : SECG curve over a 160 bit prime field"),Ae.crypto.ECParameterDB.regist("secp160r1",160,"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF7FFFFFFF","FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF7FFFFFFC","1C97BEFC54BD7A8B65ACF89F81D4D4ADC565FA45","0100000000000000000001F4C8F927AED3CA752257","1","4A96B5688EF573284664698968C38BB913CBFC82","23A628553168947D59DCC912042351377AC5FB32",[],"","secp160r1 : SECG curve over a 160 bit prime field"),Ae.crypto.ECParameterDB.regist("secp192k1",192,"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFEE37","0","3","FFFFFFFFFFFFFFFFFFFFFFFE26F2FC170F69466A74DEFD8D","1","DB4FF10EC057E9AE26B07D0280B7F4341DA5D1B1EAE06C7D","9B2F2F6D9C5628A7844163D015BE86344082AA88D95E2F9D",[]),Ae.crypto.ECParameterDB.regist("secp192r1",192,"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFFFFFFFFFF","FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFFFFFFFFFC","64210519E59C80E70FA7E9AB72243049FEB8DEECC146B9B1","FFFFFFFFFFFFFFFFFFFFFFFF99DEF836146BC9B1B4D22831","1","188DA80EB03090F67CBF20EB43A18800F4FF0AFD82FF1012","07192B95FFC8DA78631011ED6B24CDD573F977A11E794811",[]),Ae.crypto.ECParameterDB.regist("secp224r1",224,"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF000000000000000000000001","FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFE","B4050A850C04B3ABF54132565044B0B7D7BFD8BA270B39432355FFB4","FFFFFFFFFFFFFFFFFFFFFFFFFFFF16A2E0B8F03E13DD29455C5C2A3D","1","B70E0CBD6BB4BF7F321390B94A03C1D356C21122343280D6115C1D21","BD376388B5F723FB4C22DFE6CD4375A05A07476444D5819985007E34",[]),Ae.crypto.ECParameterDB.regist("secp256k1",256,"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFC2F","0","7","FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141","1","79BE667EF9DCBBAC55A06295CE870B07029BFCDB2DCE28D959F2815B16F81798","483ADA7726A3C4655DA4FBFC0E1108A8FD17B448A68554199C47D08FFB10D4B8",[]),Ae.crypto.ECParameterDB.regist("secp256r1",256,"FFFFFFFF00000001000000000000000000000000FFFFFFFFFFFFFFFFFFFFFFFF","FFFFFFFF00000001000000000000000000000000FFFFFFFFFFFFFFFFFFFFFFFC","5AC635D8AA3A93E7B3EBBD55769886BC651D06B0CC53B0F63BCE3C3E27D2604B","FFFFFFFF00000000FFFFFFFFFFFFFFFFBCE6FAADA7179E84F3B9CAC2FC632551","1","6B17D1F2E12C4247F8BCE6E563A440F277037D812DEB33A0F4A13945D898C296","4FE342E2FE1A7F9B8EE7EB4A7C0F9E162BCE33576B315ECECBB6406837BF51F5",["NIST P-256","P-256","prime256v1"]),Ae.crypto.ECParameterDB.regist("secp384r1",384,"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFF0000000000000000FFFFFFFF","FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFF0000000000000000FFFFFFFC","B3312FA7E23EE7E4988E056BE3F82D19181D9C6EFE8141120314088F5013875AC656398D8A2ED19D2A85C8EDD3EC2AEF","FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFC7634D81F4372DDF581A0DB248B0A77AECEC196ACCC52973","1","AA87CA22BE8B05378EB1C71EF320AD746E1D3B628BA79B9859F741E082542A385502F25DBF55296C3A545E3872760AB7","3617de4a96262c6f5d9e98bf9292dc29f8f41dbd289a147ce9da3113b5f0b8c00a60b1ce1d7e819d7a431d7c90ea0e5f",["NIST P-384","P-384"]),Ae.crypto.ECParameterDB.regist("secp521r1",521,"1FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF","1FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFC","051953EB9618E1C9A1F929A21A0B68540EEA2DA725B99B315F3B8B489918EF109E156193951EC7E937B1652C0BD3BB1BF073573DF883D2C34F1EF451FD46B503F00","1FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFA51868783BF2F966B7FCC0148F709A5D03BB5C9B8899C47AEBB6FB71E91386409","1","00C6858E06B70404E9CD9E3ECB662395B4429C648139053FB521F828AF606B4D3DBAA14B5E77EFE75928FE1DC127A2FFA8DE3348B3C1856A429BF97E7E31C2E5BD66","011839296a789a3bc0045c8a5fb42c7d1bd998f54449579b446817afbd17273e662c97ee72995ef42640c550b9013fad0761353c7086a272c24088be94769fd16650",["NIST P-521","P-521"]),(typeof Ae>"u"||!Ae)&&(Ae={}),(typeof Ae.crypto>"u"||!Ae.crypto)&&(Ae.crypto={}),Ae.crypto.DSA=function(){var I=zi.getVbyListEx,j=zi.isASN1HEX,pe=u;this.p=null,this.q=null,this.g=null,this.y=null,this.x=null,this.type="DSA",this.isPrivate=!1,this.isPublic=!1,this.setPrivate=function(_e,xe,He,ht,yt){this.isPrivate=!0,this.p=_e,this.q=xe,this.g=He,this.y=ht,this.x=yt},this.setPrivateHex=function(_e,xe,He,ht,yt){var Gt,$t,st,tt,Tt;Gt=new u(_e,16),$t=new u(xe,16),st=new u(He,16),tt="string"==typeof ht&&ht.length>1?new u(ht,16):null,Tt=new u(yt,16),this.setPrivate(Gt,$t,st,tt,Tt)},this.setPublic=function(_e,xe,He,ht){this.isPublic=!0,this.p=_e,this.q=xe,this.g=He,this.y=ht,this.x=null},this.setPublicHex=function(_e,xe,He,ht){var yt,Gt,$t,st;yt=new u(_e,16),Gt=new u(xe,16),$t=new u(He,16),st=new u(ht,16),this.setPublic(yt,Gt,$t,st)},this.signWithMessageHash=function(_e){var xe=this.p,He=this.q,ht=this.g,Gt=this.x,$t=Ae.crypto.Util.getRandomBigIntegerMinToMax(u.ONE.add(u.ONE),He.subtract(u.ONE)),tt=new u(_e.substr(0,He.bitLength()/4),16),Tt=ht.modPow($t,xe).mod(He),Ye=$t.modInverse(He).multiply(tt.add(Gt.multiply(Tt))).mod(He);return Ae.asn1.ASN1Util.jsonToASN1HEX({seq:[{int:{bigint:Tt}},{int:{bigint:Ye}}]})},this.verifyWithMessageHash=function(_e,xe){var He=this.p,ht=this.q,yt=this.g,Gt=this.y,$t=this.parseASN1Signature(xe),st=$t[0],tt=$t[1],Ye=new u(_e.substr(0,ht.bitLength()/4),16);if(u.ZERO.compareTo(st)>0||st.compareTo(ht)>0||u.ZERO.compareTo(tt)>=0||tt.compareTo(ht)>0)throw"invalid DSA signature";var kt=tt.modInverse(ht),It=Ye.multiply(kt).mod(ht),un=st.multiply(kt).mod(ht);return 0==yt.modPow(It,He).multiply(Gt.modPow(un,He)).mod(He).mod(ht).compareTo(st)},this.parseASN1Signature=function(_e){try{return[new pe(I(_e,0,[0],"02"),16),new pe(I(_e,0,[1],"02"),16)]}catch{throw new Error("malformed ASN.1 DSA signature")}},this.readPKCS5PrvKeyHex=function(_e){var xe,He,ht,yt,Gt;if(!1===j(_e))throw new Error("not ASN.1 hex string");try{xe=I(_e,0,[1],"02"),He=I(_e,0,[2],"02"),ht=I(_e,0,[3],"02"),yt=I(_e,0,[4],"02"),Gt=I(_e,0,[5],"02")}catch{throw new Error("malformed PKCS#1/5 plain DSA private key")}this.setPrivateHex(xe,He,ht,yt,Gt)},this.readPKCS8PrvKeyHex=function(_e){var xe,He,ht,yt;if(!1===j(_e))throw new Error("not ASN.1 hex string");try{xe=I(_e,0,[1,1,0],"02"),He=I(_e,0,[1,1,1],"02"),ht=I(_e,0,[1,1,2],"02"),yt=I(_e,0,[2,0],"02")}catch{throw new Error("malformed PKCS#8 plain DSA private key")}this.setPrivateHex(xe,He,ht,null,yt)},this.readPKCS8PubKeyHex=function(_e){var xe,He,ht,yt;if(!1===j(_e))throw new Error("not ASN.1 hex string");try{xe=I(_e,0,[0,1,0],"02"),He=I(_e,0,[0,1,1],"02"),ht=I(_e,0,[0,1,2],"02"),yt=I(_e,0,[1,0],"02")}catch{throw new Error("malformed PKCS#8 DSA public key")}this.setPublicHex(xe,He,ht,yt)},this.readCertPubKeyHex=function(_e,xe){var He,ht,yt,Gt;if(!1===j(_e))throw new Error("not ASN.1 hex string");try{He=I(_e,0,[0,5,0,1,0],"02"),ht=I(_e,0,[0,5,0,1,1],"02"),yt=I(_e,0,[0,5,0,1,2],"02"),Gt=I(_e,0,[0,5,1,0],"02")}catch{throw new Error("malformed X.509 certificate DSA public key")}this.setPublicHex(He,ht,yt,Gt)}};var br=function(){var _=function(Ye,kt,It){return j(S.AES,Ye,kt,It)},j=function(Ye,kt,It,un){var xn=S.enc.Hex.parse(kt),In=S.enc.Hex.parse(It),Nn=S.enc.Hex.parse(un),ri={};ri.key=In,ri.iv=Nn,ri.ciphertext=xn;var ui=Ye.decrypt(ri,In,{iv:Nn});return S.enc.Hex.stringify(ui)},pe=function(Ye,kt,It){return He(S.AES,Ye,kt,It)},He=function(Ye,kt,It,un){var xn=S.enc.Hex.parse(kt),In=S.enc.Hex.parse(It),Nn=S.enc.Hex.parse(un),ri=Ye.encrypt(xn,In,{iv:Nn}),ui=S.enc.Hex.parse(ri.toString());return S.enc.Base64.stringify(ui)},ht={"AES-256-CBC":{proc:_,eproc:pe,keylen:32,ivlen:16},"AES-192-CBC":{proc:_,eproc:pe,keylen:24,ivlen:16},"AES-128-CBC":{proc:_,eproc:pe,keylen:16,ivlen:16},"DES-EDE3-CBC":{proc:function(Ye,kt,It){return j(S.TripleDES,Ye,kt,It)},eproc:function(Ye,kt,It){return He(S.TripleDES,Ye,kt,It)},keylen:24,ivlen:8},"DES-CBC":{proc:function(Ye,kt,It){return j(S.DES,Ye,kt,It)},eproc:function(Ye,kt,It){return He(S.DES,Ye,kt,It)},keylen:8,ivlen:8}},$t=function(Ye){var kt={},It=Ye.match(new RegExp("DEK-Info: ([^,]+),([0-9A-Fa-f]+)","m"));It&&(kt.cipher=It[1],kt.ivsalt=It[2]);var un=Ye.match(new RegExp("-----BEGIN ([A-Z]+) PRIVATE KEY-----"));un&&(kt.type=un[1]);var xn=-1,In=0;-1!=Ye.indexOf("\r\n\r\n")&&(xn=Ye.indexOf("\r\n\r\n"),In=2),-1!=Ye.indexOf("\n\n")&&(xn=Ye.indexOf("\n\n"),In=1);var Nn=Ye.indexOf("-----END");if(-1!=xn&&-1!=Nn){var ri=Ye.substring(xn+2*In,Nn-In);ri=ri.replace(/\s+/g,""),kt.data=ri}return kt},st=function(Ye,kt,It){for(var un=It.substring(0,16),xn=S.enc.Hex.parse(un),In=S.enc.Utf8.parse(kt),Nn=ht[Ye].keylen+ht[Ye].ivlen,ri="",ui=null;;){var ne=S.algo.MD5.create();if(null!=ui&&ne.update(ui),ne.update(In),ne.update(xn),ui=ne.finalize(),(ri+=S.enc.Hex.stringify(ui)).length>=2*Nn)break}var Ie={};return Ie.keyhex=ri.substr(0,2*ht[Ye].keylen),Ie.ivhex=ri.substr(2*ht[Ye].keylen,2*ht[Ye].ivlen),Ie},tt=function(Ye,kt,It,un){var xn=S.enc.Base64.parse(Ye),In=S.enc.Hex.stringify(xn);return(0,ht[kt].proc)(In,It,un)};return{version:"1.0.0",parsePKCS5PEM:function(Ye){return $t(Ye)},getKeyAndUnusedIvByPasscodeAndIvsalt:function(Ye,kt,It){return st(Ye,kt,It)},decryptKeyB64:function(Ye,kt,It,un){return tt(Ye,kt,It,un)},getDecryptedKeyHex:function(Ye,kt){var It=$t(Ye),xn=It.cipher,In=It.ivsalt,Nn=It.data,ri=st(xn,kt,In);return tt(Nn,xn,ri.keyhex,In)},getEncryptedPKCS5PEMFromPrvKeyHex:function(Ye,kt,It,un,xn){var _t="";if((typeof un>"u"||null==un)&&(un="AES-256-CBC"),typeof ht[un]>"u")throw new Error("KEYUTIL unsupported algorithm: "+un);if(typeof xn>"u"||null==xn){var Nn=function(Ye){var kt=S.lib.WordArray.random(Ye);return S.enc.Hex.stringify(kt)}(ht[un].ivlen);xn=Nn.toUpperCase()}var ne=function(Ye,kt,It,un){return(0,ht[kt].eproc)(Ye,It,un)}(kt,un,st(un,It,xn).keyhex,xn);return _t="-----BEGIN "+Ye+" PRIVATE KEY-----\r\n",_t+="Proc-Type: 4,ENCRYPTED\r\n",_t+="DEK-Info: "+un+","+xn+"\r\n",_t+="\r\n",(_t+=ne.replace(/(.{64})/g,"$1\r\n"))+"\r\n-----END "+Ye+" PRIVATE KEY-----\r\n"},getEncryptedPKCS8PEM:function(Ye,kt,It){return $n(this.getEncryptedPKCS8Hex(Ye,kt,It),"ENCRYPTED PRIVATE KEY")},getEncryptedPKCS8Hex:function(Ye,kt,It){var un;(un=null==It||null==It?{}:JSON.parse(JSON.stringify(It))).plain=Ye,this.initPBES2Param(un),this.encryptPBES2Param(un,kt);var xn=this.generatePBES2ASN1Param(un);return Ae.asn1.ASN1Util.newObject(xn).tohex()},initPBES2Param:function(Ye){var kt;null==ho(Ye,"encalg")&&(Ye.encalg="aes256-CBC"),null==ho(Ye,"iter")&&(Ye.iter=2048),null==ho(Ye,"prf")&&(Ye.prf="hmacWithSHA256"),null==ho(Ye,"salt")&&(Ye.salt=S.enc.Hex.stringify(S.lib.WordArray.random(8))),null==ho(Ye,"enciv")&&("des-EDE3-CBC"==Ye.encalg&&(kt=8),"aes128-CBC"==Ye.encalg&&(kt=16),"aes256-CBC"==Ye.encalg&&(kt=16),Ye.enciv=S.enc.Hex.stringify(S.lib.WordArray.random(kt)))},encryptPBES2Param:function(Ye,kt){var It=br.getDKFromPBES2Param(Ye,kt);try{var un=Ae.crypto.Cipher.encrypt(Ye.plain,It,Ye.encalg,{iv:Ye.enciv})}catch{throw new Error("encrypt error: "+Ye.plain+" "+It+" "+Ye.encalg+" "+Ye.enciv)}Ye.enc=un},generatePBES2ASN1Param:function(Ye){var kt={seq:[{seq:[{oid:"pkcs5PBES2"},{seq:[{seq:[{oid:"pkcs5PBKDF2"},{seq:[{octstr:{hex:Ye.salt}},{int:{hex:ua(Ye.iter)}}]}]},{seq:[{oid:Ye.encalg},{octstr:{hex:Ye.enciv}}]}]}]},{octstr:{hex:Ye.enc}}]};return"hmacWithSHA1"!=Ye.prf&&kt.seq[0].seq[1].seq[0].seq[1].seq.push({seq:[{oid:Ye.prf},{null:""}]}),kt},parseHexOfEncryptedPKCS8:function(Ye){var It=zi.getChildIdx,un=zi.getV,xn={},In=It(Ye,0);if(2!=In.length)throw new Error("malformed format: SEQUENCE(0).items != 2: "+In.length);xn.ciphertext=un(Ye,In[1]);var Nn=It(Ye,In[0]);if(2!=Nn.length)throw new Error("malformed format: SEQUENCE(0.0).items != 2: "+Nn.length);if("2a864886f70d01050d"!=un(Ye,Nn[0]))throw new Error("this only supports pkcs5PBES2");var ri=It(Ye,Nn[1]);if(2!=Nn.length)throw new Error("malformed format: SEQUENCE(0.0.1).items != 2: "+ri.length);var ui=It(Ye,ri[1]);if(2!=ui.length)throw new Error("malformed format: SEQUENCE(0.0.1.1).items != 2: "+ui.length);if("2a864886f70d0307"!=un(Ye,ui[0]))throw"this only supports TripleDES";xn.encryptionSchemeAlg="TripleDES",xn.encryptionSchemeIV=un(Ye,ui[1]);var ne=It(Ye,ri[0]);if(2!=ne.length)throw new Error("malformed format: SEQUENCE(0.0.1.0).items != 2: "+ne.length);if("2a864886f70d01050c"!=un(Ye,ne[0]))throw new Error("this only supports pkcs5PBKDF2");var Ie=It(Ye,ne[1]);if(Ie.length<2)throw new Error("malformed format: SEQUENCE(0.0.1.0.1).items < 2: "+Ie.length);xn.pbkdf2Salt=un(Ye,Ie[0]);var _t=un(Ye,Ie[1]);try{xn.pbkdf2Iter=parseInt(_t,16)}catch{throw new Error("malformed format pbkdf2Iter: "+_t)}return xn},getPBKDF2KeyHexFromParam:function(Ye,kt){var It=S.enc.Hex.parse(Ye.pbkdf2Salt),xn=S.PBKDF2(kt,It,{keySize:6,iterations:Ye.pbkdf2Iter});return S.enc.Hex.stringify(xn)},_getPlainPKCS8HexFromEncryptedPKCS8PEM:function(Ye,kt){var It=mt(Ye,"ENCRYPTED PRIVATE KEY"),un=this.parseHexOfEncryptedPKCS8(It),xn=br.getPBKDF2KeyHexFromParam(un,kt),In={};In.ciphertext=S.enc.Hex.parse(un.ciphertext);var Nn=S.enc.Hex.parse(xn),ri=S.enc.Hex.parse(un.encryptionSchemeIV),ui=S.TripleDES.decrypt(In,Nn,{iv:ri});return S.enc.Hex.stringify(ui)},parsePBES2:function(Ye){var kt=zi.parse(Ye);if("pkcs5PBES2"!=ho(kt,"seq.0.seq.0.oid")||"pkcs5PBKDF2"!=ho(kt,"seq.0.seq.1.seq.0.seq.0.oid"))throw new Error("not pkcs5PBES2 and pkcs5PBKDF2 used");var It=ho(kt,"seq.0.seq.1.seq.0.seq.1.seq");if(null==It)throw new Error("PBKDF2 parameter not found");var un=ho(It,"0.octstr.hex"),xn=ho(It,"1.int.hex"),In=ho(It,"2.seq.0.oid","hmacWithSHA1"),Nn=-1;try{Nn=parseInt(xn,16)}catch{throw new Error("iter not proper value")}var ri=ho(kt,"seq.0.seq.1.seq.1.seq.0.oid"),ui=ho(kt,"seq.0.seq.1.seq.1.seq.1.octstr.hex"),ne=ho(kt,"seq.1.octstr.hex");if(null==ri||null==ui||null==ne)throw new Error("encalg, enciv or enc is undefined");return{salt:un,iter:Nn,prf:In,encalg:ri,enciv:ui,enc:ne}},getDKFromPBES2Param:function(Ye,kt){var xn={hmacWithSHA1:S.algo.SHA1,hmacWithSHA224:S.algo.SHA224,hmacWithSHA256:S.algo.SHA256,hmacWithSHA384:S.algo.SHA384,hmacWithSHA512:S.algo.SHA512}[Ye.prf];if(null==xn)throw new Error("unsupported prf");var In={"des-EDE3-CBC":6,"aes128-CBC":4,"aes256-CBC":8}[Ye.encalg];if(null==In)throw new Error("unsupported encalg");var Nn=S.enc.Hex.parse(Ye.salt),ri=Ye.iter;try{var ui=S.PBKDF2(kt,Nn,{keySize:In,iterations:ri,hasher:xn});return S.enc.Hex.stringify(ui)}catch(ne){throw new Error("PBKDF2 error: "+ne+" "+JSON.stringify(Ye)+" "+kt)}},getPlainHexFromEncryptedPKCS8PEM:function(Ye,kt){if(-1==Ye.indexOf("BEGIN ENCRYPTED PRIVATE KEY"))throw new Error("not Encrypted PKCS#8 PEM string");var un,It=mt(Ye);try{un=br.parsePBES2(It)}catch(In){throw new Error("malformed PBES2 format: "+In.message)}var xn=br.getDKFromPBES2Param(un,kt);return Ae.crypto.Cipher.decrypt(un.enc,xn,un.encalg,{iv:un.enciv})},getKeyFromEncryptedPKCS8PEM:function(Ye,kt){var It=this.getPlainHexFromEncryptedPKCS8PEM(Ye,kt);return this.getKeyFromPlainPrivatePKCS8Hex(It)},parsePlainPrivatePKCS8Hex:function(Ye){var kt=zi,It=kt.getChildIdx,un=kt.getV,xn={algparam:null};if("30"!=Ye.substr(0,2))throw new Error("malformed plain PKCS8 private key(code:001)");var In=It(Ye,0);if(In.length<3)throw new Error("malformed plain PKCS8 private key(code:002)");if("30"!=Ye.substr(In[1],2))throw new Error("malformed PKCS8 private key(code:003)");var Nn=It(Ye,In[1]);if(2!=Nn.length)throw new Error("malformed PKCS8 private key(code:004)");if("06"!=Ye.substr(Nn[0],2))throw new Error("malformed PKCS8 private key(code:005)");if(xn.algoid=un(Ye,Nn[0]),"06"==Ye.substr(Nn[1],2)&&(xn.algparam=un(Ye,Nn[1])),"04"!=Ye.substr(In[2],2))throw new Error("malformed PKCS8 private key(code:006)");return xn.keyidx=kt.getVidx(Ye,In[2]),xn},getKeyFromPlainPrivatePKCS8PEM:function(Ye){var kt=mt(Ye,"PRIVATE KEY");return this.getKeyFromPlainPrivatePKCS8Hex(kt)},getKeyFromPlainPrivatePKCS8Hex:function(Ye){var It,kt=this.parsePlainPrivatePKCS8Hex(Ye);if("2a864886f70d010101"==kt.algoid)It=new Rr;else if("2a8648ce380401"==kt.algoid)It=new Ae.crypto.DSA;else{if("2a8648ce3d0201"!=kt.algoid)throw new Error("unsupported private key algorithm");It=new Ae.crypto.ECDSA}return It.readPKCS8PrvKeyHex(Ye),It},_getKeyFromPublicPKCS8Hex:function(Ye){var kt,It=zi.getVbyList(Ye,0,[0,0],"06");if("2a864886f70d010101"===It)kt=new Rr;else if("2a8648ce380401"===It)kt=new Ae.crypto.DSA;else{if("2a8648ce3d0201"!==It)throw new Error("unsupported PKCS#8 public key hex");kt=new Ae.crypto.ECDSA}return kt.readPKCS8PubKeyHex(Ye),kt},parsePublicRawRSAKeyHex:function(Ye){var It=zi.getChildIdx,un=zi.getV,xn={};if("30"!=Ye.substr(0,2))throw new Error("malformed RSA key(code:001)");var In=It(Ye,0);if(2!=In.length)throw new Error("malformed RSA key(code:002)");if("02"!=Ye.substr(In[0],2))throw new Error("malformed RSA key(code:003)");if(xn.n=un(Ye,In[0]),"02"!=Ye.substr(In[1],2))throw new Error("malformed RSA key(code:004)");return xn.e=un(Ye,In[1]),xn},parsePublicPKCS8Hex:function(Ye){var kt=zi,It=kt.getChildIdx,un=kt.getV,xn={algparam:null},In=It(Ye,0);if(2!=In.length)throw new Error("outer DERSequence shall have 2 elements: "+In.length);var Nn=In[0];if("30"!=Ye.substr(Nn,2))throw new Error("malformed PKCS8 public key(code:001)");var ri=It(Ye,Nn);if(2!=ri.length)throw new Error("malformed PKCS8 public key(code:002)");if("06"!=Ye.substr(ri[0],2))throw new Error("malformed PKCS8 public key(code:003)");if(xn.algoid=un(Ye,ri[0]),"06"==Ye.substr(ri[1],2)?xn.algparam=un(Ye,ri[1]):"30"==Ye.substr(ri[1],2)&&(xn.algparam={},xn.algparam.p=kt.getVbyList(Ye,ri[1],[0],"02"),xn.algparam.q=kt.getVbyList(Ye,ri[1],[1],"02"),xn.algparam.g=kt.getVbyList(Ye,ri[1],[2],"02")),"03"!=Ye.substr(In[1],2))throw new Error("malformed PKCS8 public key(code:004)");return xn.key=un(Ye,In[1]).substr(2),xn}}}();function cl(_,D){for(var I="",j=D/4-_.length,pe=0;pe<j;pe++)I+="0";return I+_}function Ta(_,D,I){for(var j="",pe=0;j.length<D;)j+=hs(I(Is(_+String.fromCharCode.apply(String,[(4278190080&pe)>>24,(16711680&pe)>>16,(65280&pe)>>8,255&pe])))),pe+=1;return j}function Fa(_){for(var D in Ae.crypto.Util.DIGESTINFOHEAD){var I=Ae.crypto.Util.DIGESTINFOHEAD[D],j=I.length;if(_.substring(0,j)==I)return[D,_.substring(j)]}return[]}function Mr(_){var xn,D=zi,I=D.getChildIdx,j=D.getV,_e=D.parse,xe=D.getTLV,He=D.getVbyList,ht=D.getVbyListEx,yt=D.getTLVbyList,Gt=D.getTLVbyListEx,$t=D.getIdxbyList,st=D.getIdxbyListEx,tt=D.getVidx,Tt=D.getInt,Ye=D.oidname,kt=D.hextooidstr,un=mt,In=Error;try{xn=Ae.asn1.x509.AlgorithmIdentifier.PSSNAME2ASN1TLV}catch{}this.HEX2STAG={"0c":"utf8",13:"prn",16:"ia5","1a":"vis","1e":"bmp"},this.hex=null,this.version=0,this.foffset=0,this.aExtInfo=null,this.getVersion=function(){if(null===this.hex||0!==this.version)return this.version;var ne=yt(this.hex,0,[0,0]);if("a0"==ne.substr(0,2)){var Ie=yt(ne,0,[0]),_t=Tt(Ie,0);if(_t<0||2<_t)throw new Error("malformed version field");return this.version=_t+1,this.version}return this.version=1,this.foffset=-1,1},this.getSerialNumberHex=function(){return ht(this.hex,0,[0,0],"02")},this.getSignatureAlgorithmField=function(){var ne=Gt(this.hex,0,[0,1]);return this.getAlgorithmIdentifierName(ne)},this.getAlgorithmIdentifierName=function(ne){for(var Ie in xn)if(ne===xn[Ie])return Ie;return Ye(ht(ne,0,[0],"06"))},this.getIssuer=function(ne,Ie){return this.getX500Name(this.getIssuerHex(),ne,Ie)},this.getIssuerHex=function(){return yt(this.hex,0,[0,3+this.foffset],"30")},this.getIssuerString=function(){return this.getIssuer().str},this.getSubject=function(ne,Ie){return this.getX500Name(this.getSubjectHex(),ne,Ie)},this.getSubjectHex=function(){return yt(this.hex,0,[0,5+this.foffset],"30")},this.getSubjectString=function(){return this.getSubject().str},this.getNotBefore=function(){var ne=He(this.hex,0,[0,4+this.foffset,0]);return ne=ne.replace(/(..)/g,"%$1"),decodeURIComponent(ne)},this.getNotAfter=function(){var ne=He(this.hex,0,[0,4+this.foffset,1]);return ne=ne.replace(/(..)/g,"%$1"),decodeURIComponent(ne)},this.getPublicKeyHex=function(){return this.getSPKI()},this.getSPKI=function(){return yt(this.hex,0,[0,6+this.foffset],"30")},this.getSPKIValue=function(){var ne=this.getSPKI();return null==ne?null:He(ne,0,[1],"03",!0)},this.getPublicKeyIdx=function(){return $t(this.hex,0,[0,6+this.foffset],"30")},this.getPublicKeyContentIdx=function(){var ne=this.getPublicKeyIdx();return $t(this.hex,ne,[1,0],"30")},this.getPublicKey=function(){return br.getKey(this.getPublicKeyHex(),null,"pkcs8pub")},this.getSignatureAlgorithmName=function(){var ne=yt(this.hex,0,[1],"30");return this.getAlgorithmIdentifierName(ne)},this.getSignatureValueHex=function(){return He(this.hex,0,[2],"03",!0)},this.verifySignature=function(ne){var Ie=this.getSignatureAlgorithmField(),_t=this.getSignatureValueHex(),Nt=yt(this.hex,0,[0],"30"),en=new Ae.crypto.Signature({alg:Ie});return en.init(ne),en.updateHex(Nt),en.verify(_t)},this.parseExt=function(ne){var Ie,_t,Nt;if(void 0===ne){if(3!==this.version)return-1;Ie=$t(Nt=this.hex,0,[0,7,0],"30"),_t=I(Nt,Ie)}else{Nt=mt(ne);var en=$t(Nt,0,[0,3,0,0],"06");if("2a864886f70d01090e"!=j(Nt,en))return void(this.aExtInfo=new Array);Ie=$t(Nt,0,[0,3,0,1,0],"30"),_t=I(Nt,Ie),this.hex=Nt}this.aExtInfo=new Array;for(var vn=0;vn<_t.length;vn++){var fn={critical:!1},Tn=0;3===I(Nt,_t[vn]).length&&(fn.critical=!0,Tn=1),fn.oid=D.hextooidstr(He(Nt,_t[vn],[0],"06"));var Wn=$t(Nt,_t[vn],[1+Tn]);fn.vidx=tt(Nt,Wn),this.aExtInfo.push(fn)}},this.getExtInfo=function(ne){var Ie=this.aExtInfo,_t=ne;if(ne.match(/^[0-9.]+$/)||(_t=Ae.asn1.x509.OID.name2oid(ne)),""!==_t)for(var Nt=0;Nt<Ie.length;Nt++)if(Ie[Nt].oid===_t)return Ie[Nt]},this.getCriticalExtV=function(ne,Ie,_t){if(null!=Ie)return[Ie,_t];var Nt=this.getExtInfo(ne);return null==Nt?[null,null]:[xe(this.hex,Nt.vidx),Nt.critical]},this.getExtBasicConstraints=function(ne,Ie){if(void 0===ne&&void 0===Ie){var _t=this.getExtInfo("basicConstraints");if(void 0===_t)return;ne=xe(this.hex,_t.vidx),Ie=_t.critical}var Nt={extname:"basicConstraints"};if(Ie&&(Nt.critical=!0),"3000"===ne)return Nt;if("30030101ff"===ne)return Nt.cA=!0,Nt;if("30060101ff02"===ne.substr(0,12)){var en=j(ne,10),vn=parseInt(en,16);return Nt.cA=!0,Nt.pathLen=vn,Nt}throw new Error("hExtV parse error: "+ne)},this.getExtNameConstraints=function(ne,Ie){var _t=this.getCriticalExtV("nameConstraints",ne,Ie);if(Ie=_t[1],null!=(ne=_t[0])){var Nt={extname:"nameConstraints"};Ie&&(Nt.critical=!0);for(var en=I(ne,0),vn=0;vn<en.length;vn++){for(var fn=[],Cn=I(ne,en[vn]),Tn=0;Tn<Cn.length;Tn++){var Wn=xe(ne,Cn[Tn]),gi=this.getGeneralSubtree(Wn);fn.push(gi)}var ln=ne.substr(en[vn],2);"a0"==ln?Nt.permit=fn:"a1"==ln&&(Nt.exclude=fn)}return Nt}},this.getGeneralSubtree=function(ne){var Ie=I(ne,0),_t=Ie.length;if(_t<1||2<_t)throw new Error("wrong num elements");for(var Nt=this.getGeneralName(xe(ne,Ie[0])),en=1;en<_t;en++){var vn=ne.substr(Ie[en],2),fn=j(ne,Ie[en]),Cn=parseInt(fn,16);"80"==vn&&(Nt.min=Cn),"81"==vn&&(Nt.max=Cn)}return Nt},this.getExtKeyUsage=function(ne,Ie){var _t=this.getCriticalExtV("keyUsage",ne,Ie);if(Ie=_t[1],null!=(ne=_t[0])){var Nt={extname:"keyUsage"};return Ie&&(Nt.critical=!0),Nt.names=this.getExtKeyUsageString(ne).split(","),Nt}},this.getExtKeyUsageBin=function(ne){if(void 0===ne){var Ie=this.getExtInfo("keyUsage");if(void 0===Ie)return"";ne=xe(this.hex,Ie.vidx)}if(8!=ne.length&&10!=ne.length)throw new Error("malformed key usage value: "+ne);var _t="000000000000000"+parseInt(ne.substr(6),16).toString(2);return 8==ne.length&&(_t=_t.slice(-8)),10==ne.length&&(_t=_t.slice(-16)),""==(_t=_t.replace(/0+$/,""))&&(_t="0"),_t},this.getExtKeyUsageString=function(ne){for(var Ie=this.getExtKeyUsageBin(ne),_t=new Array,Nt=0;Nt<Ie.length;Nt++)"1"==Ie.substr(Nt,1)&&_t.push(Mr.KEYUSAGE_NAME[Nt]);return _t.join(",")},this.getExtSubjectKeyIdentifier=function(ne,Ie){if(void 0===ne&&void 0===Ie){var _t=this.getExtInfo("subjectKeyIdentifier");if(void 0===_t)return;ne=xe(this.hex,_t.vidx),Ie=_t.critical}var Nt={extname:"subjectKeyIdentifier"};Ie&&(Nt.critical=!0);var en=j(ne,0);return Nt.kid={hex:en},Nt},this.getExtAuthorityKeyIdentifier=function(ne,Ie){if(void 0===ne&&void 0===Ie){var _t=this.getExtInfo("authorityKeyIdentifier");if(void 0===_t)return;ne=xe(this.hex,_t.vidx),Ie=_t.critical}var Nt={extname:"authorityKeyIdentifier"};Ie&&(Nt.critical=!0);for(var en=I(ne,0),vn=0;vn<en.length;vn++){var fn=ne.substr(en[vn],2);if("80"===fn&&(Nt.kid={hex:j(ne,en[vn])}),"a1"===fn){var Cn=xe(ne,en[vn]),Tn=this.getGeneralNames(Cn);Nt.issuer=Tn[0].dn}"82"===fn&&(Nt.sn={hex:j(ne,en[vn])})}return Nt},this.getExtExtKeyUsage=function(ne,Ie){if(void 0===ne&&void 0===Ie){var _t=this.getExtInfo("extKeyUsage");if(void 0===_t)return;ne=xe(this.hex,_t.vidx),Ie=_t.critical}var Nt={extname:"extKeyUsage",array:[]};Ie&&(Nt.critical=!0);for(var en=I(ne,0),vn=0;vn<en.length;vn++)Nt.array.push(Ye(j(ne,en[vn])));return Nt},this.getExtExtKeyUsageName=function(){var ne=this.getExtInfo("extKeyUsage");if(void 0===ne)return ne;var Ie=new Array,_t=xe(this.hex,ne.vidx);if(""===_t)return Ie;for(var Nt=I(_t,0),en=0;en<Nt.length;en++)Ie.push(Ye(j(_t,Nt[en])));return Ie},this.getExtSubjectAltName=function(ne,Ie){if(void 0===ne&&void 0===Ie){var _t=this.getExtInfo("subjectAltName");if(void 0===_t)return;ne=xe(this.hex,_t.vidx),Ie=_t.critical}var Nt={extname:"subjectAltName",array:[]};return Ie&&(Nt.critical=!0),Nt.array=this.getGeneralNames(ne),Nt},this.getExtIssuerAltName=function(ne,Ie){if(void 0===ne&&void 0===Ie){var _t=this.getExtInfo("issuerAltName");if(void 0===_t)return;ne=xe(this.hex,_t.vidx),Ie=_t.critical}var Nt={extname:"issuerAltName",array:[]};return Ie&&(Nt.critical=!0),Nt.array=this.getGeneralNames(ne),Nt},this.getGeneralNames=function(ne){for(var Ie=I(ne,0),_t=[],Nt=0;Nt<Ie.length;Nt++){var en=this.getGeneralName(xe(ne,Ie[Nt]));void 0!==en&&_t.push(en)}return _t},this.getGeneralName=function(ne){var Ie=ne.substr(0,2),_t=j(ne,0),Nt=hs(_t);return"81"==Ie?{rfc822:Nt}:"82"==Ie?{dns:Nt}:"86"==Ie?{uri:Nt}:"87"==Ie?{ip:Qa(_t)}:"a4"==Ie?{dn:this.getX500Name(_t)}:"a0"==Ie?{other:this.getOtherName(ne)}:void 0},this.getExtSubjectAltName2=function(){var ne,Ie,_t,Nt=this.getExtInfo("subjectAltName");if(void 0===Nt)return Nt;for(var en=new Array,vn=xe(this.hex,Nt.vidx),fn=I(vn,0),Cn=0;Cn<fn.length;Cn++)_t=vn.substr(fn[Cn],2),ne=j(vn,fn[Cn]),"81"===_t&&(Ie=Ws(ne),en.push(["MAIL",Ie])),"82"===_t&&(Ie=Ws(ne),en.push(["DNS",Ie])),"84"===_t&&(Ie=Mr.hex2dn(ne,0),en.push(["DN",Ie])),"86"===_t&&(Ie=Ws(ne),en.push(["URI",Ie])),"87"===_t&&(Ie=Qa(ne),en.push(["IP",Ie]));return en},this.getExtCRLDistributionPoints=function(ne,Ie){if(void 0===ne&&void 0===Ie){var _t=this.getExtInfo("cRLDistributionPoints");if(void 0===_t)return;ne=xe(this.hex,_t.vidx),Ie=_t.critical}var Nt={extname:"cRLDistributionPoints",array:[]};Ie&&(Nt.critical=!0);for(var en=I(ne,0),vn=0;vn<en.length;vn++){var fn=xe(ne,en[vn]);Nt.array.push(this.getDistributionPoint(fn))}return Nt},this.getDistributionPoint=function(ne){for(var Ie={},_t=I(ne,0),Nt=0;Nt<_t.length;Nt++){var en=ne.substr(_t[Nt],2),vn=xe(ne,_t[Nt]);"a0"==en&&(Ie.dpname=this.getDistributionPointName(vn))}return Ie},this.getDistributionPointName=function(ne){for(var Ie={},_t=I(ne,0),Nt=0;Nt<_t.length;Nt++){var en=ne.substr(_t[Nt],2),vn=xe(ne,_t[Nt]);"a0"==en&&(Ie.full=this.getGeneralNames(vn))}return Ie},this.getExtCRLDistributionPointsURI=function(){var ne=this.getExtCRLDistributionPoints();if(null==ne)return ne;for(var Ie=ne.array,_t=[],Nt=0;Nt<Ie.length;Nt++)try{null!=Ie[Nt].dpname.full[0].uri&&_t.push(Ie[Nt].dpname.full[0].uri)}catch{}return _t},this.getExtAIAInfo=function(){var ne=this.getExtInfo("authorityInfoAccess");if(void 0===ne)return ne;for(var Ie={ocsp:[],caissuer:[]},_t=I(this.hex,ne.vidx),Nt=0;Nt<_t.length;Nt++){var en=He(this.hex,_t[Nt],[0],"06"),vn=He(this.hex,_t[Nt],[1],"86");"2b06010505073001"===en&&Ie.ocsp.push(Ws(vn)),"2b06010505073002"===en&&Ie.caissuer.push(Ws(vn))}return Ie},this.getExtAuthorityInfoAccess=function(ne,Ie){if(void 0===ne&&void 0===Ie){var _t=this.getExtInfo("authorityInfoAccess");if(void 0===_t)return;ne=xe(this.hex,_t.vidx),Ie=_t.critical}var Nt={extname:"authorityInfoAccess",array:[]};Ie&&(Nt.critical=!0);for(var en=I(ne,0),vn=0;vn<en.length;vn++){var fn=ht(ne,en[vn],[0],"06"),Tn=Ws(He(ne,en[vn],[1],"86"));if("2b06010505073001"==fn)Nt.array.push({ocsp:Tn});else{if("2b06010505073002"!=fn)throw new Error("unknown method: "+fn);Nt.array.push({caissuer:Tn})}}return Nt},this.getExtCertificatePolicies=function(ne,Ie){if(void 0===ne&&void 0===Ie){var _t=this.getExtInfo("certificatePolicies");if(void 0===_t)return;ne=xe(this.hex,_t.vidx),Ie=_t.critical}var Nt={extname:"certificatePolicies",array:[]};Ie&&(Nt.critical=!0);for(var en=I(ne,0),vn=0;vn<en.length;vn++){var fn=xe(ne,en[vn]),Cn=this.getPolicyInformation(fn);Nt.array.push(Cn)}return Nt},this.getPolicyInformation=function(ne){var Ie={},_t=He(ne,0,[0],"06");Ie.policyoid=Ye(_t);var Nt=st(ne,0,[1],"30");if(-1!=Nt){Ie.array=[];for(var en=I(ne,Nt),vn=0;vn<en.length;vn++){var fn=xe(ne,en[vn]),Cn=this.getPolicyQualifierInfo(fn);Ie.array.push(Cn)}}return Ie},this.getOtherName=function(ne){var Ie={},_t=I(ne,0),Nt=He(ne,_t[0],[],"06"),en=He(ne,_t[1],[]);return Ie.oid=Ye(Nt),Ie.value=_e(en),Ie},this.getPolicyQualifierInfo=function(ne){var Ie={},_t=He(ne,0,[0],"06");if("2b06010505070201"===_t){var Nt=ht(ne,0,[1],"16");Ie.cps=hs(Nt)}else if("2b06010505070202"===_t){var en=yt(ne,0,[1],"30");Ie.unotice=this.getUserNotice(en)}return Ie},this.getUserNotice=function(ne){var Ie=null;try{return Ie=D.parse(ne),this._asn1ToUnotice(Ie)}catch{return}},this._asn1ToUnotice=function(ne){try{for(var Ie={},_t=ho(ne,"seq"),Nt=0;Nt<_t.length;Nt++){var en=this._asn1ToNoticeRef(_t[Nt]);null!=en&&(Ie.noticeref=en);var vn=this.asn1ToDisplayText(_t[Nt]);null!=vn&&(Ie.exptext=vn)}return Object.keys(Ie).length>0?Ie:void 0}catch{return}},this._asn1ToNoticeRef=function(ne){try{for(var Ie={},_t=ho(ne,"seq"),Nt=0;Nt<_t.length;Nt++){var en=this._asn1ToNoticeNum(_t[Nt]);null!=en&&(Ie.noticenum=en);var vn=this.asn1ToDisplayText(_t[Nt]);null!=vn&&(Ie.org=vn)}return Object.keys(Ie).length>0?Ie:void 0}catch{return}},this._asn1ToNoticeNum=function(ne){try{for(var Ie=ho(ne,"seq"),_t=[],Nt=0;Nt<Ie.length;Nt++)_t.push(parseInt(ho(Ie[Nt],"int.hex"),16));return _t}catch{return}},this.getDisplayText=function(ne){var _t={};return _t.type={"0c":"utf8",16:"ia5","1a":"vis","1e":"bmp"}[ne.substr(0,2)],_t.str=hs(j(ne,0)),_t},this.asn1ToDisplayText=function(ne){return null!=ne.utf8str?{type:"utf8",str:ne.utf8str.str}:null!=ne.ia5str?{type:"ia5",str:ne.ia5str.str}:null!=ne.visstr?{type:"vis",str:ne.visstr.str}:null!=ne.bmpstr?{type:"bmp",str:ne.bmpstr.str}:null!=ne.prnstr?{type:"prn",str:ne.prnstr.str}:void 0},this.getExtPolicyMappings=function(ne,Ie){var _t=this.getCriticalExtV("policyMappings",ne,Ie);if(Ie=_t[1],null!=(ne=_t[0])){var Nt={extname:"policyMappings"};Ie&&(Nt.critical=!0);try{for(var vn=_e(ne).seq,fn=[],Cn=0;Cn<vn.length;Cn++){var Tn=vn[Cn].seq;fn.push([Tn[0].oid,Tn[1].oid])}Nt.array=fn}catch{throw new In("malformed policyMappings")}return Nt}},this.getExtPolicyConstraints=function(ne,Ie){var _t=this.getCriticalExtV("policyConstraints",ne,Ie);if(Ie=_t[1],null!=(ne=_t[0])){var Nt={extname:"policyConstraints"};Ie&&(Nt.critical=!0);var en=_e(ne);try{for(var vn=en.seq,fn=0;fn<vn.length;fn++){var Cn=vn[fn].tag;0==Cn.explicit&&("80"==Cn.tag&&(Nt.reqexp=parseInt(Cn.hex,16)),"81"==Cn.tag&&(Nt.inhibit=parseInt(Cn.hex,16)))}}catch{return new In("malformed policyConstraints value")}return Nt}},this.getExtInhibitAnyPolicy=function(ne,Ie){var _t=this.getCriticalExtV("inhibitAnyPolicy",ne,Ie);if(Ie=_t[1],null!=(ne=_t[0])){var Nt={extname:"inhibitAnyPolicy"};Ie&&(Nt.critical=!0);var en=Tt(ne,0);return-1==en?new In("wrong value"):(Nt.skip=en,Nt)}},this.getExtCRLNumber=function(ne,Ie){var _t={extname:"cRLNumber"};if(Ie&&(_t.critical=!0),"02"==ne.substr(0,2))return _t.num={hex:j(ne,0)},_t;throw new In("hExtV parse error: "+ne)},this.getExtCRLReason=function(ne,Ie){var _t={extname:"cRLReason"};if(Ie&&(_t.critical=!0),"0a"==ne.substr(0,2))return _t.code=parseInt(j(ne,0),16),_t;throw new Error("hExtV parse error: "+ne)},this.getExtOcspNonce=function(ne,Ie){var _t={extname:"ocspNonce"};Ie&&(_t.critical=!0);var Nt=j(ne,0);return _t.hex=Nt,_t},this.getExtOcspNoCheck=function(ne,Ie){var _t={extname:"ocspNoCheck"};return Ie&&(_t.critical=!0),_t},this.getExtAdobeTimeStamp=function(ne,Ie){if(void 0===ne&&void 0===Ie){var _t=this.getExtInfo("adobeTimeStamp");if(void 0===_t)return;ne=xe(this.hex,_t.vidx),Ie=_t.critical}var Nt={extname:"adobeTimeStamp"};Ie&&(Nt.critical=!0);var en=I(ne,0);if(en.length>1){var vn=xe(ne,en[1]),fn=this.getGeneralName(vn);null!=fn.uri&&(Nt.uri=fn.uri)}if(en.length>2){var Cn=xe(ne,en[2]);"0101ff"==Cn&&(Nt.reqauth=!0),"010100"==Cn&&(Nt.reqauth=!1)}return Nt},this.getExtSubjectDirectoryAttributes=function(ne,Ie){if(void 0===ne&&void 0===Ie){var _t=this.getExtInfo("subjectDirectoryAttributes");if(void 0===_t)return;ne=xe(this.hex,_t.vidx),Ie=_t.critical}var Nt={extname:"subjectDirectoryAttributes"};Ie&&(Nt.critical=!0);try{for(var en=_e(ne),vn=[],fn=0;fn<en.seq.length;fn++){var Cn=en.seq[fn],Tn=ho(Cn,"seq.0.oid"),Wn=ho(Cn,"seq.1.set");if(null==Tn||null==Wn)throw"error";vn.push({attr:Tn,array:Wn})}return Nt.array=vn,Nt}catch{throw new Error("malformed subjectDirectoryAttributes extension value")}};var Nn=function(ne){var Ie={};try{var Nt=Ae.asn1.x509.OID.name2oid(ne.seq[0].oid);Ie.type=Ae.asn1.x509.OID.oid2atype(Nt);var en=ne.seq[1];if(null!=en.utf8str)Ie.ds="utf8",Ie.value=en.utf8str.str;else if(null!=en.numstr)Ie.ds="num",Ie.value=en.numstr.str;else if(null!=en.telstr)Ie.ds="tel",Ie.value=en.telstr.str;else if(null!=en.prnstr)Ie.ds="prn",Ie.value=en.prnstr.str;else if(null!=en.ia5str)Ie.ds="ia5",Ie.value=en.ia5str.str;else if(null!=en.visstr)Ie.ds="vis",Ie.value=en.visstr.str;else{if(null==en.bmpstr)throw"error";Ie.ds="bmp",Ie.value=en.bmpstr.str}return Ie}catch{throw new Erorr("improper ASN.1 parsed AttrTypeAndValue")}},ri=function(ne){try{return ne.set.map(function(Ie){return Nn(Ie)})}catch(Ie){throw new Error("improper ASN.1 parsed RDN: "+Ie)}};this.getX500NameRule=function(ne){for(var fn=null,Cn=[],Tn=0;Tn<ne.length;Tn++)for(var Wn=ne[Tn],gi=0;gi<Wn.length;gi++)Cn.push(Wn[gi]);for(Tn=0;Tn<Cn.length;Tn++){var ln=Cn[Tn],ki=ln.ds,Ki=ln.type;if("prn"!=ki&&"utf8"!=ki&&"ia5"!=ki)return"mixed";if("ia5"==ki){if("CN"!=Ki)return"mixed";if(Ae.lang.String.isMail(ln.value))continue;return"mixed"}if("C"==Ki){if("prn"==ki)continue;return"mixed"}if(null==fn)fn=ki;else if(fn!==ki)return"mixed"}return fn??"prn"},this.getAttrTypeAndValue=function(ne){var Ie=_e(ne);return Nn(Ie)},this.getRDN=function(ne){var Ie=_e(ne);return ri(Ie)},this.getX500NameArray=function(ne){return function(ne){try{return ne.seq.map(function(Ie){return ri(Ie)})}catch(Ie){throw new Error("improper ASN.1 parsed X500Name: "+Ie)}}(_e(ne))},this.getX500Name=function(ne,Ie,_t){var Nt=this.getX500NameArray(ne),vn={str:this.dnarraytostr(Nt)};return vn.array=Nt,1==_t&&(vn.hex=ne),1==Ie&&(vn.canon=this.c14nRDNArray(Nt)),vn},this.readCertPEM=function(ne){this.readCertHex(un(ne))},this.readCertHex=function(ne){this.hex=ne,this.getVersion();try{$t(this.hex,0,[0,7],"a3"),this.parseExt()}catch{}},this.getParam=function(ne){var Ie={};return null==ne&&(ne={}),Ie.version=this.getVersion(),Ie.serial={hex:this.getSerialNumberHex()},Ie.sigalg=this.getSignatureAlgorithmField(),Ie.issuer=this.getIssuer(ne.dncanon,ne.dnhex),Ie.notbefore=this.getNotBefore(),Ie.notafter=this.getNotAfter(),Ie.subject=this.getSubject(ne.dncanon,ne.dnhex),Ie.sbjpubkey=$n(this.getPublicKeyHex(),"PUBLIC KEY"),null!=this.aExtInfo&&this.aExtInfo.length>0&&(Ie.ext=this.getExtParamArray()),Ie.sighex=this.getSignatureValueHex(),1==ne.tbshex&&(Ie.tbshex=yt(this.hex,0,[0])),1==ne.nodnarray&&(delete Ie.issuer.array,delete Ie.subject.array),Ie},this.getExtParamArray=function(ne){null==ne&&-1!=st(this.hex,0,[0,"[3]"])&&(ne=Gt(this.hex,0,[0,"[3]",0],"30"));for(var _t=[],Nt=I(ne,0),en=0;en<Nt.length;en++){var vn=xe(ne,Nt[en]),fn=this.getExtParam(vn);null!=fn&&_t.push(fn)}return _t},this.getExtParam=function(ne){var Nt=I(ne,0).length;if(2!=Nt&&3!=Nt)throw new Error("wrong number elements in Extension: "+Nt+" "+ne);var en=kt(He(ne,0,[0],"06")),vn=!1;3==Nt&&"0101ff"==yt(ne,0,[1])&&(vn=!0);var fn=yt(ne,0,[Nt-1,0]),Cn=void 0;if("2.5.29.14"==en?Cn=this.getExtSubjectKeyIdentifier(fn,vn):"2.5.29.15"==en?Cn=this.getExtKeyUsage(fn,vn):"2.5.29.17"==en?Cn=this.getExtSubjectAltName(fn,vn):"2.5.29.18"==en?Cn=this.getExtIssuerAltName(fn,vn):"2.5.29.19"==en?Cn=this.getExtBasicConstraints(fn,vn):"2.5.29.30"==en?Cn=this.getExtNameConstraints(fn,vn):"2.5.29.31"==en?Cn=this.getExtCRLDistributionPoints(fn,vn):"2.5.29.32"==en?Cn=this.getExtCertificatePolicies(fn,vn):"2.5.29.33"==en?Cn=this.getExtPolicyMappings(fn,vn):"2.5.29.35"==en?Cn=this.getExtAuthorityKeyIdentifier(fn,vn):"2.5.29.36"==en?Cn=this.getExtPolicyConstraints(fn,vn):"2.5.29.37"==en?Cn=this.getExtExtKeyUsage(fn,vn):"2.5.29.54"==en?Cn=this.getExtInhibitAnyPolicy(fn,vn):"1.3.6.1.5.5.7.1.1"==en?Cn=this.getExtAuthorityInfoAccess(fn,vn):"2.5.29.20"==en?Cn=this.getExtCRLNumber(fn,vn):"2.5.29.21"==en?Cn=this.getExtCRLReason(fn,vn):"2.5.29.9"==en?Cn=this.getExtSubjectDirectoryAttributes(fn,vn):"1.3.6.1.5.5.7.48.1.2"==en?Cn=this.getExtOcspNonce(fn,vn):"1.3.6.1.5.5.7.48.1.5"==en?Cn=this.getExtOcspNoCheck(fn,vn):"1.2.840.113583.1.1.9.1"==en?Cn=this.getExtAdobeTimeStamp(fn,vn):null!=Mr.EXT_PARSER[en]&&(Cn=Mr.EXT_PARSER[en](en,vn,fn)),null!=Cn)return Cn;var Tn={extname:en,extn:fn};try{Tn.extn=_e(fn)}catch{}return vn&&(Tn.critical=!0),Tn},this.findExt=function(ne,Ie){for(var _t=0;_t<ne.length;_t++)if(ne[_t].extname==Ie)return ne[_t];return null},this.updateExtCDPFullURI=function(ne,Ie){var _t=this.findExt(ne,"cRLDistributionPoints");if(null!=_t&&null!=_t.array)for(var Nt=_t.array,en=0;en<Nt.length;en++)if(null!=Nt[en].dpname&&null!=Nt[en].dpname.full)for(var vn=Nt[en].dpname.full,fn=0;fn<vn.length;fn++){var Cn=vn[en];null!=Cn.uri&&(Cn.uri=Ie)}},this.updateExtAIAOCSP=function(ne,Ie){var _t=this.findExt(ne,"authorityInfoAccess");if(null!=_t&&null!=_t.array)for(var Nt=_t.array,en=0;en<Nt.length;en++)null!=Nt[en].ocsp&&(Nt[en].ocsp=Ie)},this.updateExtAIACAIssuer=function(ne,Ie){var _t=this.findExt(ne,"authorityInfoAccess");if(null!=_t&&null!=_t.array)for(var Nt=_t.array,en=0;en<Nt.length;en++)null!=Nt[en].caissuer&&(Nt[en].caissuer=Ie)},this.dnarraytostr=function(ne){return"/"+ne.map(function(Nt){return function Ie(Nt){return Nt.map(function(en){return function _t(Nt){return Nt.type+"="+Nt.value}(en).replace(/\+/,"\\+")}).join("+")}(Nt).replace(/\//,"\\/")}).join("/")},this.setCanonicalizedDN=function(ne){var Ie;if(null!=ne.str&&null==ne.array){var Nt=new Ae.asn1.x509.X500Name({str:ne.str}).tohex();Ie=this.getX500NameArray(Nt)}else Ie=ne.array;null==ne.canon&&(ne.canon=this.c14nRDNArray(Ie))},this.c14nRDNArray=function(ne){for(var Ie=[],_t=0;_t<ne.length;_t++){for(var Nt=ne[_t],en=[],vn=0;vn<Nt.length;vn++){var fn=Nt[vn],Cn=fn.value;Cn=(Cn=(Cn=(Cn=Cn.replace(/^\s*/,"")).replace(/\s*$/,"")).replace(/\s+/g," ")).toLowerCase(),en.push(fn.type.toLowerCase()+"="+Cn)}Ie.push(en.join("+"))}return"/"+Ie.join("/")},this.getInfo=function(){var vn,fn,Cn,ne=function(kr){for(var cr="",Kr=" ",Qr=kr.array,Rs=0;Rs<Qr.length;Rs++){var Hr=Qr[Rs];null!=Hr.dn&&(cr+=Kr+"dn: "+Hr.dn.str+"\n"),null!=Hr.ip&&(cr+=Kr+"ip: "+Hr.ip+"\n"),null!=Hr.rfc822&&(cr+=Kr+"rfc822: "+Hr.rfc822+"\n"),null!=Hr.dns&&(cr+=Kr+"dns: "+Hr.dns+"\n"),null!=Hr.uri&&(cr+=Kr+"uri: "+Hr.uri+"\n"),null!=Hr.other&&(cr+=Kr+"other: "+Hr.other.oid+"="+JSON.stringify(Hr.other.value).replace(/\"/g,"")+"\n")}return cr.replace(/\n$/,"")},Ie=function(kr){for(var cr="",Kr=kr.array,Wr=0;Wr<Kr.length;Wr++){var Qr=Kr[Wr];if(cr+=" policy oid: "+Qr.policyoid+"\n",void 0!==Qr.array)for(var Rs=0;Rs<Qr.array.length;Rs++){var Hr=Qr.array[Rs];void 0!==Hr.cps&&(cr+=" cps: "+Hr.cps+"\n")}}return cr},_t=function(kr){for(var cr="",Kr=kr.array,Wr=0;Wr<Kr.length;Wr++){var Qr=Kr[Wr];try{void 0!==Qr.dpname.full[0].uri&&(cr+=" "+Qr.dpname.full[0].uri+"\n")}catch{}try{void 0!==Qr.dname.full[0].dn.hex&&(cr+=" "+Mr.hex2dn(Qr.dpname.full[0].dn.hex)+"\n")}catch{}}return cr},Nt=function(kr){for(var cr="",Kr=kr.array,Wr=0;Wr<Kr.length;Wr++){var Qr=Kr[Wr];void 0!==Qr.caissuer&&(cr+=" caissuer: "+Qr.caissuer+"\n"),void 0!==Qr.ocsp&&(cr+=" ocsp: "+Qr.ocsp+"\n")}return cr};if(vn="Basic Fields\n",vn+=" serial number: "+this.getSerialNumberHex()+"\n",vn+=" signature algorithm: "+this.getSignatureAlgorithmField()+"\n",vn+=" issuer: "+this.getIssuerString()+"\n",vn+=" notBefore: "+this.getNotBefore()+"\n",vn+=" notAfter: "+this.getNotAfter()+"\n",vn+=" subject: "+this.getSubjectString()+"\n",vn+=" subject public key info: \n",vn+=" key algorithm: "+(fn=this.getPublicKey()).type+"\n","RSA"===fn.type&&(vn+=" n="+ao(fn.n.toString(16)).substr(0,16)+"...\n",vn+=" e="+ao(fn.e.toString(16))+"\n"),null!=(Cn=this.aExtInfo)){vn+="X509v3 Extensions:\n";for(var Tn=0;Tn<Cn.length;Tn++){var Wn=Cn[Tn],gi=Ae.asn1.x509.OID.oid2name(Wn.oid);""===gi&&(gi=Wn.oid);var ln="";if(!0===Wn.critical&&(ln="CRITICAL"),vn+=" "+gi+" "+ln+":\n","basicConstraints"===gi){var ki=this.getExtBasicConstraints();void 0===ki.cA?vn+=" {}\n":(vn+=" cA=true",void 0!==ki.pathLen&&(vn+=", pathLen="+ki.pathLen),vn+="\n")}else if("policyMappings"==gi)vn+=" "+this.getExtPolicyMappings().array.map(function(kr){return kr[0]+":"+kr[1]}).join(", ")+"\n";else if("policyConstraints"==gi)vn+=" ",null!=(pr=this.getExtPolicyConstraints()).reqexp&&(vn+=" reqexp="+pr.reqexp),null!=pr.inhibit&&(vn+=" inhibit="+pr.inhibit),vn+="\n";else if("inhibitAnyPolicy"==gi){var pr;vn+=" skip="+(pr=this.getExtInhibitAnyPolicy()).skip+"\n"}else if("keyUsage"==gi)vn+=" "+this.getExtKeyUsageString()+"\n";else if("subjectKeyIdentifier"==gi)vn+=" "+this.getExtSubjectKeyIdentifier().kid.hex+"\n";else if("authorityKeyIdentifier"==gi){var Ti=this.getExtAuthorityKeyIdentifier();void 0!==Ti.kid&&(vn+=" kid="+Ti.kid.hex+"\n")}else"extKeyUsage"==gi?vn+=" "+this.getExtExtKeyUsage().array.join(", ")+"\n":"subjectAltName"==gi?vn+=ne(this.getExtSubjectAltName())+"\n":"cRLDistributionPoints"==gi?vn+=_t(this.getExtCRLDistributionPoints()):"authorityInfoAccess"==gi?vn+=Nt(this.getExtAuthorityInfoAccess()):"certificatePolicies"==gi&&(vn+=Ie(this.getExtCertificatePolicies()))}}return(vn+="signature algorithm: "+this.getSignatureAlgorithmName()+"\n")+"signature: "+this.getSignatureValueHex().substr(0,16)+"...\n"},"string"==typeof _&&(-1!=_.indexOf("-----BEGIN")?this.readCertPEM(_):Ae.lang.String.isHex(_)&&this.readCertHex(_))}br.getKey=function(_,D,I){var ne,pe=(j=zi).getChildIdx,xe=j.getVbyList,He=Ae.crypto,ht=He.ECDSA,yt=He.DSA,Gt=Rr,$t=mt,st=br;if(typeof Gt<"u"&&_ instanceof Gt||typeof ht<"u"&&_ instanceof ht||typeof yt<"u"&&_ instanceof yt)return _;if(void 0!==_.curve&&void 0!==_.xy&&void 0===_.d)return new ht({pub:_.xy,curve:_.curve});if(void 0!==_.curve&&void 0!==_.d)return new ht({prv:_.d,curve:_.curve});if(void 0===_.kty&&void 0!==_.n&&void 0!==_.e&&void 0===_.d)return(tt=new Gt).setPublic(_.n,_.e),tt;if(void 0===_.kty&&void 0!==_.n&&void 0!==_.e&&void 0!==_.d&&void 0!==_.p&&void 0!==_.q&&void 0!==_.dp&&void 0!==_.dq&&void 0!==_.co&&void 0===_.qi)return(tt=new Gt).setPrivateEx(_.n,_.e,_.d,_.p,_.q,_.dp,_.dq,_.co),tt;if(void 0===_.kty&&void 0!==_.n&&void 0!==_.e&&void 0!==_.d&&void 0===_.p)return(tt=new Gt).setPrivate(_.n,_.e,_.d),tt;if(void 0!==_.p&&void 0!==_.q&&void 0!==_.g&&void 0!==_.y&&void 0===_.x)return(tt=new yt).setPublic(_.p,_.q,_.g,_.y),tt;if(void 0!==_.p&&void 0!==_.q&&void 0!==_.g&&void 0!==_.y&&void 0!==_.x)return(tt=new yt).setPrivate(_.p,_.q,_.g,_.y,_.x),tt;if("RSA"===_.kty&&void 0!==_.n&&void 0!==_.e&&void 0===_.d)return(tt=new Gt).setPublic(Mt(_.n),Mt(_.e)),tt;if("RSA"===_.kty&&void 0!==_.n&&void 0!==_.e&&void 0!==_.d&&void 0!==_.p&&void 0!==_.q&&void 0!==_.dp&&void 0!==_.dq&&void 0!==_.qi)return(tt=new Gt).setPrivateEx(Mt(_.n),Mt(_.e),Mt(_.d),Mt(_.p),Mt(_.q),Mt(_.dp),Mt(_.dq),Mt(_.qi)),tt;if("RSA"===_.kty&&void 0!==_.n&&void 0!==_.e&&void 0!==_.d)return(tt=new Gt).setPrivate(Mt(_.n),Mt(_.e),Mt(_.d)),tt;if("EC"===_.kty&&void 0!==_.crv&&void 0!==_.x&&void 0!==_.y&&void 0===_.d){var Ye=(Tt=new ht({curve:_.crv})).ecparams.keycharlen,kt=("0000000000"+Mt(_.x)).slice(-Ye),It=("0000000000"+Mt(_.y)).slice(-Ye);return Tt.setPublicKeyHex(un="04"+kt+It),Tt}if("EC"===_.kty&&void 0!==_.crv&&void 0!==_.x&&void 0!==_.y&&void 0!==_.d){Ye=(Tt=new ht({curve:_.crv})).ecparams.keycharlen;var un="04"+(kt=("0000000000"+Mt(_.x)).slice(-Ye))+(It=("0000000000"+Mt(_.y)).slice(-Ye)),xn=("0000000000"+Mt(_.d)).slice(-Ye);return Tt.setPublicKeyHex(un),Tt.setPrivateKeyHex(xn),Tt}if("pkcs5prv"===I){var Nn,In=_,j=zi;if(9===(Nn=pe(In,0)).length)(tt=new Gt).readPKCS5PrvKeyHex(In);else if(6===Nn.length)(tt=new yt).readPKCS5PrvKeyHex(In);else{if(!(Nn.length>2&&"04"===In.substr(Nn[1],2)))throw new Error("unsupported PKCS#1/5 hexadecimal key");(tt=new ht).readPKCS5PrvKeyHex(In)}return tt}if("pkcs8prv"===I)return st.getKeyFromPlainPrivatePKCS8Hex(_);if("pkcs8pub"===I)return st._getKeyFromPublicPKCS8Hex(_);if("x509pub"===I)return Mr.getPublicKeyFromCertHex(_);if(-1!=_.indexOf("-END CERTIFICATE-",0)||-1!=_.indexOf("-END X509 CERTIFICATE-",0)||-1!=_.indexOf("-END TRUSTED CERTIFICATE-",0))return Mr.getPublicKeyFromCertPEM(_);if(-1!=_.indexOf("-END PUBLIC KEY-")){var ri=mt(_,"PUBLIC KEY");return st._getKeyFromPublicPKCS8Hex(ri)}if(-1!=_.indexOf("-END RSA PRIVATE KEY-")&&-1==_.indexOf("4,ENCRYPTED")){var ui=$t(_,"RSA PRIVATE KEY");return st.getKey(ui,null,"pkcs5prv")}if(-1!=_.indexOf("-END DSA PRIVATE KEY-")&&-1==_.indexOf("4,ENCRYPTED")){var Ie=xe(ne=$t(_,"DSA PRIVATE KEY"),0,[1],"02"),_t=xe(ne,0,[2],"02"),Nt=xe(ne,0,[3],"02"),en=xe(ne,0,[4],"02"),vn=xe(ne,0,[5],"02");return(tt=new yt).setPrivate(new u(Ie,16),new u(_t,16),new u(Nt,16),new u(en,16),new u(vn,16)),tt}if(-1!=_.indexOf("-END EC PRIVATE KEY-")&&-1==_.indexOf("4,ENCRYPTED"))return ui=$t(_,"EC PRIVATE KEY"),st.getKey(ui,null,"pkcs5prv");if(-1!=_.indexOf("-END PRIVATE KEY-"))return st.getKeyFromPlainPrivatePKCS8PEM(_);if(-1!=_.indexOf("-END RSA PRIVATE KEY-")&&-1!=_.indexOf("4,ENCRYPTED")){var fn=st.getDecryptedKeyHex(_,D),Cn=new Rr;return Cn.readPKCS5PrvKeyHex(fn),Cn}if(-1!=_.indexOf("-END EC PRIVATE KEY-")&&-1!=_.indexOf("4,ENCRYPTED")){var Tt,tt=xe(ne=st.getDecryptedKeyHex(_,D),0,[1],"04"),Tn=xe(ne,0,[2,0],"06"),Wn=xe(ne,0,[3,0],"03").substr(2);if(void 0===Ae.crypto.OID.oidhex2name[Tn])throw new Error("undefined OID(hex) in KJUR.crypto.OID: "+Tn);return(Tt=new ht({curve:Ae.crypto.OID.oidhex2name[Tn]})).setPublicKeyHex(Wn),Tt.setPrivateKeyHex(tt),Tt.isPublic=!1,Tt}if(-1!=_.indexOf("-END DSA PRIVATE KEY-")&&-1!=_.indexOf("4,ENCRYPTED"))return Ie=xe(ne=st.getDecryptedKeyHex(_,D),0,[1],"02"),_t=xe(ne,0,[2],"02"),Nt=xe(ne,0,[3],"02"),en=xe(ne,0,[4],"02"),vn=xe(ne,0,[5],"02"),(tt=new yt).setPrivate(new u(Ie,16),new u(_t,16),new u(Nt,16),new u(en,16),new u(vn,16)),tt;if(-1!=_.indexOf("-END ENCRYPTED PRIVATE KEY-"))return st.getKeyFromEncryptedPKCS8PEM(_,D);throw new Error("not supported argument")},br.generateKeypair=function(_,D){if("RSA"==_){var I=D;(j=new Rr).generate(I,"10001"),j.isPrivate=!0,j.isPublic=!0;var pe=new Rr,_e=j.n.toString(16),xe=j.e.toString(16);return pe.setPublic(_e,xe),pe.isPrivate=!1,pe.isPublic=!0,(He={}).prvKeyObj=j,He.pubKeyObj=pe,He}if("EC"==_){var j,He,ht=D,Gt=new Ae.crypto.ECDSA({curve:ht}).generateKeyPairHex();return(j=new Ae.crypto.ECDSA({curve:ht})).setPublicKeyHex(Gt.ecpubhex),j.setPrivateKeyHex(Gt.ecprvhex),j.isPrivate=!0,j.isPublic=!1,(pe=new Ae.crypto.ECDSA({curve:ht})).setPublicKeyHex(Gt.ecpubhex),pe.isPrivate=!1,pe.isPublic=!0,(He={}).prvKeyObj=j,He.pubKeyObj=pe,He}throw new Error("unknown algorithm: "+_)},br.getPEM=function(_,D,I,j,pe,_e){var He=Ae.asn1,ht=He.DERObjectIdentifier,yt=He.DERInteger,Gt=He.ASN1Util.newObject,tt=Ae.crypto,Tt=tt.DSA,Ye=tt.ECDSA,kt=Rr;function It(Cn){return Gt({seq:[{int:0},{int:{bigint:Cn.n}},{int:Cn.e},{int:{bigint:Cn.d}},{int:{bigint:Cn.p}},{int:{bigint:Cn.q}},{int:{bigint:Cn.dmp1}},{int:{bigint:Cn.dmq1}},{int:{bigint:Cn.coeff}}]})}function un(Cn){return Gt({seq:[{int:1},{octstr:{hex:Cn.prvKeyHex}},{tag:["a0",!0,{oid:{name:Cn.curveName}}]},{tag:["a1",!0,{bitstr:{hex:"00"+Cn.pubKeyHex}}]}]})}function xn(Cn){return Gt({seq:[{int:0},{int:{bigint:Cn.p}},{int:{bigint:Cn.q}},{int:{bigint:Cn.g}},{int:{bigint:Cn.y}},{int:{bigint:Cn.x}}]})}if((void 0!==kt&&_ instanceof kt||void 0!==Tt&&_ instanceof Tt||void 0!==Ye&&_ instanceof Ye)&&1==_.isPublic&&(void 0===D||"PKCS8PUB"==D))return $n(Nn=new(0,He.x509.SubjectPublicKeyInfo)(_).tohex(),"PUBLIC KEY");if("PKCS1PRV"==D&&void 0!==kt&&_ instanceof kt&&(void 0===I||null==I)&&1==_.isPrivate)return $n(Nn=It(_).tohex(),"RSA PRIVATE KEY");if("PKCS1PRV"==D&&void 0!==Ye&&_ instanceof Ye&&(void 0===I||null==I)&&1==_.isPrivate){var ui=new ht({name:_.curveName}).tohex(),Ie=un(_).tohex(),_t="";return(_t+=$n(ui,"EC PARAMETERS"))+$n(Ie,"EC PRIVATE KEY")}if("PKCS1PRV"==D&&void 0!==Tt&&_ instanceof Tt&&(void 0===I||null==I)&&1==_.isPrivate)return $n(Nn=xn(_).tohex(),"DSA PRIVATE KEY");if("PKCS5PRV"==D&&void 0!==kt&&_ instanceof kt&&void 0!==I&&null!=I&&1==_.isPrivate){var Nn=It(_).tohex();return void 0===j&&(j="DES-EDE3-CBC"),this.getEncryptedPKCS5PEMFromPrvKeyHex("RSA",Nn,I,j,_e)}if("PKCS5PRV"==D&&void 0!==Ye&&_ instanceof Ye&&void 0!==I&&null!=I&&1==_.isPrivate)return Nn=un(_).tohex(),void 0===j&&(j="DES-EDE3-CBC"),this.getEncryptedPKCS5PEMFromPrvKeyHex("EC",Nn,I,j,_e);if("PKCS5PRV"==D&&void 0!==Tt&&_ instanceof Tt&&void 0!==I&&null!=I&&1==_.isPrivate)return Nn=xn(_).tohex(),void 0===j&&(j="DES-EDE3-CBC"),this.getEncryptedPKCS5PEMFromPrvKeyHex("DSA",Nn,I,j,_e);var Nt=function(Cn,Tn){if("string"==typeof Tn)return br.getEncryptedPKCS8PEM(Cn,Tn);if("object"==typeof Tn&&null!=ho(Tn,"passcode")){var Wn=JSON.parse(JSON.stringify(Tn)),gi=Wn.passcode;return delete Wn.passcode,br.getEncryptedPKCS8PEM(Cn,gi,Wn)}};if("PKCS8PRV"==D&&null!=kt&&_ instanceof kt&&1==_.isPrivate){var vn=It(_).tohex();return Nn=Gt({seq:[{int:0},{seq:[{oid:{name:"rsaEncryption"}},{null:!0}]},{octstr:{hex:vn}}]}).tohex(),void 0===I||null==I?$n(Nn,"PRIVATE KEY"):Nt(Nn,I)}if("PKCS8PRV"==D&&void 0!==Ye&&_ instanceof Ye&&1==_.isPrivate){var fn={seq:[{int:1},{octstr:{hex:_.prvKeyHex}}]};return"string"==typeof _.pubKeyHex&&fn.seq.push({tag:["a1",!0,{bitstr:{hex:"00"+_.pubKeyHex}}]}),vn=new Gt(fn).tohex(),Nn=Gt({seq:[{int:0},{seq:[{oid:{name:"ecPublicKey"}},{oid:{name:_.curveName}}]},{octstr:{hex:vn}}]}).tohex(),void 0===I||null==I?$n(Nn,"PRIVATE KEY"):Nt(Nn,I)}if("PKCS8PRV"==D&&void 0!==Tt&&_ instanceof Tt&&1==_.isPrivate)return vn=new yt({bigint:_.x}).tohex(),Nn=Gt({seq:[{int:0},{seq:[{oid:{name:"dsa"}},{seq:[{int:{bigint:_.p}},{int:{bigint:_.q}},{int:{bigint:_.g}}]}]},{octstr:{hex:vn}}]}).tohex(),void 0===I||null==I?$n(Nn,"PRIVATE KEY"):Nt(Nn,I);throw new Error("unsupported object nor format")},br.getKeyFromCSRPEM=function(_){var D=mt(_,"CERTIFICATE REQUEST");return br.getKeyFromCSRHex(D)},br.getKeyFromCSRHex=function(_){var D=br.parseCSRHex(_);return br.getKey(D.p8pubkeyhex,null,"pkcs8pub")},br.parseCSRHex=function(_){var I=zi.getChildIdx,j=zi.getTLV,pe={},_e=_;if("30"!=_e.substr(0,2))throw new Error("malformed CSR(code:001)");var xe=I(_e,0);if(xe.length<1)throw new Error("malformed CSR(code:002)");if("30"!=_e.substr(xe[0],2))throw new Error("malformed CSR(code:003)");var He=I(_e,xe[0]);if(He.length<3)throw new Error("malformed CSR(code:004)");return pe.p8pubkeyhex=j(_e,He[2]),pe},br.getKeyID=function(_){var D=br,I=zi;"string"==typeof _&&-1!=_.indexOf("BEGIN ")&&(_=D.getKey(_));var j=mt(D.getPEM(_)),pe=I.getIdxbyList(j,0,[1]),_e=I.getV(j,pe).substring(2);return Ae.crypto.Util.hashHex(_e,"sha1")},br.getJWK=function(_,D,I,j,pe){var _e,He,xe={},ht=Ae.crypto.Util.hashHex;if("string"==typeof _)_e=br.getKey(_),-1!=_.indexOf("CERTIFICATE")&&(He=mt(_));else{if("object"!=typeof _)throw new Error("unsupported keyinfo type");_ instanceof Mr?(_e=_.getPublicKey(),He=_.hex):_e=_}if(_e instanceof Rr&&_e.isPrivate)xe.kty="RSA",xe.n=Dt(_e.n.toString(16)),xe.e=Dt(_e.e.toString(16)),xe.d=Dt(_e.d.toString(16)),xe.p=Dt(_e.p.toString(16)),xe.q=Dt(_e.q.toString(16)),xe.dp=Dt(_e.dmp1.toString(16)),xe.dq=Dt(_e.dmq1.toString(16)),xe.qi=Dt(_e.coeff.toString(16));else if(_e instanceof Rr&&_e.isPublic)xe.kty="RSA",xe.n=Dt(_e.n.toString(16)),xe.e=Dt(_e.e.toString(16));else if(_e instanceof Ae.crypto.ECDSA&&_e.isPrivate){if("P-256"!==(yt=_e.getShortNISTPCurveName())&&"P-384"!==yt&&"P-521"!==yt)throw new Error("unsupported curve name for JWT: "+yt);var Gt=_e.getPublicKeyXYHex();xe.kty="EC",xe.crv=yt,xe.x=Dt(Gt.x),xe.y=Dt(Gt.y),xe.d=Dt(_e.prvKeyHex)}else if(_e instanceof Ae.crypto.ECDSA&&_e.isPublic){var yt;if("P-256"!==(yt=_e.getShortNISTPCurveName())&&"P-384"!==yt&&"P-521"!==yt)throw new Error("unsupported curve name for JWT: "+yt);Gt=_e.getPublicKeyXYHex(),xe.kty="EC",xe.crv=yt,xe.x=Dt(Gt.x),xe.y=Dt(Gt.y)}if(null==xe.kty)throw new Error("unsupported keyinfo");return!_e.isPrivate&&1!=D&&(xe.kid=Ae.jws.JWS.getJWKthumbprint(xe)),null!=He&&1!=I&&(xe.x5c=[x(He)]),null!=He&&1!=j&&(xe.x5t=ga(x(ht(He,"sha1")))),null!=He&&1!=pe&&(xe["x5t#S256"]=ga(x(ht(He,"sha256")))),xe},br.getJWKFromKey=function(_){return br.getJWK(_,!0,!0,!0,!0)},Rr.getPosArrayOfChildrenFromHex=function(_){return zi.getChildIdx(_,0)},Rr.getHexValueArrayOfChildrenFromHex=function(_){var st,I=zi.getV,j=I(_,(st=Rr.getPosArrayOfChildrenFromHex(_))[0]),pe=I(_,st[1]),_e=I(_,st[2]),xe=I(_,st[3]),He=I(_,st[4]),ht=I(_,st[5]),yt=I(_,st[6]),Gt=I(_,st[7]),$t=I(_,st[8]);return(st=new Array).push(j,pe,_e,xe,He,ht,yt,Gt,$t),st},Rr.prototype.readPrivateKeyFromPEMString=function(_){var D=mt(_),I=Rr.getHexValueArrayOfChildrenFromHex(D);this.setPrivateEx(I[1],I[2],I[3],I[4],I[5],I[6],I[7],I[8])},Rr.prototype.readPKCS5PrvKeyHex=function(_){var D=Rr.getHexValueArrayOfChildrenFromHex(_);this.setPrivateEx(D[1],D[2],D[3],D[4],D[5],D[6],D[7],D[8])},Rr.prototype.readPKCS8PrvKeyHex=function(_){var D,I,j,pe,_e,xe,He,ht,Gt=zi.getVbyListEx;if(!1===zi.isASN1HEX(_))throw new Error("not ASN.1 hex string");try{D=Gt(_,0,[2,0,1],"02"),I=Gt(_,0,[2,0,2],"02"),j=Gt(_,0,[2,0,3],"02"),pe=Gt(_,0,[2,0,4],"02"),_e=Gt(_,0,[2,0,5],"02"),xe=Gt(_,0,[2,0,6],"02"),He=Gt(_,0,[2,0,7],"02"),ht=Gt(_,0,[2,0,8],"02")}catch{throw new Error("malformed PKCS#8 plain RSA private key")}this.setPrivateEx(D,I,j,pe,_e,xe,He,ht)},Rr.prototype.readPKCS5PubKeyHex=function(_){var D=zi,I=D.getV;if(!1===D.isASN1HEX(_))throw new Error("keyHex is not ASN.1 hex string");var j=D.getChildIdx(_,0);if(2!==j.length||"02"!==_.substr(j[0],2)||"02"!==_.substr(j[1],2))throw new Error("wrong hex for PKCS#5 public key");var pe=I(_,j[0]),_e=I(_,j[1]);this.setPublic(pe,_e)},Rr.prototype.readPKCS8PubKeyHex=function(_){var D=zi;if(!1===D.isASN1HEX(_))throw new Error("not ASN.1 hex string");if("06092a864886f70d010101"!==D.getTLVbyListEx(_,0,[0,0]))throw new Error("not PKCS8 RSA public key");var I=D.getTLVbyListEx(_,0,[1,0]);this.readPKCS5PubKeyHex(I)},Rr.prototype.readCertPubKeyHex=function(_,D){var I,j;(I=new Mr).readCertHex(_),j=I.getPublicKeyHex(),this.readPKCS8PubKeyHex(j)},Rr.prototype.sign=function(_,D){var j=function(pe){return Ae.crypto.Util.hashString(pe,D)}(_);return this.signWithMessageHash(j,D)},Rr.prototype.signWithMessageHash=function(_,D){var j=So(Ae.crypto.Util.getPaddedDigestInfoHex(_,D,this.n.bitLength()),16);return cl(this.doPrivate(j).toString(16),this.n.bitLength())},Rr.prototype.signPSS=function(_,D,I){var pe=function(_e){return Ae.crypto.Util.hashHex(_e,D)}(Is(_));return void 0===I&&(I=-1),this.signWithMessageHashPSS(pe,D,I)},Rr.prototype.signWithMessageHashPSS=function(_,D,I){var He,j=hs(_),pe=j.length,_e=this.n.bitLength()-1,xe=Math.ceil(_e/8),ht=function(kt){return Ae.crypto.Util.hashHex(kt,D)};if(-1===I||void 0===I)I=pe;else if(-2===I)I=xe-pe-2;else if(I<-2)throw new Error("invalid salt length");if(xe<pe+I+2)throw new Error("data too long");var yt="";I>0&&(yt=new Array(I),(new qs).nextBytes(yt),yt=String.fromCharCode.apply(String,yt));var Gt=hs(ht(Is("\0\0\0\0\0\0\0\0"+j+yt))),$t=[];for(He=0;He<xe-I-pe-2;He+=1)$t[He]=0;var st=String.fromCharCode.apply(String,$t)+"\x01"+yt,tt=Ta(Gt,st.length,ht),Tt=[];for(He=0;He<st.length;He+=1)Tt[He]=st.charCodeAt(He)^tt.charCodeAt(He);for(Tt[0]&=~(65280>>8*xe-_e&255),He=0;He<pe;He++)Tt.push(Gt.charCodeAt(He));return Tt.push(188),cl(this.doPrivate(new u(Tt)).toString(16),this.n.bitLength())},Rr.prototype.verify=function(_,D){if(null==(D=D.toLowerCase()).match(/^[0-9a-f]+$/))return!1;var I=So(D,16),j=this.n.bitLength();if(I.bitLength()>j)return!1;var _e=this.doPublic(I).toString(16);if(_e.length+3!=j/4)return!1;var He=Fa(_e.replace(/^1f+00/,""));if(0==He.length)return!1;var ht=He[0],yt=He[1],$t=function(st){return Ae.crypto.Util.hashString(st,ht)}(_);return yt==$t},Rr.prototype.verifyWithMessageHash=function(_,D){if(D.length!=Math.ceil(this.n.bitLength()/4))return!1;var I=So(D,16);if(I.bitLength()>this.n.bitLength())return 0;var _e=Fa(this.doPublic(I).toString(16).replace(/^1f+00/,""));return 0!=_e.length&&_e[1]==_},Rr.prototype.verifyPSS=function(_,D,I,j){var _e=function(xe){return Ae.crypto.Util.hashHex(xe,I)}(Is(_));return void 0===j&&(j=-1),this.verifyWithMessageHashPSS(_e,D,I,j)},Rr.prototype.verifyWithMessageHashPSS=function(_,D,I,j){if(D.length!=Math.ceil(this.n.bitLength()/4))return!1;var Gt,pe=new u(D,16),_e=function(un){return Ae.crypto.Util.hashHex(un,I)},xe=hs(_),He=xe.length,ht=this.n.bitLength()-1,yt=Math.ceil(ht/8);if(-1===j||void 0===j)j=He;else if(-2===j)j=yt-He-2;else if(j<-2)throw new Error("invalid salt length");if(yt<He+j+2)throw new Error("data too long");var $t=this.doPublic(pe).toByteArray();for(Gt=0;Gt<$t.length;Gt+=1)$t[Gt]&=255;for(;$t.length<yt;)$t.unshift(0);if(188!==$t[yt-1])throw new Error("encoded message does not end in 0xbc");var st=($t=String.fromCharCode.apply(String,$t)).substr(0,yt-He-1),tt=$t.substr(st.length,He),Tt=65280>>8*yt-ht&255;if(st.charCodeAt(0)&Tt)throw new Error("bits beyond keysize not zero");var Ye=Ta(tt,st.length,_e),kt=[];for(Gt=0;Gt<st.length;Gt+=1)kt[Gt]=st.charCodeAt(Gt)^Ye.charCodeAt(Gt);kt[0]&=~Tt;var It=yt-He-j-2;for(Gt=0;Gt<It;Gt+=1)if(0!==kt[Gt])throw new Error("leftmost octets not zero");if(1!==kt[It])throw new Error("0x01 marker not found");return tt===hs(_e(Is("\0\0\0\0\0\0\0\0"+xe+String.fromCharCode.apply(String,kt.slice(-j)))))},Rr.SALT_LEN_HLEN=-1,Rr.SALT_LEN_MAX=-2,Rr.SALT_LEN_RECOVER=-2,Mr.EXT_PARSER={},Mr.registExtParser=function(_,D){Mr.EXT_PARSER[_]=D},Mr.hex2dn=function(_,D){void 0===D&&(D=0);var I=new Mr;return zi.getTLV(_,D),I.getX500Name(_).str},Mr.hex2rdn=function(_,D){if(void 0===D&&(D=0),"31"!==_.substr(D,2))throw new Error("malformed RDN");for(var I=new Array,j=zi.getChildIdx(_,D),pe=0;pe<j.length;pe++)I.push(Mr.hex2attrTypeValue(_,j[pe]));return I=I.map(function(_e){return _e.replace("+","\\+")}),I.join("+")},Mr.hex2attrTypeValue=function(_,D){var I=zi,j=I.getV;if(void 0===D&&(D=0),"30"!==_.substr(D,2))throw new Error("malformed attribute type and value");var pe=I.getChildIdx(_,D);2!==pe.length||_.substr(pe[0],2);var _e=j(_,pe[0]),xe=Ae.asn1.ASN1Util.oidHexToInt(_e);return Ae.asn1.x509.OID.oid2atype(xe)+"="+hs(j(_,pe[1]))},Mr.getPublicKeyFromCertHex=function(_){var D=new Mr;return D.readCertHex(_),D.getPublicKey()},Mr.getPublicKeyFromCertPEM=function(_){var D=new Mr;return D.readCertPEM(_),D.getPublicKey()},Mr.getPublicKeyInfoPropOfCertPEM=function(_){var pe,_e,I=zi.getVbyList,j={algparam:null};return(pe=new Mr).readCertPEM(_),_e=pe.getPublicKeyHex(),j.keyhex=I(_e,0,[1],"03").substr(2),j.algoid=I(_e,0,[0,0],"06"),"2a8648ce3d0201"===j.algoid&&(j.algparam=I(_e,0,[0,1],"06")),j},Mr.KEYUSAGE_NAME=["digitalSignature","nonRepudiation","keyEncipherment","dataEncipherment","keyAgreement","keyCertSign","cRLSign","encipherOnly","decipherOnly"],(typeof Ae>"u"||!Ae)&&(Ae={}),(typeof Ae.jws>"u"||!Ae.jws)&&(Ae.jws={}),Ae.jws.JWS=function(){var I=Ae.jws.JWS.isSafeJSONString;this.parseJWS=function(j,pe){if(void 0===this.parsedJWS||!pe&&void 0===this.parsedJWS.sigvalH){var _e=j.match(/^([^.]+)\.([^.]+)\.([^.]+)$/);if(null==_e)throw"JWS signature is not a form of 'Head.Payload.SigValue'.";var xe=_e[1],He=_e[2],ht=_e[3],yt=xe+"."+He;if(this.parsedJWS={},this.parsedJWS.headB64U=xe,this.parsedJWS.payloadB64U=He,this.parsedJWS.sigvalB64U=ht,this.parsedJWS.si=yt,!pe){var Gt=Mt(ht),$t=So(Gt,16);this.parsedJWS.sigvalH=Gt,this.parsedJWS.sigvalBI=$t}var st=qn(xe),tt=qn(He);if(this.parsedJWS.headS=st,this.parsedJWS.payloadS=tt,!I(st,this.parsedJWS,"headP"))throw"malformed JSON string for JWS Head: "+st}}},Ae.jws.JWS.sign=function(_,D,I,j,pe){var Ye,kt,It,He=Ae.jws.JWS,ht=He.readSafeJSONString,yt=He.isSafeJSONString,Gt=Ae.crypto,st=Gt.Mac,tt=Gt.Signature,Tt=JSON;if("string"!=typeof D&&"object"!=typeof D)throw"spHeader must be JSON string or object: "+D;if("object"==typeof D&&(Ye=Tt.stringify(kt=D)),"string"==typeof D){if(!yt(Ye=D))throw"JWS Head is not safe JSON string: "+Ye;kt=ht(Ye)}if(It=I,"object"==typeof I&&(It=Tt.stringify(I)),(""==_||null==_)&&void 0!==kt.alg&&(_=kt.alg),""!=_&&null!=_&&void 0===kt.alg&&(kt.alg=_,Ye=Tt.stringify(kt)),_!==kt.alg)throw"alg and sHeader.alg doesn't match: "+_+"!="+kt.alg;var un=null;if(void 0===He.jwsalg2sigalg[_])throw"unsupported alg name: "+_;un=He.jwsalg2sigalg[_];var Nn=Dn(Ye)+"."+Dn(It),ri="";if("Hmac"==un.substr(0,4)){if(void 0===j)throw"mac key shall be specified for HS* alg";var ui=new st({alg:un,prov:"cryptojs",pass:j});ui.updateString(Nn),ri=ui.doFinal()}else if(-1!=un.indexOf("withECDSA")){(ne=new tt({alg:un})).init(j,pe),ne.updateString(Nn);var Ie=ne.sign();ri=Ae.crypto.ECDSA.asn1SigToConcatSig(Ie)}else if("none"!=un){var ne;(ne=new tt({alg:un})).init(j,pe),ne.updateString(Nn),ri=ne.sign()}return Nn+"."+Dt(ri)},Ae.jws.JWS.verify=function(_,D,I){var $t,_e=Ae.jws.JWS,xe=_e.readSafeJSONString,He=Ae.crypto,ht=He.ECDSA,yt=He.Mac,Gt=He.Signature;if($t=Rr,!oo(_))return!1;var st=_.split(".");if(3!==st.length)return!1;var xn,Ye=st[0]+"."+st[1],kt=Mt(st[2]),It=xe(qn(st[0])),un=null;if(void 0===It.alg)throw"algorithm not specified in header";if(xn=(un=It.alg).substr(0,2),null!=I&&"[object Array]"===Object.prototype.toString.call(I)&&I.length>0&&-1==(":"+I.join(":")+":").indexOf(":"+un+":"))throw"algorithm '"+un+"' not accepted in the list";if("none"!=un&&null===D)throw"key shall be specified to verify.";if("string"==typeof D&&-1!=D.indexOf("-----BEGIN ")&&(D=br.getKey(D)),!("RS"!=xn&&"PS"!=xn||D instanceof $t))throw"key shall be a RSAKey obj for RS* and PS* algs";if("ES"==xn&&!(D instanceof ht))throw"key shall be a ECDSA obj for ES* algs";var Nn=null;if(void 0===_e.jwsalg2sigalg[It.alg])throw"unsupported alg name: "+un;if("none"==(Nn=_e.jwsalg2sigalg[un]))throw"not supported";if("Hmac"==Nn.substr(0,4)){if(void 0===D)throw"hexadecimal key shall be specified for HMAC";var ui=new yt({alg:Nn,pass:D});return ui.updateString(Ye),kt==ui.doFinal()}if(-1!=Nn.indexOf("withECDSA")){var Ie,ne=null;try{ne=ht.concatSigToASN1Sig(kt)}catch{return!1}return(Ie=new Gt({alg:Nn})).init(D),Ie.updateString(Ye),Ie.verify(ne)}return(Ie=new Gt({alg:Nn})).init(D),Ie.updateString(Ye),Ie.verify(kt)},Ae.jws.JWS.parse=function(_){var pe,_e,D=_.split("."),I={};if(2!=D.length&&3!=D.length)throw"malformed sJWS: wrong number of '.' splitted elements";return pe=D[1],3==D.length&&(_e=D[2]),I.headerObj=Ae.jws.JWS.readSafeJSONString(qn(D[0])),I.payloadObj=Ae.jws.JWS.readSafeJSONString(qn(pe)),I.headerPP=JSON.stringify(I.headerObj,null," "),I.payloadPP=null==I.payloadObj?qn(pe):JSON.stringify(I.payloadObj,null," "),void 0!==_e&&(I.sigHex=Mt(_e)),I},Ae.jws.JWS.verifyJWT=function(_,D,I){var pe=Ae.jws,_e=pe.JWS,xe=_e.readSafeJSONString,He=_e.inArray,ht=_e.includedArray;if(!oo(_))return!1;var yt=_.split(".");if(3!=yt.length)return!1;var Gt=yt[0],$t=yt[1],Tt=(Mt(yt[2]),xe(qn(Gt))),Ye=xe(qn($t));if(void 0===Tt.alg)return!1;if(void 0===I.alg)throw"acceptField.alg shall be specified";if(!He(Tt.alg,I.alg)||void 0!==Ye.iss&&"object"==typeof I.iss&&!He(Ye.iss,I.iss)||void 0!==Ye.sub&&"object"==typeof I.sub&&!He(Ye.sub,I.sub))return!1;if(void 0!==Ye.aud&&"object"==typeof I.aud)if("string"==typeof Ye.aud){if(!He(Ye.aud,I.aud))return!1}else if("object"==typeof Ye.aud&&!ht(Ye.aud,I.aud))return!1;var kt=pe.IntDate.getNow();return void 0!==I.verifyAt&&"number"==typeof I.verifyAt&&(kt=I.verifyAt),(void 0===I.gracePeriod||"number"!=typeof I.gracePeriod)&&(I.gracePeriod=0),!(void 0!==Ye.exp&&"number"==typeof Ye.exp&&Ye.exp+I.gracePeriod<kt||void 0!==Ye.nbf&&"number"==typeof Ye.nbf&&kt<Ye.nbf-I.gracePeriod||void 0!==Ye.iat&&"number"==typeof Ye.iat&&kt<Ye.iat-I.gracePeriod||void 0!==Ye.jti&&void 0!==I.jti&&Ye.jti!==I.jti||!_e.verify(_,D,I.alg))},Ae.jws.JWS.includedArray=function(_,D){var I=Ae.jws.JWS.inArray;if(null===_||"object"!=typeof _||"number"!=typeof _.length)return!1;for(var j=0;j<_.length;j++)if(!I(_[j],D))return!1;return!0},Ae.jws.JWS.inArray=function(_,D){if(null===D||"object"!=typeof D||"number"!=typeof D.length)return!1;for(var I=0;I<D.length;I++)if(D[I]==_)return!0;return!1},Ae.jws.JWS.jwsalg2sigalg={HS256:"HmacSHA256",HS384:"HmacSHA384",HS512:"HmacSHA512",RS256:"SHA256withRSA",RS384:"SHA384withRSA",RS512:"SHA512withRSA",ES256:"SHA256withECDSA",ES384:"SHA384withECDSA",ES512:"SHA512withECDSA",PS256:"SHA256withRSAandMGF1",PS384:"SHA384withRSAandMGF1",PS512:"SHA512withRSAandMGF1",none:"none"},Ae.jws.JWS.isSafeJSONString=function(_,D,I){var j=null;try{return"object"!=typeof(j=_a(_))||j.constructor===Array?0:(D&&(D[I]=j),1)}catch{return 0}},Ae.jws.JWS.readSafeJSONString=function(_){var D=null;try{return"object"!=typeof(D=_a(_))||D.constructor===Array?null:D}catch{return null}},Ae.jws.JWS.getEncodedSignatureValueFromJWS=function(_){var D=_.match(/^[^.]+\.[^.]+\.([^.]+)$/);if(null==D)throw"JWS signature is not a form of 'Head.Payload.SigValue'.";return D[1]},Ae.jws.JWS.getJWKthumbprint=function(_){if("RSA"!==_.kty&&"EC"!==_.kty&&"oct"!==_.kty)throw"unsupported algorithm for JWK Thumprint";var D="{";if("RSA"===_.kty){if("string"!=typeof _.n||"string"!=typeof _.e)throw"wrong n and e value for RSA key";D+='"e":"'+_.e+'",',D+='"kty":"'+_.kty+'",',D+='"n":"'+_.n+'"}'}else if("EC"===_.kty){if("string"!=typeof _.crv||"string"!=typeof _.x||"string"!=typeof _.y)throw"wrong crv, x and y value for EC key";D+='"crv":"'+_.crv+'",',D+='"kty":"'+_.kty+'",',D+='"x":"'+_.x+'",',D+='"y":"'+_.y+'"}'}else if("oct"===_.kty){if("string"!=typeof _.k)throw"wrong k value for oct(symmetric) key";D+='"kty":"'+_.kty+'",',D+='"k":"'+_.k+'"}'}var I=Is(D);return Dt(Ae.crypto.Util.hashHex(I,"sha256"))},Ae.jws.IntDate={},Ae.jws.IntDate.get=function(_){var D=Ae.jws.IntDate,I=D.getNow,j=D.getZulu;if("now"==_)return I();if("now + 1hour"==_)return I()+3600;if("now + 1day"==_)return I()+86400;if("now + 1month"==_)return I()+2592e3;if("now + 1year"==_)return I()+31536e3;if(_.match(/Z$/))return j(_);if(_.match(/^[0-9]+$/))return parseInt(_);throw"unsupported format: "+_},Ae.jws.IntDate.getZulu=function(_){return Or(_)},Ae.jws.IntDate.getNow=function(){return~~(new Date/1e3)},Ae.jws.IntDate.intDate2UTCString=function(_){return new Date(1e3*_).toUTCString()},Ae.jws.IntDate.intDate2Zulu=function(_){var D=new Date(1e3*_);return("0000"+D.getUTCFullYear()).slice(-4)+("00"+(D.getUTCMonth()+1)).slice(-2)+("00"+D.getUTCDate()).slice(-2)+("00"+D.getUTCHours()).slice(-2)+("00"+D.getUTCMinutes()).slice(-2)+("00"+D.getUTCSeconds()).slice(-2)+"Z"},(typeof Ae>"u"||!Ae)&&(Ae={}),(typeof Ae.jws>"u"||!Ae.jws)&&(Ae.jws={}),Ae.jws.JWSJS=function(){var I=Ae.jws.JWS,j=I.readSafeJSONString;this.aHeader=[],this.sPayload="",this.aSignature=[],this.init=function(){this.aHeader=[],this.sPayload=void 0,this.aSignature=[]},this.initWithJWS=function(pe){this.init();var _e=pe.split(".");if(3!=_e.length)throw"malformed input JWS";this.aHeader.push(_e[0]),this.sPayload=_e[1],this.aSignature.push(_e[2])},this.addSignature=function(pe,_e,xe,He){if(null==this.sPayload)throw"there's no JSON-JS signature to add.";var ht=this.aHeader.length;if(this.aHeader.length!=this.aSignature.length)throw"aHeader.length != aSignature.length";try{var Gt=Ae.jws.JWS.sign(pe,_e,this.sPayload,xe,He).split(".");this.aHeader.push(Gt[0]),this.aSignature.push(Gt[2])}catch(tt){throw this.aHeader.length>ht&&this.aHeader.pop(),this.aSignature.length>ht&&this.aSignature.pop(),"addSignature failed: "+tt}},this.verifyAll=function(pe){if(this.aHeader.length!==pe.length||this.aSignature.length!==pe.length)return!1;for(var _e=0;_e<pe.length;_e++){var xe=pe[_e];if(2!==xe.length)return!1;if(!1===this.verifyNth(_e,xe[0],xe[1]))return!1}return!0},this.verifyNth=function(pe,_e,xe){if(this.aHeader.length<=pe||this.aSignature.length<=pe)return!1;var yt=this.aHeader[pe]+"."+this.sPayload+"."+this.aSignature[pe],Gt=!1;try{Gt=I.verify(yt,_e,xe)}catch{return!1}return Gt},this.readJWSJS=function(pe){if("string"==typeof pe){var _e=j(pe);if(null==_e)throw"argument is not safe JSON object string";this.aHeader=_e.headers,this.sPayload=_e.payload,this.aSignature=_e.signatures}else try{if(!(pe.headers.length>0))throw"malformed header";if(this.aHeader=pe.headers,"string"!=typeof pe.payload)throw"malformed signatures";if(this.sPayload=pe.payload,!(pe.signatures.length>0))throw"malformed signatures";this.aSignature=pe.signatures}catch(xe){throw"malformed JWS-JS JSON object: "+xe}},this.getJSON=function(){return{headers:this.aHeader,payload:this.sPayload,signatures:this.aSignature}},this.isEmpty=function(){return 0==this.aHeader.length?1:0}},z.hT=Ae.jws},26875:function(St,z,s){var i;St=s.nmd(St),function(){var n,M="Expected a function",x="__lodash_hash_undefined__",g="__lodash_placeholder__",Y=32,G=128,Qe=1/0,ct=9007199254740991,Je=4294967295,Ve=[["ary",G],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",Y],["partialRight",64],["rearg",256]],$e="[object Arguments]",dt="[object Array]",J="[object Boolean]",vt="[object Date]",ue="[object Error]",et="[object Function]",se="[object GeneratorFunction]",Ce="[object Map]",be="[object Number]",me="[object Object]",le="[object Promise]",Se="[object RegExp]",fe="[object Set]",Ne="[object String]",ye="[object Symbol]",sn="[object WeakMap]",yn="[object ArrayBuffer]",At="[object DataView]",Vt="[object Float32Array]",Qt="[object Float64Array]",Jt="[object Int8Array]",Zt="[object Int16Array]",nn="[object Int32Array]",Xt="[object Uint8Array]",lt="[object Uint8ClampedArray]",Ue="[object Uint16Array]",wt="[object Uint32Array]",gt=/\b__p \+= '';/g,Ht=/\b(__p \+=) '' \+/g,bn=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ut=/&(?:amp|lt|gt|quot|#39);/g,Bt=/[&<>"']/g,Le=RegExp(Ut.source),V=RegExp(Bt.source),de=/<%-([\s\S]+?)%>/g,ge=/<%([\s\S]+?)%>/g,Ft=/<%=([\s\S]+?)%>/g,Wt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Kt=/^\w*$/,cn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,En=/[\\^$.*+?()[\]{}|]/g,kn=RegExp(En.source),Ai=/^\s+/,Gi=/\s/,bt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Zi=/\{\n\/\* \[wrapped with (.+)\] \*/,Rn=/,? & /,Gn=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Kn=/[()=,{}\[\]\/\s]/,Ni=/\\(\\)?/g,ir=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ir=/\w*$/,hr=/^[-+]0x[0-9a-f]+$/i,Ms=/^0b[01]+$/i,Pr=/^\[object .+?Constructor\]$/,lo=/^0o[0-7]+$/i,js=/^(?:0|[1-9]\d*)$/,Vn=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ei=/($^)/,ai=/['\n\r\u2028\u2029\\]/g,Li="\\ud800-\\udfff",Zn="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",fi="\\u2700-\\u27bf",yi="a-z\\xdf-\\xf6\\xf8-\\xff",ds="A-Z\\xc0-\\xd6\\xd8-\\xde",bs="\\ufe0e\\ufe0f",An="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Jn="["+Li+"]",di="["+An+"]",Oi="["+Zn+"]",Wi="\\d+",mr="["+fi+"]",qr="["+yi+"]",ms="[^"+Li+An+Wi+fi+yi+ds+"]",us="\\ud83c[\\udffb-\\udfff]",ks="[^"+Li+"]",Ar="(?:\\ud83c[\\udde6-\\uddff]){2}",Ur="[\\ud800-\\udbff][\\udc00-\\udfff]",vs="["+ds+"]",Zo="(?:"+qr+"|"+ms+")",vo="(?:"+vs+"|"+ms+")",Pa="(?:['\u2019](?:d|ll|m|re|s|t|ve))?",fa="(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",fs="(?:"+Oi+"|"+us+")?",Io="["+bs+"]?",ta=Io+fs+"(?:\\u200d(?:"+[ks,Ar,Ur].join("|")+")"+Io+fs+")*",Go="(?:"+[mr,Ar,Ur].join("|")+")"+ta,Mo="(?:"+[ks+Oi+"?",Oi,Ar,Ur,Jn].join("|")+")",As=RegExp("['\u2019]","g"),Uo=RegExp(Oi,"g"),Rr=RegExp(us+"(?="+us+")|"+Mo+ta,"g"),pa=RegExp([vs+"?"+qr+"+"+Pa+"(?="+[di,vs,"$"].join("|")+")",vo+"+"+fa+"(?="+[di,vs+Zo,"$"].join("|")+")",vs+"?"+Zo+"+"+Pa,vs+"+"+fa,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Wi,Go].join("|"),"g"),nl=RegExp("[\\u200d"+Li+Zn+bs+"]"),Ha=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,bo=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Xa=-1,Es={};Es[Vt]=Es[Qt]=Es[Jt]=Es[Zt]=Es[nn]=Es[Xt]=Es[lt]=Es[Ue]=Es[wt]=!0,Es[$e]=Es[dt]=Es[yn]=Es[J]=Es[At]=Es[vt]=Es[ue]=Es[et]=Es[Ce]=Es[be]=Es[me]=Es[Se]=Es[fe]=Es[Ne]=Es[sn]=!1;var eo={};eo[$e]=eo[dt]=eo[yn]=eo[At]=eo[J]=eo[vt]=eo[Vt]=eo[Qt]=eo[Jt]=eo[Zt]=eo[nn]=eo[Ce]=eo[be]=eo[me]=eo[Se]=eo[fe]=eo[Ne]=eo[ye]=eo[Xt]=eo[lt]=eo[Ue]=eo[wt]=!0,eo[ue]=eo[et]=eo[sn]=!1;var la={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},wo=parseFloat,na=parseInt,Ro="object"==typeof global&&global&&global.Object===Object&&global,ja="object"==typeof self&&self&&self.Object===Object&&self,Eo=Ro||ja||Function("return this")(),Ho=z&&!z.nodeType&&z,no=Ho&&St&&!St.nodeType&&St,Fs=no&&no.exports===Ho,Co=Fs&&Ro.process,so=function(){try{return no&&no.require&&no.require("util").types||Co&&Co.binding&&Co.binding("util")}catch{}}(),_o=so&&so.isArrayBuffer,La=so&&so.isDate,Ko=so&&so.isMap,Jo=so&&so.isRegExp,ka=so&&so.isSet,il=so&&so.isTypedArray;function co(li,Ii,Pi){switch(Pi.length){case 0:return li.call(Ii);case 1:return li.call(Ii,Pi[0]);case 2:return li.call(Ii,Pi[0],Pi[1]);case 3:return li.call(Ii,Pi[0],Pi[1],Pi[2])}return li.apply(Ii,Pi)}function po(li,Ii,Pi,Dr){for(var ns=-1,ws=null==li?0:li.length;++ns<ws;){var oo=li[ns];Ii(Dr,oo,Pi(oo),li)}return Dr}function $s(li,Ii){for(var Pi=-1,Dr=null==li?0:li.length;++Pi<Dr&&!1!==Ii(li[Pi],Pi,li););return li}function Sn(li,Ii){for(var Pi=null==li?0:li.length;Pi--&&!1!==Ii(li[Pi],Pi,li););return li}function ba(li,Ii){for(var Pi=-1,Dr=null==li?0:li.length;++Pi<Dr;)if(!Ii(li[Pi],Pi,li))return!1;return!0}function uo(li,Ii){for(var Pi=-1,Dr=null==li?0:li.length,ns=0,ws=[];++Pi<Dr;){var oo=li[Pi];Ii(oo,Pi,li)&&(ws[ns++]=oo)}return ws}function $o(li,Ii){return!(null==li||!li.length)&&ca(li,Ii,0)>-1}function aa(li,Ii,Pi){for(var Dr=-1,ns=null==li?0:li.length;++Dr<ns;)if(Pi(Ii,li[Dr]))return!0;return!1}function Xs(li,Ii){for(var Pi=-1,Dr=null==li?0:li.length,ns=Array(Dr);++Pi<Dr;)ns[Pi]=Ii(li[Pi],Pi,li);return ns}function _a(li,Ii){for(var Pi=-1,Dr=Ii.length,ns=li.length;++Pi<Dr;)li[ns+Pi]=Ii[Pi];return li}function zi(li,Ii,Pi,Dr){var ns=-1,ws=null==li?0:li.length;for(Dr&&ws&&(Pi=li[++ns]);++ns<ws;)Pi=Ii(Pi,li[ns],ns,li);return Pi}function Ae(li,Ii,Pi,Dr){var ns=null==li?0:li.length;for(Dr&&ns&&(Pi=li[--ns]);ns--;)Pi=Ii(Pi,li[ns],ns,li);return Pi}function jo(li,Ii){for(var Pi=-1,Dr=null==li?0:li.length;++Pi<Dr;)if(Ii(li[Pi],Pi,li))return!0;return!1}var fl=Dt("length");function Ao(li,Ii,Pi){var Dr;return Pi(li,function(ns,ws,oo){if(Ii(ns,ws,oo))return Dr=ws,!1}),Dr}function ps(li,Ii,Pi,Dr){for(var ns=li.length,ws=Pi+(Dr?1:-1);Dr?ws--:++ws<ns;)if(Ii(li[ws],ws,li))return ws;return-1}function ca(li,Ii,Pi){return Ii==Ii?function Or(li,Ii,Pi){for(var Dr=Pi-1,ns=li.length;++Dr<ns;)if(li[Dr]===Ii)return Dr;return-1}(li,Ii,Pi):ps(li,ga,Pi)}function al(li,Ii,Pi,Dr){for(var ns=Pi-1,ws=li.length;++ns<ws;)if(Dr(li[ns],Ii))return ns;return-1}function ga(li){return li!=li}function on(li,Ii){var Pi=null==li?0:li.length;return Pi?Yr(li,Ii)/Pi:NaN}function Dt(li){return function(Ii){return null==Ii?n:Ii[li]}}function Mt(li){return function(Ii){return null==li?n:li[Ii]}}function Dn(li,Ii,Pi,Dr,ns){return ns(li,function(ws,oo,ao){Pi=Dr?(Dr=!1,ws):Ii(Pi,ws,oo,ao)}),Pi}function Yr(li,Ii){for(var Pi,Dr=-1,ns=li.length;++Dr<ns;){var ws=Ii(li[Dr]);ws!==n&&(Pi=Pi===n?ws:Pi+ws)}return Pi}function _s(li,Ii){for(var Pi=-1,Dr=Array(li);++Pi<li;)Dr[Pi]=Ii(Pi);return Dr}function Ws(li){return li&&li.slice(0,Us(li)+1).replace(Ai,"")}function Bi(li){return function(Ii){return li(Ii)}}function Di(li,Ii){return Xs(Ii,function(Pi){return li[Pi]})}function Ea(li,Ii){return li.has(Ii)}function vl(li,Ii){for(var Pi=-1,Dr=li.length;++Pi<Dr&&ca(Ii,li[Pi],0)>-1;);return Pi}function hs(li,Ii){for(var Pi=li.length;Pi--&&ca(Ii,li[Pi],0)>-1;);return Pi}var da=Mt({\u00c0:"A",\u00c1:"A",\u00c2:"A",\u00c3:"A",\u00c4:"A",\u00c5:"A",\u00e0:"a",\u00e1:"a",\u00e2:"a",\u00e3:"a",\u00e4:"a",\u00e5:"a",\u00c7:"C",\u00e7:"c",\u00d0:"D",\u00f0:"d",\u00c8:"E",\u00c9:"E",\u00ca:"E",\u00cb:"E",\u00e8:"e",\u00e9:"e",\u00ea:"e",\u00eb:"e",\u00cc:"I",\u00cd:"I",\u00ce:"I",\u00cf:"I",\u00ec:"i",\u00ed:"i",\u00ee:"i",\u00ef:"i",\u00d1:"N",\u00f1:"n",\u00d2:"O",\u00d3:"O",\u00d4:"O",\u00d5:"O",\u00d6:"O",\u00d8:"O",\u00f2:"o",\u00f3:"o",\u00f4:"o",\u00f5:"o",\u00f6:"o",\u00f8:"o",\u00d9:"U",\u00da:"U",\u00db:"U",\u00dc:"U",\u00f9:"u",\u00fa:"u",\u00fb:"u",\u00fc:"u",\u00dd:"Y",\u00fd:"y",\u00ff:"y",\u00c6:"Ae",\u00e6:"ae",\u00de:"Th",\u00fe:"th",\u00df:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010a:"C",\u010c:"C",\u0107:"c",\u0109:"c",\u010b:"c",\u010d:"c",\u010e:"D",\u0110:"D",\u010f:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011a:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011b:"e",\u011c:"G",\u011e:"G",\u0120:"G",\u0122:"G",\u011d:"g",\u011f:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012a:"I",\u012c:"I",\u012e:"I",\u0130:"I",\u0129:"i",\u012b:"i",\u012d:"i",\u012f:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013b:"L",\u013d:"L",\u013f:"L",\u0141:"L",\u013a:"l",\u013c:"l",\u013e:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014a:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014b:"n",\u014c:"O",\u014e:"O",\u0150:"O",\u014d:"o",\u014f:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015a:"S",\u015c:"S",\u015e:"S",\u0160:"S",\u015b:"s",\u015d:"s",\u015f:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016a:"U",\u016c:"U",\u016e:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016b:"u",\u016d:"u",\u016f:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017b:"Z",\u017d:"Z",\u017a:"z",\u017c:"z",\u017e:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017f:"s"}),jr=Mt({"&":"&","<":"<",">":">",'"':""","'":"'"});function ia(li){return"\\"+la[li]}function ra(li){return nl.test(li)}function Yt(li){var Ii=-1,Pi=Array(li.size);return li.forEach(function(Dr,ns){Pi[++Ii]=[ns,Dr]}),Pi}function Un(li,Ii){return function(Pi){return li(Ii(Pi))}}function ii(li,Ii){for(var Pi=-1,Dr=li.length,ns=0,ws=[];++Pi<Dr;){var oo=li[Pi];(oo===Ii||oo===g)&&(li[Pi]=g,ws[ns++]=Pi)}return ws}function Hi(li){var Ii=-1,Pi=Array(li.size);return li.forEach(function(Dr){Pi[++Ii]=Dr}),Pi}function Zs(li){return ra(li)?function Ma(li){for(var Ii=Rr.lastIndex=0;Rr.test(li);)++Ii;return Ii}(li):fl(li)}function wr(li){return ra(li)?function Ya(li){return li.match(Rr)||[]}(li):function Wa(li){return li.split("")}(li)}function Us(li){for(var Ii=li.length;Ii--&&Gi.test(li.charAt(Ii)););return Ii}var Vs=Mt({"&":"&","<":"<",">":">",""":'"',"'":"'"}),Bo=function li(Ii){var L,Pi=(Ii=null==Ii?Eo:Bo.defaults(Eo.Object(),Ii,Bo.pick(Eo,bo))).Array,Dr=Ii.Date,ns=Ii.Error,ws=Ii.Function,oo=Ii.Math,ao=Ii.Object,Da=Ii.RegExp,Sl=Ii.String,Vr=Ii.TypeError,Ca=Pi.prototype,sa=ao.prototype,rl=Ii["__core-js_shared__"],ll=ws.prototype.toString,Os=sa.hasOwnProperty,lr=0,zs=(L=/[^.]+$/.exec(rl&&rl.keys&&rl.keys.IE_PROTO||""))?"Symbol(src)_1."+L:"",xa=sa.toString,ho=ll.call(ao),Vi=Eo._,br=Da("^"+ll.call(Os).replace(En,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ya=Fs?Ii.Buffer:n,rs=Ii.Symbol,cl=Ii.Uint8Array,Ta=ya?ya.allocUnsafe:n,pl=Un(ao.getPrototypeOf,ao),io=ao.create,Fa=sa.propertyIsEnumerable,Mr=Ca.splice,Ze=rs?rs.isConcatSpreadable:n,_=rs?rs.iterator:n,D=rs?rs.toStringTag:n,I=function(){try{var L=ic(ao,"defineProperty");return L({},"",{}),L}catch{}}(),j=Ii.clearTimeout!==Eo.clearTimeout&&Ii.clearTimeout,pe=Dr&&Dr.now!==Eo.Date.now&&Dr.now,_e=Ii.setTimeout!==Eo.setTimeout&&Ii.setTimeout,xe=oo.ceil,He=oo.floor,ht=ao.getOwnPropertySymbols,yt=ya?ya.isBuffer:n,Gt=Ii.isFinite,$t=Ca.join,st=Un(ao.keys,ao),tt=oo.max,Tt=oo.min,Ye=Dr.now,kt=Ii.parseInt,It=oo.random,un=Ca.reverse,xn=ic(Ii,"DataView"),In=ic(Ii,"Map"),Nn=ic(Ii,"Promise"),ri=ic(Ii,"Set"),ui=ic(Ii,"WeakMap"),ne=ic(ao,"create"),Ie=ui&&new ui,_t={},Nt=fd(xn),en=fd(In),vn=fd(Nn),fn=fd(ri),Cn=fd(ui),Tn=rs?rs.prototype:n,Wn=Tn?Tn.valueOf:n,gi=Tn?Tn.toString:n;function ln(L){if(Dl(L)&&!ko(L)&&!(L instanceof pr)){if(L instanceof Ki)return L;if(Os.call(L,"__wrapped__"))return Wc(L)}return new Ki(L)}var ki=function(){function L(){}return function($){if(!Ml($))return{};if(io)return io($);L.prototype=$;var ke=new L;return L.prototype=n,ke}}();function rr(){}function Ki(L,$){this.__wrapped__=L,this.__actions__=[],this.__chain__=!!$,this.__index__=0,this.__values__=n}function pr(L){this.__wrapped__=L,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Je,this.__views__=[]}function vr(L){var $=-1,ke=null==L?0:L.length;for(this.clear();++$<ke;){var Lt=L[$];this.set(Lt[0],Lt[1])}}function Qr(L){var $=-1,ke=null==L?0:L.length;for(this.clear();++$<ke;){var Lt=L[$];this.set(Lt[0],Lt[1])}}function Er(L){var $=-1,ke=null==L?0:L.length;for(this.clear();++$<ke;){var Lt=L[$];this.set(Lt[0],Lt[1])}}function jt(L){var $=-1,ke=null==L?0:L.length;for(this.__data__=new Er;++$<ke;)this.add(L[$])}function mi(L){var $=this.__data__=new Qr(L);this.size=$.size}function rn(L,$){var ke=ko(L),Lt=!ke&&Iu(L),_n=!ke&&!Lt&&iu(L),Fn=!ke&&!Lt&&!_n&&oh(L),ni=ke||Lt||_n||Fn,ci=ni?_s(L.length,Sl):[],Mi=ci.length;for(var or in L)($||Os.call(L,or))&&(!ni||!("length"==or||_n&&("offset"==or||"parent"==or)||Fn&&("buffer"==or||"byteLength"==or||"byteOffset"==or)||Ec(or,Mi)))&&ci.push(or);return ci}function an(L){var $=L.length;return $?L[to(0,$-1)]:n}function Hn(L,$){return _u(Ia(L),Aa($,0,L.length))}function xi(L){return _u(Ia(L))}function yr(L,$,ke){(ke!==n&&!Ll(L[$],ke)||ke===n&&!($ in L))&&Ps(L,$,ke)}function ts(L,$,ke){var Lt=L[$];(!Os.call(L,$)||!Ll(Lt,ke)||ke===n&&!($ in L))&&Ps(L,$,ke)}function gr(L,$){for(var ke=L.length;ke--;)if(Ll(L[ke][0],$))return ke;return-1}function Cr(L,$,ke,Lt){return dl(L,function(_n,Fn,ni){$(Lt,_n,ke(_n),ni)}),Lt}function os(L,$){return L&&nc($,Jl($),L)}function Ps(L,$,ke){"__proto__"==$&&I?I(L,$,{configurable:!0,enumerable:!0,value:ke,writable:!0}):L[$]=ke}function sl(L,$){for(var ke=-1,Lt=$.length,_n=Pi(Lt),Fn=null==L;++ke<Lt;)_n[ke]=Fn?n:Sg(L,$[ke]);return _n}function Aa(L,$,ke){return L==L&&(ke!==n&&(L=L<=ke?L:ke),$!==n&&(L=L>=$?L:$)),L}function ma(L,$,ke,Lt,_n,Fn){var ni,ci=1&$,Mi=2&$,or=4&$;if(ke&&(ni=_n?ke(L,Lt,_n,Fn):ke(L)),ni!==n)return ni;if(!Ml(L))return L;var sr=ko(L);if(sr){if(ni=function qd(L){var $=L.length,ke=new L.constructor($);return $&&"string"==typeof L[0]&&Os.call(L,"index")&&(ke.index=L.index,ke.input=L.input),ke}(L),!ci)return Ia(L,ni)}else{var fr=ol(L),is=fr==et||fr==se;if(iu(L))return Uc(L,ci);if(fr==me||fr==$e||is&&!_n){if(ni=Mi||is?{}:kd(L),!ci)return Mi?function Hu(L,$){return nc(L,qc(L),$)}(L,function Xo(L,$){return L&&nc($,Pc($),L)}(ni,L)):function xd(L,$){return nc(L,mc(L),$)}(L,os(ni,L))}else{if(!eo[fr])return _n?L:{};ni=function eu(L,$,ke){var Lt=L.constructor;switch($){case yn:return Vl(L);case J:case vt:return new Lt(+L);case At:return function Bc(L,$){var ke=$?Vl(L.buffer):L.buffer;return new L.constructor(ke,L.byteOffset,L.byteLength)}(L,ke);case Vt:case Qt:case Jt:case Zt:case nn:case Xt:case lt:case Ue:case wt:return Oa(L,ke);case Ce:return new Lt;case be:case Ne:return new Lt(L);case Se:return function Xd(L){var $=new L.constructor(L.source,Ir.exec(L));return $.lastIndex=L.lastIndex,$}(L);case fe:return new Lt;case ye:return function hl(L){return Wn?ao(Wn.call(L)):{}}(L)}}(L,fr,ci)}}Fn||(Fn=new mi);var Ls=Fn.get(L);if(Ls)return Ls;Fn.set(L,ni),Xf(L)?L.forEach(function(Bs){ni.add(ma(Bs,$,ke,Bs,L,Fn))}):lf(L)&&L.forEach(function(Bs,Qo){ni.set(Qo,ma(Bs,$,ke,Qo,L,Fn))});var zo=sr?n:(or?Mi?Jd:uu:Mi?Pc:Jl)(L);return $s(zo||L,function(Bs,Qo){zo&&(Bs=L[Qo=Bs]),ts(ni,Qo,ma(Bs,$,ke,Qo,L,Fn))}),ni}function Qc(L,$,ke){var Lt=ke.length;if(null==L)return!Lt;for(L=ao(L);Lt--;){var _n=ke[Lt],ni=L[_n];if(ni===n&&!(_n in L)||!(0,$[_n])(ni))return!1}return!0}function sd(L,$,ke){if("function"!=typeof L)throw new Vr(M);return Bd(function(){L.apply(n,ke)},$)}function Ic(L,$,ke,Lt){var _n=-1,Fn=$o,ni=!0,ci=L.length,Mi=[],or=$.length;if(!ci)return Mi;ke&&($=Xs($,Bi(ke))),Lt?(Fn=aa,ni=!1):$.length>=200&&(Fn=Ea,ni=!1,$=new jt($));e:for(;++_n<ci;){var sr=L[_n],fr=null==ke?sr:ke(sr);if(sr=Lt||0!==sr?sr:0,ni&&fr==fr){for(var is=or;is--;)if($[is]===fr)continue e;Mi.push(sr)}else Fn($,fr,Lt)||Mi.push(sr)}return Mi}ln.templateSettings={escape:de,evaluate:ge,interpolate:Ft,variable:"",imports:{_:ln}},(ln.prototype=rr.prototype).constructor=ln,(Ki.prototype=ki(rr.prototype)).constructor=Ki,(pr.prototype=ki(rr.prototype)).constructor=pr,vr.prototype.clear=function Fi(){this.__data__=ne?ne(null):{},this.size=0},vr.prototype.delete=function kr(L){var $=this.has(L)&&delete this.__data__[L];return this.size-=$?1:0,$},vr.prototype.get=function cr(L){var $=this.__data__;if(ne){var ke=$[L];return ke===x?n:ke}return Os.call($,L)?$[L]:n},vr.prototype.has=function Kr(L){var $=this.__data__;return ne?$[L]!==n:Os.call($,L)},vr.prototype.set=function Wr(L,$){var ke=this.__data__;return this.size+=this.has(L)?0:1,ke[L]=ne&&$===n?x:$,this},Qr.prototype.clear=function Rs(){this.__data__=[],this.size=0},Qr.prototype.delete=function Hr(L){var $=this.__data__,ke=gr($,L);return!(ke<0||(ke==$.length-1?$.pop():Mr.call($,ke,1),--this.size,0))},Qr.prototype.get=function as(L){var $=this.__data__,ke=gr($,L);return ke<0?n:$[ke][1]},Qr.prototype.has=function Wo(L){return gr(this.__data__,L)>-1},Qr.prototype.set=function _i(L,$){var ke=this.__data__,Lt=gr(ke,L);return Lt<0?(++this.size,ke.push([L,$])):ke[Lt][1]=$,this},Er.prototype.clear=function Ui(){this.size=0,this.__data__={hash:new vr,map:new(In||Qr),string:new vr}},Er.prototype.delete=function Te(L){var $=Ld(this,L).delete(L);return this.size-=$?1:0,$},Er.prototype.get=function ft(L){return Ld(this,L).get(L)},Er.prototype.has=function Be(L){return Ld(this,L).has(L)},Er.prototype.set=function at(L,$){var ke=Ld(this,L),Lt=ke.size;return ke.set(L,$),this.size+=ke.size==Lt?0:1,this},jt.prototype.add=jt.prototype.push=function pn(L){return this.__data__.set(L,x),this},jt.prototype.has=function Xn(L){return this.__data__.has(L)},mi.prototype.clear=function Ci(){this.__data__=new Qr,this.size=0},mi.prototype.delete=function _r(L){var $=this.__data__,ke=$.delete(L);return this.size=$.size,ke},mi.prototype.get=function ut(L){return this.__data__.get(L)},mi.prototype.has=function Pt(L){return this.__data__.has(L)},mi.prototype.set=function Re(L,$){var ke=this.__data__;if(ke instanceof Qr){var Lt=ke.__data__;if(!In||Lt.length<199)return Lt.push([L,$]),this.size=++ke.size,this;ke=this.__data__=new Er(Lt)}return ke.set(L,$),this.size=ke.size,this};var dl=Td(Zr),kl=Td(od,!0);function zl(L,$){var ke=!0;return dl(L,function(Lt,_n,Fn){return ke=!!$(Lt,_n,Fn)}),ke}function Fl(L,$,ke){for(var Lt=-1,_n=L.length;++Lt<_n;){var Fn=L[Lt],ni=$(Fn);if(null!=ni&&(ci===n?ni==ni&&!Oc(ni):ke(ni,ci)))var ci=ni,Mi=Fn}return Mi}function Kd(L,$){var ke=[];return dl(L,function(Lt,_n,Fn){$(Lt,_n,Fn)&&ke.push(Lt)}),ke}function Ys(L,$,ke,Lt,_n){var Fn=-1,ni=L.length;for(ke||(ke=Fd),_n||(_n=[]);++Fn<ni;){var ci=L[Fn];$>0&&ke(ci)?$>1?Ys(ci,$-1,ke,Lt,_n):_a(_n,ci):Lt||(_n[_n.length]=ci)}return _n}var ec=uh(),Rc=uh(!0);function Zr(L,$){return L&&ec(L,$,Jl)}function od(L,$){return L&&Rc(L,$,Jl)}function y(L,$){return uo($,function(ke){return Pd(L[ke])})}function c(L,$){for(var ke=0,Lt=($=Jr($,L)).length;null!=L&&ke<Lt;)L=L[jc($[ke++])];return ke&&ke==Lt?L:n}function p(L,$,ke){var Lt=$(L);return ko(L)?Lt:_a(Lt,ke(L))}function O(L){return null==L?L===n?"[object Undefined]":"[object Null]":D&&D in ao(L)?function yo(L){var $=Os.call(L,D),ke=L[D];try{L[D]=n;var Lt=!0}catch{}var _n=xa.call(L);return Lt&&($?L[D]=ke:delete L[D]),_n}(L):function Qu(L){return xa.call(L)}(L)}function F(L,$){return L>$}function Z(L,$){return null!=L&&Os.call(L,$)}function re(L,$){return null!=L&&$ in ao(L)}function je(L,$,ke){for(var Lt=ke?aa:$o,_n=L[0].length,Fn=L.length,ni=Fn,ci=Pi(Fn),Mi=1/0,or=[];ni--;){var sr=L[ni];ni&&$&&(sr=Xs(sr,Bi($))),Mi=Tt(sr.length,Mi),ci[ni]=!ke&&($||_n>=120&&sr.length>=120)?new jt(ni&&sr):n}sr=L[0];var fr=-1,is=ci[0];e:for(;++fr<_n&&or.length<Mi;){var Ls=sr[fr],ro=$?$(Ls):Ls;if(Ls=ke||0!==Ls?Ls:0,!(is?Ea(is,ro):Lt(or,ro,ke))){for(ni=Fn;--ni;){var zo=ci[ni];if(!(zo?Ea(zo,ro):Lt(L[ni],ro,ke)))continue e}is&&is.push(ro),or.push(Ls)}}return or}function Ct(L,$,ke){var Lt=null==(L=gu(L,$=Jr($,L)))?L:L[jc(Ba($))];return null==Lt?n:co(Lt,L,ke)}function Rt(L){return Dl(L)&&O(L)==$e}function gn(L,$,ke,Lt,_n){return L===$||(null==L||null==$||!Dl(L)&&!Dl($)?L!=L&&$!=$:function tn(L,$,ke,Lt,_n,Fn){var ni=ko(L),ci=ko($),Mi=ni?dt:ol(L),or=ci?dt:ol($),sr=(Mi=Mi==$e?me:Mi)==me,fr=(or=or==$e?me:or)==me,is=Mi==or;if(is&&iu(L)){if(!iu($))return!1;ni=!0,sr=!1}if(is&&!sr)return Fn||(Fn=new mi),ni||oh(L)?zu(L,$,ke,Lt,_n,Fn):function Rl(L,$,ke,Lt,_n,Fn,ni){switch(ke){case At:if(L.byteLength!=$.byteLength||L.byteOffset!=$.byteOffset)return!1;L=L.buffer,$=$.buffer;case yn:return!(L.byteLength!=$.byteLength||!Fn(new cl(L),new cl($)));case J:case vt:case be:return Ll(+L,+$);case ue:return L.name==$.name&&L.message==$.message;case Se:case Ne:return L==$+"";case Ce:var ci=Yt;case fe:if(ci||(ci=Hi),L.size!=$.size&&!(1&Lt))return!1;var or=ni.get(L);if(or)return or==$;Lt|=2,ni.set(L,$);var sr=zu(ci(L),ci($),Lt,_n,Fn,ni);return ni.delete(L),sr;case ye:if(Wn)return Wn.call(L)==Wn.call($)}return!1}(L,$,Mi,ke,Lt,_n,Fn);if(!(1&ke)){var Ls=sr&&Os.call(L,"__wrapped__"),ro=fr&&Os.call($,"__wrapped__");if(Ls||ro){var zo=Ls?L.value():L,Bs=ro?$.value():$;return Fn||(Fn=new mi),_n(zo,Bs,ke,Lt,Fn)}}return!!is&&(Fn||(Fn=new mi),function fh(L,$,ke,Lt,_n,Fn){var ni=1&ke,ci=uu(L),Mi=ci.length;if(Mi!=uu($).length&&!ni)return!1;for(var fr=Mi;fr--;){var is=ci[fr];if(!(ni?is in $:Os.call($,is)))return!1}var Ls=Fn.get(L),ro=Fn.get($);if(Ls&&ro)return Ls==$&&ro==L;var zo=!0;Fn.set(L,$),Fn.set($,L);for(var Bs=ni;++fr<Mi;){var Qo=L[is=ci[fr]],ha=$[is];if(Lt)var $c=ni?Lt(ha,Qo,is,$,L,Fn):Lt(Qo,ha,is,L,$,Fn);if(!($c===n?Qo===ha||_n(Qo,ha,ke,Lt,Fn):$c)){zo=!1;break}Bs||(Bs="constructor"==is)}if(zo&&!Bs){var oc=L.constructor,Dc=$.constructor;oc!=Dc&&"constructor"in L&&"constructor"in $&&!("function"==typeof oc&&oc instanceof oc&&"function"==typeof Dc&&Dc instanceof Dc)&&(zo=!1)}return Fn.delete(L),Fn.delete($),zo}(L,$,ke,Lt,_n,Fn))}(L,$,ke,Lt,gn,_n))}function Bn(L,$,ke,Lt){var _n=ke.length,Fn=_n,ni=!Lt;if(null==L)return!Fn;for(L=ao(L);_n--;){var ci=ke[_n];if(ni&&ci[2]?ci[1]!==L[ci[0]]:!(ci[0]in L))return!1}for(;++_n<Fn;){var Mi=(ci=ke[_n])[0],or=L[Mi],sr=ci[1];if(ni&&ci[2]){if(or===n&&!(Mi in L))return!1}else{var fr=new mi;if(Lt)var is=Lt(or,sr,Mi,L,$,fr);if(!(is===n?gn(sr,or,3,Lt,fr):is))return!1}}return!0}function ei(L){return!(!Ml(L)||function pu(L){return!!zs&&zs in L}(L))&&(Pd(L)?br:Pr).test(fd(L))}function bi(L){return"function"==typeof L?L:null==L?sc:"object"==typeof L?ko(L)?Fr(L[0],L[1]):ys(L):fp(L)}function $i(L){if(!Gc(L))return st(L);var $=[];for(var ke in ao(L))Os.call(L,ke)&&"constructor"!=ke&&$.push(ke);return $}function nr(L,$){return L<$}function cs(L,$){var ke=-1,Lt=Ac(L)?Pi(L.length):[];return dl(L,function(_n,Fn,ni){Lt[++ke]=$(_n,Fn,ni)}),Lt}function ys(L){var $=Vc(L);return 1==$.length&&$[0][2]?Ud($[0][0],$[0][1]):function(ke){return ke===L||Bn(ke,L,$)}}function Fr(L,$){return tu(L)&&Xu($)?Ud(jc(L),$):function(ke){var Lt=Sg(ke,L);return Lt===n&&Lt===$?bg(ke,L):gn($,Lt,3)}}function Si(L,$,ke,Lt,_n){L!==$&&ec($,function(Fn,ni){if(_n||(_n=new mi),Ml(Fn))!function dr(L,$,ke,Lt,_n,Fn,ni){var ci=nu(L,ke),Mi=nu($,ke),or=ni.get(Mi);if(or)yr(L,ke,or);else{var sr=Fn?Fn(ci,Mi,ke+"",L,$,ni):n,fr=sr===n;if(fr){var is=ko(Mi),Ls=!is&&iu(Mi),ro=!is&&!Ls&&oh(Mi);sr=Mi,is||Ls||ro?ko(ci)?sr=ci:Pl(ci)?sr=Ia(ci):Ls?(fr=!1,sr=Uc(Mi,!0)):ro?(fr=!1,sr=Oa(Mi,!0)):sr=[]:Th(Mi)||Iu(Mi)?(sr=ci,Iu(ci)?sr=vg(ci):(!Ml(ci)||Pd(ci))&&(sr=kd(Mi))):fr=!1}fr&&(ni.set(Mi,sr),_n(sr,Mi,Lt,Fn,ni),ni.delete(Mi)),yr(L,ke,sr)}}(L,$,ni,ke,Si,Lt,_n);else{var ci=Lt?Lt(nu(L,ni),Fn,ni+"",L,$,_n):n;ci===n&&(ci=Fn),yr(L,ni,ci)}},Pc)}function go(L,$){var ke=L.length;if(ke)return Ec($+=$<0?ke:0,ke)?L[$]:n}function Vo(L,$,ke){$=$.length?Xs($,function(Fn){return ko(Fn)?function(ni){return c(ni,1===Fn.length?Fn[0]:Fn)}:Fn}):[sc];var Lt=-1;return $=Xs($,Bi(xs())),function qn(li,Ii){var Pi=li.length;for(li.sort(Ii);Pi--;)li[Pi]=li[Pi].value;return li}(cs(L,function(Fn,ni,ci){return{criteria:Xs($,function(or){return or(Fn)}),index:++Lt,value:Fn}}),function(Fn,ni){return function Gu(L,$,ke){for(var Lt=-1,_n=L.criteria,Fn=$.criteria,ni=_n.length,ci=ke.length;++Lt<ni;){var Mi=qa(_n[Lt],Fn[Lt]);if(Mi)return Lt>=ci?Mi:Mi*("desc"==ke[Lt]?-1:1)}return L.index-$.index}(Fn,ni,ke)})}function Ss(L,$,ke){for(var Lt=-1,_n=$.length,Fn={};++Lt<_n;){var ni=$[Lt],ci=c(L,ni);ke(ci,ni)&&Za(Fn,Jr(ni,L),ci)}return Fn}function xo(L,$,ke,Lt){var _n=Lt?al:ca,Fn=-1,ni=$.length,ci=L;for(L===$&&($=Ia($)),ke&&(ci=Xs(L,Bi(ke)));++Fn<ni;)for(var Mi=0,or=$[Fn],sr=ke?ke(or):or;(Mi=_n(ci,sr,Mi,Lt))>-1;)ci!==L&&Mr.call(ci,Mi,1),Mr.call(L,Mi,1);return L}function va(L,$){for(var ke=L?$.length:0,Lt=ke-1;ke--;){var _n=$[ke];if(ke==Lt||_n!==Fn){var Fn=_n;Ec(_n)?Mr.call(L,_n,1):Zc(L,_n)}}return L}function to(L,$){return L+He(It()*($-L+1))}function wl(L,$){var ke="";if(!L||$<1||$>ct)return ke;do{$%2&&(ke+=L),($=He($/2))&&(L+=L)}while($);return ke}function Gs(L,$){return mu(hd(L,$,sc),L+"")}function Sa(L){return an(Ru(L))}function Ua(L,$){var ke=Ru(L);return _u(ke,Aa($,0,ke.length))}function Za(L,$,ke,Lt){if(!Ml(L))return L;for(var _n=-1,Fn=($=Jr($,L)).length,ni=Fn-1,ci=L;null!=ci&&++_n<Fn;){var Mi=jc($[_n]),or=ke;if("__proto__"===Mi||"constructor"===Mi||"prototype"===Mi)return L;if(_n!=ni){var sr=ci[Mi];(or=Lt?Lt(sr,Mi,ci):n)===n&&(or=Ml(sr)?sr:Ec($[_n+1])?[]:{})}ts(ci,Mi,or),ci=ci[Mi]}return L}var Ja=Ie?function(L,$){return Ie.set(L,$),L}:sc,bl=I?function(L,$){return I(L,"toString",{configurable:!0,enumerable:!1,value:Cf($),writable:!0})}:sc;function gl(L){return _u(Ru(L))}function Ka(L,$,ke){var Lt=-1,_n=L.length;$<0&&($=-$>_n?0:_n+$),(ke=ke>_n?_n:ke)<0&&(ke+=_n),_n=$>ke?0:ke-$>>>0,$>>>=0;for(var Fn=Pi(_n);++Lt<_n;)Fn[Lt]=L[Lt+$];return Fn}function cc(L,$){var ke;return dl(L,function(Lt,_n,Fn){return!(ke=$(Lt,_n,Fn))}),!!ke}function dc(L,$,ke){var Lt=0,_n=null==L?Lt:L.length;if("number"==typeof $&&$==$&&_n<=2147483647){for(;Lt<_n;){var Fn=Lt+_n>>>1,ni=L[Fn];null!==ni&&!Oc(ni)&&(ke?ni<=$:ni<$)?Lt=Fn+1:_n=Fn}return _n}return Bl(L,$,sc,ke)}function Bl(L,$,ke,Lt){var _n=0,Fn=null==L?0:L.length;if(0===Fn)return 0;for(var ni=($=ke($))!=$,ci=null===$,Mi=Oc($),or=$===n;_n<Fn;){var sr=He((_n+Fn)/2),fr=ke(L[sr]),is=fr!==n,Ls=null===fr,ro=fr==fr,zo=Oc(fr);if(ni)var Bs=Lt||ro;else Bs=or?ro&&(Lt||is):ci?ro&&is&&(Lt||!Ls):Mi?ro&&is&&!Ls&&(Lt||!zo):!Ls&&!zo&&(Lt?fr<=$:fr<$);Bs?_n=sr+1:Fn=sr}return Tt(Fn,4294967294)}function Nc(L,$){for(var ke=-1,Lt=L.length,_n=0,Fn=[];++ke<Lt;){var ni=L[ke],ci=$?$(ni):ni;if(!ke||!Ll(ci,Mi)){var Mi=ci;Fn[_n++]=0===ni?0:ni}}return Fn}function tc(L){return"number"==typeof L?L:Oc(L)?NaN:+L}function ul(L){if("string"==typeof L)return L;if(ko(L))return Xs(L,ul)+"";if(Oc(L))return gi?gi.call(L):"";var $=L+"";return"0"==$&&1/L==-Qe?"-0":$}function Kl(L,$,ke){var Lt=-1,_n=$o,Fn=L.length,ni=!0,ci=[],Mi=ci;if(ke)ni=!1,_n=aa;else if(Fn>=200){var or=$?null:zh(L);if(or)return Hi(or);ni=!1,_n=Ea,Mi=new jt}else Mi=$?[]:ci;e:for(;++Lt<Fn;){var sr=L[Lt],fr=$?$(sr):sr;if(sr=ke||0!==sr?sr:0,ni&&fr==fr){for(var is=Mi.length;is--;)if(Mi[is]===fr)continue e;$&&Mi.push(fr),ci.push(sr)}else _n(Mi,fr,ke)||(Mi!==ci&&Mi.push(fr),ci.push(sr))}return ci}function Zc(L,$){return null==(L=gu(L,$=Jr($,L)))||delete L[jc(Ba($))]}function Lc(L,$,ke,Lt){return Za(L,$,ke(c(L,$)),Lt)}function kc(L,$,ke,Lt){for(var _n=L.length,Fn=Lt?_n:-1;(Lt?Fn--:++Fn<_n)&&$(L[Fn],Fn,L););return ke?Ka(L,Lt?0:Fn,Lt?Fn+1:_n):Ka(L,Lt?Fn+1:0,Lt?_n:Fn)}function No(L,$){var ke=L;return ke instanceof pr&&(ke=ke.value()),zi($,function(Lt,_n){return _n.func.apply(_n.thisArg,_a([Lt],_n.args))},ke)}function Fc(L,$,ke){var Lt=L.length;if(Lt<2)return Lt?Kl(L[0]):[];for(var _n=-1,Fn=Pi(Lt);++_n<Lt;)for(var ni=L[_n],ci=-1;++ci<Lt;)ci!=_n&&(Fn[_n]=Ic(Fn[_n]||ni,L[ci],$,ke));return Kl(Ys(Fn,1),$,ke)}function uc(L,$,ke){for(var Lt=-1,_n=L.length,Fn=$.length,ni={};++Lt<_n;)ke(ni,L[Lt],Lt<Fn?$[Lt]:n);return ni}function $l(L){return Pl(L)?L:[]}function $a(L){return"function"==typeof L?L:sc}function Jr(L,$){return ko(L)?L:tu(L,$)?[L]:yu(Ra(L))}var hc=Gs;function Lo(L,$,ke){var Lt=L.length;return ke=ke===n?Lt:ke,!$&&ke>=Lt?L:Ka(L,$,ke)}var $d=j||function(L){return Eo.clearTimeout(L)};function Uc(L,$){if($)return L.slice();var ke=L.length,Lt=Ta?Ta(ke):new L.constructor(ke);return L.copy(Lt),Lt}function Vl(L){var $=new L.constructor(L.byteLength);return new cl($).set(new cl(L)),$}function Oa(L,$){var ke=$?Vl(L.buffer):L.buffer;return new L.constructor(ke,L.byteOffset,L.length)}function qa(L,$){if(L!==$){var ke=L!==n,Lt=null===L,_n=L==L,Fn=Oc(L),ni=$!==n,ci=null===$,Mi=$==$,or=Oc($);if(!ci&&!or&&!Fn&&L>$||Fn&&ni&&Mi&&!ci&&!or||Lt&&ni&&Mi||!ke&&Mi||!_n)return 1;if(!Lt&&!Fn&&!or&&L<$||or&&ke&&_n&&!Lt&&!Fn||ci&&ke&&_n||!ni&&_n||!Mi)return-1}return 0}function Jc(L,$,ke,Lt){for(var _n=-1,Fn=L.length,ni=ke.length,ci=-1,Mi=$.length,or=tt(Fn-ni,0),sr=Pi(Mi+or),fr=!Lt;++ci<Mi;)sr[ci]=$[ci];for(;++_n<ni;)(fr||_n<Fn)&&(sr[ke[_n]]=L[_n]);for(;or--;)sr[ci++]=L[_n++];return sr}function el(L,$,ke,Lt){for(var _n=-1,Fn=L.length,ni=-1,ci=ke.length,Mi=-1,or=$.length,sr=tt(Fn-ci,0),fr=Pi(sr+or),is=!Lt;++_n<sr;)fr[_n]=L[_n];for(var Ls=_n;++Mi<or;)fr[Ls+Mi]=$[Mi];for(;++ni<ci;)(is||_n<Fn)&&(fr[Ls+ke[ni]]=L[_n++]);return fr}function Ia(L,$){var ke=-1,Lt=L.length;for($||($=Pi(Lt));++ke<Lt;)$[ke]=L[ke];return $}function nc(L,$,ke,Lt){var _n=!ke;ke||(ke={});for(var Fn=-1,ni=$.length;++Fn<ni;){var ci=$[Fn],Mi=Lt?Lt(ke[ci],L[ci],ci,ke,L):n;Mi===n&&(Mi=L[ci]),_n?Ps(ke,ci,Mi):ts(ke,ci,Mi)}return ke}function yd(L,$){return function(ke,Lt){var _n=ko(ke)?po:Cr,Fn=$?$():{};return _n(ke,L,xs(Lt,2),Fn)}}function Sc(L){return Gs(function($,ke){var Lt=-1,_n=ke.length,Fn=_n>1?ke[_n-1]:n,ni=_n>2?ke[2]:n;for(Fn=L.length>3&&"function"==typeof Fn?(_n--,Fn):n,ni&&Al(ke[0],ke[1],ni)&&(Fn=_n<3?n:Fn,_n=1),$=ao($);++Lt<_n;){var ci=ke[Lt];ci&&L($,ci,Lt,Fn)}return $})}function Td(L,$){return function(ke,Lt){if(null==ke)return ke;if(!Ac(ke))return L(ke,Lt);for(var _n=ke.length,Fn=$?_n:-1,ni=ao(ke);($?Fn--:++Fn<_n)&&!1!==Lt(ni[Fn],Fn,ni););return ke}}function uh(L){return function($,ke,Lt){for(var _n=-1,Fn=ao($),ni=Lt($),ci=ni.length;ci--;){var Mi=ni[L?ci:++_n];if(!1===ke(Fn[Mi],Mi,Fn))break}return $}}function ju(L){return function($){var ke=ra($=Ra($))?wr($):n,Lt=ke?ke[0]:$.charAt(0),_n=ke?Lo(ke,1).join(""):$.slice(1);return Lt[L]()+_n}}function bc(L){return function($){return zi(dp(mf($).replace(As,"")),L,"")}}function Yd(L){return function(){var $=arguments;switch($.length){case 0:return new L;case 1:return new L($[0]);case 2:return new L($[0],$[1]);case 3:return new L($[0],$[1],$[2]);case 4:return new L($[0],$[1],$[2],$[3]);case 5:return new L($[0],$[1],$[2],$[3],$[4]);case 6:return new L($[0],$[1],$[2],$[3],$[4],$[5]);case 7:return new L($[0],$[1],$[2],$[3],$[4],$[5],$[6])}var ke=ki(L.prototype),Lt=L.apply(ke,$);return Ml(Lt)?Lt:ke}}function jh(L){return function($,ke,Lt){var _n=ao($);if(!Ac($)){var Fn=xs(ke,3);$=Jl($),ke=function(ci){return Fn(_n[ci],ci,_n)}}var ni=L($,ke,Lt);return ni>-1?_n[Fn?$[ni]:ni]:n}}function Sd(L){return pc(function($){var ke=$.length,Lt=ke,_n=Ki.prototype.thru;for(L&&$.reverse();Lt--;){var Fn=$[Lt];if("function"!=typeof Fn)throw new Vr(M);if(_n&&!ni&&"wrapper"==gc(Fn))var ni=new Ki([],!0)}for(Lt=ni?Lt:ke;++Lt<ke;){var ci=gc(Fn=$[Lt]),Mi="wrapper"==ci?Nd(Fn):n;ni=Mi&&fu(Mi[0])&&424==Mi[1]&&!Mi[4].length&&1==Mi[9]?ni[gc(Mi[0])].apply(ni,Mi[3]):1==Fn.length&&fu(Fn)?ni[ci]():ni.thru(Fn)}return function(){var or=arguments,sr=or[0];if(ni&&1==or.length&&ko(sr))return ni.plant(sr).value();for(var fr=0,is=ke?$[fr].apply(this,or):sr;++fr<ke;)is=$[fr].call(this,is);return is}})}function ad(L,$,ke,Lt,_n,Fn,ni,ci,Mi,or){var sr=$&G,fr=1&$,is=2&$,Ls=24&$,ro=512&$,zo=is?n:Yd(L);return function Bs(){for(var Qo=arguments.length,ha=Pi(Qo),$c=Qo;$c--;)ha[$c]=arguments[$c];if(Ls)var oc=bd(Bs),Dc=function Is(li,Ii){for(var Pi=li.length,Dr=0;Pi--;)li[Pi]===Ii&&++Dr;return Dr}(ha,oc);if(Lt&&(ha=Jc(ha,Lt,_n,Ls)),Fn&&(ha=el(ha,Fn,ni,Ls)),Qo-=Dc,Ls&&Qo<or){var ml=ii(ha,oc);return hh(L,$,ad,Bs.placeholder,ke,ha,ml,ci,Mi,or-Qo)}var Xc=fr?ke:this,ou=is?Xc[L]:L;return Qo=ha.length,ci?ha=function Hc(L,$){for(var ke=L.length,Lt=Tt($.length,ke),_n=Ia(L);Lt--;){var Fn=$[Lt];L[Lt]=Ec(Fn,ke)?_n[Fn]:n}return L}(ha,ci):ro&&Qo>1&&ha.reverse(),sr&&Mi<Qo&&(ha.length=Mi),this&&this!==Eo&&this instanceof Bs&&(ou=zo||Yd(ou)),ou.apply(Xc,ha)}}function du(L,$){return function(ke,Lt){return function ot(L,$,ke,Lt){return Zr(L,function(_n,Fn,ni){$(Lt,ke(_n),Fn,ni)}),Lt}(ke,L,$(Lt),{})}}function ld(L,$){return function(ke,Lt){var _n;if(ke===n&&Lt===n)return $;if(ke!==n&&(_n=ke),Lt!==n){if(_n===n)return Lt;"string"==typeof ke||"string"==typeof Lt?(ke=ul(ke),Lt=ul(Lt)):(ke=tc(ke),Lt=tc(Lt)),_n=L(ke,Lt)}return _n}}function cd(L){return pc(function($){return $=Xs($,Bi(xs())),Gs(function(ke){var Lt=this;return L($,function(_n){return co(_n,Lt,ke)})})})}function dd(L,$){var ke=($=$===n?" ":ul($)).length;if(ke<2)return ke?wl($,L):$;var Lt=wl($,xe(L/Zs($)));return ra($)?Lo(wr(Lt),0,L).join(""):Lt.slice(0,L)}function Wu(L){return function($,ke,Lt){return Lt&&"number"!=typeof Lt&&Al($,ke,Lt)&&(ke=Lt=n),$=nd($),ke===n?(ke=$,$=0):ke=nd(ke),function Ul(L,$,ke,Lt){for(var _n=-1,Fn=tt(xe(($-L)/(ke||1)),0),ni=Pi(Fn);Fn--;)ni[Lt?Fn:++_n]=L,L+=ke;return ni}($,ke,Lt=Lt===n?$<ke?1:-1:nd(Lt),L)}}function Id(L){return function($,ke){return"string"==typeof $&&"string"==typeof ke||($=id($),ke=id(ke)),L($,ke)}}function hh(L,$,ke,Lt,_n,Fn,ni,ci,Mi,or){var sr=8&$;$|=sr?Y:64,4&($&=~(sr?64:Y))||($&=-4);var zo=[L,$,_n,sr?Fn:n,sr?ni:n,sr?n:Fn,sr?n:ni,ci,Mi,or],Bs=ke.apply(n,zo);return fu(L)&&ed(Bs,zo),Bs.placeholder=Lt,vu(Bs,L,$)}function Xl(L){var $=oo[L];return function(ke,Lt){if(ke=id(ke),(Lt=null==Lt?0:Tt(To(Lt),292))&&Gt(ke)){var _n=(Ra(ke)+"e").split("e");return+((_n=(Ra($(_n[0]+"e"+(+_n[1]+Lt)))+"e").split("e"))[0]+"e"+(+_n[1]-Lt))}return $(ke)}}var zh=ri&&1/Hi(new ri([,-0]))[1]==Qe?function(L){return new ri(L)}:Af;function wd(L){return function($){var ke=ol($);return ke==Ce?Yt($):ke==fe?function Nr(li){var Ii=-1,Pi=Array(li.size);return li.forEach(function(Dr){Pi[++Ii]=[Dr,Dr]}),Pi}($):function Do(li,Ii){return Xs(Ii,function(Pi){return[Pi,li[Pi]]})}($,L($))}}function fc(L,$,ke,Lt,_n,Fn,ni,ci){var Mi=2&$;if(!Mi&&"function"!=typeof L)throw new Vr(M);var or=Lt?Lt.length:0;if(or||($&=-97,Lt=_n=n),ni=ni===n?ni:tt(To(ni),0),ci=ci===n?ci:To(ci),or-=_n?_n.length:0,64&$){var sr=Lt,fr=_n;Lt=_n=n}var is=Mi?n:Nd(L),Ls=[L,$,ke,Lt,_n,sr,fr,Fn,ni,ci];if(is&&function Yl(L,$){var ke=L[1],Lt=$[1],_n=ke|Lt;if(!(_n<131)&&!(Lt==G&&8==ke||Lt==G&&256==ke&&L[7].length<=$[8]||384==Lt&&$[7].length<=$[8]&&8==ke))return L;1&Lt&&(L[2]=$[2],_n|=1&ke?0:4);var ci=$[3];if(ci){var Mi=L[3];L[3]=Mi?Jc(Mi,ci,$[4]):ci,L[4]=Mi?ii(L[3],g):$[4]}(ci=$[5])&&(L[5]=(Mi=L[5])?el(Mi,ci,$[6]):ci,L[6]=Mi?ii(L[5],g):$[6]),(ci=$[7])&&(L[7]=ci),Lt&G&&(L[8]=null==L[8]?$[8]:Tt(L[8],$[8])),null==L[9]&&(L[9]=$[9]),L[0]=$[0],L[1]=_n}(Ls,is),L=Ls[0],$=Ls[1],ke=Ls[2],Lt=Ls[3],_n=Ls[4],!(ci=Ls[9]=Ls[9]===n?Mi?0:L.length:tt(Ls[9]-or,0))&&24&$&&($&=-25),$&&1!=$)ro=8==$||16==$?function Hh(L,$,ke){var Lt=Yd(L);return function _n(){for(var Fn=arguments.length,ni=Pi(Fn),ci=Fn,Mi=bd(_n);ci--;)ni[ci]=arguments[ci];var or=Fn<3&&ni[0]!==Mi&&ni[Fn-1]!==Mi?[]:ii(ni,Mi);return(Fn-=or.length)<ke?hh(L,$,ad,_n.placeholder,n,ni,or,n,n,ke-Fn):co(this&&this!==Eo&&this instanceof _n?Lt:L,this,ni)}}(L,$,ci):$!=Y&&33!=$||_n.length?ad.apply(n,Ls):function Wh(L,$,ke,Lt){var _n=1&$,Fn=Yd(L);return function ni(){for(var ci=-1,Mi=arguments.length,or=-1,sr=Lt.length,fr=Pi(sr+Mi),is=this&&this!==Eo&&this instanceof ni?Fn:L;++or<sr;)fr[or]=Lt[or];for(;Mi--;)fr[or++]=arguments[++ci];return co(is,_n?ke:this,fr)}}(L,$,ke,Lt);else var ro=function cu(L,$,ke){var Lt=1&$,_n=Yd(L);return function Fn(){return(this&&this!==Eo&&this instanceof Fn?_n:L).apply(Lt?ke:this,arguments)}}(L,$,ke);return vu((is?Ja:ed)(ro,Ls),L,$)}function Qd(L,$,ke,Lt){return L===n||Ll(L,sa[ke])&&!Os.call(Lt,ke)?$:L}function Rd(L,$,ke,Lt,_n,Fn){return Ml(L)&&Ml($)&&(Fn.set($,L),Si(L,$,n,Rd,Fn),Fn.delete($)),L}function Zd(L){return Th(L)?n:L}function zu(L,$,ke,Lt,_n,Fn){var ni=1&ke,ci=L.length,Mi=$.length;if(ci!=Mi&&!(ni&&Mi>ci))return!1;var or=Fn.get(L),sr=Fn.get($);if(or&&sr)return or==$&&sr==L;var fr=-1,is=!0,Ls=2&ke?new jt:n;for(Fn.set(L,$),Fn.set($,L);++fr<ci;){var ro=L[fr],zo=$[fr];if(Lt)var Bs=ni?Lt(zo,ro,fr,$,L,Fn):Lt(ro,zo,fr,L,$,Fn);if(Bs!==n){if(Bs)continue;is=!1;break}if(Ls){if(!jo($,function(Qo,ha){if(!Ea(Ls,ha)&&(ro===Qo||_n(ro,Qo,ke,Lt,Fn)))return Ls.push(ha)})){is=!1;break}}else if(ro!==zo&&!_n(ro,zo,ke,Lt,Fn)){is=!1;break}}return Fn.delete(L),Fn.delete($),is}function pc(L){return mu(hd(L,n,qu),L+"")}function uu(L){return p(L,Jl,mc)}function Jd(L){return p(L,Pc,qc)}var Nd=Ie?function(L){return Ie.get(L)}:Af;function gc(L){for(var $=L.name+"",ke=_t[$],Lt=Os.call(_t,$)?ke.length:0;Lt--;){var _n=ke[Lt],Fn=_n.func;if(null==Fn||Fn==L)return _n.name}return $}function bd(L){return(Os.call(ln,"placeholder")?ln:L).placeholder}function xs(){var L=ln.iteratee||lh;return L=L===lh?bi:L,arguments.length?L(arguments[0],arguments[1]):L}function Ld(L,$){var ke=L.__data__;return function $u(L){var $=typeof L;return"string"==$||"number"==$||"symbol"==$||"boolean"==$?"__proto__"!==L:null===L}($)?ke["string"==typeof $?"string":"hash"]:ke.map}function Vc(L){for(var $=Jl(L),ke=$.length;ke--;){var Lt=$[ke],_n=L[Lt];$[ke]=[Lt,_n,Xu(_n)]}return $}function ic(L,$){var ke=function Oo(li,Ii){return null==li?n:li[Ii]}(L,$);return ei(ke)?ke:n}var mc=ht?function(L){return null==L?[]:(L=ao(L),uo(ht(L),function($){return Fa.call(L,$)}))}:su,qc=ht?function(L){for(var $=[];L;)_a($,mc(L)),L=pl(L);return $}:su,ol=O;function Ed(L,$,ke){for(var Lt=-1,_n=($=Jr($,L)).length,Fn=!1;++Lt<_n;){var ni=jc($[Lt]);if(!(Fn=null!=L&&ke(L,ni)))break;L=L[ni]}return Fn||++Lt!=_n?Fn:!!(_n=null==L?0:L.length)&&zf(_n)&&Ec(ni,_n)&&(ko(L)||Iu(L))}function kd(L){return"function"!=typeof L.constructor||Gc(L)?{}:ki(pl(L))}function Fd(L){return ko(L)||Iu(L)||!!(Ze&&L&&L[Ze])}function Ec(L,$){var ke=typeof L;return!!($=$??ct)&&("number"==ke||"symbol"!=ke&&js.test(L))&&L>-1&&L%1==0&&L<$}function Al(L,$,ke){if(!Ml(ke))return!1;var Lt=typeof $;return!!("number"==Lt?Ac(ke)&&Ec($,ke.length):"string"==Lt&&$ in ke)&&Ll(ke[$],L)}function tu(L,$){if(ko(L))return!1;var ke=typeof L;return!("number"!=ke&&"symbol"!=ke&&"boolean"!=ke&&null!=L&&!Oc(L))||Kt.test(L)||!Wt.test(L)||null!=$&&L in ao($)}function fu(L){var $=gc(L),ke=ln[$];if("function"!=typeof ke||!($ in pr.prototype))return!1;if(L===ke)return!0;var Lt=Nd(ke);return!!Lt&&L===Lt[0]}(xn&&ol(new xn(new ArrayBuffer(1)))!=At||In&&ol(new In)!=Ce||Nn&&ol(Nn.resolve())!=le||ri&&ol(new ri)!=fe||ui&&ol(new ui)!=sn)&&(ol=function(L){var $=O(L),ke=$==me?L.constructor:n,Lt=ke?fd(ke):"";if(Lt)switch(Lt){case Nt:return At;case en:return Ce;case vn:return le;case fn:return fe;case Cn:return sn}return $});var rc=rl?Pd:kh;function Gc(L){var $=L&&L.constructor;return L===("function"==typeof $&&$.prototype||sa)}function Xu(L){return L==L&&!Ml(L)}function Ud(L,$){return function(ke){return null!=ke&&ke[L]===$&&($!==n||L in ao(ke))}}function hd(L,$,ke){return $=tt($===n?L.length-1:$,0),function(){for(var Lt=arguments,_n=-1,Fn=tt(Lt.length-$,0),ni=Pi(Fn);++_n<Fn;)ni[_n]=Lt[$+_n];_n=-1;for(var ci=Pi($+1);++_n<$;)ci[_n]=Lt[_n];return ci[$]=ke(ni),co(L,this,ci)}}function gu(L,$){return $.length<2?L:c(L,Ka($,0,-1))}function nu(L,$){if(("constructor"!==$||"function"!=typeof L[$])&&"__proto__"!=$)return L[$]}var ed=ph(Ja),Bd=_e||function(L,$){return Eo.setTimeout(L,$)},mu=ph(bl);function vu(L,$,ke){var Lt=$+"";return mu(L,function ud(L,$){var ke=$.length;if(!ke)return L;var Lt=ke-1;return $[Lt]=(ke>1?"& ":"")+$[Lt],$=$.join(ke>2?", ":" "),L.replace(bt,"{\n/* [wrapped with "+$+"] */\n")}(Lt,function Su(L,$){return $s(Ve,function(ke){var Lt="_."+ke[0];$&ke[1]&&!$o(L,Lt)&&L.push(Lt)}),L.sort()}(function hu(L){var $=L.match(Zi);return $?$[1].split(Rn):[]}(Lt),ke)))}function ph(L){var $=0,ke=0;return function(){var Lt=Ye(),_n=16-(Lt-ke);if(ke=Lt,_n>0){if(++$>=800)return arguments[0]}else $=0;return L.apply(n,arguments)}}function _u(L,$){var ke=-1,Lt=L.length,_n=Lt-1;for($=$===n?Lt:$;++ke<$;){var Fn=to(ke,_n),ni=L[Fn];L[Fn]=L[ke],L[ke]=ni}return L.length=$,L}var yu=function Yu(L){var $=rf(L,function(Lt){return 500===ke.size&&ke.clear(),Lt}),ke=$.cache;return $}(function(L){var $=[];return 46===L.charCodeAt(0)&&$.push(""),L.replace(cn,function(ke,Lt,_n,Fn){$.push(_n?Fn.replace(Ni,"$1"):Lt||ke)}),$});function jc(L){if("string"==typeof L||Oc(L))return L;var $=L+"";return"0"==$&&1/L==-Qe?"-0":$}function fd(L){if(null!=L){try{return ll.call(L)}catch{}try{return L+""}catch{}}return""}function Wc(L){if(L instanceof pr)return L.clone();var $=new Ki(L.__wrapped__,L.__chain__);return $.__actions__=Ia(L.__actions__),$.__index__=L.__index__,$.__values__=L.__values__,$}var gh=Gs(function(L,$){return Pl(L)?Ic(L,Ys($,1,Pl,!0)):[]}),td=Gs(function(L,$){var ke=Ba($);return Pl(ke)&&(ke=n),Pl(L)?Ic(L,Ys($,1,Pl,!0),xs(ke,2)):[]}),Xh=Gs(function(L,$){var ke=Ba($);return Pl(ke)&&(ke=n),Pl(L)?Ic(L,Ys($,1,Pl,!0),n,ke):[]});function Eu(L,$,ke){var Lt=null==L?0:L.length;if(!Lt)return-1;var _n=null==ke?0:To(ke);return _n<0&&(_n=tt(Lt+_n,0)),ps(L,xs($,3),_n)}function Cu(L,$,ke){var Lt=null==L?0:L.length;if(!Lt)return-1;var _n=Lt-1;return ke!==n&&(_n=To(ke),_n=ke<0?tt(Lt+_n,0):Tt(_n,Lt-1)),ps(L,xs($,3),_n,!0)}function qu(L){return null!=L&&L.length?Ys(L,1):[]}function mh(L){return L&&L.length?L[0]:n}var Ql=Gs(function(L){var $=Xs(L,$l);return $.length&&$[0]===L[0]?je($):[]}),vh=Gs(function(L){var $=Ba(L),ke=Xs(L,$l);return $===Ba(ke)?$=n:ke.pop(),ke.length&&ke[0]===L[0]?je(ke,xs($,2)):[]}),Jh=Gs(function(L){var $=Ba(L),ke=Xs(L,$l);return($="function"==typeof $?$:n)&&ke.pop(),ke.length&&ke[0]===L[0]?je(ke,n,$):[]});function Ba(L){var $=null==L?0:L.length;return $?L[$-1]:n}var Me=Gs(w);function w(L,$){return L&&L.length&&$&&$.length?xo(L,$):L}var xt=pc(function(L,$){var ke=null==L?0:L.length,Lt=sl(L,$);return va(L,Xs($,function(_n){return Ec(_n,ke)?+_n:_n}).sort(qa)),Lt});function On(L){return null==L?L:un.call(L)}var Cc=Gs(function(L){return Kl(Ys(L,1,Pl,!0))}),Nl=Gs(function(L){var $=Ba(L);return Pl($)&&($=n),Kl(Ys(L,1,Pl,!0),xs($,2))}),Gl=Gs(function(L){var $=Ba(L);return $="function"==typeof $?$:n,Kl(Ys(L,1,Pl,!0),n,$)});function zc(L){if(!L||!L.length)return[];var $=0;return L=uo(L,function(ke){if(Pl(ke))return $=tt(ke.length,$),!0}),_s($,function(ke){return Xs(L,Dt(ke))})}function Ou(L,$){if(!L||!L.length)return[];var ke=zc(L);return null==$?ke:Xs(ke,function(Lt){return co($,n,Lt)})}var th=Gs(function(L,$){return Pl(L)?Ic(L,$):[]}),Pu=Gs(function(L){return Fc(uo(L,Pl))}),gs=Gs(function(L){var $=Ba(L);return Pl($)&&($=n),Fc(uo(L,Pl),xs($,2))}),Hs=Gs(function(L){var $=Ba(L);return $="function"==typeof $?$:n,Fc(uo(L,Pl),n,$)}),Ns=Gs(zc),vc=Gs(function(L){var $=L.length,ke=$>1?L[$-1]:n;return ke="function"==typeof ke?(L.pop(),ke):n,Ou(L,ke)});function Tl(L){var $=ln(L);return $.__chain__=!0,$}function Va(L,$){return $(L)}var Mu=pc(function(L){var $=L.length,ke=$?L[0]:0,Lt=this.__wrapped__,_n=function(Fn){return sl(Fn,L)};return!($>1||this.__actions__.length)&&Lt instanceof pr&&Ec(ke)?((Lt=Lt.slice(ke,+ke+($?1:0))).__actions__.push({func:Va,args:[_n],thisArg:n}),new Ki(Lt,this.__chain__).thru(function(Fn){return $&&!Fn.length&&Fn.push(n),Fn})):this.thru(_n)}),Lf=yd(function(L,$,ke){Os.call(L,ke)?++L[ke]:Ps(L,ke,1)}),kf=jh(Eu),bh=jh(Cu);function ef(L,$){return(ko(L)?$s:dl)(L,xs($,3))}function Eh(L,$){return(ko(L)?Sn:kl)(L,xs($,3))}var Yv=yd(function(L,$,ke){Os.call(L,ke)?L[ke].push($):Ps(L,ke,[$])}),Ch=Gs(function(L,$,ke){var Lt=-1,_n="function"==typeof $,Fn=Ac(L)?Pi(L.length):[];return dl(L,function(ni){Fn[++Lt]=_n?co($,ni,ke):Ct(ni,$,ke)}),Fn}),Sm=yd(function(L,$,ke){Ps(L,ke,$)});function Ah(L,$){return(ko(L)?Xs:cs)(L,xs($,3))}var Em=yd(function(L,$,ke){L[ke?0:1].push($)},function(){return[[],[]]}),Qv=Gs(function(L,$){if(null==L)return[];var ke=$.length;return ke>1&&Al(L,$[0],$[1])?$=[]:ke>2&&Al($[0],$[1],$[2])&&($=[$[0]]),Vo(L,Ys($,1),[])}),Bf=pe||function(){return Eo.Date.now()};function rg(L,$,ke){return $=ke?n:$,fc(L,G,n,n,n,n,$=L&&null==$?L.length:$)}function Mh(L,$){var ke;if("function"!=typeof $)throw new Vr(M);return L=To(L),function(){return--L>0&&(ke=$.apply(this,arguments)),L<=1&&($=n),ke}}var Dh=Gs(function(L,$,ke){var Lt=1;if(ke.length){var _n=ii(ke,bd(Dh));Lt|=Y}return fc(L,Lt,$,ke,_n)}),sg=Gs(function(L,$,ke){var Lt=3;if(ke.length){var _n=ii(ke,bd(sg));Lt|=Y}return fc($,Lt,L,ke,_n)});function xh(L,$,ke){var Lt,_n,Fn,ni,ci,Mi,or=0,sr=!1,fr=!1,is=!0;if("function"!=typeof L)throw new Vr(M);function Ls(ml){var Xc=Lt,ou=_n;return Lt=_n=n,or=ml,ni=L.apply(ou,Xc)}function Bs(ml){var Xc=ml-Mi;return Mi===n||Xc>=$||Xc<0||fr&&ml-or>=Fn}function Qo(){var ml=Bf();if(Bs(ml))return ha(ml);ci=Bd(Qo,function zo(ml){var _p=$-(ml-Mi);return fr?Tt(_p,Fn-(ml-or)):_p}(ml))}function ha(ml){return ci=n,is&&Lt?Ls(ml):(Lt=_n=n,ni)}function Dc(){var ml=Bf(),Xc=Bs(ml);if(Lt=arguments,_n=this,Mi=ml,Xc){if(ci===n)return function ro(ml){return or=ml,ci=Bd(Qo,$),sr?Ls(ml):ni}(Mi);if(fr)return $d(ci),ci=Bd(Qo,$),Ls(Mi)}return ci===n&&(ci=Bd(Qo,$)),ni}return $=id($)||0,Ml(ke)&&(sr=!!ke.leading,Fn=(fr="maxWait"in ke)?tt(id(ke.maxWait)||0,$):Fn,is="trailing"in ke?!!ke.trailing:is),Dc.cancel=function $c(){ci!==n&&$d(ci),or=0,Lt=Mi=_n=ci=n},Dc.flush=function oc(){return ci===n?ni:ha(Bf())},Dc}var nf=Gs(function(L,$){return sd(L,1,$)}),og=Gs(function(L,$,ke){return sd(L,id($)||0,ke)});function rf(L,$){if("function"!=typeof L||null!=$&&"function"!=typeof $)throw new Vr(M);var ke=function(){var Lt=arguments,_n=$?$.apply(this,Lt):Lt[0],Fn=ke.cache;if(Fn.has(_n))return Fn.get(_n);var ni=L.apply(this,Lt);return ke.cache=Fn.set(_n,ni)||Fn,ni};return ke.cache=new(rf.Cache||Er),ke}function xu(L){if("function"!=typeof L)throw new Vr(M);return function(){var $=arguments;switch($.length){case 0:return!L.call(this);case 1:return!L.call(this,$[0]);case 2:return!L.call(this,$[0],$[1]);case 3:return!L.call(this,$[0],$[1],$[2])}return!L.apply(this,$)}}rf.Cache=Er;var rh=hc(function(L,$){var ke=($=1==$.length&&ko($[0])?Xs($[0],Bi(xs())):Xs(Ys($,1),Bi(xs()))).length;return Gs(function(Lt){for(var _n=-1,Fn=Tt(Lt.length,ke);++_n<Fn;)Lt[_n]=$[_n].call(this,Lt[_n]);return co(L,this,Lt)})}),Hf=Gs(function(L,$){var ke=ii($,bd(Hf));return fc(L,Y,n,$,ke)}),lg=Gs(function(L,$){var ke=ii($,bd(lg));return fc(L,64,n,$,ke)}),Zv=pc(function(L,$){return fc(L,256,n,n,n,$)});function Ll(L,$){return L===$||L!=L&&$!=$}var sh=Id(F),Tm=Id(function(L,$){return L>=$}),Iu=Rt(function(){return arguments}())?Rt:function(L){return Dl(L)&&Os.call(L,"callee")&&!Fa.call(L,"callee")},ko=Pi.isArray,Im=_o?Bi(_o):function Et(L){return Dl(L)&&O(L)==yn};function Ac(L){return null!=L&&zf(L.length)&&!Pd(L)}function Pl(L){return Dl(L)&&Ac(L)}var iu=yt||kh,wm=La?Bi(La):function qt(L){return Dl(L)&&O(L)==vt};function wu(L){if(!Dl(L))return!1;var $=O(L);return $==ue||"[object DOMException]"==$||"string"==typeof L.message&&"string"==typeof L.name&&!Th(L)}function Pd(L){if(!Ml(L))return!1;var $=O(L);return $==et||$==se||"[object AsyncFunction]"==$||"[object Proxy]"==$}function Wf(L){return"number"==typeof L&&L==To(L)}function zf(L){return"number"==typeof L&&L>-1&&L%1==0&&L<=ct}function Ml(L){var $=typeof L;return null!=L&&("object"==$||"function"==$)}function Dl(L){return null!=L&&"object"==typeof L}var lf=Ko?Bi(Ko):function Pn(L){return Dl(L)&&ol(L)==Ce};function gg(L){return"number"==typeof L||Dl(L)&&O(L)==be}function Th(L){if(!Dl(L)||O(L)!=me)return!1;var $=pl(L);if(null===$)return!0;var ke=Os.call($,"constructor")&&$.constructor;return"function"==typeof ke&&ke instanceof ke&&ll.call(ke)==ho}var $f=Jo?Bi(Jo):function jn(L){return Dl(L)&&O(L)==Se},Xf=ka?Bi(ka):function si(L){return Dl(L)&&ol(L)==fe};function cf(L){return"string"==typeof L||!ko(L)&&Dl(L)&&O(L)==Ne}function Oc(L){return"symbol"==typeof L||Dl(L)&&O(L)==ye}var oh=il?Bi(il):function vi(L){return Dl(L)&&zf(L.length)&&!!Es[O(L)]},Fm=Id(nr),ru=Id(function(L,$){return L<=$});function uf(L){if(!L)return[];if(Ac(L))return cf(L)?wr(L):Ia(L);if(_&&L[_])return function mt(li){for(var Ii,Pi=[];!(Ii=li.next()).done;)Pi.push(Ii.value);return Pi}(L[_]());var $=ol(L);return($==Ce?Yt:$==fe?Hi:Ru)(L)}function nd(L){return L?(L=id(L))===Qe||L===-Qe?17976931348623157e292*(L<0?-1:1):L==L?L:0:0===L?L:0}function To(L){var $=nd(L),ke=$%1;return $==$?ke?$-ke:$:0}function hf(L){return L?Aa(To(L),0,Je):0}function id(L){if("number"==typeof L)return L;if(Oc(L))return NaN;if(Ml(L)){var $="function"==typeof L.valueOf?L.valueOf():L;L=Ml($)?$+"":$}if("string"!=typeof L)return 0===L?L:+L;L=Ws(L);var ke=Ms.test(L);return ke||lo.test(L)?na(L.slice(2),ke?2:8):hr.test(L)?NaN:+L}function vg(L){return nc(L,Pc(L))}function Ra(L){return null==L?"":ul(L)}var _g=Sc(function(L,$){if(Gc($)||Ac($))nc($,Jl($),L);else for(var ke in $)Os.call($,ke)&&ts(L,ke,$[ke])}),Bm=Sc(function(L,$){nc($,Pc($),L)}),Qf=Sc(function(L,$,ke,Lt){nc($,Pc($),L,Lt)}),wh=Sc(function(L,$,ke,Lt){nc($,Jl($),L,Lt)}),Zf=pc(sl),ff=Gs(function(L,$){L=ao(L);var ke=-1,Lt=$.length,_n=Lt>2?$[2]:n;for(_n&&Al($[0],$[1],_n)&&(Lt=1);++ke<Lt;)for(var Fn=$[ke],ni=Pc(Fn),ci=-1,Mi=ni.length;++ci<Mi;){var or=ni[ci],sr=L[or];(sr===n||Ll(sr,sa[or])&&!Os.call(L,or))&&(L[or]=Fn[or])}return L}),yg=Gs(function(L){return L.push(n,Rd),co(np,n,L)});function Sg(L,$,ke){var Lt=null==L?n:c(L,$);return Lt===n?ke:Lt}function bg(L,$){return null!=L&&Ed(L,$,re)}var i_=du(function(L,$,ke){null!=$&&"function"!=typeof $.toString&&($=xa.call($)),L[$]=ke},Cf(sc)),r_=du(function(L,$,ke){null!=$&&"function"!=typeof $.toString&&($=xa.call($)),Os.call(L,$)?L[$].push(ke):L[$]=[ke]},xs),s_=Gs(Ct);function Jl(L){return Ac(L)?rn(L):$i(L)}function Pc(L){return Ac(L)?rn(L,!0):function er(L){if(!Ml(L))return function Kh(L){var $=[];if(null!=L)for(var ke in ao(L))$.push(ke);return $}(L);var $=Gc(L),ke=[];for(var Lt in L)"constructor"==Lt&&($||!Os.call(L,Lt))||ke.push(Lt);return ke}(L)}var tp=Sc(function(L,$,ke){Si(L,$,ke)}),np=Sc(function(L,$,ke,Lt){Si(L,$,ke,Lt)}),Eg=pc(function(L,$){var ke={};if(null==L)return ke;var Lt=!1;$=Xs($,function(Fn){return Fn=Jr(Fn,L),Lt||(Lt=Fn.length>1),Fn}),nc(L,Jd(L),ke),Lt&&(ke=ma(ke,7,Zd));for(var _n=$.length;_n--;)Zc(ke,$[_n]);return ke}),Km=pc(function(L,$){return null==L?{}:function Ds(L,$){return Ss(L,$,function(ke,Lt){return bg(L,Lt)})}(L,$)});function ip(L,$){if(null==L)return{};var ke=Xs(Jd(L),function(Lt){return[Lt]});return $=xs($),Ss(L,ke,function(Lt,_n){return $(Lt,_n[0])})}var rp=wd(Jl),$m=wd(Pc);function Ru(L){return null==L?[]:Di(L,Jl(L))}var Ym=bc(function(L,$,ke){return $=$.toLowerCase(),L+(ke?Nu($):$)});function Nu(L){return Sf(Ra(L).toLowerCase())}function mf(L){return(L=Ra(L))&&L.replace(Vn,da).replace(Uo,"")}var Qm=bc(function(L,$,ke){return L+(ke?"-":"")+$.toLowerCase()}),Zm=bc(function(L,$,ke){return L+(ke?" ":"")+$.toLowerCase()}),Pg=ju("toLowerCase"),lp=bc(function(L,$,ke){return L+(ke?"_":"")+$.toLowerCase()}),tv=bc(function(L,$,ke){return L+(ke?" ":"")+Sf($)}),Ig=bc(function(L,$,ke){return L+(ke?" ":"")+$.toUpperCase()}),Sf=ju("toUpperCase");function dp(L,$,ke){return L=Ra(L),($=ke?n:$)===n?function $n(li){return Ha.test(li)}(L)?function Qa(li){return li.match(pa)||[]}(L):function Xi(li){return li.match(Gn)||[]}(L):L.match($)||[]}var bf=Gs(function(L,$){try{return co(L,n,$)}catch(ke){return wu(ke)?ke:new ns(ke)}}),wg=pc(function(L,$){return $s($,function(ke){ke=jc(ke),Ps(L,ke,Dh(L[ke],L))}),L});function Cf(L){return function(){return L}}var Lh=Sd(),Rg=Sd(!0);function sc(L){return L}function lh(L){return bi("function"==typeof L?L:ma(L,1))}var h_=Gs(function(L,$){return function(ke){return Ct(ke,L,$)}}),rv=Gs(function(L,$){return function(ke){return Ct(L,ke,$)}});function hp(L,$,ke){var Lt=Jl($),_n=y($,Lt);null==ke&&(!Ml($)||!_n.length&&Lt.length)&&(ke=$,$=L,L=this,_n=y($,Jl($)));var Fn=!(Ml(ke)&&"chain"in ke&&!ke.chain),ni=Pd(L);return $s(_n,function(ci){var Mi=$[ci];L[ci]=Mi,ni&&(L.prototype[ci]=function(){var or=this.__chain__;if(Fn||or){var sr=L(this.__wrapped__);return(sr.__actions__=Ia(this.__actions__)).push({func:Mi,args:arguments,thisArg:L}),sr.__chain__=or,sr}return Mi.apply(L,_a([this.value()],arguments))})}),L}function Af(){}var kg=cd(Xs),Fg=cd(ba),ch=cd(jo);function fp(L){return tu(L)?Dt(jc(L)):function Js(L){return function($){return c($,L)}}(L)}var sv=Wu(),Of=Wu(!0);function su(){return[]}function kh(){return!1}var vp=ld(function(L,$){return L+$},0),ov=Xl("ceil"),av=ld(function(L,$){return L/$},1),lv=Xl("floor"),jg=ld(function(L,$){return L*$},1),fv=Xl("round"),pv=ld(function(L,$){return L-$},0);return ln.after=function Ph(L,$){if("function"!=typeof $)throw new Vr(M);return L=To(L),function(){if(--L<1)return $.apply(this,arguments)}},ln.ary=rg,ln.assign=_g,ln.assignIn=Bm,ln.assignInWith=Qf,ln.assignWith=wh,ln.at=Zf,ln.before=Mh,ln.bind=Dh,ln.bindAll=wg,ln.bindKey=sg,ln.castArray=function Tu(){if(!arguments.length)return[];var L=arguments[0];return ko(L)?L:[L]},ln.chain=Tl,ln.chunk=function Vd(L,$,ke){$=(ke?Al(L,$,ke):$===n)?1:tt(To($),0);var Lt=null==L?0:L.length;if(!Lt||$<1)return[];for(var _n=0,Fn=0,ni=Pi(xe(Lt/$));_n<Lt;)ni[Fn++]=Ka(L,_n,_n+=$);return ni},ln.compact=function Zu(L){for(var $=-1,ke=null==L?0:L.length,Lt=0,_n=[];++$<ke;){var Fn=L[$];Fn&&(_n[Lt++]=Fn)}return _n},ln.concat=function $h(){var L=arguments.length;if(!L)return[];for(var $=Pi(L-1),ke=arguments[0],Lt=L;Lt--;)$[Lt-1]=arguments[Lt];return _a(ko(ke)?Ia(ke):[ke],Ys($,1))},ln.cond=function Ef(L){var $=null==L?0:L.length,ke=xs();return L=$?Xs(L,function(Lt){if("function"!=typeof Lt[1])throw new Vr(M);return[ke(Lt[0]),Lt[1]]}):[],Gs(function(Lt){for(var _n=-1;++_n<$;){var Fn=L[_n];if(co(Fn[0],this,Lt))return co(Fn[1],this,Lt)}})},ln.conforms=function Nh(L){return function lc(L){var $=Jl(L);return function(ke){return Qc(ke,L,$)}}(ma(L,1))},ln.constant=Cf,ln.countBy=Lf,ln.create=function Vm(L,$){var ke=ki(L);return null==$?ke:os(ke,$)},ln.curry=function Vf(L,$,ke){var Lt=fc(L,8,n,n,n,n,n,$=ke?n:$);return Lt.placeholder=Vf.placeholder,Lt},ln.curryRight=function tf(L,$,ke){var Lt=fc(L,16,n,n,n,n,n,$=ke?n:$);return Lt.placeholder=tf.placeholder,Lt},ln.debounce=xh,ln.defaults=ff,ln.defaultsDeep=yg,ln.defer=nf,ln.delay=og,ln.difference=gh,ln.differenceBy=td,ln.differenceWith=Xh,ln.drop=function Ju(L,$,ke){var Lt=null==L?0:L.length;return Lt?Ka(L,($=ke||$===n?1:To($))<0?0:$,Lt):[]},ln.dropRight=function bu(L,$,ke){var Lt=null==L?0:L.length;return Lt?Ka(L,0,($=Lt-($=ke||$===n?1:To($)))<0?0:$):[]},ln.dropRightWhile=function If(L,$){return L&&L.length?kc(L,xs($,3),!0,!0):[]},ln.dropWhile=function Yh(L,$){return L&&L.length?kc(L,xs($,3),!0):[]},ln.fill=function Qh(L,$,ke,Lt){var _n=null==L?0:L.length;return _n?(ke&&"number"!=typeof ke&&Al(L,$,ke)&&(ke=0,Lt=_n),function wc(L,$,ke,Lt){var _n=L.length;for((ke=To(ke))<0&&(ke=-ke>_n?0:_n+ke),(Lt=Lt===n||Lt>_n?_n:To(Lt))<0&&(Lt+=_n),Lt=ke>Lt?0:hf(Lt);ke<Lt;)L[ke++]=$;return L}(L,$,ke,Lt)):[]},ln.filter=function Sh(L,$){return(ko(L)?uo:Kd)(L,xs($,3))},ln.flatMap=function qh(L,$){return Ys(Ah(L,$),1)},ln.flatMapDeep=function ih(L,$){return Ys(Ah(L,$),Qe)},ln.flatMapDepth=function eg(L,$,ke){return ke=ke===n?1:To(ke),Ys(Ah(L,$),ke)},ln.flatten=qu,ln.flattenDeep=function wf(L){return null!=L&&L.length?Ys(L,Qe):[]},ln.flattenDepth=function Zh(L,$){return null!=L&&L.length?Ys(L,$=$===n?1:To($)):[]},ln.flip=function ag(L){return fc(L,512)},ln.flow=Lh,ln.flowRight=Rg,ln.fromPairs=function Jp(L){for(var $=-1,ke=null==L?0:L.length,Lt={};++$<ke;){var _n=L[$];Lt[_n[0]]=_n[1]}return Lt},ln.functions=function Jf(L){return null==L?[]:y(L,Jl(L))},ln.functionsIn=function n_(L){return null==L?[]:y(L,Pc(L))},ln.groupBy=Yv,ln.initial=function qp(L){return null!=L&&L.length?Ka(L,0,-1):[]},ln.intersection=Ql,ln.intersectionBy=vh,ln.intersectionWith=Jh,ln.invert=i_,ln.invertBy=r_,ln.invokeMap=Ch,ln.iteratee=lh,ln.keyBy=Sm,ln.keys=Jl,ln.keysIn=Pc,ln.map=Ah,ln.mapKeys=function pf(L,$){var ke={};return $=xs($,3),Zr(L,function(Lt,_n,Fn){Ps(ke,$(Lt,_n,Fn),Lt)}),ke},ln.mapValues=function ep(L,$){var ke={};return $=xs($,3),Zr(L,function(Lt,_n,Fn){Ps(ke,_n,$(Lt,_n,Fn))}),ke},ln.matches=function iv(L){return ys(ma(L,1))},ln.matchesProperty=function Ng(L,$){return Fr(L,ma($,1))},ln.memoize=rf,ln.merge=tp,ln.mergeWith=np,ln.method=h_,ln.methodOf=rv,ln.mixin=hp,ln.negate=xu,ln.nthArg=function Po(L){return L=To(L),Gs(function($){return go($,L)})},ln.omit=Eg,ln.omitBy=function Cg(L,$){return ip(L,xu(xs($)))},ln.once=function Gf(L){return Mh(2,L)},ln.orderBy=function bm(L,$,ke,Lt){return null==L?[]:(ko($)||($=null==$?[]:[$]),ko(ke=Lt?n:ke)||(ke=null==ke?[]:[ke]),Vo(L,$,ke))},ln.over=kg,ln.overArgs=rh,ln.overEvery=Fg,ln.overSome=ch,ln.partial=Hf,ln.partialRight=lg,ln.partition=Em,ln.pick=Km,ln.pickBy=ip,ln.property=fp,ln.propertyOf=function pp(L){return function($){return null==L?n:c(L,$)}},ln.pull=Me,ln.pullAll=w,ln.pullAllBy=function ie(L,$,ke){return L&&L.length&&$&&$.length?xo(L,$,xs(ke,2)):L},ln.pullAllWith=function We(L,$,ke){return L&&L.length&&$&&$.length?xo(L,$,n,ke):L},ln.pullAt=xt,ln.range=sv,ln.rangeRight=Of,ln.rearg=Zv,ln.reject=function Cm(L,$){return(ko(L)?uo:Kd)(L,xu(xs($,3)))},ln.remove=function hn(L,$){var ke=[];if(!L||!L.length)return ke;var Lt=-1,_n=[],Fn=L.length;for($=xs($,3);++Lt<Fn;){var ni=L[Lt];$(ni,Lt,L)&&(ke.push(ni),_n.push(Lt))}return va(L,_n),ke},ln.rest=function sf(L,$){if("function"!=typeof L)throw new Vr(M);return Gs(L,$=$===n?$:To($))},ln.reverse=On,ln.sampleSize=function Oh(L,$,ke){return $=(ke?Al(L,$,ke):$===n)?1:To($),(ko(L)?Hn:Ua)(L,$)},ln.set=function Kc(L,$,ke){return null==L?L:Za(L,$,ke)},ln.setWith=function md(L,$,ke,Lt){return Lt="function"==typeof Lt?Lt:n,null==L?L:Za(L,$,ke,Lt)},ln.shuffle=function ng(L){return(ko(L)?xi:gl)(L)},ln.slice=function Yn(L,$,ke){var Lt=null==L?0:L.length;return Lt?(ke&&"number"!=typeof ke&&Al(L,$,ke)?($=0,ke=Lt):($=null==$?0:To($),ke=ke===n?Lt:To(ke)),Ka(L,$,ke)):[]},ln.sortBy=Qv,ln.sortedUniq=function ls(L){return L&&L.length?Nc(L):[]},ln.sortedUniqBy=function Yo(L,$){return L&&L.length?Nc(L,xs($,2)):[]},ln.split=function ev(L,$,ke){return ke&&"number"!=typeof ke&&Al(L,$,ke)&&($=ke=n),(ke=ke===n?Je:ke>>>0)?(L=Ra(L))&&("string"==typeof $||null!=$&&!$f($))&&!($=ul($))&&ra(L)?Lo(wr(L),0,ke):L.split($,ke):[]},ln.spread=function jf(L,$){if("function"!=typeof L)throw new Vr(M);return $=null==$?0:tt(To($),0),Gs(function(ke){var Lt=ke[$],_n=Lo(ke,0,$);return Lt&&_a(_n,Lt),co(L,this,_n)})},ln.tail=function wa(L){var $=null==L?0:L.length;return $?Ka(L,1,$):[]},ln.take=function tl(L,$,ke){return L&&L.length?Ka(L,0,($=ke||$===n?1:To($))<0?0:$):[]},ln.takeRight=function xl(L,$,ke){var Lt=null==L?0:L.length;return Lt?Ka(L,($=Lt-($=ke||$===n?1:To($)))<0?0:$,Lt):[]},ln.takeRightWhile=function Ol(L,$){return L&&L.length?kc(L,xs($,3),!1,!0):[]},ln.takeWhile=function Cd(L,$){return L&&L.length?kc(L,xs($,3)):[]},ln.tap=function gd(L,$){return $(L),L},ln.throttle=function cg(L,$,ke){var Lt=!0,_n=!0;if("function"!=typeof L)throw new Vr(M);return Ml(ke)&&(Lt="leading"in ke?!!ke.leading:Lt,_n="trailing"in ke?!!ke.trailing:_n),xh(L,$,{leading:Lt,maxWait:$,trailing:_n})},ln.thru=Va,ln.toArray=uf,ln.toPairs=rp,ln.toPairsIn=$m,ln.toPath=function Bg(L){return ko(L)?Xs(L,jc):Oc(L)?[L]:Ia(yu(Ra(L)))},ln.toPlainObject=vg,ln.transform=function Xm(L,$,ke){var Lt=ko(L),_n=Lt||iu(L)||oh(L);if($=xs($,4),null==ke){var Fn=L&&L.constructor;ke=_n?Lt?new Fn:[]:Ml(L)&&Pd(Fn)?ki(pl(L)):{}}return(_n?$s:Zr)(L,function(ni,ci,Mi){return $(ke,ni,ci,Mi)}),ke},ln.unary=function dg(L){return rg(L,1)},ln.union=Cc,ln.unionBy=Nl,ln.unionWith=Gl,ln.uniq=function Ad(L){return L&&L.length?Kl(L):[]},ln.uniqBy=function pd(L,$){return L&&L.length?Kl(L,xs($,2)):[]},ln.uniqWith=function eh(L,$){return $="function"==typeof $?$:n,L&&L.length?Kl(L,n,$):[]},ln.unset=function o_(L,$){return null==L||Zc(L,$)},ln.unzip=zc,ln.unzipWith=Ou,ln.update=function a_(L,$,ke){return null==L?L:Lc(L,$,$a(ke))},ln.updateWith=function Ag(L,$,ke,Lt){return Lt="function"==typeof Lt?Lt:n,null==L?L:Lc(L,$,$a(ke),Lt)},ln.values=Ru,ln.valuesIn=function l_(L){return null==L?[]:Di(L,Pc(L))},ln.without=th,ln.words=dp,ln.wrap=function ug(L,$){return Hf($a($),L)},ln.xor=Pu,ln.xorBy=gs,ln.xorWith=Hs,ln.zip=Ns,ln.zipObject=function qo(L,$){return uc(L||[],$||[],ts)},ln.zipObjectDeep=function El(L,$){return uc(L||[],$||[],Za)},ln.zipWith=vc,ln.entries=rp,ln.entriesIn=$m,ln.extend=Bm,ln.extendWith=Qf,hp(ln,ln),ln.add=vp,ln.attempt=bf,ln.camelCase=Ym,ln.capitalize=Nu,ln.ceil=ov,ln.clamp=function gf(L,$,ke){return ke===n&&(ke=$,$=n),ke!==n&&(ke=(ke=id(ke))==ke?ke:0),$!==n&&($=($=id($))==$?$:0),Aa(id(L),$,ke)},ln.clone=function Pm(L){return ma(L,4)},ln.cloneDeep=function Dm(L){return ma(L,5)},ln.cloneDeepWith=function Jv(L,$){return ma(L,5,$="function"==typeof $?$:n)},ln.cloneWith=function Mm(L,$){return ma(L,4,$="function"==typeof $?$:n)},ln.conformsTo=function xm(L,$){return null==$||Qc(L,$,Jl($))},ln.deburr=mf,ln.defaultTo=function up(L,$){return null==L||L!=L?$:L},ln.divide=av,ln.endsWith=function Og(L,$,ke){L=Ra(L),$=ul($);var Lt=L.length,_n=ke=ke===n?Lt:Aa(To(ke),0,Lt);return(ke-=$.length)>=0&&L.slice(ke,_n)==$},ln.eq=Ll,ln.escape=function ap(L){return(L=Ra(L))&&V.test(L)?L.replace(Bt,jr):L},ln.escapeRegExp=function vf(L){return(L=Ra(L))&&kn.test(L)?L.replace(En,"\\$&"):L},ln.every=function nh(L,$,ke){var Lt=ko(L)?ba:zl;return ke&&Al(L,$,ke)&&($=n),Lt(L,xs($,3))},ln.find=kf,ln.findIndex=Eu,ln.findKey=function Gm(L,$){return Ao(L,xs($,3),Zr)},ln.findLast=bh,ln.findLastIndex=Cu,ln.findLastKey=function t_(L,$){return Ao(L,xs($,3),od)},ln.floor=lv,ln.forEach=ef,ln.forEachRight=Eh,ln.forIn=function Hm(L,$){return null==L?L:ec(L,xs($,3),Pc)},ln.forInRight=function jm(L,$){return null==L?L:Rc(L,xs($,3),Pc)},ln.forOwn=function Wm(L,$){return L&&Zr(L,xs($,3))},ln.forOwnRight=function zm(L,$){return L&&od(L,xs($,3))},ln.get=Sg,ln.gt=sh,ln.gte=Tm,ln.has=function qf(L,$){return null!=L&&Ed(L,$,Z)},ln.hasIn=bg,ln.head=mh,ln.identity=sc,ln.includes=function Ff(L,$,ke,Lt){L=Ac(L)?L:Ru(L),ke=ke&&!Lt?To(ke):0;var _n=L.length;return ke<0&&(ke=tt(_n+ke,0)),cf(L)?ke<=_n&&L.indexOf($,ke)>-1:!!_n&&ca(L,$,ke)>-1},ln.indexOf=function Rf(L,$,ke){var Lt=null==L?0:L.length;if(!Lt)return-1;var _n=null==ke?0:To(ke);return _n<0&&(_n=tt(Lt+_n,0)),ca(L,$,_n)},ln.inRange=function sp(L,$,ke){return $=nd($),ke===n?(ke=$,$=0):ke=nd(ke),function Oe(L,$,ke){return L>=Tt($,ke)&&L<tt($,ke)}(L=id(L),$,ke)},ln.invoke=s_,ln.isArguments=Iu,ln.isArray=ko,ln.isArrayBuffer=Im,ln.isArrayLike=Ac,ln.isArrayLikeObject=Pl,ln.isBoolean=function hg(L){return!0===L||!1===L||Dl(L)&&O(L)==J},ln.isBuffer=iu,ln.isDate=wm,ln.isElement=function Rm(L){return Dl(L)&&1===L.nodeType&&!Th(L)},ln.isEmpty=function Nm(L){if(null==L)return!0;if(Ac(L)&&(ko(L)||"string"==typeof L||"function"==typeof L.splice||iu(L)||oh(L)||Iu(L)))return!L.length;var $=ol(L);if($==Ce||$==fe)return!L.size;if(Gc(L))return!$i(L).length;for(var ke in L)if(Os.call(L,ke))return!1;return!0},ln.isEqual=function af(L,$){return gn(L,$)},ln.isEqualWith=function Gd(L,$,ke){var Lt=(ke="function"==typeof ke?ke:n)?ke(L,$):n;return Lt===n?gn(L,$,n,ke):!!Lt},ln.isError=wu,ln.isFinite=function fg(L){return"number"==typeof L&&Gt(L)},ln.isFunction=Pd,ln.isInteger=Wf,ln.isLength=zf,ln.isMap=lf,ln.isMatch=function Kf(L,$){return L===$||Bn(L,$,Vc($))},ln.isMatchWith=function qv(L,$,ke){return ke="function"==typeof ke?ke:n,Bn(L,$,Vc($),ke)},ln.isNaN=function e_(L){return gg(L)&&L!=+L},ln.isNative=function pg(L){if(rc(L))throw new ns("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return ei(L)},ln.isNil=function km(L){return null==L},ln.isNull=function Lm(L){return null===L},ln.isNumber=gg,ln.isObject=Ml,ln.isObjectLike=Dl,ln.isPlainObject=Th,ln.isRegExp=$f,ln.isSafeInteger=function mg(L){return Wf(L)&&L>=-ct&&L<=ct},ln.isSet=Xf,ln.isString=cf,ln.isSymbol=Oc,ln.isTypedArray=oh,ln.isUndefined=function Ih(L){return L===n},ln.isWeakMap=function Yf(L){return Dl(L)&&ol(L)==sn},ln.isWeakSet=function df(L){return Dl(L)&&"[object WeakSet]"==O(L)},ln.join=function _h(L,$){return null==L?"":$t.call(L,$)},ln.kebabCase=Qm,ln.last=Ba,ln.lastIndexOf=function Au(L,$,ke){var Lt=null==L?0:L.length;if(!Lt)return-1;var _n=Lt;return ke!==n&&(_n=(_n=To(ke))<0?tt(Lt+_n,0):Tt(_n,Lt-1)),$==$?function es(li,Ii,Pi){for(var Dr=Pi+1;Dr--;)if(li[Dr]===Ii)return Dr;return Dr}(L,$,_n):ps(L,ga,_n,!0)},ln.lowerCase=Zm,ln.lowerFirst=Pg,ln.lt=Fm,ln.lte=ru,ln.max=function Gg(L){return L&&L.length?Fl(L,sc,F):n},ln.maxBy=function cv(L,$){return L&&L.length?Fl(L,xs($,2),F):n},ln.mean=function dv(L){return on(L,sc)},ln.meanBy=function uv(L,$){return on(L,xs($,2))},ln.min=function hv(L){return L&&L.length?Fl(L,sc,nr):n},ln.minBy=function Hg(L,$){return L&&L.length?Fl(L,xs($,2),nr):n},ln.stubArray=su,ln.stubFalse=kh,ln.stubObject=function Fh(){return{}},ln.stubString=function Ug(){return""},ln.stubTrue=function gp(){return!0},ln.multiply=jg,ln.nth=function De(L,$){return L&&L.length?go(L,To($)):n},ln.noConflict=function Lg(){return Eo._===this&&(Eo._=Vi),this},ln.noop=Af,ln.now=Bf,ln.pad=function Jm(L,$,ke){L=Ra(L);var Lt=($=To($))?Zs(L):0;if(!$||Lt>=$)return L;var _n=($-Lt)/2;return dd(He(_n),ke)+L+dd(xe(_n),ke)},ln.padEnd=function c_(L,$,ke){L=Ra(L);var Lt=($=To($))?Zs(L):0;return $&&Lt<$?L+dd($-Lt,ke):L},ln.padStart=function qm(L,$,ke){L=Ra(L);var Lt=($=To($))?Zs(L):0;return $&&Lt<$?dd($-Lt,ke)+L:L},ln.parseInt=function Mg(L,$,ke){return ke||null==$?$=0:$&&($=+$),kt(Ra(L).replace(Ai,""),$||0)},ln.random=function op(L,$,ke){if(ke&&"boolean"!=typeof ke&&Al(L,$,ke)&&($=ke=n),ke===n&&("boolean"==typeof $?(ke=$,$=n):"boolean"==typeof L&&(ke=L,L=n)),L===n&&$===n?(L=0,$=1):(L=nd(L),$===n?($=L,L=0):$=nd($)),L>$){var Lt=L;L=$,$=Lt}if(ke||L%1||$%1){var _n=It();return Tt(L+_n*($-L+wo("1e-"+((_n+"").length-1))),$)}return to(L,$)},ln.reduce=function Uf(L,$,ke){var Lt=ko(L)?zi:Dn,_n=arguments.length<3;return Lt(L,xs($,4),ke,_n,dl)},ln.reduceRight=function tg(L,$,ke){var Lt=ko(L)?Ae:Dn,_n=arguments.length<3;return Lt(L,xs($,4),ke,_n,kl)},ln.repeat=function Rh(L,$,ke){return $=(ke?Al(L,$,ke):$===n)?1:To($),wl(Ra(L),$)},ln.replace=function _f(){var L=arguments,$=Ra(L[0]);return L.length<3?$:$.replace(L[1],L[2])},ln.result=function ah(L,$,ke){var Lt=-1,_n=($=Jr($,L)).length;for(_n||(_n=1,L=n);++Lt<_n;){var Fn=null==L?n:L[jc($[Lt])];Fn===n&&(Lt=_n,Fn=ke),L=Pd(Fn)?Fn.call(L):Fn}return L},ln.round=fv,ln.runInContext=li,ln.sample=function Am(L){return(ko(L)?an:Sa)(L)},ln.size=function ig(L){if(null==L)return 0;if(Ac(L))return cf(L)?Zs(L):L.length;var $=ol(L);return $==Ce||$==fe?L.size:$i(L).length},ln.snakeCase=lp,ln.some=function Om(L,$,ke){var Lt=ko(L)?jo:cc;return ke&&Al(L,$,ke)&&($=n),Lt(L,xs($,3))},ln.sortedIndex=function ti(L,$){return dc(L,$)},ln.sortedIndexBy=function Ri(L,$,ke){return Bl(L,$,xs(ke,2))},ln.sortedIndexOf=function ji(L,$){var ke=null==L?0:L.length;if(ke){var Lt=dc(L,$);if(Lt<ke&&Ll(L[Lt],$))return Lt}return-1},ln.sortedLastIndex=function Tr(L,$){return dc(L,$,!0)},ln.sortedLastIndexBy=function ss(L,$,ke){return Bl(L,$,xs(ke,2),!0)},ln.sortedLastIndexOf=function Xr(L,$){if(null!=L&&L.length){var Lt=dc(L,$,!0)-1;if(Ll(L[Lt],$))return Lt}return-1},ln.startCase=tv,ln.startsWith=function cp(L,$,ke){return L=Ra(L),ke=null==ke?0:Aa(To(ke),0,L.length),$=ul($),L.slice(ke,ke+$.length)==$},ln.subtract=pv,ln.sum=function Mc(L){return L&&L.length?Yr(L,sc):0},ln.sumBy=function f_(L,$){return L&&L.length?Yr(L,xs($,2)):0},ln.template=function Dg(L,$,ke){var Lt=ln.templateSettings;ke&&Al(L,$,ke)&&($=n),L=Ra(L),$=Qf({},$,Lt,Qd);var ci,Mi,_n=Qf({},$.imports,Lt.imports,Qd),Fn=Jl(_n),ni=Di(_n,Fn),or=0,sr=$.interpolate||Ei,fr="__p += '",is=Da(($.escape||Ei).source+"|"+sr.source+"|"+(sr===Ft?ir:Ei).source+"|"+($.evaluate||Ei).source+"|$","g"),Ls="//# sourceURL="+(Os.call($,"sourceURL")?($.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Xa+"]")+"\n";L.replace(is,function(Bs,Qo,ha,$c,oc,Dc){return ha||(ha=$c),fr+=L.slice(or,Dc).replace(ai,ia),Qo&&(ci=!0,fr+="' +\n__e("+Qo+") +\n'"),oc&&(Mi=!0,fr+="';\n"+oc+";\n__p += '"),ha&&(fr+="' +\n((__t = ("+ha+")) == null ? '' : __t) +\n'"),or=Dc+Bs.length,Bs}),fr+="';\n";var ro=Os.call($,"variable")&&$.variable;if(ro){if(Kn.test(ro))throw new ns("Invalid `variable` option passed into `_.template`")}else fr="with (obj) {\n"+fr+"\n}\n";fr=(Mi?fr.replace(gt,""):fr).replace(Ht,"$1").replace(bn,"$1;"),fr="function("+(ro||"obj")+") {\n"+(ro?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(ci?", __e = _.escape":"")+(Mi?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+fr+"return __p\n}";var zo=bf(function(){return ws(Fn,Ls+"return "+fr).apply(n,ni)});if(zo.source=fr,wu(zo))throw zo;return zo},ln.times=function mp(L,$){if((L=To(L))<1||L>ct)return[];var ke=Je,Lt=Tt(L,Je);$=xs($),L-=Je;for(var _n=_s(Lt,$);++ke<L;)$(ke);return _n},ln.toFinite=nd,ln.toInteger=To,ln.toLength=hf,ln.toLower=function Lu(L){return Ra(L).toLowerCase()},ln.toNumber=id,ln.toSafeInteger=function Um(L){return L?Aa(To(L),-ct,ct):0===L?L:0},ln.toString=Ra,ln.toUpper=function xg(L){return Ra(L).toUpperCase()},ln.trim=function Tg(L,$,ke){if((L=Ra(L))&&(ke||$===n))return Ws(L);if(!L||!($=ul($)))return L;var Lt=wr(L),_n=wr($);return Lo(Lt,vl(Lt,_n),hs(Lt,_n)+1).join("")},ln.trimEnd=function nv(L,$,ke){if((L=Ra(L))&&(ke||$===n))return L.slice(0,Us(L)+1);if(!L||!($=ul($)))return L;var Lt=wr(L);return Lo(Lt,0,hs(Lt,wr($))+1).join("")},ln.trimStart=function d_(L,$,ke){if((L=Ra(L))&&(ke||$===n))return L.replace(Ai,"");if(!L||!($=ul($)))return L;var Lt=wr(L);return Lo(Lt,vl(Lt,wr($))).join("")},ln.truncate=function yf(L,$){var ke=30,Lt="...";if(Ml($)){var _n="separator"in $?$.separator:_n;ke="length"in $?To($.length):ke,Lt="omission"in $?ul($.omission):Lt}var Fn=(L=Ra(L)).length;if(ra(L)){var ni=wr(L);Fn=ni.length}if(ke>=Fn)return L;var ci=ke-Zs(Lt);if(ci<1)return Lt;var Mi=ni?Lo(ni,0,ci).join(""):L.slice(0,ci);if(_n===n)return Mi+Lt;if(ni&&(ci+=Mi.length-ci),$f(_n)){if(L.slice(ci).search(_n)){var or,sr=Mi;for(_n.global||(_n=Da(_n.source,Ra(Ir.exec(_n))+"g")),_n.lastIndex=0;or=_n.exec(sr);)var fr=or.index;Mi=Mi.slice(0,fr===n?ci:fr)}}else if(L.indexOf(ul(_n),ci)!=ci){var is=Mi.lastIndexOf(_n);is>-1&&(Mi=Mi.slice(0,is))}return Mi+Lt},ln.unescape=function u_(L){return(L=Ra(L))&&Le.test(L)?L.replace(Ut,Vs):L},ln.uniqueId=function Vg(L){var $=++lr;return Ra(L)+$},ln.upperCase=Ig,ln.upperFirst=Sf,ln.each=ef,ln.eachRight=Eh,ln.first=mh,hp(ln,function(){var L={};return Zr(ln,function($,ke){Os.call(ln.prototype,ke)||(L[ke]=$)}),L}(),{chain:!1}),ln.VERSION="4.17.21",$s(["bind","bindKey","curry","curryRight","partial","partialRight"],function(L){ln[L].placeholder=ln}),$s(["drop","take"],function(L,$){pr.prototype[L]=function(ke){ke=ke===n?1:tt(To(ke),0);var Lt=this.__filtered__&&!$?new pr(this):this.clone();return Lt.__filtered__?Lt.__takeCount__=Tt(ke,Lt.__takeCount__):Lt.__views__.push({size:Tt(ke,Je),type:L+(Lt.__dir__<0?"Right":"")}),Lt},pr.prototype[L+"Right"]=function(ke){return this.reverse()[L](ke).reverse()}}),$s(["filter","map","takeWhile"],function(L,$){var ke=$+1,Lt=1==ke||3==ke;pr.prototype[L]=function(_n){var Fn=this.clone();return Fn.__iteratees__.push({iteratee:xs(_n,3),type:ke}),Fn.__filtered__=Fn.__filtered__||Lt,Fn}}),$s(["head","last"],function(L,$){var ke="take"+($?"Right":"");pr.prototype[L]=function(){return this[ke](1).value()[0]}}),$s(["initial","tail"],function(L,$){var ke="drop"+($?"":"Right");pr.prototype[L]=function(){return this.__filtered__?new pr(this):this[ke](1)}}),pr.prototype.compact=function(){return this.filter(sc)},pr.prototype.find=function(L){return this.filter(L).head()},pr.prototype.findLast=function(L){return this.reverse().find(L)},pr.prototype.invokeMap=Gs(function(L,$){return"function"==typeof L?new pr(this):this.map(function(ke){return Ct(ke,L,$)})}),pr.prototype.reject=function(L){return this.filter(xu(xs(L)))},pr.prototype.slice=function(L,$){L=To(L);var ke=this;return ke.__filtered__&&(L>0||$<0)?new pr(ke):(L<0?ke=ke.takeRight(-L):L&&(ke=ke.drop(L)),$!==n&&(ke=($=To($))<0?ke.dropRight(-$):ke.take($-L)),ke)},pr.prototype.takeRightWhile=function(L){return this.reverse().takeWhile(L).reverse()},pr.prototype.toArray=function(){return this.take(Je)},Zr(pr.prototype,function(L,$){var ke=/^(?:filter|find|map|reject)|While$/.test($),Lt=/^(?:head|last)$/.test($),_n=ln[Lt?"take"+("last"==$?"Right":""):$],Fn=Lt||/^find/.test($);_n&&(ln.prototype[$]=function(){var ni=this.__wrapped__,ci=Lt?[1]:arguments,Mi=ni instanceof pr,or=ci[0],sr=Mi||ko(ni),fr=function(Qo){var ha=_n.apply(ln,_a([Qo],ci));return Lt&&is?ha[0]:ha};sr&&ke&&"function"==typeof or&&1!=or.length&&(Mi=sr=!1);var is=this.__chain__,ro=Fn&&!is,zo=Mi&&!this.__actions__.length;if(!Fn&&sr){ni=zo?ni:new pr(this);var Bs=L.apply(ni,ci);return Bs.__actions__.push({func:Va,args:[fr],thisArg:n}),new Ki(Bs,is)}return ro&&zo?L.apply(this,ci):(Bs=this.thru(fr),ro?Lt?Bs.value()[0]:Bs.value():Bs)})}),$s(["pop","push","shift","sort","splice","unshift"],function(L){var $=Ca[L],ke=/^(?:push|sort|unshift)$/.test(L)?"tap":"thru",Lt=/^(?:pop|shift)$/.test(L);ln.prototype[L]=function(){var _n=arguments;if(Lt&&!this.__chain__){var Fn=this.value();return $.apply(ko(Fn)?Fn:[],_n)}return this[ke](function(ni){return $.apply(ko(ni)?ni:[],_n)})}}),Zr(pr.prototype,function(L,$){var ke=ln[$];if(ke){var Lt=ke.name+"";Os.call(_t,Lt)||(_t[Lt]=[]),_t[Lt].push({name:$,func:ke})}}),_t[ad(n,2).name]=[{name:"wrapper",func:n}],pr.prototype.clone=function Ti(){var L=new pr(this.__wrapped__);return L.__actions__=Ia(this.__actions__),L.__dir__=this.__dir__,L.__filtered__=this.__filtered__,L.__iteratees__=Ia(this.__iteratees__),L.__takeCount__=this.__takeCount__,L.__views__=Ia(this.__views__),L},pr.prototype.reverse=function Qi(){if(this.__filtered__){var L=new pr(this);L.__dir__=-1,L.__filtered__=!0}else(L=this.clone()).__dir__*=-1;return L},pr.prototype.value=function Gr(){var L=this.__wrapped__.value(),$=this.__dir__,ke=ko(L),Lt=$<0,_n=ke?L.length:0,Fn=function Ku(L,$,ke){for(var Lt=-1,_n=ke.length;++Lt<_n;){var Fn=ke[Lt],ni=Fn.size;switch(Fn.type){case"drop":L+=ni;break;case"dropRight":$-=ni;break;case"take":$=Tt($,L+ni);break;case"takeRight":L=tt(L,$-ni)}}return{start:L,end:$}}(0,_n,this.__views__),ni=Fn.start,ci=Fn.end,Mi=ci-ni,or=Lt?ci:ni-1,sr=this.__iteratees__,fr=sr.length,is=0,Ls=Tt(Mi,this.__takeCount__);if(!ke||!Lt&&_n==Mi&&Ls==Mi)return No(L,this.__actions__);var ro=[];e:for(;Mi--&&is<Ls;){for(var zo=-1,Bs=L[or+=$];++zo<fr;){var Qo=sr[zo],$c=Qo.type,oc=(0,Qo.iteratee)(Bs);if(2==$c)Bs=oc;else if(!oc){if(1==$c)continue e;break e}}ro[is++]=Bs}return ro},ln.prototype.at=Mu,ln.prototype.chain=function yh(){return Tl(this)},ln.prototype.commit=function Il(){return new Ki(this.value(),this.__chain__)},ln.prototype.next=function Od(){this.__values__===n&&(this.__values__=uf(this.value()));var L=this.__index__>=this.__values__.length;return{done:L,value:L?n:this.__values__[this.__index__++]}},ln.prototype.plant=function Zl(L){for(var $,ke=this;ke instanceof rr;){var Lt=Wc(ke);Lt.__index__=0,Lt.__values__=n,$?_n.__wrapped__=Lt:$=Lt;var _n=Lt;ke=ke.__wrapped__}return _n.__wrapped__=L,$},ln.prototype.reverse=function Du(){var L=this.__wrapped__;if(L instanceof pr){var $=L;return this.__actions__.length&&($=new pr(this)),($=$.reverse()).__actions__.push({func:Va,args:[On],thisArg:n}),new Ki($,this.__chain__)}return this.thru(On)},ln.prototype.toJSON=ln.prototype.valueOf=ln.prototype.value=function Nf(){return No(this.__wrapped__,this.__actions__)},ln.prototype.first=ln.prototype.head,_&&(ln.prototype[_]=function _c(){return this}),ln}();Eo._=Bo,(i=function(){return Bo}.call(z,s,z,St))!==n&&(St.exports=i)}.call(this)},6350:(St,z,s)=>{"use strict";St.exports=s(26222)},26222:(St,z,s)=>{"use strict";var i=z;function n(){i.util._configure(),i.Writer._configure(i.BufferWriter),i.Reader._configure(i.BufferReader)}i.build="minimal",i.Writer=s(60973),i.BufferWriter=s(72038),i.Reader=s(57249),i.BufferReader=s(58),i.util=s(75014),i.rpc=s(84043),i.roots=s(60653),i.configure=n,n()},57249:(St,z,s)=>{"use strict";St.exports=M;var n,i=s(75014),h=i.LongBits,C=i.utf8;function S(l,r){return RangeError("index out of range: "+l.pos+" + "+(r||1)+" > "+l.len)}function M(l){this.buf=l,this.pos=0,this.len=l.length}var P=typeof Uint8Array<"u"?function(r){if(r instanceof Uint8Array||Array.isArray(r))return new M(r);throw Error("illegal buffer")}:function(r){if(Array.isArray(r))return new M(r);throw Error("illegal buffer")},x=function(){return i.Buffer?function(u){return(M.create=function(E){return i.Buffer.isBuffer(E)?new n(E):P(E)})(u)}:P};function A(){var l=new h(0,0),r=0;if(!(this.len-this.pos>4)){for(;r<3;++r){if(this.pos>=this.len)throw S(this);if(l.lo=(l.lo|(127&this.buf[this.pos])<<7*r)>>>0,this.buf[this.pos++]<128)return l}return l.lo=(l.lo|(127&this.buf[this.pos++])<<7*r)>>>0,l}for(;r<4;++r)if(l.lo=(l.lo|(127&this.buf[this.pos])<<7*r)>>>0,this.buf[this.pos++]<128)return l;if(l.lo=(l.lo|(127&this.buf[this.pos])<<28)>>>0,l.hi=(l.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return l;if(r=0,this.len-this.pos>4){for(;r<5;++r)if(l.hi=(l.hi|(127&this.buf[this.pos])<<7*r+3)>>>0,this.buf[this.pos++]<128)return l}else for(;r<5;++r){if(this.pos>=this.len)throw S(this);if(l.hi=(l.hi|(127&this.buf[this.pos])<<7*r+3)>>>0,this.buf[this.pos++]<128)return l}throw Error("invalid varint encoding")}function g(l,r){return(l[r-4]|l[r-3]<<8|l[r-2]<<16|l[r-1]<<24)>>>0}function m(){if(this.pos+8>this.len)throw S(this,8);return new h(g(this.buf,this.pos+=4),g(this.buf,this.pos+=4))}M.create=x(),M.prototype._slice=i.Array.prototype.subarray||i.Array.prototype.slice,M.prototype.uint32=function(){var r=4294967295;return function(){if(r=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128||(r=(r|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)||(r=(r|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)||(r=(r|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)||(r=(r|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128))return r;if((this.pos+=5)>this.len)throw this.pos=this.len,S(this,10);return r}}(),M.prototype.int32=function(){return 0|this.uint32()},M.prototype.sint32=function(){var r=this.uint32();return r>>>1^-(1&r)},M.prototype.bool=function(){return 0!==this.uint32()},M.prototype.fixed32=function(){if(this.pos+4>this.len)throw S(this,4);return g(this.buf,this.pos+=4)},M.prototype.sfixed32=function(){if(this.pos+4>this.len)throw S(this,4);return 0|g(this.buf,this.pos+=4)},M.prototype.float=function(){if(this.pos+4>this.len)throw S(this,4);var r=i.float.readFloatLE(this.buf,this.pos);return this.pos+=4,r},M.prototype.double=function(){if(this.pos+8>this.len)throw S(this,4);var r=i.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,r},M.prototype.bytes=function(){var r=this.uint32(),u=this.pos,v=this.pos+r;if(v>this.len)throw S(this,r);if(this.pos+=r,Array.isArray(this.buf))return this.buf.slice(u,v);if(u===v){var E=i.Buffer;return E?E.alloc(0):new this.buf.constructor(0)}return this._slice.call(this.buf,u,v)},M.prototype.string=function(){var r=this.bytes();return C.read(r,0,r.length)},M.prototype.skip=function(r){if("number"==typeof r){if(this.pos+r>this.len)throw S(this,r);this.pos+=r}else do{if(this.pos>=this.len)throw S(this)}while(128&this.buf[this.pos++]);return this},M.prototype.skipType=function(l){switch(l){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!=(l=7&this.uint32());)this.skipType(l);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+l+" at offset "+this.pos)}return this},M._configure=function(l){n=l,M.create=x(),n._configure();var r=i.Long?"toLong":"toNumber";i.merge(M.prototype,{int64:function(){return A.call(this)[r](!1)},uint64:function(){return A.call(this)[r](!0)},sint64:function(){return A.call(this).zzDecode()[r](!1)},fixed64:function(){return m.call(this)[r](!0)},sfixed64:function(){return m.call(this)[r](!1)}})}},58:(St,z,s)=>{"use strict";St.exports=h;var i=s(57249);(h.prototype=Object.create(i.prototype)).constructor=h;var n=s(75014);function h(C){i.call(this,C)}h._configure=function(){n.Buffer&&(h.prototype._slice=n.Buffer.prototype.slice)},h.prototype.string=function(){var S=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+S,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+S,this.len))},h._configure()},60653:St=>{"use strict";St.exports={}},84043:(St,z,s)=>{"use strict";z.Service=s(11423)},11423:(St,z,s)=>{"use strict";St.exports=n;var i=s(75014);function n(h,C,S){if("function"!=typeof h)throw TypeError("rpcImpl must be a function");i.EventEmitter.call(this),this.rpcImpl=h,this.requestDelimited=!!C,this.responseDelimited=!!S}(n.prototype=Object.create(i.EventEmitter.prototype)).constructor=n,n.prototype.rpcCall=function h(C,S,M,P,x){if(!P)throw TypeError("request must be specified");var A=this;if(!x)return i.asPromise(h,A,C,S,M,P);if(A.rpcImpl)try{return A.rpcImpl(C,S[A.requestDelimited?"encodeDelimited":"encode"](P).finish(),function(m,l){if(m)return A.emit("error",m,C),x(m);if(null!==l){if(!(l instanceof M))try{l=M[A.responseDelimited?"decodeDelimited":"decode"](l)}catch(r){return A.emit("error",r,C),x(r)}return A.emit("data",l,C),x(null,l)}A.end(!0)})}catch(g){return A.emit("error",g,C),void setTimeout(function(){x(g)},0)}else setTimeout(function(){x(Error("already ended"))},0)},n.prototype.end=function(C){return this.rpcImpl&&(C||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this}},91995:(St,z,s)=>{"use strict";St.exports=n;var i=s(75014);function n(M,P){this.lo=M>>>0,this.hi=P>>>0}var h=n.zero=new n(0,0);h.toNumber=function(){return 0},h.zzEncode=h.zzDecode=function(){return this},h.length=function(){return 1};var C=n.zeroHash="\0\0\0\0\0\0\0\0";n.fromNumber=function(P){if(0===P)return h;var x=P<0;x&&(P=-P);var A=P>>>0,g=(P-A)/4294967296>>>0;return x&&(g=~g>>>0,A=~A>>>0,++A>4294967295&&(A=0,++g>4294967295&&(g=0))),new n(A,g)},n.from=function(P){if("number"==typeof P)return n.fromNumber(P);if(i.isString(P)){if(!i.Long)return n.fromNumber(parseInt(P,10));P=i.Long.fromString(P)}return P.low||P.high?new n(P.low>>>0,P.high>>>0):h},n.prototype.toNumber=function(P){if(!P&&this.hi>>>31){var x=1+~this.lo>>>0,A=~this.hi>>>0;return x||(A=A+1>>>0),-(x+4294967296*A)}return this.lo+4294967296*this.hi},n.prototype.toLong=function(P){return i.Long?new i.Long(0|this.lo,0|this.hi,!!P):{low:0|this.lo,high:0|this.hi,unsigned:!!P}};var S=String.prototype.charCodeAt;n.fromHash=function(P){return P===C?h:new n((S.call(P,0)|S.call(P,1)<<8|S.call(P,2)<<16|S.call(P,3)<<24)>>>0,(S.call(P,4)|S.call(P,5)<<8|S.call(P,6)<<16|S.call(P,7)<<24)>>>0)},n.prototype.toHash=function(){return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},n.prototype.zzEncode=function(){var P=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^P)>>>0,this.lo=(this.lo<<1^P)>>>0,this},n.prototype.zzDecode=function(){var P=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^P)>>>0,this.hi=(this.hi>>>1^P)>>>0,this},n.prototype.length=function(){var P=this.lo,x=(this.lo>>>28|this.hi<<4)>>>0,A=this.hi>>>24;return 0===A?0===x?P<16384?P<128?1:2:P<2097152?3:4:x<16384?x<128?5:6:x<2097152?7:8:A<128?9:10}},75014:function(St,z,s){"use strict";var i=z;function n(C,S,M){for(var P=Object.keys(S),x=0;x<P.length;++x)(void 0===C[P[x]]||!M)&&(C[P[x]]=S[P[x]]);return C}function h(C){function S(M,P){if(!(this instanceof S))return new S(M,P);Object.defineProperty(this,"message",{get:function(){return M}}),Error.captureStackTrace?Error.captureStackTrace(this,S):Object.defineProperty(this,"stack",{value:(new Error).stack||""}),P&&n(this,P)}return S.prototype=Object.create(Error.prototype,{constructor:{value:S,writable:!0,enumerable:!1,configurable:!0},name:{get:function(){return C},set:void 0,enumerable:!1,configurable:!0},toString:{value:function(){return this.name+": "+this.message},writable:!0,enumerable:!1,configurable:!0}}),S}i.asPromise=s(69753),i.base64=s(5275),i.EventEmitter=s(84978),i.float=s(8982),i.inquire=s(46469),i.utf8=s(61755),i.pool=s(74722),i.LongBits=s(91995),i.isNode=!!(typeof global<"u"&&global&&global.process&&global.process.versions&&global.process.versions.node),i.global=i.isNode&&global||typeof window<"u"&&window||typeof self<"u"&&self||this,i.emptyArray=Object.freeze?Object.freeze([]):[],i.emptyObject=Object.freeze?Object.freeze({}):{},i.isInteger=Number.isInteger||function(S){return"number"==typeof S&&isFinite(S)&&Math.floor(S)===S},i.isString=function(S){return"string"==typeof S||S instanceof String},i.isObject=function(S){return S&&"object"==typeof S},i.isset=i.isSet=function(S,M){var P=S[M];return!(null==P||!S.hasOwnProperty(M))&&("object"!=typeof P||(Array.isArray(P)?P.length:Object.keys(P).length)>0)},i.Buffer=function(){try{var C=i.inquire("buffer").Buffer;return C.prototype.utf8Write?C:null}catch{return null}}(),i._Buffer_from=null,i._Buffer_allocUnsafe=null,i.newBuffer=function(S){return"number"==typeof S?i.Buffer?i._Buffer_allocUnsafe(S):new i.Array(S):i.Buffer?i._Buffer_from(S):typeof Uint8Array>"u"?S:new Uint8Array(S)},i.Array=typeof Uint8Array<"u"?Uint8Array:Array,i.Long=i.global.dcodeIO&&i.global.dcodeIO.Long||i.global.Long||i.inquire("long"),i.key2Re=/^true|false|0|1$/,i.key32Re=/^-?(?:0|[1-9][0-9]*)$/,i.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,i.longToHash=function(S){return S?i.LongBits.from(S).toHash():i.LongBits.zeroHash},i.longFromHash=function(S,M){var P=i.LongBits.fromHash(S);return i.Long?i.Long.fromBits(P.lo,P.hi,M):P.toNumber(!!M)},i.merge=n,i.lcFirst=function(S){return S.charAt(0).toLowerCase()+S.substring(1)},i.newError=h,i.ProtocolError=h("ProtocolError"),i.oneOfGetter=function(S){for(var M={},P=0;P<S.length;++P)M[S[P]]=1;return function(){for(var x=Object.keys(this),A=x.length-1;A>-1;--A)if(1===M[x[A]]&&null!=this[x[A]])return x[A]}},i.oneOfSetter=function(S){return function(M){for(var P=0;P<S.length;++P)S[P]!==M&&delete this[S[P]]}},i.toJSONOptions={longs:String,enums:String,bytes:String,json:!0},i._configure=function(){var C=i.Buffer;C?(i._Buffer_from=C.from!==Uint8Array.from&&C.from||function(M,P){return new C(M,P)},i._Buffer_allocUnsafe=C.allocUnsafe||function(M){return new C(M)}):i._Buffer_from=i._Buffer_allocUnsafe=null}},60973:(St,z,s)=>{"use strict";St.exports=A;var n,i=s(75014),h=i.LongBits,C=i.base64,S=i.utf8;function M(T,R,B){this.fn=T,this.len=R,this.next=void 0,this.val=B}function P(){}function x(T){this.head=T.head,this.tail=T.tail,this.len=T.len,this.next=T.states}function A(){this.len=0,this.head=new M(P,0,0),this.tail=this.head,this.states=null}var g=function(){return i.Buffer?function(){return(A.create=function(){return new n})()}:function(){return new A}};function m(T,R,B){R[B]=255&T}function r(T,R){this.len=T,this.next=void 0,this.val=R}function u(T,R,B){for(;T.hi;)R[B++]=127&T.lo|128,T.lo=(T.lo>>>7|T.hi<<25)>>>0,T.hi>>>=7;for(;T.lo>127;)R[B++]=127&T.lo|128,T.lo=T.lo>>>7;R[B++]=T.lo}function v(T,R,B){R[B]=255&T,R[B+1]=T>>>8&255,R[B+2]=T>>>16&255,R[B+3]=T>>>24}A.create=g(),A.alloc=function(R){return new i.Array(R)},i.Array!==Array&&(A.alloc=i.pool(A.alloc,i.Array.prototype.subarray)),A.prototype._push=function(R,B,U){return this.tail=this.tail.next=new M(R,B,U),this.len+=B,this},(r.prototype=Object.create(M.prototype)).fn=function l(T,R,B){for(;T>127;)R[B++]=127&T|128,T>>>=7;R[B]=T},A.prototype.uint32=function(R){return this.len+=(this.tail=this.tail.next=new r((R>>>=0)<128?1:R<16384?2:R<2097152?3:R<268435456?4:5,R)).len,this},A.prototype.int32=function(R){return R<0?this._push(u,10,h.fromNumber(R)):this.uint32(R)},A.prototype.sint32=function(R){return this.uint32((R<<1^R>>31)>>>0)},A.prototype.int64=A.prototype.uint64=function(R){var B=h.from(R);return this._push(u,B.length(),B)},A.prototype.sint64=function(R){var B=h.from(R).zzEncode();return this._push(u,B.length(),B)},A.prototype.bool=function(R){return this._push(m,1,R?1:0)},A.prototype.sfixed32=A.prototype.fixed32=function(R){return this._push(v,4,R>>>0)},A.prototype.sfixed64=A.prototype.fixed64=function(R){var B=h.from(R);return this._push(v,4,B.lo)._push(v,4,B.hi)},A.prototype.float=function(R){return this._push(i.float.writeFloatLE,4,R)},A.prototype.double=function(R){return this._push(i.float.writeDoubleLE,8,R)};var E=i.Array.prototype.set?function(R,B,U){B.set(R,U)}:function(R,B,U){for(var Y=0;Y<R.length;++Y)B[U+Y]=R[Y]};A.prototype.bytes=function(R){var B=R.length>>>0;if(!B)return this._push(m,1,0);if(i.isString(R)){var U=A.alloc(B=C.length(R));C.decode(R,U,0),R=U}return this.uint32(B)._push(E,B,R)},A.prototype.string=function(R){var B=S.length(R);return B?this.uint32(B)._push(S.write,B,R):this._push(m,1,0)},A.prototype.fork=function(){return this.states=new x(this),this.head=this.tail=new M(P,0,0),this.len=0,this},A.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new M(P,0,0),this.len=0),this},A.prototype.ldelim=function(){var R=this.head,B=this.tail,U=this.len;return this.reset().uint32(U),U&&(this.tail.next=R.next,this.tail=B,this.len+=U),this},A.prototype.finish=function(){for(var R=this.head.next,B=this.constructor.alloc(this.len),U=0;R;)R.fn(R.val,B,U),U+=R.len,R=R.next;return B},A._configure=function(T){n=T,A.create=g(),n._configure()}},72038:(St,z,s)=>{"use strict";St.exports=h;var i=s(60973);(h.prototype=Object.create(i.prototype)).constructor=h;var n=s(75014);function h(){i.call(this)}function C(S,M,P){S.length<40?n.utf8.write(S,M,P):M.utf8Write?M.utf8Write(S,P):M.write(S,P)}h._configure=function(){h.alloc=n._Buffer_allocUnsafe,h.writeBytesBuffer=n.Buffer&&n.Buffer.prototype instanceof Uint8Array&&"set"===n.Buffer.prototype.set.name?function(M,P,x){P.set(M,x)}:function(M,P,x){if(M.copy)M.copy(P,x,0,M.length);else for(var A=0;A<M.length;)P[x++]=M[A++]}},h.prototype.bytes=function(M){n.isString(M)&&(M=n._Buffer_from(M,"base64"));var P=M.length>>>0;return this.uint32(P),P&&this._push(h.writeBytesBuffer,P,M),this},h.prototype.string=function(M){var P=n.Buffer.byteLength(M);return this.uint32(P),P&&this._push(C,P,M),this},h._configure()},85667:(St,z,s)=>{const n=s(56281),h=s(92649),C=s(36967),S=s(66288);function M(P,x,A,g,m){const l=[].slice.call(arguments,1),r=l.length,u="function"==typeof l[r-1];if(!u&&!n())throw new Error("Callback required as last argument");if(!u){if(r<1)throw new Error("Too few arguments provided");return 1===r?(A=x,x=g=void 0):2===r&&!x.getContext&&(g=A,A=x,x=void 0),new Promise(function(v,E){try{const T=h.create(A,g);v(P(T,x,g))}catch(T){E(T)}})}if(r<2)throw new Error("Too few arguments provided");2===r?(m=A,A=x,x=g=void 0):3===r&&(x.getContext&&typeof m>"u"?(m=g,g=void 0):(m=g,g=A,A=x,x=void 0));try{const v=h.create(A,g);m(null,P(v,x,g))}catch(v){m(v)}}z.mo=M.bind(null,C.render),z.dY=M.bind(null,C.renderToDataURL),z.toString=M.bind(null,function(P,x,A){return S.render(P,A)})},56281:St=>{St.exports=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then}},68817:(St,z,s)=>{const i=s(17610).getSymbolSize;z.getRowColCoords=function(h){if(1===h)return[];const C=Math.floor(h/7)+2,S=i(h),M=145===S?26:2*Math.ceil((S-13)/(2*C-2)),P=[S-7];for(let x=1;x<C-1;x++)P[x]=P[x-1]-M;return P.push(6),P.reverse()},z.getPositions=function(h){const C=[],S=z.getRowColCoords(h),M=S.length;for(let P=0;P<M;P++)for(let x=0;x<M;x++)0===P&&0===x||0===P&&x===M-1||P===M-1&&0===x||C.push([S[P],S[x]]);return C}},61925:(St,z,s)=>{const i=s(7092),n=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function h(C){this.mode=i.ALPHANUMERIC,this.data=C}h.getBitsLength=function(S){return 11*Math.floor(S/2)+S%2*6},h.prototype.getLength=function(){return this.data.length},h.prototype.getBitsLength=function(){return h.getBitsLength(this.data.length)},h.prototype.write=function(S){let M;for(M=0;M+2<=this.data.length;M+=2){let P=45*n.indexOf(this.data[M]);P+=n.indexOf(this.data[M+1]),S.put(P,11)}this.data.length%2&&S.put(n.indexOf(this.data[M]),6)},St.exports=h},71535:St=>{function z(){this.buffer=[],this.length=0}z.prototype={get:function(s){const i=Math.floor(s/8);return 1==(this.buffer[i]>>>7-s%8&1)},put:function(s,i){for(let n=0;n<i;n++)this.putBit(1==(s>>>i-n-1&1))},getLengthInBits:function(){return this.length},putBit:function(s){const i=Math.floor(this.length/8);this.buffer.length<=i&&this.buffer.push(0),s&&(this.buffer[i]|=128>>>this.length%8),this.length++}},St.exports=z},37672:St=>{function z(s){if(!s||s<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=s,this.data=new Uint8Array(s*s),this.reservedBit=new Uint8Array(s*s)}z.prototype.set=function(s,i,n,h){const C=s*this.size+i;this.data[C]=n,h&&(this.reservedBit[C]=!0)},z.prototype.get=function(s,i){return this.data[s*this.size+i]},z.prototype.xor=function(s,i,n){this.data[s*this.size+i]^=n},z.prototype.isReserved=function(s,i){return this.reservedBit[s*this.size+i]},St.exports=z},19138:(St,z,s)=>{const i=s(30741),n=s(7092);function h(C){this.mode=n.BYTE,"string"==typeof C&&(C=i(C)),this.data=new Uint8Array(C)}h.getBitsLength=function(S){return 8*S},h.prototype.getLength=function(){return this.data.length},h.prototype.getBitsLength=function(){return h.getBitsLength(this.data.length)},h.prototype.write=function(C){for(let S=0,M=this.data.length;S<M;S++)C.put(this.data[S],8)},St.exports=h},16554:(St,z,s)=>{const i=s(89605),n=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],h=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];z.getBlocksCount=function(S,M){switch(M){case i.L:return n[4*(S-1)+0];case i.M:return n[4*(S-1)+1];case i.Q:return n[4*(S-1)+2];case i.H:return n[4*(S-1)+3];default:return}},z.getTotalCodewordsCount=function(S,M){switch(M){case i.L:return h[4*(S-1)+0];case i.M:return h[4*(S-1)+1];case i.Q:return h[4*(S-1)+2];case i.H:return h[4*(S-1)+3];default:return}}},89605:(St,z)=>{z.L={bit:1},z.M={bit:0},z.Q={bit:3},z.H={bit:2},z.isValid=function(n){return n&&typeof n.bit<"u"&&n.bit>=0&&n.bit<4},z.from=function(n,h){if(z.isValid(n))return n;try{return function s(i){if("string"!=typeof i)throw new Error("Param is not a string");switch(i.toLowerCase()){case"l":case"low":return z.L;case"m":case"medium":return z.M;case"q":case"quartile":return z.Q;case"h":case"high":return z.H;default:throw new Error("Unknown EC Level: "+i)}}(n)}catch{return h}}},30008:(St,z,s)=>{const i=s(17610).getSymbolSize;z.getPositions=function(C){const S=i(C);return[[0,0],[S-7,0],[0,S-7]]}},44321:(St,z,s)=>{const i=s(17610),C=i.getBCHDigit(1335);z.getEncodedBits=function(M,P){const x=M.bit<<3|P;let A=x<<10;for(;i.getBCHDigit(A)-C>=0;)A^=1335<<i.getBCHDigit(A)-C;return 21522^(x<<10|A)}},5199:(St,z)=>{const s=new Uint8Array(512),i=new Uint8Array(256);(function(){let h=1;for(let C=0;C<255;C++)s[C]=h,i[h]=C,h<<=1,256&h&&(h^=285);for(let C=255;C<512;C++)s[C]=s[C-255]})(),z.log=function(h){if(h<1)throw new Error("log("+h+")");return i[h]},z.exp=function(h){return s[h]},z.mul=function(h,C){return 0===h||0===C?0:s[i[h]+i[C]]}},8897:(St,z,s)=>{const i=s(7092),n=s(17610);function h(C){this.mode=i.KANJI,this.data=C}h.getBitsLength=function(S){return 13*S},h.prototype.getLength=function(){return this.data.length},h.prototype.getBitsLength=function(){return h.getBitsLength(this.data.length)},h.prototype.write=function(C){let S;for(S=0;S<this.data.length;S++){let M=n.toSJIS(this.data[S]);if(M>=33088&&M<=40956)M-=33088;else{if(!(M>=57408&&M<=60351))throw new Error("Invalid SJIS character: "+this.data[S]+"\nMake sure your charset is UTF-8");M-=49472}M=192*(M>>>8&255)+(255&M),C.put(M,13)}},St.exports=h},43800:(St,z)=>{z.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};function i(n,h,C){switch(n){case z.Patterns.PATTERN000:return(h+C)%2==0;case z.Patterns.PATTERN001:return h%2==0;case z.Patterns.PATTERN010:return C%3==0;case z.Patterns.PATTERN011:return(h+C)%3==0;case z.Patterns.PATTERN100:return(Math.floor(h/2)+Math.floor(C/3))%2==0;case z.Patterns.PATTERN101:return h*C%2+h*C%3==0;case z.Patterns.PATTERN110:return(h*C%2+h*C%3)%2==0;case z.Patterns.PATTERN111:return(h*C%3+(h+C)%2)%2==0;default:throw new Error("bad maskPattern:"+n)}}z.isValid=function(h){return null!=h&&""!==h&&!isNaN(h)&&h>=0&&h<=7},z.from=function(h){return z.isValid(h)?parseInt(h,10):void 0},z.getPenaltyN1=function(h){const C=h.size;let S=0,M=0,P=0,x=null,A=null;for(let g=0;g<C;g++){M=P=0,x=A=null;for(let m=0;m<C;m++){let l=h.get(g,m);l===x?M++:(M>=5&&(S+=M-5+3),x=l,M=1),l=h.get(m,g),l===A?P++:(P>=5&&(S+=P-5+3),A=l,P=1)}M>=5&&(S+=M-5+3),P>=5&&(S+=P-5+3)}return S},z.getPenaltyN2=function(h){const C=h.size;let S=0;for(let M=0;M<C-1;M++)for(let P=0;P<C-1;P++){const x=h.get(M,P)+h.get(M,P+1)+h.get(M+1,P)+h.get(M+1,P+1);(4===x||0===x)&&S++}return 3*S},z.getPenaltyN3=function(h){const C=h.size;let S=0,M=0,P=0;for(let x=0;x<C;x++){M=P=0;for(let A=0;A<C;A++)M=M<<1&2047|h.get(x,A),A>=10&&(1488===M||93===M)&&S++,P=P<<1&2047|h.get(A,x),A>=10&&(1488===P||93===P)&&S++}return 40*S},z.getPenaltyN4=function(h){let C=0;const S=h.data.length;for(let P=0;P<S;P++)C+=h.data[P];return 10*Math.abs(Math.ceil(100*C/S/5)-10)},z.applyMask=function(h,C){const S=C.size;for(let M=0;M<S;M++)for(let P=0;P<S;P++)C.isReserved(P,M)||C.xor(P,M,i(h,P,M))},z.getBestMask=function(h,C){const S=Object.keys(z.Patterns).length;let M=0,P=1/0;for(let x=0;x<S;x++){C(x),z.applyMask(x,h);const A=z.getPenaltyN1(h)+z.getPenaltyN2(h)+z.getPenaltyN3(h)+z.getPenaltyN4(h);z.applyMask(x,h),A<P&&(P=A,M=x)}return M}},7092:(St,z,s)=>{const i=s(74242),n=s(94568);z.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},z.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},z.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},z.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},z.MIXED={bit:-1},z.getCharCountIndicator=function(S,M){if(!S.ccBits)throw new Error("Invalid mode: "+S);if(!i.isValid(M))throw new Error("Invalid version: "+M);return M>=1&&M<10?S.ccBits[0]:M<27?S.ccBits[1]:S.ccBits[2]},z.getBestModeForData=function(S){return n.testNumeric(S)?z.NUMERIC:n.testAlphanumeric(S)?z.ALPHANUMERIC:n.testKanji(S)?z.KANJI:z.BYTE},z.toString=function(S){if(S&&S.id)return S.id;throw new Error("Invalid mode")},z.isValid=function(S){return S&&S.bit&&S.ccBits},z.from=function(S,M){if(z.isValid(S))return S;try{return function h(C){if("string"!=typeof C)throw new Error("Param is not a string");switch(C.toLowerCase()){case"numeric":return z.NUMERIC;case"alphanumeric":return z.ALPHANUMERIC;case"kanji":return z.KANJI;case"byte":return z.BYTE;default:throw new Error("Unknown mode: "+C)}}(S)}catch{return M}}},69569:(St,z,s)=>{const i=s(7092);function n(h){this.mode=i.NUMERIC,this.data=h.toString()}n.getBitsLength=function(C){return 10*Math.floor(C/3)+(C%3?C%3*3+1:0)},n.prototype.getLength=function(){return this.data.length},n.prototype.getBitsLength=function(){return n.getBitsLength(this.data.length)},n.prototype.write=function(C){let S,M,P;for(S=0;S+3<=this.data.length;S+=3)M=this.data.substr(S,3),P=parseInt(M,10),C.put(P,10);const x=this.data.length-S;x>0&&(M=this.data.substr(S),P=parseInt(M,10),C.put(P,3*x+1))},St.exports=n},84333:(St,z,s)=>{const i=s(5199);z.mul=function(h,C){const S=new Uint8Array(h.length+C.length-1);for(let M=0;M<h.length;M++)for(let P=0;P<C.length;P++)S[M+P]^=i.mul(h[M],C[P]);return S},z.mod=function(h,C){let S=new Uint8Array(h);for(;S.length-C.length>=0;){const M=S[0];for(let x=0;x<C.length;x++)S[x]^=i.mul(C[x],M);let P=0;for(;P<S.length&&0===S[P];)P++;S=S.slice(P)}return S},z.generateECPolynomial=function(h){let C=new Uint8Array([1]);for(let S=0;S<h;S++)C=z.mul(C,new Uint8Array([1,i.exp(S)]));return C}},92649:(St,z,s)=>{const i=s(17610),n=s(89605),h=s(71535),C=s(37672),S=s(68817),M=s(30008),P=s(43800),x=s(16554),A=s(85968),g=s(11167),m=s(44321),l=s(7092),r=s(42765);function R(G,k,X){const q=G.size,Q=m.getEncodedBits(k,X);let ce,te;for(ce=0;ce<15;ce++)te=1==(Q>>ce&1),G.set(ce<6?ce:ce<8?ce+1:q-15+ce,8,te,!0),G.set(8,ce<8?q-ce-1:ce<9?15-ce-1+1:15-ce-1,te,!0);G.set(q-8,8,1,!0)}function ae(G,k,X,q){let Q;if(Array.isArray(G))Q=r.fromArray(G);else{if("string"!=typeof G)throw new Error("Invalid data");{let Fe=k;if(!Fe){const Qe=r.rawSplit(G);Fe=g.getBestVersionForData(Qe,X)}Q=r.fromString(G,Fe||40)}}const ce=g.getBestVersionForData(Q,X);if(!ce)throw new Error("The amount of data is too big to be stored in a QR Code");if(k){if(k<ce)throw new Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+ce+".\n")}else k=ce;const te=function U(G,k,X){const q=new h;X.forEach(function(it){q.put(it.mode.bit,4),q.put(it.getLength(),l.getCharCountIndicator(it.mode,G)),it.write(q)});const te=8*(i.getSymbolTotalCodewords(G)-x.getTotalCodewordsCount(G,k));for(q.getLengthInBits()+4<=te&&q.put(0,4);q.getLengthInBits()%8!=0;)q.putBit(0);const Ee=(te-q.getLengthInBits())/8;for(let it=0;it<Ee;it++)q.put(it%2?17:236,8);return function Y(G,k,X){const q=i.getSymbolTotalCodewords(k),ce=q-x.getTotalCodewordsCount(k,X),te=x.getBlocksCount(k,X),it=te-q%te,Fe=Math.floor(q/te),Qe=Math.floor(ce/te),ct=Qe+1,Ge=Fe-Qe,nt=new A(Ge);let Je=0;const ze=new Array(te),Ke=new Array(te);let Ve=0;const $e=new Uint8Array(G.buffer);for(let ve=0;ve<te;ve++){const ue=ve<it?Qe:ct;ze[ve]=$e.slice(Je,Je+ue),Ke[ve]=nt.encode(ze[ve]),Je+=ue,Ve=Math.max(Ve,ue)}const dt=new Uint8Array(q);let J,vt,Pe=0;for(J=0;J<Ve;J++)for(vt=0;vt<te;vt++)J<ze[vt].length&&(dt[Pe++]=ze[vt][J]);for(J=0;J<Ge;J++)for(vt=0;vt<te;vt++)dt[Pe++]=Ke[vt][J];return dt}(q,G,k)}(k,X,Q),Ee=i.getSymbolSize(k),it=new C(Ee);return function u(G,k){const X=G.size,q=M.getPositions(k);for(let Q=0;Q<q.length;Q++){const ce=q[Q][0],te=q[Q][1];for(let Ee=-1;Ee<=7;Ee++)if(!(ce+Ee<=-1||X<=ce+Ee))for(let it=-1;it<=7;it++)te+it<=-1||X<=te+it||G.set(ce+Ee,te+it,Ee>=0&&Ee<=6&&(0===it||6===it)||it>=0&&it<=6&&(0===Ee||6===Ee)||Ee>=2&&Ee<=4&&it>=2&&it<=4,!0)}}(it,k),function v(G){const k=G.size;for(let X=8;X<k-8;X++){const q=X%2==0;G.set(X,6,q,!0),G.set(6,X,q,!0)}}(it),function E(G,k){const X=S.getPositions(k);for(let q=0;q<X.length;q++){const Q=X[q][0],ce=X[q][1];for(let te=-2;te<=2;te++)for(let Ee=-2;Ee<=2;Ee++)G.set(Q+te,ce+Ee,-2===te||2===te||-2===Ee||2===Ee||0===te&&0===Ee,!0)}}(it,k),R(it,X,0),k>=7&&function T(G,k){const X=G.size,q=g.getEncodedBits(k);let Q,ce,te;for(let Ee=0;Ee<18;Ee++)Q=Math.floor(Ee/3),ce=Ee%3+X-8-3,te=1==(q>>Ee&1),G.set(Q,ce,te,!0),G.set(ce,Q,te,!0)}(it,k),function B(G,k){const X=G.size;let q=-1,Q=X-1,ce=7,te=0;for(let Ee=X-1;Ee>0;Ee-=2)for(6===Ee&&Ee--;;){for(let it=0;it<2;it++)if(!G.isReserved(Q,Ee-it)){let Fe=!1;te<k.length&&(Fe=1==(k[te]>>>ce&1)),G.set(Q,Ee-it,Fe),ce--,-1===ce&&(te++,ce=7)}if(Q+=q,Q<0||X<=Q){Q-=q,q=-q;break}}}(it,te),isNaN(q)&&(q=P.getBestMask(it,R.bind(null,it,X))),P.applyMask(q,it),R(it,X,q),{modules:it,version:k,errorCorrectionLevel:X,maskPattern:q,segments:Q}}z.create=function(k,X){if(typeof k>"u"||""===k)throw new Error("No input text");let Q,ce,q=n.M;return typeof X<"u"&&(q=n.from(X.errorCorrectionLevel,n.M),Q=g.from(X.version),ce=P.from(X.maskPattern),X.toSJISFunc&&i.setToSJISFunction(X.toSJISFunc)),ae(k,Q,q,ce)}},85968:(St,z,s)=>{const i=s(84333);function n(h){this.genPoly=void 0,this.degree=h,this.degree&&this.initialize(this.degree)}n.prototype.initialize=function(C){this.degree=C,this.genPoly=i.generateECPolynomial(this.degree)},n.prototype.encode=function(C){if(!this.genPoly)throw new Error("Encoder not initialized");const S=new Uint8Array(C.length+this.degree);S.set(C);const M=i.mod(S,this.genPoly),P=this.degree-M.length;if(P>0){const x=new Uint8Array(this.degree);return x.set(M,P),x}return M},St.exports=n},94568:(St,z)=>{const s="[0-9]+";let n="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";n=n.replace(/u/g,"\\u");const h="(?:(?![A-Z0-9 $%*+\\-./:]|"+n+")(?:.|[\r\n]))+";z.KANJI=new RegExp(n,"g"),z.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),z.BYTE=new RegExp(h,"g"),z.NUMERIC=new RegExp(s,"g"),z.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");const C=new RegExp("^"+n+"$"),S=new RegExp("^"+s+"$"),M=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");z.testKanji=function(x){return C.test(x)},z.testNumeric=function(x){return S.test(x)},z.testAlphanumeric=function(x){return M.test(x)}},42765:(St,z,s)=>{const i=s(7092),n=s(69569),h=s(61925),C=s(19138),S=s(8897),M=s(94568),P=s(17610),x=s(19884);function A(T){return unescape(encodeURIComponent(T)).length}function g(T,R,B){const U=[];let Y;for(;null!==(Y=T.exec(B));)U.push({data:Y[0],index:Y.index,mode:R,length:Y[0].length});return U}function m(T){const R=g(M.NUMERIC,i.NUMERIC,T),B=g(M.ALPHANUMERIC,i.ALPHANUMERIC,T);let U,Y;return P.isKanjiModeEnabled()?(U=g(M.BYTE,i.BYTE,T),Y=g(M.KANJI,i.KANJI,T)):(U=g(M.BYTE_KANJI,i.BYTE,T),Y=[]),R.concat(B,U,Y).sort(function(G,k){return G.index-k.index}).map(function(G){return{data:G.data,mode:G.mode,length:G.length}})}function l(T,R){switch(R){case i.NUMERIC:return n.getBitsLength(T);case i.ALPHANUMERIC:return h.getBitsLength(T);case i.KANJI:return S.getBitsLength(T);case i.BYTE:return C.getBitsLength(T)}}function E(T,R){let B;const U=i.getBestModeForData(T);if(B=i.from(R,U),B!==i.BYTE&&B.bit<U.bit)throw new Error('"'+T+'" cannot be encoded with mode '+i.toString(B)+".\n Suggested mode is: "+i.toString(U));switch(B===i.KANJI&&!P.isKanjiModeEnabled()&&(B=i.BYTE),B){case i.NUMERIC:return new n(T);case i.ALPHANUMERIC:return new h(T);case i.KANJI:return new S(T);case i.BYTE:return new C(T)}}z.fromArray=function(R){return R.reduce(function(B,U){return"string"==typeof U?B.push(E(U,null)):U.data&&B.push(E(U.data,U.mode)),B},[])},z.fromString=function(R,B){const Y=function u(T){const R=[];for(let B=0;B<T.length;B++){const U=T[B];switch(U.mode){case i.NUMERIC:R.push([U,{data:U.data,mode:i.ALPHANUMERIC,length:U.length},{data:U.data,mode:i.BYTE,length:U.length}]);break;case i.ALPHANUMERIC:R.push([U,{data:U.data,mode:i.BYTE,length:U.length}]);break;case i.KANJI:R.push([U,{data:U.data,mode:i.BYTE,length:A(U.data)}]);break;case i.BYTE:R.push([{data:U.data,mode:i.BYTE,length:A(U.data)}])}}return R}(m(R,P.isKanjiModeEnabled())),ae=function v(T,R){const B={},U={start:{}};let Y=["start"];for(let ae=0;ae<T.length;ae++){const G=T[ae],k=[];for(let X=0;X<G.length;X++){const q=G[X],Q=""+ae+X;k.push(Q),B[Q]={node:q,lastCount:0},U[Q]={};for(let ce=0;ce<Y.length;ce++){const te=Y[ce];B[te]&&B[te].node.mode===q.mode?(U[te][Q]=l(B[te].lastCount+q.length,q.mode)-l(B[te].lastCount,q.mode),B[te].lastCount+=q.length):(B[te]&&(B[te].lastCount=q.length),U[te][Q]=l(q.length,q.mode)+4+i.getCharCountIndicator(q.mode,R))}}Y=k}for(let ae=0;ae<Y.length;ae++)U[Y[ae]].end=0;return{map:U,table:B}}(Y,B),G=x.find_path(ae.map,"start","end"),k=[];for(let X=1;X<G.length-1;X++)k.push(ae.table[G[X]].node);return z.fromArray(function r(T){return T.reduce(function(R,B){const U=R.length-1>=0?R[R.length-1]:null;return U&&U.mode===B.mode?(R[R.length-1].data+=B.data,R):(R.push(B),R)},[])}(k))},z.rawSplit=function(R){return z.fromArray(m(R,P.isKanjiModeEnabled()))}},17610:(St,z)=>{let s;const i=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];z.getSymbolSize=function(h){if(!h)throw new Error('"version" cannot be null or undefined');if(h<1||h>40)throw new Error('"version" should be in range from 1 to 40');return 4*h+17},z.getSymbolTotalCodewords=function(h){return i[h]},z.getBCHDigit=function(n){let h=0;for(;0!==n;)h++,n>>>=1;return h},z.setToSJISFunction=function(h){if("function"!=typeof h)throw new Error('"toSJISFunc" is not a valid function.');s=h},z.isKanjiModeEnabled=function(){return typeof s<"u"},z.toSJIS=function(h){return s(h)}},74242:(St,z)=>{z.isValid=function(i){return!isNaN(i)&&i>=1&&i<=40}},11167:(St,z,s)=>{const i=s(17610),n=s(16554),h=s(89605),C=s(7092),S=s(74242),P=i.getBCHDigit(7973);function A(l,r){return C.getCharCountIndicator(l,r)+4}function g(l,r){let u=0;return l.forEach(function(v){const E=A(v.mode,r);u+=E+v.getBitsLength()}),u}z.from=function(r,u){return S.isValid(r)?parseInt(r,10):u},z.getCapacity=function(r,u,v){if(!S.isValid(r))throw new Error("Invalid QR Code version");typeof v>"u"&&(v=C.BYTE);const R=8*(i.getSymbolTotalCodewords(r)-n.getTotalCodewordsCount(r,u));if(v===C.MIXED)return R;const B=R-A(v,r);switch(v){case C.NUMERIC:return Math.floor(B/10*3);case C.ALPHANUMERIC:return Math.floor(B/11*2);case C.KANJI:return Math.floor(B/13);default:return Math.floor(B/8)}},z.getBestVersionForData=function(r,u){let v;const E=h.from(u,h.M);if(Array.isArray(r)){if(r.length>1)return function m(l,r){for(let u=1;u<=40;u++)if(g(l,u)<=z.getCapacity(u,r,C.MIXED))return u}(r,E);if(0===r.length)return 1;v=r[0]}else v=r;return function x(l,r,u){for(let v=1;v<=40;v++)if(r<=z.getCapacity(v,u,l))return v}(v.mode,v.getLength(),E)},z.getEncodedBits=function(r){if(!S.isValid(r)||r<7)throw new Error("Invalid QR Code version");let u=r<<12;for(;i.getBCHDigit(u)-P>=0;)u^=7973<<i.getBCHDigit(u)-P;return r<<12|u}},36967:(St,z,s)=>{const i=s(41618);z.render=function(S,M,P){let x=P,A=M;typeof x>"u"&&(!M||!M.getContext)&&(x=M,M=void 0),M||(A=function h(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}()),x=i.getOptions(x);const g=i.getImageWidth(S.modules.size,x),m=A.getContext("2d"),l=m.createImageData(g,g);return i.qrToImageData(l.data,S,x),function n(C,S,M){C.clearRect(0,0,S.width,S.height),S.style||(S.style={}),S.height=M,S.width=M,S.style.height=M+"px",S.style.width=M+"px"}(m,A,g),m.putImageData(l,0,0),A},z.renderToDataURL=function(S,M,P){let x=P;return typeof x>"u"&&(!M||!M.getContext)&&(x=M,M=void 0),x||(x={}),z.render(S,M,x).toDataURL(x.type||"image/png",(x.rendererOpts||{}).quality)}},66288:(St,z,s)=>{const i=s(41618);function n(S,M){const P=S.a/255,x=M+'="'+S.hex+'"';return P<1?x+" "+M+'-opacity="'+P.toFixed(2).slice(1)+'"':x}function h(S,M,P){let x=S+M;return typeof P<"u"&&(x+=" "+P),x}z.render=function(M,P,x){const A=i.getOptions(P),g=M.modules.size,m=M.modules.data,l=g+2*A.margin,r=A.color.light.a?"<path "+n(A.color.light,"fill")+' d="M0 0h'+l+"v"+l+'H0z"/>':"",u="<path "+n(A.color.dark,"stroke")+' d="'+function C(S,M,P){let x="",A=0,g=!1,m=0;for(let l=0;l<S.length;l++){const r=Math.floor(l%M),u=Math.floor(l/M);!r&&!g&&(g=!0),S[l]?(m++,l>0&&r>0&&S[l-1]||(x+=g?h("M",r+P,.5+u+P):h("m",A,0),A=0,g=!1),r+1<M&&S[l+1]||(x+=h("h",m),m=0)):A++}return x}(m,g,A.margin)+'"/>',T='<svg xmlns="http://www.w3.org/2000/svg" '+(A.width?'width="'+A.width+'" height="'+A.width+'" ':"")+'viewBox="0 0 '+l+" "+l+'" shape-rendering="crispEdges">'+r+u+"</svg>\n";return"function"==typeof x&&x(null,T),T}},41618:(St,z)=>{function s(i){if("number"==typeof i&&(i=i.toString()),"string"!=typeof i)throw new Error("Color should be defined as hex string");let n=i.slice().replace("#","").split("");if(n.length<3||5===n.length||n.length>8)throw new Error("Invalid hex color: "+i);(3===n.length||4===n.length)&&(n=Array.prototype.concat.apply([],n.map(function(C){return[C,C]}))),6===n.length&&n.push("F","F");const h=parseInt(n.join(""),16);return{r:h>>24&255,g:h>>16&255,b:h>>8&255,a:255&h,hex:"#"+n.slice(0,6).join("")}}z.getOptions=function(n){n||(n={}),n.color||(n.color={});const C=n.width&&n.width>=21?n.width:void 0;return{width:C,scale:C?4:n.scale||4,margin:typeof n.margin>"u"||null===n.margin||n.margin<0?4:n.margin,color:{dark:s(n.color.dark||"#000000ff"),light:s(n.color.light||"#ffffffff")},type:n.type,rendererOpts:n.rendererOpts||{}}},z.getScale=function(n,h){return h.width&&h.width>=n+2*h.margin?h.width/(n+2*h.margin):h.scale},z.getImageWidth=function(n,h){const C=z.getScale(n,h);return Math.floor((n+2*h.margin)*C)},z.qrToImageData=function(n,h,C){const S=h.modules.size,M=h.modules.data,P=z.getScale(S,C),x=Math.floor((S+2*C.margin)*P),A=C.margin*P,g=[C.color.light,C.color.dark];for(let m=0;m<x;m++)for(let l=0;l<x;l++){let r=4*(m*x+l),u=C.color.light;m>=A&&l>=A&&m<x-A&&l<x-A&&(u=g[M[Math.floor((m-A)/P)*S+Math.floor((l-A)/P)]?1:0]),n[r++]=u.r,n[r++]=u.g,n[r++]=u.b,n[r]=u.a}}},99443:(St,z,s)=>{"use strict";s.d(z,{h:()=>h});var i=s(80583),n=s(10399);class h extends i.B7{constructor(){super(...arguments),this.value=null,this.hasNext=!1,this.hasCompleted=!1}_subscribe(S){return this.hasError?(S.error(this.thrownError),n.y.EMPTY):this.hasCompleted&&this.hasNext?(S.next(this.value),S.complete(),n.y.EMPTY):super._subscribe(S)}next(S){this.hasCompleted||(this.value=S,this.hasNext=!0)}error(S){this.hasCompleted||super.error(S)}complete(){this.hasCompleted=!0,this.hasNext&&super.next(this.value),super.complete()}}},26513:(St,z,s)=>{"use strict";s.d(z,{t:()=>h});var i=s(80583),n=s(38058);class h extends i.B7{constructor(S){super(),this._value=S}get value(){return this.getValue()}_subscribe(S){const M=super._subscribe(S);return M&&!M.closed&&S.next(this._value),M}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new n.P;return this._value}next(S){super.next(this._value=S)}}},75252:(St,z,s)=>{"use strict";s.d(z,{E:()=>S});var i=s(12532),n=s(43848),h=s(59859);class S{constructor(P,x,A){this.kind=P,this.value=x,this.error=A,this.hasValue="N"===P}observe(P){switch(this.kind){case"N":return P.next&&P.next(this.value);case"E":return P.error&&P.error(this.error);case"C":return P.complete&&P.complete()}}do(P,x,A){switch(this.kind){case"N":return P&&P(this.value);case"E":return x&&x(this.error);case"C":return A&&A()}}accept(P,x,A){return P&&"function"==typeof P.next?this.observe(P):this.do(P,x,A)}toObservable(){switch(this.kind){case"N":return(0,n.of)(this.value);case"E":return(0,h.$)(this.error);case"C":return(0,i.I)()}throw new Error("unexpected notification kind value")}static createNext(P){return typeof P<"u"?new S("N",P):S.undefinedValueNotification}static createError(P){return new S("E",void 0,P)}static createComplete(){return S.completeNotification}}S.completeNotification=new S("C"),S.undefinedValueNotification=new S("N",void 0)},17053:(St,z,s)=>{"use strict";s.d(z,{c:()=>A});var i=s(27721),h=s(73302),C=s(41469),M=s(15587),P=s(97462),x=s(71337);let A=(()=>{class m{constructor(r){this._isScalar=!1,r&&(this._subscribe=r)}lift(r){const u=new m;return u.source=this,u.operator=r,u}subscribe(r,u,v){const{operator:E}=this,T=function S(m,l,r){if(m){if(m instanceof i.v)return m;if(m[h.D])return m[h.D]()}return m||l||r?new i.v(m,l,r):new i.v(C.I)}(r,u,v);if(T.add(E?E.call(T,this.source):this.source||x.$.useDeprecatedSynchronousErrorHandling&&!T.syncErrorThrowable?this._subscribe(T):this._trySubscribe(T)),x.$.useDeprecatedSynchronousErrorHandling&&T.syncErrorThrowable&&(T.syncErrorThrowable=!1,T.syncErrorThrown))throw T.syncErrorValue;return T}_trySubscribe(r){try{return this._subscribe(r)}catch(u){x.$.useDeprecatedSynchronousErrorHandling&&(r.syncErrorThrown=!0,r.syncErrorValue=u),function n(m){for(;m;){const{closed:l,destination:r,isStopped:u}=m;if(l||u)return!1;m=r&&r instanceof i.v?r:null}return!0}(r)?r.error(u):console.warn(u)}}forEach(r,u){return new(u=g(u))((v,E)=>{let T;T=this.subscribe(R=>{try{r(R)}catch(B){E(B),T&&T.unsubscribe()}},E,v)})}_subscribe(r){const{source:u}=this;return u&&u.subscribe(r)}[M.s](){return this}pipe(...r){return 0===r.length?this:(0,P.m)(r)(this)}toPromise(r){return new(r=g(r))((u,v)=>{let E;this.subscribe(T=>E=T,T=>v(T),()=>u(E))})}}return m.create=l=>new m(l),m})();function g(m){if(m||(m=x.$.Promise||Promise),!m)throw new Error("no Promise impl found");return m}},41469:(St,z,s)=>{"use strict";s.d(z,{I:()=>h});var i=s(71337),n=s(81498);const h={closed:!0,next(C){},error(C){if(i.$.useDeprecatedSynchronousErrorHandling)throw C;(0,n.T)(C)},complete(){}}},88134:(St,z,s)=>{"use strict";s.d(z,{E:()=>n});var i=s(27721);class n extends i.v{notifyNext(C,S,M,P,x){this.destination.next(S)}notifyError(C,S){this.destination.error(C)}notifyComplete(C){this.destination.complete()}}},85735:(St,z,s)=>{"use strict";s.d(z,{m:()=>l});var i=s(80583),n=s(86369),C=s(4065);const P=new class S extends C.q{}(class h extends n.R{constructor(v,E){super(v,E),this.scheduler=v,this.work=E}schedule(v,E=0){return E>0?super.schedule(v,E):(this.delay=E,this.state=v,this.scheduler.flush(this),this)}execute(v,E){return E>0||this.closed?super.execute(v,E):this._execute(v,E)}requestAsyncId(v,E,T=0){return null!==T&&T>0||null===T&&this.delay>0?super.requestAsyncId(v,E,T):v.flush(this)}});var x=s(10399),A=s(79284),g=s(38058),m=s(29482);class l extends i.B7{constructor(v=Number.POSITIVE_INFINITY,E=Number.POSITIVE_INFINITY,T){super(),this.scheduler=T,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=v<1?1:v,this._windowTime=E<1?1:E,E===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(v){const E=this._events;E.push(v),E.length>this._bufferSize&&E.shift(),super.next(v)}nextTimeWindow(v){this._events.push(new r(this._getNow(),v)),this._trimBufferThenGetEvents(),super.next(v)}_subscribe(v){const E=this._infiniteTimeWindow,T=E?this._events:this._trimBufferThenGetEvents(),R=this.scheduler,B=T.length;let U;if(this.closed)throw new g.P;if(this.isStopped||this.hasError?U=x.y.EMPTY:(this.observers.push(v),U=new m.Y(this,v)),R&&v.add(v=new A.YZ(v,R)),E)for(let Y=0;Y<B&&!v.closed;Y++)v.next(T[Y]);else for(let Y=0;Y<B&&!v.closed;Y++)v.next(T[Y].value);return this.hasError?v.error(this.thrownError):this.isStopped&&v.complete(),U}_getNow(){return(this.scheduler||P).now()}_trimBufferThenGetEvents(){const v=this._getNow(),E=this._bufferSize,T=this._windowTime,R=this._events,B=R.length;let U=0;for(;U<B&&!(v-R[U].time<T);)U++;return B>E&&(U=Math.max(U,B-E)),U>0&&R.splice(0,U),R}}class r{constructor(v,E){this.time=v,this.value=E}}},80583:(St,z,s)=>{"use strict";s.d(z,{B7:()=>x,PJ:()=>P});var i=s(17053),n=s(27721),h=s(10399),C=s(38058),S=s(29482),M=s(73302);class P extends n.v{constructor(m){super(m),this.destination=m}}let x=(()=>{class g extends i.c{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[M.D](){return new P(this)}lift(l){const r=new A(this,this);return r.operator=l,r}next(l){if(this.closed)throw new C.P;if(!this.isStopped){const{observers:r}=this,u=r.length,v=r.slice();for(let E=0;E<u;E++)v[E].next(l)}}error(l){if(this.closed)throw new C.P;this.hasError=!0,this.thrownError=l,this.isStopped=!0;const{observers:r}=this,u=r.length,v=r.slice();for(let E=0;E<u;E++)v[E].error(l);this.observers.length=0}complete(){if(this.closed)throw new C.P;this.isStopped=!0;const{observers:l}=this,r=l.length,u=l.slice();for(let v=0;v<r;v++)u[v].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(l){if(this.closed)throw new C.P;return super._trySubscribe(l)}_subscribe(l){if(this.closed)throw new C.P;return this.hasError?(l.error(this.thrownError),h.y.EMPTY):this.isStopped?(l.complete(),h.y.EMPTY):(this.observers.push(l),new S.Y(this,l))}asObservable(){const l=new i.c;return l.source=this,l}}return g.create=(m,l)=>new A(m,l),g})();class A extends x{constructor(m,l){super(),this.destination=m,this.source=l}next(m){const{destination:l}=this;l&&l.next&&l.next(m)}error(m){const{destination:l}=this;l&&l.error&&this.destination.error(m)}complete(){const{destination:m}=this;m&&m.complete&&this.destination.complete()}_subscribe(m){const{source:l}=this;return l?this.source.subscribe(m):h.y.EMPTY}}},29482:(St,z,s)=>{"use strict";s.d(z,{Y:()=>n});var i=s(10399);class n extends i.y{constructor(C,S){super(),this.subject=C,this.subscriber=S,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const C=this.subject,S=C.observers;if(this.subject=null,!S||0===S.length||C.isStopped||C.closed)return;const M=S.indexOf(this.subscriber);-1!==M&&S.splice(M,1)}}},27721:(St,z,s)=>{"use strict";s.d(z,{v:()=>P});var i=s(50710),n=s(41469),h=s(10399),C=s(73302),S=s(71337),M=s(81498);class P extends h.y{constructor(g,m,l){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=n.I;break;case 1:if(!g){this.destination=n.I;break}if("object"==typeof g){g instanceof P?(this.syncErrorThrowable=g.syncErrorThrowable,this.destination=g,g.add(this)):(this.syncErrorThrowable=!0,this.destination=new x(this,g));break}default:this.syncErrorThrowable=!0,this.destination=new x(this,g,m,l)}}[C.D](){return this}static create(g,m,l){const r=new P(g,m,l);return r.syncErrorThrowable=!1,r}next(g){this.isStopped||this._next(g)}error(g){this.isStopped||(this.isStopped=!0,this._error(g))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(g){this.destination.next(g)}_error(g){this.destination.error(g),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:g}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=g,this}}class x extends P{constructor(g,m,l,r){super(),this._parentSubscriber=g;let u,v=this;(0,i.T)(m)?u=m:m&&(u=m.next,l=m.error,r=m.complete,m!==n.I&&(v=Object.create(m),(0,i.T)(v.unsubscribe)&&this.add(v.unsubscribe.bind(v)),v.unsubscribe=this.unsubscribe.bind(this))),this._context=v,this._next=u,this._error=l,this._complete=r}next(g){if(!this.isStopped&&this._next){const{_parentSubscriber:m}=this;S.$.useDeprecatedSynchronousErrorHandling&&m.syncErrorThrowable?this.__tryOrSetError(m,this._next,g)&&this.unsubscribe():this.__tryOrUnsub(this._next,g)}}error(g){if(!this.isStopped){const{_parentSubscriber:m}=this,{useDeprecatedSynchronousErrorHandling:l}=S.$;if(this._error)l&&m.syncErrorThrowable?(this.__tryOrSetError(m,this._error,g),this.unsubscribe()):(this.__tryOrUnsub(this._error,g),this.unsubscribe());else if(m.syncErrorThrowable)l?(m.syncErrorValue=g,m.syncErrorThrown=!0):(0,M.T)(g),this.unsubscribe();else{if(this.unsubscribe(),l)throw g;(0,M.T)(g)}}}complete(){if(!this.isStopped){const{_parentSubscriber:g}=this;if(this._complete){const m=()=>this._complete.call(this._context);S.$.useDeprecatedSynchronousErrorHandling&&g.syncErrorThrowable?(this.__tryOrSetError(g,m),this.unsubscribe()):(this.__tryOrUnsub(m),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(g,m){try{g.call(this._context,m)}catch(l){if(this.unsubscribe(),S.$.useDeprecatedSynchronousErrorHandling)throw l;(0,M.T)(l)}}__tryOrSetError(g,m,l){if(!S.$.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{m.call(this._context,l)}catch(r){return S.$.useDeprecatedSynchronousErrorHandling?(g.syncErrorValue=r,g.syncErrorThrown=!0,!0):((0,M.T)(r),!0)}return!1}_unsubscribe(){const{_parentSubscriber:g}=this;this._context=null,this._parentSubscriber=null,g.unsubscribe()}}},10399:(St,z,s)=>{"use strict";s.d(z,{y:()=>M});var i=s(34277),n=s(96305),h=s(50710);const S=(()=>{function x(A){return Error.call(this),this.message=A?`${A.length} errors occurred during unsubscription:\n${A.map((g,m)=>`${m+1}) ${g.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=A,this}return x.prototype=Object.create(Error.prototype),x})();class M{constructor(A){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,A&&(this._ctorUnsubscribe=!0,this._unsubscribe=A)}unsubscribe(){let A;if(this.closed)return;let{_parentOrParents:g,_ctorUnsubscribe:m,_unsubscribe:l,_subscriptions:r}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,g instanceof M)g.remove(this);else if(null!==g)for(let u=0;u<g.length;++u)g[u].remove(this);if((0,h.T)(l)){m&&(this._unsubscribe=void 0);try{l.call(this)}catch(u){A=u instanceof S?P(u.errors):[u]}}if((0,i.c)(r)){let u=-1,v=r.length;for(;++u<v;){const E=r[u];if((0,n.G)(E))try{E.unsubscribe()}catch(T){A=A||[],T instanceof S?A=A.concat(P(T.errors)):A.push(T)}}}if(A)throw new S(A)}add(A){let g=A;if(!A)return M.EMPTY;switch(typeof A){case"function":g=new M(A);case"object":if(g===this||g.closed||"function"!=typeof g.unsubscribe)return g;if(this.closed)return g.unsubscribe(),g;if(!(g instanceof M)){const r=g;g=new M,g._subscriptions=[r]}break;default:throw new Error("unrecognized teardown "+A+" added to Subscription.")}let{_parentOrParents:m}=g;if(null===m)g._parentOrParents=this;else if(m instanceof M){if(m===this)return g;g._parentOrParents=[m,this]}else{if(-1!==m.indexOf(this))return g;m.push(this)}const l=this._subscriptions;return null===l?this._subscriptions=[g]:l.push(g),g}remove(A){const g=this._subscriptions;if(g){const m=g.indexOf(A);-1!==m&&g.splice(m,1)}}}var x;function P(x){return x.reduce((A,g)=>A.concat(g instanceof S?g.errors:g),[])}M.EMPTY=((x=new M).closed=!0,x)},71337:(St,z,s)=>{"use strict";s.d(z,{$:()=>n});let i=!1;const n={Promise:void 0,set useDeprecatedSynchronousErrorHandling(h){if(h){const C=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+C.stack)}else i&&console.log("RxJS: Back to a better error behavior. Thank you. <3");i=h},get useDeprecatedSynchronousErrorHandling(){return i}}},7583:(St,z,s)=>{"use strict";s.d(z,{gn:()=>M,tS:()=>x,zA:()=>C});var i=s(27721),n=s(17053),h=s(37233);class C extends i.v{constructor(g){super(),this.parent=g}_next(g){this.parent.notifyNext(g)}_error(g){this.parent.notifyError(g),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class M extends i.v{notifyNext(g){this.destination.next(g)}notifyError(g){this.destination.error(g)}notifyComplete(){this.destination.complete()}}function x(A,g){if(!g.closed)return A instanceof n.c?A.subscribe(g):(0,h.i)(A)(g)}},96090:(St,z,s)=>{"use strict";s.d(z,{G:()=>M,f:()=>P});var i=s(80583),n=s(17053),C=(s(27721),s(10399)),S=s(60837);class M extends n.c{constructor(l,r){super(),this.source=l,this.subjectFactory=r,this._refCount=0,this._isComplete=!1}_subscribe(l){return this.getSubject().subscribe(l)}getSubject(){const l=this._subject;return(!l||l.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let l=this._connection;return l||(this._isComplete=!1,l=this._connection=new C.y,l.add(this.source.subscribe(new x(this.getSubject(),this))),l.closed&&(this._connection=null,l=C.y.EMPTY)),l}refCount(){return(0,S.B)()(this)}}const P=(()=>{const m=M.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:m._subscribe},_isComplete:{value:m._isComplete,writable:!0},getSubject:{value:m.getSubject},connect:{value:m.connect},refCount:{value:m.refCount}}})();class x extends i.PJ{constructor(l,r){super(l),this.connectable=r}_error(l){this._unsubscribe(),super._error(l)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const l=this.connectable;if(l){this.connectable=null;const r=l._connection;l._refCount=0,l._subject=null,l._connection=null,r&&r.unsubscribe()}}}},31315:(St,z,s)=>{"use strict";s.d(z,{ZS:()=>x,zV:()=>P});var i=s(44897),n=s(34277),h=s(88134),C=s(1447),S=s(1724);const M={};function P(...g){let m,l;return(0,i.m)(g[g.length-1])&&(l=g.pop()),"function"==typeof g[g.length-1]&&(m=g.pop()),1===g.length&&(0,n.c)(g[0])&&(g=g[0]),(0,S.c)(g,l).lift(new x(m))}class x{constructor(m){this.resultSelector=m}call(m,l){return l.subscribe(new A(m,this.resultSelector))}}class A extends h.E{constructor(m,l){super(m),this.resultSelector=l,this.active=0,this.values=[],this.observables=[]}_next(m){this.values.push(M),this.observables.push(m)}_complete(){const m=this.observables,l=m.length;if(0===l)this.destination.complete();else{this.active=l,this.toRespond=l;for(let r=0;r<l;r++)this.add((0,C.F)(this,m[r],void 0,r))}}notifyComplete(m){0==(this.active-=1)&&this.destination.complete()}notifyNext(m,l,r){const u=this.values,E=this.toRespond?u[r]===M?--this.toRespond:this.toRespond:0;u[r]=l,0===E&&(this.resultSelector?this._tryResultSelector(u):this.destination.next(u.slice()))}_tryResultSelector(m){let l;try{l=this.resultSelector.apply(this,m)}catch(r){return void this.destination.error(r)}this.destination.next(l)}}},69917:(St,z,s)=>{"use strict";s.d(z,{x:()=>h});var i=s(43848),n=s(45306);function h(...C){return(0,n.K)()((0,i.of)(...C))}},63997:(St,z,s)=>{"use strict";s.d(z,{v:()=>C});var i=s(17053),n=s(19392),h=s(12532);function C(S){return new i.c(M=>{let P;try{P=S()}catch(A){return void M.error(A)}return(P?(0,n.H)(P):(0,h.I)()).subscribe(M)})}},12532:(St,z,s)=>{"use strict";s.d(z,{I:()=>h,w:()=>n});var i=s(17053);const n=new i.c(S=>S.complete());function h(S){return S?function C(S){return new i.c(M=>S.schedule(()=>M.complete()))}(S):n}},93181:(St,z,s)=>{"use strict";s.d(z,{p:()=>M});var i=s(17053),n=s(34277),h=s(83915),C=s(96305),S=s(19392);function M(...x){if(1===x.length){const A=x[0];if((0,n.c)(A))return P(A,null);if((0,C.G)(A)&&Object.getPrototypeOf(A)===Object.prototype){const g=Object.keys(A);return P(g.map(m=>A[m]),g)}}if("function"==typeof x[x.length-1]){const A=x.pop();return P(x=1===x.length&&(0,n.c)(x[0])?x[0]:x,null).pipe((0,h.T)(g=>A(...g)))}return P(x,null)}function P(x,A){return new i.c(g=>{const m=x.length;if(0===m)return void g.complete();const l=new Array(m);let r=0,u=0;for(let v=0;v<m;v++){const E=(0,S.H)(x[v]);let T=!1;g.add(E.subscribe({next:R=>{T||(T=!0,u++),l[v]=R},error:R=>g.error(R),complete:()=>{r++,(r===m||!T)&&(u===m&&g.next(A?A.reduce((R,B,U)=>(R[B]=l[U],R),{}):l),g.complete())}}))}})}},19392:(St,z,s)=>{"use strict";s.d(z,{H:()=>v});var i=s(17053),n=s(37233),h=s(10399),C=s(15587),P=s(57797),x=s(63320),m=s(48089),l=s(19730);function v(E,T){return T?function u(E,T){if(null!=E){if(function g(E){return E&&"function"==typeof E[C.s]}(E))return function S(E,T){return new i.c(R=>{const B=new h.y;return B.add(T.schedule(()=>{const U=E[C.s]();B.add(U.subscribe({next(Y){B.add(T.schedule(()=>R.next(Y)))},error(Y){B.add(T.schedule(()=>R.error(Y)))},complete(){B.add(T.schedule(()=>R.complete()))}}))})),B})}(E,T);if((0,m.y)(E))return function M(E,T){return new i.c(R=>{const B=new h.y;return B.add(T.schedule(()=>E.then(U=>{B.add(T.schedule(()=>{R.next(U),B.add(T.schedule(()=>R.complete()))}))},U=>{B.add(T.schedule(()=>R.error(U)))}))),B})}(E,T);if((0,l.X)(E))return(0,P.V)(E,T);if(function r(E){return E&&"function"==typeof E[x.lJ]}(E)||"string"==typeof E)return function A(E,T){if(!E)throw new Error("Iterable cannot be null");return new i.c(R=>{const B=new h.y;let U;return B.add(()=>{U&&"function"==typeof U.return&&U.return()}),B.add(T.schedule(()=>{U=E[x.lJ](),B.add(T.schedule(function(){if(R.closed)return;let Y,ae;try{const G=U.next();Y=G.value,ae=G.done}catch(G){return void R.error(G)}ae?R.complete():(R.next(Y),this.schedule())}))})),B})}(E,T)}throw new TypeError((null!==E&&typeof E||E)+" is not observable")}(E,T):E instanceof i.c?E:new i.c((0,n.i)(E))}},1724:(St,z,s)=>{"use strict";s.d(z,{c:()=>C});var i=s(17053),n=s(46936),h=s(57797);function C(S,M){return M?(0,h.V)(S,M):new i.c((0,n.v)(S))}},36877:(St,z,s)=>{"use strict";s.d(z,{R:()=>M});var i=s(17053),n=s(34277),h=s(50710),C=s(83915);function M(m,l,r,u){return(0,h.T)(r)&&(u=r,r=void 0),u?M(m,l,r).pipe((0,C.T)(v=>(0,n.c)(v)?u(...v):u(v))):new i.c(v=>{P(m,l,function E(T){v.next(arguments.length>1?Array.prototype.slice.call(arguments):T)},v,r)})}function P(m,l,r,u,v){let E;if(function g(m){return m&&"function"==typeof m.addEventListener&&"function"==typeof m.removeEventListener}(m)){const T=m;m.addEventListener(l,r,v),E=()=>T.removeEventListener(l,r,v)}else if(function A(m){return m&&"function"==typeof m.on&&"function"==typeof m.off}(m)){const T=m;m.on(l,r),E=()=>T.off(l,r)}else if(function x(m){return m&&"function"==typeof m.addListener&&"function"==typeof m.removeListener}(m)){const T=m;m.addListener(l,r),E=()=>T.removeListener(l,r)}else{if(!m||!m.length)throw new TypeError("Invalid event target");for(let T=0,R=m.length;T<R;T++)P(m[T],l,r,u,v)}u.add(E)}},56237:(St,z,s)=>{"use strict";s.d(z,{T:()=>h});var i=s(63997),n=s(12532);function h(C,S=n.w,M=n.w){return(0,i.v)(()=>C()?S:M)}},892:(St,z,s)=>{"use strict";s.d(z,{Y:()=>C});var i=s(17053),n=s(90093),h=s(37803);function C(M=0,P=n.b){return(!(0,h.k)(M)||M<0)&&(M=0),(!P||"function"!=typeof P.schedule)&&(P=n.b),new i.c(x=>(x.add(P.schedule(S,M,{subscriber:x,counter:0,period:M})),x))}function S(M){const{subscriber:P,counter:x,period:A}=M;P.next(x),this.schedule({subscriber:P,counter:x+1,period:A},A)}},16229:(St,z,s)=>{"use strict";s.d(z,{h:()=>S});var i=s(17053),n=s(44897),h=s(40466),C=s(1724);function S(...M){let P=Number.POSITIVE_INFINITY,x=null,A=M[M.length-1];return(0,n.m)(A)?(x=M.pop(),M.length>1&&"number"==typeof M[M.length-1]&&(P=M.pop())):"number"==typeof A&&(P=M.pop()),null===x&&1===M.length&&M[0]instanceof i.c?M[0]:(0,h.U)(P)((0,C.c)(M,x))}},27731:(St,z,s)=>{"use strict";s.d(z,{t:()=>h});var i=s(17053),n=s(36466);const h=new i.c(n.l)},43848:(St,z,s)=>{"use strict";s.d(z,{of:()=>C});var i=s(44897),n=s(1724),h=s(57797);function C(...S){let M=S[S.length-1];return(0,i.m)(M)?(S.pop(),(0,h.V)(S,M)):(0,n.c)(S)}},15652:(St,z,s)=>{"use strict";s.d(z,{O4:()=>S});var i=s(34277),n=s(1724),h=s(88134),C=s(1447);function S(...x){if(1===x.length){if(!(0,i.c)(x[0]))return x[0];x=x[0]}return(0,n.c)(x,void 0).lift(new M)}class M{call(A,g){return g.subscribe(new P(A))}}class P extends h.E{constructor(A){super(A),this.hasFirst=!1,this.observables=[],this.subscriptions=[]}_next(A){this.observables.push(A)}_complete(){const A=this.observables,g=A.length;if(0===g)this.destination.complete();else{for(let m=0;m<g&&!this.hasFirst;m++){const r=(0,C.F)(this,A[m],void 0,m);this.subscriptions&&this.subscriptions.push(r),this.add(r)}this.observables=null}}notifyNext(A,g,m){if(!this.hasFirst){this.hasFirst=!0;for(let l=0;l<this.subscriptions.length;l++)if(l!==m){let r=this.subscriptions[l];r.unsubscribe(),this.remove(r)}this.subscriptions=null}this.destination.next(g)}}},59859:(St,z,s)=>{"use strict";s.d(z,{$:()=>n});var i=s(17053);function n(C,S){return new i.c(S?M=>S.schedule(h,0,{error:C,subscriber:M}):M=>M.error(C))}function h({error:C,subscriber:S}){S.error(C)}},3496:(St,z,s)=>{"use strict";s.d(z,{O:()=>S});var i=s(17053),n=s(90093),h=s(37803),C=s(44897);function S(P=0,x,A){let g=-1;return(0,h.k)(x)?g=Number(x)<1?1:Number(x):(0,C.m)(x)&&(A=x),(0,C.m)(A)||(A=n.b),new i.c(m=>{const l=(0,h.k)(P)?P:+P-A.now();return A.schedule(M,l,{index:0,period:g,subscriber:m})})}function M(P){const{index:x,period:A,subscriber:g}=P;if(g.next(x),!g.closed){if(-1===A)return g.complete();P.index=x+1,this.schedule(P,A)}}},35146:(St,z,s)=>{"use strict";s.d(z,{ee:()=>P,yU:()=>M});var i=s(1724),n=s(34277),h=s(27721),C=s(63320),S=s(7583);function M(...l){const r=l[l.length-1];return"function"==typeof r&&l.pop(),(0,i.c)(l,void 0).lift(new P(r))}class P{constructor(r){this.resultSelector=r}call(r,u){return u.subscribe(new x(r,this.resultSelector))}}class x extends h.v{constructor(r,u,v=Object.create(null)){super(r),this.resultSelector=u,this.iterators=[],this.active=0,this.resultSelector="function"==typeof u?u:void 0}_next(r){const u=this.iterators;(0,n.c)(r)?u.push(new g(r)):u.push("function"==typeof r[C.lJ]?new A(r[C.lJ]()):new m(this.destination,this,r))}_complete(){const r=this.iterators,u=r.length;if(this.unsubscribe(),0!==u){this.active=u;for(let v=0;v<u;v++){let E=r[v];E.stillUnsubscribed?this.destination.add(E.subscribe()):this.active--}}else this.destination.complete()}notifyInactive(){this.active--,0===this.active&&this.destination.complete()}checkIterators(){const r=this.iterators,u=r.length,v=this.destination;for(let R=0;R<u;R++){let B=r[R];if("function"==typeof B.hasValue&&!B.hasValue())return}let E=!1;const T=[];for(let R=0;R<u;R++){let B=r[R],U=B.next();if(B.hasCompleted()&&(E=!0),U.done)return void v.complete();T.push(U.value)}this.resultSelector?this._tryresultSelector(T):v.next(T),E&&v.complete()}_tryresultSelector(r){let u;try{u=this.resultSelector.apply(this,r)}catch(v){return void this.destination.error(v)}this.destination.next(u)}}class A{constructor(r){this.iterator=r,this.nextResult=r.next()}hasValue(){return!0}next(){const r=this.nextResult;return this.nextResult=this.iterator.next(),r}hasCompleted(){const r=this.nextResult;return!(!r||!r.done)}}class g{constructor(r){this.array=r,this.index=0,this.length=0,this.length=r.length}[C.lJ](){return this}next(r){const u=this.index++;return u<this.length?{value:this.array[u],done:!1}:{value:null,done:!0}}hasValue(){return this.array.length>this.index}hasCompleted(){return this.array.length===this.index}}class m extends S.gn{constructor(r,u,v){super(r),this.parent=u,this.observable=v,this.stillUnsubscribed=!0,this.buffer=[],this.isComplete=!1}[C.lJ](){return this}next(){const r=this.buffer;return 0===r.length&&this.isComplete?{value:null,done:!0}:{value:r.shift(),done:!1}}hasValue(){return this.buffer.length>0}hasCompleted(){return 0===this.buffer.length&&this.isComplete}notifyComplete(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()}notifyNext(r){this.buffer.push(r),this.parent.checkIterators()}subscribe(){return(0,S.tS)(this.observable,new S.zA(this))}}},72438:(St,z,s)=>{"use strict";s.d(z,{s:()=>n});var i=s(7583);function n(S){return function(P){return P.lift(new h(S))}}class h{constructor(M){this.durationSelector=M}call(M,P){return P.subscribe(new C(M,this.durationSelector))}}class C extends i.gn{constructor(M,P){super(M),this.durationSelector=P,this.hasValue=!1}_next(M){if(this.value=M,this.hasValue=!0,!this.throttled){let P;try{const{durationSelector:A}=this;P=A(M)}catch(A){return this.destination.error(A)}const x=(0,i.tS)(P,new i.zA(this));!x||x.closed?this.clearThrottle():this.add(this.throttled=x)}}clearThrottle(){const{value:M,hasValue:P,throttled:x}=this;x&&(this.remove(x),this.throttled=void 0,x.unsubscribe()),P&&(this.value=void 0,this.hasValue=!1,this.destination.next(M))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}},76259:(St,z,s)=>{"use strict";s.d(z,{Z:()=>C});var i=s(90093),n=s(72438),h=s(3496);function C(S,M=i.b){return(0,n.s)(()=>(0,h.O)(S,M))}},29118:(St,z,s)=>{"use strict";s.d(z,{w:()=>C});var i=s(90093),n=s(27721),h=s(44897);function C(m){let l=arguments.length,r=i.b;(0,h.m)(arguments[arguments.length-1])&&(r=arguments[arguments.length-1],l--);let u=null;l>=2&&(u=arguments[1]);let v=Number.POSITIVE_INFINITY;return l>=3&&(v=arguments[2]),function(T){return T.lift(new S(m,u,v,r))}}class S{constructor(l,r,u,v){this.bufferTimeSpan=l,this.bufferCreationInterval=r,this.maxBufferSize=u,this.scheduler=v}call(l,r){return r.subscribe(new P(l,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))}}class M{constructor(){this.buffer=[]}}class P extends n.v{constructor(l,r,u,v,E){super(l),this.bufferTimeSpan=r,this.bufferCreationInterval=u,this.maxBufferSize=v,this.scheduler=E,this.contexts=[];const T=this.openContext();if(this.timespanOnly=null==u||u<0,this.timespanOnly)this.add(T.closeAction=E.schedule(x,r,{subscriber:this,context:T,bufferTimeSpan:r}));else{const B={bufferTimeSpan:r,bufferCreationInterval:u,subscriber:this,scheduler:E};this.add(T.closeAction=E.schedule(g,r,{subscriber:this,context:T})),this.add(E.schedule(A,u,B))}}_next(l){const r=this.contexts,u=r.length;let v;for(let E=0;E<u;E++){const T=r[E],R=T.buffer;R.push(l),R.length==this.maxBufferSize&&(v=T)}v&&this.onBufferFull(v)}_error(l){this.contexts.length=0,super._error(l)}_complete(){const{contexts:l,destination:r}=this;for(;l.length>0;){const u=l.shift();r.next(u.buffer)}super._complete()}_unsubscribe(){this.contexts=null}onBufferFull(l){this.closeContext(l);const r=l.closeAction;if(r.unsubscribe(),this.remove(r),!this.closed&&this.timespanOnly){l=this.openContext();const u=this.bufferTimeSpan;this.add(l.closeAction=this.scheduler.schedule(x,u,{subscriber:this,context:l,bufferTimeSpan:u}))}}openContext(){const l=new M;return this.contexts.push(l),l}closeContext(l){this.destination.next(l.buffer);const r=this.contexts;(r?r.indexOf(l):-1)>=0&&r.splice(r.indexOf(l),1)}}function x(m){const l=m.subscriber,r=m.context;r&&l.closeContext(r),l.closed||(m.context=l.openContext(),m.context.closeAction=this.schedule(m,m.bufferTimeSpan))}function A(m){const{bufferCreationInterval:l,bufferTimeSpan:r,subscriber:u,scheduler:v}=m,E=u.openContext();u.closed||(u.add(E.closeAction=v.schedule(g,r,{subscriber:u,context:E})),this.schedule(m,l))}function g(m){const{subscriber:l,context:r}=m;l.closeContext(r)}},14714:(St,z,s)=>{"use strict";s.d(z,{W:()=>n});var i=s(7583);function n(S){return function(P){const x=new h(S),A=P.lift(x);return x.caught=A}}class h{constructor(M){this.selector=M}call(M,P){return P.subscribe(new C(M,this.selector,this.caught))}}class C extends i.gn{constructor(M,P,x){super(M),this.selector=P,this.caught=x}error(M){if(!this.isStopped){let P;try{P=this.selector(M,this.caught)}catch(g){return void super.error(g)}this._unsubscribeAndRecycle();const x=new i.zA(this);this.add(x);const A=(0,i.tS)(P,x);A!==x&&this.add(A)}}}},45306:(St,z,s)=>{"use strict";s.d(z,{K:()=>n});var i=s(40466);function n(){return(0,i.U)(1)}},79539:(St,z,s)=>{"use strict";s.d(z,{H:()=>n});var i=s(75707);function n(h,C){return(0,i.ZZ)(h,C,1)}},62931:(St,z,s)=>{"use strict";s.d(z,{B:()=>h});var i=s(27721),n=s(90093);function h(P,x=n.b){return A=>A.lift(new C(P,x))}class C{constructor(x,A){this.dueTime=x,this.scheduler=A}call(x,A){return A.subscribe(new S(x,this.dueTime,this.scheduler))}}class S extends i.v{constructor(x,A,g){super(x),this.dueTime=A,this.scheduler=g,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(x){this.clearDebounce(),this.lastValue=x,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(M,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:x}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(x)}}clearDebounce(){const x=this.debouncedSubscription;null!==x&&(this.remove(x),x.unsubscribe(),this.debouncedSubscription=null)}}function M(P){P.debouncedNext()}},67110:(St,z,s)=>{"use strict";s.d(z,{U:()=>n});var i=s(27721);function n(S=null){return M=>M.lift(new h(S))}class h{constructor(M){this.defaultValue=M}call(M,P){return P.subscribe(new C(M,this.defaultValue))}}class C extends i.v{constructor(M,P){super(M),this.defaultValue=P,this.isEmpty=!0}_next(M){this.isEmpty=!1,this.destination.next(M)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}},65726:(St,z,s)=>{"use strict";s.d(z,{c:()=>S});var i=s(90093),n=s(29734),h=s(27721),C=s(75252);function S(A,g=i.b){const l=(0,n.$)(A)?+A-g.now():Math.abs(A);return r=>r.lift(new M(l,g))}class M{constructor(g,m){this.delay=g,this.scheduler=m}call(g,m){return m.subscribe(new P(g,this.delay,this.scheduler))}}class P extends h.v{constructor(g,m,l){super(g),this.delay=m,this.scheduler=l,this.queue=[],this.active=!1,this.errored=!1}static dispatch(g){const m=g.source,l=m.queue,r=g.scheduler,u=g.destination;for(;l.length>0&&l[0].time-r.now()<=0;)l.shift().notification.observe(u);if(l.length>0){const v=Math.max(0,l[0].time-r.now());this.schedule(g,v)}else this.unsubscribe(),m.active=!1}_schedule(g){this.active=!0,this.destination.add(g.schedule(P.dispatch,this.delay,{source:this,destination:this.destination,scheduler:g}))}scheduleNotification(g){if(!0===this.errored)return;const m=this.scheduler,l=new x(m.now()+this.delay,g);this.queue.push(l),!1===this.active&&this._schedule(m)}_next(g){this.scheduleNotification(C.E.createNext(g))}_error(g){this.errored=!0,this.queue=[],this.destination.error(g),this.unsubscribe()}_complete(){this.scheduleNotification(C.E.createComplete()),this.unsubscribe()}}class x{constructor(g,m){this.time=g,this.notification=m}}},53461:(St,z,s)=>{"use strict";s.d(z,{F:()=>n});var i=s(27721);function n(S,M){return P=>P.lift(new h(S,M))}class h{constructor(M,P){this.compare=M,this.keySelector=P}call(M,P){return P.subscribe(new C(M,this.compare,this.keySelector))}}class C extends i.v{constructor(M,P,x){super(M),this.keySelector=x,this.hasKey=!1,"function"==typeof P&&(this.compare=P)}compare(M,P){return M===P}_next(M){let P;try{const{keySelector:A}=this;P=A?A(M):M}catch(A){return this.destination.error(A)}let x=!1;if(this.hasKey)try{const{compare:A}=this;x=A(this.key,P)}catch(A){return this.destination.error(A)}else this.hasKey=!0;x||(this.key=P,this.destination.next(M))}}},80412:(St,z,s)=>{"use strict";s.d(z,{q:()=>h});var i=s(69917),n=s(43848);function h(...C){return S=>(0,i.x)(S,(0,n.of)(...C))}},10749:(St,z,s)=>{"use strict";s.d(z,{p:()=>C});var i=s(83915),n=s(19392),h=s(7583);function C(P,x){return x?A=>A.pipe(C((g,m)=>(0,n.H)(P(g,m)).pipe((0,i.T)((l,r)=>x(g,l,m,r))))):A=>A.lift(new S(P))}class S{constructor(x){this.project=x}call(x,A){return A.subscribe(new M(x,this.project))}}class M extends h.gn{constructor(x,A){super(x),this.project=A,this.hasSubscription=!1,this.hasCompleted=!1,this.index=0}_next(x){this.hasSubscription||this.tryNext(x)}tryNext(x){let A;const g=this.index++;try{A=this.project(x,g)}catch(m){return void this.destination.error(m)}this.hasSubscription=!0,this._innerSub(A)}_innerSub(x){const A=new h.zA(this),g=this.destination;g.add(A);const m=(0,h.tS)(x,A);m!==A&&g.add(m)}_complete(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete(),this.unsubscribe()}notifyNext(x){this.destination.next(x)}notifyError(x){this.destination.error(x)}notifyComplete(){this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()}}},8619:(St,z,s)=>{"use strict";s.d(z,{p:()=>n});var i=s(27721);function n(S,M){return function(x){return x.lift(new h(S,M))}}class h{constructor(M,P){this.predicate=M,this.thisArg=P}call(M,P){return P.subscribe(new C(M,this.predicate,this.thisArg))}}class C extends i.v{constructor(M,P,x){super(M),this.predicate=P,this.thisArg=x,this.count=0}_next(M){let P;try{P=this.predicate.call(this.thisArg,M,this.count++)}catch(x){return void this.destination.error(x)}P&&this.destination.next(M)}}},43615:(St,z,s)=>{"use strict";s.d(z,{j:()=>h});var i=s(27721),n=s(10399);function h(M){return P=>P.lift(new C(M))}class C{constructor(P){this.callback=P}call(P,x){return x.subscribe(new S(P,this.callback))}}class S extends i.v{constructor(P,x){super(P),this.add(new n.y(x))}}},99047:(St,z,s)=>{"use strict";s.d(z,{$:()=>P});var i=s(64971),n=s(8619),h=s(65706),C=s(67110),S=s(56681),M=s(92932);function P(x,A){const g=arguments.length>=2;return m=>m.pipe(x?(0,n.p)((l,r)=>x(l,r,m)):M.D,(0,h.s)(1),g?(0,C.U)(A):(0,S.v)(()=>new i.G))}},25577:(St,z,s)=>{"use strict";s.d(z,{H:()=>P});var i=s(64971),n=s(8619),h=s(93702),C=s(56681),S=s(67110),M=s(92932);function P(x,A){const g=arguments.length>=2;return m=>m.pipe(x?(0,n.p)((l,r)=>x(l,r,m)):M.D,(0,h.o)(1),g?(0,S.U)(A):(0,C.v)(()=>new i.G))}},83915:(St,z,s)=>{"use strict";s.d(z,{T:()=>n});var i=s(27721);function n(S,M){return function(x){if("function"!=typeof S)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return x.lift(new h(S,M))}}class h{constructor(M,P){this.project=M,this.thisArg=P}call(M,P){return P.subscribe(new C(M,this.project,this.thisArg))}}class C extends i.v{constructor(M,P,x){super(M),this.project=P,this.count=0,this.thisArg=x||this}_next(M){let P;try{P=this.project.call(this.thisArg,M,this.count++)}catch(x){return void this.destination.error(x)}this.destination.next(P)}}},10174:(St,z,s)=>{"use strict";s.d(z,{u:()=>n});var i=s(27721);function n(S){return M=>M.lift(new h(S))}class h{constructor(M){this.value=M}call(M,P){return P.subscribe(new C(M,this.value))}}class C extends i.v{constructor(M,P){super(M),this.value=P}_next(M){this.destination.next(this.value)}}},40466:(St,z,s)=>{"use strict";s.d(z,{U:()=>h});var i=s(75707),n=s(92932);function h(C=Number.POSITIVE_INFINITY){return(0,i.ZZ)(n.D,C)}},75707:(St,z,s)=>{"use strict";s.d(z,{ZZ:()=>C,qI:()=>P});var i=s(83915),n=s(19392),h=s(7583);function C(x,A,g=Number.POSITIVE_INFINITY){return"function"==typeof A?m=>m.pipe(C((l,r)=>(0,n.H)(x(l,r)).pipe((0,i.T)((u,v)=>A(l,u,r,v))),g)):("number"==typeof A&&(g=A),m=>m.lift(new S(x,g)))}class S{constructor(A,g=Number.POSITIVE_INFINITY){this.project=A,this.concurrent=g}call(A,g){return g.subscribe(new M(A,this.project,this.concurrent))}}class M extends h.gn{constructor(A,g,m=Number.POSITIVE_INFINITY){super(A),this.project=g,this.concurrent=m,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(A){this.active<this.concurrent?this._tryNext(A):this.buffer.push(A)}_tryNext(A){let g;const m=this.index++;try{g=this.project(A,m)}catch(l){return void this.destination.error(l)}this.active++,this._innerSub(g)}_innerSub(A){const g=new h.zA(this),m=this.destination;m.add(g);const l=(0,h.tS)(A,g);l!==g&&m.add(l)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(A){this.destination.next(A)}notifyComplete(){const A=this.buffer;this.active--,A.length>0?this._next(A.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}const P=C},43323:(St,z,s)=>{"use strict";s.d(z,{f:()=>n});var i=s(96090);function n(C,S){return function(P){let x;if(x="function"==typeof C?C:function(){return C},"function"==typeof S)return P.lift(new h(x,S));const A=Object.create(P,i.f);return A.source=P,A.subjectFactory=x,A}}class h{constructor(S,M){this.subjectFactory=S,this.selector=M}call(S,M){const{selector:P}=this,x=this.subjectFactory(),A=P(x).subscribe(S);return A.add(M.subscribe(x)),A}}},79284:(St,z,s)=>{"use strict";s.d(z,{QE:()=>h,YZ:()=>S});var i=s(27721),n=s(75252);function h(P,x=0){return function(g){return g.lift(new C(P,x))}}class C{constructor(x,A=0){this.scheduler=x,this.delay=A}call(x,A){return A.subscribe(new S(x,this.scheduler,this.delay))}}class S extends i.v{constructor(x,A,g=0){super(x),this.scheduler=A,this.delay=g}static dispatch(x){const{notification:A,destination:g}=x;A.observe(g),this.unsubscribe()}scheduleMessage(x){this.destination.add(this.scheduler.schedule(S.dispatch,this.delay,new M(x,this.destination)))}_next(x){this.scheduleMessage(n.E.createNext(x))}_error(x){this.scheduleMessage(n.E.createError(x)),this.unsubscribe()}_complete(){this.scheduleMessage(n.E.createComplete()),this.unsubscribe()}}class M{constructor(x,A){this.notification=x,this.destination=A}}},14749:(St,z,s)=>{"use strict";s.d(z,{J:()=>n});var i=s(27721);function n(){return S=>S.lift(new h)}class h{call(M,P){return P.subscribe(new C(M))}}class C extends i.v{constructor(M){super(M),this.hasPrev=!1}_next(M){let P;this.hasPrev?P=[this.prev,M]:this.hasPrev=!0,this.prev=M,P&&this.destination.next(P)}}},90975:(St,z,s)=>{"use strict";s.d(z,{T:()=>S});var i=s(18612),n=s(93702),h=s(67110),C=s(97462);function S(M,P){return arguments.length>=2?function(A){return(0,C.F)((0,i.S)(M,P),(0,n.o)(1),(0,h.U)(P))(A)}:function(A){return(0,C.F)((0,i.S)((g,m,l)=>M(g,m,l+1)),(0,n.o)(1))(A)}}},60837:(St,z,s)=>{"use strict";s.d(z,{B:()=>n});var i=s(27721);function n(){return function(M){return M.lift(new h(M))}}class h{constructor(M){this.connectable=M}call(M,P){const{connectable:x}=this;x._refCount++;const A=new C(M,x),g=P.subscribe(A);return A.closed||(A.connection=x.connect()),g}}class C extends i.v{constructor(M,P){super(M),this.connectable=P}_unsubscribe(){const{connectable:M}=this;if(!M)return void(this.connection=null);this.connectable=null;const P=M._refCount;if(P<=0)return void(this.connection=null);if(M._refCount=P-1,P>1)return void(this.connection=null);const{connection:x}=this,A=M._connection;this.connection=null,A&&(!x||A===x)&&A.unsubscribe()}}},86447:(St,z,s)=>{"use strict";s.d(z,{l:()=>h});var i=s(80583),n=s(7583);function h(M){return P=>P.lift(new C(M,P))}class C{constructor(P,x){this.notifier=P,this.source=x}call(P,x){return x.subscribe(new S(P,this.notifier,this.source))}}class S extends n.gn{constructor(P,x,A){super(P),this.notifier=x,this.source=A}error(P){if(!this.isStopped){let x=this.errors,A=this.retries,g=this.retriesSubscription;if(A)this.errors=void 0,this.retriesSubscription=void 0;else{x=new i.B7;try{const{notifier:m}=this;A=m(x)}catch(m){return super.error(m)}g=(0,n.tS)(A,new n.zA(this))}this._unsubscribeAndRecycle(),this.errors=x,this.retries=A,this.retriesSubscription=g,x.next(P)}}_unsubscribe(){const{errors:P,retriesSubscription:x}=this;P&&(P.unsubscribe(),this.errors=void 0),x&&(x.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0}notifyNext(){const{_unsubscribe:P}=this;this._unsubscribe=null,this._unsubscribeAndRecycle(),this._unsubscribe=P,this.source.subscribe(this)}}},18612:(St,z,s)=>{"use strict";s.d(z,{S:()=>n});var i=s(27721);function n(S,M){let P=!1;return arguments.length>=2&&(P=!0),function(A){return A.lift(new h(S,M,P))}}class h{constructor(M,P,x=!1){this.accumulator=M,this.seed=P,this.hasSeed=x}call(M,P){return P.subscribe(new C(M,this.accumulator,this.seed,this.hasSeed))}}class C extends i.v{constructor(M,P,x,A){super(M),this.accumulator=P,this._seed=x,this.hasSeed=A,this.index=0}get seed(){return this._seed}set seed(M){this.hasSeed=!0,this._seed=M}_next(M){if(this.hasSeed)return this._tryNext(M);this.seed=M,this.destination.next(M)}_tryNext(M){const P=this.index++;let x;try{x=this.accumulator(this.seed,M,P)}catch(A){this.destination.error(A)}this.seed=x,this.destination.next(x)}}},65770:(St,z,s)=>{"use strict";s.d(z,{u:()=>S});var i=s(43323),n=s(60837),h=s(80583);function C(){return new h.B7}function S(){return M=>(0,n.B)()((0,i.f)(C)(M))}},55833:(St,z,s)=>{"use strict";s.d(z,{t:()=>n});var i=s(85735);function n(C,S,M){let P;return P=C&&"object"==typeof C?C:{bufferSize:C,windowTime:S,refCount:!1,scheduler:M},x=>x.lift(function h({bufferSize:C=Number.POSITIVE_INFINITY,windowTime:S=Number.POSITIVE_INFINITY,refCount:M,scheduler:P}){let x,g,A=0,m=!1,l=!1;return function(u){let v;A++,!x||m?(m=!1,x=new i.m(C,S,P),v=x.subscribe(this),g=u.subscribe({next(E){x.next(E)},error(E){m=!0,x.error(E)},complete(){l=!0,g=void 0,x.complete()}})):v=x.subscribe(this),this.add(()=>{A--,v.unsubscribe(),g&&!l&&M&&0===A&&(g.unsubscribe(),g=void 0,x=void 0)})}}(P))}},36666:(St,z,s)=>{"use strict";s.d(z,{i:()=>n});var i=s(27721);function n(S){return M=>M.lift(new h(S))}class h{constructor(M){this.total=M}call(M,P){return P.subscribe(new C(M,this.total))}}class C extends i.v{constructor(M,P){super(M),this.total=P,this.count=0}_next(M){++this.count>this.total&&this.destination.next(M)}}},28653:(St,z,s)=>{"use strict";s.d(z,{j:()=>n});var i=s(27721);function n(S){return M=>M.lift(new h(S))}class h{constructor(M){this.predicate=M}call(M,P){return P.subscribe(new C(M,this.predicate))}}class C extends i.v{constructor(M,P){super(M),this.predicate=P,this.skipping=!0,this.index=0}_next(M){const P=this.destination;this.skipping&&this.tryCallPredicate(M),this.skipping||P.next(M)}tryCallPredicate(M){try{const P=this.predicate(M,this.index++);this.skipping=!!P}catch(P){this.destination.error(P)}}}},34593:(St,z,s)=>{"use strict";s.d(z,{Z:()=>h});var i=s(69917),n=s(44897);function h(...C){const S=C[C.length-1];return(0,n.m)(S)?(C.pop(),M=>(0,i.x)(C,M,S)):M=>(0,i.x)(C,M)}},72147:(St,z,s)=>{"use strict";s.d(z,{n:()=>C});var i=s(83915),n=s(19392),h=s(7583);function C(P,x){return"function"==typeof x?A=>A.pipe(C((g,m)=>(0,n.H)(P(g,m)).pipe((0,i.T)((l,r)=>x(g,l,m,r))))):A=>A.lift(new S(P))}class S{constructor(x){this.project=x}call(x,A){return A.subscribe(new M(x,this.project))}}class M extends h.gn{constructor(x,A){super(x),this.project=A,this.index=0}_next(x){let A;const g=this.index++;try{A=this.project(x,g)}catch(m){return void this.destination.error(m)}this._innerSub(A)}_innerSub(x){const A=this.innerSubscription;A&&A.unsubscribe();const g=new h.zA(this),m=this.destination;m.add(g),this.innerSubscription=(0,h.tS)(x,g),this.innerSubscription!==g&&m.add(this.innerSubscription)}_complete(){const{innerSubscription:x}=this;(!x||x.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(x){this.destination.next(x)}}},65706:(St,z,s)=>{"use strict";s.d(z,{s:()=>C});var i=s(27721),n=s(86133),h=s(12532);function C(P){return x=>0===P?(0,h.I)():x.lift(new S(P))}class S{constructor(x){if(this.total=x,this.total<0)throw new n.k}call(x,A){return A.subscribe(new M(x,this.total))}}class M extends i.v{constructor(x,A){super(x),this.total=A,this.count=0}_next(x){const A=this.total,g=++this.count;g<=A&&(this.destination.next(x),g===A&&(this.destination.complete(),this.unsubscribe()))}}},93702:(St,z,s)=>{"use strict";s.d(z,{o:()=>C});var i=s(27721),n=s(86133),h=s(12532);function C(P){return function(A){return 0===P?(0,h.I)():A.lift(new S(P))}}class S{constructor(x){if(this.total=x,this.total<0)throw new n.k}call(x,A){return A.subscribe(new M(x,this.total))}}class M extends i.v{constructor(x,A){super(x),this.total=A,this.ring=new Array,this.count=0}_next(x){const A=this.ring,g=this.total,m=this.count++;A.length<g?A.push(x):A[m%g]=x}_complete(){const x=this.destination;let A=this.count;if(A>0){const g=this.count>=this.total?this.total:this.count,m=this.ring;for(let l=0;l<g;l++){const r=A++%g;x.next(m[r])}}x.complete()}}},4208:(St,z,s)=>{"use strict";s.d(z,{Q:()=>n});var i=s(7583);function n(S){return M=>M.lift(new h(S))}class h{constructor(M){this.notifier=M}call(M,P){const x=new C(M),A=(0,i.tS)(this.notifier,new i.zA(x));return A&&!x.seenValue?(x.add(A),P.subscribe(x)):x}}class C extends i.gn{constructor(M){super(M),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}},48765:(St,z,s)=>{"use strict";s.d(z,{v:()=>n});var i=s(27721);function n(S,M=!1){return P=>P.lift(new h(S,M))}class h{constructor(M,P){this.predicate=M,this.inclusive=P}call(M,P){return P.subscribe(new C(M,this.predicate,this.inclusive))}}class C extends i.v{constructor(M,P,x){super(M),this.predicate=P,this.inclusive=x,this.index=0}_next(M){const P=this.destination;let x;try{x=this.predicate(M,this.index++)}catch(A){return void P.error(A)}this.nextOrComplete(M,x)}nextOrComplete(M,P){const x=this.destination;P?x.next(M):(this.inclusive&&x.next(M),x.complete())}}},91384:(St,z,s)=>{"use strict";s.d(z,{M:()=>C});var i=s(27721),n=s(36466),h=s(50710);function C(P,x,A){return function(m){return m.lift(new S(P,x,A))}}class S{constructor(x,A,g){this.nextOrObserver=x,this.error=A,this.complete=g}call(x,A){return A.subscribe(new M(x,this.nextOrObserver,this.error,this.complete))}}class M extends i.v{constructor(x,A,g,m){super(x),this._tapNext=n.l,this._tapError=n.l,this._tapComplete=n.l,this._tapError=g||n.l,this._tapComplete=m||n.l,(0,h.T)(A)?(this._context=this,this._tapNext=A):A&&(this._context=A,this._tapNext=A.next||n.l,this._tapError=A.error||n.l,this._tapComplete=A.complete||n.l)}_next(x){try{this._tapNext.call(this._context,x)}catch(A){return void this.destination.error(A)}this.destination.next(x)}_error(x){try{this._tapError.call(this._context,x)}catch(A){return void this.destination.error(A)}this.destination.error(x)}_complete(){try{this._tapComplete.call(this._context)}catch(x){return void this.destination.error(x)}return this.destination.complete()}}},32489:(St,z,s)=>{"use strict";s.d(z,{Y:()=>n,n:()=>h});var i=s(7583);const n={leading:!0,trailing:!1};function h(M,P=n){return x=>x.lift(new C(M,!!P.leading,!!P.trailing))}class C{constructor(P,x,A){this.durationSelector=P,this.leading=x,this.trailing=A}call(P,x){return x.subscribe(new S(P,this.durationSelector,this.leading,this.trailing))}}class S extends i.gn{constructor(P,x,A,g){super(P),this.destination=P,this.durationSelector=x,this._leading=A,this._trailing=g,this._hasValue=!1}_next(P){this._hasValue=!0,this._sendValue=P,this._throttled||(this._leading?this.send():this.throttle(P))}send(){const{_hasValue:P,_sendValue:x}=this;P&&(this.destination.next(x),this.throttle(x)),this._hasValue=!1,this._sendValue=void 0}throttle(P){const x=this.tryDurationSelector(P);x&&this.add(this._throttled=(0,i.tS)(x,new i.zA(this)))}tryDurationSelector(P){try{return this.durationSelector(P)}catch(x){return this.destination.error(x),null}}throttlingDone(){const{_throttled:P,_trailing:x}=this;P&&P.unsubscribe(),this._throttled=void 0,x&&this.send()}notifyNext(){this.throttlingDone()}notifyComplete(){this.throttlingDone()}}},73180:(St,z,s)=>{"use strict";s.d(z,{c:()=>C});var i=s(27721),n=s(90093),h=s(32489);function C(x,A=n.b,g=h.Y){return m=>m.lift(new S(x,A,g.leading,g.trailing))}class S{constructor(A,g,m,l){this.duration=A,this.scheduler=g,this.leading=m,this.trailing=l}call(A,g){return g.subscribe(new M(A,this.duration,this.scheduler,this.leading,this.trailing))}}class M extends i.v{constructor(A,g,m,l,r){super(A),this.duration=g,this.scheduler=m,this.leading=l,this.trailing=r,this._hasTrailingValue=!1,this._trailingValue=null}_next(A){this.throttled?this.trailing&&(this._trailingValue=A,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(P,this.duration,{subscriber:this})),this.leading?this.destination.next(A):this.trailing&&(this._trailingValue=A,this._hasTrailingValue=!0))}_complete(){this._hasTrailingValue?(this.destination.next(this._trailingValue),this.destination.complete()):this.destination.complete()}clearThrottle(){const A=this.throttled;A&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),A.unsubscribe(),this.remove(A),this.throttled=null)}}function P(x){const{subscriber:A}=x;A.clearThrottle()}},56681:(St,z,s)=>{"use strict";s.d(z,{v:()=>h});var i=s(64971),n=s(27721);function h(P=M){return x=>x.lift(new C(P))}class C{constructor(x){this.errorFactory=x}call(x,A){return A.subscribe(new S(x,this.errorFactory))}}class S extends n.v{constructor(x,A){super(x),this.errorFactory=A,this.hasValue=!1}_next(x){this.hasValue=!0,this.destination.next(x)}_complete(){if(this.hasValue)return this.destination.complete();{let x;try{x=this.errorFactory()}catch(A){x=A}this.destination.error(x)}}}function M(){return new i.G}},40198:(St,z,s)=>{"use strict";s.d(z,{w:()=>S});var i=s(90093),n=s(99021),h=s(12962),C=s(59859);function S(M,P=i.b){return(0,h.o)(M,(0,C.$)(new n.M),P)}},12962:(St,z,s)=>{"use strict";s.d(z,{o:()=>C});var i=s(90093),n=s(29734),h=s(7583);function C(P,x,A=i.b){return g=>{let m=(0,n.$)(P),l=m?+P-A.now():Math.abs(P);return g.lift(new S(l,m,x,A))}}class S{constructor(x,A,g,m){this.waitFor=x,this.absoluteTimeout=A,this.withObservable=g,this.scheduler=m}call(x,A){return A.subscribe(new M(x,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))}}class M extends h.gn{constructor(x,A,g,m,l){super(x),this.absoluteTimeout=A,this.waitFor=g,this.withObservable=m,this.scheduler=l,this.scheduleTimeout()}static dispatchTimeout(x){const{withObservable:A}=x;x._unsubscribeAndRecycle(),x.add((0,h.tS)(A,new h.zA(x)))}scheduleTimeout(){const{action:x}=this;x?this.action=x.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(M.dispatchTimeout,this.waitFor,this))}_next(x){this.absoluteTimeout||this.scheduleTimeout(),super._next(x)}_unsubscribe(){this.action=void 0,this.scheduler=null,this.withObservable=null}}},51067:(St,z,s)=>{"use strict";s.d(z,{$:()=>h});var i=s(90975);function n(C,S,M){return 0===M?[S]:(C.push(S),C)}function h(){return(0,i.T)(n,[])}},57797:(St,z,s)=>{"use strict";s.d(z,{V:()=>h});var i=s(17053),n=s(10399);function h(C,S){return new i.c(M=>{const P=new n.y;let x=0;return P.add(S.schedule(function(){x!==C.length?(M.next(C[x++]),M.closed||P.add(this.schedule())):M.complete()})),P})}},86369:(St,z,s)=>{"use strict";s.d(z,{R:()=>h});var i=s(10399);class n extends i.y{constructor(S,M){super()}schedule(S,M=0){return this}}class h extends n{constructor(S,M){super(S,M),this.scheduler=S,this.work=M,this.pending=!1}schedule(S,M=0){if(this.closed)return this;this.state=S;const P=this.id,x=this.scheduler;return null!=P&&(this.id=this.recycleAsyncId(x,P,M)),this.pending=!0,this.delay=M,this.id=this.id||this.requestAsyncId(x,this.id,M),this}requestAsyncId(S,M,P=0){return setInterval(S.flush.bind(S,this),P)}recycleAsyncId(S,M,P=0){if(null!==P&&this.delay===P&&!1===this.pending)return M;clearInterval(M)}execute(S,M){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const P=this._execute(S,M);if(P)return P;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(S,M){let x,P=!1;try{this.work(S)}catch(A){P=!0,x=!!A&&A||new Error(A)}if(P)return this.unsubscribe(),x}_unsubscribe(){const S=this.id,M=this.scheduler,P=M.actions,x=P.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==x&&P.splice(x,1),null!=S&&(this.id=this.recycleAsyncId(M,S,null)),this.delay=null}}},4065:(St,z,s)=>{"use strict";s.d(z,{q:()=>n});let i=(()=>{class h{constructor(S,M=h.now){this.SchedulerAction=S,this.now=M}schedule(S,M=0,P){return new this.SchedulerAction(this,S).schedule(P,M)}}return h.now=()=>Date.now(),h})();class n extends i{constructor(C,S=i.now){super(C,()=>n.delegate&&n.delegate!==this?n.delegate.now():S()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(C,S=0,M){return n.delegate&&n.delegate!==this?n.delegate.schedule(C,S,M):super.schedule(C,S,M)}flush(C){const{actions:S}=this;if(this.active)return void S.push(C);let M;this.active=!0;do{if(M=C.execute(C.state,C.delay))break}while(C=S.shift());if(this.active=!1,M){for(;C=S.shift();)C.unsubscribe();throw M}}}},27594:(St,z,s)=>{"use strict";s.d(z,{X:()=>S});var i=s(86369),h=s(4065);const S=new class C extends h.q{flush(x){this.active=!0,this.scheduled=void 0;const{actions:A}=this;let g,m=-1,l=A.length;x=x||A.shift();do{if(g=x.execute(x.state,x.delay))break}while(++m<l&&(x=A.shift()));if(this.active=!1,g){for(;++m<l&&(x=A.shift());)x.unsubscribe();throw g}}}(class n extends i.R{constructor(x,A){super(x,A),this.scheduler=x,this.work=A}requestAsyncId(x,A,g=0){return null!==g&&g>0?super.requestAsyncId(x,A,g):(x.actions.push(this),x.scheduled||(x.scheduled=requestAnimationFrame(()=>x.flush(null))))}recycleAsyncId(x,A,g=0){if(null!==g&&g>0||null===g&&this.delay>0)return super.recycleAsyncId(x,A,g);0===x.actions.length&&(cancelAnimationFrame(A),x.scheduled=void 0)}})},62366:(St,z,s)=>{"use strict";s.d(z,{I:()=>l,$:()=>m});let i=1;const n=Promise.resolve(),h={};function C(r){return r in h&&(delete h[r],!0)}const S={setImmediate(r){const u=i++;return h[u]=!0,n.then(()=>C(u)&&r()),u},clearImmediate(r){C(r)}};var P=s(86369),A=s(4065);const m=new class g extends A.q{flush(u){this.active=!0,this.scheduled=void 0;const{actions:v}=this;let E,T=-1,R=v.length;u=u||v.shift();do{if(E=u.execute(u.state,u.delay))break}while(++T<R&&(u=v.shift()));if(this.active=!1,E){for(;++T<R&&(u=v.shift());)u.unsubscribe();throw E}}}(class x extends P.R{constructor(u,v){super(u,v),this.scheduler=u,this.work=v}requestAsyncId(u,v,E=0){return null!==E&&E>0?super.requestAsyncId(u,v,E):(u.actions.push(this),u.scheduled||(u.scheduled=S.setImmediate(u.flush.bind(u,null))))}recycleAsyncId(u,v,E=0){if(null!==E&&E>0||null===E&&this.delay>0)return super.recycleAsyncId(u,v,E);0===u.actions.length&&(S.clearImmediate(v),u.scheduled=void 0)}}),l=m},90093:(St,z,s)=>{"use strict";s.d(z,{E:()=>h,b:()=>C});var i=s(86369);const h=new(s(4065).q)(i.R),C=h},63320:(St,z,s)=>{"use strict";s.d(z,{lJ:()=>n});const n=function i(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},15587:(St,z,s)=>{"use strict";s.d(z,{s:()=>i});const i="function"==typeof Symbol&&Symbol.observable||"@@observable"},73302:(St,z,s)=>{"use strict";s.d(z,{D:()=>i});const i="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},86133:(St,z,s)=>{"use strict";s.d(z,{k:()=>n});const n=(()=>{function h(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return h.prototype=Object.create(Error.prototype),h})()},64971:(St,z,s)=>{"use strict";s.d(z,{G:()=>n});const n=(()=>{function h(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return h.prototype=Object.create(Error.prototype),h})()},38058:(St,z,s)=>{"use strict";s.d(z,{P:()=>n});const n=(()=>{function h(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return h.prototype=Object.create(Error.prototype),h})()},99021:(St,z,s)=>{"use strict";s.d(z,{M:()=>n});const n=(()=>{function h(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return h.prototype=Object.create(Error.prototype),h})()},81498:(St,z,s)=>{"use strict";function i(n){setTimeout(()=>{throw n},0)}s.d(z,{T:()=>i})},92932:(St,z,s)=>{"use strict";function i(n){return n}s.d(z,{D:()=>i})},34277:(St,z,s)=>{"use strict";s.d(z,{c:()=>i});const i=Array.isArray||(n=>n&&"number"==typeof n.length)},19730:(St,z,s)=>{"use strict";s.d(z,{X:()=>i});const i=n=>n&&"number"==typeof n.length&&"function"!=typeof n},29734:(St,z,s)=>{"use strict";function i(n){return n instanceof Date&&!isNaN(+n)}s.d(z,{$:()=>i})},50710:(St,z,s)=>{"use strict";function i(n){return"function"==typeof n}s.d(z,{T:()=>i})},37803:(St,z,s)=>{"use strict";s.d(z,{k:()=>n});var i=s(34277);function n(h){return!(0,i.c)(h)&&h-parseFloat(h)+1>=0}},96305:(St,z,s)=>{"use strict";function i(n){return null!==n&&"object"==typeof n}s.d(z,{G:()=>i})},39595:(St,z,s)=>{"use strict";s.d(z,{A:()=>n});var i=s(17053);function n(h){return!!h&&(h instanceof i.c||"function"==typeof h.lift&&"function"==typeof h.subscribe)}},48089:(St,z,s)=>{"use strict";function i(n){return!!n&&"function"!=typeof n.subscribe&&"function"==typeof n.then}s.d(z,{y:()=>i})},44897:(St,z,s)=>{"use strict";function i(n){return n&&"function"==typeof n.schedule}s.d(z,{m:()=>i})},36466:(St,z,s)=>{"use strict";function i(){}s.d(z,{l:()=>i})},97462:(St,z,s)=>{"use strict";s.d(z,{F:()=>n,m:()=>h});var i=s(92932);function n(...C){return h(C)}function h(C){return 0===C.length?i.D:1===C.length?C[0]:function(M){return C.reduce((P,x)=>x(P),M)}}},37233:(St,z,s)=>{"use strict";s.d(z,{i:()=>m});var i=s(46936),n=s(81498),C=s(63320),M=s(15587),x=s(19730),A=s(48089),g=s(96305);const m=l=>{if(l&&"function"==typeof l[M.s])return(l=>r=>{const u=l[M.s]();if("function"!=typeof u.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return u.subscribe(r)})(l);if((0,x.X)(l))return(0,i.v)(l);if((0,A.y)(l))return(l=>r=>(l.then(u=>{r.closed||(r.next(u),r.complete())},u=>r.error(u)).then(null,n.T),r))(l);if(l&&"function"==typeof l[C.lJ])return(l=>r=>{const u=l[C.lJ]();for(;;){let v;try{v=u.next()}catch(E){return r.error(E),r}if(v.done){r.complete();break}if(r.next(v.value),r.closed)break}return"function"==typeof u.return&&r.add(()=>{u.return&&u.return()}),r})(l);{const u=`You provided ${(0,g.G)(l)?"an invalid object":`'${l}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(u)}}},46936:(St,z,s)=>{"use strict";s.d(z,{v:()=>i});const i=n=>h=>{for(let C=0,S=n.length;C<S&&!h.closed;C++)h.next(n[C]);h.complete()}},1447:(St,z,s)=>{"use strict";s.d(z,{F:()=>S});var i=s(27721);class n extends i.v{constructor(P,x,A){super(),this.parent=P,this.outerValue=x,this.outerIndex=A,this.index=0}_next(P){this.parent.notifyNext(this.outerValue,P,this.outerIndex,this.index++,this)}_error(P){this.parent.notifyError(P,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}var h=s(37233),C=s(17053);function S(M,P,x,A,g=new n(M,x,A)){if(!g.closed)return P instanceof C.c?P.subscribe(g):(0,h.i)(P)(g)}},53237:(St,z,s)=>{"use strict";s.r(z),s.d(z,{audit:()=>i.s,auditTime:()=>n.Z,buffer:()=>C,bufferCount:()=>x,bufferTime:()=>l.w,bufferToggle:()=>E,bufferWhen:()=>B,catchError:()=>ae.W,combineAll:()=>k,combineLatest:()=>ce,concat:()=>Ee,concatAll:()=>it.K,concatMap:()=>Fe.H,concatMapTo:()=>Qe,count:()=>ct,debounce:()=>Je,debounceTime:()=>Ve.B,defaultIfEmpty:()=>$e.U,delay:()=>dt.c,delayWhen:()=>J,dematerialize:()=>se,distinct:()=>rt,distinctUntilChanged:()=>Xe.F,distinctUntilKeyChanged:()=>Se,elementAt:()=>sn,endWith:()=>dn.q,every:()=>yn,exhaust:()=>Qt,exhaustMap:()=>nn.p,expand:()=>Xt,filter:()=>Ne.p,finalize:()=>wt.j,find:()=>gt,findIndex:()=>Ut,first:()=>Bt.$,flatMap:()=>Vn.qI,groupBy:()=>V,ignoreElements:()=>cn,isEmpty:()=>Ai,last:()=>Zi.H,map:()=>Rn.T,mapTo:()=>Gn.u,materialize:()=>Ni,max:()=>Ms,merge:()=>lo,mergeAll:()=>js.U,mergeMap:()=>Vn.ZZ,mergeMapTo:()=>Ei,mergeScan:()=>ai,min:()=>Mn,multicast:()=>Qn.f,observeOn:()=>Zn.QE,onErrorResumeNext:()=>fi,pairwise:()=>Br.J,partition:()=>ds,pluck:()=>bs,publish:()=>zn,publishBehavior:()=>di,publishLast:()=>Wi,publishReplay:()=>qr,race:()=>us,reduce:()=>hr.T,refCount:()=>Io.B,repeat:()=>ks,repeatWhen:()=>vs,retry:()=>vo,retryWhen:()=>fs.l,sample:()=>Fo,sampleTime:()=>Go,scan:()=>Rr.S,sequenceEqual:()=>pa,share:()=>Xa.u,shareReplay:()=>Es.t,single:()=>Ks,skip:()=>la.i,skipLast:()=>wo,skipUntil:()=>ja,skipWhile:()=>no.j,startWith:()=>Fs.Z,subscribeOn:()=>La,switchAll:()=>il,switchMap:()=>Jo.n,switchMapTo:()=>co,take:()=>Ot.s,takeLast:()=>po.o,takeUntil:()=>$s.Q,takeWhile:()=>Sn.v,tap:()=>ba.M,throttle:()=>uo.n,throttleTime:()=>$o.c,throwIfEmpty:()=>ye.v,timeInterval:()=>Xs,timeout:()=>zi.w,timeoutWith:()=>Ae.o,timestamp:()=>jo,toArray:()=>Wa.$,window:()=>Xi,windowCount:()=>ca,windowTime:()=>Dt,windowToggle:()=>Ws,windowWhen:()=>Ea,withLatestFrom:()=>Is,zip:()=>Oo,zipAll:()=>ra});var i=s(72438),n=s(76259),h=s(7583);function C($n){return function(Yt){return Yt.lift(new S($n))}}class S{constructor(mt){this.closingNotifier=mt}call(mt,Yt){return Yt.subscribe(new M(mt,this.closingNotifier))}}class M extends h.gn{constructor(mt,Yt){super(mt),this.buffer=[],this.add((0,h.tS)(Yt,new h.zA(this)))}_next(mt){this.buffer.push(mt)}notifyNext(){const mt=this.buffer;this.buffer=[],this.destination.next(mt)}}var P=s(27721);function x($n,mt=null){return function(Un){return Un.lift(new A($n,mt))}}class A{constructor(mt,Yt){this.bufferSize=mt,this.startBufferEvery=Yt,this.subscriberClass=Yt&&mt!==Yt?m:g}call(mt,Yt){return Yt.subscribe(new this.subscriberClass(mt,this.bufferSize,this.startBufferEvery))}}class g extends P.v{constructor(mt,Yt){super(mt),this.bufferSize=Yt,this.buffer=[]}_next(mt){const Yt=this.buffer;Yt.push(mt),Yt.length==this.bufferSize&&(this.destination.next(Yt),this.buffer=[])}_complete(){const mt=this.buffer;mt.length>0&&this.destination.next(mt),super._complete()}}class m extends P.v{constructor(mt,Yt,Un){super(mt),this.bufferSize=Yt,this.startBufferEvery=Un,this.buffers=[],this.count=0}_next(mt){const{bufferSize:Yt,startBufferEvery:Un,buffers:ii,count:Hi}=this;this.count++,Hi%Un==0&&ii.push([]);for(let Nr=ii.length;Nr--;){const Or=ii[Nr];Or.push(mt),Or.length===Yt&&(ii.splice(Nr,1),this.destination.next(Or))}}_complete(){const{buffers:mt,destination:Yt}=this;for(;mt.length>0;){let Un=mt.shift();Un.length>0&&Yt.next(Un)}super._complete()}}var l=s(29118),r=s(10399),u=s(1447),v=s(88134);function E($n,mt){return function(Un){return Un.lift(new T($n,mt))}}class T{constructor(mt,Yt){this.openings=mt,this.closingSelector=Yt}call(mt,Yt){return Yt.subscribe(new R(mt,this.openings,this.closingSelector))}}class R extends v.E{constructor(mt,Yt,Un){super(mt),this.closingSelector=Un,this.contexts=[],this.add((0,u.F)(this,Yt))}_next(mt){const Yt=this.contexts,Un=Yt.length;for(let ii=0;ii<Un;ii++)Yt[ii].buffer.push(mt)}_error(mt){const Yt=this.contexts;for(;Yt.length>0;){const Un=Yt.shift();Un.subscription.unsubscribe(),Un.buffer=null,Un.subscription=null}this.contexts=null,super._error(mt)}_complete(){const mt=this.contexts;for(;mt.length>0;){const Yt=mt.shift();this.destination.next(Yt.buffer),Yt.subscription.unsubscribe(),Yt.buffer=null,Yt.subscription=null}this.contexts=null,super._complete()}notifyNext(mt,Yt){mt?this.closeBuffer(mt):this.openBuffer(Yt)}notifyComplete(mt){this.closeBuffer(mt.context)}openBuffer(mt){try{const Un=this.closingSelector.call(this,mt);Un&&this.trySubscribe(Un)}catch(Yt){this._error(Yt)}}closeBuffer(mt){const Yt=this.contexts;if(Yt&&mt){const{buffer:Un,subscription:ii}=mt;this.destination.next(Un),Yt.splice(Yt.indexOf(mt),1),this.remove(ii),ii.unsubscribe()}}trySubscribe(mt){const Yt=this.contexts,ii=new r.y,Hi={buffer:[],subscription:ii};Yt.push(Hi);const Nr=(0,u.F)(this,mt,Hi);!Nr||Nr.closed?this.closeBuffer(Hi):(Nr.context=Hi,this.add(Nr),ii.add(Nr))}}function B($n){return function(mt){return mt.lift(new U($n))}}class U{constructor(mt){this.closingSelector=mt}call(mt,Yt){return Yt.subscribe(new Y(mt,this.closingSelector))}}class Y extends h.gn{constructor(mt,Yt){super(mt),this.closingSelector=Yt,this.subscribing=!1,this.openBuffer()}_next(mt){this.buffer.push(mt)}_complete(){const mt=this.buffer;mt&&this.destination.next(mt),super._complete()}_unsubscribe(){this.buffer=void 0,this.subscribing=!1}notifyNext(){this.openBuffer()}notifyComplete(){this.subscribing?this.complete():this.openBuffer()}openBuffer(){let Un,{closingSubscription:mt}=this;mt&&(this.remove(mt),mt.unsubscribe()),this.buffer&&this.destination.next(this.buffer),this.buffer=[];try{const{closingSelector:ii}=this;Un=ii()}catch(ii){return this.error(ii)}mt=new r.y,this.closingSubscription=mt,this.add(mt),this.subscribing=!0,mt.add((0,h.tS)(Un,new h.zA(this))),this.subscribing=!1}}var ae=s(14714),G=s(31315);function k($n){return mt=>mt.lift(new G.ZS($n))}var X=s(34277),q=s(19392);function ce(...$n){let mt=null;return"function"==typeof $n[$n.length-1]&&(mt=$n.pop()),1===$n.length&&(0,X.c)($n[0])&&($n=$n[0].slice()),Yt=>Yt.lift.call((0,q.H)([Yt,...$n]),new G.ZS(mt))}var te=s(69917);function Ee(...$n){return mt=>mt.lift.call((0,te.x)(mt,...$n))}var it=s(45306),Fe=s(79539);function Qe($n,mt){return(0,Fe.H)(()=>$n,mt)}function ct($n){return mt=>mt.lift(new Ge($n,mt))}class Ge{constructor(mt,Yt){this.predicate=mt,this.source=Yt}call(mt,Yt){return Yt.subscribe(new nt(mt,this.predicate,this.source))}}class nt extends P.v{constructor(mt,Yt,Un){super(mt),this.predicate=Yt,this.source=Un,this.count=0,this.index=0}_next(mt){this.predicate?this._tryPredicate(mt):this.count++}_tryPredicate(mt){let Yt;try{Yt=this.predicate(mt,this.index++,this.source)}catch(Un){return void this.destination.error(Un)}Yt&&this.count++}_complete(){this.destination.next(this.count),this.destination.complete()}}function Je($n){return mt=>mt.lift(new ze($n))}class ze{constructor(mt){this.durationSelector=mt}call(mt,Yt){return Yt.subscribe(new Ke(mt,this.durationSelector))}}class Ke extends h.gn{constructor(mt,Yt){super(mt),this.durationSelector=Yt,this.hasValue=!1}_next(mt){try{const Yt=this.durationSelector.call(this,mt);Yt&&this._tryNext(mt,Yt)}catch(Yt){this.destination.error(Yt)}}_complete(){this.emitValue(),this.destination.complete()}_tryNext(mt,Yt){let Un=this.durationSubscription;this.value=mt,this.hasValue=!0,Un&&(Un.unsubscribe(),this.remove(Un)),Un=(0,h.tS)(Yt,new h.zA(this)),Un&&!Un.closed&&this.add(this.durationSubscription=Un)}notifyNext(){this.emitValue()}notifyComplete(){this.emitValue()}emitValue(){if(this.hasValue){const mt=this.value,Yt=this.durationSubscription;Yt&&(this.durationSubscription=void 0,Yt.unsubscribe(),this.remove(Yt)),this.value=void 0,this.hasValue=!1,super._next(mt)}}}var Ve=s(62931),$e=s(67110),dt=s(65726),Pe=s(17053);function J($n,mt){return mt?Yt=>new ue(Yt,mt).lift(new vt($n)):Yt=>Yt.lift(new vt($n))}class vt{constructor(mt){this.delayDurationSelector=mt}call(mt,Yt){return Yt.subscribe(new ve(mt,this.delayDurationSelector))}}class ve extends v.E{constructor(mt,Yt){super(mt),this.delayDurationSelector=Yt,this.completed=!1,this.delayNotifierSubscriptions=[],this.index=0}notifyNext(mt,Yt,Un,ii,Hi){this.destination.next(mt),this.removeSubscription(Hi),this.tryComplete()}notifyError(mt,Yt){this._error(mt)}notifyComplete(mt){const Yt=this.removeSubscription(mt);Yt&&this.destination.next(Yt),this.tryComplete()}_next(mt){const Yt=this.index++;try{const Un=this.delayDurationSelector(mt,Yt);Un&&this.tryDelay(Un,mt)}catch(Un){this.destination.error(Un)}}_complete(){this.completed=!0,this.tryComplete(),this.unsubscribe()}removeSubscription(mt){mt.unsubscribe();const Yt=this.delayNotifierSubscriptions.indexOf(mt);return-1!==Yt&&this.delayNotifierSubscriptions.splice(Yt,1),mt.outerValue}tryDelay(mt,Yt){const Un=(0,u.F)(this,mt,Yt);Un&&!Un.closed&&(this.destination.add(Un),this.delayNotifierSubscriptions.push(Un))}tryComplete(){this.completed&&0===this.delayNotifierSubscriptions.length&&this.destination.complete()}}class ue extends Pe.c{constructor(mt,Yt){super(),this.source=mt,this.subscriptionDelay=Yt}_subscribe(mt){this.subscriptionDelay.subscribe(new et(mt,this.source))}}class et extends P.v{constructor(mt,Yt){super(),this.parent=mt,this.source=Yt,this.sourceSubscribed=!1}_next(mt){this.subscribeToSource()}_error(mt){this.unsubscribe(),this.parent.error(mt)}_complete(){this.unsubscribe(),this.subscribeToSource()}subscribeToSource(){this.sourceSubscribed||(this.sourceSubscribed=!0,this.unsubscribe(),this.source.subscribe(this.parent))}}function se(){return function(mt){return mt.lift(new Ce)}}class Ce{call(mt,Yt){return Yt.subscribe(new be(mt))}}class be extends P.v{constructor(mt){super(mt)}_next(mt){mt.observe(this.destination)}}function rt($n,mt){return Yt=>Yt.lift(new me($n,mt))}class me{constructor(mt,Yt){this.keySelector=mt,this.flushes=Yt}call(mt,Yt){return Yt.subscribe(new le(mt,this.keySelector,this.flushes))}}class le extends h.gn{constructor(mt,Yt,Un){super(mt),this.keySelector=Yt,this.values=new Set,Un&&this.add((0,h.tS)(Un,new h.zA(this)))}notifyNext(){this.values.clear()}notifyError(mt){this._error(mt)}_next(mt){this.keySelector?this._useKeySelector(mt):this._finalizeNext(mt,mt)}_useKeySelector(mt){let Yt;const{destination:Un}=this;try{Yt=this.keySelector(mt)}catch(ii){return void Un.error(ii)}this._finalizeNext(Yt,mt)}_finalizeNext(mt,Yt){const{values:Un}=this;Un.has(mt)||(Un.add(mt),this.destination.next(Yt))}}var Xe=s(53461);function Se($n,mt){return(0,Xe.F)((Yt,Un)=>mt?mt(Yt[$n],Un[$n]):Yt[$n]===Un[$n])}var fe=s(86133),Ne=s(8619),ye=s(56681),Ot=s(65706);function sn($n,mt){if($n<0)throw new fe.k;const Yt=arguments.length>=2;return Un=>Un.pipe((0,Ne.p)((ii,Hi)=>Hi===$n),(0,Ot.s)(1),Yt?(0,$e.U)(mt):(0,ye.v)(()=>new fe.k))}var dn=s(80412);function yn($n,mt){return Yt=>Yt.lift(new At($n,mt,Yt))}class At{constructor(mt,Yt,Un){this.predicate=mt,this.thisArg=Yt,this.source=Un}call(mt,Yt){return Yt.subscribe(new Vt(mt,this.predicate,this.thisArg,this.source))}}class Vt extends P.v{constructor(mt,Yt,Un,ii){super(mt),this.predicate=Yt,this.thisArg=Un,this.source=ii,this.index=0,this.thisArg=Un||this}notifyComplete(mt){this.destination.next(mt),this.destination.complete()}_next(mt){let Yt=!1;try{Yt=this.predicate.call(this.thisArg,mt,this.index++,this.source)}catch(Un){return void this.destination.error(Un)}Yt||this.notifyComplete(!1)}_complete(){this.notifyComplete(!0)}}function Qt(){return $n=>$n.lift(new Jt)}class Jt{call(mt,Yt){return Yt.subscribe(new Zt(mt))}}class Zt extends h.gn{constructor(mt){super(mt),this.hasCompleted=!1,this.hasSubscription=!1}_next(mt){this.hasSubscription||(this.hasSubscription=!0,this.add((0,h.tS)(mt,new h.zA(this))))}_complete(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete()}notifyComplete(){this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()}}var nn=s(10749);function Xt($n,mt=Number.POSITIVE_INFINITY,Yt){return mt=(mt||0)<1?Number.POSITIVE_INFINITY:mt,Un=>Un.lift(new lt($n,mt,Yt))}class lt{constructor(mt,Yt,Un){this.project=mt,this.concurrent=Yt,this.scheduler=Un}call(mt,Yt){return Yt.subscribe(new Ue(mt,this.project,this.concurrent,this.scheduler))}}class Ue extends h.gn{constructor(mt,Yt,Un,ii){super(mt),this.project=Yt,this.concurrent=Un,this.scheduler=ii,this.index=0,this.active=0,this.hasCompleted=!1,Un<Number.POSITIVE_INFINITY&&(this.buffer=[])}static dispatch(mt){const{subscriber:Yt,result:Un,value:ii,index:Hi}=mt;Yt.subscribeToProjection(Un,ii,Hi)}_next(mt){const Yt=this.destination;if(Yt.closed)return void this._complete();const Un=this.index++;if(this.active<this.concurrent){Yt.next(mt);try{const{project:ii}=this,Hi=ii(mt,Un);this.scheduler?this.destination.add(this.scheduler.schedule(Ue.dispatch,0,{subscriber:this,result:Hi,value:mt,index:Un})):this.subscribeToProjection(Hi,mt,Un)}catch(ii){Yt.error(ii)}}else this.buffer.push(mt)}subscribeToProjection(mt,Yt,Un){this.active++,this.destination.add((0,h.tS)(mt,new h.zA(this)))}_complete(){this.hasCompleted=!0,this.hasCompleted&&0===this.active&&this.destination.complete(),this.unsubscribe()}notifyNext(mt){this._next(mt)}notifyComplete(){const mt=this.buffer;this.active--,mt&&mt.length>0&&this._next(mt.shift()),this.hasCompleted&&0===this.active&&this.destination.complete()}}var wt=s(43615);function gt($n,mt){if("function"!=typeof $n)throw new TypeError("predicate is not a function");return Yt=>Yt.lift(new Ht($n,Yt,!1,mt))}class Ht{constructor(mt,Yt,Un,ii){this.predicate=mt,this.source=Yt,this.yieldIndex=Un,this.thisArg=ii}call(mt,Yt){return Yt.subscribe(new bn(mt,this.predicate,this.source,this.yieldIndex,this.thisArg))}}class bn extends P.v{constructor(mt,Yt,Un,ii,Hi){super(mt),this.predicate=Yt,this.source=Un,this.yieldIndex=ii,this.thisArg=Hi,this.index=0}notifyComplete(mt){const Yt=this.destination;Yt.next(mt),Yt.complete(),this.unsubscribe()}_next(mt){const{predicate:Yt,thisArg:Un}=this,ii=this.index++;try{Yt.call(Un||this,mt,ii,this.source)&&this.notifyComplete(this.yieldIndex?ii:mt)}catch(Hi){this.destination.error(Hi)}}_complete(){this.notifyComplete(this.yieldIndex?-1:void 0)}}function Ut($n,mt){return Yt=>Yt.lift(new Ht($n,Yt,!0,mt))}var Bt=s(99047),Le=s(80583);function V($n,mt,Yt,Un){return ii=>ii.lift(new de($n,mt,Yt,Un))}class de{constructor(mt,Yt,Un,ii){this.keySelector=mt,this.elementSelector=Yt,this.durationSelector=Un,this.subjectSelector=ii}call(mt,Yt){return Yt.subscribe(new ge(mt,this.keySelector,this.elementSelector,this.durationSelector,this.subjectSelector))}}class ge extends P.v{constructor(mt,Yt,Un,ii,Hi){super(mt),this.keySelector=Yt,this.elementSelector=Un,this.durationSelector=ii,this.subjectSelector=Hi,this.groups=null,this.attemptedToUnsubscribe=!1,this.count=0}_next(mt){let Yt;try{Yt=this.keySelector(mt)}catch(Un){return void this.error(Un)}this._group(mt,Yt)}_group(mt,Yt){let Un=this.groups;Un||(Un=this.groups=new Map);let Hi,ii=Un.get(Yt);if(this.elementSelector)try{Hi=this.elementSelector(mt)}catch(Nr){this.error(Nr)}else Hi=mt;if(!ii){ii=this.subjectSelector?this.subjectSelector():new Le.B7,Un.set(Yt,ii);const Nr=new Wt(Yt,ii,this);if(this.destination.next(Nr),this.durationSelector){let Or;try{Or=this.durationSelector(new Wt(Yt,ii))}catch(es){return void this.error(es)}this.add(Or.subscribe(new Ft(Yt,ii,this)))}}ii.closed||ii.next(Hi)}_error(mt){const Yt=this.groups;Yt&&(Yt.forEach((Un,ii)=>{Un.error(mt)}),Yt.clear()),this.destination.error(mt)}_complete(){const mt=this.groups;mt&&(mt.forEach((Yt,Un)=>{Yt.complete()}),mt.clear()),this.destination.complete()}removeGroup(mt){this.groups.delete(mt)}unsubscribe(){this.closed||(this.attemptedToUnsubscribe=!0,0===this.count&&super.unsubscribe())}}class Ft extends P.v{constructor(mt,Yt,Un){super(Yt),this.key=mt,this.group=Yt,this.parent=Un}_next(mt){this.complete()}_unsubscribe(){const{parent:mt,key:Yt}=this;this.key=this.parent=null,mt&&mt.removeGroup(Yt)}}class Wt extends Pe.c{constructor(mt,Yt,Un){super(),this.key=mt,this.groupSubject=Yt,this.refCountSubscription=Un}_subscribe(mt){const Yt=new r.y,{refCountSubscription:Un,groupSubject:ii}=this;return Un&&!Un.closed&&Yt.add(new Kt(Un)),Yt.add(ii.subscribe(mt)),Yt}}class Kt extends r.y{constructor(mt){super(),this.parent=mt,mt.count++}unsubscribe(){const mt=this.parent;!mt.closed&&!this.closed&&(super.unsubscribe(),mt.count-=1,0===mt.count&&mt.attemptedToUnsubscribe&&mt.unsubscribe())}}function cn(){return function(mt){return mt.lift(new En)}}class En{call(mt,Yt){return Yt.subscribe(new kn(mt))}}class kn extends P.v{_next(mt){}}function Ai(){return $n=>$n.lift(new Gi)}class Gi{call(mt,Yt){return Yt.subscribe(new bt(mt))}}class bt extends P.v{constructor(mt){super(mt)}notifyComplete(mt){const Yt=this.destination;Yt.next(mt),Yt.complete()}_next(mt){this.notifyComplete(!1)}_complete(){this.notifyComplete(!0)}}var Zi=s(25577),Rn=s(83915),Gn=s(10174),Kn=s(75252);function Ni(){return function(mt){return mt.lift(new ir)}}class ir{call(mt,Yt){return Yt.subscribe(new Ir(mt))}}class Ir extends P.v{constructor(mt){super(mt)}_next(mt){this.destination.next(Kn.E.createNext(mt))}_error(mt){const Yt=this.destination;Yt.next(Kn.E.createError(mt)),Yt.complete()}_complete(){const mt=this.destination;mt.next(Kn.E.createComplete()),mt.complete()}}var hr=s(90975);function Ms($n){return(0,hr.T)("function"==typeof $n?(Yt,Un)=>$n(Yt,Un)>0?Yt:Un:(Yt,Un)=>Yt>Un?Yt:Un)}var Pr=s(16229);function lo(...$n){return mt=>mt.lift.call((0,Pr.h)(mt,...$n))}var js=s(40466),Vn=s(75707);function Ei($n,mt,Yt=Number.POSITIVE_INFINITY){return"function"==typeof mt?(0,Vn.ZZ)(()=>$n,mt,Yt):("number"==typeof mt&&(Yt=mt),(0,Vn.ZZ)(()=>$n,Yt))}function ai($n,mt,Yt=Number.POSITIVE_INFINITY){return Un=>Un.lift(new Li($n,mt,Yt))}class Li{constructor(mt,Yt,Un){this.accumulator=mt,this.seed=Yt,this.concurrent=Un}call(mt,Yt){return Yt.subscribe(new Lr(mt,this.accumulator,this.seed,this.concurrent))}}class Lr extends h.gn{constructor(mt,Yt,Un,ii){super(mt),this.accumulator=Yt,this.acc=Un,this.concurrent=ii,this.hasValue=!1,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(mt){if(this.active<this.concurrent){const Yt=this.index++,Un=this.destination;let ii;try{const{accumulator:Hi}=this;ii=Hi(this.acc,mt,Yt)}catch(Hi){return Un.error(Hi)}this.active++,this._innerSub(ii)}else this.buffer.push(mt)}_innerSub(mt){const Yt=new h.zA(this),Un=this.destination;Un.add(Yt);const ii=(0,h.tS)(mt,Yt);ii!==Yt&&Un.add(ii)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete()),this.unsubscribe()}notifyNext(mt){const{destination:Yt}=this;this.acc=mt,this.hasValue=!0,Yt.next(mt)}notifyComplete(){const mt=this.buffer;this.active--,mt.length>0?this._next(mt.shift()):0===this.active&&this.hasCompleted&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete())}}function Mn($n){return(0,hr.T)("function"==typeof $n?(Yt,Un)=>$n(Yt,Un)<0?Yt:Un:(Yt,Un)=>Yt<Un?Yt:Un)}var Qn=s(43323),Zn=s(79284);function fi(...$n){return 1===$n.length&&(0,X.c)($n[0])&&($n=$n[0]),mt=>mt.lift(new tr($n))}class tr{constructor(mt){this.nextSources=mt}call(mt,Yt){return Yt.subscribe(new qi(mt,this.nextSources))}}class qi extends h.gn{constructor(mt,Yt){super(mt),this.destination=mt,this.nextSources=Yt}notifyError(){this.subscribeToNextSource()}notifyComplete(){this.subscribeToNextSource()}_error(mt){this.subscribeToNextSource(),this.unsubscribe()}_complete(){this.subscribeToNextSource(),this.unsubscribe()}subscribeToNextSource(){const mt=this.nextSources.shift();if(mt){const Yt=new h.zA(this),Un=this.destination;Un.add(Yt);const ii=(0,h.tS)(mt,Yt);ii!==Yt&&Un.add(ii)}else this.destination.complete()}}var Br=s(14749);function Sr($n,mt){function Yt(){return!Yt.pred.apply(Yt.thisArg,arguments)}return Yt.pred=$n,Yt.thisArg=mt,Yt}function ds($n,mt){return Yt=>[(0,Ne.p)($n,mt)(Yt),(0,Ne.p)(Sr($n,mt))(Yt)]}function bs(...$n){const mt=$n.length;if(0===mt)throw new Error("list of properties cannot be empty.");return Yt=>(0,Rn.T)(function An($n,mt){return Un=>{let ii=Un;for(let Hi=0;Hi<mt;Hi++){const Nr=ii?.[$n[Hi]];if(void 0===Nr)return;ii=Nr}return ii}}($n,mt))(Yt)}function zn($n){return $n?(0,Qn.f)(()=>new Le.B7,$n):(0,Qn.f)(new Le.B7)}var Jn=s(26513);function di($n){return mt=>(0,Qn.f)(new Jn.t($n))(mt)}var Oi=s(99443);function Wi(){return $n=>(0,Qn.f)(new Oi.h)($n)}var mr=s(85735);function qr($n,mt,Yt,Un){Yt&&"function"!=typeof Yt&&(Un=Yt);const ii="function"==typeof Yt?Yt:void 0,Hi=new mr.m($n,mt,Un);return Nr=>(0,Qn.f)(()=>Hi,ii)(Nr)}var ms=s(15652);function us(...$n){return function(Yt){return 1===$n.length&&(0,X.c)($n[0])&&($n=$n[0]),Yt.lift.call((0,ms.O4)(Yt,...$n))}}var Qs=s(12532);function ks($n=-1){return mt=>0===$n?(0,Qs.I)():mt.lift(new Ar($n<0?-1:$n-1,mt))}class Ar{constructor(mt,Yt){this.count=mt,this.source=Yt}call(mt,Yt){return Yt.subscribe(new Ur(mt,this.count,this.source))}}class Ur extends P.v{constructor(mt,Yt,Un){super(mt),this.count=Yt,this.source=Un}complete(){if(!this.isStopped){const{source:mt,count:Yt}=this;if(0===Yt)return super.complete();Yt>-1&&(this.count=Yt-1),mt.subscribe(this._unsubscribeAndRecycle())}}}function vs($n){return mt=>mt.lift(new fo($n))}class fo{constructor(mt){this.notifier=mt}call(mt,Yt){return Yt.subscribe(new Zo(mt,this.notifier,Yt))}}class Zo extends h.gn{constructor(mt,Yt,Un){super(mt),this.notifier=Yt,this.source=Un,this.sourceIsBeingSubscribedTo=!0}notifyNext(){this.sourceIsBeingSubscribedTo=!0,this.source.subscribe(this)}notifyComplete(){if(!1===this.sourceIsBeingSubscribedTo)return super.complete()}complete(){if(this.sourceIsBeingSubscribedTo=!1,!this.isStopped){if(this.retries||this.subscribeToRetries(),!this.retriesSubscription||this.retriesSubscription.closed)return super.complete();this._unsubscribeAndRecycle(),this.notifications.next(void 0)}}_unsubscribe(){const{notifications:mt,retriesSubscription:Yt}=this;mt&&(mt.unsubscribe(),this.notifications=void 0),Yt&&(Yt.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0}_unsubscribeAndRecycle(){const{_unsubscribe:mt}=this;return this._unsubscribe=null,super._unsubscribeAndRecycle(),this._unsubscribe=mt,this}subscribeToRetries(){let mt;this.notifications=new Le.B7;try{const{notifier:Yt}=this;mt=Yt(this.notifications)}catch{return super.complete()}this.retries=mt,this.retriesSubscription=(0,h.tS)(mt,new h.zA(this))}}function vo($n=-1){return mt=>mt.lift(new Pa($n,mt))}class Pa{constructor(mt,Yt){this.count=mt,this.source=Yt}call(mt,Yt){return Yt.subscribe(new fa(mt,this.count,this.source))}}class fa extends P.v{constructor(mt,Yt,Un){super(mt),this.count=Yt,this.source=Un}error(mt){if(!this.isStopped){const{source:Yt,count:Un}=this;if(0===Un)return super.error(mt);Un>-1&&(this.count=Un-1),Yt.subscribe(this._unsubscribeAndRecycle())}}}var fs=s(86447),Io=s(60837);function Fo($n){return mt=>mt.lift(new qs($n))}class qs{constructor(mt){this.notifier=mt}call(mt,Yt){const Un=new So(mt),ii=Yt.subscribe(Un);return ii.add((0,h.tS)(this.notifier,new h.zA(Un))),ii}}class So extends h.gn{constructor(){super(...arguments),this.hasValue=!1}_next(mt){this.value=mt,this.hasValue=!0}notifyNext(){this.emitValue()}notifyComplete(){this.emitValue()}emitValue(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.value))}}var ta=s(90093);function Go($n,mt=ta.b){return Yt=>Yt.lift(new Mo($n,mt))}class Mo{constructor(mt,Yt){this.period=mt,this.scheduler=Yt}call(mt,Yt){return Yt.subscribe(new As(mt,this.period,this.scheduler))}}class As extends P.v{constructor(mt,Yt,Un){super(mt),this.period=Yt,this.scheduler=Un,this.hasValue=!1,this.add(Un.schedule(Uo,Yt,{subscriber:this,period:Yt}))}_next(mt){this.lastValue=mt,this.hasValue=!0}notifyNext(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.lastValue))}}function Uo($n){let{subscriber:mt,period:Yt}=$n;mt.notifyNext(),this.schedule($n,Yt)}var Rr=s(18612);function pa($n,mt){return Yt=>Yt.lift(new nl($n,mt))}class nl{constructor(mt,Yt){this.compareTo=mt,this.comparator=Yt}call(mt,Yt){return Yt.subscribe(new Ha(mt,this.compareTo,this.comparator))}}class Ha extends P.v{constructor(mt,Yt,Un){super(mt),this.compareTo=Yt,this.comparator=Un,this._a=[],this._b=[],this._oneComplete=!1,this.destination.add(Yt.subscribe(new bo(mt,this)))}_next(mt){this._oneComplete&&0===this._b.length?this.emit(!1):(this._a.push(mt),this.checkValues())}_complete(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0,this.unsubscribe()}checkValues(){const{_a:mt,_b:Yt,comparator:Un}=this;for(;mt.length>0&&Yt.length>0;){let ii=mt.shift(),Hi=Yt.shift(),Nr=!1;try{Nr=Un?Un(ii,Hi):ii===Hi}catch(Or){this.destination.error(Or)}Nr||this.emit(!1)}}emit(mt){const{destination:Yt}=this;Yt.next(mt),Yt.complete()}nextB(mt){this._oneComplete&&0===this._a.length?this.emit(!1):(this._b.push(mt),this.checkValues())}completeB(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0}}class bo extends P.v{constructor(mt,Yt){super(mt),this.parent=Yt}_next(mt){this.parent.nextB(mt)}_error(mt){this.parent.error(mt),this.unsubscribe()}_complete(){this.parent.completeB(),this.unsubscribe()}}var Xa=s(65770),Es=s(55833),eo=s(64971);function Ks($n){return mt=>mt.lift(new oa($n,mt))}class oa{constructor(mt,Yt){this.predicate=mt,this.source=Yt}call(mt,Yt){return Yt.subscribe(new ar(mt,this.predicate,this.source))}}class ar extends P.v{constructor(mt,Yt,Un){super(mt),this.predicate=Yt,this.source=Un,this.seenValue=!1,this.index=0}applySingleValue(mt){this.seenValue?this.destination.error("Sequence contains more than one element"):(this.seenValue=!0,this.singleValue=mt)}_next(mt){const Yt=this.index++;this.predicate?this.tryNext(mt,Yt):this.applySingleValue(mt)}tryNext(mt,Yt){try{this.predicate(mt,Yt,this.source)&&this.applySingleValue(mt)}catch(Un){this.destination.error(Un)}}_complete(){const mt=this.destination;this.index>0?(mt.next(this.seenValue?this.singleValue:void 0),mt.complete()):mt.error(new eo.G)}}var la=s(36666);function wo($n){return mt=>mt.lift(new na($n))}class na{constructor(mt){if(this._skipCount=mt,this._skipCount<0)throw new fe.k}call(mt,Yt){return Yt.subscribe(0===this._skipCount?new P.v(mt):new Ro(mt,this._skipCount))}}class Ro extends P.v{constructor(mt,Yt){super(mt),this._skipCount=Yt,this._count=0,this._ring=new Array(Yt)}_next(mt){const Yt=this._skipCount,Un=this._count++;if(Un<Yt)this._ring[Un]=mt;else{const ii=Un%Yt,Hi=this._ring,Nr=Hi[ii];Hi[ii]=mt,this.destination.next(Nr)}}}function ja($n){return mt=>mt.lift(new Eo($n))}class Eo{constructor(mt){this.notifier=mt}call(mt,Yt){return Yt.subscribe(new Ho(mt,this.notifier))}}class Ho extends h.gn{constructor(mt,Yt){super(mt),this.hasValue=!1;const Un=new h.zA(this);this.add(Un),this.innerSubscription=Un;const ii=(0,h.tS)(Yt,Un);ii!==Un&&(this.add(ii),this.innerSubscription=ii)}_next(mt){this.hasValue&&super._next(mt)}notifyNext(){this.hasValue=!0,this.innerSubscription&&this.innerSubscription.unsubscribe()}notifyComplete(){}}var no=s(28653),Fs=s(34593),Co=s(62366),so=s(37803);class _o extends Pe.c{constructor(mt,Yt=0,Un=Co.I){super(),this.source=mt,this.delayTime=Yt,this.scheduler=Un,(!(0,so.k)(Yt)||Yt<0)&&(this.delayTime=0),(!Un||"function"!=typeof Un.schedule)&&(this.scheduler=Co.I)}static create(mt,Yt=0,Un=Co.I){return new _o(mt,Yt,Un)}static dispatch(mt){const{source:Yt,subscriber:Un}=mt;return this.add(Yt.subscribe(Un))}_subscribe(mt){return this.scheduler.schedule(_o.dispatch,this.delayTime,{source:this.source,subscriber:mt})}}function La($n,mt=0){return function(Un){return Un.lift(new Ko($n,mt))}}class Ko{constructor(mt,Yt){this.scheduler=mt,this.delay=Yt}call(mt,Yt){return new _o(Yt,this.delay,this.scheduler).subscribe(mt)}}var Jo=s(72147),ka=s(92932);function il(){return(0,Jo.n)(ka.D)}function co($n,mt){return mt?(0,Jo.n)(()=>$n,mt):(0,Jo.n)(()=>$n)}var po=s(93702),$s=s(4208),Sn=s(48765),ba=s(91384),uo=s(32489),$o=s(73180),aa=s(63997);function Xs($n=ta.b){return mt=>(0,aa.v)(()=>mt.pipe((0,Rr.S)(({current:Yt},Un)=>({value:Un,current:$n.now(),last:Yt}),{current:$n.now(),value:void 0,last:void 0}),(0,Rn.T)(({current:Yt,last:Un,value:ii})=>new _a(ii,Yt-Un))))}class _a{constructor(mt,Yt){this.value=mt,this.interval=Yt}}var zi=s(40198),Ae=s(12962);function jo($n=ta.b){return(0,Rn.T)(mt=>new fl(mt,$n.now()))}class fl{constructor(mt,Yt){this.value=mt,this.timestamp=Yt}}var Wa=s(51067);function Xi($n){return function(Yt){return Yt.lift(new Ao($n))}}class Ao{constructor(mt){this.windowBoundaries=mt}call(mt,Yt){const Un=new ps(mt),ii=Yt.subscribe(Un);return ii.closed||Un.add((0,h.tS)(this.windowBoundaries,new h.zA(Un))),ii}}class ps extends h.gn{constructor(mt){super(mt),this.window=new Le.B7,mt.next(this.window)}notifyNext(){this.openWindow()}notifyError(mt){this._error(mt)}notifyComplete(){this._complete()}_next(mt){this.window.next(mt)}_error(mt){this.window.error(mt),this.destination.error(mt)}_complete(){this.window.complete(),this.destination.complete()}_unsubscribe(){this.window=null}openWindow(){const mt=this.window;mt&&mt.complete();const Yt=this.destination,Un=this.window=new Le.B7;Yt.next(Un)}}function ca($n,mt=0){return function(Un){return Un.lift(new al($n,mt))}}class al{constructor(mt,Yt){this.windowSize=mt,this.startWindowEvery=Yt}call(mt,Yt){return Yt.subscribe(new ga(mt,this.windowSize,this.startWindowEvery))}}class ga extends P.v{constructor(mt,Yt,Un){super(mt),this.destination=mt,this.windowSize=Yt,this.startWindowEvery=Un,this.windows=[new Le.B7],this.count=0,mt.next(this.windows[0])}_next(mt){const Yt=this.startWindowEvery>0?this.startWindowEvery:this.windowSize,Un=this.destination,ii=this.windowSize,Hi=this.windows,Nr=Hi.length;for(let es=0;es<Nr&&!this.closed;es++)Hi[es].next(mt);const Or=this.count-ii+1;if(Or>=0&&Or%Yt==0&&!this.closed&&Hi.shift().complete(),++this.count%Yt==0&&!this.closed){const es=new Le.B7;Hi.push(es),Un.next(es)}}_error(mt){const Yt=this.windows;if(Yt)for(;Yt.length>0&&!this.closed;)Yt.shift().error(mt);this.destination.error(mt)}_complete(){const mt=this.windows;if(mt)for(;mt.length>0&&!this.closed;)mt.shift().complete();this.destination.complete()}_unsubscribe(){this.count=0,this.windows=null}}var on=s(44897);function Dt($n){let mt=ta.b,Yt=null,Un=Number.POSITIVE_INFINITY;return(0,on.m)(arguments[3])&&(mt=arguments[3]),(0,on.m)(arguments[2])?mt=arguments[2]:(0,so.k)(arguments[2])&&(Un=Number(arguments[2])),(0,on.m)(arguments[1])?mt=arguments[1]:(0,so.k)(arguments[1])&&(Yt=Number(arguments[1])),function(Hi){return Hi.lift(new Mt($n,Yt,Un,mt))}}class Mt{constructor(mt,Yt,Un,ii){this.windowTimeSpan=mt,this.windowCreationInterval=Yt,this.maxWindowSize=Un,this.scheduler=ii}call(mt,Yt){return Yt.subscribe(new qn(mt,this.windowTimeSpan,this.windowCreationInterval,this.maxWindowSize,this.scheduler))}}class Dn extends Le.B7{constructor(){super(...arguments),this._numberOfNextedValues=0}next(mt){this._numberOfNextedValues++,super.next(mt)}get numberOfNextedValues(){return this._numberOfNextedValues}}class qn extends P.v{constructor(mt,Yt,Un,ii,Hi){super(mt),this.destination=mt,this.windowTimeSpan=Yt,this.windowCreationInterval=Un,this.maxWindowSize=ii,this.scheduler=Hi,this.windows=[];const Nr=this.openWindow();if(null!==Un&&Un>=0){const es={windowTimeSpan:Yt,windowCreationInterval:Un,subscriber:this,scheduler:Hi};this.add(Hi.schedule(Do,Yt,{subscriber:this,window:Nr,context:null})),this.add(Hi.schedule(_s,Un,es))}else this.add(Hi.schedule(Yr,Yt,{subscriber:this,window:Nr,windowTimeSpan:Yt}))}_next(mt){const Yt=this.windows,Un=Yt.length;for(let ii=0;ii<Un;ii++){const Hi=Yt[ii];Hi.closed||(Hi.next(mt),Hi.numberOfNextedValues>=this.maxWindowSize&&this.closeWindow(Hi))}}_error(mt){const Yt=this.windows;for(;Yt.length>0;)Yt.shift().error(mt);this.destination.error(mt)}_complete(){const mt=this.windows;for(;mt.length>0;){const Yt=mt.shift();Yt.closed||Yt.complete()}this.destination.complete()}openWindow(){const mt=new Dn;return this.windows.push(mt),this.destination.next(mt),mt}closeWindow(mt){mt.complete();const Yt=this.windows;Yt.splice(Yt.indexOf(mt),1)}}function Yr($n){const{subscriber:mt,windowTimeSpan:Yt,window:Un}=$n;Un&&mt.closeWindow(Un),$n.window=mt.openWindow(),this.schedule($n,Yt)}function _s($n){const{windowTimeSpan:mt,subscriber:Yt,scheduler:Un,windowCreationInterval:ii}=$n,Hi=Yt.openWindow();let Or={action:this,subscription:null};Or.subscription=Un.schedule(Do,mt,{subscriber:Yt,window:Hi,context:Or}),this.add(Or.subscription),this.schedule($n,ii)}function Do($n){const{subscriber:mt,window:Yt,context:Un}=$n;Un&&Un.action&&Un.subscription&&Un.action.remove(Un.subscription),mt.closeWindow(Yt)}function Ws($n,mt){return Yt=>Yt.lift(new Bi($n,mt))}class Bi{constructor(mt,Yt){this.openings=mt,this.closingSelector=Yt}call(mt,Yt){return Yt.subscribe(new Di(mt,this.openings,this.closingSelector))}}class Di extends v.E{constructor(mt,Yt,Un){super(mt),this.openings=Yt,this.closingSelector=Un,this.contexts=[],this.add(this.openSubscription=(0,u.F)(this,Yt,Yt))}_next(mt){const{contexts:Yt}=this;if(Yt){const Un=Yt.length;for(let ii=0;ii<Un;ii++)Yt[ii].window.next(mt)}}_error(mt){const{contexts:Yt}=this;if(this.contexts=null,Yt){const Un=Yt.length;let ii=-1;for(;++ii<Un;){const Hi=Yt[ii];Hi.window.error(mt),Hi.subscription.unsubscribe()}}super._error(mt)}_complete(){const{contexts:mt}=this;if(this.contexts=null,mt){const Yt=mt.length;let Un=-1;for(;++Un<Yt;){const ii=mt[Un];ii.window.complete(),ii.subscription.unsubscribe()}}super._complete()}_unsubscribe(){const{contexts:mt}=this;if(this.contexts=null,mt){const Yt=mt.length;let Un=-1;for(;++Un<Yt;){const ii=mt[Un];ii.window.unsubscribe(),ii.subscription.unsubscribe()}}}notifyNext(mt,Yt,Un,ii,Hi){if(mt===this.openings){let Nr;try{const{closingSelector:Us}=this;Nr=Us(Yt)}catch(Us){return this.error(Us)}const Or=new Le.B7,es=new r.y,Zs={window:Or,subscription:es};this.contexts.push(Zs);const wr=(0,u.F)(this,Nr,Zs);wr.closed?this.closeWindow(this.contexts.length-1):(wr.context=Zs,es.add(wr)),this.destination.next(Or)}else this.closeWindow(this.contexts.indexOf(mt))}notifyError(mt){this.error(mt)}notifyComplete(mt){mt!==this.openSubscription&&this.closeWindow(this.contexts.indexOf(mt.context))}closeWindow(mt){if(-1===mt)return;const{contexts:Yt}=this,Un=Yt[mt],{window:ii,subscription:Hi}=Un;Yt.splice(mt,1),ii.complete(),Hi.unsubscribe()}}function Ea($n){return function(Yt){return Yt.lift(new vl($n))}}class vl{constructor(mt){this.closingSelector=mt}call(mt,Yt){return Yt.subscribe(new hs(mt,this.closingSelector))}}class hs extends v.E{constructor(mt,Yt){super(mt),this.destination=mt,this.closingSelector=Yt,this.openWindow()}notifyNext(mt,Yt,Un,ii,Hi){this.openWindow(Hi)}notifyError(mt){this._error(mt)}notifyComplete(mt){this.openWindow(mt)}_next(mt){this.window.next(mt)}_error(mt){this.window.error(mt),this.destination.error(mt),this.unsubscribeClosingNotification()}_complete(){this.window.complete(),this.destination.complete(),this.unsubscribeClosingNotification()}unsubscribeClosingNotification(){this.closingNotification&&this.closingNotification.unsubscribe()}openWindow(mt=null){mt&&(this.remove(mt),mt.unsubscribe());const Yt=this.window;Yt&&Yt.complete();const Un=this.window=new Le.B7;let ii;this.destination.next(Un);try{const{closingSelector:Hi}=this;ii=Hi()}catch(Hi){return this.destination.error(Hi),void this.window.error(Hi)}this.add(this.closingNotification=(0,u.F)(this,ii))}}function Is(...$n){return mt=>{let Yt;return"function"==typeof $n[$n.length-1]&&(Yt=$n.pop()),mt.lift(new da($n,Yt))}}class da{constructor(mt,Yt){this.observables=mt,this.project=Yt}call(mt,Yt){return Yt.subscribe(new jr(mt,this.observables,this.project))}}class jr extends v.E{constructor(mt,Yt,Un){super(mt),this.observables=Yt,this.project=Un,this.toRespond=[];const ii=Yt.length;this.values=new Array(ii);for(let Hi=0;Hi<ii;Hi++)this.toRespond.push(Hi);for(let Hi=0;Hi<ii;Hi++)this.add((0,u.F)(this,Yt[Hi],void 0,Hi))}notifyNext(mt,Yt,Un){this.values[Un]=Yt;const ii=this.toRespond;if(ii.length>0){const Hi=ii.indexOf(Un);-1!==Hi&&ii.splice(Hi,1)}}notifyComplete(){}_next(mt){if(0===this.toRespond.length){const Yt=[mt,...this.values];this.project?this._tryProject(Yt):this.destination.next(Yt)}}_tryProject(mt){let Yt;try{Yt=this.project.apply(this,mt)}catch(Un){return void this.destination.error(Un)}this.destination.next(Yt)}}var ia=s(35146);function Oo(...$n){return function(Yt){return Yt.lift.call((0,ia.yU)(Yt,...$n))}}function ra($n){return mt=>mt.lift(new ia.ee($n))}},19087:(St,z,s)=>{"use strict";Object.defineProperty(z,"__esModule",{value:!0});var i=s(28691),n=s(29234),h=s(54616),C=s(59409),S=s(8628),M=function(){function x(A){this._isScalar=!1,A&&(this._subscribe=A)}return x.prototype.lift=function(A){var g=new x;return g.source=this,g.operator=A,g},x.prototype.subscribe=function(A,g,m){var l=this.operator,r=n.toSubscriber(A,g,m);if(r.add(l?l.call(r,this.source):this.source||S.config.useDeprecatedSynchronousErrorHandling&&!r.syncErrorThrowable?this._subscribe(r):this._trySubscribe(r)),S.config.useDeprecatedSynchronousErrorHandling&&r.syncErrorThrowable&&(r.syncErrorThrowable=!1,r.syncErrorThrown))throw r.syncErrorValue;return r},x.prototype._trySubscribe=function(A){try{return this._subscribe(A)}catch(g){S.config.useDeprecatedSynchronousErrorHandling&&(A.syncErrorThrown=!0,A.syncErrorValue=g),i.canReportError(A)?A.error(g):console.warn(g)}},x.prototype.forEach=function(A,g){var m=this;return new(g=P(g))(function(l,r){var u;u=m.subscribe(function(v){try{A(v)}catch(E){r(E),u&&u.unsubscribe()}},r,l)})},x.prototype._subscribe=function(A){var g=this.source;return g&&g.subscribe(A)},x.prototype[h.observable]=function(){return this},x.prototype.pipe=function(){for(var A=[],g=0;g<arguments.length;g++)A[g]=arguments[g];return 0===A.length?this:C.pipeFromArray(A)(this)},x.prototype.toPromise=function(A){var g=this;return new(A=P(A))(function(m,l){var r;g.subscribe(function(u){return r=u},function(u){return l(u)},function(){return m(r)})})},x.create=function(A){return new x(A)},x}();function P(x){if(x||(x=S.config.Promise||Promise),!x)throw new Error("no Promise impl found");return x}z.Observable=M},1588:(St,z,s)=>{"use strict";Object.defineProperty(z,"__esModule",{value:!0});var i=s(8628),n=s(65919);z.empty={closed:!0,next:function(h){},error:function(h){if(i.config.useDeprecatedSynchronousErrorHandling)throw h;n.hostReportError(h)},complete:function(){}}},5932:function(St,z,s){"use strict";var i=this&&this.__extends||function(){var m=function(l,r){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,v){u.__proto__=v}||function(u,v){for(var E in v)v.hasOwnProperty(E)&&(u[E]=v[E])})(l,r)};return function(l,r){function u(){this.constructor=l}m(l,r),l.prototype=null===r?Object.create(r):(u.prototype=r.prototype,new u)}}();Object.defineProperty(z,"__esModule",{value:!0});var n=s(19087),h=s(88776),C=s(49307),S=s(12027),M=s(55877),P=s(43297),x=function(m){function l(r){var u=m.call(this,r)||this;return u.destination=r,u}return i(l,m),l}(h.Subscriber);z.SubjectSubscriber=x;var A=function(m){function l(){var r=m.call(this)||this;return r.observers=[],r.closed=!1,r.isStopped=!1,r.hasError=!1,r.thrownError=null,r}return i(l,m),l.prototype[P.rxSubscriber]=function(){return new x(this)},l.prototype.lift=function(r){var u=new g(this,this);return u.operator=r,u},l.prototype.next=function(r){if(this.closed)throw new S.ObjectUnsubscribedError;if(!this.isStopped)for(var u=this.observers,v=u.length,E=u.slice(),T=0;T<v;T++)E[T].next(r)},l.prototype.error=function(r){if(this.closed)throw new S.ObjectUnsubscribedError;this.hasError=!0,this.thrownError=r,this.isStopped=!0;for(var u=this.observers,v=u.length,E=u.slice(),T=0;T<v;T++)E[T].error(r);this.observers.length=0},l.prototype.complete=function(){if(this.closed)throw new S.ObjectUnsubscribedError;this.isStopped=!0;for(var r=this.observers,u=r.length,v=r.slice(),E=0;E<u;E++)v[E].complete();this.observers.length=0},l.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},l.prototype._trySubscribe=function(r){if(this.closed)throw new S.ObjectUnsubscribedError;return m.prototype._trySubscribe.call(this,r)},l.prototype._subscribe=function(r){if(this.closed)throw new S.ObjectUnsubscribedError;return this.hasError?(r.error(this.thrownError),C.Subscription.EMPTY):this.isStopped?(r.complete(),C.Subscription.EMPTY):(this.observers.push(r),new M.SubjectSubscription(this,r))},l.prototype.asObservable=function(){var r=new n.Observable;return r.source=this,r},l.create=function(r,u){return new g(r,u)},l}(n.Observable);z.Subject=A;var g=function(m){function l(r,u){var v=m.call(this)||this;return v.destination=r,v.source=u,v}return i(l,m),l.prototype.next=function(r){var u=this.destination;u&&u.next&&u.next(r)},l.prototype.error=function(r){var u=this.destination;u&&u.error&&this.destination.error(r)},l.prototype.complete=function(){var r=this.destination;r&&r.complete&&this.destination.complete()},l.prototype._subscribe=function(r){return this.source?this.source.subscribe(r):C.Subscription.EMPTY},l}(A);z.AnonymousSubject=g},55877:function(St,z,s){"use strict";var i=this&&this.__extends||function(){var C=function(S,M){return(C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(P,x){P.__proto__=x}||function(P,x){for(var A in x)x.hasOwnProperty(A)&&(P[A]=x[A])})(S,M)};return function(S,M){function P(){this.constructor=S}C(S,M),S.prototype=null===M?Object.create(M):(P.prototype=M.prototype,new P)}}();Object.defineProperty(z,"__esModule",{value:!0});var h=function(C){function S(M,P){var x=C.call(this)||this;return x.subject=M,x.subscriber=P,x.closed=!1,x}return i(S,C),S.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var M=this.subject,P=M.observers;if(this.subject=null,P&&0!==P.length&&!M.isStopped&&!M.closed){var x=P.indexOf(this.subscriber);-1!==x&&P.splice(x,1)}}},S}(s(49307).Subscription);z.SubjectSubscription=h},88776:function(St,z,s){"use strict";var i=this&&this.__extends||function(){var g=function(m,l){return(g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,u){r.__proto__=u}||function(r,u){for(var v in u)u.hasOwnProperty(v)&&(r[v]=u[v])})(m,l)};return function(m,l){function r(){this.constructor=m}g(m,l),m.prototype=null===l?Object.create(l):(r.prototype=l.prototype,new r)}}();Object.defineProperty(z,"__esModule",{value:!0});var n=s(44981),h=s(1588),C=s(49307),S=s(43297),M=s(8628),P=s(65919),x=function(g){function m(l,r,u){var v=g.call(this)||this;switch(v.syncErrorValue=null,v.syncErrorThrown=!1,v.syncErrorThrowable=!1,v.isStopped=!1,arguments.length){case 0:v.destination=h.empty;break;case 1:if(!l){v.destination=h.empty;break}if("object"==typeof l){l instanceof m?(v.syncErrorThrowable=l.syncErrorThrowable,v.destination=l,l.add(v)):(v.syncErrorThrowable=!0,v.destination=new A(v,l));break}default:v.syncErrorThrowable=!0,v.destination=new A(v,l,r,u)}return v}return i(m,g),m.prototype[S.rxSubscriber]=function(){return this},m.create=function(l,r,u){var v=new m(l,r,u);return v.syncErrorThrowable=!1,v},m.prototype.next=function(l){this.isStopped||this._next(l)},m.prototype.error=function(l){this.isStopped||(this.isStopped=!0,this._error(l))},m.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},m.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,g.prototype.unsubscribe.call(this))},m.prototype._next=function(l){this.destination.next(l)},m.prototype._error=function(l){this.destination.error(l),this.unsubscribe()},m.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},m.prototype._unsubscribeAndRecycle=function(){var l=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=l,this},m}(C.Subscription);z.Subscriber=x;var A=function(g){function m(l,r,u,v){var E=g.call(this)||this;E._parentSubscriber=l;var T,R=E;return n.isFunction(r)?T=r:r&&(T=r.next,u=r.error,v=r.complete,r!==h.empty&&(R=Object.create(r),n.isFunction(R.unsubscribe)&&E.add(R.unsubscribe.bind(R)),R.unsubscribe=E.unsubscribe.bind(E))),E._context=R,E._next=T,E._error=u,E._complete=v,E}return i(m,g),m.prototype.next=function(l){if(!this.isStopped&&this._next){var r=this._parentSubscriber;M.config.useDeprecatedSynchronousErrorHandling&&r.syncErrorThrowable?this.__tryOrSetError(r,this._next,l)&&this.unsubscribe():this.__tryOrUnsub(this._next,l)}},m.prototype.error=function(l){if(!this.isStopped){var r=this._parentSubscriber,u=M.config.useDeprecatedSynchronousErrorHandling;if(this._error)u&&r.syncErrorThrowable?(this.__tryOrSetError(r,this._error,l),this.unsubscribe()):(this.__tryOrUnsub(this._error,l),this.unsubscribe());else if(r.syncErrorThrowable)u?(r.syncErrorValue=l,r.syncErrorThrown=!0):P.hostReportError(l),this.unsubscribe();else{if(this.unsubscribe(),u)throw l;P.hostReportError(l)}}},m.prototype.complete=function(){var l=this;if(!this.isStopped){var r=this._parentSubscriber;if(this._complete){var u=function(){return l._complete.call(l._context)};M.config.useDeprecatedSynchronousErrorHandling&&r.syncErrorThrowable?(this.__tryOrSetError(r,u),this.unsubscribe()):(this.__tryOrUnsub(u),this.unsubscribe())}else this.unsubscribe()}},m.prototype.__tryOrUnsub=function(l,r){try{l.call(this._context,r)}catch(u){if(this.unsubscribe(),M.config.useDeprecatedSynchronousErrorHandling)throw u;P.hostReportError(u)}},m.prototype.__tryOrSetError=function(l,r,u){if(!M.config.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{r.call(this._context,u)}catch(v){return M.config.useDeprecatedSynchronousErrorHandling?(l.syncErrorValue=v,l.syncErrorThrown=!0,!0):(P.hostReportError(v),!0)}return!1},m.prototype._unsubscribe=function(){var l=this._parentSubscriber;this._context=null,this._parentSubscriber=null,l.unsubscribe()},m}(x);z.SafeSubscriber=A},49307:(St,z,s)=>{"use strict";Object.defineProperty(z,"__esModule",{value:!0});var i=s(92940),n=s(30662),h=s(44981),C=s(44977),S=function(){function P(x){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,x&&(this._ctorUnsubscribe=!0,this._unsubscribe=x)}return P.prototype.unsubscribe=function(){var x;if(!this.closed){var A=this,g=A._parentOrParents,m=A._ctorUnsubscribe,l=A._unsubscribe,r=A._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,g instanceof P)g.remove(this);else if(null!==g)for(var u=0;u<g.length;++u)g[u].remove(this);if(h.isFunction(l)){m&&(this._unsubscribe=void 0);try{l.call(this)}catch(R){x=R instanceof C.UnsubscriptionError?M(R.errors):[R]}}if(i.isArray(r)){u=-1;for(var E=r.length;++u<E;){var T=r[u];if(n.isObject(T))try{T.unsubscribe()}catch(B){x=x||[],B instanceof C.UnsubscriptionError?x=x.concat(M(B.errors)):x.push(B)}}}if(x)throw new C.UnsubscriptionError(x)}},P.prototype.add=function(x){var A=x;if(!x)return P.EMPTY;switch(typeof x){case"function":A=new P(x);case"object":if(A===this||A.closed||"function"!=typeof A.unsubscribe)return A;if(this.closed)return A.unsubscribe(),A;if(!(A instanceof P)){var g=A;(A=new P)._subscriptions=[g]}break;default:throw new Error("unrecognized teardown "+x+" added to Subscription.")}var m=A._parentOrParents;if(null===m)A._parentOrParents=this;else if(m instanceof P){if(m===this)return A;A._parentOrParents=[m,this]}else{if(-1!==m.indexOf(this))return A;m.push(this)}var l=this._subscriptions;return null===l?this._subscriptions=[A]:l.push(A),A},P.prototype.remove=function(x){var A=this._subscriptions;if(A){var g=A.indexOf(x);-1!==g&&A.splice(g,1)}},P.EMPTY=((x=new P).closed=!0,x),P;var x}();function M(P){return P.reduce(function(x,A){return x.concat(A instanceof C.UnsubscriptionError?A.errors:A)},[])}z.Subscription=S},8628:(St,z)=>{"use strict";Object.defineProperty(z,"__esModule",{value:!0});var s=!1;z.config={Promise:void 0,set useDeprecatedSynchronousErrorHandling(i){if(i){var n=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+n.stack)}else s&&console.log("RxJS: Back to a better error behavior. Thank you. <3");s=i},get useDeprecatedSynchronousErrorHandling(){return s}}},54616:(St,z)=>{"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.observable="function"==typeof Symbol&&Symbol.observable||"@@observable"},43297:(St,z)=>{"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.rxSubscriber="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random(),z.$$rxSubscriber=z.rxSubscriber},12027:(St,z)=>{"use strict";Object.defineProperty(z,"__esModule",{value:!0});var s=function(){function i(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return i.prototype=Object.create(Error.prototype),i}();z.ObjectUnsubscribedError=s},44977:(St,z)=>{"use strict";Object.defineProperty(z,"__esModule",{value:!0});var s=function(){function i(n){return Error.call(this),this.message=n?n.length+" errors occurred during unsubscription:\n"+n.map(function(h,C){return C+1+") "+h.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=n,this}return i.prototype=Object.create(Error.prototype),i}();z.UnsubscriptionError=s},28691:(St,z,s)=>{"use strict";Object.defineProperty(z,"__esModule",{value:!0});var i=s(88776);z.canReportError=function n(h){for(;h;){var M=h.destination;if(h.closed||h.isStopped)return!1;h=M&&M instanceof i.Subscriber?M:null}return!0}},65919:(St,z)=>{"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.hostReportError=function s(i){setTimeout(function(){throw i},0)}},77719:(St,z)=>{"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.identity=function s(i){return i}},92940:(St,z)=>{"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.isArray=Array.isArray||function(s){return s&&"number"==typeof s.length}},44981:(St,z)=>{"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.isFunction=function s(i){return"function"==typeof i}},30662:(St,z)=>{"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.isObject=function s(i){return null!==i&&"object"==typeof i}},59409:(St,z,s)=>{"use strict";Object.defineProperty(z,"__esModule",{value:!0});var i=s(77719);function h(C){return 0===C.length?i.identity:1===C.length?C[0]:function(M){return C.reduce(function(P,x){return x(P)},M)}}z.pipe=function n(){for(var C=[],S=0;S<arguments.length;S++)C[S]=arguments[S];return h(C)},z.pipeFromArray=h},29234:(St,z,s)=>{"use strict";Object.defineProperty(z,"__esModule",{value:!0});var i=s(88776),n=s(43297),h=s(1588);z.toSubscriber=function C(S,M,P){if(S){if(S instanceof i.Subscriber)return S;if(S[n.rxSubscriber])return S[n.rxSubscriber]()}return S||M||P?new i.Subscriber(S,M,P):new i.Subscriber(h.empty)}},91903:()=>{},24394:()=>{},8536:St=>{function z(i,n,h,C,S,M,P){try{var x=i[M](P),A=x.value}catch(g){return void h(g)}x.done?n(A):Promise.resolve(A).then(C,S)}St.exports=function s(i){return function(){var n=this,h=arguments;return new Promise(function(C,S){var M=i.apply(n,h);function P(A){z(M,C,S,P,x,"next",A)}function x(A){z(M,C,S,P,x,"throw",A)}P(void 0)})}},St.exports.__esModule=!0,St.exports.default=St.exports},70650:(St,z,s)=>{"use strict";function i(h,C,S,M,P,x,A){try{var g=h[x](A),m=g.value}catch(l){return void S(l)}g.done?C(m):Promise.resolve(m).then(M,P)}function n(h){return function(){var C=this,S=arguments;return new Promise(function(M,P){var x=h.apply(C,S);function A(m){i(x,M,P,A,g,"next",m)}function g(m){i(x,M,P,A,g,"throw",m)}A(void 0)})}}s.d(z,{A:()=>n})},40262:(St,z,s)=>{"use strict";s.d(z,{FX:()=>ce,If:()=>h,K2:()=>x,MA:()=>u,Os:()=>P,P:()=>E,S6:()=>R,hZ:()=>S,i0:()=>M,i7:()=>m,iF:()=>A,kY:()=>l,kp:()=>C,sf:()=>q,ui:()=>Q,wk:()=>g});var i=s(61142),n=s(58527),h=function(te){return te[te.State=0]="State",te[te.Transition=1]="Transition",te[te.Sequence=2]="Sequence",te[te.Group=3]="Group",te[te.Animate=4]="Animate",te[te.Keyframes=5]="Keyframes",te[te.Style=6]="Style",te[te.Trigger=7]="Trigger",te[te.Reference=8]="Reference",te[te.AnimateChild=9]="AnimateChild",te[te.AnimateRef=10]="AnimateRef",te[te.Query=11]="Query",te[te.Stagger=12]="Stagger",te}(h||{});const C="*";function S(te,Ee){return{type:h.Trigger,name:te,definitions:Ee,options:{}}}function M(te,Ee=null){return{type:h.Animate,styles:Ee,timings:te}}function P(te,Ee=null){return{type:h.Group,steps:te,options:Ee}}function x(te,Ee=null){return{type:h.Sequence,steps:te,options:Ee}}function A(te){return{type:h.Style,styles:te,offset:null}}function g(te,Ee,it){return{type:h.State,name:te,styles:Ee,options:it}}function m(te){return{type:h.Keyframes,steps:te}}function l(te,Ee,it=null){return{type:h.Transition,expr:te,animation:Ee,options:it}}function u(te=null){return{type:h.AnimateChild,options:te}}function E(te,Ee,it=null){return{type:h.Query,selector:te,animation:Ee,options:it}}let R=(()=>{class te{static{this.\u0275fac=function(Fe){return new(Fe||te)}}static{this.\u0275prov=n.jDH({token:te,factory:()=>(0,n.WQX)(U),providedIn:"root"})}}return te})();class B{}let U=(()=>{class te extends R{constructor(it,Fe){if(super(),this.animationModuleType=(0,n.WQX)(n.bc$,{optional:!0}),this._nextAnimationId=0,this._renderer=it.createRenderer(Fe.body,{id:"0",encapsulation:n.gXe.None,styles:[],data:{animation:[]}}),null===this.animationModuleType&&!function X(te){const Ee=te.\u0275type;return 0===Ee||1===Ee}(this._renderer))throw new n.wOt(3600,!1)}build(it){const Fe=this._nextAnimationId;this._nextAnimationId++;const Qe=Array.isArray(it)?x(it):it;return G(this._renderer,null,Fe,"register",[Qe]),new Y(Fe,this._renderer)}static{this.\u0275fac=function(Fe){return new(Fe||te)(n.KVO(n._9s),n.KVO(i.qQ))}}static{this.\u0275prov=n.jDH({token:te,factory:te.\u0275fac,providedIn:"root"})}}return te})();class Y extends B{constructor(Ee,it){super(),this._id=Ee,this._renderer=it}create(Ee,it){return new ae(this._id,Ee,it||{},this._renderer)}}class ae{constructor(Ee,it,Fe,Qe){this.id=Ee,this.element=it,this._renderer=Qe,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",Fe)}_listen(Ee,it){return this._renderer.listen(this.element,`@@${this.id}:${Ee}`,it)}_command(Ee,...it){G(this._renderer,this.element,this.id,Ee,it)}onDone(Ee){this._listen("done",Ee)}onStart(Ee){this._listen("start",Ee)}onDestroy(Ee){this._listen("destroy",Ee)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(Ee){this._command("setPosition",Ee)}getPosition(){return function k(te){const Ee=te.\u0275type;return 0===Ee?te:1===Ee?te.animationRenderer:null}(this._renderer)?.engine?.players[this.id]?.getPosition()??0}}function G(te,Ee,it,Fe,Qe){te.setProperty(Ee,`@@${it}:${Fe}`,Qe)}class q{constructor(Ee=0,it=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=Ee+it}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(Ee=>Ee()),this._onDoneFns=[])}onStart(Ee){this._originalOnStartFns.push(Ee),this._onStartFns.push(Ee)}onDone(Ee){this._originalOnDoneFns.push(Ee),this._onDoneFns.push(Ee)}onDestroy(Ee){this._onDestroyFns.push(Ee)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(Ee=>Ee()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(Ee=>Ee()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(Ee){this._position=this.totalTime?Ee*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(Ee){const it="start"==Ee?this._onStartFns:this._onDoneFns;it.forEach(Fe=>Fe()),it.length=0}}class Q{constructor(Ee){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=Ee;let it=0,Fe=0,Qe=0;const ct=this.players.length;0==ct?queueMicrotask(()=>this._onFinish()):this.players.forEach(Ge=>{Ge.onDone(()=>{++it==ct&&this._onFinish()}),Ge.onDestroy(()=>{++Fe==ct&&this._onDestroy()}),Ge.onStart(()=>{++Qe==ct&&this._onStart()})}),this.totalTime=this.players.reduce((Ge,nt)=>Math.max(Ge,nt.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(Ee=>Ee()),this._onDoneFns=[])}init(){this.players.forEach(Ee=>Ee.init())}onStart(Ee){this._onStartFns.push(Ee)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(Ee=>Ee()),this._onStartFns=[])}onDone(Ee){this._onDoneFns.push(Ee)}onDestroy(Ee){this._onDestroyFns.push(Ee)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(Ee=>Ee.play())}pause(){this.players.forEach(Ee=>Ee.pause())}restart(){this.players.forEach(Ee=>Ee.restart())}finish(){this._onFinish(),this.players.forEach(Ee=>Ee.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(Ee=>Ee.destroy()),this._onDestroyFns.forEach(Ee=>Ee()),this._onDestroyFns=[])}reset(){this.players.forEach(Ee=>Ee.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(Ee){const it=Ee*this.totalTime;this.players.forEach(Fe=>{const Qe=Fe.totalTime?Math.min(1,it/Fe.totalTime):1;Fe.setPosition(Qe)})}getPosition(){const Ee=this.players.reduce((it,Fe)=>null===it||Fe.totalTime>it.totalTime?Fe:it,null);return null!=Ee?Ee.getPosition():0}beforeDestroy(){this.players.forEach(Ee=>{Ee.beforeDestroy&&Ee.beforeDestroy()})}triggerCallback(Ee){const it="start"==Ee?this._onStartFns:this._onDoneFns;it.forEach(Fe=>Fe()),it.length=0}}const ce="!"},31308:(St,z,s)=>{"use strict";s.d(z,{Ae:()=>ae,Ai:()=>Jt,Au:()=>Fe,Bu:()=>Qe,FN:()=>lt,GX:()=>se,Pd:()=>Ut,Q_:()=>bn,Z7:()=>Ge,_G:()=>Se,px:()=>Y,vR:()=>Ue,vr:()=>ce,w6:()=>fe});var i=s(61142),n=s(58527),h=s(72653),C=s(80583),S=s(10399),M=s(26513),P=s(43848),x=s(25373),A=s(91384),g=s(62931),m=s(8619),l=s(83915),r=s(65706),u=s(36666),v=s(53461),E=s(4208),T=s(6364),R=s(26321),B=s(76706);const U=" ";function Y(Bt,Le,V){const de=G(Bt,Le);de.some(ge=>ge.trim()==V.trim())||(de.push(V.trim()),Bt.setAttribute(Le,de.join(U)))}function ae(Bt,Le,V){const ge=G(Bt,Le).filter(Ft=>Ft!=V.trim());ge.length?Bt.setAttribute(Le,ge.join(U)):Bt.removeAttribute(Le)}function G(Bt,Le){return(Bt.getAttribute(Le)||"").match(/\S+/g)||[]}const X="cdk-describedby-message",q="cdk-describedby-host";let Q=0,ce=(()=>{class Bt{constructor(V,de){this._platform=de,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+Q++,this._document=V,this._id=(0,n.WQX)(n.sZ2)+"-"+Q++}describe(V,de,ge){if(!this._canBeDescribed(V,de))return;const Ft=te(de,ge);"string"!=typeof de?(Ee(de,this._id),this._messageRegistry.set(Ft,{messageElement:de,referenceCount:0})):this._messageRegistry.has(Ft)||this._createMessageElement(de,ge),this._isElementDescribedByMessage(V,Ft)||this._addMessageReference(V,Ft)}removeDescription(V,de,ge){if(!de||!this._isElementNode(V))return;const Ft=te(de,ge);if(this._isElementDescribedByMessage(V,Ft)&&this._removeMessageReference(V,Ft),"string"==typeof de){const Wt=this._messageRegistry.get(Ft);Wt&&0===Wt.referenceCount&&this._deleteMessageElement(Ft)}0===this._messagesContainer?.childNodes.length&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){const V=this._document.querySelectorAll(`[${q}="${this._id}"]`);for(let de=0;de<V.length;de++)this._removeCdkDescribedByReferenceIds(V[de]),V[de].removeAttribute(q);this._messagesContainer?.remove(),this._messagesContainer=null,this._messageRegistry.clear()}_createMessageElement(V,de){const ge=this._document.createElement("div");Ee(ge,this._id),ge.textContent=V,de&&ge.setAttribute("role",de),this._createMessagesContainer(),this._messagesContainer.appendChild(ge),this._messageRegistry.set(te(V,de),{messageElement:ge,referenceCount:0})}_deleteMessageElement(V){this._messageRegistry.get(V)?.messageElement?.remove(),this._messageRegistry.delete(V)}_createMessagesContainer(){if(this._messagesContainer)return;const V="cdk-describedby-message-container",de=this._document.querySelectorAll(`.${V}[platform="server"]`);for(let Ft=0;Ft<de.length;Ft++)de[Ft].remove();const ge=this._document.createElement("div");ge.style.visibility="hidden",ge.classList.add(V),ge.classList.add("cdk-visually-hidden"),this._platform&&!this._platform.isBrowser&&ge.setAttribute("platform","server"),this._document.body.appendChild(ge),this._messagesContainer=ge}_removeCdkDescribedByReferenceIds(V){const de=G(V,"aria-describedby").filter(ge=>0!=ge.indexOf(X));V.setAttribute("aria-describedby",de.join(" "))}_addMessageReference(V,de){const ge=this._messageRegistry.get(de);Y(V,"aria-describedby",ge.messageElement.id),V.setAttribute(q,this._id),ge.referenceCount++}_removeMessageReference(V,de){const ge=this._messageRegistry.get(de);ge.referenceCount--,ae(V,"aria-describedby",ge.messageElement.id),V.removeAttribute(q)}_isElementDescribedByMessage(V,de){const ge=G(V,"aria-describedby"),Ft=this._messageRegistry.get(de),Wt=Ft&&Ft.messageElement.id;return!!Wt&&-1!=ge.indexOf(Wt)}_canBeDescribed(V,de){if(!this._isElementNode(V))return!1;if(de&&"object"==typeof de)return!0;const ge=null==de?"":`${de}`.trim(),Ft=V.getAttribute("aria-label");return!(!ge||Ft&&Ft.trim()===ge)}_isElementNode(V){return V.nodeType===this._document.ELEMENT_NODE}static{this.\u0275fac=function(de){return new(de||Bt)(n.KVO(i.qQ),n.KVO(h.OD))}}static{this.\u0275prov=n.jDH({token:Bt,factory:Bt.\u0275fac,providedIn:"root"})}}return Bt})();function te(Bt,Le){return"string"==typeof Bt?`${Le||""}/${Bt}`:Bt}function Ee(Bt,Le){Bt.id||(Bt.id=`${X}-${Le}-${Q++}`)}class it{constructor(Le){this._items=Le,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new C.B7,this._typeaheadSubscription=S.y.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._pageUpAndDown={enabled:!1,delta:10},this._skipPredicateFn=V=>V.disabled,this._pressedLetters=[],this.tabOut=new C.B7,this.change=new C.B7,Le instanceof n.rOR&&(this._itemChangesSubscription=Le.changes.subscribe(V=>{if(this._activeItem){const ge=V.toArray().indexOf(this._activeItem);ge>-1&&ge!==this._activeItemIndex&&(this._activeItemIndex=ge)}}))}skipPredicate(Le){return this._skipPredicateFn=Le,this}withWrap(Le=!0){return this._wrap=Le,this}withVerticalOrientation(Le=!0){return this._vertical=Le,this}withHorizontalOrientation(Le){return this._horizontal=Le,this}withAllowedModifierKeys(Le){return this._allowedModifierKeys=Le,this}withTypeAhead(Le=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,A.M)(V=>this._pressedLetters.push(V)),(0,g.B)(Le),(0,m.p)(()=>this._pressedLetters.length>0),(0,l.T)(()=>this._pressedLetters.join(""))).subscribe(V=>{const de=this._getItemsArray();for(let ge=1;ge<de.length+1;ge++){const Ft=(this._activeItemIndex+ge)%de.length,Wt=de[Ft];if(!this._skipPredicateFn(Wt)&&0===Wt.getLabel().toUpperCase().trim().indexOf(V)){this.setActiveItem(Ft);break}}this._pressedLetters=[]}),this}cancelTypeahead(){return this._pressedLetters=[],this}withHomeAndEnd(Le=!0){return this._homeAndEnd=Le,this}withPageUpDown(Le=!0,V=10){return this._pageUpAndDown={enabled:Le,delta:V},this}setActiveItem(Le){const V=this._activeItem;this.updateActiveItem(Le),this._activeItem!==V&&this.change.next(this._activeItemIndex)}onKeydown(Le){const V=Le.keyCode,ge=["altKey","ctrlKey","metaKey","shiftKey"].every(Ft=>!Le[Ft]||this._allowedModifierKeys.indexOf(Ft)>-1);switch(V){case x.wn:return void this.tabOut.next();case x.n6:if(this._vertical&&ge){this.setNextItemActive();break}return;case x.i7:if(this._vertical&&ge){this.setPreviousItemActive();break}return;case x.LE:if(this._horizontal&&ge){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case x.UQ:if(this._horizontal&&ge){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case x.yZ:if(this._homeAndEnd&&ge){this.setFirstItemActive();break}return;case x.Kp:if(this._homeAndEnd&&ge){this.setLastItemActive();break}return;case x.w_:if(this._pageUpAndDown.enabled&&ge){const Ft=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(Ft>0?Ft:0,1);break}return;case x.dB:if(this._pageUpAndDown.enabled&&ge){const Ft=this._activeItemIndex+this._pageUpAndDown.delta,Wt=this._getItemsArray().length;this._setActiveItemByIndex(Ft<Wt?Ft:Wt-1,-1);break}return;default:return void((ge||(0,x.rp)(Le,"shiftKey"))&&(Le.key&&1===Le.key.length?this._letterKeyStream.next(Le.key.toLocaleUpperCase()):(V>=x.A&&V<=x.Z||V>=x.f2&&V<=x.bn)&&this._letterKeyStream.next(String.fromCharCode(V))))}this._pressedLetters=[],Le.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(Le){const V=this._getItemsArray(),de="number"==typeof Le?Le:V.indexOf(Le);this._activeItem=V[de]??null,this._activeItemIndex=de}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._letterKeyStream.complete(),this.tabOut.complete(),this.change.complete(),this._pressedLetters=[]}_setActiveItemByDelta(Le){this._wrap?this._setActiveInWrapMode(Le):this._setActiveInDefaultMode(Le)}_setActiveInWrapMode(Le){const V=this._getItemsArray();for(let de=1;de<=V.length;de++){const ge=(this._activeItemIndex+Le*de+V.length)%V.length;if(!this._skipPredicateFn(V[ge]))return void this.setActiveItem(ge)}}_setActiveInDefaultMode(Le){this._setActiveItemByIndex(this._activeItemIndex+Le,Le)}_setActiveItemByIndex(Le,V){const de=this._getItemsArray();if(de[Le]){for(;this._skipPredicateFn(de[Le]);)if(!de[Le+=V])return;this.setActiveItem(Le)}}_getItemsArray(){return this._items instanceof n.rOR?this._items.toArray():this._items}}class Fe extends it{setActiveItem(Le){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(Le),this.activeItem&&this.activeItem.setActiveStyles()}}class Qe extends it{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(Le){return this._origin=Le,this}setActiveItem(Le){super.setActiveItem(Le),this.activeItem&&this.activeItem.focus(this._origin)}}let Ge=(()=>{class Bt{constructor(V){this._platform=V}isDisabled(V){return V.hasAttribute("disabled")}isVisible(V){return function Je(Bt){return!!(Bt.offsetWidth||Bt.offsetHeight||"function"==typeof Bt.getClientRects&&Bt.getClientRects().length)}(V)&&"visible"===getComputedStyle(V).visibility}isTabbable(V){if(!this._platform.isBrowser)return!1;const de=function nt(Bt){try{return Bt.frameElement}catch{return null}}(function ue(Bt){return Bt.ownerDocument&&Bt.ownerDocument.defaultView||window}(V));if(de&&(-1===J(de)||!this.isVisible(de)))return!1;let ge=V.nodeName.toLowerCase(),Ft=J(V);return V.hasAttribute("contenteditable")?-1!==Ft:!("iframe"===ge||"object"===ge||this._platform.WEBKIT&&this._platform.IOS&&!function vt(Bt){let Le=Bt.nodeName.toLowerCase(),V="input"===Le&&Bt.type;return"text"===V||"password"===V||"select"===Le||"textarea"===Le}(V))&&("audio"===ge?!!V.hasAttribute("controls")&&-1!==Ft:"video"===ge?-1!==Ft&&(null!==Ft||this._platform.FIREFOX||V.hasAttribute("controls")):V.tabIndex>=0)}isFocusable(V,de){return function ve(Bt){return!function Ke(Bt){return function $e(Bt){return"input"==Bt.nodeName.toLowerCase()}(Bt)&&"hidden"==Bt.type}(Bt)&&(function ze(Bt){let Le=Bt.nodeName.toLowerCase();return"input"===Le||"select"===Le||"button"===Le||"textarea"===Le}(Bt)||function Ve(Bt){return function dt(Bt){return"a"==Bt.nodeName.toLowerCase()}(Bt)&&Bt.hasAttribute("href")}(Bt)||Bt.hasAttribute("contenteditable")||Pe(Bt))}(V)&&!this.isDisabled(V)&&(de?.ignoreVisibility||this.isVisible(V))}static{this.\u0275fac=function(de){return new(de||Bt)(n.KVO(h.OD))}}static{this.\u0275prov=n.jDH({token:Bt,factory:Bt.\u0275fac,providedIn:"root"})}}return Bt})();function Pe(Bt){if(!Bt.hasAttribute("tabindex")||void 0===Bt.tabIndex)return!1;let Le=Bt.getAttribute("tabindex");return!(!Le||isNaN(parseInt(Le,10)))}function J(Bt){if(!Pe(Bt))return null;const Le=parseInt(Bt.getAttribute("tabindex")||"",10);return isNaN(Le)?-1:Le}class et{get enabled(){return this._enabled}set enabled(Le){this._enabled=Le,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(Le,this._startAnchor),this._toggleAnchorTabIndex(Le,this._endAnchor))}constructor(Le,V,de,ge,Ft=!1){this._element=Le,this._checker=V,this._ngZone=de,this._document=ge,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,Ft||this.attachAnchors()}destroy(){const Le=this._startAnchor,V=this._endAnchor;Le&&(Le.removeEventListener("focus",this.startAnchorListener),Le.remove()),V&&(V.removeEventListener("focus",this.endAnchorListener),V.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(Le){return new Promise(V=>{this._executeOnStable(()=>V(this.focusInitialElement(Le)))})}focusFirstTabbableElementWhenReady(Le){return new Promise(V=>{this._executeOnStable(()=>V(this.focusFirstTabbableElement(Le)))})}focusLastTabbableElementWhenReady(Le){return new Promise(V=>{this._executeOnStable(()=>V(this.focusLastTabbableElement(Le)))})}_getRegionBoundary(Le){const V=this._element.querySelectorAll(`[cdk-focus-region-${Le}], [cdkFocusRegion${Le}], [cdk-focus-${Le}]`);return"start"==Le?V.length?V[0]:this._getFirstTabbableElement(this._element):V.length?V[V.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(Le){const V=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(V){if(!this._checker.isFocusable(V)){const de=this._getFirstTabbableElement(V);return de?.focus(Le),!!de}return V.focus(Le),!0}return this.focusFirstTabbableElement(Le)}focusFirstTabbableElement(Le){const V=this._getRegionBoundary("start");return V&&V.focus(Le),!!V}focusLastTabbableElement(Le){const V=this._getRegionBoundary("end");return V&&V.focus(Le),!!V}hasAttached(){return this._hasAttached}_getFirstTabbableElement(Le){if(this._checker.isFocusable(Le)&&this._checker.isTabbable(Le))return Le;const V=Le.children;for(let de=0;de<V.length;de++){const ge=V[de].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(V[de]):null;if(ge)return ge}return null}_getLastTabbableElement(Le){if(this._checker.isFocusable(Le)&&this._checker.isTabbable(Le))return Le;const V=Le.children;for(let de=V.length-1;de>=0;de--){const ge=V[de].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(V[de]):null;if(ge)return ge}return null}_createAnchor(){const Le=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,Le),Le.classList.add("cdk-visually-hidden"),Le.classList.add("cdk-focus-trap-anchor"),Le.setAttribute("aria-hidden","true"),Le}_toggleAnchorTabIndex(Le,V){Le?V.setAttribute("tabindex","0"):V.removeAttribute("tabindex")}toggleAnchors(Le){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(Le,this._startAnchor),this._toggleAnchorTabIndex(Le,this._endAnchor))}_executeOnStable(Le){this._ngZone.isStable?Le():this._ngZone.onStable.pipe((0,r.s)(1)).subscribe(Le)}}let se=(()=>{class Bt{constructor(V,de,ge){this._checker=V,this._ngZone=de,this._document=ge}create(V,de=!1){return new et(V,this._checker,this._ngZone,this._document,de)}static{this.\u0275fac=function(de){return new(de||Bt)(n.KVO(Ge),n.KVO(n.SKi),n.KVO(i.qQ))}}static{this.\u0275prov=n.jDH({token:Bt,factory:Bt.\u0275fac,providedIn:"root"})}}return Bt})();function Se(Bt){return 0===Bt.buttons||0===Bt.detail}function fe(Bt){const Le=Bt.touches&&Bt.touches[0]||Bt.changedTouches&&Bt.changedTouches[0];return!(!Le||-1!==Le.identifier||null!=Le.radiusX&&1!==Le.radiusX||null!=Le.radiusY&&1!==Le.radiusY)}const Ne=new n.nKC("cdk-input-modality-detector-options"),ye={ignoreKeys:[x.A$,x.W3,x.eg,x.Ge,x.FX]},sn=(0,h.BQ)({passive:!0,capture:!0});let dn=(()=>{class Bt{get mostRecentModality(){return this._modality.value}constructor(V,de,ge,Ft){this._platform=V,this._mostRecentTarget=null,this._modality=new M.t(null),this._lastTouchMs=0,this._onKeydown=Wt=>{this._options?.ignoreKeys?.some(Kt=>Kt===Wt.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=(0,h.Fb)(Wt))},this._onMousedown=Wt=>{Date.now()-this._lastTouchMs<650||(this._modality.next(Se(Wt)?"keyboard":"mouse"),this._mostRecentTarget=(0,h.Fb)(Wt))},this._onTouchstart=Wt=>{fe(Wt)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,h.Fb)(Wt))},this._options={...ye,...Ft},this.modalityDetected=this._modality.pipe((0,u.i)(1)),this.modalityChanged=this.modalityDetected.pipe((0,v.F)()),V.isBrowser&&de.runOutsideAngular(()=>{ge.addEventListener("keydown",this._onKeydown,sn),ge.addEventListener("mousedown",this._onMousedown,sn),ge.addEventListener("touchstart",this._onTouchstart,sn)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,sn),document.removeEventListener("mousedown",this._onMousedown,sn),document.removeEventListener("touchstart",this._onTouchstart,sn))}static{this.\u0275fac=function(de){return new(de||Bt)(n.KVO(h.OD),n.KVO(n.SKi),n.KVO(i.qQ),n.KVO(Ne,8))}}static{this.\u0275prov=n.jDH({token:Bt,factory:Bt.\u0275fac,providedIn:"root"})}}return Bt})();const yn=new n.nKC("liveAnnouncerElement",{providedIn:"root",factory:function At(){return null}}),Vt=new n.nKC("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let Qt=0,Jt=(()=>{class Bt{constructor(V,de,ge,Ft){this._ngZone=de,this._defaultOptions=Ft,this._document=ge,this._liveElement=V||this._createLiveElement()}announce(V,...de){const ge=this._defaultOptions;let Ft,Wt;return 1===de.length&&"number"==typeof de[0]?Wt=de[0]:[Ft,Wt]=de,this.clear(),clearTimeout(this._previousTimeout),Ft||(Ft=ge&&ge.politeness?ge.politeness:"polite"),null==Wt&&ge&&(Wt=ge.duration),this._liveElement.setAttribute("aria-live",Ft),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(Kt=>this._currentResolve=Kt)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=V,"number"==typeof Wt&&(this._previousTimeout=setTimeout(()=>this.clear(),Wt)),this._currentResolve(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){const V="cdk-live-announcer-element",de=this._document.getElementsByClassName(V),ge=this._document.createElement("div");for(let Ft=0;Ft<de.length;Ft++)de[Ft].remove();return ge.classList.add(V),ge.classList.add("cdk-visually-hidden"),ge.setAttribute("aria-atomic","true"),ge.setAttribute("aria-live","polite"),ge.id="cdk-live-announcer-"+Qt++,this._document.body.appendChild(ge),ge}_exposeAnnouncerToModals(V){const de=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let ge=0;ge<de.length;ge++){const Ft=de[ge],Wt=Ft.getAttribute("aria-owns");Wt?-1===Wt.indexOf(V)&&Ft.setAttribute("aria-owns",Wt+" "+V):Ft.setAttribute("aria-owns",V)}}static{this.\u0275fac=function(de){return new(de||Bt)(n.KVO(yn,8),n.KVO(n.SKi),n.KVO(i.qQ),n.KVO(Vt,8))}}static{this.\u0275prov=n.jDH({token:Bt,factory:Bt.\u0275fac,providedIn:"root"})}}return Bt})();const nn=new n.nKC("cdk-focus-monitor-default-options"),Xt=(0,h.BQ)({passive:!0,capture:!0});let lt=(()=>{class Bt{constructor(V,de,ge,Ft,Wt){this._ngZone=V,this._platform=de,this._inputModalityDetector=ge,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new C.B7,this._rootNodeFocusAndBlurListener=Kt=>{for(let En=(0,h.Fb)(Kt);En;En=En.parentElement)"focus"===Kt.type?this._onFocus(Kt,En):this._onBlur(Kt,En)},this._document=Ft,this._detectionMode=Wt?.detectionMode||0}monitor(V,de=!1){const ge=(0,T.i8)(V);if(!this._platform.isBrowser||1!==ge.nodeType)return(0,P.of)();const Ft=(0,h.KT)(ge)||this._getDocument(),Wt=this._elementInfo.get(ge);if(Wt)return de&&(Wt.checkChildren=!0),Wt.subject;const Kt={checkChildren:de,subject:new C.B7,rootNode:Ft};return this._elementInfo.set(ge,Kt),this._registerGlobalListeners(Kt),Kt.subject}stopMonitoring(V){const de=(0,T.i8)(V),ge=this._elementInfo.get(de);ge&&(ge.subject.complete(),this._setClasses(de),this._elementInfo.delete(de),this._removeGlobalListeners(ge))}focusVia(V,de,ge){const Ft=(0,T.i8)(V);Ft===this._getDocument().activeElement?this._getClosestElementsInfo(Ft).forEach(([Kt,cn])=>this._originChanged(Kt,de,cn)):(this._setOrigin(de),"function"==typeof Ft.focus&&Ft.focus(ge))}ngOnDestroy(){this._elementInfo.forEach((V,de)=>this.stopMonitoring(de))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(V){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(V)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:V&&this._isLastInteractionFromInputLabel(V)?"mouse":"program"}_shouldBeAttributedToTouch(V){return 1===this._detectionMode||!!V?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(V,de){V.classList.toggle("cdk-focused",!!de),V.classList.toggle("cdk-touch-focused","touch"===de),V.classList.toggle("cdk-keyboard-focused","keyboard"===de),V.classList.toggle("cdk-mouse-focused","mouse"===de),V.classList.toggle("cdk-program-focused","program"===de)}_setOrigin(V,de=!1){this._ngZone.runOutsideAngular(()=>{this._origin=V,this._originFromTouchInteraction="touch"===V&&de,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(V,de){const ge=this._elementInfo.get(de),Ft=(0,h.Fb)(V);!ge||!ge.checkChildren&&de!==Ft||this._originChanged(de,this._getFocusOrigin(Ft),ge)}_onBlur(V,de){const ge=this._elementInfo.get(de);!ge||ge.checkChildren&&V.relatedTarget instanceof Node&&de.contains(V.relatedTarget)||(this._setClasses(de),this._emitOrigin(ge,null))}_emitOrigin(V,de){V.subject.observers.length&&this._ngZone.run(()=>V.subject.next(de))}_registerGlobalListeners(V){if(!this._platform.isBrowser)return;const de=V.rootNode,ge=this._rootNodeFocusListenerCount.get(de)||0;ge||this._ngZone.runOutsideAngular(()=>{de.addEventListener("focus",this._rootNodeFocusAndBlurListener,Xt),de.addEventListener("blur",this._rootNodeFocusAndBlurListener,Xt)}),this._rootNodeFocusListenerCount.set(de,ge+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,E.Q)(this._stopInputModalityDetector)).subscribe(Ft=>{this._setOrigin(Ft,!0)}))}_removeGlobalListeners(V){const de=V.rootNode;if(this._rootNodeFocusListenerCount.has(de)){const ge=this._rootNodeFocusListenerCount.get(de);ge>1?this._rootNodeFocusListenerCount.set(de,ge-1):(de.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Xt),de.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Xt),this._rootNodeFocusListenerCount.delete(de))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(V,de,ge){this._setClasses(V,de),this._emitOrigin(ge,de),this._lastFocusOrigin=de}_getClosestElementsInfo(V){const de=[];return this._elementInfo.forEach((ge,Ft)=>{(Ft===V||ge.checkChildren&&Ft.contains(V))&&de.push([Ft,ge])}),de}_isLastInteractionFromInputLabel(V){const{_mostRecentTarget:de,mostRecentModality:ge}=this._inputModalityDetector;if("mouse"!==ge||!de||de===V||"INPUT"!==V.nodeName&&"TEXTAREA"!==V.nodeName||V.disabled)return!1;const Ft=V.labels;if(Ft)for(let Wt=0;Wt<Ft.length;Wt++)if(Ft[Wt].contains(de))return!0;return!1}static{this.\u0275fac=function(de){return new(de||Bt)(n.KVO(n.SKi),n.KVO(h.OD),n.KVO(dn),n.KVO(i.qQ,8),n.KVO(nn,8))}}static{this.\u0275prov=n.jDH({token:Bt,factory:Bt.\u0275fac,providedIn:"root"})}}return Bt})(),Ue=(()=>{class Bt{constructor(V,de){this._elementRef=V,this._focusMonitor=de,this._focusOrigin=null,this.cdkFocusChange=new n.bkB}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){const V=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(V,1===V.nodeType&&V.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(de=>{this._focusOrigin=de,this.cdkFocusChange.emit(de)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}static{this.\u0275fac=function(de){return new(de||Bt)(n.rXU(n.aKT),n.rXU(lt))}}static{this.\u0275dir=n.FsC({type:Bt,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]})}}return Bt})();const wt="cdk-high-contrast-black-on-white",gt="cdk-high-contrast-white-on-black",Ht="cdk-high-contrast-active";let bn=(()=>{class Bt{constructor(V,de){this._platform=V,this._document=de,this._breakpointSubscription=(0,n.WQX)(B.QP).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const V=this._document.createElement("div");V.style.backgroundColor="rgb(1,2,3)",V.style.position="absolute",this._document.body.appendChild(V);const de=this._document.defaultView||window,ge=de&&de.getComputedStyle?de.getComputedStyle(V):null,Ft=(ge&&ge.backgroundColor||"").replace(/ /g,"");switch(V.remove(),Ft){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return 2;case"rgb(255,255,255)":case"rgb(255,250,239)":return 1}return 0}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const V=this._document.body.classList;V.remove(Ht,wt,gt),this._hasCheckedHighContrastMode=!0;const de=this.getHighContrastMode();1===de?V.add(Ht,wt):2===de&&V.add(Ht,gt)}}static{this.\u0275fac=function(de){return new(de||Bt)(n.KVO(h.OD),n.KVO(i.qQ))}}static{this.\u0275prov=n.jDH({token:Bt,factory:Bt.\u0275fac,providedIn:"root"})}}return Bt})(),Ut=(()=>{class Bt{constructor(V){V._applyBodyHighContrastModeCssClasses()}static{this.\u0275fac=function(de){return new(de||Bt)(n.KVO(bn))}}static{this.\u0275mod=n.$C({type:Bt})}static{this.\u0275inj=n.G2t({imports:[R.w5]})}}return Bt})()},51394:(St,z,s)=>{"use strict";s.d(z,{dS:()=>P,ig:()=>x,jI:()=>A});var i=s(58527),n=s(61142);const h=new i.nKC("cdk-dir-doc",{providedIn:"root",factory:function C(){return(0,i.WQX)(n.qQ)}}),S=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function M(g){const m=g?.toLowerCase()||"";return"auto"===m&&typeof navigator<"u"&&navigator?.language?S.test(navigator.language)?"rtl":"ltr":"rtl"===m?"rtl":"ltr"}let P=(()=>{class g{constructor(l){this.value="ltr",this.change=new i.bkB,l&&(this.value=M((l.body?l.body.dir:null)||(l.documentElement?l.documentElement.dir:null)||"ltr"))}ngOnDestroy(){this.change.complete()}static{this.\u0275fac=function(r){return new(r||g)(i.KVO(h,8))}}static{this.\u0275prov=i.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}}return g})(),x=(()=>{class g{constructor(){this._dir="ltr",this._isInitialized=!1,this.change=new i.bkB}get dir(){return this._dir}set dir(l){const r=this._dir;this._dir=M(l),this._rawDir=l,r!==this._dir&&this._isInitialized&&this.change.emit(this._dir)}get value(){return this.dir}ngAfterContentInit(){this._isInitialized=!0}ngOnDestroy(){this.change.complete()}static{this.\u0275fac=function(r){return new(r||g)}}static{this.\u0275dir=i.FsC({type:g,selectors:[["","dir",""]],hostVars:1,hostBindings:function(r,u){2&r&&i.BMQ("dir",u._rawDir)},inputs:{dir:"dir"},outputs:{change:"dirChange"},exportAs:["dir"],features:[i.Jv_([{provide:P,useExisting:g}])]})}}return g})(),A=(()=>{class g{static{this.\u0275fac=function(r){return new(r||g)}}static{this.\u0275mod=i.$C({type:g})}static{this.\u0275inj=i.G2t({})}}return g})()},6364:(St,z,s)=>{"use strict";s.d(z,{FG:()=>S,OE:()=>h,a1:()=>M,he:()=>n,i8:()=>P});var i=s(58527);function n(A){return null!=A&&"false"!=`${A}`}function h(A,g=0){return function C(A){return!isNaN(parseFloat(A))&&!isNaN(Number(A))}(A)?Number(A):g}function S(A){return Array.isArray(A)?A:[A]}function M(A){return null==A?"":"string"==typeof A?A:`${A}px`}function P(A){return A instanceof i.aKT?A.nativeElement:A}},40567:(St,z,s)=>{"use strict";s.d(z,{CB:()=>m,DQ:()=>g,hx:()=>x,sL:()=>u,y4:()=>P,zP:()=>r});var i=s(96090),n=s(39595),h=s(43848),C=s(80583),S=s(58527);class M{}function P(v){return v&&"function"==typeof v.connect&&!(v instanceof i.G)}class x extends M{constructor(E){super(),this._data=E}connect(){return(0,n.A)(this._data)?this._data:(0,h.of)(this._data)}disconnect(){}}class g{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(E,T,R,B,U){E.forEachOperation((Y,ae,G)=>{let k,X;null==Y.previousIndex?(k=this._insertView(()=>R(Y,ae,G),G,T,B(Y)),X=k?1:0):null==G?(this._detachAndCacheView(ae,T),X=3):(k=this._moveView(ae,G,T,B(Y)),X=2),U&&U({context:k?.context,operation:X,record:Y})})}detach(){for(const E of this._viewCache)E.destroy();this._viewCache=[]}_insertView(E,T,R,B){const U=this._insertViewFromCache(T,R);if(U)return void(U.context.$implicit=B);const Y=E();return R.createEmbeddedView(Y.templateRef,Y.context,Y.index)}_detachAndCacheView(E,T){const R=T.detach(E);this._maybeCacheView(R,T)}_moveView(E,T,R,B){const U=R.get(E);return R.move(U,T),U.context.$implicit=B,U}_maybeCacheView(E,T){if(this._viewCache.length<this.viewCacheSize)this._viewCache.push(E);else{const R=T.indexOf(E);-1===R?E.destroy():T.remove(R)}}_insertViewFromCache(E,T){const R=this._viewCache.pop();return R&&T.insert(R,E),R||null}}class m{get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}constructor(E=!1,T,R=!0,B){this._multiple=E,this._emitChanges=R,this.compareWith=B,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new C.B7,T&&T.length&&(E?T.forEach(U=>this._markSelected(U)):this._markSelected(T[0]),this._selectedToEmit.length=0)}select(...E){this._verifyValueAssignment(E),E.forEach(R=>this._markSelected(R));const T=this._hasQueuedChanges();return this._emitChangeEvent(),T}deselect(...E){this._verifyValueAssignment(E),E.forEach(R=>this._unmarkSelected(R));const T=this._hasQueuedChanges();return this._emitChangeEvent(),T}setSelection(...E){this._verifyValueAssignment(E);const T=this.selected,R=new Set(E);E.forEach(U=>this._markSelected(U)),T.filter(U=>!R.has(U)).forEach(U=>this._unmarkSelected(U));const B=this._hasQueuedChanges();return this._emitChangeEvent(),B}toggle(E){return this.isSelected(E)?this.deselect(E):this.select(E)}clear(E=!0){this._unmarkAll();const T=this._hasQueuedChanges();return E&&this._emitChangeEvent(),T}isSelected(E){return this._selection.has(this._getConcreteValue(E))}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(E){this._multiple&&this.selected&&this._selected.sort(E)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(E){E=this._getConcreteValue(E),this.isSelected(E)||(this._multiple||this._unmarkAll(),this.isSelected(E)||this._selection.add(E),this._emitChanges&&this._selectedToEmit.push(E))}_unmarkSelected(E){E=this._getConcreteValue(E),this.isSelected(E)&&(this._selection.delete(E),this._emitChanges&&this._deselectedToEmit.push(E))}_unmarkAll(){this.isEmpty()||this._selection.forEach(E=>this._unmarkSelected(E))}_verifyValueAssignment(E){}_hasQueuedChanges(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)}_getConcreteValue(E){if(this.compareWith){for(let T of this._selection)if(this.compareWith(E,T))return T;return E}return E}}let r=(()=>{class v{constructor(){this._listeners=[]}notify(T,R){for(let B of this._listeners)B(T,R)}listen(T){return this._listeners.push(T),()=>{this._listeners=this._listeners.filter(R=>T!==R)}}ngOnDestroy(){this._listeners=[]}static{this.\u0275fac=function(R){return new(R||v)}}static{this.\u0275prov=S.jDH({token:v,factory:v.\u0275fac,providedIn:"root"})}}return v})();const u=new S.nKC("_ViewRepeater")},78064:(St,z,s)=>{"use strict";s.d(z,{Pe:()=>u,Ph:()=>q,lG:()=>k,sU:()=>E});var i=s(31308),n=s(61904),h=s(72653),C=s(76614),S=s(61142),M=s(58527),P=s(25373),x=s(80583),A=s(63997),g=s(43848),m=s(51394),l=s(34593);function r(Q,ce){}class u{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0,this.closeOnOverlayDetachments=!0}}let E=(()=>{class Q extends C.lb{constructor(te,Ee,it,Fe,Qe,ct,Ge,nt){super(),this._elementRef=te,this._focusTrapFactory=Ee,this._config=Fe,this._interactivityChecker=Qe,this._ngZone=ct,this._overlayRef=Ge,this._focusMonitor=nt,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this._ariaLabelledByQueue=[],this.attachDomPortal=Je=>{this._portalOutlet.hasAttached();const ze=this._portalOutlet.attachDomPortal(Je);return this._contentAttached(),ze},this._document=it,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy)}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(te){this._portalOutlet.hasAttached();const Ee=this._portalOutlet.attachComponentPortal(te);return this._contentAttached(),Ee}attachTemplatePortal(te){this._portalOutlet.hasAttached();const Ee=this._portalOutlet.attachTemplatePortal(te);return this._contentAttached(),Ee}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(te,Ee){this._interactivityChecker.isFocusable(te)||(te.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const it=()=>{te.removeEventListener("blur",it),te.removeEventListener("mousedown",it),te.removeAttribute("tabindex")};te.addEventListener("blur",it),te.addEventListener("mousedown",it)})),te.focus(Ee)}_focusByCssSelector(te,Ee){let it=this._elementRef.nativeElement.querySelector(te);it&&this._forceFocus(it,Ee)}_trapFocus(){const te=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||te.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(Ee=>{Ee||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}_restoreFocus(){const te=this._config.restoreFocus;let Ee=null;if("string"==typeof te?Ee=this._document.querySelector(te):"boolean"==typeof te?Ee=te?this._elementFocusedBeforeDialogWasOpened:null:te&&(Ee=te),this._config.restoreFocus&&Ee&&"function"==typeof Ee.focus){const it=(0,h.vc)(),Fe=this._elementRef.nativeElement;(!it||it===this._document.body||it===Fe||Fe.contains(it))&&(this._focusMonitor?(this._focusMonitor.focusVia(Ee,this._closeInteractionType),this._closeInteractionType=null):Ee.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const te=this._elementRef.nativeElement,Ee=(0,h.vc)();return te===Ee||te.contains(Ee)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,h.vc)())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}static{this.\u0275fac=function(Ee){return new(Ee||Q)(M.rXU(M.aKT),M.rXU(i.GX),M.rXU(S.qQ,8),M.rXU(u),M.rXU(i.Z7),M.rXU(M.SKi),M.rXU(n.yY),M.rXU(i.FN))}}static{this.\u0275cmp=M.VBU({type:Q,selectors:[["cdk-dialog-container"]],viewQuery:function(Ee,it){if(1&Ee&&M.GBs(C.I3,7),2&Ee){let Fe;M.mGM(Fe=M.lsd())&&(it._portalOutlet=Fe.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(Ee,it){2&Ee&&M.BMQ("id",it._config.id||null)("role",it._config.role)("aria-modal",it._config.ariaModal)("aria-labelledby",it._config.ariaLabel?null:it._ariaLabelledByQueue[0])("aria-label",it._config.ariaLabel)("aria-describedby",it._config.ariaDescribedBy||null)},features:[M.Vt3],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(Ee,it){1&Ee&&M.DNE(0,r,0,0,"ng-template",0)},dependencies:[C.I3],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2})}}return Q})();class T{constructor(ce,te){this.overlayRef=ce,this.config=te,this.closed=new x.B7,this.disableClose=te.disableClose,this.backdropClick=ce.backdropClick(),this.keydownEvents=ce.keydownEvents(),this.outsidePointerEvents=ce.outsidePointerEvents(),this.id=te.id,this.keydownEvents.subscribe(Ee=>{Ee.keyCode===P._f&&!this.disableClose&&!(0,P.rp)(Ee)&&(Ee.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})}),this._detachSubscription=ce.detachments().subscribe(()=>{!1!==te.closeOnOverlayDetachments&&this.close()})}close(ce,te){if(this.containerInstance){const Ee=this.closed;this.containerInstance._closeInteractionType=te?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),Ee.next(ce),Ee.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(ce="",te=""){return this.overlayRef.updateSize({width:ce,height:te}),this}addPanelClass(ce){return this.overlayRef.addPanelClass(ce),this}removePanelClass(ce){return this.overlayRef.removePanelClass(ce),this}}const R=new M.nKC("DialogScrollStrategy"),B=new M.nKC("DialogData"),U=new M.nKC("DefaultDialogConfig"),ae={provide:R,deps:[n.hJ],useFactory:function Y(Q){return()=>Q.scrollStrategies.block()}};let G=0,k=(()=>{class Q{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}constructor(te,Ee,it,Fe,Qe,ct){this._overlay=te,this._injector=Ee,this._defaultOptions=it,this._parentDialog=Fe,this._overlayContainer=Qe,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new x.B7,this._afterOpenedAtThisLevel=new x.B7,this._ariaHiddenElements=new Map,this.afterAllClosed=(0,A.v)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,l.Z)(void 0))),this._scrollStrategy=ct}open(te,Ee){(Ee={...this._defaultOptions||new u,...Ee}).id=Ee.id||"cdk-dialog-"+G++,Ee.id&&this.getDialogById(Ee.id);const Fe=this._getOverlayConfig(Ee),Qe=this._overlay.create(Fe),ct=new T(Qe,Ee),Ge=this._attachContainer(Qe,ct,Ee);return ct.containerInstance=Ge,this._attachDialogContent(te,ct,Ge,Ee),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(ct),ct.closed.subscribe(()=>this._removeOpenDialog(ct,!0)),this.afterOpened.next(ct),ct}closeAll(){X(this.openDialogs,te=>te.close())}getDialogById(te){return this.openDialogs.find(Ee=>Ee.id===te)}ngOnDestroy(){X(this._openDialogsAtThisLevel,te=>{!1===te.config.closeOnDestroy&&this._removeOpenDialog(te,!1)}),X(this._openDialogsAtThisLevel,te=>te.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(te){const Ee=new n.rR({positionStrategy:te.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:te.scrollStrategy||this._scrollStrategy(),panelClass:te.panelClass,hasBackdrop:te.hasBackdrop,direction:te.direction,minWidth:te.minWidth,minHeight:te.minHeight,maxWidth:te.maxWidth,maxHeight:te.maxHeight,width:te.width,height:te.height,disposeOnNavigation:te.closeOnNavigation});return te.backdropClass&&(Ee.backdropClass=te.backdropClass),Ee}_attachContainer(te,Ee,it){const Fe=it.injector||it.viewContainerRef?.injector,Qe=[{provide:u,useValue:it},{provide:T,useValue:Ee},{provide:n.yY,useValue:te}];let ct;it.container?"function"==typeof it.container?ct=it.container:(ct=it.container.type,Qe.push(...it.container.providers(it))):ct=E;const Ge=new C.A8(ct,it.viewContainerRef,M.zZn.create({parent:Fe||this._injector,providers:Qe}),it.componentFactoryResolver);return te.attach(Ge).instance}_attachDialogContent(te,Ee,it,Fe){if(te instanceof M.C4Q){const Qe=this._createInjector(Fe,Ee,it,void 0);let ct={$implicit:Fe.data,dialogRef:Ee};Fe.templateContext&&(ct={...ct,..."function"==typeof Fe.templateContext?Fe.templateContext():Fe.templateContext}),it.attachTemplatePortal(new C.VA(te,null,ct,Qe))}else{const Qe=this._createInjector(Fe,Ee,it,this._injector),ct=it.attachComponentPortal(new C.A8(te,Fe.viewContainerRef,Qe,Fe.componentFactoryResolver));Ee.componentRef=ct,Ee.componentInstance=ct.instance}}_createInjector(te,Ee,it,Fe){const Qe=te.injector||te.viewContainerRef?.injector,ct=[{provide:B,useValue:te.data},{provide:T,useValue:Ee}];return te.providers&&("function"==typeof te.providers?ct.push(...te.providers(Ee,te,it)):ct.push(...te.providers)),te.direction&&(!Qe||!Qe.get(m.dS,null,{optional:!0}))&&ct.push({provide:m.dS,useValue:{value:te.direction,change:(0,g.of)()}}),M.zZn.create({parent:Qe||Fe,providers:ct})}_removeOpenDialog(te,Ee){const it=this.openDialogs.indexOf(te);it>-1&&(this.openDialogs.splice(it,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((Fe,Qe)=>{Fe?Qe.setAttribute("aria-hidden",Fe):Qe.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),Ee&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const te=this._overlayContainer.getContainerElement();if(te.parentElement){const Ee=te.parentElement.children;for(let it=Ee.length-1;it>-1;it--){const Fe=Ee[it];Fe!==te&&"SCRIPT"!==Fe.nodeName&&"STYLE"!==Fe.nodeName&&!Fe.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(Fe,Fe.getAttribute("aria-hidden")),Fe.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const te=this._parentDialog;return te?te._getAfterAllClosed():this._afterAllClosedAtThisLevel}static{this.\u0275fac=function(Ee){return new(Ee||Q)(M.KVO(n.hJ),M.KVO(M.zZn),M.KVO(U,8),M.KVO(Q,12),M.KVO(n.Sf),M.KVO(R))}}static{this.\u0275prov=M.jDH({token:Q,factory:Q.\u0275fac})}}return Q})();function X(Q,ce){let te=Q.length;for(;te--;)ce(Q[te])}let q=(()=>{class Q{static{this.\u0275fac=function(Ee){return new(Ee||Q)}}static{this.\u0275mod=M.$C({type:Q})}static{this.\u0275inj=M.G2t({providers:[k,ae],imports:[n.z_,C.jc,i.Pd,C.jc]})}}return Q})()},25373:(St,z,s)=>{"use strict";s.d(z,{A:()=>Ke,A$:()=>x,FX:()=>M,Fm:()=>S,G_:()=>n,Ge:()=>Vt,Kp:()=>v,LE:()=>B,SJ:()=>k,UQ:()=>T,W3:()=>P,Z:()=>At,_f:()=>m,bn:()=>ct,dB:()=>u,eg:()=>bs,f2:()=>X,i7:()=>R,n6:()=>U,rp:()=>An,t6:()=>l,w_:()=>r,wn:()=>h,yZ:()=>E});const n=8,h=9,S=13,M=16,P=17,x=18,m=27,l=32,r=33,u=34,v=35,E=36,T=37,R=38,B=39,U=40,k=46,X=48,ct=57,Ke=65,At=90,Vt=91,bs=224;function An(zn,...Jn){return Jn.length?Jn.some(di=>zn[di]):zn.altKey||zn.shiftKey||zn.ctrlKey||zn.metaKey}},76706:(St,z,s)=>{"use strict";s.d(z,{QP:()=>U,Rp:()=>ae});var i=s(58527),n=s(6364),h=s(80583),C=s(31315),S=s(69917),M=s(17053),P=s(65706),x=s(36666),A=s(62931),g=s(83915),m=s(34593),l=s(4208),r=s(72653);const v=new Set;let E,T=(()=>{class G{constructor(X,q){this._platform=X,this._nonce=q,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):B}matchMedia(X){return(this._platform.WEBKIT||this._platform.BLINK)&&function R(G,k){if(!v.has(G))try{E||(E=document.createElement("style"),k&&(E.nonce=k),E.setAttribute("type","text/css"),document.head.appendChild(E)),E.sheet&&(E.sheet.insertRule(`@media ${G} {body{ }}`,0),v.add(G))}catch(X){console.error(X)}}(X,this._nonce),this._matchMedia(X)}static{this.\u0275fac=function(q){return new(q||G)(i.KVO(r.OD),i.KVO(i.BIS,8))}}static{this.\u0275prov=i.jDH({token:G,factory:G.\u0275fac,providedIn:"root"})}}return G})();function B(G){return{matches:"all"===G||""===G,media:G,addListener:()=>{},removeListener:()=>{}}}let U=(()=>{class G{constructor(X,q){this._mediaMatcher=X,this._zone=q,this._queries=new Map,this._destroySubject=new h.B7}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(X){return Y((0,n.FG)(X)).some(Q=>this._registerQuery(Q).mql.matches)}observe(X){const Q=Y((0,n.FG)(X)).map(te=>this._registerQuery(te).observable);let ce=(0,C.zV)(Q);return ce=(0,S.x)(ce.pipe((0,P.s)(1)),ce.pipe((0,x.i)(1),(0,A.B)(0))),ce.pipe((0,g.T)(te=>{const Ee={matches:!1,breakpoints:{}};return te.forEach(({matches:it,query:Fe})=>{Ee.matches=Ee.matches||it,Ee.breakpoints[Fe]=it}),Ee}))}_registerQuery(X){if(this._queries.has(X))return this._queries.get(X);const q=this._mediaMatcher.matchMedia(X),ce={observable:new M.c(te=>{const Ee=it=>this._zone.run(()=>te.next(it));return q.addListener(Ee),()=>{q.removeListener(Ee)}}).pipe((0,m.Z)(q),(0,g.T)(({matches:te})=>({query:X,matches:te})),(0,l.Q)(this._destroySubject)),mql:q};return this._queries.set(X,ce),ce}static{this.\u0275fac=function(q){return new(q||G)(i.KVO(T),i.KVO(i.SKi))}}static{this.\u0275prov=i.jDH({token:G,factory:G.\u0275fac,providedIn:"root"})}}return G})();function Y(G){return G.map(k=>k.split(",")).reduce((k,X)=>k.concat(X)).map(k=>k.trim())}const ae={XSmall:"(max-width: 599.98px)",Small:"(min-width: 600px) and (max-width: 959.98px)",Medium:"(min-width: 960px) and (max-width: 1279.98px)",Large:"(min-width: 1280px) and (max-width: 1919.98px)",XLarge:"(min-width: 1920px)",Handset:"(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)",Tablet:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait), (min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",Web:"(min-width: 840px) and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)",HandsetPortrait:"(max-width: 599.98px) and (orientation: portrait)",TabletPortrait:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait)",WebPortrait:"(min-width: 840px) and (orientation: portrait)",HandsetLandscape:"(max-width: 959.98px) and (orientation: landscape)",TabletLandscape:"(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",WebLandscape:"(min-width: 1280px) and (orientation: landscape)"}},26321:(St,z,s)=>{"use strict";s.d(z,{Wv:()=>x,w5:()=>A});var i=s(6364),n=s(58527),h=s(17053),C=s(80583),S=s(62931);let M=(()=>{class g{create(l){return typeof MutationObserver>"u"?null:new MutationObserver(l)}static{this.\u0275fac=function(r){return new(r||g)}}static{this.\u0275prov=n.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}}return g})(),P=(()=>{class g{constructor(l){this._mutationObserverFactory=l,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((l,r)=>this._cleanupObserver(r))}observe(l){const r=(0,i.i8)(l);return new h.c(u=>{const E=this._observeElement(r).subscribe(u);return()=>{E.unsubscribe(),this._unobserveElement(r)}})}_observeElement(l){if(this._observedElements.has(l))this._observedElements.get(l).count++;else{const r=new C.B7,u=this._mutationObserverFactory.create(v=>r.next(v));u&&u.observe(l,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(l,{observer:u,stream:r,count:1})}return this._observedElements.get(l).stream}_unobserveElement(l){this._observedElements.has(l)&&(this._observedElements.get(l).count--,this._observedElements.get(l).count||this._cleanupObserver(l))}_cleanupObserver(l){if(this._observedElements.has(l)){const{observer:r,stream:u}=this._observedElements.get(l);r&&r.disconnect(),u.complete(),this._observedElements.delete(l)}}static{this.\u0275fac=function(r){return new(r||g)(n.KVO(M))}}static{this.\u0275prov=n.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}}return g})(),x=(()=>{class g{get disabled(){return this._disabled}set disabled(l){this._disabled=(0,i.he)(l),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(l){this._debounce=(0,i.OE)(l),this._subscribe()}constructor(l,r,u){this._contentObserver=l,this._elementRef=r,this._ngZone=u,this.event=new n.bkB,this._disabled=!1,this._currentSubscription=null}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const l=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?l.pipe((0,S.B)(this.debounce)):l).subscribe(this.event)})}_unsubscribe(){this._currentSubscription?.unsubscribe()}static{this.\u0275fac=function(r){return new(r||g)(n.rXU(P),n.rXU(n.aKT),n.rXU(n.SKi))}}static{this.\u0275dir=n.FsC({type:g,selectors:[["","cdkObserveContent",""]],inputs:{disabled:[n.Mj6.None,"cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]})}}return g})(),A=(()=>{class g{static{this.\u0275fac=function(r){return new(r||g)}}static{this.\u0275mod=n.$C({type:g})}static{this.\u0275inj=n.G2t({providers:[M]})}}return g})()},61904:(St,z,s)=>{"use strict";s.d(z,{$Q:()=>be,Sf:()=>ct,WB:()=>rt,hJ:()=>et,rR:()=>X,yY:()=>Ge,z_:()=>Xe});var i=s(64409),n=s(61142),h=s(58527),C=s(6364),S=s(72653),M=s(8619),P=s(65706),x=s(4208),A=s(48765),g=s(51394),m=s(76614),l=s(80583),r=s(10399),u=s(16229),v=s(25373);const E=(0,S.CZ)();class T{constructor(Ne,ye){this._viewportRuler=Ne,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=ye}attach(){}enable(){if(this._canBeEnabled()){const Ne=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=Ne.style.left||"",this._previousHTMLStyles.top=Ne.style.top||"",Ne.style.left=(0,C.a1)(-this._previousScrollPosition.left),Ne.style.top=(0,C.a1)(-this._previousScrollPosition.top),Ne.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const Ne=this._document.documentElement,Ot=Ne.style,sn=this._document.body.style,dn=Ot.scrollBehavior||"",yn=sn.scrollBehavior||"";this._isEnabled=!1,Ot.left=this._previousHTMLStyles.left,Ot.top=this._previousHTMLStyles.top,Ne.classList.remove("cdk-global-scrollblock"),E&&(Ot.scrollBehavior=sn.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),E&&(Ot.scrollBehavior=dn,sn.scrollBehavior=yn)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const ye=this._document.body,Ot=this._viewportRuler.getViewportSize();return ye.scrollHeight>Ot.height||ye.scrollWidth>Ot.width}}class B{constructor(Ne,ye,Ot,sn){this._scrollDispatcher=Ne,this._ngZone=ye,this._viewportRuler=Ot,this._config=sn,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(Ne){this._overlayRef=Ne}enable(){if(this._scrollSubscription)return;const Ne=this._scrollDispatcher.scrolled(0).pipe((0,M.p)(ye=>!ye||!this._overlayRef.overlayElement.contains(ye.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=Ne.subscribe(()=>{const ye=this._viewportRuler.getViewportScrollPosition().top;Math.abs(ye-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=Ne.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class U{enable(){}disable(){}attach(){}}function Y(fe,Ne){return Ne.some(ye=>fe.bottom<ye.top||fe.top>ye.bottom||fe.right<ye.left||fe.left>ye.right)}function ae(fe,Ne){return Ne.some(ye=>fe.top<ye.top||fe.bottom>ye.bottom||fe.left<ye.left||fe.right>ye.right)}class G{constructor(Ne,ye,Ot,sn){this._scrollDispatcher=Ne,this._viewportRuler=ye,this._ngZone=Ot,this._config=sn,this._scrollSubscription=null}attach(Ne){this._overlayRef=Ne}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const ye=this._overlayRef.overlayElement.getBoundingClientRect(),{width:Ot,height:sn}=this._viewportRuler.getViewportSize();Y(ye,[{width:Ot,height:sn,bottom:sn,right:Ot,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let k=(()=>{class fe{constructor(ye,Ot,sn,dn){this._scrollDispatcher=ye,this._viewportRuler=Ot,this._ngZone=sn,this.noop=()=>new U,this.close=yn=>new B(this._scrollDispatcher,this._ngZone,this._viewportRuler,yn),this.block=()=>new T(this._viewportRuler,this._document),this.reposition=yn=>new G(this._scrollDispatcher,this._viewportRuler,this._ngZone,yn),this._document=dn}static{this.\u0275fac=function(Ot){return new(Ot||fe)(h.KVO(i.R),h.KVO(i.Xj),h.KVO(h.SKi),h.KVO(n.qQ))}}static{this.\u0275prov=h.jDH({token:fe,factory:fe.\u0275fac,providedIn:"root"})}}return fe})();class X{constructor(Ne){if(this.scrollStrategy=new U,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,Ne){const ye=Object.keys(Ne);for(const Ot of ye)void 0!==Ne[Ot]&&(this[Ot]=Ne[Ot])}}}class ce{constructor(Ne,ye){this.connectionPair=Ne,this.scrollableViewProperties=ye}}let it=(()=>{class fe{constructor(ye){this._attachedOverlays=[],this._document=ye}ngOnDestroy(){this.detach()}add(ye){this.remove(ye),this._attachedOverlays.push(ye)}remove(ye){const Ot=this._attachedOverlays.indexOf(ye);Ot>-1&&this._attachedOverlays.splice(Ot,1),0===this._attachedOverlays.length&&this.detach()}static{this.\u0275fac=function(Ot){return new(Ot||fe)(h.KVO(n.qQ))}}static{this.\u0275prov=h.jDH({token:fe,factory:fe.\u0275fac,providedIn:"root"})}}return fe})(),Fe=(()=>{class fe extends it{constructor(ye,Ot){super(ye),this._ngZone=Ot,this._keydownListener=sn=>{const dn=this._attachedOverlays;for(let yn=dn.length-1;yn>-1;yn--)if(dn[yn]._keydownEvents.observers.length>0){const At=dn[yn]._keydownEvents;this._ngZone?this._ngZone.run(()=>At.next(sn)):At.next(sn);break}}}add(ye){super.add(ye),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}static{this.\u0275fac=function(Ot){return new(Ot||fe)(h.KVO(n.qQ),h.KVO(h.SKi,8))}}static{this.\u0275prov=h.jDH({token:fe,factory:fe.\u0275fac,providedIn:"root"})}}return fe})(),Qe=(()=>{class fe extends it{constructor(ye,Ot,sn){super(ye),this._platform=Ot,this._ngZone=sn,this._cursorStyleIsSet=!1,this._pointerDownListener=dn=>{this._pointerDownEventTarget=(0,S.Fb)(dn)},this._clickListener=dn=>{const yn=(0,S.Fb)(dn),At="click"===dn.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:yn;this._pointerDownEventTarget=null;const Vt=this._attachedOverlays.slice();for(let Qt=Vt.length-1;Qt>-1;Qt--){const Jt=Vt[Qt];if(Jt._outsidePointerEvents.observers.length<1||!Jt.hasAttached())continue;if(Jt.overlayElement.contains(yn)||Jt.overlayElement.contains(At))break;const Zt=Jt._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>Zt.next(dn)):Zt.next(dn)}}}add(ye){if(super.add(ye),!this._isAttached){const Ot=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(Ot)):this._addEventListeners(Ot),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=Ot.style.cursor,Ot.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const ye=this._document.body;ye.removeEventListener("pointerdown",this._pointerDownListener,!0),ye.removeEventListener("click",this._clickListener,!0),ye.removeEventListener("auxclick",this._clickListener,!0),ye.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(ye.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(ye){ye.addEventListener("pointerdown",this._pointerDownListener,!0),ye.addEventListener("click",this._clickListener,!0),ye.addEventListener("auxclick",this._clickListener,!0),ye.addEventListener("contextmenu",this._clickListener,!0)}static{this.\u0275fac=function(Ot){return new(Ot||fe)(h.KVO(n.qQ),h.KVO(S.OD),h.KVO(h.SKi,8))}}static{this.\u0275prov=h.jDH({token:fe,factory:fe.\u0275fac,providedIn:"root"})}}return fe})(),ct=(()=>{class fe{constructor(ye,Ot){this._platform=Ot,this._document=ye}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const ye="cdk-overlay-container";if(this._platform.isBrowser||(0,S.v8)()){const sn=this._document.querySelectorAll(`.${ye}[platform="server"], .${ye}[platform="test"]`);for(let dn=0;dn<sn.length;dn++)sn[dn].remove()}const Ot=this._document.createElement("div");Ot.classList.add(ye),(0,S.v8)()?Ot.setAttribute("platform","test"):this._platform.isBrowser||Ot.setAttribute("platform","server"),this._document.body.appendChild(Ot),this._containerElement=Ot}static{this.\u0275fac=function(Ot){return new(Ot||fe)(h.KVO(n.qQ),h.KVO(S.OD))}}static{this.\u0275prov=h.jDH({token:fe,factory:fe.\u0275fac,providedIn:"root"})}}return fe})();class Ge{constructor(Ne,ye,Ot,sn,dn,yn,At,Vt,Qt,Jt=!1){this._portalOutlet=Ne,this._host=ye,this._pane=Ot,this._config=sn,this._ngZone=dn,this._keyboardDispatcher=yn,this._document=At,this._location=Vt,this._outsideClickDispatcher=Qt,this._animationsDisabled=Jt,this._backdropElement=null,this._backdropClick=new l.B7,this._attachments=new l.B7,this._detachments=new l.B7,this._locationChanges=r.y.EMPTY,this._backdropClickHandler=Zt=>this._backdropClick.next(Zt),this._backdropTransitionendHandler=Zt=>{this._disposeBackdrop(Zt.target)},this._keydownEvents=new l.B7,this._outsidePointerEvents=new l.B7,sn.scrollStrategy&&(this._scrollStrategy=sn.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=sn.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(Ne){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const ye=this._portalOutlet.attach(Ne);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,P.s)(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),"function"==typeof ye?.onDestroy&&ye.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),ye}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const Ne=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),Ne}dispose(){const Ne=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._previousHostParent=this._pane=this._host=null,Ne&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(Ne){Ne!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=Ne,this.hasAttached()&&(Ne.attach(this),this.updatePosition()))}updateSize(Ne){this._config={...this._config,...Ne},this._updateElementSize()}setDirection(Ne){this._config={...this._config,direction:Ne},this._updateElementDirection()}addPanelClass(Ne){this._pane&&this._toggleClasses(this._pane,Ne,!0)}removePanelClass(Ne){this._pane&&this._toggleClasses(this._pane,Ne,!1)}getDirection(){const Ne=this._config.direction;return Ne?"string"==typeof Ne?Ne:Ne.value:"ltr"}updateScrollStrategy(Ne){Ne!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=Ne,this.hasAttached()&&(Ne.attach(this),Ne.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const Ne=this._pane.style;Ne.width=(0,C.a1)(this._config.width),Ne.height=(0,C.a1)(this._config.height),Ne.minWidth=(0,C.a1)(this._config.minWidth),Ne.minHeight=(0,C.a1)(this._config.minHeight),Ne.maxWidth=(0,C.a1)(this._config.maxWidth),Ne.maxHeight=(0,C.a1)(this._config.maxHeight)}_togglePointerEvents(Ne){this._pane.style.pointerEvents=Ne?"":"none"}_attachBackdrop(){const Ne="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(Ne)})}):this._backdropElement.classList.add(Ne)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const Ne=this._backdropElement;if(Ne){if(this._animationsDisabled)return void this._disposeBackdrop(Ne);Ne.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{Ne.addEventListener("transitionend",this._backdropTransitionendHandler)}),Ne.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(Ne)},500))}}_toggleClasses(Ne,ye,Ot){const sn=(0,C.FG)(ye||[]).filter(dn=>!!dn);sn.length&&(Ot?Ne.classList.add(...sn):Ne.classList.remove(...sn))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const Ne=this._ngZone.onStable.pipe((0,x.Q)((0,u.h)(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),Ne.unsubscribe())})})}_disposeScrollStrategy(){const Ne=this._scrollStrategy;Ne&&(Ne.disable(),Ne.detach&&Ne.detach())}_disposeBackdrop(Ne){Ne&&(Ne.removeEventListener("click",this._backdropClickHandler),Ne.removeEventListener("transitionend",this._backdropTransitionendHandler),Ne.remove(),this._backdropElement===Ne&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const nt="cdk-overlay-connected-position-bounding-box",Je=/([A-Za-z%]+)$/;class ze{get positions(){return this._preferredPositions}constructor(Ne,ye,Ot,sn,dn){this._viewportRuler=ye,this._document=Ot,this._platform=sn,this._overlayContainer=dn,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new l.B7,this._resizeSubscription=r.y.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(Ne)}attach(Ne){this._validatePositions(),Ne.hostElement.classList.add(nt),this._overlayRef=Ne,this._boundingBox=Ne.hostElement,this._pane=Ne.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const Ne=this._originRect,ye=this._overlayRect,Ot=this._viewportRect,sn=this._containerRect,dn=[];let yn;for(let At of this._preferredPositions){let Vt=this._getOriginPoint(Ne,sn,At),Qt=this._getOverlayPoint(Vt,ye,At),Jt=this._getOverlayFit(Qt,ye,Ot,At);if(Jt.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(At,Vt);this._canFitWithFlexibleDimensions(Jt,Qt,Ot)?dn.push({position:At,origin:Vt,overlayRect:ye,boundingBoxRect:this._calculateBoundingBoxRect(Vt,At)}):(!yn||yn.overlayFit.visibleArea<Jt.visibleArea)&&(yn={overlayFit:Jt,overlayPoint:Qt,originPoint:Vt,position:At,overlayRect:ye})}if(dn.length){let At=null,Vt=-1;for(const Qt of dn){const Jt=Qt.boundingBoxRect.width*Qt.boundingBoxRect.height*(Qt.position.weight||1);Jt>Vt&&(Vt=Jt,At=Qt)}return this._isPushed=!1,void this._applyPosition(At.position,At.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(yn.position,yn.originPoint);this._applyPosition(yn.position,yn.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Ke(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(nt),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const Ne=this._lastPosition;if(Ne){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const ye=this._getOriginPoint(this._originRect,this._containerRect,Ne);this._applyPosition(Ne,ye)}else this.apply()}withScrollableContainers(Ne){return this._scrollables=Ne,this}withPositions(Ne){return this._preferredPositions=Ne,-1===Ne.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(Ne){return this._viewportMargin=Ne,this}withFlexibleDimensions(Ne=!0){return this._hasFlexibleDimensions=Ne,this}withGrowAfterOpen(Ne=!0){return this._growAfterOpen=Ne,this}withPush(Ne=!0){return this._canPush=Ne,this}withLockedPosition(Ne=!0){return this._positionLocked=Ne,this}setOrigin(Ne){return this._origin=Ne,this}withDefaultOffsetX(Ne){return this._offsetX=Ne,this}withDefaultOffsetY(Ne){return this._offsetY=Ne,this}withTransformOriginOn(Ne){return this._transformOriginSelector=Ne,this}_getOriginPoint(Ne,ye,Ot){let sn,dn;if("center"==Ot.originX)sn=Ne.left+Ne.width/2;else{const yn=this._isRtl()?Ne.right:Ne.left,At=this._isRtl()?Ne.left:Ne.right;sn="start"==Ot.originX?yn:At}return ye.left<0&&(sn-=ye.left),dn="center"==Ot.originY?Ne.top+Ne.height/2:"top"==Ot.originY?Ne.top:Ne.bottom,ye.top<0&&(dn-=ye.top),{x:sn,y:dn}}_getOverlayPoint(Ne,ye,Ot){let sn,dn;return sn="center"==Ot.overlayX?-ye.width/2:"start"===Ot.overlayX?this._isRtl()?-ye.width:0:this._isRtl()?0:-ye.width,dn="center"==Ot.overlayY?-ye.height/2:"top"==Ot.overlayY?0:-ye.height,{x:Ne.x+sn,y:Ne.y+dn}}_getOverlayFit(Ne,ye,Ot,sn){const dn=$e(ye);let{x:yn,y:At}=Ne,Vt=this._getOffset(sn,"x"),Qt=this._getOffset(sn,"y");Vt&&(yn+=Vt),Qt&&(At+=Qt);let nn=0-At,Xt=At+dn.height-Ot.height,lt=this._subtractOverflows(dn.width,0-yn,yn+dn.width-Ot.width),Ue=this._subtractOverflows(dn.height,nn,Xt),wt=lt*Ue;return{visibleArea:wt,isCompletelyWithinViewport:dn.width*dn.height===wt,fitsInViewportVertically:Ue===dn.height,fitsInViewportHorizontally:lt==dn.width}}_canFitWithFlexibleDimensions(Ne,ye,Ot){if(this._hasFlexibleDimensions){const sn=Ot.bottom-ye.y,dn=Ot.right-ye.x,yn=Ve(this._overlayRef.getConfig().minHeight),At=Ve(this._overlayRef.getConfig().minWidth);return(Ne.fitsInViewportVertically||null!=yn&&yn<=sn)&&(Ne.fitsInViewportHorizontally||null!=At&&At<=dn)}return!1}_pushOverlayOnScreen(Ne,ye,Ot){if(this._previousPushAmount&&this._positionLocked)return{x:Ne.x+this._previousPushAmount.x,y:Ne.y+this._previousPushAmount.y};const sn=$e(ye),dn=this._viewportRect,yn=Math.max(Ne.x+sn.width-dn.width,0),At=Math.max(Ne.y+sn.height-dn.height,0),Vt=Math.max(dn.top-Ot.top-Ne.y,0),Qt=Math.max(dn.left-Ot.left-Ne.x,0);let Jt=0,Zt=0;return Jt=sn.width<=dn.width?Qt||-yn:Ne.x<this._viewportMargin?dn.left-Ot.left-Ne.x:0,Zt=sn.height<=dn.height?Vt||-At:Ne.y<this._viewportMargin?dn.top-Ot.top-Ne.y:0,this._previousPushAmount={x:Jt,y:Zt},{x:Ne.x+Jt,y:Ne.y+Zt}}_applyPosition(Ne,ye){if(this._setTransformOrigin(Ne),this._setOverlayElementStyles(ye,Ne),this._setBoundingBoxStyles(ye,Ne),Ne.panelClass&&this._addPanelClasses(Ne.panelClass),this._lastPosition=Ne,this._positionChanges.observers.length){const Ot=this._getScrollVisibility(),sn=new ce(Ne,Ot);this._positionChanges.next(sn)}this._isInitialRender=!1}_setTransformOrigin(Ne){if(!this._transformOriginSelector)return;const ye=this._boundingBox.querySelectorAll(this._transformOriginSelector);let Ot,sn=Ne.overlayY;Ot="center"===Ne.overlayX?"center":this._isRtl()?"start"===Ne.overlayX?"right":"left":"start"===Ne.overlayX?"left":"right";for(let dn=0;dn<ye.length;dn++)ye[dn].style.transformOrigin=`${Ot} ${sn}`}_calculateBoundingBoxRect(Ne,ye){const Ot=this._viewportRect,sn=this._isRtl();let dn,yn,At,Jt,Zt,nn;if("top"===ye.overlayY)yn=Ne.y,dn=Ot.height-yn+this._viewportMargin;else if("bottom"===ye.overlayY)At=Ot.height-Ne.y+2*this._viewportMargin,dn=Ot.height-At+this._viewportMargin;else{const Xt=Math.min(Ot.bottom-Ne.y+Ot.top,Ne.y),lt=this._lastBoundingBoxSize.height;dn=2*Xt,yn=Ne.y-Xt,dn>lt&&!this._isInitialRender&&!this._growAfterOpen&&(yn=Ne.y-lt/2)}if("end"===ye.overlayX&&!sn||"start"===ye.overlayX&&sn)nn=Ot.width-Ne.x+this._viewportMargin,Jt=Ne.x-this._viewportMargin;else if("start"===ye.overlayX&&!sn||"end"===ye.overlayX&&sn)Zt=Ne.x,Jt=Ot.right-Ne.x;else{const Xt=Math.min(Ot.right-Ne.x+Ot.left,Ne.x),lt=this._lastBoundingBoxSize.width;Jt=2*Xt,Zt=Ne.x-Xt,Jt>lt&&!this._isInitialRender&&!this._growAfterOpen&&(Zt=Ne.x-lt/2)}return{top:yn,left:Zt,bottom:At,right:nn,width:Jt,height:dn}}_setBoundingBoxStyles(Ne,ye){const Ot=this._calculateBoundingBoxRect(Ne,ye);!this._isInitialRender&&!this._growAfterOpen&&(Ot.height=Math.min(Ot.height,this._lastBoundingBoxSize.height),Ot.width=Math.min(Ot.width,this._lastBoundingBoxSize.width));const sn={};if(this._hasExactPosition())sn.top=sn.left="0",sn.bottom=sn.right=sn.maxHeight=sn.maxWidth="",sn.width=sn.height="100%";else{const dn=this._overlayRef.getConfig().maxHeight,yn=this._overlayRef.getConfig().maxWidth;sn.height=(0,C.a1)(Ot.height),sn.top=(0,C.a1)(Ot.top),sn.bottom=(0,C.a1)(Ot.bottom),sn.width=(0,C.a1)(Ot.width),sn.left=(0,C.a1)(Ot.left),sn.right=(0,C.a1)(Ot.right),sn.alignItems="center"===ye.overlayX?"center":"end"===ye.overlayX?"flex-end":"flex-start",sn.justifyContent="center"===ye.overlayY?"center":"bottom"===ye.overlayY?"flex-end":"flex-start",dn&&(sn.maxHeight=(0,C.a1)(dn)),yn&&(sn.maxWidth=(0,C.a1)(yn))}this._lastBoundingBoxSize=Ot,Ke(this._boundingBox.style,sn)}_resetBoundingBoxStyles(){Ke(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Ke(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(Ne,ye){const Ot={},sn=this._hasExactPosition(),dn=this._hasFlexibleDimensions,yn=this._overlayRef.getConfig();if(sn){const Jt=this._viewportRuler.getViewportScrollPosition();Ke(Ot,this._getExactOverlayY(ye,Ne,Jt)),Ke(Ot,this._getExactOverlayX(ye,Ne,Jt))}else Ot.position="static";let At="",Vt=this._getOffset(ye,"x"),Qt=this._getOffset(ye,"y");Vt&&(At+=`translateX(${Vt}px) `),Qt&&(At+=`translateY(${Qt}px)`),Ot.transform=At.trim(),yn.maxHeight&&(sn?Ot.maxHeight=(0,C.a1)(yn.maxHeight):dn&&(Ot.maxHeight="")),yn.maxWidth&&(sn?Ot.maxWidth=(0,C.a1)(yn.maxWidth):dn&&(Ot.maxWidth="")),Ke(this._pane.style,Ot)}_getExactOverlayY(Ne,ye,Ot){let sn={top:"",bottom:""},dn=this._getOverlayPoint(ye,this._overlayRect,Ne);return this._isPushed&&(dn=this._pushOverlayOnScreen(dn,this._overlayRect,Ot)),"bottom"===Ne.overlayY?sn.bottom=this._document.documentElement.clientHeight-(dn.y+this._overlayRect.height)+"px":sn.top=(0,C.a1)(dn.y),sn}_getExactOverlayX(Ne,ye,Ot){let yn,sn={left:"",right:""},dn=this._getOverlayPoint(ye,this._overlayRect,Ne);return this._isPushed&&(dn=this._pushOverlayOnScreen(dn,this._overlayRect,Ot)),yn=this._isRtl()?"end"===Ne.overlayX?"left":"right":"end"===Ne.overlayX?"right":"left","right"===yn?sn.right=this._document.documentElement.clientWidth-(dn.x+this._overlayRect.width)+"px":sn.left=(0,C.a1)(dn.x),sn}_getScrollVisibility(){const Ne=this._getOriginRect(),ye=this._pane.getBoundingClientRect(),Ot=this._scrollables.map(sn=>sn.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:ae(Ne,Ot),isOriginOutsideView:Y(Ne,Ot),isOverlayClipped:ae(ye,Ot),isOverlayOutsideView:Y(ye,Ot)}}_subtractOverflows(Ne,...ye){return ye.reduce((Ot,sn)=>Ot-Math.max(sn,0),Ne)}_getNarrowedViewportRect(){const Ne=this._document.documentElement.clientWidth,ye=this._document.documentElement.clientHeight,Ot=this._viewportRuler.getViewportScrollPosition();return{top:Ot.top+this._viewportMargin,left:Ot.left+this._viewportMargin,right:Ot.left+Ne-this._viewportMargin,bottom:Ot.top+ye-this._viewportMargin,width:Ne-2*this._viewportMargin,height:ye-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(Ne,ye){return"x"===ye?null==Ne.offsetX?this._offsetX:Ne.offsetX:null==Ne.offsetY?this._offsetY:Ne.offsetY}_validatePositions(){}_addPanelClasses(Ne){this._pane&&(0,C.FG)(Ne).forEach(ye=>{""!==ye&&-1===this._appliedPanelClasses.indexOf(ye)&&(this._appliedPanelClasses.push(ye),this._pane.classList.add(ye))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(Ne=>{this._pane.classList.remove(Ne)}),this._appliedPanelClasses=[])}_getOriginRect(){const Ne=this._origin;if(Ne instanceof h.aKT)return Ne.nativeElement.getBoundingClientRect();if(Ne instanceof Element)return Ne.getBoundingClientRect();const ye=Ne.width||0,Ot=Ne.height||0;return{top:Ne.y,bottom:Ne.y+Ot,left:Ne.x,right:Ne.x+ye,height:Ot,width:ye}}}function Ke(fe,Ne){for(let ye in Ne)Ne.hasOwnProperty(ye)&&(fe[ye]=Ne[ye]);return fe}function Ve(fe){if("number"!=typeof fe&&null!=fe){const[Ne,ye]=fe.split(Je);return ye&&"px"!==ye?null:parseFloat(Ne)}return fe||null}function $e(fe){return{top:Math.floor(fe.top),right:Math.floor(fe.right),bottom:Math.floor(fe.bottom),left:Math.floor(fe.left),width:Math.floor(fe.width),height:Math.floor(fe.height)}}const J="cdk-global-overlay-wrapper";class vt{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(Ne){const ye=Ne.getConfig();this._overlayRef=Ne,this._width&&!ye.width&&Ne.updateSize({width:this._width}),this._height&&!ye.height&&Ne.updateSize({height:this._height}),Ne.hostElement.classList.add(J),this._isDisposed=!1}top(Ne=""){return this._bottomOffset="",this._topOffset=Ne,this._alignItems="flex-start",this}left(Ne=""){return this._xOffset=Ne,this._xPosition="left",this}bottom(Ne=""){return this._topOffset="",this._bottomOffset=Ne,this._alignItems="flex-end",this}right(Ne=""){return this._xOffset=Ne,this._xPosition="right",this}start(Ne=""){return this._xOffset=Ne,this._xPosition="start",this}end(Ne=""){return this._xOffset=Ne,this._xPosition="end",this}width(Ne=""){return this._overlayRef?this._overlayRef.updateSize({width:Ne}):this._width=Ne,this}height(Ne=""){return this._overlayRef?this._overlayRef.updateSize({height:Ne}):this._height=Ne,this}centerHorizontally(Ne=""){return this.left(Ne),this._xPosition="center",this}centerVertically(Ne=""){return this.top(Ne),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const Ne=this._overlayRef.overlayElement.style,ye=this._overlayRef.hostElement.style,Ot=this._overlayRef.getConfig(),{width:sn,height:dn,maxWidth:yn,maxHeight:At}=Ot,Vt=!("100%"!==sn&&"100vw"!==sn||yn&&"100%"!==yn&&"100vw"!==yn),Qt=!("100%"!==dn&&"100vh"!==dn||At&&"100%"!==At&&"100vh"!==At),Jt=this._xPosition,Zt=this._xOffset,nn="rtl"===this._overlayRef.getConfig().direction;let Xt="",lt="",Ue="";Vt?Ue="flex-start":"center"===Jt?(Ue="center",nn?lt=Zt:Xt=Zt):nn?"left"===Jt||"end"===Jt?(Ue="flex-end",Xt=Zt):("right"===Jt||"start"===Jt)&&(Ue="flex-start",lt=Zt):"left"===Jt||"start"===Jt?(Ue="flex-start",Xt=Zt):("right"===Jt||"end"===Jt)&&(Ue="flex-end",lt=Zt),Ne.position=this._cssPosition,Ne.marginLeft=Vt?"0":Xt,Ne.marginTop=Qt?"0":this._topOffset,Ne.marginBottom=this._bottomOffset,Ne.marginRight=Vt?"0":lt,ye.justifyContent=Ue,ye.alignItems=Qt?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const Ne=this._overlayRef.overlayElement.style,ye=this._overlayRef.hostElement,Ot=ye.style;ye.classList.remove(J),Ot.justifyContent=Ot.alignItems=Ne.marginTop=Ne.marginBottom=Ne.marginLeft=Ne.marginRight=Ne.position="",this._overlayRef=null,this._isDisposed=!0}}let ve=(()=>{class fe{constructor(ye,Ot,sn,dn){this._viewportRuler=ye,this._document=Ot,this._platform=sn,this._overlayContainer=dn}global(){return new vt}flexibleConnectedTo(ye){return new ze(ye,this._viewportRuler,this._document,this._platform,this._overlayContainer)}static{this.\u0275fac=function(Ot){return new(Ot||fe)(h.KVO(i.Xj),h.KVO(n.qQ),h.KVO(S.OD),h.KVO(ct))}}static{this.\u0275prov=h.jDH({token:fe,factory:fe.\u0275fac,providedIn:"root"})}}return fe})(),ue=0,et=(()=>{class fe{constructor(ye,Ot,sn,dn,yn,At,Vt,Qt,Jt,Zt,nn,Xt){this.scrollStrategies=ye,this._overlayContainer=Ot,this._componentFactoryResolver=sn,this._positionBuilder=dn,this._keyboardDispatcher=yn,this._injector=At,this._ngZone=Vt,this._document=Qt,this._directionality=Jt,this._location=Zt,this._outsideClickDispatcher=nn,this._animationsModuleType=Xt}create(ye){const Ot=this._createHostElement(),sn=this._createPaneElement(Ot),dn=this._createPortalOutlet(sn),yn=new X(ye);return yn.direction=yn.direction||this._directionality.value,new Ge(dn,Ot,sn,yn,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(ye){const Ot=this._document.createElement("div");return Ot.id="cdk-overlay-"+ue++,Ot.classList.add("cdk-overlay-pane"),ye.appendChild(Ot),Ot}_createHostElement(){const ye=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(ye),ye}_createPortalOutlet(ye){return this._appRef||(this._appRef=this._injector.get(h.o8S)),new m.aI(ye,this._componentFactoryResolver,this._appRef,this._injector,this._document)}static{this.\u0275fac=function(Ot){return new(Ot||fe)(h.KVO(k),h.KVO(ct),h.KVO(h.OM3),h.KVO(ve),h.KVO(Fe),h.KVO(h.zZn),h.KVO(h.SKi),h.KVO(n.qQ),h.KVO(g.dS),h.KVO(n.aZ),h.KVO(Qe),h.KVO(h.bc$,8))}}static{this.\u0275prov=h.jDH({token:fe,factory:fe.\u0275fac,providedIn:"root"})}}return fe})();const se=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],Ce=new h.nKC("cdk-connected-overlay-scroll-strategy");let be=(()=>{class fe{constructor(ye){this.elementRef=ye}static{this.\u0275fac=function(Ot){return new(Ot||fe)(h.rXU(h.aKT))}}static{this.\u0275dir=h.FsC({type:fe,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"],standalone:!0})}}return fe})(),rt=(()=>{class fe{get offsetX(){return this._offsetX}set offsetX(ye){this._offsetX=ye,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(ye){this._offsetY=ye,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(ye){this._hasBackdrop=(0,C.he)(ye)}get lockPosition(){return this._lockPosition}set lockPosition(ye){this._lockPosition=(0,C.he)(ye)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(ye){this._flexibleDimensions=(0,C.he)(ye)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(ye){this._growAfterOpen=(0,C.he)(ye)}get push(){return this._push}set push(ye){this._push=(0,C.he)(ye)}constructor(ye,Ot,sn,dn,yn){this._overlay=ye,this._dir=yn,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=r.y.EMPTY,this._attachSubscription=r.y.EMPTY,this._detachSubscription=r.y.EMPTY,this._positionSubscription=r.y.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new h.bkB,this.positionChange=new h.bkB,this.attach=new h.bkB,this.detach=new h.bkB,this.overlayKeydown=new h.bkB,this.overlayOutsideClick=new h.bkB,this._templatePortal=new m.VA(Ot,sn),this._scrollStrategyFactory=dn,this.scrollStrategy=this._scrollStrategyFactory()}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(ye){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),ye.origin&&this.open&&this._position.apply()),ye.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=se);const ye=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=ye.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=ye.detachments().subscribe(()=>this.detach.emit()),ye.keydownEvents().subscribe(Ot=>{this.overlayKeydown.next(Ot),Ot.keyCode===v._f&&!this.disableClose&&!(0,v.rp)(Ot)&&(Ot.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(Ot=>{this.overlayOutsideClick.next(Ot)})}_buildConfig(){const ye=this._position=this.positionStrategy||this._createPositionStrategy(),Ot=new X({direction:this._dir,positionStrategy:ye,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(Ot.width=this.width),(this.height||0===this.height)&&(Ot.height=this.height),(this.minWidth||0===this.minWidth)&&(Ot.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(Ot.minHeight=this.minHeight),this.backdropClass&&(Ot.backdropClass=this.backdropClass),this.panelClass&&(Ot.panelClass=this.panelClass),Ot}_updatePositionStrategy(ye){const Ot=this.positions.map(sn=>({originX:sn.originX,originY:sn.originY,overlayX:sn.overlayX,overlayY:sn.overlayY,offsetX:sn.offsetX||this.offsetX,offsetY:sn.offsetY||this.offsetY,panelClass:sn.panelClass||void 0}));return ye.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(Ot).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const ye=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(ye),ye}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof be?this.origin.elementRef:this.origin}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(ye=>{this.backdropClick.emit(ye)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe((0,A.v)(()=>this.positionChange.observers.length>0)).subscribe(ye=>{this.positionChange.emit(ye),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}static{this.\u0275fac=function(Ot){return new(Ot||fe)(h.rXU(et),h.rXU(h.C4Q),h.rXU(h.c1b),h.rXU(Ce),h.rXU(g.dS,8))}}static{this.\u0275dir=h.FsC({type:fe,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:[h.Mj6.None,"cdkConnectedOverlayOrigin","origin"],positions:[h.Mj6.None,"cdkConnectedOverlayPositions","positions"],positionStrategy:[h.Mj6.None,"cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:[h.Mj6.None,"cdkConnectedOverlayOffsetX","offsetX"],offsetY:[h.Mj6.None,"cdkConnectedOverlayOffsetY","offsetY"],width:[h.Mj6.None,"cdkConnectedOverlayWidth","width"],height:[h.Mj6.None,"cdkConnectedOverlayHeight","height"],minWidth:[h.Mj6.None,"cdkConnectedOverlayMinWidth","minWidth"],minHeight:[h.Mj6.None,"cdkConnectedOverlayMinHeight","minHeight"],backdropClass:[h.Mj6.None,"cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:[h.Mj6.None,"cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:[h.Mj6.None,"cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:[h.Mj6.None,"cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:[h.Mj6.None,"cdkConnectedOverlayOpen","open"],disableClose:[h.Mj6.None,"cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:[h.Mj6.None,"cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:[h.Mj6.None,"cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:[h.Mj6.None,"cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:[h.Mj6.None,"cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:[h.Mj6.None,"cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:[h.Mj6.None,"cdkConnectedOverlayPush","push"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],standalone:!0,features:[h.OA$]})}}return fe})();const le={provide:Ce,deps:[et],useFactory:function me(fe){return()=>fe.scrollStrategies.reposition()}};let Xe=(()=>{class fe{static{this.\u0275fac=function(Ot){return new(Ot||fe)}}static{this.\u0275mod=h.$C({type:fe})}static{this.\u0275inj=h.G2t({providers:[et,le],imports:[g.jI,m.jc,i.E9,i.E9]})}}return fe})()},72653:(St,z,s)=>{"use strict";s.d(z,{BD:()=>v,BQ:()=>m,CZ:()=>u,Fb:()=>U,KT:()=>R,MU:()=>x,OD:()=>C,v8:()=>Y,vc:()=>B});var i=s(58527),n=s(61142);let h;try{h=typeof Intl<"u"&&Intl.v8BreakIterator}catch{h=!1}let M,C=(()=>{class ae{constructor(k){this._platformId=k,this.isBrowser=this._platformId?(0,n.UE)(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!h)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}static{this.\u0275fac=function(X){return new(X||ae)(i.KVO(i.Agw))}}static{this.\u0275prov=i.jDH({token:ae,factory:ae.\u0275fac,providedIn:"root"})}}return ae})();const P=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function x(){if(M)return M;if("object"!=typeof document||!document)return M=new Set(P),M;let ae=document.createElement("input");return M=new Set(P.filter(G=>(ae.setAttribute("type",G),ae.type===G))),M}let A,l,r,E;function m(ae){return function g(){if(null==A&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>A=!0}))}finally{A=A||!1}return A}()?ae:!!ae.capture}function u(){if(null==r){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return r=!1,r;if("scrollBehavior"in document.documentElement.style)r=!0;else{const ae=Element.prototype.scrollTo;r=!!ae&&!/\{\s*\[native code\]\s*\}/.test(ae.toString())}}return r}function v(){if("object"!=typeof document||!document)return 0;if(null==l){const ae=document.createElement("div"),G=ae.style;ae.dir="rtl",G.width="100px",G.overflow="auto",G.visibility="hidden",G.pointerEvents="none",G.position="absolute";const k=document.createElement("div"),X=k.style;X.width="200px",X.height="1px",ae.appendChild(k),document.body.appendChild(ae),l=0,0===ae.scrollLeft&&(ae.scrollLeft=1,l=0===ae.scrollLeft?1:2),ae.remove()}return l}function R(ae){if(function T(){if(null==E){const ae=typeof document<"u"?document.head:null;E=!(!ae||!ae.createShadowRoot&&!ae.attachShadow)}return E}()){const G=ae.getRootNode?ae.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&G instanceof ShadowRoot)return G}return null}function B(){let ae=typeof document<"u"&&document?document.activeElement:null;for(;ae&&ae.shadowRoot;){const G=ae.shadowRoot.activeElement;if(G===ae)break;ae=G}return ae}function U(ae){return ae.composedPath?ae.composedPath()[0]:ae.target}function Y(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}},76614:(St,z,s)=>{"use strict";s.d(z,{A8:()=>g,I3:()=>B,VA:()=>m,aI:()=>v,bV:()=>T,jc:()=>Y,lb:()=>r});var i=s(58527),n=s(61142);class A{attach(k){return this._attachedHost=k,k.attach(this)}detach(){let k=this._attachedHost;null!=k&&(this._attachedHost=null,k.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(k){this._attachedHost=k}}class g extends A{constructor(k,X,q,Q,ce){super(),this.component=k,this.viewContainerRef=X,this.injector=q,this.componentFactoryResolver=Q,this.projectableNodes=ce}}class m extends A{constructor(k,X,q,Q){super(),this.templateRef=k,this.viewContainerRef=X,this.context=q,this.injector=Q}get origin(){return this.templateRef.elementRef}attach(k,X=this.context){return this.context=X,super.attach(k)}detach(){return this.context=void 0,super.detach()}}class l extends A{constructor(k){super(),this.element=k instanceof i.aKT?k.nativeElement:k}}class r{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(k){return k instanceof g?(this._attachedPortal=k,this.attachComponentPortal(k)):k instanceof m?(this._attachedPortal=k,this.attachTemplatePortal(k)):this.attachDomPortal&&k instanceof l?(this._attachedPortal=k,this.attachDomPortal(k)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(k){this._disposeFn=k}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class v extends r{constructor(k,X,q,Q,ce){super(),this.outletElement=k,this._componentFactoryResolver=X,this._appRef=q,this._defaultInjector=Q,this.attachDomPortal=te=>{const Ee=te.element,it=this._document.createComment("dom-portal");Ee.parentNode.insertBefore(it,Ee),this.outletElement.appendChild(Ee),this._attachedPortal=te,super.setDisposeFn(()=>{it.parentNode&&it.parentNode.replaceChild(Ee,it)})},this._document=ce}attachComponentPortal(k){const q=(k.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(k.component);let Q;return k.viewContainerRef?(Q=k.viewContainerRef.createComponent(q,k.viewContainerRef.length,k.injector||k.viewContainerRef.injector,k.projectableNodes||void 0),this.setDisposeFn(()=>Q.destroy())):(Q=q.create(k.injector||this._defaultInjector||i.zZn.NULL),this._appRef.attachView(Q.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(Q.hostView),Q.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(Q)),this._attachedPortal=k,Q}attachTemplatePortal(k){let X=k.viewContainerRef,q=X.createEmbeddedView(k.templateRef,k.context,{injector:k.injector});return q.rootNodes.forEach(Q=>this.outletElement.appendChild(Q)),q.detectChanges(),this.setDisposeFn(()=>{let Q=X.indexOf(q);-1!==Q&&X.remove(Q)}),this._attachedPortal=k,q}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(k){return k.hostView.rootNodes[0]}}let T=(()=>{class G extends m{constructor(X,q){super(X,q)}static{this.\u0275fac=function(q){return new(q||G)(i.rXU(i.C4Q),i.rXU(i.c1b))}}static{this.\u0275dir=i.FsC({type:G,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[i.Vt3]})}}return G})(),B=(()=>{class G extends r{constructor(X,q,Q){super(),this._componentFactoryResolver=X,this._viewContainerRef=q,this._isInitialized=!1,this.attached=new i.bkB,this.attachDomPortal=ce=>{const te=ce.element,Ee=this._document.createComment("dom-portal");ce.setAttachedHost(this),te.parentNode.insertBefore(Ee,te),this._getRootNode().appendChild(te),this._attachedPortal=ce,super.setDisposeFn(()=>{Ee.parentNode&&Ee.parentNode.replaceChild(te,Ee)})},this._document=Q}get portal(){return this._attachedPortal}set portal(X){this.hasAttached()&&!X&&!this._isInitialized||(this.hasAttached()&&super.detach(),X&&super.attach(X),this._attachedPortal=X||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(X){X.setAttachedHost(this);const q=null!=X.viewContainerRef?X.viewContainerRef:this._viewContainerRef,ce=(X.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(X.component),te=q.createComponent(ce,q.length,X.injector||q.injector,X.projectableNodes||void 0);return q!==this._viewContainerRef&&this._getRootNode().appendChild(te.hostView.rootNodes[0]),super.setDisposeFn(()=>te.destroy()),this._attachedPortal=X,this._attachedRef=te,this.attached.emit(te),te}attachTemplatePortal(X){X.setAttachedHost(this);const q=this._viewContainerRef.createEmbeddedView(X.templateRef,X.context,{injector:X.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=X,this._attachedRef=q,this.attached.emit(q),q}_getRootNode(){const X=this._viewContainerRef.element.nativeElement;return X.nodeType===X.ELEMENT_NODE?X:X.parentNode}static{this.\u0275fac=function(q){return new(q||G)(i.rXU(i.OM3),i.rXU(i.c1b),i.rXU(n.qQ))}}static{this.\u0275dir=i.FsC({type:G,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[i.Mj6.None,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[i.Vt3]})}}return G})(),Y=(()=>{class G{static{this.\u0275fac=function(q){return new(q||G)}}static{this.\u0275mod=i.$C({type:G})}static{this.\u0275inj=i.G2t({})}}return G})()},64409:(St,z,s)=>{"use strict";s.d(z,{E$:()=>Ke,E9:()=>Pe,Gj:()=>dt,Mr:()=>k,R:()=>te,Xj:()=>Fe,d6:()=>Je});var i=s(6364),n=s(58527),h=s(80583),C=s(43848),S=s(17053),M=s(36877),P=s(27594),x=s(62366),A=s(10399),g=s(39595),m=s(76259),l=s(8619),r=s(4208),u=s(34593),v=s(14749),E=s(72147),T=s(55833),R=s(72653),B=s(61142),U=s(51394),Y=s(40567);const ae=["contentWrapper"],G=["*"],k=new n.nKC("VIRTUAL_SCROLL_STRATEGY");let te=(()=>{class J{constructor(ve,ue,et){this._ngZone=ve,this._platform=ue,this._scrolled=new h.B7,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=et}register(ve){this.scrollContainers.has(ve)||this.scrollContainers.set(ve,ve.elementScrolled().subscribe(()=>this._scrolled.next(ve)))}deregister(ve){const ue=this.scrollContainers.get(ve);ue&&(ue.unsubscribe(),this.scrollContainers.delete(ve))}scrolled(ve=20){return this._platform.isBrowser?new S.c(ue=>{this._globalSubscription||this._addGlobalListener();const et=ve>0?this._scrolled.pipe((0,m.Z)(ve)).subscribe(ue):this._scrolled.subscribe(ue);return this._scrolledCount++,()=>{et.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,C.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((ve,ue)=>this.deregister(ue)),this._scrolled.complete()}ancestorScrolled(ve,ue){const et=this.getAncestorScrollContainers(ve);return this.scrolled(ue).pipe((0,l.p)(se=>!se||et.indexOf(se)>-1))}getAncestorScrollContainers(ve){const ue=[];return this.scrollContainers.forEach((et,se)=>{this._scrollableContainsElement(se,ve)&&ue.push(se)}),ue}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(ve,ue){let et=(0,i.i8)(ue),se=ve.getElementRef().nativeElement;do{if(et==se)return!0}while(et=et.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const ve=this._getWindow();return(0,M.R)(ve.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}static{this.\u0275fac=function(ue){return new(ue||J)(n.KVO(n.SKi),n.KVO(R.OD),n.KVO(B.qQ,8))}}static{this.\u0275prov=n.jDH({token:J,factory:J.\u0275fac,providedIn:"root"})}}return J})(),Ee=(()=>{class J{constructor(ve,ue,et,se){this.elementRef=ve,this.scrollDispatcher=ue,this.ngZone=et,this.dir=se,this._destroyed=new h.B7,this._elementScrolled=new S.c(Ce=>this.ngZone.runOutsideAngular(()=>(0,M.R)(this.elementRef.nativeElement,"scroll").pipe((0,r.Q)(this._destroyed)).subscribe(Ce)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(ve){const ue=this.elementRef.nativeElement,et=this.dir&&"rtl"==this.dir.value;null==ve.left&&(ve.left=et?ve.end:ve.start),null==ve.right&&(ve.right=et?ve.start:ve.end),null!=ve.bottom&&(ve.top=ue.scrollHeight-ue.clientHeight-ve.bottom),et&&0!=(0,R.BD)()?(null!=ve.left&&(ve.right=ue.scrollWidth-ue.clientWidth-ve.left),2==(0,R.BD)()?ve.left=ve.right:1==(0,R.BD)()&&(ve.left=ve.right?-ve.right:ve.right)):null!=ve.right&&(ve.left=ue.scrollWidth-ue.clientWidth-ve.right),this._applyScrollToOptions(ve)}_applyScrollToOptions(ve){const ue=this.elementRef.nativeElement;(0,R.CZ)()?ue.scrollTo(ve):(null!=ve.top&&(ue.scrollTop=ve.top),null!=ve.left&&(ue.scrollLeft=ve.left))}measureScrollOffset(ve){const ue="left",se=this.elementRef.nativeElement;if("top"==ve)return se.scrollTop;if("bottom"==ve)return se.scrollHeight-se.clientHeight-se.scrollTop;const Ce=this.dir&&"rtl"==this.dir.value;return"start"==ve?ve=Ce?"right":ue:"end"==ve&&(ve=Ce?ue:"right"),Ce&&2==(0,R.BD)()?ve==ue?se.scrollWidth-se.clientWidth-se.scrollLeft:se.scrollLeft:Ce&&1==(0,R.BD)()?ve==ue?se.scrollLeft+se.scrollWidth-se.clientWidth:-se.scrollLeft:ve==ue?se.scrollLeft:se.scrollWidth-se.clientWidth-se.scrollLeft}static{this.\u0275fac=function(ue){return new(ue||J)(n.rXU(n.aKT),n.rXU(te),n.rXU(n.SKi),n.rXU(U.dS,8))}}static{this.\u0275dir=n.FsC({type:J,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]],standalone:!0})}}return J})(),Fe=(()=>{class J{constructor(ve,ue,et){this._platform=ve,this._change=new h.B7,this._changeListener=se=>{this._change.next(se)},this._document=et,ue.runOutsideAngular(()=>{if(ve.isBrowser){const se=this._getWindow();se.addEventListener("resize",this._changeListener),se.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const ve=this._getWindow();ve.removeEventListener("resize",this._changeListener),ve.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const ve={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),ve}getViewportRect(){const ve=this.getViewportScrollPosition(),{width:ue,height:et}=this.getViewportSize();return{top:ve.top,left:ve.left,bottom:ve.top+et,right:ve.left+ue,height:et,width:ue}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const ve=this._document,ue=this._getWindow(),et=ve.documentElement,se=et.getBoundingClientRect();return{top:-se.top||ve.body.scrollTop||ue.scrollY||et.scrollTop||0,left:-se.left||ve.body.scrollLeft||ue.scrollX||et.scrollLeft||0}}change(ve=20){return ve>0?this._change.pipe((0,m.Z)(ve)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const ve=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:ve.innerWidth,height:ve.innerHeight}:{width:0,height:0}}static{this.\u0275fac=function(ue){return new(ue||J)(n.KVO(R.OD),n.KVO(n.SKi),n.KVO(B.qQ,8))}}static{this.\u0275prov=n.jDH({token:J,factory:J.\u0275fac,providedIn:"root"})}}return J})();const Qe=new n.nKC("VIRTUAL_SCROLLABLE");let ct=(()=>{class J extends Ee{constructor(ve,ue,et,se){super(ve,ue,et,se)}measureViewportSize(ve){const ue=this.elementRef.nativeElement;return"horizontal"===ve?ue.clientWidth:ue.clientHeight}static{this.\u0275fac=function(ue){return new(ue||J)(n.rXU(n.aKT),n.rXU(te),n.rXU(n.SKi),n.rXU(U.dS,8))}}static{this.\u0275dir=n.FsC({type:J,features:[n.Vt3]})}}return J})();const nt=typeof requestAnimationFrame<"u"?P.X:x.$;let Je=(()=>{class J extends ct{get orientation(){return this._orientation}set orientation(ve){this._orientation!==ve&&(this._orientation=ve,this._calculateSpacerSize())}get appendOnly(){return this._appendOnly}set appendOnly(ve){this._appendOnly=(0,i.he)(ve)}constructor(ve,ue,et,se,Ce,be,rt,me){super(ve,be,et,Ce),this.elementRef=ve,this._changeDetectorRef=ue,this._scrollStrategy=se,this.scrollable=me,this._platform=(0,n.WQX)(R.OD),this._detachedSubject=new h.B7,this._renderedRangeSubject=new h.B7,this._orientation="vertical",this._appendOnly=!1,this.scrolledIndexChange=new S.c(le=>this._scrollStrategy.scrolledIndexChange.subscribe(Xe=>Promise.resolve().then(()=>this.ngZone.run(()=>le.next(Xe))))),this.renderedRangeStream=this._renderedRangeSubject,this._totalContentSize=0,this._totalContentWidth="",this._totalContentHeight="",this._renderedRange={start:0,end:0},this._dataLength=0,this._viewportSize=0,this._renderedContentOffset=0,this._renderedContentOffsetNeedsRewrite=!1,this._isChangeDetectionPending=!1,this._runAfterChangeDetection=[],this._viewportChanges=A.y.EMPTY,this._viewportChanges=rt.change().subscribe(()=>{this.checkViewportSize()}),this.scrollable||(this.elementRef.nativeElement.classList.add("cdk-virtual-scrollable"),this.scrollable=this)}ngOnInit(){this._platform.isBrowser&&(this.scrollable===this&&super.ngOnInit(),this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._measureViewportSize(),this._scrollStrategy.attach(this),this.scrollable.elementScrolled().pipe((0,u.Z)(null),(0,m.Z)(0,nt),(0,r.Q)(this._destroyed)).subscribe(()=>this._scrollStrategy.onContentScrolled()),this._markChangeDetectionNeeded()})))}ngOnDestroy(){this.detach(),this._scrollStrategy.detach(),this._renderedRangeSubject.complete(),this._detachedSubject.complete(),this._viewportChanges.unsubscribe(),super.ngOnDestroy()}attach(ve){this.ngZone.runOutsideAngular(()=>{this._forOf=ve,this._forOf.dataStream.pipe((0,r.Q)(this._detachedSubject)).subscribe(ue=>{const et=ue.length;et!==this._dataLength&&(this._dataLength=et,this._scrollStrategy.onDataLengthChanged()),this._doChangeDetection()})})}detach(){this._forOf=null,this._detachedSubject.next()}getDataLength(){return this._dataLength}getViewportSize(){return this._viewportSize}getRenderedRange(){return this._renderedRange}measureBoundingClientRectWithScrollOffset(ve){return this.getElementRef().nativeElement.getBoundingClientRect()[ve]}setTotalContentSize(ve){this._totalContentSize!==ve&&(this._totalContentSize=ve,this._calculateSpacerSize(),this._markChangeDetectionNeeded())}setRenderedRange(ve){(function Ge(J,vt){return J.start==vt.start&&J.end==vt.end})(this._renderedRange,ve)||(this.appendOnly&&(ve={start:0,end:Math.max(this._renderedRange.end,ve.end)}),this._renderedRangeSubject.next(this._renderedRange=ve),this._markChangeDetectionNeeded(()=>this._scrollStrategy.onContentRendered()))}getOffsetToRenderedContentStart(){return this._renderedContentOffsetNeedsRewrite?null:this._renderedContentOffset}setRenderedContentOffset(ve,ue="to-start"){ve=this.appendOnly&&"to-start"===ue?0:ve;const se="horizontal"==this.orientation,Ce=se?"X":"Y";let rt=`translate${Ce}(${Number((se&&this.dir&&"rtl"==this.dir.value?-1:1)*ve)}px)`;this._renderedContentOffset=ve,"to-end"===ue&&(rt+=` translate${Ce}(-100%)`,this._renderedContentOffsetNeedsRewrite=!0),this._renderedContentTransform!=rt&&(this._renderedContentTransform=rt,this._markChangeDetectionNeeded(()=>{this._renderedContentOffsetNeedsRewrite?(this._renderedContentOffset-=this.measureRenderedContentSize(),this._renderedContentOffsetNeedsRewrite=!1,this.setRenderedContentOffset(this._renderedContentOffset)):this._scrollStrategy.onRenderedOffsetChanged()}))}scrollToOffset(ve,ue="auto"){const et={behavior:ue};"horizontal"===this.orientation?et.start=ve:et.top=ve,this.scrollable.scrollTo(et)}scrollToIndex(ve,ue="auto"){this._scrollStrategy.scrollToIndex(ve,ue)}measureScrollOffset(ve){let ue;return ue=this.scrollable==this?et=>super.measureScrollOffset(et):et=>this.scrollable.measureScrollOffset(et),Math.max(0,ue(ve??("horizontal"===this.orientation?"start":"top"))-this.measureViewportOffset())}measureViewportOffset(ve){let ue;const Ce="rtl"==this.dir?.value;ue="start"==ve?Ce?"right":"left":"end"==ve?Ce?"left":"right":ve||("horizontal"===this.orientation?"left":"top");const be=this.scrollable.measureBoundingClientRectWithScrollOffset(ue);return this.elementRef.nativeElement.getBoundingClientRect()[ue]-be}measureRenderedContentSize(){const ve=this._contentWrapper.nativeElement;return"horizontal"===this.orientation?ve.offsetWidth:ve.offsetHeight}measureRangeSize(ve){return this._forOf?this._forOf.measureRangeSize(ve,this.orientation):0}checkViewportSize(){this._measureViewportSize(),this._scrollStrategy.onDataLengthChanged()}_measureViewportSize(){this._viewportSize=this.scrollable.measureViewportSize(this.orientation)}_markChangeDetectionNeeded(ve){ve&&this._runAfterChangeDetection.push(ve),this._isChangeDetectionPending||(this._isChangeDetectionPending=!0,this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._doChangeDetection()})))}_doChangeDetection(){this._isChangeDetectionPending=!1,this._contentWrapper.nativeElement.style.transform=this._renderedContentTransform,this.ngZone.run(()=>this._changeDetectorRef.markForCheck());const ve=this._runAfterChangeDetection;this._runAfterChangeDetection=[];for(const ue of ve)ue()}_calculateSpacerSize(){this._totalContentHeight="horizontal"===this.orientation?"":`${this._totalContentSize}px`,this._totalContentWidth="horizontal"===this.orientation?`${this._totalContentSize}px`:""}static{this.\u0275fac=function(ue){return new(ue||J)(n.rXU(n.aKT),n.rXU(n.gRc),n.rXU(n.SKi),n.rXU(k,8),n.rXU(U.dS,8),n.rXU(te),n.rXU(Fe),n.rXU(Qe,8))}}static{this.\u0275cmp=n.VBU({type:J,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(ue,et){if(1&ue&&n.GBs(ae,7),2&ue){let se;n.mGM(se=n.lsd())&&(et._contentWrapper=se.first)}},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(ue,et){2&ue&&n.AVh("cdk-virtual-scroll-orientation-horizontal","horizontal"===et.orientation)("cdk-virtual-scroll-orientation-vertical","horizontal"!==et.orientation)},inputs:{orientation:"orientation",appendOnly:"appendOnly"},outputs:{scrolledIndexChange:"scrolledIndexChange"},standalone:!0,features:[n.Jv_([{provide:Ee,useFactory:(ve,ue)=>ve||ue,deps:[[new n.Xx1,new n.y_5(Qe)],J]}]),n.Vt3,n.aNF],ngContentSelectors:G,decls:4,vars:4,consts:[["contentWrapper",""],[1,"cdk-virtual-scroll-content-wrapper"],[1,"cdk-virtual-scroll-spacer"]],template:function(ue,et){1&ue&&(n.NAR(),n.j41(0,"div",1,0),n.SdG(2),n.k0s(),n.nrm(3,"div",2)),2&ue&&(n.R7$(3),n.xc7("width",et._totalContentWidth)("height",et._totalContentHeight))},styles:["cdk-virtual-scroll-viewport{display:block;position:relative;transform:translateZ(0)}.cdk-virtual-scrollable{overflow:auto;will-change:scroll-position;contain:strict;-webkit-overflow-scrolling:touch}.cdk-virtual-scroll-content-wrapper{position:absolute;top:0;left:0;contain:content}[dir=rtl] .cdk-virtual-scroll-content-wrapper{right:0;left:auto}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper{min-height:100%}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-left:0;padding-right:0;margin-left:0;margin-right:0;border-left-width:0;border-right-width:0;outline:none}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper{min-width:100%}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;border-top-width:0;border-bottom-width:0;outline:none}.cdk-virtual-scroll-spacer{height:1px;transform-origin:0 0;flex:0 0 auto}[dir=rtl] .cdk-virtual-scroll-spacer{transform-origin:100% 0}"],encapsulation:2,changeDetection:0})}}return J})();function ze(J,vt,ve){if(!ve.getBoundingClientRect)return 0;const et=ve.getBoundingClientRect();return"horizontal"===J?"start"===vt?et.left:et.right:"start"===vt?et.top:et.bottom}let Ke=(()=>{class J{get cdkVirtualForOf(){return this._cdkVirtualForOf}set cdkVirtualForOf(ve){this._cdkVirtualForOf=ve,(0,Y.y4)(ve)?this._dataSourceChanges.next(ve):this._dataSourceChanges.next(new Y.hx((0,g.A)(ve)?ve:Array.from(ve||[])))}get cdkVirtualForTrackBy(){return this._cdkVirtualForTrackBy}set cdkVirtualForTrackBy(ve){this._needsUpdate=!0,this._cdkVirtualForTrackBy=ve?(ue,et)=>ve(ue+(this._renderedRange?this._renderedRange.start:0),et):void 0}set cdkVirtualForTemplate(ve){ve&&(this._needsUpdate=!0,this._template=ve)}get cdkVirtualForTemplateCacheSize(){return this._viewRepeater.viewCacheSize}set cdkVirtualForTemplateCacheSize(ve){this._viewRepeater.viewCacheSize=(0,i.OE)(ve)}constructor(ve,ue,et,se,Ce,be){this._viewContainerRef=ve,this._template=ue,this._differs=et,this._viewRepeater=se,this._viewport=Ce,this.viewChange=new h.B7,this._dataSourceChanges=new h.B7,this.dataStream=this._dataSourceChanges.pipe((0,u.Z)(null),(0,v.J)(),(0,E.n)(([rt,me])=>this._changeDataSource(rt,me)),(0,T.t)(1)),this._differ=null,this._needsUpdate=!1,this._destroyed=new h.B7,this.dataStream.subscribe(rt=>{this._data=rt,this._onRenderedDataChange()}),this._viewport.renderedRangeStream.pipe((0,r.Q)(this._destroyed)).subscribe(rt=>{this._renderedRange=rt,this.viewChange.observers.length&&be.run(()=>this.viewChange.next(this._renderedRange)),this._onRenderedDataChange()}),this._viewport.attach(this)}measureRangeSize(ve,ue){if(ve.start>=ve.end)return 0;const et=ve.start-this._renderedRange.start,se=ve.end-ve.start;let Ce,be;for(let rt=0;rt<se;rt++){const me=this._viewContainerRef.get(rt+et);if(me&&me.rootNodes.length){Ce=be=me.rootNodes[0];break}}for(let rt=se-1;rt>-1;rt--){const me=this._viewContainerRef.get(rt+et);if(me&&me.rootNodes.length){be=me.rootNodes[me.rootNodes.length-1];break}}return Ce&&be?ze(ue,"end",be)-ze(ue,"start",Ce):0}ngDoCheck(){if(this._differ&&this._needsUpdate){const ve=this._differ.diff(this._renderedItems);ve?this._applyChanges(ve):this._updateContext(),this._needsUpdate=!1}}ngOnDestroy(){this._viewport.detach(),this._dataSourceChanges.next(void 0),this._dataSourceChanges.complete(),this.viewChange.complete(),this._destroyed.next(),this._destroyed.complete(),this._viewRepeater.detach()}_onRenderedDataChange(){this._renderedRange&&(this._renderedItems=this._data.slice(this._renderedRange.start,this._renderedRange.end),this._differ||(this._differ=this._differs.find(this._renderedItems).create((ve,ue)=>this.cdkVirtualForTrackBy?this.cdkVirtualForTrackBy(ve,ue):ue)),this._needsUpdate=!0)}_changeDataSource(ve,ue){return ve&&ve.disconnect(this),this._needsUpdate=!0,ue?ue.connect(this):(0,C.of)()}_updateContext(){const ve=this._data.length;let ue=this._viewContainerRef.length;for(;ue--;){const et=this._viewContainerRef.get(ue);et.context.index=this._renderedRange.start+ue,et.context.count=ve,this._updateComputedContextProperties(et.context),et.detectChanges()}}_applyChanges(ve){this._viewRepeater.applyChanges(ve,this._viewContainerRef,(se,Ce,be)=>this._getEmbeddedViewArgs(se,be),se=>se.item),ve.forEachIdentityChange(se=>{this._viewContainerRef.get(se.currentIndex).context.$implicit=se.item});const ue=this._data.length;let et=this._viewContainerRef.length;for(;et--;){const se=this._viewContainerRef.get(et);se.context.index=this._renderedRange.start+et,se.context.count=ue,this._updateComputedContextProperties(se.context)}}_updateComputedContextProperties(ve){ve.first=0===ve.index,ve.last=ve.index===ve.count-1,ve.even=ve.index%2==0,ve.odd=!ve.even}_getEmbeddedViewArgs(ve,ue){return{templateRef:this._template,context:{$implicit:ve.item,cdkVirtualForOf:this._cdkVirtualForOf,index:-1,count:-1,first:!1,last:!1,odd:!1,even:!1},index:ue}}static{this.\u0275fac=function(ue){return new(ue||J)(n.rXU(n.c1b),n.rXU(n.C4Q),n.rXU(n._q3),n.rXU(Y.sL),n.rXU(Je,4),n.rXU(n.SKi))}}static{this.\u0275dir=n.FsC({type:J,selectors:[["","cdkVirtualFor","","cdkVirtualForOf",""]],inputs:{cdkVirtualForOf:"cdkVirtualForOf",cdkVirtualForTrackBy:"cdkVirtualForTrackBy",cdkVirtualForTemplate:"cdkVirtualForTemplate",cdkVirtualForTemplateCacheSize:"cdkVirtualForTemplateCacheSize"},standalone:!0,features:[n.Jv_([{provide:Y.sL,useClass:Y.DQ}])]})}}return J})(),dt=(()=>{class J{static{this.\u0275fac=function(ue){return new(ue||J)}}static{this.\u0275mod=n.$C({type:J})}static{this.\u0275inj=n.G2t({})}}return J})(),Pe=(()=>{class J{static{this.\u0275fac=function(ue){return new(ue||J)}}static{this.\u0275mod=n.$C({type:J})}static{this.\u0275inj=n.G2t({imports:[U.jI,dt,U.jI,dt]})}}return J})()},61142:(St,z,s)=>{"use strict";s.d(z,{AJ:()=>Ro,B3:()=>Ar,Jj:()=>fs,MD:()=>na,N0:()=>il,Pc:()=>So,QT:()=>h,QX:()=>Es,Sm:()=>E,Sq:()=>Sr,T3:()=>Ur,UE:()=>no,VF:()=>S,Vy:()=>Fs,Xr:()=>La,YU:()=>yi,ZD:()=>C,_b:()=>Qn,aZ:()=>R,bT:()=>An,e1:()=>mr,fG:()=>qr,fw:()=>T,hb:()=>u,hj:()=>A,lG:()=>bo,pM:()=>Sr,qQ:()=>P,ux:()=>Wi,vh:()=>As});var i=s(58527);let n=null;function h(){return n}function C(Ze){n??=Ze}class S{}const P=new i.nKC("");let x=(()=>{class Ze{historyGo(D){throw new Error("")}static{this.\u0275fac=function(I){return new(I||Ze)}}static{this.\u0275prov=i.jDH({token:Ze,factory:()=>(0,i.WQX)(g),providedIn:"platform"})}}return Ze})();const A=new i.nKC("");let g=(()=>{class Ze extends x{constructor(){super(),this._doc=(0,i.WQX)(P),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return h().getBaseHref(this._doc)}onPopState(D){const I=h().getGlobalEventTarget(this._doc,"window");return I.addEventListener("popstate",D,!1),()=>I.removeEventListener("popstate",D)}onHashChange(D){const I=h().getGlobalEventTarget(this._doc,"window");return I.addEventListener("hashchange",D,!1),()=>I.removeEventListener("hashchange",D)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(D){this._location.pathname=D}pushState(D,I,j){this._history.pushState(D,I,j)}replaceState(D,I,j){this._history.replaceState(D,I,j)}forward(){this._history.forward()}back(){this._history.back()}historyGo(D=0){this._history.go(D)}getState(){return this._history.state}static{this.\u0275fac=function(I){return new(I||Ze)}}static{this.\u0275prov=i.jDH({token:Ze,factory:()=>new Ze,providedIn:"platform"})}}return Ze})();function m(Ze,_){if(0==Ze.length)return _;if(0==_.length)return Ze;let D=0;return Ze.endsWith("/")&&D++,_.startsWith("/")&&D++,2==D?Ze+_.substring(1):1==D?Ze+_:Ze+"/"+_}function l(Ze){const _=Ze.match(/#|\?|$/),D=_&&_.index||Ze.length;return Ze.slice(0,D-("/"===Ze[D-1]?1:0))+Ze.slice(D)}function r(Ze){return Ze&&"?"!==Ze[0]?"?"+Ze:Ze}let u=(()=>{class Ze{historyGo(D){throw new Error("")}static{this.\u0275fac=function(I){return new(I||Ze)}}static{this.\u0275prov=i.jDH({token:Ze,factory:()=>(0,i.WQX)(E),providedIn:"root"})}}return Ze})();const v=new i.nKC("");let E=(()=>{class Ze extends u{constructor(D,I){super(),this._platformLocation=D,this._removeListenerFns=[],this._baseHref=I??this._platformLocation.getBaseHrefFromDOM()??(0,i.WQX)(P).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(D){this._removeListenerFns.push(this._platformLocation.onPopState(D),this._platformLocation.onHashChange(D))}getBaseHref(){return this._baseHref}prepareExternalUrl(D){return m(this._baseHref,D)}path(D=!1){const I=this._platformLocation.pathname+r(this._platformLocation.search),j=this._platformLocation.hash;return j&&D?`${I}${j}`:I}pushState(D,I,j,pe){const _e=this.prepareExternalUrl(j+r(pe));this._platformLocation.pushState(D,I,_e)}replaceState(D,I,j,pe){const _e=this.prepareExternalUrl(j+r(pe));this._platformLocation.replaceState(D,I,_e)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(D=0){this._platformLocation.historyGo?.(D)}static{this.\u0275fac=function(I){return new(I||Ze)(i.KVO(x),i.KVO(v,8))}}static{this.\u0275prov=i.jDH({token:Ze,factory:Ze.\u0275fac,providedIn:"root"})}}return Ze})(),T=(()=>{class Ze extends u{constructor(D,I){super(),this._platformLocation=D,this._baseHref="",this._removeListenerFns=[],null!=I&&(this._baseHref=I)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(D){this._removeListenerFns.push(this._platformLocation.onPopState(D),this._platformLocation.onHashChange(D))}getBaseHref(){return this._baseHref}path(D=!1){const I=this._platformLocation.hash??"#";return I.length>0?I.substring(1):I}prepareExternalUrl(D){const I=m(this._baseHref,D);return I.length>0?"#"+I:I}pushState(D,I,j,pe){let _e=this.prepareExternalUrl(j+r(pe));0==_e.length&&(_e=this._platformLocation.pathname),this._platformLocation.pushState(D,I,_e)}replaceState(D,I,j,pe){let _e=this.prepareExternalUrl(j+r(pe));0==_e.length&&(_e=this._platformLocation.pathname),this._platformLocation.replaceState(D,I,_e)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(D=0){this._platformLocation.historyGo?.(D)}static{this.\u0275fac=function(I){return new(I||Ze)(i.KVO(x),i.KVO(v,8))}}static{this.\u0275prov=i.jDH({token:Ze,factory:Ze.\u0275fac})}}return Ze})(),R=(()=>{class Ze{constructor(D){this._subject=new i.bkB,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=D;const I=this._locationStrategy.getBaseHref();this._basePath=function ae(Ze){if(new RegExp("^(https?:)?//").test(Ze)){const[,D]=Ze.split(/\/\/[^\/]+/);return D}return Ze}(l(Y(I))),this._locationStrategy.onPopState(j=>{this._subject.emit({url:this.path(!0),pop:!0,state:j.state,type:j.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(D=!1){return this.normalize(this._locationStrategy.path(D))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(D,I=""){return this.path()==this.normalize(D+r(I))}normalize(D){return Ze.stripTrailingSlash(function U(Ze,_){if(!Ze||!_.startsWith(Ze))return _;const D=_.substring(Ze.length);return""===D||["/",";","?","#"].includes(D[0])?D:_}(this._basePath,Y(D)))}prepareExternalUrl(D){return D&&"/"!==D[0]&&(D="/"+D),this._locationStrategy.prepareExternalUrl(D)}go(D,I="",j=null){this._locationStrategy.pushState(j,"",D,I),this._notifyUrlChangeListeners(this.prepareExternalUrl(D+r(I)),j)}replaceState(D,I="",j=null){this._locationStrategy.replaceState(j,"",D,I),this._notifyUrlChangeListeners(this.prepareExternalUrl(D+r(I)),j)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(D=0){this._locationStrategy.historyGo?.(D)}onUrlChange(D){return this._urlChangeListeners.push(D),this._urlChangeSubscription??=this.subscribe(I=>{this._notifyUrlChangeListeners(I.url,I.state)}),()=>{const I=this._urlChangeListeners.indexOf(D);this._urlChangeListeners.splice(I,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(D="",I){this._urlChangeListeners.forEach(j=>j(D,I))}subscribe(D,I,j){return this._subject.subscribe({next:D,error:I,complete:j})}static{this.normalizeQueryParams=r}static{this.joinWithSlash=m}static{this.stripTrailingSlash=l}static{this.\u0275fac=function(I){return new(I||Ze)(i.KVO(u))}}static{this.\u0275prov=i.jDH({token:Ze,factory:()=>function B(){return new R((0,i.KVO)(u))}(),providedIn:"root"})}}return Ze})();function Y(Ze){return Ze.replace(/\/index.html$/,"")}var k=function(Ze){return Ze[Ze.Decimal=0]="Decimal",Ze[Ze.Percent=1]="Percent",Ze[Ze.Currency=2]="Currency",Ze[Ze.Scientific=3]="Scientific",Ze}(k||{}),q=function(Ze){return Ze[Ze.Format=0]="Format",Ze[Ze.Standalone=1]="Standalone",Ze}(q||{}),Q=function(Ze){return Ze[Ze.Narrow=0]="Narrow",Ze[Ze.Abbreviated=1]="Abbreviated",Ze[Ze.Wide=2]="Wide",Ze[Ze.Short=3]="Short",Ze}(Q||{}),ce=function(Ze){return Ze[Ze.Short=0]="Short",Ze[Ze.Medium=1]="Medium",Ze[Ze.Long=2]="Long",Ze[Ze.Full=3]="Full",Ze}(ce||{});const te={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};function ze(Ze,_){return rt((0,i.H5H)(Ze)[i.KH2.DateFormat],_)}function Ke(Ze,_){return rt((0,i.H5H)(Ze)[i.KH2.TimeFormat],_)}function Ve(Ze,_){return rt((0,i.H5H)(Ze)[i.KH2.DateTimeFormat],_)}function $e(Ze,_){const D=(0,i.H5H)(Ze),I=D[i.KH2.NumberSymbols][_];if(typeof I>"u"){if(_===te.CurrencyDecimal)return D[i.KH2.NumberSymbols][te.Decimal];if(_===te.CurrencyGroup)return D[i.KH2.NumberSymbols][te.Group]}return I}function et(Ze){if(!Ze[i.KH2.ExtraData])throw new Error(`Missing extra locale data for the locale "${Ze[i.KH2.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function rt(Ze,_){for(let D=_;D>-1;D--)if(typeof Ze[D]<"u")return Ze[D];throw new Error("Locale data API: locale data undefined")}function me(Ze){const[_,D]=Ze.split(":");return{hours:+_,minutes:+D}}const fe=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Ne={},ye=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var Ot=function(Ze){return Ze[Ze.Short=0]="Short",Ze[Ze.ShortGMT=1]="ShortGMT",Ze[Ze.Long=2]="Long",Ze[Ze.Extended=3]="Extended",Ze}(Ot||{}),sn=function(Ze){return Ze[Ze.FullYear=0]="FullYear",Ze[Ze.Month=1]="Month",Ze[Ze.Date=2]="Date",Ze[Ze.Hours=3]="Hours",Ze[Ze.Minutes=4]="Minutes",Ze[Ze.Seconds=5]="Seconds",Ze[Ze.FractionalSeconds=6]="FractionalSeconds",Ze[Ze.Day=7]="Day",Ze}(sn||{}),dn=function(Ze){return Ze[Ze.DayPeriods=0]="DayPeriods",Ze[Ze.Days=1]="Days",Ze[Ze.Months=2]="Months",Ze[Ze.Eras=3]="Eras",Ze}(dn||{});function yn(Ze,_,D,I){let j=function Kt(Ze){if(En(Ze))return Ze;if("number"==typeof Ze&&!isNaN(Ze))return new Date(Ze);if("string"==typeof Ze){if(Ze=Ze.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(Ze)){const[j,pe=1,_e=1]=Ze.split("-").map(xe=>+xe);return At(j,pe-1,_e)}const D=parseFloat(Ze);if(!isNaN(Ze-D))return new Date(D);let I;if(I=Ze.match(fe))return function cn(Ze){const _=new Date(0);let D=0,I=0;const j=Ze[8]?_.setUTCFullYear:_.setFullYear,pe=Ze[8]?_.setUTCHours:_.setHours;Ze[9]&&(D=Number(Ze[9]+Ze[10]),I=Number(Ze[9]+Ze[11])),j.call(_,Number(Ze[1]),Number(Ze[2])-1,Number(Ze[3]));const _e=Number(Ze[4]||0)-D,xe=Number(Ze[5]||0)-I,He=Number(Ze[6]||0),ht=Math.floor(1e3*parseFloat("0."+(Ze[7]||0)));return pe.call(_,_e,xe,He,ht),_}(I)}const _=new Date(Ze);if(!En(_))throw new Error(`Unable to convert "${Ze}" into a date`);return _}(Ze);_=Vt(D,_)||_;let xe,_e=[];for(;_;){if(xe=ye.exec(_),!xe){_e.push(_);break}{_e=_e.concat(xe.slice(1));const yt=_e.pop();if(!yt)break;_=yt}}let He=j.getTimezoneOffset();I&&(He=ge(I,He),j=function Wt(Ze,_,D){const I=D?-1:1,j=Ze.getTimezoneOffset();return function Ft(Ze,_){return(Ze=new Date(Ze.getTime())).setMinutes(Ze.getMinutes()+_),Ze}(Ze,I*(ge(_,j)-j))}(j,I,!0));let ht="";return _e.forEach(yt=>{const Gt=function de(Ze){if(V[Ze])return V[Ze];let _;switch(Ze){case"G":case"GG":case"GGG":_=lt(dn.Eras,Q.Abbreviated);break;case"GGGG":_=lt(dn.Eras,Q.Wide);break;case"GGGGG":_=lt(dn.Eras,Q.Narrow);break;case"y":_=nn(sn.FullYear,1,0,!1,!0);break;case"yy":_=nn(sn.FullYear,2,0,!0,!0);break;case"yyy":_=nn(sn.FullYear,3,0,!1,!0);break;case"yyyy":_=nn(sn.FullYear,4,0,!1,!0);break;case"Y":_=Le(1);break;case"YY":_=Le(2,!0);break;case"YYY":_=Le(3);break;case"YYYY":_=Le(4);break;case"M":case"L":_=nn(sn.Month,1,1);break;case"MM":case"LL":_=nn(sn.Month,2,1);break;case"MMM":_=lt(dn.Months,Q.Abbreviated);break;case"MMMM":_=lt(dn.Months,Q.Wide);break;case"MMMMM":_=lt(dn.Months,Q.Narrow);break;case"LLL":_=lt(dn.Months,Q.Abbreviated,q.Standalone);break;case"LLLL":_=lt(dn.Months,Q.Wide,q.Standalone);break;case"LLLLL":_=lt(dn.Months,Q.Narrow,q.Standalone);break;case"w":_=Bt(1);break;case"ww":_=Bt(2);break;case"W":_=Bt(1,!0);break;case"d":_=nn(sn.Date,1);break;case"dd":_=nn(sn.Date,2);break;case"c":case"cc":_=nn(sn.Day,1);break;case"ccc":_=lt(dn.Days,Q.Abbreviated,q.Standalone);break;case"cccc":_=lt(dn.Days,Q.Wide,q.Standalone);break;case"ccccc":_=lt(dn.Days,Q.Narrow,q.Standalone);break;case"cccccc":_=lt(dn.Days,Q.Short,q.Standalone);break;case"E":case"EE":case"EEE":_=lt(dn.Days,Q.Abbreviated);break;case"EEEE":_=lt(dn.Days,Q.Wide);break;case"EEEEE":_=lt(dn.Days,Q.Narrow);break;case"EEEEEE":_=lt(dn.Days,Q.Short);break;case"a":case"aa":case"aaa":_=lt(dn.DayPeriods,Q.Abbreviated);break;case"aaaa":_=lt(dn.DayPeriods,Q.Wide);break;case"aaaaa":_=lt(dn.DayPeriods,Q.Narrow);break;case"b":case"bb":case"bbb":_=lt(dn.DayPeriods,Q.Abbreviated,q.Standalone,!0);break;case"bbbb":_=lt(dn.DayPeriods,Q.Wide,q.Standalone,!0);break;case"bbbbb":_=lt(dn.DayPeriods,Q.Narrow,q.Standalone,!0);break;case"B":case"BB":case"BBB":_=lt(dn.DayPeriods,Q.Abbreviated,q.Format,!0);break;case"BBBB":_=lt(dn.DayPeriods,Q.Wide,q.Format,!0);break;case"BBBBB":_=lt(dn.DayPeriods,Q.Narrow,q.Format,!0);break;case"h":_=nn(sn.Hours,1,-12);break;case"hh":_=nn(sn.Hours,2,-12);break;case"H":_=nn(sn.Hours,1);break;case"HH":_=nn(sn.Hours,2);break;case"m":_=nn(sn.Minutes,1);break;case"mm":_=nn(sn.Minutes,2);break;case"s":_=nn(sn.Seconds,1);break;case"ss":_=nn(sn.Seconds,2);break;case"S":_=nn(sn.FractionalSeconds,1);break;case"SS":_=nn(sn.FractionalSeconds,2);break;case"SSS":_=nn(sn.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":_=wt(Ot.Short);break;case"ZZZZZ":_=wt(Ot.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":_=wt(Ot.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":_=wt(Ot.Long);break;default:return null}return V[Ze]=_,_}(yt);ht+=Gt?Gt(j,D,He):"''"===yt?"'":yt.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),ht}function At(Ze,_,D){const I=new Date(0);return I.setFullYear(Ze,_,D),I.setHours(0,0,0),I}function Vt(Ze,_){const D=function it(Ze){return(0,i.H5H)(Ze)[i.KH2.LocaleId]}(Ze);if(Ne[D]??={},Ne[D][_])return Ne[D][_];let I="";switch(_){case"shortDate":I=ze(Ze,ce.Short);break;case"mediumDate":I=ze(Ze,ce.Medium);break;case"longDate":I=ze(Ze,ce.Long);break;case"fullDate":I=ze(Ze,ce.Full);break;case"shortTime":I=Ke(Ze,ce.Short);break;case"mediumTime":I=Ke(Ze,ce.Medium);break;case"longTime":I=Ke(Ze,ce.Long);break;case"fullTime":I=Ke(Ze,ce.Full);break;case"short":const j=Vt(Ze,"shortTime"),pe=Vt(Ze,"shortDate");I=Qt(Ve(Ze,ce.Short),[j,pe]);break;case"medium":const _e=Vt(Ze,"mediumTime"),xe=Vt(Ze,"mediumDate");I=Qt(Ve(Ze,ce.Medium),[_e,xe]);break;case"long":const He=Vt(Ze,"longTime"),ht=Vt(Ze,"longDate");I=Qt(Ve(Ze,ce.Long),[He,ht]);break;case"full":const yt=Vt(Ze,"fullTime"),Gt=Vt(Ze,"fullDate");I=Qt(Ve(Ze,ce.Full),[yt,Gt])}return I&&(Ne[D][_]=I),I}function Qt(Ze,_){return _&&(Ze=Ze.replace(/\{([^}]+)}/g,function(D,I){return null!=_&&I in _?_[I]:D})),Ze}function Jt(Ze,_,D="-",I,j){let pe="";(Ze<0||j&&Ze<=0)&&(j?Ze=1-Ze:(Ze=-Ze,pe=D));let _e=String(Ze);for(;_e.length<_;)_e="0"+_e;return I&&(_e=_e.slice(_e.length-_)),pe+_e}function nn(Ze,_,D=0,I=!1,j=!1){return function(pe,_e){let xe=function Xt(Ze,_){switch(Ze){case sn.FullYear:return _.getFullYear();case sn.Month:return _.getMonth();case sn.Date:return _.getDate();case sn.Hours:return _.getHours();case sn.Minutes:return _.getMinutes();case sn.Seconds:return _.getSeconds();case sn.FractionalSeconds:return _.getMilliseconds();case sn.Day:return _.getDay();default:throw new Error(`Unknown DateType value "${Ze}".`)}}(Ze,pe);if((D>0||xe>-D)&&(xe+=D),Ze===sn.Hours)0===xe&&-12===D&&(xe=12);else if(Ze===sn.FractionalSeconds)return function Zt(Ze,_){return Jt(Ze,3).substring(0,_)}(xe,_);const He=$e(_e,te.MinusSign);return Jt(xe,_,He,I,j)}}function lt(Ze,_,D=q.Format,I=!1){return function(j,pe){return function Ue(Ze,_,D,I,j,pe){switch(D){case dn.Months:return function ct(Ze,_,D){const I=(0,i.H5H)(Ze),pe=rt([I[i.KH2.MonthsFormat],I[i.KH2.MonthsStandalone]],_);return rt(pe,D)}(_,j,I)[Ze.getMonth()];case dn.Days:return function Qe(Ze,_,D){const I=(0,i.H5H)(Ze),pe=rt([I[i.KH2.DaysFormat],I[i.KH2.DaysStandalone]],_);return rt(pe,D)}(_,j,I)[Ze.getDay()];case dn.DayPeriods:const _e=Ze.getHours(),xe=Ze.getMinutes();if(pe){const ht=function se(Ze){const _=(0,i.H5H)(Ze);return et(_),(_[i.KH2.ExtraData][2]||[]).map(I=>"string"==typeof I?me(I):[me(I[0]),me(I[1])])}(_),yt=function Ce(Ze,_,D){const I=(0,i.H5H)(Ze);et(I);const pe=rt([I[i.KH2.ExtraData][0],I[i.KH2.ExtraData][1]],_)||[];return rt(pe,D)||[]}(_,j,I),Gt=ht.findIndex($t=>{if(Array.isArray($t)){const[st,tt]=$t,Tt=_e>=st.hours&&xe>=st.minutes,Ye=_e<tt.hours||_e===tt.hours&&xe<tt.minutes;if(st.hours<tt.hours){if(Tt&&Ye)return!0}else if(Tt||Ye)return!0}else if($t.hours===_e&&$t.minutes===xe)return!0;return!1});if(-1!==Gt)return yt[Gt]}return function Fe(Ze,_,D){const I=(0,i.H5H)(Ze),pe=rt([I[i.KH2.DayPeriodsFormat],I[i.KH2.DayPeriodsStandalone]],_);return rt(pe,D)}(_,j,I)[_e<12?0:1];case dn.Eras:return function Ge(Ze,_){return rt((0,i.H5H)(Ze)[i.KH2.Eras],_)}(_,I)[Ze.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${D}`)}}(j,pe,Ze,_,D,I)}}function wt(Ze){return function(_,D,I){const j=-1*I,pe=$e(D,te.MinusSign),_e=j>0?Math.floor(j/60):Math.ceil(j/60);switch(Ze){case Ot.Short:return(j>=0?"+":"")+Jt(_e,2,pe)+Jt(Math.abs(j%60),2,pe);case Ot.ShortGMT:return"GMT"+(j>=0?"+":"")+Jt(_e,1,pe);case Ot.Long:return"GMT"+(j>=0?"+":"")+Jt(_e,2,pe)+":"+Jt(Math.abs(j%60),2,pe);case Ot.Extended:return 0===I?"Z":(j>=0?"+":"")+Jt(_e,2,pe)+":"+Jt(Math.abs(j%60),2,pe);default:throw new Error(`Unknown zone width "${Ze}"`)}}}const gt=0,Ht=4;function Ut(Ze){const _=Ze.getDay(),D=0===_?-3:Ht-_;return At(Ze.getFullYear(),Ze.getMonth(),Ze.getDate()+D)}function Bt(Ze,_=!1){return function(D,I){let j;if(_){const pe=new Date(D.getFullYear(),D.getMonth(),1).getDay()-1,_e=D.getDate();j=1+Math.floor((_e+pe)/7)}else{const pe=Ut(D),_e=function bn(Ze){const _=At(Ze,gt,1).getDay();return At(Ze,0,1+(_<=Ht?Ht:Ht+7)-_)}(pe.getFullYear()),xe=pe.getTime()-_e.getTime();j=1+Math.round(xe/6048e5)}return Jt(j,Ze,$e(I,te.MinusSign))}}function Le(Ze,_=!1){return function(D,I){return Jt(Ut(D).getFullYear(),Ze,$e(I,te.MinusSign),_)}}const V={};function ge(Ze,_){Ze=Ze.replace(/:/g,"");const D=Date.parse("Jan 01, 1970 00:00:00 "+Ze)/6e4;return isNaN(D)?_:D}function En(Ze){return Ze instanceof Date&&!isNaN(Ze.valueOf())}const kn=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function Ei(Ze){const _=parseInt(Ze);if(isNaN(_))throw new Error("Invalid integer literal when parsing "+Ze);return _}function Qn(Ze,_){_=encodeURIComponent(_);for(const D of Ze.split(";")){const I=D.indexOf("="),[j,pe]=-1==I?[D,""]:[D.slice(0,I),D.slice(I+1)];if(j.trim()===_)return decodeURIComponent(pe)}return null}const Zn=/\s+/,fi=[];let yi=(()=>{class Ze{constructor(D,I){this._ngEl=D,this._renderer=I,this.initialClasses=fi,this.stateMap=new Map}set klass(D){this.initialClasses=null!=D?D.trim().split(Zn):fi}set ngClass(D){this.rawClass="string"==typeof D?D.trim().split(Zn):D}ngDoCheck(){for(const I of this.initialClasses)this._updateState(I,!0);const D=this.rawClass;if(Array.isArray(D)||D instanceof Set)for(const I of D)this._updateState(I,!0);else if(null!=D)for(const I of Object.keys(D))this._updateState(I,!!D[I]);this._applyStateDiff()}_updateState(D,I){const j=this.stateMap.get(D);void 0!==j?(j.enabled!==I&&(j.changed=!0,j.enabled=I),j.touched=!0):this.stateMap.set(D,{enabled:I,changed:!0,touched:!0})}_applyStateDiff(){for(const D of this.stateMap){const I=D[0],j=D[1];j.changed?(this._toggleClass(I,j.enabled),j.changed=!1):j.touched||(j.enabled&&this._toggleClass(I,!1),this.stateMap.delete(I)),j.touched=!1}}_toggleClass(D,I){(D=D.trim()).length>0&&D.split(Zn).forEach(j=>{I?this._renderer.addClass(this._ngEl.nativeElement,j):this._renderer.removeClass(this._ngEl.nativeElement,j)})}static{this.\u0275fac=function(I){return new(I||Ze)(i.rXU(i.aKT),i.rXU(i.sFG))}}static{this.\u0275dir=i.FsC({type:Ze,selectors:[["","ngClass",""]],inputs:{klass:[i.Mj6.None,"class","klass"],ngClass:"ngClass"},standalone:!0})}}return Ze})();class Br{constructor(_,D,I,j){this.$implicit=_,this.ngForOf=D,this.index=I,this.count=j}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Sr=(()=>{class Ze{set ngForOf(D){this._ngForOf=D,this._ngForOfDirty=!0}set ngForTrackBy(D){this._trackByFn=D}get ngForTrackBy(){return this._trackByFn}constructor(D,I,j){this._viewContainer=D,this._template=I,this._differs=j,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(D){D&&(this._template=D)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const D=this._ngForOf;!this._differ&&D&&(this._differ=this._differs.find(D).create(this.ngForTrackBy))}if(this._differ){const D=this._differ.diff(this._ngForOf);D&&this._applyChanges(D)}}_applyChanges(D){const I=this._viewContainer;D.forEachOperation((j,pe,_e)=>{if(null==j.previousIndex)I.createEmbeddedView(this._template,new Br(j.item,this._ngForOf,-1,-1),null===_e?void 0:_e);else if(null==_e)I.remove(null===pe?void 0:pe);else if(null!==pe){const xe=I.get(pe);I.move(xe,_e),ds(xe,j)}});for(let j=0,pe=I.length;j<pe;j++){const xe=I.get(j).context;xe.index=j,xe.count=pe,xe.ngForOf=this._ngForOf}D.forEachIdentityChange(j=>{ds(I.get(j.currentIndex),j)})}static ngTemplateContextGuard(D,I){return!0}static{this.\u0275fac=function(I){return new(I||Ze)(i.rXU(i.c1b),i.rXU(i.C4Q),i.rXU(i._q3))}}static{this.\u0275dir=i.FsC({type:Ze,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0})}}return Ze})();function ds(Ze,_){Ze.context.$implicit=_.item}let An=(()=>{class Ze{constructor(D,I){this._viewContainer=D,this._context=new zn,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=I}set ngIf(D){this._context.$implicit=this._context.ngIf=D,this._updateView()}set ngIfThen(D){Jn("ngIfThen",D),this._thenTemplateRef=D,this._thenViewRef=null,this._updateView()}set ngIfElse(D){Jn("ngIfElse",D),this._elseTemplateRef=D,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(D,I){return!0}static{this.\u0275fac=function(I){return new(I||Ze)(i.rXU(i.c1b),i.rXU(i.C4Q))}}static{this.\u0275dir=i.FsC({type:Ze,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}}return Ze})();class zn{constructor(){this.$implicit=null,this.ngIf=null}}function Jn(Ze,_){if(_&&!_.createEmbeddedView)throw new Error(`${Ze} must be a TemplateRef, but received '${(0,i.Tbb)(_)}'.`)}class Oi{constructor(_,D){this._viewContainerRef=_,this._templateRef=D,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(_){_&&!this._created?this.create():!_&&this._created&&this.destroy()}}let Wi=(()=>{class Ze{constructor(){this._defaultViews=[],this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(D){this._ngSwitch=D,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(D){this._defaultViews.push(D)}_matchCase(D){const I=D===this._ngSwitch;return this._lastCasesMatched||=I,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),I}_updateDefaultCases(D){if(this._defaultViews.length>0&&D!==this._defaultUsed){this._defaultUsed=D;for(const I of this._defaultViews)I.enforceState(D)}}static{this.\u0275fac=function(I){return new(I||Ze)}}static{this.\u0275dir=i.FsC({type:Ze,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0})}}return Ze})(),mr=(()=>{class Ze{constructor(D,I,j){this.ngSwitch=j,j._addCase(),this._view=new Oi(D,I)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}static{this.\u0275fac=function(I){return new(I||Ze)(i.rXU(i.c1b),i.rXU(i.C4Q),i.rXU(Wi,9))}}static{this.\u0275dir=i.FsC({type:Ze,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0})}}return Ze})(),qr=(()=>{class Ze{constructor(D,I,j){j._addDefault(new Oi(D,I))}static{this.\u0275fac=function(I){return new(I||Ze)(i.rXU(i.c1b),i.rXU(i.C4Q),i.rXU(Wi,9))}}static{this.\u0275dir=i.FsC({type:Ze,selectors:[["","ngSwitchDefault",""]],standalone:!0})}}return Ze})(),Ar=(()=>{class Ze{constructor(D,I,j){this._ngEl=D,this._differs=I,this._renderer=j,this._ngStyle=null,this._differ=null}set ngStyle(D){this._ngStyle=D,!this._differ&&D&&(this._differ=this._differs.find(D).create())}ngDoCheck(){if(this._differ){const D=this._differ.diff(this._ngStyle);D&&this._applyChanges(D)}}_setStyle(D,I){const[j,pe]=D.split("."),_e=-1===j.indexOf("-")?void 0:i.czy.DashCase;null!=I?this._renderer.setStyle(this._ngEl.nativeElement,j,pe?`${I}${pe}`:I,_e):this._renderer.removeStyle(this._ngEl.nativeElement,j,_e)}_applyChanges(D){D.forEachRemovedItem(I=>this._setStyle(I.key,null)),D.forEachAddedItem(I=>this._setStyle(I.key,I.currentValue)),D.forEachChangedItem(I=>this._setStyle(I.key,I.currentValue))}static{this.\u0275fac=function(I){return new(I||Ze)(i.rXU(i.aKT),i.rXU(i.MKu),i.rXU(i.sFG))}}static{this.\u0275dir=i.FsC({type:Ze,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0})}}return Ze})(),Ur=(()=>{class Ze{constructor(D){this._viewContainerRef=D,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(D){if(this._shouldRecreateView(D)){const I=this._viewContainerRef;if(this._viewRef&&I.remove(I.indexOf(this._viewRef)),!this.ngTemplateOutlet)return void(this._viewRef=null);const j=this._createContextForwardProxy();this._viewRef=I.createEmbeddedView(this.ngTemplateOutlet,j,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(D){return!!D.ngTemplateOutlet||!!D.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(D,I,j)=>!!this.ngTemplateOutletContext&&Reflect.set(this.ngTemplateOutletContext,I,j),get:(D,I,j)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,I,j)}})}static{this.\u0275fac=function(I){return new(I||Ze)(i.rXU(i.c1b))}}static{this.\u0275dir=i.FsC({type:Ze,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[i.OA$]})}}return Ze})();function fo(Ze,_){return new i.wOt(2100,!1)}class Zo{createSubscription(_,D){return(0,i.O8t)(()=>_.subscribe({next:D,error:I=>{throw I}}))}dispose(_){(0,i.O8t)(()=>_.unsubscribe())}}class vo{createSubscription(_,D){return _.then(D,I=>{throw I})}dispose(_){}}const Pa=new vo,fa=new Zo;let fs=(()=>{class Ze{constructor(D){this._latestValue=null,this.markForCheckOnValueUpdate=!0,this._subscription=null,this._obj=null,this._strategy=null,this._ref=D}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(D){if(!this._obj){if(D)try{this.markForCheckOnValueUpdate=!1,this._subscribe(D)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return D!==this._obj?(this._dispose(),this.transform(D)):this._latestValue}_subscribe(D){this._obj=D,this._strategy=this._selectStrategy(D),this._subscription=this._strategy.createSubscription(D,I=>this._updateLatestValue(D,I))}_selectStrategy(D){if((0,i.jNT)(D))return Pa;if((0,i.zjR)(D))return fa;throw fo()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(D,I){D===this._obj&&(this._latestValue=I,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}static{this.\u0275fac=function(I){return new(I||Ze)(i.rXU(i.gRc,16))}}static{this.\u0275pipe=i.EJ8({name:"async",type:Ze,pure:!1,standalone:!0})}}return Ze})(),So=(()=>{class Ze{transform(D){if(null==D)return null;if("string"!=typeof D)throw fo();return D.toUpperCase()}static{this.\u0275fac=function(I){return new(I||Ze)}}static{this.\u0275pipe=i.EJ8({name:"uppercase",type:Ze,pure:!0,standalone:!0})}}return Ze})();const Go=new i.nKC(""),Mo=new i.nKC("");let As=(()=>{class Ze{constructor(D,I,j){this.locale=D,this.defaultTimezone=I,this.defaultOptions=j}transform(D,I,j,pe){if(null==D||""===D||D!=D)return null;try{return yn(D,I??this.defaultOptions?.dateFormat??"mediumDate",pe||this.locale,j??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(_e){throw fo()}}static{this.\u0275fac=function(I){return new(I||Ze)(i.rXU(i.xe9,16),i.rXU(Go,24),i.rXU(Mo,24))}}static{this.\u0275pipe=i.EJ8({name:"date",type:Ze,pure:!0,standalone:!0})}}return Ze})(),bo=(()=>{class Ze{constructor(D){this.differs=D,this.keyValues=[],this.compareFn=Xa}transform(D,I=Xa){if(!D||!(D instanceof Map)&&"object"!=typeof D)return null;this.differ??=this.differs.find(D).create();const j=this.differ.diff(D),pe=I!==this.compareFn;return j&&(this.keyValues=[],j.forEachItem(_e=>{this.keyValues.push(function Ha(Ze,_){return{key:Ze,value:_}}(_e.key,_e.currentValue))})),(j||pe)&&(this.keyValues.sort(I),this.compareFn=I),this.keyValues}static{this.\u0275fac=function(I){return new(I||Ze)(i.rXU(i.MKu,16))}}static{this.\u0275pipe=i.EJ8({name:"keyvalue",type:Ze,pure:!1,standalone:!0})}}return Ze})();function Xa(Ze,_){const D=Ze.key,I=_.key;if(D===I)return 0;if(void 0===D)return 1;if(void 0===I)return-1;if(null===D)return 1;if(null===I)return-1;if("string"==typeof D&&"string"==typeof I)return D<I?-1:1;if("number"==typeof D&&"number"==typeof I)return D-I;if("boolean"==typeof D&&"boolean"==typeof I)return D<I?-1:1;const j=String(D),pe=String(I);return j==pe?0:j<pe?-1:1}let Es=(()=>{class Ze{constructor(D){this._locale=D}transform(D,I,j){if(!function oa(Ze){return!(null==Ze||""===Ze||Ze!=Ze)}(D))return null;j||=this._locale;try{return function Ms(Ze,_,D){return function ir(Ze,_,D,I,j,pe,_e=!1){let xe="",He=!1;if(isFinite(Ze)){let ht=function js(Ze){let I,j,pe,_e,xe,_=Math.abs(Ze)+"",D=0;for((j=_.indexOf("."))>-1&&(_=_.replace(".","")),(pe=_.search(/e/i))>0?(j<0&&(j=pe),j+=+_.slice(pe+1),_=_.substring(0,pe)):j<0&&(j=_.length),pe=0;"0"===_.charAt(pe);pe++);if(pe===(xe=_.length))I=[0],j=1;else{for(xe--;"0"===_.charAt(xe);)xe--;for(j-=pe,I=[],_e=0;pe<=xe;pe++,_e++)I[_e]=Number(_.charAt(pe))}return j>22&&(I=I.splice(0,21),D=j-1,j=1),{digits:I,exponent:D,integerLen:j}}(Ze);_e&&(ht=function lo(Ze){if(0===Ze.digits[0])return Ze;const _=Ze.digits.length-Ze.integerLen;return Ze.exponent?Ze.exponent+=2:(0===_?Ze.digits.push(0,0):1===_&&Ze.digits.push(0),Ze.integerLen+=2),Ze}(ht));let yt=_.minInt,Gt=_.minFrac,$t=_.maxFrac;if(pe){const It=pe.match(kn);if(null===It)throw new Error(`${pe} is not a valid digit info`);const un=It[1],xn=It[3],In=It[5];null!=un&&(yt=Ei(un)),null!=xn&&(Gt=Ei(xn)),null!=In?$t=Ei(In):null!=xn&&Gt>$t&&($t=Gt)}!function Vn(Ze,_,D){if(_>D)throw new Error(`The minimum number of digits after fraction (${_}) is higher than the maximum (${D}).`);let I=Ze.digits,j=I.length-Ze.integerLen;const pe=Math.min(Math.max(_,j),D);let _e=pe+Ze.integerLen,xe=I[_e];if(_e>0){I.splice(Math.max(Ze.integerLen,_e));for(let Gt=_e;Gt<I.length;Gt++)I[Gt]=0}else{j=Math.max(0,j),Ze.integerLen=1,I.length=Math.max(1,_e=pe+1),I[0]=0;for(let Gt=1;Gt<_e;Gt++)I[Gt]=0}if(xe>=5)if(_e-1<0){for(let Gt=0;Gt>_e;Gt--)I.unshift(0),Ze.integerLen++;I.unshift(1),Ze.integerLen++}else I[_e-1]++;for(;j<Math.max(0,pe);j++)I.push(0);let He=0!==pe;const ht=_+Ze.integerLen,yt=I.reduceRight(function(Gt,$t,st,tt){return tt[st]=($t+=Gt)<10?$t:$t-10,He&&(0===tt[st]&&st>=ht?tt.pop():He=!1),$t>=10?1:0},0);yt&&(I.unshift(yt),Ze.integerLen++)}(ht,Gt,$t);let st=ht.digits,tt=ht.integerLen;const Tt=ht.exponent;let Ye=[];for(He=st.every(It=>!It);tt<yt;tt++)st.unshift(0);for(;tt<0;tt++)st.unshift(0);tt>0?Ye=st.splice(tt,st.length):(Ye=st,st=[0]);const kt=[];for(st.length>=_.lgSize&&kt.unshift(st.splice(-_.lgSize,st.length).join(""));st.length>_.gSize;)kt.unshift(st.splice(-_.gSize,st.length).join(""));st.length&&kt.unshift(st.join("")),xe=kt.join($e(D,I)),Ye.length&&(xe+=$e(D,j)+Ye.join("")),Tt&&(xe+=$e(D,te.Exponential)+"+"+Tt)}else xe=$e(D,te.Infinity);return xe=Ze<0&&!He?_.negPre+xe+_.negSuf:_.posPre+xe+_.posSuf,xe}(Ze,function Pr(Ze,_="-"){const D={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},I=Ze.split(";"),j=I[0],pe=I[1],_e=-1!==j.indexOf(".")?j.split("."):[j.substring(0,j.lastIndexOf("0")+1),j.substring(j.lastIndexOf("0")+1)],xe=_e[0],He=_e[1]||"";D.posPre=xe.substring(0,xe.indexOf("#"));for(let yt=0;yt<He.length;yt++){const Gt=He.charAt(yt);"0"===Gt?D.minFrac=D.maxFrac=yt+1:"#"===Gt?D.maxFrac=yt+1:D.posSuf+=Gt}const ht=xe.split(",");if(D.gSize=ht[1]?ht[1].length:0,D.lgSize=ht[2]||ht[1]?(ht[2]||ht[1]).length:0,pe){const yt=j.length-D.posPre.length-D.posSuf.length,Gt=pe.indexOf("#");D.negPre=pe.substring(0,Gt).replace(/'/g,""),D.negSuf=pe.slice(Gt+yt).replace(/'/g,"")}else D.negPre=_+D.posPre,D.negSuf=D.posSuf;return D}(function dt(Ze,_){return(0,i.H5H)(Ze)[i.KH2.NumberFormats][_]}(_,k.Decimal),$e(_,te.MinusSign)),_,te.Group,te.Decimal,D)}(function ar(Ze){if("string"==typeof Ze&&!isNaN(Number(Ze)-parseFloat(Ze)))return Number(Ze);if("number"!=typeof Ze)throw new Error(`${Ze} is not a number`);return Ze}(D),j,I)}catch(pe){throw fo()}}static{this.\u0275fac=function(I){return new(I||Ze)(i.rXU(i.xe9,16))}}static{this.\u0275pipe=i.EJ8({name:"number",type:Ze,pure:!0,standalone:!0})}}return Ze})();let na=(()=>{class Ze{static{this.\u0275fac=function(I){return new(I||Ze)}}static{this.\u0275mod=i.$C({type:Ze})}static{this.\u0275inj=i.G2t({})}}return Ze})();const Ro="browser",ja="server";function no(Ze){return Ze===Ro}function Fs(Ze){return Ze===ja}let La=(()=>{class Ze{static{this.\u0275prov=(0,i.jDH)({token:Ze,providedIn:"root",factory:()=>no((0,i.WQX)(i.Agw))?new Ko((0,i.WQX)(P),window):new ka})}}return Ze})();class Ko{constructor(_,D){this.document=_,this.window=D,this.offset=()=>[0,0]}setOffset(_){this.offset=Array.isArray(_)?()=>_:_}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(_){this.window.scrollTo(_[0],_[1])}scrollToAnchor(_){const D=function Jo(Ze,_){const D=Ze.getElementById(_)||Ze.getElementsByName(_)[0];if(D)return D;if("function"==typeof Ze.createTreeWalker&&Ze.body&&"function"==typeof Ze.body.attachShadow){const I=Ze.createTreeWalker(Ze.body,NodeFilter.SHOW_ELEMENT);let j=I.currentNode;for(;j;){const pe=j.shadowRoot;if(pe){const _e=pe.getElementById(_)||pe.querySelector(`[name="${_}"]`);if(_e)return _e}j=I.nextNode()}}return null}(this.document,_);D&&(this.scrollToElement(D),D.focus())}setHistoryScrollRestoration(_){this.window.history.scrollRestoration=_}scrollToElement(_){const D=_.getBoundingClientRect(),I=D.left+this.window.pageXOffset,j=D.top+this.window.pageYOffset,pe=this.offset();this.window.scrollTo(I-pe[0],j-pe[1])}}class ka{setOffset(_){}getScrollPosition(){return[0,0]}scrollToPosition(_){}scrollToAnchor(_){}setHistoryScrollRestoration(_){}}class il{}},94485:(St,z,s)=>{"use strict";s.d(z,{JV:()=>r,Nl:()=>ae,Qq:()=>ze,a7:()=>se,cS:()=>ct,q1:()=>Zi,yz:()=>Ge}),s(70650);var n=s(58527),h=s(43848),C=s(17053),S=s(19392),M=s(79539),P=s(8619),x=s(83915),A=s(43615),g=s(72147),m=s(61142);class l{}class r{}class u{constructor(Qn){this.normalizedNames=new Map,this.lazyUpdate=null,Qn?"string"==typeof Qn?this.lazyInit=()=>{this.headers=new Map,Qn.split("\n").forEach(Zn=>{const fi=Zn.indexOf(":");if(fi>0){const yi=Zn.slice(0,fi),tr=yi.toLowerCase(),qi=Zn.slice(fi+1).trim();this.maybeSetNormalizedName(yi,tr),this.headers.has(tr)?this.headers.get(tr).push(qi):this.headers.set(tr,[qi])}})}:typeof Headers<"u"&&Qn instanceof Headers?(this.headers=new Map,Qn.forEach((Zn,fi)=>{this.setHeaderEntries(fi,Zn)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(Qn).forEach(([Zn,fi])=>{this.setHeaderEntries(Zn,fi)})}:this.headers=new Map}has(Qn){return this.init(),this.headers.has(Qn.toLowerCase())}get(Qn){this.init();const Zn=this.headers.get(Qn.toLowerCase());return Zn&&Zn.length>0?Zn[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(Qn){return this.init(),this.headers.get(Qn.toLowerCase())||null}append(Qn,Zn){return this.clone({name:Qn,value:Zn,op:"a"})}set(Qn,Zn){return this.clone({name:Qn,value:Zn,op:"s"})}delete(Qn,Zn){return this.clone({name:Qn,value:Zn,op:"d"})}maybeSetNormalizedName(Qn,Zn){this.normalizedNames.has(Zn)||this.normalizedNames.set(Zn,Qn)}init(){this.lazyInit&&(this.lazyInit instanceof u?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(Qn=>this.applyUpdate(Qn)),this.lazyUpdate=null))}copyFrom(Qn){Qn.init(),Array.from(Qn.headers.keys()).forEach(Zn=>{this.headers.set(Zn,Qn.headers.get(Zn)),this.normalizedNames.set(Zn,Qn.normalizedNames.get(Zn))})}clone(Qn){const Zn=new u;return Zn.lazyInit=this.lazyInit&&this.lazyInit instanceof u?this.lazyInit:this,Zn.lazyUpdate=(this.lazyUpdate||[]).concat([Qn]),Zn}applyUpdate(Qn){const Zn=Qn.name.toLowerCase();switch(Qn.op){case"a":case"s":let fi=Qn.value;if("string"==typeof fi&&(fi=[fi]),0===fi.length)return;this.maybeSetNormalizedName(Qn.name,Zn);const yi=("a"===Qn.op?this.headers.get(Zn):void 0)||[];yi.push(...fi),this.headers.set(Zn,yi);break;case"d":const tr=Qn.value;if(tr){let qi=this.headers.get(Zn);if(!qi)return;qi=qi.filter(Br=>-1===tr.indexOf(Br)),0===qi.length?(this.headers.delete(Zn),this.normalizedNames.delete(Zn)):this.headers.set(Zn,qi)}else this.headers.delete(Zn),this.normalizedNames.delete(Zn)}}setHeaderEntries(Qn,Zn){const fi=(Array.isArray(Zn)?Zn:[Zn]).map(tr=>tr.toString()),yi=Qn.toLowerCase();this.headers.set(yi,fi),this.maybeSetNormalizedName(Qn,yi)}forEach(Qn){this.init(),Array.from(this.normalizedNames.keys()).forEach(Zn=>Qn(this.normalizedNames.get(Zn),this.headers.get(Zn)))}}class E{encodeKey(Qn){return U(Qn)}encodeValue(Qn){return U(Qn)}decodeKey(Qn){return decodeURIComponent(Qn)}decodeValue(Qn){return decodeURIComponent(Qn)}}const R=/%(\d[a-f0-9])/gi,B={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function U(Mn){return encodeURIComponent(Mn).replace(R,(Qn,Zn)=>B[Zn]??Qn)}function Y(Mn){return`${Mn}`}class ae{constructor(Qn={}){if(this.updates=null,this.cloneFrom=null,this.encoder=Qn.encoder||new E,Qn.fromString){if(Qn.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function T(Mn,Qn){const Zn=new Map;return Mn.length>0&&Mn.replace(/^\?/,"").split("&").forEach(yi=>{const tr=yi.indexOf("="),[qi,Br]=-1==tr?[Qn.decodeKey(yi),""]:[Qn.decodeKey(yi.slice(0,tr)),Qn.decodeValue(yi.slice(tr+1))],Sr=Zn.get(qi)||[];Sr.push(Br),Zn.set(qi,Sr)}),Zn}(Qn.fromString,this.encoder)}else Qn.fromObject?(this.map=new Map,Object.keys(Qn.fromObject).forEach(Zn=>{const fi=Qn.fromObject[Zn],yi=Array.isArray(fi)?fi.map(Y):[Y(fi)];this.map.set(Zn,yi)})):this.map=null}has(Qn){return this.init(),this.map.has(Qn)}get(Qn){this.init();const Zn=this.map.get(Qn);return Zn?Zn[0]:null}getAll(Qn){return this.init(),this.map.get(Qn)||null}keys(){return this.init(),Array.from(this.map.keys())}append(Qn,Zn){return this.clone({param:Qn,value:Zn,op:"a"})}appendAll(Qn){const Zn=[];return Object.keys(Qn).forEach(fi=>{const yi=Qn[fi];Array.isArray(yi)?yi.forEach(tr=>{Zn.push({param:fi,value:tr,op:"a"})}):Zn.push({param:fi,value:yi,op:"a"})}),this.clone(Zn)}set(Qn,Zn){return this.clone({param:Qn,value:Zn,op:"s"})}delete(Qn,Zn){return this.clone({param:Qn,value:Zn,op:"d"})}toString(){return this.init(),this.keys().map(Qn=>{const Zn=this.encoder.encodeKey(Qn);return this.map.get(Qn).map(fi=>Zn+"="+this.encoder.encodeValue(fi)).join("&")}).filter(Qn=>""!==Qn).join("&")}clone(Qn){const Zn=new ae({encoder:this.encoder});return Zn.cloneFrom=this.cloneFrom||this,Zn.updates=(this.updates||[]).concat(Qn),Zn}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(Qn=>this.map.set(Qn,this.cloneFrom.map.get(Qn))),this.updates.forEach(Qn=>{switch(Qn.op){case"a":case"s":const Zn=("a"===Qn.op?this.map.get(Qn.param):void 0)||[];Zn.push(Y(Qn.value)),this.map.set(Qn.param,Zn);break;case"d":if(void 0===Qn.value){this.map.delete(Qn.param);break}{let fi=this.map.get(Qn.param)||[];const yi=fi.indexOf(Y(Qn.value));-1!==yi&&fi.splice(yi,1),fi.length>0?this.map.set(Qn.param,fi):this.map.delete(Qn.param)}}}),this.cloneFrom=this.updates=null)}}class k{constructor(){this.map=new Map}set(Qn,Zn){return this.map.set(Qn,Zn),this}get(Qn){return this.map.has(Qn)||this.map.set(Qn,Qn.defaultValue()),this.map.get(Qn)}delete(Qn){return this.map.delete(Qn),this}has(Qn){return this.map.has(Qn)}keys(){return this.map.keys()}}function q(Mn){return typeof ArrayBuffer<"u"&&Mn instanceof ArrayBuffer}function Q(Mn){return typeof Blob<"u"&&Mn instanceof Blob}function ce(Mn){return typeof FormData<"u"&&Mn instanceof FormData}class Ee{constructor(Qn,Zn,fi,yi){let tr;if(this.url=Zn,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=Qn.toUpperCase(),function X(Mn){switch(Mn){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||yi?(this.body=void 0!==fi?fi:null,tr=yi):tr=fi,tr&&(this.reportProgress=!!tr.reportProgress,this.withCredentials=!!tr.withCredentials,tr.responseType&&(this.responseType=tr.responseType),tr.headers&&(this.headers=tr.headers),tr.context&&(this.context=tr.context),tr.params&&(this.params=tr.params),this.transferCache=tr.transferCache),this.headers??=new u,this.context??=new k,this.params){const qi=this.params.toString();if(0===qi.length)this.urlWithParams=Zn;else{const Br=Zn.indexOf("?");this.urlWithParams=Zn+(-1===Br?"?":Br<Zn.length-1?"&":"")+qi}}else this.params=new ae,this.urlWithParams=Zn}serializeBody(){return null===this.body?null:"string"==typeof this.body||q(this.body)||Q(this.body)||ce(this.body)||function te(Mn){return typeof URLSearchParams<"u"&&Mn instanceof URLSearchParams}(this.body)?this.body:this.body instanceof ae?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||ce(this.body)?null:Q(this.body)?this.body.type||null:q(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof ae?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(Qn={}){const Zn=Qn.method||this.method,fi=Qn.url||this.url,yi=Qn.responseType||this.responseType,tr=Qn.transferCache??this.transferCache,qi=void 0!==Qn.body?Qn.body:this.body,Br=Qn.withCredentials??this.withCredentials,Sr=Qn.reportProgress??this.reportProgress;let ds=Qn.headers||this.headers,bs=Qn.params||this.params;const An=Qn.context??this.context;return void 0!==Qn.setHeaders&&(ds=Object.keys(Qn.setHeaders).reduce((zn,Jn)=>zn.set(Jn,Qn.setHeaders[Jn]),ds)),Qn.setParams&&(bs=Object.keys(Qn.setParams).reduce((zn,Jn)=>zn.set(Jn,Qn.setParams[Jn]),bs)),new Ee(Zn,fi,qi,{params:bs,headers:ds,context:An,reportProgress:Sr,responseType:yi,withCredentials:Br,transferCache:tr})}}var it=function(Mn){return Mn[Mn.Sent=0]="Sent",Mn[Mn.UploadProgress=1]="UploadProgress",Mn[Mn.ResponseHeader=2]="ResponseHeader",Mn[Mn.DownloadProgress=3]="DownloadProgress",Mn[Mn.Response=4]="Response",Mn[Mn.User=5]="User",Mn}(it||{});class Fe{constructor(Qn,Zn=nt.Ok,fi="OK"){this.headers=Qn.headers||new u,this.status=void 0!==Qn.status?Qn.status:Zn,this.statusText=Qn.statusText||fi,this.url=Qn.url||null,this.ok=this.status>=200&&this.status<300}}class Qe extends Fe{constructor(Qn={}){super(Qn),this.type=it.ResponseHeader}clone(Qn={}){return new Qe({headers:Qn.headers||this.headers,status:void 0!==Qn.status?Qn.status:this.status,statusText:Qn.statusText||this.statusText,url:Qn.url||this.url||void 0})}}class ct extends Fe{constructor(Qn={}){super(Qn),this.type=it.Response,this.body=void 0!==Qn.body?Qn.body:null}clone(Qn={}){return new ct({body:void 0!==Qn.body?Qn.body:this.body,headers:Qn.headers||this.headers,status:void 0!==Qn.status?Qn.status:this.status,statusText:Qn.statusText||this.statusText,url:Qn.url||this.url||void 0})}}class Ge extends Fe{constructor(Qn){super(Qn,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${Qn.url||"(unknown url)"}`:`Http failure response for ${Qn.url||"(unknown url)"}: ${Qn.status} ${Qn.statusText}`,this.error=Qn.error||null}}var nt=function(Mn){return Mn[Mn.Continue=100]="Continue",Mn[Mn.SwitchingProtocols=101]="SwitchingProtocols",Mn[Mn.Processing=102]="Processing",Mn[Mn.EarlyHints=103]="EarlyHints",Mn[Mn.Ok=200]="Ok",Mn[Mn.Created=201]="Created",Mn[Mn.Accepted=202]="Accepted",Mn[Mn.NonAuthoritativeInformation=203]="NonAuthoritativeInformation",Mn[Mn.NoContent=204]="NoContent",Mn[Mn.ResetContent=205]="ResetContent",Mn[Mn.PartialContent=206]="PartialContent",Mn[Mn.MultiStatus=207]="MultiStatus",Mn[Mn.AlreadyReported=208]="AlreadyReported",Mn[Mn.ImUsed=226]="ImUsed",Mn[Mn.MultipleChoices=300]="MultipleChoices",Mn[Mn.MovedPermanently=301]="MovedPermanently",Mn[Mn.Found=302]="Found",Mn[Mn.SeeOther=303]="SeeOther",Mn[Mn.NotModified=304]="NotModified",Mn[Mn.UseProxy=305]="UseProxy",Mn[Mn.Unused=306]="Unused",Mn[Mn.TemporaryRedirect=307]="TemporaryRedirect",Mn[Mn.PermanentRedirect=308]="PermanentRedirect",Mn[Mn.BadRequest=400]="BadRequest",Mn[Mn.Unauthorized=401]="Unauthorized",Mn[Mn.PaymentRequired=402]="PaymentRequired",Mn[Mn.Forbidden=403]="Forbidden",Mn[Mn.NotFound=404]="NotFound",Mn[Mn.MethodNotAllowed=405]="MethodNotAllowed",Mn[Mn.NotAcceptable=406]="NotAcceptable",Mn[Mn.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",Mn[Mn.RequestTimeout=408]="RequestTimeout",Mn[Mn.Conflict=409]="Conflict",Mn[Mn.Gone=410]="Gone",Mn[Mn.LengthRequired=411]="LengthRequired",Mn[Mn.PreconditionFailed=412]="PreconditionFailed",Mn[Mn.PayloadTooLarge=413]="PayloadTooLarge",Mn[Mn.UriTooLong=414]="UriTooLong",Mn[Mn.UnsupportedMediaType=415]="UnsupportedMediaType",Mn[Mn.RangeNotSatisfiable=416]="RangeNotSatisfiable",Mn[Mn.ExpectationFailed=417]="ExpectationFailed",Mn[Mn.ImATeapot=418]="ImATeapot",Mn[Mn.MisdirectedRequest=421]="MisdirectedRequest",Mn[Mn.UnprocessableEntity=422]="UnprocessableEntity",Mn[Mn.Locked=423]="Locked",Mn[Mn.FailedDependency=424]="FailedDependency",Mn[Mn.TooEarly=425]="TooEarly",Mn[Mn.UpgradeRequired=426]="UpgradeRequired",Mn[Mn.PreconditionRequired=428]="PreconditionRequired",Mn[Mn.TooManyRequests=429]="TooManyRequests",Mn[Mn.RequestHeaderFieldsTooLarge=431]="RequestHeaderFieldsTooLarge",Mn[Mn.UnavailableForLegalReasons=451]="UnavailableForLegalReasons",Mn[Mn.InternalServerError=500]="InternalServerError",Mn[Mn.NotImplemented=501]="NotImplemented",Mn[Mn.BadGateway=502]="BadGateway",Mn[Mn.ServiceUnavailable=503]="ServiceUnavailable",Mn[Mn.GatewayTimeout=504]="GatewayTimeout",Mn[Mn.HttpVersionNotSupported=505]="HttpVersionNotSupported",Mn[Mn.VariantAlsoNegotiates=506]="VariantAlsoNegotiates",Mn[Mn.InsufficientStorage=507]="InsufficientStorage",Mn[Mn.LoopDetected=508]="LoopDetected",Mn[Mn.NotExtended=510]="NotExtended",Mn[Mn.NetworkAuthenticationRequired=511]="NetworkAuthenticationRequired",Mn}(nt||{});function Je(Mn,Qn){return{body:Qn,headers:Mn.headers,context:Mn.context,observe:Mn.observe,params:Mn.params,reportProgress:Mn.reportProgress,responseType:Mn.responseType,withCredentials:Mn.withCredentials,transferCache:Mn.transferCache}}let ze=(()=>{class Mn{constructor(Zn){this.handler=Zn}request(Zn,fi,yi={}){let tr;if(Zn instanceof Ee)tr=Zn;else{let Sr,ds;Sr=yi.headers instanceof u?yi.headers:new u(yi.headers),yi.params&&(ds=yi.params instanceof ae?yi.params:new ae({fromObject:yi.params})),tr=new Ee(Zn,fi,void 0!==yi.body?yi.body:null,{headers:Sr,context:yi.context,params:ds,reportProgress:yi.reportProgress,responseType:yi.responseType||"json",withCredentials:yi.withCredentials,transferCache:yi.transferCache})}const qi=(0,h.of)(tr).pipe((0,M.H)(Sr=>this.handler.handle(Sr)));if(Zn instanceof Ee||"events"===yi.observe)return qi;const Br=qi.pipe((0,P.p)(Sr=>Sr instanceof ct));switch(yi.observe||"body"){case"body":switch(tr.responseType){case"arraybuffer":return Br.pipe((0,x.T)(Sr=>{if(null!==Sr.body&&!(Sr.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return Sr.body}));case"blob":return Br.pipe((0,x.T)(Sr=>{if(null!==Sr.body&&!(Sr.body instanceof Blob))throw new Error("Response is not a Blob.");return Sr.body}));case"text":return Br.pipe((0,x.T)(Sr=>{if(null!==Sr.body&&"string"!=typeof Sr.body)throw new Error("Response is not a string.");return Sr.body}));default:return Br.pipe((0,x.T)(Sr=>Sr.body))}case"response":return Br;default:throw new Error(`Unreachable: unhandled observe type ${yi.observe}}`)}}delete(Zn,fi={}){return this.request("DELETE",Zn,fi)}get(Zn,fi={}){return this.request("GET",Zn,fi)}head(Zn,fi={}){return this.request("HEAD",Zn,fi)}jsonp(Zn,fi){return this.request("JSONP",Zn,{params:(new ae).append(fi,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(Zn,fi={}){return this.request("OPTIONS",Zn,fi)}patch(Zn,fi,yi={}){return this.request("PATCH",Zn,Je(yi,fi))}post(Zn,fi,yi={}){return this.request("POST",Zn,Je(yi,fi))}put(Zn,fi,yi={}){return this.request("PUT",Zn,Je(yi,fi))}static{this.\u0275fac=function(fi){return new(fi||Mn)(n.KVO(l))}}static{this.\u0275prov=n.jDH({token:Mn,factory:Mn.\u0275fac})}}return Mn})();function ve(Mn,Qn){return Qn(Mn)}function ue(Mn,Qn){return(Zn,fi)=>Qn.intercept(Zn,{handle:yi=>Mn(yi,fi)})}const se=new n.nKC(""),Ce=new n.nKC(""),be=new n.nKC(""),rt=new n.nKC("");function me(){let Mn=null;return(Qn,Zn)=>{null===Mn&&(Mn=((0,n.WQX)(se,{optional:!0})??[]).reduceRight(ue,ve));const fi=(0,n.WQX)(n.TgB),yi=fi.add();return Mn(Qn,Zn).pipe((0,A.j)(()=>fi.remove(yi)))}}let Se=(()=>{class Mn extends l{constructor(Zn,fi){super(),this.backend=Zn,this.injector=fi,this.chain=null,this.pendingTasks=(0,n.WQX)(n.TgB);const yi=(0,n.WQX)(rt,{optional:!0});this.backend=yi??Zn}handle(Zn){if(null===this.chain){const yi=Array.from(new Set([...this.injector.get(Ce),...this.injector.get(be,[])]));this.chain=yi.reduceRight((tr,qi)=>function et(Mn,Qn,Zn){return(fi,yi)=>(0,n.N4e)(Zn,()=>Qn(fi,tr=>Mn(tr,yi)))}(tr,qi,this.injector),ve)}const fi=this.pendingTasks.add();return this.chain(Zn,yi=>this.backend.handle(yi)).pipe((0,A.j)(()=>this.pendingTasks.remove(fi)))}static{this.\u0275fac=function(fi){return new(fi||Mn)(n.KVO(r),n.KVO(n.uvJ))}}static{this.\u0275prov=n.jDH({token:Mn,factory:Mn.\u0275fac})}}return Mn})();const Zt=/^\)\]\}',?\n/;let Xt=(()=>{class Mn{constructor(Zn){this.xhrFactory=Zn}handle(Zn){if("JSONP"===Zn.method)throw new n.wOt(-2800,!1);const fi=this.xhrFactory;return(fi.\u0275loadImpl?(0,S.H)(fi.\u0275loadImpl()):(0,h.of)(null)).pipe((0,g.n)(()=>new C.c(tr=>{const qi=fi.build();if(qi.open(Zn.method,Zn.urlWithParams),Zn.withCredentials&&(qi.withCredentials=!0),Zn.headers.forEach((Oi,Wi)=>qi.setRequestHeader(Oi,Wi.join(","))),Zn.headers.has("Accept")||qi.setRequestHeader("Accept","application/json, text/plain, */*"),!Zn.headers.has("Content-Type")){const Oi=Zn.detectContentTypeHeader();null!==Oi&&qi.setRequestHeader("Content-Type",Oi)}if(Zn.responseType){const Oi=Zn.responseType.toLowerCase();qi.responseType="json"!==Oi?Oi:"text"}const Br=Zn.serializeBody();let Sr=null;const ds=()=>{if(null!==Sr)return Sr;const Oi=qi.statusText||"OK",Wi=new u(qi.getAllResponseHeaders()),mr=function nn(Mn){return"responseURL"in Mn&&Mn.responseURL?Mn.responseURL:/^X-Request-URL:/m.test(Mn.getAllResponseHeaders())?Mn.getResponseHeader("X-Request-URL"):null}(qi)||Zn.url;return Sr=new Qe({headers:Wi,status:qi.status,statusText:Oi,url:mr}),Sr},bs=()=>{let{headers:Oi,status:Wi,statusText:mr,url:qr}=ds(),ms=null;Wi!==nt.NoContent&&(ms=typeof qi.response>"u"?qi.responseText:qi.response),0===Wi&&(Wi=ms?nt.Ok:0);let us=Wi>=200&&Wi<300;if("json"===Zn.responseType&&"string"==typeof ms){const Qs=ms;ms=ms.replace(Zt,"");try{ms=""!==ms?JSON.parse(ms):null}catch(ks){ms=Qs,us&&(us=!1,ms={error:ks,text:ms})}}us?(tr.next(new ct({body:ms,headers:Oi,status:Wi,statusText:mr,url:qr||void 0})),tr.complete()):tr.error(new Ge({error:ms,headers:Oi,status:Wi,statusText:mr,url:qr||void 0}))},An=Oi=>{const{url:Wi}=ds(),mr=new Ge({error:Oi,status:qi.status||0,statusText:qi.statusText||"Unknown Error",url:Wi||void 0});tr.error(mr)};let zn=!1;const Jn=Oi=>{zn||(tr.next(ds()),zn=!0);let Wi={type:it.DownloadProgress,loaded:Oi.loaded};Oi.lengthComputable&&(Wi.total=Oi.total),"text"===Zn.responseType&&qi.responseText&&(Wi.partialText=qi.responseText),tr.next(Wi)},di=Oi=>{let Wi={type:it.UploadProgress,loaded:Oi.loaded};Oi.lengthComputable&&(Wi.total=Oi.total),tr.next(Wi)};return qi.addEventListener("load",bs),qi.addEventListener("error",An),qi.addEventListener("timeout",An),qi.addEventListener("abort",An),Zn.reportProgress&&(qi.addEventListener("progress",Jn),null!==Br&&qi.upload&&qi.upload.addEventListener("progress",di)),qi.send(Br),tr.next({type:it.Sent}),()=>{qi.removeEventListener("error",An),qi.removeEventListener("abort",An),qi.removeEventListener("load",bs),qi.removeEventListener("timeout",An),Zn.reportProgress&&(qi.removeEventListener("progress",Jn),null!==Br&&qi.upload&&qi.upload.removeEventListener("progress",di)),qi.readyState!==qi.DONE&&qi.abort()}})))}static{this.\u0275fac=function(fi){return new(fi||Mn)(n.KVO(m.N0))}}static{this.\u0275prov=n.jDH({token:Mn,factory:Mn.\u0275fac})}}return Mn})();const lt=new n.nKC(""),wt=new n.nKC("",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),Ht=new n.nKC("",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class bn{}let Ut=(()=>{class Mn{constructor(Zn,fi,yi){this.doc=Zn,this.platform=fi,this.cookieName=yi,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const Zn=this.doc.cookie||"";return Zn!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,m._b)(Zn,this.cookieName),this.lastCookieString=Zn),this.lastToken}static{this.\u0275fac=function(fi){return new(fi||Mn)(n.KVO(m.qQ),n.KVO(n.Agw),n.KVO(wt))}}static{this.\u0275prov=n.jDH({token:Mn,factory:Mn.\u0275fac})}}return Mn})();function Bt(Mn,Qn){const Zn=Mn.url.toLowerCase();if(!(0,n.WQX)(lt)||"GET"===Mn.method||"HEAD"===Mn.method||Zn.startsWith("http://")||Zn.startsWith("https://"))return Qn(Mn);const fi=(0,n.WQX)(bn).getToken(),yi=(0,n.WQX)(Ht);return null!=fi&&!Mn.headers.has(yi)&&(Mn=Mn.clone({headers:Mn.headers.set(yi,fi)})),Qn(Mn)}var V=function(Mn){return Mn[Mn.Interceptors=0]="Interceptors",Mn[Mn.LegacyInterceptors=1]="LegacyInterceptors",Mn[Mn.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",Mn[Mn.NoXsrfProtection=3]="NoXsrfProtection",Mn[Mn.JsonpSupport=4]="JsonpSupport",Mn[Mn.RequestsMadeViaParent=5]="RequestsMadeViaParent",Mn[Mn.Fetch=6]="Fetch",Mn}(V||{});function de(Mn,Qn){return{\u0275kind:Mn,\u0275providers:Qn}}function ge(...Mn){const Qn=[ze,Xt,Se,{provide:l,useExisting:Se},{provide:r,useExisting:Xt},{provide:Ce,useValue:Bt,multi:!0},{provide:lt,useValue:!0},{provide:bn,useClass:Ut}];for(const Zn of Mn)Qn.push(...Zn.\u0275providers);return(0,n.EmA)(Qn)}const Wt=new n.nKC("");let Zi=(()=>{class Mn{static{this.\u0275fac=function(fi){return new(fi||Mn)}}static{this.\u0275mod=n.$C({type:Mn})}static{this.\u0275inj=n.G2t({providers:[ge(de(V.LegacyInterceptors,[{provide:Wt,useFactory:me},{provide:Ce,useExisting:Wt,multi:!0}]))]})}}return Mn})()},58527:(St,z,s)=>{"use strict";s.d(z,{bc$:()=>Va,iLQ:()=>oO,sZ2:()=>qo,hnV:()=>NM,Hbi:()=>_T,o8S:()=>Qp,BIS:()=>Mu,gRc:()=>$M,Ql9:()=>Wx,OM3:()=>em,Ocv:()=>Jx,abz:()=>ed,Z63:()=>jo,aKT:()=>Vd,uvJ:()=>lr,zcH:()=>Hc,bkB:()=>td,y_5:()=>Ho,$GK:()=>fs,nKC:()=>yi,zZn:()=>Yl,_q3:()=>pO,MKu:()=>gO,xe9:()=>Ib,Co$:()=>$y,Vns:()=>Df,SKi:()=>ql,Xx1:()=>no,Agw:()=>Tl,PLl:()=>vc,rOR:()=>Ju,sFG:()=>vE,_9s:()=>ty,czy:()=>gf,WPN:()=>ru,kdw:()=>Co,C4Q:()=>Yg,NYb:()=>Fx,giA:()=>wM,RxE:()=>AM,c1b:()=>Mv,gXe:()=>ps,mal:()=>ly,Af3:()=>Mr,L39:()=>$T,Ol2:()=>Yy,w6W:()=>v1,oH4:()=>jM,SmG:()=>iT,Rfq:()=>Bt,WQX:()=>ar,QuC:()=>wr,EmA:()=>Bo,fpN:()=>vT,HJs:()=>tI,N4e:()=>io,O8t:()=>YT,An2:()=>Ev,H3F:()=>OM,H8p:()=>ua,KH2:()=>$p,TgB:()=>Op,wOt:()=>le,WHO:()=>TM,e01:()=>IM,lNU:()=>me,h9k:()=>Yf,$MX:()=>af,ZF7:()=>sh,Kcf:()=>Iu,e5t:()=>Pl,UyX:()=>Im,cWb:()=>ko,osQ:()=>Ac,H5H:()=>y0,Zy3:()=>Xe,mq5:()=>QS,JZv:()=>nn,LfX:()=>Ei,plB:()=>Uh,jNT:()=>rO,zjR:()=>RM,TL$:()=>Hs,Tbb:()=>gt,rcV:()=>Ll,Vt3:()=>B_,Mj6:()=>ca,GFd:()=>Ky,OA$:()=>Xo,Jv_:()=>jP,aNF:()=>WP,R7$:()=>kg,BMQ:()=>J_,qtP:()=>q_,jRB:()=>e0,HbH:()=>NS,ZvI:()=>GS,AVh:()=>l0,vxM:()=>zS,wni:()=>Ji,nv$:()=>fS,g25:()=>pS,VBU:()=>$n,FsC:()=>Hi,jDH:()=>Pr,G2t:()=>js,$C:()=>Un,EJ8:()=>Nr,rXU:()=>ch,nrm:()=>p0,eu8:()=>m0,bVm:()=>Bv,qex:()=>Uv,k0s:()=>Wp,j41:()=>Fv,RV6:()=>YS,xGo:()=>qc,Mr5:()=>v0,KVO:()=>Ks,kS0:()=>Ed,QTQ:()=>fp,bIt:()=>A0,lsd:()=>Cs,joV:()=>Vl,qSk:()=>$d,XpG:()=>Yp,nI1:()=>rM,bMT:()=>sM,i5U:()=>oM,brH:()=>aM,SdG:()=>Wv,NAR:()=>jd,Y8G:()=>o0,FS9:()=>M0,lJ4:()=>$P,eq3:()=>XP,l_i:()=>YP,sMw:()=>QP,ziG:()=>ZP,zJS:()=>JP,mGM:()=>Ts,sdS:()=>ea,Dyx:()=>$S,Z7z:()=>jp,Vm6:()=>KS,Njj:()=>Vo,tSv:()=>Cg,eBV:()=>go,npT:()=>uf,f$h:()=>hf,B4B:()=>To,n$t:()=>_g,wjB:()=>zP,xc7:()=>a0,Kam:()=>O0,zvX:()=>_0,DNE:()=>lm,C5r:()=>lM,EFF:()=>RP,JRh:()=>jA,SpI:()=>Ob,Lme:()=>WA,E5c:()=>zA,DH7:()=>GP,mxI:()=>$A,R50:()=>KA,GBs:()=>$r}),s(70650);let h=null,S=1;const M=Symbol("SIGNAL");function P(a){const d=h;return h=a,d}function u(a){if((!k(a)||a.dirty)&&(a.dirty||a.lastCleanEpoch!==S)){if(!a.producerMustRecompute(a)&&!U(a))return a.dirty=!1,void(a.lastCleanEpoch=S);a.producerRecomputeValue(a),a.dirty=!1,a.lastCleanEpoch=S}}function U(a){X(a);for(let d=0;d<a.producerNode.length;d++){const f=a.producerNode[d],b=a.producerLastReadVersion[d];if(b!==f.version||(u(f),b!==f.version))return!0}return!1}function G(a,d){if(function q(a){a.liveConsumerNode??=[],a.liveConsumerIndexOfThis??=[]}(a),X(a),1===a.liveConsumerNode.length)for(let b=0;b<a.producerNode.length;b++)G(a.producerNode[b],a.producerIndexOfThis[b]);const f=a.liveConsumerNode.length-1;if(a.liveConsumerNode[d]=a.liveConsumerNode[f],a.liveConsumerIndexOfThis[d]=a.liveConsumerIndexOfThis[f],a.liveConsumerNode.length--,a.liveConsumerIndexOfThis.length--,d<a.liveConsumerNode.length){const b=a.liveConsumerIndexOfThis[d],N=a.liveConsumerNode[d];X(N),N.producerIndexOfThis[b]=d}}function k(a){return a.consumerIsAlwaysLive||(a?.liveConsumerNode?.length??0)>0}function X(a){a.producerNode??=[],a.producerIndexOfThis??=[],a.producerLastReadVersion??=[]}let Qe=null;var et=s(80583),se=s(10399),Ce=s(26513),be=s(83915);const me="https://g.co/ng/security#xss";class le extends Error{constructor(d,f){super(Xe(d,f)),this.code=d}}function Xe(a,d){return`NG0${Math.abs(a)}${d?": "+d:""}`}function sn(a){return{toString:a}.toString()}const yn="__parameters__";function Jt(a,d,f){return sn(()=>{const b=function Qt(a){return function(...f){if(a){const b=a(...f);for(const N in b)this[N]=b[N]}}}(d);function N(...K){if(this instanceof N)return b.apply(this,K),this;const he=new N(...K);return we.annotation=he,we;function we(qe,zt,mn){const Ln=qe.hasOwnProperty(yn)?qe[yn]:Object.defineProperty(qe,yn,{value:[]})[yn];for(;Ln.length<=mn;)Ln.push(null);return(Ln[mn]=Ln[mn]||[]).push(he),qe}}return f&&(N.prototype=Object.create(f.prototype)),N.prototype.ngMetadataName=a,N.annotationCls=N,N})}const nn=globalThis;function Ue(a){for(let d in a)if(a[d]===Ue)return d;throw Error("Could not find renamed property on target object.")}function wt(a,d){for(const f in d)d.hasOwnProperty(f)&&!a.hasOwnProperty(f)&&(a[f]=d[f])}function gt(a){if("string"==typeof a)return a;if(Array.isArray(a))return"["+a.map(gt).join(", ")+"]";if(null==a)return""+a;if(a.overriddenName)return`${a.overriddenName}`;if(a.name)return`${a.name}`;const d=a.toString();if(null==d)return""+d;const f=d.indexOf("\n");return-1===f?d:d.substring(0,f)}function Ht(a,d){return null==a||""===a?null===d?"":d:null==d||""===d?a:a+" "+d}const Ut=Ue({__forward_ref__:Ue});function Bt(a){return a.__forward_ref__=Bt,a.toString=function(){return gt(this())},a}function Le(a){return V(a)?a():a}function V(a){return"function"==typeof a&&a.hasOwnProperty(Ut)&&a.__forward_ref__===Bt}function Kn(a,d,f,b){throw new Error(`ASSERTION ERROR: ${a}`+(null==b?"":` [Expected=> ${f} ${b} ${d} <=Actual]`))}function Pr(a){return{token:a.token,providedIn:a.providedIn||null,factory:a.factory,value:void 0}}function js(a){return{providers:a.providers||[],imports:a.imports||[]}}function Vn(a){return ai(a,Mn)||ai(a,Zn)}function Ei(a){return null!==Vn(a)}function ai(a,d){return a.hasOwnProperty(d)?a[d]:null}function Lr(a){return a&&(a.hasOwnProperty(Qn)||a.hasOwnProperty(fi))?a[Qn]:null}const Mn=Ue({\u0275prov:Ue}),Qn=Ue({\u0275inj:Ue}),Zn=Ue({ngInjectableDef:Ue}),fi=Ue({ngInjectorDef:Ue});class yi{constructor(d,f){this._desc=d,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof f?this.__NG_ELEMENT_ID__=f:void 0!==f&&(this.\u0275prov=Pr({token:this,providedIn:f.providedIn||"root",factory:f.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function Oi(a){return a&&!!a.\u0275providers}const Wi=Ue({\u0275cmp:Ue}),mr=Ue({\u0275dir:Ue}),qr=Ue({\u0275pipe:Ue}),ms=Ue({\u0275mod:Ue}),us=Ue({\u0275fac:Ue}),Qs=Ue({__NG_ELEMENT_ID__:Ue}),ks=Ue({__NG_ENV_ID__:Ue});function Ar(a){return"string"==typeof a?a:null==a?"":String(a)}function fa(a,d){throw new le(-201,!1)}var fs=function(a){return a[a.Default=0]="Default",a[a.Host=1]="Host",a[a.Self=2]="Self",a[a.SkipSelf=4]="SkipSelf",a[a.Optional=8]="Optional",a}(fs||{});let Io;function Fo(){return Io}function qs(a){const d=Io;return Io=a,d}function So(a,d,f){const b=Vn(a);return b&&"root"==b.providedIn?void 0===b.value?b.value=b.factory():b.value:f&fs.Optional?null:void 0!==d?d:void fa()}const Mo={},As="__NG_DI_FLAG__",Uo="ngTempTokenPath",pa=/\n/gm,Ha="__source";let bo;function Es(a){const d=bo;return bo=a,d}function eo(a,d=fs.Default){if(void 0===bo)throw new le(-203,!1);return null===bo?So(a,void 0,d):bo.get(a,d&fs.Optional?null:void 0,d)}function Ks(a,d=fs.Default){return(Fo()||eo)(Le(a),d)}function ar(a,d=fs.Default){return Ks(a,la(d))}function la(a){return typeof a>"u"||"number"==typeof a?a:(a.optional&&8)|(a.host&&1)|(a.self&&2)|(a.skipSelf&&4)}function wo(a){const d=[];for(let f=0;f<a.length;f++){const b=Le(a[f]);if(Array.isArray(b)){if(0===b.length)throw new le(900,!1);let N,K=fs.Default;for(let he=0;he<b.length;he++){const we=b[he],qe=Ro(we);"number"==typeof qe?-1===qe?N=we.token:K|=qe:N=we}d.push(Ks(N,K))}else d.push(Ks(b))}return d}function na(a,d){return a[As]=d,a.prototype[As]=d,a}function Ro(a){return a[As]}const Ho=na(Jt("Inject",a=>({token:a})),-1),no=na(Jt("Optional"),8),Co=na(Jt("SkipSelf"),4);function _o(a,d){return a.hasOwnProperty(us)?a[us]:null}function Jo(a,d){a.forEach(f=>Array.isArray(f)?Jo(f,d):d(f))}function ka(a,d,f){d>=a.length?a.push(f):a.splice(d,0,f)}function il(a,d){return d>=a.length-1?a.pop():a.splice(d,1)[0]}function uo(a,d,f){let b=aa(a,d);return b>=0?a[1|b]=f:(b=~b,function Sn(a,d,f,b){let N=a.length;if(N==d)a.push(f,b);else if(1===N)a.push(b,a[0]),a[0]=f;else{for(N--,a.push(a[N-1],a[N]);N>d;)a[N]=a[N-2],N--;a[d]=f,a[d+1]=b}}(a,b,d,f)),b}function $o(a,d){const f=aa(a,d);if(f>=0)return a[1|f]}function aa(a,d){return function _a(a,d,f){let b=0,N=a.length>>f;for(;N!==b;){const K=b+(N-b>>1),he=a[K<<f];if(d===he)return K<<f;he>d?N=K:b=K+1}return~(N<<f)}(a,d,1)}const zi={},Ae=[],jo=new yi(""),fl=new yi("",-1),Wa=new yi("");class Xi{get(d,f=Mo){if(f===Mo){const b=new Error(`NullInjectorError: No provider for ${gt(d)}!`);throw b.name="NullInjectorError",b}return f}}var Ao=function(a){return a[a.OnPush=0]="OnPush",a[a.Default=1]="Default",a}(Ao||{}),ps=function(a){return a[a.Emulated=0]="Emulated",a[a.None=2]="None",a[a.ShadowDom=3]="ShadowDom",a}(ps||{}),ca=function(a){return a[a.None=0]="None",a[a.SignalBased=1]="SignalBased",a[a.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",a}(ca||{});function al(a,d,f){let b=a.length;for(;;){const N=a.indexOf(d,f);if(-1===N)return N;if(0===N||a.charCodeAt(N-1)<=32){const K=d.length;if(N+K===b||a.charCodeAt(N+K)<=32)return N}f=N+1}}function ga(a,d,f){let b=0;for(;b<f.length;){const N=f[b];if("number"==typeof N){if(0!==N)break;b++;const K=f[b++],he=f[b++],we=f[b++];a.setAttribute(d,he,we,K)}else{const K=N,he=f[++b];Dt(K)?a.setProperty(d,K,he):a.setAttribute(d,K,he),b++}}return b}function on(a){return 3===a||4===a||6===a}function Dt(a){return 64===a.charCodeAt(0)}function Mt(a,d){if(null!==d&&0!==d.length)if(null===a||0===a.length)a=d.slice();else{let f=-1;for(let b=0;b<d.length;b++){const N=d[b];"number"==typeof N?f=N:0===f||Dn(a,f,N,null,-1===f||2===f?d[++b]:null)}}return a}function Dn(a,d,f,b,N){let K=0,he=a.length;if(-1===d)he=-1;else for(;K<a.length;){const we=a[K++];if("number"==typeof we){if(we===d){he=-1;break}if(we>d){he=K-1;break}}}for(;K<a.length;){const we=a[K];if("number"==typeof we)break;if(we===f){if(null===b)return void(null!==N&&(a[K+1]=N));if(b===a[K+1])return void(a[K+2]=N)}K++,null!==b&&K++,null!==N&&K++}-1!==he&&(a.splice(he,0,d),K=he+1),a.splice(K++,0,f),null!==b&&a.splice(K++,0,b),null!==N&&a.splice(K++,0,N)}const qn="ng-template";function Yr(a,d,f,b){let N=0;if(b){for(;N<d.length&&"string"==typeof d[N];N+=2)if("class"===d[N]&&-1!==al(d[N+1].toLowerCase(),f,0))return!0}else if(_s(a))return!1;if(N=d.indexOf(1,N),N>-1){let K;for(;++N<d.length&&"string"==typeof(K=d[N]);)if(K.toLowerCase()===f)return!0}return!1}function _s(a){return 4===a.type&&a.value!==qn}function Do(a,d,f){return d===(4!==a.type||f?a.value:qn)}function Ws(a,d,f){let b=4;const N=a.attrs,K=null!==N?function hs(a){for(let d=0;d<a.length;d++)if(on(a[d]))return d;return a.length}(N):0;let he=!1;for(let we=0;we<d.length;we++){const qe=d[we];if("number"!=typeof qe){if(!he)if(4&b){if(b=2|1&b,""!==qe&&!Do(a,qe,f)||""===qe&&1===d.length){if(Bi(b))return!1;he=!0}}else if(8&b){if(null===N||!Yr(a,N,qe,f)){if(Bi(b))return!1;he=!0}}else{const zt=d[++we],mn=Di(qe,N,_s(a),f);if(-1===mn){if(Bi(b))return!1;he=!0;continue}if(""!==zt){let Ln;if(Ln=mn>K?"":N[mn+1].toLowerCase(),2&b&&zt!==Ln){if(Bi(b))return!1;he=!0}}}}else{if(!he&&!Bi(b)&&!Bi(qe))return!1;if(he&&Bi(qe))continue;he=!1,b=qe|1&b}}return Bi(b)||he}function Bi(a){return!(1&a)}function Di(a,d,f,b){if(null===d)return-1;let N=0;if(b||!f){let K=!1;for(;N<d.length;){const he=d[N];if(he===a)return N;if(3===he||6===he)K=!0;else{if(1===he||2===he){let we=d[++N];for(;"string"==typeof we;)we=d[++N];continue}if(4===he)break;if(0===he){N+=4;continue}}N+=K?1:2}return-1}return function Is(a,d){let f=a.indexOf(4);if(f>-1)for(f++;f<a.length;){const b=a[f];if("number"==typeof b)return-1;if(b===d)return f;f++}return-1}(d,a)}function Ea(a,d,f=!1){for(let b=0;b<d.length;b++)if(Ws(a,d[b],f))return!0;return!1}function da(a,d){e:for(let f=0;f<d.length;f++){const b=d[f];if(a.length===b.length){for(let N=0;N<a.length;N++)if(a[N]!==b[N])continue e;return!0}}return!1}function jr(a,d){return a?":not("+d.trim()+")":d}function ia(a){let d=a[0],f=1,b=2,N="",K=!1;for(;f<a.length;){let he=a[f];if("string"==typeof he)if(2&b){const we=a[++f];N+="["+he+(we.length>0?'="'+we+'"':"")+"]"}else 8&b?N+="."+he:4&b&&(N+=" "+he);else""!==N&&!Bi(he)&&(d+=jr(K,N),N=""),b=he,K=K||!Bi(b);f++}return""!==N&&(d+=jr(K,N)),d}function $n(a){return sn(()=>{const d=Vs(a),f={...d,decls:a.decls,vars:a.vars,template:a.template,consts:a.consts||null,ngContentSelectors:a.ngContentSelectors,onPush:a.changeDetection===Ao.OnPush,directiveDefs:null,pipeDefs:null,dependencies:d.standalone&&a.dependencies||null,getStandaloneInjector:null,signals:a.signals??!1,data:a.data||{},encapsulation:a.encapsulation||ps.Emulated,styles:a.styles||Ae,_:null,schemas:a.schemas||null,tView:null,id:""};Ma(f);const b=a.dependencies;return f.directiveDefs=Ya(b,!1),f.pipeDefs=Ya(b,!0),f.id=function za(a){let d=0;const f=[a.selectors,a.ngContentSelectors,a.hostVars,a.hostAttrs,a.consts,a.vars,a.decls,a.encapsulation,a.standalone,a.signals,a.exportAs,JSON.stringify(a.inputs),JSON.stringify(a.outputs),Object.getOwnPropertyNames(a.type.prototype),!!a.contentQueries,!!a.viewQuery].join("|");for(const N of f)d=Math.imul(31,d)+N.charCodeAt(0)|0;return d+=2147483648,"c"+d}(f),f})}function mt(a){return Or(a)||es(a)}function Yt(a){return null!==a}function Un(a){return sn(()=>({type:a.type,bootstrap:a.bootstrap||Ae,declarations:a.declarations||Ae,imports:a.imports||Ae,exports:a.exports||Ae,transitiveCompileScopes:null,schemas:a.schemas||null,id:a.id||null}))}function ii(a,d){if(null==a)return zi;const f={};for(const b in a)if(a.hasOwnProperty(b)){const N=a[b];let K,he,we=ca.None;Array.isArray(N)?(we=N[0],K=N[1],he=N[2]??K):(K=N,he=N),d?(f[K]=we!==ca.None?[b,we]:b,d[K]=he):f[K]=b}return f}function Hi(a){return sn(()=>{const d=Vs(a);return Ma(d),d})}function Nr(a){return{type:a.type,name:a.name,factory:null,pure:!1!==a.pure,standalone:!0===a.standalone,onDestroy:a.type.prototype.ngOnDestroy||null}}function Or(a){return a[Wi]||null}function es(a){return a[mr]||null}function Zs(a){return a[qr]||null}function wr(a){const d=Or(a)||es(a)||Zs(a);return null!==d&&d.standalone}function Us(a,d){const f=a[ms]||null;if(!f&&!0===d)throw new Error(`Type ${gt(a)} does not have '\u0275mod' property.`);return f}function Vs(a){const d={};return{type:a.type,providersResolver:null,factory:null,hostBindings:a.hostBindings||null,hostVars:a.hostVars||0,hostAttrs:a.hostAttrs||null,contentQueries:a.contentQueries||null,declaredInputs:d,inputTransforms:null,inputConfig:a.inputs||zi,exportAs:a.exportAs||null,standalone:!0===a.standalone,signals:!0===a.signals,selectors:a.selectors||Ae,viewQuery:a.viewQuery||null,features:a.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:ii(a.inputs,d),outputs:ii(a.outputs),debugInfo:null}}function Ma(a){a.features?.forEach(d=>d(a))}function Ya(a,d){if(!a)return null;const f=d?Zs:mt;return()=>("function"==typeof a?a():a).map(b=>f(b)).filter(Yt)}function Bo(a){return{\u0275providers:a}}function li(...a){return{\u0275providers:Ii(0,a),\u0275fromNgModule:!0}}function Ii(a,...d){const f=[],b=new Set;let N;const K=he=>{f.push(he)};return Jo(d,he=>{const we=he;Dr(we,K,[],b)&&(N||=[],N.push(we))}),void 0!==N&&Pi(N,K),f}function Pi(a,d){for(let f=0;f<a.length;f++){const{ngModule:b,providers:N}=a[f];ws(N,K=>{d(K,b)})}}function Dr(a,d,f,b){if(!(a=Le(a)))return!1;let N=null,K=Lr(a);const he=!K&&Or(a);if(K||he){if(he&&!he.standalone)return!1;N=a}else{const qe=a.ngModule;if(K=Lr(qe),!K)return!1;N=qe}const we=b.has(N);if(he){if(we)return!1;if(b.add(N),he.dependencies){const qe="function"==typeof he.dependencies?he.dependencies():he.dependencies;for(const zt of qe)Dr(zt,d,f,b)}}else{if(!K)return!1;{if(null!=K.imports&&!we){let zt;b.add(N);try{Jo(K.imports,mn=>{Dr(mn,d,f,b)&&(zt||=[],zt.push(mn))})}finally{}void 0!==zt&&Pi(zt,d)}if(!we){const zt=_o(N)||(()=>new N);d({provide:N,useFactory:zt,deps:Ae},N),d({provide:Wa,useValue:N,multi:!0},N),d({provide:jo,useValue:()=>Ks(N),multi:!0},N)}const qe=K.providers;if(null!=qe&&!we){const zt=a;ws(qe,mn=>{d(mn,zt)})}}}return N!==a&&void 0!==a.providers}function ws(a,d){for(let f of a)Oi(f)&&(f=f.\u0275providers),Array.isArray(f)?ws(f,d):d(f)}const oo=Ue({provide:String,useValue:Ue});function ao(a){return null!==a&&"object"==typeof a&&oo in a}function Vr(a){return"function"==typeof a}const ua=new yi(""),sa={},rl={};let ll;function Os(){return void 0===ll&&(ll=new Xi),ll}class lr{}class zs extends lr{get destroyed(){return this._destroyed}constructor(d,f,b,N){super(),this.parent=f,this.source=b,this.scopes=N,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,pl(d,he=>this.processProvider(he)),this.records.set(fl,ya(void 0,this)),N.has("environment")&&this.records.set(lr,ya(void 0,this));const K=this.records.get(ua);null!=K&&"string"==typeof K.value&&this.scopes.add(K.value),this.injectorDefTypes=new Set(this.get(Wa,Ae,fs.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;const d=P(null);try{for(const b of this._ngOnDestroyHooks)b.ngOnDestroy();const f=this._onDestroyHooks;this._onDestroyHooks=[];for(const b of f)b()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),P(d)}}onDestroy(d){return this.assertNotDestroyed(),this._onDestroyHooks.push(d),()=>this.removeOnDestroy(d)}runInContext(d){this.assertNotDestroyed();const f=Es(this),b=qs(void 0);try{return d()}finally{Es(f),qs(b)}}get(d,f=Mo,b=fs.Default){if(this.assertNotDestroyed(),d.hasOwnProperty(ks))return d[ks](this);b=la(b);const K=Es(this),he=qs(void 0);try{if(!(b&fs.SkipSelf)){let qe=this.records.get(d);if(void 0===qe){const zt=function Ta(a){return"function"==typeof a||"object"==typeof a&&a instanceof yi}(d)&&Vn(d);qe=zt&&this.injectableDefInScope(zt)?ya(xa(d),sa):null,this.records.set(d,qe)}if(null!=qe)return this.hydrate(d,qe)}return(b&fs.Self?Os():this.parent).get(d,f=b&fs.Optional&&f===Mo?null:f)}catch(we){if("NullInjectorError"===we.name){if((we[Uo]=we[Uo]||[]).unshift(gt(d)),K)throw we;return function ja(a,d,f,b){const N=a[Uo];throw d[Ha]&&N.unshift(d[Ha]),a.message=function Eo(a,d,f,b=null){a=a&&"\n"===a.charAt(0)&&"\u0275"==a.charAt(1)?a.slice(2):a;let N=gt(d);if(Array.isArray(d))N=d.map(gt).join(" -> ");else if("object"==typeof d){let K=[];for(let he in d)if(d.hasOwnProperty(he)){let we=d[he];K.push(he+":"+("string"==typeof we?JSON.stringify(we):gt(we)))}N=`{${K.join(", ")}}`}return`${f}${b?"("+b+")":""}[${N}]: ${a.replace(pa,"\n ")}`}("\n"+a.message,N,f,b),a.ngTokenPath=N,a[Uo]=null,a}(we,d,"R3InjectorError",this.source)}throw we}finally{qs(he),Es(K)}}resolveInjectorInitializers(){const d=P(null),f=Es(this),b=qs(void 0);try{const K=this.get(jo,Ae,fs.Self);for(const he of K)he()}finally{Es(f),qs(b),P(d)}}toString(){const d=[],f=this.records;for(const b of f.keys())d.push(gt(b));return`R3Injector[${d.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new le(205,!1)}processProvider(d){let f=Vr(d=Le(d))?d:Le(d&&d.provide);const b=function Vi(a){return ao(a)?ya(void 0,a.useValue):ya(br(a),sa)}(d);if(!Vr(d)&&!0===d.multi){let N=this.records.get(f);N||(N=ya(void 0,sa,!0),N.factory=()=>wo(N.multi),this.records.set(f,N)),f=d,N.multi.push(d)}this.records.set(f,b)}hydrate(d,f){const b=P(null);try{return f.value===sa&&(f.value=rl,f.value=f.factory()),"object"==typeof f.value&&f.value&&function cl(a){return null!==a&&"object"==typeof a&&"function"==typeof a.ngOnDestroy}(f.value)&&this._ngOnDestroyHooks.add(f.value),f.value}finally{P(b)}}injectableDefInScope(d){if(!d.providedIn)return!1;const f=Le(d.providedIn);return"string"==typeof f?"any"===f||this.scopes.has(f):this.injectorDefTypes.has(f)}removeOnDestroy(d){const f=this._onDestroyHooks.indexOf(d);-1!==f&&this._onDestroyHooks.splice(f,1)}}function xa(a){const d=Vn(a),f=null!==d?d.factory:_o(a);if(null!==f)return f;if(a instanceof yi)throw new le(204,!1);if(a instanceof Function)return function ho(a){if(a.length>0)throw new le(204,!1);const f=function Li(a){return a&&(a[Mn]||a[Zn])||null}(a);return null!==f?()=>f.factory(a):()=>new a}(a);throw new le(204,!1)}function br(a,d,f){let b;if(Vr(a)){const N=Le(a);return _o(N)||xa(N)}if(ao(a))b=()=>Le(a.useValue);else if(function Sl(a){return!(!a||!a.useFactory)}(a))b=()=>a.useFactory(...wo(a.deps||[]));else if(function Da(a){return!(!a||!a.useExisting)}(a))b=()=>Ks(Le(a.useExisting));else{const N=Le(a&&(a.useClass||a.provide));if(!function rs(a){return!!a.deps}(a))return _o(N)||xa(N);b=()=>new N(...wo(a.deps))}return b}function ya(a,d,f=!1){return{factory:a,value:d,multi:f?[]:void 0}}function pl(a,d){for(const f of a)Array.isArray(f)?pl(f,d):f&&Oi(f)?pl(f.\u0275providers,d):d(f)}function io(a,d){a instanceof zs&&a.assertNotDestroyed();const b=Es(a),N=qs(void 0);try{return d()}finally{Es(b),qs(N)}}function Fa(){return void 0!==Fo()||null!=function Xa(){return bo}()}function Mr(a){if(!Fa())throw new le(-203,!1)}const Tt=0,Ye=1,kt=2,It=3,un=4,xn=5,In=6,Nn=7,ri=8,ui=9,ne=10,Ie=11,_t=12,Nt=13,en=14,vn=15,fn=16,Cn=17,Tn=18,Wn=19,gi=20,ln=21,ki=22,rr=23,Ki=25,pr=1,Qi=7,vr=9,Fi=10;var kr=function(a){return a[a.None=0]="None",a[a.HasTransplantedViews=2]="HasTransplantedViews",a}(kr||{});function cr(a){return Array.isArray(a)&&"object"==typeof a[pr]}function Kr(a){return Array.isArray(a)&&!0===a[pr]}function Wr(a){return!!(4&a.flags)}function Qr(a){return a.componentOffset>-1}function Rs(a){return!(1&~a.flags)}function Hr(a){return!!a.template}function as(a){return!!(512&a[kt])}class Cr{constructor(d,f,b){this.previousValue=d,this.currentValue=f,this.firstChange=b}isFirstChange(){return this.firstChange}}function os(a,d,f,b){null!==d?d.applyValueToInputSignal(d,b):a[f]=b}function Xo(){return Ps}function Ps(a){return a.type.prototype.ngOnChanges&&(a.setInput=Aa),sl}function sl(){const a=lc(this),d=a?.current;if(d){const f=a.previous;if(f===zi)a.previous=d;else for(let b in d)f[b]=d[b];a.current=null,this.ngOnChanges(d)}}function Aa(a,d,f,b,N){const K=this.declaredInputs[b],he=lc(a)||function Qc(a,d){return a[ma]=d}(a,{previous:zi,current:null}),we=he.current||(he.current={}),qe=he.previous,zt=qe[K];we[K]=new Cr(zt&&zt.currentValue,f,qe===zi),os(a,d,N,f)}Xo.ngInherit=!0;const ma="__ngSimpleChanges__";function lc(a){return a[ma]||null}const dl=function(a,d,f){},kl="svg";let Fl=!1;function Ys(a){for(;Array.isArray(a);)a=a[Tt];return a}function Rc(a,d){return Ys(d[a])}function Zr(a,d){return Ys(d[a.index])}function y(a,d){return a.data[d]}function c(a,d){return a[d]}function p(a,d){const f=d[a];return cr(f)?f:f[Tt]}function F(a){return!(128&~a[kt])}function re(a,d){return null==d?null:a[d]}function Oe(a){a[Cn]=0}function je(a){1024&a[kt]||(a[kt]|=1024,F(a)&&Et(a))}function Ct(a){return!!(9216&a[kt]||a[rr]?.dirty)}function Rt(a){a[ne].changeDetectionScheduler?.notify(1),Ct(a)?Et(a):64&a[kt]&&(function wc(){return Fl}()?(a[kt]|=1024,Et(a)):a[ne].changeDetectionScheduler?.notify())}function Et(a){a[ne].changeDetectionScheduler?.notify();let d=tn(a);for(;null!==d&&!(8192&d[kt])&&(d[kt]|=8192,F(d));)d=tn(d)}function qt(a,d){if(!(256&~a[kt]))throw new le(911,!1);null===a[ln]&&(a[ln]=[]),a[ln].push(d)}function gn(a,d){if(null===a[ln])return;const f=a[ln].indexOf(d);-1!==f&&a[ln].splice(f,1)}function tn(a){const d=a[It];return Kr(d)?d[It]:d}const Pn={lFrame:No(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function bi(){return Pn.bindingsEnabled}function $i(){return null!==Pn.skipHydrationRootTNode}function Si(){return Pn.lFrame.lView}function dr(){return Pn.lFrame.tView}function go(a){return Pn.lFrame.contextLView=a,a[ri]}function Vo(a){return Pn.lFrame.contextLView=null,a}function Ds(){let a=Ss();for(;null!==a&&64===a.type;)a=a.parent;return a}function Ss(){return Pn.lFrame.currentTNode}function xo(a,d){const f=Pn.lFrame;f.currentTNode=a,f.isParent=d}function va(){return Pn.lFrame.isParent}function to(){Pn.lFrame.isParent=!1}function Sa(){const a=Pn.lFrame;let d=a.bindingRootIndex;return-1===d&&(d=a.bindingRootIndex=a.tView.bindingStartIndex),d}function Ua(){return Pn.lFrame.bindingIndex}function Ja(){return Pn.lFrame.bindingIndex++}function bl(a){const d=Pn.lFrame,f=d.bindingIndex;return d.bindingIndex=d.bindingIndex+a,f}function cc(a,d){const f=Pn.lFrame;f.bindingIndex=f.bindingRootIndex=a,Bl(d)}function Bl(a){Pn.lFrame.currentDirectiveIndex=a}function Nc(a){const d=Pn.lFrame.currentDirectiveIndex;return-1===d?null:a[d]}function tc(){return Pn.lFrame.currentQueryIndex}function ul(a){Pn.lFrame.currentQueryIndex=a}function Kl(a){const d=a[Ye];return 2===d.type?d.declTNode:1===d.type?a[xn]:null}function Zc(a,d,f){if(f&fs.SkipSelf){let N=d,K=a;for(;!(N=N.parent,null!==N||f&fs.Host||(N=Kl(K),null===N||(K=K[en],10&N.type))););if(null===N)return!1;d=N,a=K}const b=Pn.lFrame=kc();return b.currentTNode=d,b.lView=a,!0}function Lc(a){const d=kc(),f=a[Ye];Pn.lFrame=d,d.currentTNode=f.firstChild,d.lView=a,d.tView=f,d.contextLView=a,d.bindingIndex=f.bindingStartIndex,d.inI18n=!1}function kc(){const a=Pn.lFrame,d=null===a?null:a.child;return null===d?No(a):d}function No(a){const d={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:a,child:null,inI18n:!1};return null!==a&&(a.child=d),d}function Fc(){const a=Pn.lFrame;return Pn.lFrame=a.parent,a.currentTNode=null,a.lView=null,a}const uc=Fc;function $l(){const a=Fc();a.isParent=!0,a.tView=null,a.selectedIndex=-1,a.contextLView=null,a.elementDepthCount=0,a.currentDirectiveIndex=-1,a.currentNamespace=null,a.bindingRootIndex=-1,a.bindingIndex=-1,a.currentQueryIndex=0}function Jr(){return Pn.lFrame.selectedIndex}function hc(a){Pn.lFrame.selectedIndex=a}function Lo(){const a=Pn.lFrame;return y(a.tView,a.selectedIndex)}function $d(){Pn.lFrame.currentNamespace=kl}function Vl(){!function Bc(){Pn.lFrame.currentNamespace=null}()}let hl=!0;function Oa(){return hl}function qa(a){hl=a}function Jc(a,d){for(let f=d.directiveStart,b=d.directiveEnd;f<b;f++){const K=a.data[f].type.prototype,{ngAfterContentInit:he,ngAfterContentChecked:we,ngAfterViewInit:qe,ngAfterViewChecked:zt,ngOnDestroy:mn}=K;he&&(a.contentHooks??=[]).push(-f,he),we&&((a.contentHooks??=[]).push(f,we),(a.contentCheckHooks??=[]).push(f,we)),qe&&(a.viewHooks??=[]).push(-f,qe),zt&&((a.viewHooks??=[]).push(f,zt),(a.viewCheckHooks??=[]).push(f,zt)),null!=mn&&(a.destroyHooks??=[]).push(f,mn)}}function el(a,d,f){xd(a,d,3,f)}function Ia(a,d,f,b){(3&a[kt])===f&&xd(a,d,f,b)}function nc(a,d){let f=a[kt];(3&f)===d&&(f&=16383,f+=1,a[kt]=f)}function xd(a,d,f,b){const K=b??-1,he=d.length-1;let we=0;for(let qe=void 0!==b?65535&a[Cn]:0;qe<he;qe++)if("number"==typeof d[qe+1]){if(we=d[qe],null!=b&&we>=b)break}else d[qe]<0&&(a[Cn]+=65536),(we<K||-1==K)&&(yd(a,f,d,qe),a[Cn]=(4294901760&a[Cn])+qe+2),qe++}function Hu(a,d){dl(4,a,d);const f=P(null);try{d.call(a)}finally{P(f),dl(5,a,d)}}function yd(a,d,f,b){const N=f[b]<0,K=f[b+1],we=a[N?-f[b]:f[b]];N?a[kt]>>14<a[Cn]>>16&&(3&a[kt])===d&&(a[kt]+=16384,Hu(we,K)):Hu(we,K)}const Sc=-1;class Td{constructor(d,f,b){this.factory=d,this.resolving=!1,this.canSeeViewProviders=f,this.injectImpl=b}}function Sd(a){return a!==Sc}function ad(a){return 32767&a}function ld(a,d){let f=function du(a){return a>>16}(a),b=d;for(;f>0;)b=b[en],f--;return b}let cd=!0;function dd(a){const d=cd;return cd=a,d}const Wu=255,Id=5;let hh=0;const Xl={};function wd(a,d){const f=Qd(a,d);if(-1!==f)return f;const b=d[Ye];b.firstCreatePass&&(a.injectorIndex=d.length,fc(b.data,a),fc(d,null),fc(b.blueprint,null));const N=Rd(a,d),K=a.injectorIndex;if(Sd(N)){const he=ad(N),we=ld(N,d),qe=we[Ye].data;for(let zt=0;zt<8;zt++)d[K+zt]=we[he+zt]|qe[he+zt]}return d[K+8]=N,K}function fc(a,d){a.push(0,0,0,0,0,0,0,0,d)}function Qd(a,d){return-1===a.injectorIndex||a.parent&&a.parent.injectorIndex===a.injectorIndex||null===d[a.injectorIndex+8]?-1:a.injectorIndex}function Rd(a,d){if(a.parent&&-1!==a.parent.injectorIndex)return a.parent.injectorIndex;let f=0,b=null,N=d;for(;null!==N;){if(b=hu(N),null===b)return Sc;if(f++,N=N[en],-1!==b.injectorIndex)return b.injectorIndex|f<<16}return Sc}function Zd(a,d,f){!function zh(a,d,f){let b;"string"==typeof f?b=f.charCodeAt(0)||0:f.hasOwnProperty(Qs)&&(b=f[Qs]),null==b&&(b=f[Qs]=hh++);const N=b&Wu;d.data[a+(N>>Id)]|=1<<N}(a,d,f)}function Rl(a,d,f){if(f&fs.Optional||void 0!==a)return a;fa()}function fh(a,d,f,b){if(f&fs.Optional&&void 0===b&&(b=null),!(f&(fs.Self|fs.Host))){const N=a[ui],K=qs(void 0);try{return N?N.get(d,b,f&fs.Optional):So(d,b,f&fs.Optional)}finally{qs(K)}}return Rl(b,0,f)}function pc(a,d,f,b=fs.Default,N){if(null!==a){if(2048&d[kt]&&!(b&fs.Self)){const he=function Ku(a,d,f,b,N){let K=a,he=d;for(;null!==K&&null!==he&&2048&he[kt]&&!(512&he[kt]);){const we=uu(K,he,f,b|fs.Self,Xl);if(we!==Xl)return we;let qe=K.parent;if(!qe){const zt=he[gi];if(zt){const mn=zt.get(f,Xl,b);if(mn!==Xl)return mn}qe=hu(he),he=he[en]}K=qe}return N}(a,d,f,b,Xl);if(he!==Xl)return he}const K=uu(a,d,f,b,Xl);if(K!==Xl)return K}return fh(d,f,b,N)}function uu(a,d,f,b,N){const K=function bd(a){if("string"==typeof a)return a.charCodeAt(0)||0;const d=a.hasOwnProperty(Qs)?a[Qs]:void 0;return"number"==typeof d?d>=0?d&Wu:mc:d}(f);if("function"==typeof K){if(!Zc(d,a,b))return b&fs.Host?Rl(N,0,b):fh(d,f,b,N);try{let he;if(he=K(b),null!=he||b&fs.Optional)return he;fa()}finally{uc()}}else if("number"==typeof K){let he=null,we=Qd(a,d),qe=Sc,zt=b&fs.Host?d[vn][xn]:null;for((-1===we||b&fs.SkipSelf)&&(qe=-1===we?Rd(a,d):d[we+8],qe!==Sc&&Ld(b,!1)?(he=d[Ye],we=ad(qe),d=ld(qe,d)):we=-1);-1!==we;){const mn=d[Ye];if(xs(K,we,mn.data)){const Ln=Jd(we,d,f,he,b,zt);if(Ln!==Xl)return Ln}qe=d[we+8],qe!==Sc&&Ld(b,d[Ye].data[we+8]===zt)&&xs(K,we,d)?(he=mn,we=ad(qe),d=ld(qe,d)):we=-1}}return N}function Jd(a,d,f,b,N,K){const he=d[Ye],we=he.data[a+8],mn=Nd(we,he,f,null==b?Qr(we)&&cd:b!=he&&!!(3&we.type),N&fs.Host&&K===we);return null!==mn?gc(d,he,mn,we):Xl}function Nd(a,d,f,b,N){const K=a.providerIndexes,he=d.data,we=1048575&K,qe=a.directiveStart,mn=K>>20,oi=N?we+mn:a.directiveEnd;for(let pi=b?we:we+mn;pi<oi;pi++){const wi=he[pi];if(pi<qe&&f===wi||pi>=qe&&wi.type===f)return pi}if(N){const pi=he[qe];if(pi&&Hr(pi)&&pi.type===f)return qe}return null}function gc(a,d,f,b){let N=a[f];const K=d.data;if(function uh(a){return a instanceof Td}(N)){const he=N;he.resolving&&function Zo(a,d){throw d&&d.join(" > "),new le(-200,a)}(function Ur(a){return"function"==typeof a?a.name||a.toString():"object"==typeof a&&null!=a&&"function"==typeof a.type?a.type.name||a.type.toString():Ar(a)}(K[f]));const we=dd(he.canSeeViewProviders);he.resolving=!0;const zt=he.injectImpl?qs(he.injectImpl):null;Zc(a,b,fs.Default);try{N=a[f]=he.factory(void 0,K,a,b),d.firstCreatePass&&f>=b.directiveStart&&function Gu(a,d,f){const{ngOnChanges:b,ngOnInit:N,ngDoCheck:K}=d.type.prototype;if(b){const he=Ps(d);(f.preOrderHooks??=[]).push(a,he),(f.preOrderCheckHooks??=[]).push(a,he)}N&&(f.preOrderHooks??=[]).push(0-a,N),K&&((f.preOrderHooks??=[]).push(a,K),(f.preOrderCheckHooks??=[]).push(a,K))}(f,K[f],d)}finally{null!==zt&&qs(zt),dd(we),he.resolving=!1,uc()}}return N}function xs(a,d,f){return!!(f[d+(a>>Id)]&1<<a)}function Ld(a,d){return!(a&fs.Self||a&fs.Host&&d)}class yo{constructor(d,f){this._tNode=d,this._lView=f}get(d,f,b){return pc(this._tNode,this._lView,d,la(b),f)}}function mc(){return new yo(Ds(),Si())}function qc(a){return sn(()=>{const d=a.prototype.constructor,f=d[us]||ol(d),b=Object.prototype;let N=Object.getPrototypeOf(a.prototype).constructor;for(;N&&N!==b;){const K=N[us]||ol(N);if(K&&K!==f)return K;N=Object.getPrototypeOf(N)}return K=>new K})}function ol(a){return V(a)?()=>{const d=ol(Le(a));return d&&d()}:_o(a)}function hu(a){const d=a[Ye],f=d.type;return 2===f?d.declTNode:1===f?a[xn]:null}function Ed(a){return function zu(a,d){if("class"===d)return a.classes;if("style"===d)return a.styles;const f=a.attrs;if(f){const b=f.length;let N=0;for(;N<b;){const K=f[N];if(on(K))break;if(0===K)N+=2;else if("number"==typeof K)for(N++;N<b&&"string"==typeof f[N];)N++;else{if(K===d)return f[N+1];N+=2}}}return null}(Ds(),a)}function Ud(a,d=null,f=null,b){const N=Yu(a,d,f,b);return N.resolveInjectorInitializers(),N}function Yu(a,d=null,f=null,b,N=new Set){const K=[f||Ae,li(a)];return b=b||("object"==typeof a?void 0:gt(a)),new zs(K,d||Os(),b||null,N)}let Yl=(()=>{class a{static{this.THROW_IF_NOT_FOUND=Mo}static{this.NULL=new Xi}static create(f,b){if(Array.isArray(f))return Ud({name:""},b,f,"");{const N=f.name??"";return Ud({name:N},f.parent,f.providers,N)}}static{this.\u0275prov=Pr({token:a,providedIn:"any",factory:()=>Ks(fl)})}static{this.__NG_ELEMENT_ID__=-1}}return a})();function gu(a){return a.ngOriginalError}class Hc{constructor(){this._console=console}handleError(d){const f=this._findOriginalError(d);this._console.error("ERROR",d),f&&this._console.error("ORIGINAL ERROR",f)}_findOriginalError(d){let f=d&&gu(d);for(;f&&gu(f);)f=gu(f);return f||null}}const nu=new yi("",{providedIn:"root",factory:()=>ar(Hc).handleError.bind(void 0)});let ed=(()=>{class a{static{this.__NG_ELEMENT_ID__=mu}static{this.__NG_ENV_ID__=f=>f}}return a})();class Bd extends ed{constructor(d){super(),this._lView=d}onDestroy(d){return qt(this._lView,d),()=>gn(this._lView,d)}}function mu(){return new Bd(Si())}function Su(){return Wc(Ds(),Si())}function Wc(a,d){return new Vd(Zr(a,d))}let Vd=(()=>{class a{constructor(f){this.nativeElement=f}static{this.__NG_ELEMENT_ID__=Su}}return a})();function Zu(a){return a instanceof Vd?a.nativeElement:a}function gh(a){return d=>{setTimeout(a,void 0,d)}}const td=class $h extends et.B7{constructor(d=!1){super(),this.destroyRef=void 0,this.__isAsync=d,Fa()&&(this.destroyRef=ar(ed,{optional:!0})??void 0)}emit(d){const f=P(null);try{super.next(d)}finally{P(f)}}subscribe(d,f,b){let N=d,K=f||(()=>null),he=b;if(d&&"object"==typeof d){const qe=d;N=qe.next?.bind(qe),K=qe.error?.bind(qe),he=qe.complete?.bind(qe)}this.__isAsync&&(K=gh(K),N&&(N=gh(N)),he&&(he=gh(he)));const we=super.subscribe({next:N,error:K,complete:he});return d instanceof se.y&&d.add(we),we}};function Xh(){return this._results[Symbol.iterator]()}class Ju{get changes(){return this._changes??=new td}constructor(d=!1){this._emitDistinctChangesOnly=d,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;const f=Ju.prototype;f[Symbol.iterator]||(f[Symbol.iterator]=Xh)}get(d){return this._results[d]}map(d){return this._results.map(d)}filter(d){return this._results.filter(d)}find(d){return this._results.find(d)}reduce(d,f){return this._results.reduce(d,f)}forEach(d){this._results.forEach(d)}some(d){return this._results.some(d)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(d,f){this.dirty=!1;const b=function Ko(a){return a.flat(Number.POSITIVE_INFINITY)}(d);(this._changesDetected=!function La(a,d,f){if(a.length!==d.length)return!1;for(let b=0;b<a.length;b++){let N=a[b],K=d[b];if(f&&(N=f(N),K=f(K)),K!==N)return!1}return!0}(this._results,b,f))&&(this._results=b,this.length=b.length,this.last=b[this.length-1],this.first=b[0])}notifyOnChanges(){void 0!==this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}onDirty(d){this._onDirty=d}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){void 0!==this._changes&&(this._changes.complete(),this._changes.unsubscribe())}}function Eu(a){return!(128&~a.flags)}const qu=new Map;let wf=0;const _h="__ngContext__";function Ba(a,d){cr(d)?(a[_h]=d[Wn],function Jp(a){qu.set(a[Wn],a)}(d)):a[_h]=d}function Tr(a){return Xr(a[_t])}function ss(a){return Xr(a[un])}function Xr(a){for(;null!==a&&!Kr(a);)a=a[un];return a}let gs;function Hs(a){gs=a}function Ns(){if(void 0!==gs)return gs;if(typeof document<"u")return document;throw new le(210,!1)}const qo=new yi("",{providedIn:"root",factory:()=>El}),El="ng",vc=new yi(""),Tl=new yi("",{providedIn:"platform",factory:()=>"unknown"}),Va=new yi(""),Mu=new yi("",{providedIn:"root",factory:()=>Ns().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let Ah=()=>null;function Uf(a,d,f=!1){return Ah(a,d,f)}const ag=new yi("",{providedIn:"root",factory:()=>!1});let xu,sf;function rh(a){return function Gf(){if(void 0===xu&&(xu=null,nn.trustedTypes))try{xu=nn.trustedTypes.createPolicy("angular",{createHTML:a=>a,createScript:a=>a,createScriptURL:a=>a})}catch{}return xu}()?.createHTML(a)||a}function jf(){if(void 0===sf&&(sf=null,nn.trustedTypes))try{sf=nn.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:a=>a,createScript:a=>a,createScriptURL:a=>a})}catch{}return sf}function cg(a){return jf()?.createHTML(a)||a}function ug(a){return jf()?.createScriptURL(a)||a}class Tu{constructor(d){this.changingThisBreaksApplicationSecurity=d}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${me})`}}class Pm extends Tu{getTypeName(){return"HTML"}}class Mm extends Tu{getTypeName(){return"Style"}}class Dm extends Tu{getTypeName(){return"Script"}}class Jv extends Tu{getTypeName(){return"URL"}}class xm extends Tu{getTypeName(){return"ResourceURL"}}function Ll(a){return a instanceof Tu?a.changingThisBreaksApplicationSecurity:a}function sh(a,d){const f=function Tm(a){return a instanceof Tu&&a.getTypeName()||null}(a);if(null!=f&&f!==d){if("ResourceURL"===f&&"URL"===d)return!0;throw new Error(`Required a safe ${d}, got a ${f} (see ${me})`)}return f===d}function Iu(a){return new Pm(a)}function ko(a){return new Mm(a)}function Im(a){return new Dm(a)}function Ac(a){return new Jv(a)}function Pl(a){return new xm(a)}class iu{constructor(d){this.inertDocumentHelper=d}getInertBodyElement(d){d="<body><remove></remove>"+d;try{const f=(new window.DOMParser).parseFromString(rh(d),"text/html").body;return null===f?this.inertDocumentHelper.getInertBodyElement(d):(f.removeChild(f.firstChild),f)}catch{return null}}}class wm{constructor(d){this.defaultDoc=d,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(d){const f=this.inertDocument.createElement("template");return f.innerHTML=rh(d),f}}const Nm=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function af(a){return(a=String(a)).match(Nm)?a:"unsafe:"+a}function Gd(a){const d={};for(const f of a.split(","))d[f]=!0;return d}function wu(...a){const d={};for(const f of a)for(const b in f)f.hasOwnProperty(b)&&(d[b]=!0);return d}const fg=Gd("area,br,col,hr,img,wbr"),Pd=Gd("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Wf=Gd("rp,rt"),lf=wu(fg,wu(Pd,Gd("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),wu(Wf,Gd("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),wu(Wf,Pd)),Kf=Gd("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),pg=wu(Kf,Gd("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Gd("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),Lm=Gd("script,style,template");class km{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(d){let f=d.firstChild,b=!0,N=[];for(;f;)if(f.nodeType===Node.ELEMENT_NODE?b=this.startElement(f):f.nodeType===Node.TEXT_NODE?this.chars(f.nodeValue):this.sanitizedSomething=!0,b&&f.firstChild)N.push(f),f=$f(f);else for(;f;){f.nodeType===Node.ELEMENT_NODE&&this.endElement(f);let K=Th(f);if(K){f=K;break}f=N.pop()}return this.buf.join("")}startElement(d){const f=mg(d).toLowerCase();if(!lf.hasOwnProperty(f))return this.sanitizedSomething=!0,!Lm.hasOwnProperty(f);this.buf.push("<"),this.buf.push(f);const b=d.attributes;for(let N=0;N<b.length;N++){const K=b.item(N),he=K.name,we=he.toLowerCase();if(!pg.hasOwnProperty(we)){this.sanitizedSomething=!0;continue}let qe=K.value;Kf[we]&&(qe=af(qe)),this.buf.push(" ",he,'="',oh(qe),'"')}return this.buf.push(">"),!0}endElement(d){const f=mg(d).toLowerCase();lf.hasOwnProperty(f)&&!fg.hasOwnProperty(f)&&(this.buf.push("</"),this.buf.push(f),this.buf.push(">"))}chars(d){this.buf.push(oh(d))}}function Th(a){const d=a.nextSibling;if(d&&a!==d.previousSibling)throw Xf(d);return d}function $f(a){const d=a.firstChild;if(d&&function gg(a,d){return(a.compareDocumentPosition(d)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}(a,d))throw Xf(d);return d}function mg(a){const d=a.nodeName;return"string"==typeof d?d:"FORM"}function Xf(a){return new Error(`Failed to sanitize html because the element is clobbered: ${a.outerHTML}`)}const cf=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Oc=/([^\#-~ |!])/g;function oh(a){return a.replace(/&/g,"&").replace(cf,function(d){return"&#"+(1024*(d.charCodeAt(0)-55296)+(d.charCodeAt(1)-56320)+65536)+";"}).replace(Oc,function(d){return"&#"+d.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}let Ih;function Yf(a,d){let f=null;try{Ih=Ih||function hg(a){const d=new wm(a);return function Rm(){try{return!!(new window.DOMParser).parseFromString(rh(""),"text/html")}catch{return!1}}()?new iu(d):d}(a);let b=d?String(d):"";f=Ih.getInertBodyElement(b);let N=5,K=b;do{if(0===N)throw new Error("Failed to sanitize html because the input is unstable");N--,b=K,K=f.innerHTML,f=Ih.getInertBodyElement(b)}while(b!==K);return rh((new km).sanitizeChildren(df(f)||f))}finally{if(f){const b=df(f)||f;for(;b.firstChild;)b.removeChild(b.firstChild)}}}function df(a){return"content"in a&&function Fm(a){return a.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===a.nodeName}(a)?a.content:null}var ru=function(a){return a[a.NONE=0]="NONE",a[a.HTML=1]="HTML",a[a.STYLE=2]="STYLE",a[a.SCRIPT=3]="SCRIPT",a[a.URL=4]="URL",a[a.RESOURCE_URL=5]="RESOURCE_URL",a}(ru||{});function uf(a){const d=wh();return d?cg(d.sanitize(ru.HTML,a)||""):sh(a,"HTML")?cg(Ll(a)):Yf(Ns(),Ar(a))}function To(a){const d=wh();return d?d.sanitize(ru.URL,a)||"":sh(a,"URL")?Ll(a):af(Ar(a))}function hf(a){const d=wh();if(d)return ug(d.sanitize(ru.RESOURCE_URL,a)||"");if(sh(a,"ResourceURL"))return ug(Ll(a));throw new le(904,!1)}function _g(a,d,f){return function Ra(a,d){return"src"===d&&("embed"===a||"frame"===a||"iframe"===a||"media"===a||"script"===a)||"href"===d&&("base"===a||"link"===a)?hf:To}(d,f)(a)}function wh(){const a=Si();return a&&a[ne].sanitizer}const Zf=/^>|^->|<!--|-->|--!>|<!-$/g,Vm=/(<|>)/g,ff="\u200b$1\u200b";function tp(a){Kn("Must never be called in production mode");const f=function pf(a){Kn("Must never be called in production mode");const f=a[vn][ri];return f&&f.constructor?Or(f.constructor):null}(a)?.type?.name;return f?` (used in the '${f}' component template)`:""}function Cg(a){return a.ownerDocument.defaultView}function Kc(a){return a instanceof Function?a():a}function md(a){return"browser"===(a??ar(Yl)).get(Tl)}var gf=function(a){return a[a.Important=1]="Important",a[a.DashCase=2]="DashCase",a}(gf||{});let sp;function op(a,d){return sp(a,d)}function Nu(a,d,f,b,N){if(null!=b){let K,he=!1;Kr(b)?K=b:cr(b)&&(he=!0,b=b[Tt]);const we=Ys(b);0===a&&null!==f?null==N?xg(d,f,we):Lu(d,f,we,N||null,!0):1===a&&null!==f?Lu(d,f,we,N||null,!0):2===a?function Lh(a,d,f){const b=yf(a,d);b&&function nv(a,d,f,b){a.removeChild(d,f,b)}(a,b,d,f)}(d,we,he):3===a&&d.destroyNode(we),null!=K&&function h_(a,d,f,b,N){const K=f[Qi];K!==Ys(f)&&Nu(d,a,b,K,N);for(let we=Fi;we<f.length;we++){const qe=f[we];lh(qe[Ye],qe,a,d,b,K)}}(d,a,K,f,N)}}function ap(a,d){return a.createComment(function yg(a){return a.replace(Zf,d=>d.replace(Vm,ff))}(d))}function vf(a,d,f){return a.createElement(d,f)}function Pg(a,d){d[ne].changeDetectionScheduler?.notify(1),lh(a,d,d[Ie],2,null,null)}function Mg(a,d){const f=a[vr],b=f.indexOf(d);f.splice(b,1)}function Rh(a,d){if(a.length<=Fi)return;const f=Fi+d,b=a[f];if(b){const N=b[fn];null!==N&&N!==a&&Mg(N,b),d>0&&(a[f-1][un]=b[un]);const K=il(a,Fi+d);!function Qm(a,d){Pg(a,d),d[Tt]=null,d[xn]=null}(b[Ye],b);const he=K[Tn];null!==he&&he.detachView(K[Ye]),b[It]=null,b[un]=null,b[kt]&=-129}return b}function _f(a,d){if(!(256&d[kt])){const f=d[Ie];f.destroyNode&&lh(a,d,f,3,null,null),function Jm(a){let d=a[_t];if(!d)return lp(a[Ye],a);for(;d;){let f=null;if(cr(d))f=d[_t];else{const b=d[Fi];b&&(f=b)}if(!f){for(;d&&!d[un]&&d!==a;)cr(d)&&lp(d[Ye],d),d=d[It];null===d&&(d=a),cr(d)&&lp(d[Ye],d),f=d&&d[un]}d=f}}(d)}}function lp(a,d){if(256&d[kt])return;const f=P(null);try{d[kt]&=-129,d[kt]|=256,d[rr]&&function Y(a){if(X(a),k(a))for(let d=0;d<a.producerNode.length;d++)G(a.producerNode[d],a.producerIndexOfThis[d]);a.producerNode.length=a.producerLastReadVersion.length=a.producerIndexOfThis.length=0,a.liveConsumerNode&&(a.liveConsumerNode.length=a.liveConsumerIndexOfThis.length=0)}(d[rr]),function tv(a,d){let f;if(null!=a&&null!=(f=a.destroyHooks))for(let b=0;b<f.length;b+=2){const N=d[f[b]];if(!(N instanceof Td)){const K=f[b+1];if(Array.isArray(K))for(let he=0;he<K.length;he+=2){const we=N[K[he]],qe=K[he+1];dl(4,we,qe);try{qe.call(we)}finally{dl(5,we,qe)}}else{dl(4,N,K);try{K.call(N)}finally{dl(5,N,K)}}}}}(a,d),function ev(a,d){const f=a.cleanup,b=d[Nn];if(null!==f)for(let K=0;K<f.length-1;K+=2)if("string"==typeof f[K]){const he=f[K+3];he>=0?b[he]():b[-he].unsubscribe(),K+=2}else f[K].call(b[f[K+1]]);null!==b&&(d[Nn]=null);const N=d[ln];if(null!==N){d[ln]=null;for(let K=0;K<N.length;K++)(0,N[K])()}}(a,d),1===d[Ye].type&&d[Ie].destroy();const b=d[fn];if(null!==b&&Kr(d[It])){b!==d[It]&&Mg(b,d);const N=d[Tn];null!==N&&N.detachView(a)}!function Rf(a){qu.delete(a[Wn])}(d)}finally{P(f)}}function cp(a,d,f){return function Dg(a,d,f){let b=d;for(;null!==b&&40&b.type;)b=(d=b).parent;if(null===b)return f[Tt];{const{componentOffset:N}=b;if(N>-1){const{encapsulation:K}=a.data[b.directiveStart+N];if(K===ps.None||K===ps.Emulated)return null}return Zr(b,f)}}(a,d.parent,f)}function Lu(a,d,f,b,N){a.insertBefore(d,f,b,N)}function xg(a,d,f){a.appendChild(d,f)}function Tg(a,d,f,b,N){null!==b?Lu(a,d,f,b,N):xg(a,d,f)}function yf(a,d){return a.parentNode(d)}function Ig(a,d,f){return dp(a,d,f)}let bf,dp=function Sf(a,d,f){return 40&a.type?Zr(a,f):null};function Ef(a,d,f,b){const N=cp(a,b,d),K=d[Ie],we=Ig(b.parent||d[xn],b,d);if(null!=N)if(Array.isArray(f))for(let qe=0;qe<f.length;qe++)Tg(K,N,f[qe],we,!1);else Tg(K,N,f,we,!1);void 0!==bf&&bf(K,b,d,f,N)}function Nh(a,d){if(null!==d){const f=d.type;if(3&f)return Zr(d,a);if(4&f)return up(-1,a[d.index]);if(8&f){const b=d.child;if(null!==b)return Nh(a,b);{const N=a[d.index];return Kr(N)?up(-1,N):Ys(N)}}if(32&f)return op(d,a)()||Ys(a[d.index]);{const b=Cf(a,d);return null!==b?Array.isArray(b)?b[0]:Nh(tn(a[vn]),b):Nh(a,d.next)}}return null}function Cf(a,d){return null!==d?a[vn][xn].projection[d.projection]:null}function up(a,d){const f=Fi+a+1;if(f<d.length){const b=d[f],N=b[Ye].firstChild;if(null!==N)return Nh(b,N)}return d[Qi]}function sc(a,d,f,b,N,K,he){for(;null!=f;){const we=b[f.index],qe=f.type;if(he&&0===d&&(we&&Ba(Ys(we),b),f.flags|=2),32&~f.flags)if(8&qe)sc(a,d,f.child,b,N,K,!1),Nu(d,a,N,we,K);else if(32&qe){const zt=op(f,b);let mn;for(;mn=zt();)Nu(d,a,N,mn,K);Nu(d,a,N,we,K)}else 16&qe?Ng(a,d,b,f,N,K):Nu(d,a,N,we,K);f=he?f.projectionNext:f.next}}function lh(a,d,f,b,N,K){sc(f,b,a.firstChild,d,N,K,!1)}function Ng(a,d,f,b,N,K){const he=f[vn],qe=he[xn].projection[b.projection];if(Array.isArray(qe))for(let zt=0;zt<qe.length;zt++)Nu(d,a,N,qe[zt],K);else{let zt=qe;const mn=he[It];Eu(b)&&(zt.flags|=128),sc(a,d,zt,mn,N,K,!0)}}function Lg(a,d,f){""===f?a.removeAttribute(d,"class"):a.setAttribute(d,"class",f)}function Af(a,d,f){const{mergedAttrs:b,classes:N,styles:K}=f;null!==b&&ga(a,d,b),null!==N&&Lg(a,d,N),null!==K&&function hp(a,d,f){a.setAttribute(d,"style",f)}(a,d,K)}const Po={};function kg(a=1){Fg(dr(),Si(),Jr()+a,!1)}function Fg(a,d,f,b){if(!b)if(3&~d[kt]){const K=a.preOrderHooks;null!==K&&Ia(d,K,0,f)}else{const K=a.preOrderCheckHooks;null!==K&&el(d,K,f)}hc(f)}function ch(a,d=fs.Default){const f=Si();return null===f?Ks(a,d):pc(Ds(),f,Le(a),d)}function fp(){throw new Error("invalid")}function pp(a,d,f,b,N,K){const he=P(null);try{let we=null;N&ca.SignalBased&&(we=d[b][M]),null!==we&&void 0!==we.transformFn&&(K=we.transformFn(K)),N&ca.HasDecoratorInputTransform&&(K=a.inputTransforms[b].call(d,K)),null!==a.setInput?a.setInput(d,we,K,f,b):os(d,we,b,K)}finally{P(he)}}function Of(a,d,f,b,N,K,he,we,qe,zt,mn){const Ln=d.blueprint.slice();return Ln[Tt]=N,Ln[kt]=204|b,(null!==zt||a&&2048&a[kt])&&(Ln[kt]|=2048),Oe(Ln),Ln[It]=Ln[en]=a,Ln[ri]=f,Ln[ne]=he||a&&a[ne],Ln[Ie]=we||a&&a[Ie],Ln[ui]=qe||a&&a[ui]||null,Ln[xn]=K,Ln[Wn]=function Zh(){return wf++}(),Ln[In]=mn,Ln[gi]=zt,Ln[vn]=2==d.type?a[vn]:Ln,Ln}function su(a,d,f,b,N){let K=a.data[d];if(null===K)K=function kh(a,d,f,b,N){const K=Ss(),he=va(),qe=a.data[d]=function hv(a,d,f,b,N,K){let he=d?d.injectorIndex:-1,we=0;return $i()&&(we|=128),{type:f,index:b,insertBeforeIndex:null,injectorIndex:he,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:we,providerIndexes:0,value:N,attrs:K,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:d,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,he?K:K&&K.parent,f,d,b,N);return null===a.firstChild&&(a.firstChild=qe),null!==K&&(he?null==K.child&&null!==qe.parent&&(K.child=qe):null===K.next&&(K.next=qe,qe.prev=K)),qe}(a,d,f,b,N),function gl(){return Pn.lFrame.inI18n}()&&(K.flags|=32);else if(64&K.type){K.type=f,K.value=b,K.attrs=N;const he=function Js(){const a=Pn.lFrame,d=a.currentTNode;return a.isParent?d:d.parent}();K.injectorIndex=null===he?-1:he.injectorIndex}return xo(K,!0),K}function Fh(a,d,f,b){if(0===f)return-1;const N=d.length;for(let K=0;K<f;K++)d.push(b),a.blueprint.push(b),a.data.push(null);return N}function Ug(a,d,f,b,N){const K=Jr(),he=2&b;try{hc(-1),he&&d.length>Ki&&Fg(a,d,Ki,!1),dl(he?2:0,N),f(b,N)}finally{hc(K),dl(he?3:1,N)}}function gp(a,d,f){if(Wr(d)){const b=P(null);try{const K=d.directiveEnd;for(let he=d.directiveStart;he<K;he++){const we=a.data[he];we.contentQueries&&we.contentQueries(1,f[he],he)}}finally{P(b)}}}function mp(a,d,f){bi()&&(function ni(a,d,f,b){const N=f.directiveStart,K=f.directiveEnd;Qr(f)&&function zo(a,d,f){const b=Zr(d,a),N=Vg(f);let he=16;f.signals?he=4096:f.onPush&&(he=64);const we=ml(a,Of(a,N,null,he,b,d,null,a[ne].rendererFactory.createRenderer(b,f),null,null,null));a[d.index]=we}(d,f,a.data[N+f.componentOffset]),a.firstCreatePass||wd(f,d),Ba(b,d);const he=f.initialInputs;for(let we=N;we<K;we++){const qe=a.data[we],zt=gc(d,a,we,f);Ba(zt,d),null!==he&&ha(0,we-N,zt,qe,0,he),Hr(qe)&&(p(f.index,d)[ri]=gc(d,a,we,f))}}(a,d,f,Zr(f,d)),!(64&~f.flags)&&ci(a,d,f))}function Bg(a,d,f=Zr){const b=d.localNames;if(null!==b){let N=d.index+1;for(let K=0;K<b.length;K+=2){const he=b[K+1],we=-1===he?f(d,a):a[he];a[N++]=we}}}function Vg(a){const d=a.tView;return null===d||d.incompleteFirstPass?a.tView=vp(1,null,a.template,a.decls,a.vars,a.directiveDefs,a.pipeDefs,a.viewQuery,a.schemas,a.consts,a.id):d}function vp(a,d,f,b,N,K,he,we,qe,zt,mn){const Ln=Ki+b,oi=Ln+N,pi=function ov(a,d){const f=[];for(let b=0;b<d;b++)f.push(b<a?null:Po);return f}(Ln,oi),wi="function"==typeof zt?zt():zt;return pi[Ye]={type:a,blueprint:pi,template:f,queries:null,viewQuery:we,declTNode:d,data:pi.slice().fill(null,Ln),bindingStartIndex:Ln,expandoStartIndex:oi,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof K?K():K,pipeRegistry:"function"==typeof he?he():he,firstChild:null,schemas:qe,consts:wi,incompleteFirstPass:!1,ssrId:mn}}let Gg=()=>null;function Hg(a,d,f,b,N){for(let K in d){if(!d.hasOwnProperty(K))continue;const he=d[K];if(void 0===he)continue;b??={};let we,qe=ca.None;Array.isArray(he)?(we=he[0],qe=he[1]):we=he;let zt=K;if(null!==N){if(!N.hasOwnProperty(K))continue;zt=N[K]}0===a?jg(b,f,zt,we,qe):jg(b,f,zt,we)}return b}function jg(a,d,f,b,N){let K;a.hasOwnProperty(f)?(K=a[f]).push(d,b):K=a[f]=[d,b],void 0!==N&&K.push(N)}function Mc(a,d,f,b,N,K,he,we){const qe=Zr(d,f);let mn,zt=d.inputs;!we&&null!=zt&&(mn=zt[b])?(gv(a,f,mn,b,N),Qr(d)&&function f_(a,d){const f=p(d,a);16&f[kt]||(f[kt]|=64)}(f,d.index)):3&d.type&&(b=function pv(a){return"class"===a?"className":"for"===a?"htmlFor":"formaction"===a?"formAction":"innerHtml"===a?"innerHTML":"readonly"===a?"readOnly":"tabindex"===a?"tabIndex":a}(b),N=null!=he?he(N,d.value||"",b):N,K.setProperty(qe,b,N))}function ke(a,d,f,b){if(bi()){const N=null===b?null:{"":-1},K=function or(a,d){const f=a.directiveRegistry;let b=null,N=null;if(f)for(let K=0;K<f.length;K++){const he=f[K];if(Ea(d,he.selectors,!1))if(b||(b=[]),Hr(he))if(null!==he.findHostDirectiveDefs){const we=[];N=N||new Map,he.findHostDirectiveDefs(he,we,N),b.unshift(...we,he),sr(a,d,we.length)}else b.unshift(he),sr(a,d,0);else N=N||new Map,he.findHostDirectiveDefs?.(he,b,N),b.push(he)}return null===b?null:[b,N]}(a,f);let he,we;null===K?he=we=null:[he,we]=K,null!==he&&Lt(a,d,f,he,N,we),N&&function fr(a,d,f){if(d){const b=a.localNames=[];for(let N=0;N<d.length;N+=2){const K=f[d[N+1]];if(null==K)throw new le(-301,!1);b.push(d[N],K)}}}(f,b,N)}f.mergedAttrs=Mt(f.mergedAttrs,f.attrs)}function Lt(a,d,f,b,N,K){for(let zt=0;zt<b.length;zt++)Zd(wd(f,d),a,b[zt].type);!function Ls(a,d,f){a.flags|=1,a.directiveStart=d,a.directiveEnd=d+f,a.providerIndexes=d}(f,a.data.length,b.length);for(let zt=0;zt<b.length;zt++){const mn=b[zt];mn.providersResolver&&mn.providersResolver(mn)}let he=!1,we=!1,qe=Fh(a,d,b.length,null);for(let zt=0;zt<b.length;zt++){const mn=b[zt];f.mergedAttrs=Mt(f.mergedAttrs,mn.hostAttrs),ro(a,f,d,qe,mn),is(qe,mn,N),null!==mn.contentQueries&&(f.flags|=4),(null!==mn.hostBindings||null!==mn.hostAttrs||0!==mn.hostVars)&&(f.flags|=64);const Ln=mn.type.prototype;!he&&(Ln.ngOnChanges||Ln.ngOnInit||Ln.ngDoCheck)&&((a.preOrderHooks??=[]).push(f.index),he=!0),!we&&(Ln.ngOnChanges||Ln.ngDoCheck)&&((a.preOrderCheckHooks??=[]).push(f.index),we=!0),qe++}!function fv(a,d,f){const N=d.directiveEnd,K=a.data,he=d.attrs,we=[];let qe=null,zt=null;for(let mn=d.directiveStart;mn<N;mn++){const Ln=K[mn],oi=f?f.get(Ln):null,wi=oi?oi.outputs:null;qe=Hg(0,Ln.inputs,mn,qe,oi?oi.inputs:null),zt=Hg(1,Ln.outputs,mn,zt,wi);const Yi=null===qe||null===he||_s(d)?null:$c(qe,mn,he);we.push(Yi)}null!==qe&&(qe.hasOwnProperty("class")&&(d.flags|=8),qe.hasOwnProperty("style")&&(d.flags|=16)),d.initialInputs=we,d.inputs=qe,d.outputs=zt}(a,f,K)}function ci(a,d,f){const b=f.directiveStart,N=f.directiveEnd,K=f.index,he=function dc(){return Pn.lFrame.currentDirectiveIndex}();try{hc(K);for(let we=b;we<N;we++){const qe=a.data[we],zt=d[we];Bl(we),(null!==qe.hostBindings||0!==qe.hostVars||null!==qe.hostAttrs)&&Mi(qe,zt)}}finally{hc(-1),Bl(he)}}function Mi(a,d){null!==a.hostBindings&&a.hostBindings(1,d)}function sr(a,d,f){d.componentOffset=f,(a.components??=[]).push(d.index)}function is(a,d,f){if(f){if(d.exportAs)for(let b=0;b<d.exportAs.length;b++)f[d.exportAs[b]]=a;Hr(d)&&(f[""]=a)}}function ro(a,d,f,b,N){a.data[b]=N;const K=N.factory||(N.factory=_o(N.type)),he=new Td(K,Hr(N),ch);a.blueprint[b]=he,f[b]=he,function _n(a,d,f,b,N){const K=N.hostBindings;if(K){let he=a.hostBindingOpCodes;null===he&&(he=a.hostBindingOpCodes=[]);const we=~d.index;(function Fn(a){let d=a.length;for(;d>0;){const f=a[--d];if("number"==typeof f&&f<0)return f}return 0})(he)!=we&&he.push(we),he.push(f,b,K)}}(a,d,b,Fh(a,f,N.hostVars,Po),N)}function Bs(a,d,f,b,N,K){const he=Zr(a,d);!function Qo(a,d,f,b,N,K,he){if(null==K)a.removeAttribute(d,N,f);else{const we=null==he?Ar(K):he(K,b||"",N);a.setAttribute(d,N,we,f)}}(d[Ie],he,K,a.value,f,b,N)}function ha(a,d,f,b,N,K){const he=K[d];if(null!==he)for(let we=0;we<he.length;)pp(b,f,he[we++],he[we++],he[we++],he[we++])}function $c(a,d,f){let b=null,N=0;for(;N<f.length;){const K=f[N];if(0!==K)if(5!==K){if("number"==typeof K)break;if(a.hasOwnProperty(K)){null===b&&(b=[]);const he=a[K];for(let we=0;we<he.length;we+=3)if(he[we]===d){b.push(K,he[we+1],he[we+2],f[N+1]);break}}N+=2}else N+=2;else N+=4}return b}function oc(a,d,f,b){return[a,!0,0,d,null,b,null,f,null,null]}function Dc(a,d){const f=a.contentQueries;if(null!==f){const b=P(null);try{for(let N=0;N<f.length;N+=2){const he=f[N+1];if(-1!==he){const we=a.data[he];ul(f[N]),we.contentQueries(2,d[he],he)}}}finally{P(b)}}}function ml(a,d){return a[_t]?a[Nt][un]=d:a[_t]=d,a[Nt]=d,d}function Xc(a,d,f){ul(0);const b=P(null);try{d(a,f)}finally{P(b)}}function _p(a){return a[Nn]||(a[Nn]=[])}function p_(a){return a.cleanup||(a.cleanup=[])}function g_(a,d,f){return(null===a||Hr(a))&&(f=function ec(a){for(;Array.isArray(a);){if("object"==typeof a[pr])return a;a=a[Tt]}return null}(f[d.index])),f[Ie]}function Wg(a,d){const f=a[ui],b=f?f.get(Hc,null):null;b&&b.handleError(d)}function gv(a,d,f,b,N){for(let K=0;K<f.length;){const he=f[K++],we=f[K++],qe=f[K++];pp(a.data[he],d[he],b,we,qe,N)}}function ku(a,d,f){const b=Rc(d,a);!function Og(a,d,f){a.setValue(d,f)}(a[Ie],b,f)}function k0(a,d){const f=p(d,a),b=f[Ye];!function F0(a,d){for(let f=d.length;f<a.blueprint.length;f++)d.push(a.blueprint[f])}(b,f);const N=f[Tt];null!==N&&null===f[In]&&(f[In]=Uf(N,f[ui])),mv(b,f,f[ri])}function mv(a,d,f){Lc(d);try{const b=a.viewQuery;null!==b&&Xc(1,b,f);const N=a.template;null!==N&&Ug(a,d,N,1,f),a.firstCreatePass&&(a.firstCreatePass=!1),d[Tn]?.finishViewCreation(a),a.staticContentQueries&&Dc(a,d),a.staticViewQueries&&Xc(2,a.viewQuery,f);const K=a.components;null!==K&&function Bb(a,d){for(let f=0;f<d.length;f++)k0(a,d[f])}(d,K)}catch(b){throw a.firstCreatePass&&(a.incompleteFirstPass=!0,a.firstCreatePass=!1),b}finally{d[kt]&=-5,$l()}}function yp(a,d,f,b){const N=P(null);try{const K=d.tView,qe=Of(a,K,f,4096&a[kt]?4096:16,null,d,null,null,b?.injector??null,b?.embeddedViewInjector??null,b?.dehydratedView??null);qe[fn]=a[d.index];const mn=a[Tn];return null!==mn&&(qe[Tn]=mn.createEmbeddedView(K)),mv(K,qe,f),qe}finally{P(N)}}function m_(a,d){const f=Fi+d;if(f<a.length)return a[f]}function Pf(a,d){return!d||null===d.firstChild||Eu(a)}function Sp(a,d,f,b=!0){const N=d[Ye];if(function c_(a,d,f,b){const N=Fi+b,K=f.length;b>0&&(f[N-1][un]=d),b<K-Fi?(d[un]=f[N],ka(f,Fi+b,d)):(f.push(d),d[un]=null),d[It]=f;const he=d[fn];null!==he&&f!==he&&function qm(a,d){const f=a[vr];d[vn]!==d[It][It][vn]&&(a[kt]|=kr.HasTransplantedViews),null===f?a[vr]=[d]:f.push(d)}(he,d);const we=d[Tn];null!==we&&we.insertView(a),Rt(d),d[kt]|=128}(N,d,a,f),b){const he=up(f,a),we=d[Ie],qe=yf(we,a[Qi]);null!==qe&&function Zm(a,d,f,b,N,K){b[Tt]=N,b[xn]=d,lh(a,b,f,1,N,K)}(N,a[xn],we,d,qe,he)}const K=d[In];null!==K&&null!==K.firstChild&&(K.firstChild=null)}function vv(a,d){const f=Rh(a,d);return void 0!==f&&_f(f[Ye],f),f}function bp(a,d,f,b,N=!1){for(;null!==f;){const K=d[f.index];null!==K&&b.push(Ys(K)),Kr(K)&&v_(K,b);const he=f.type;if(8&he)bp(a,d,f.child,b);else if(32&he){const we=op(f,d);let qe;for(;qe=we();)b.push(qe)}else if(16&he){const we=Cf(d,f);if(Array.isArray(we))b.push(...we);else{const qe=tn(d[vn]);bp(qe[Ye],qe,we,b,!0)}}f=N?f.projectionNext:f.next}return b}function v_(a,d){for(let f=Fi;f<a.length;f++){const b=a[f],N=b[Ye].firstChild;null!==N&&bp(b[Ye],b,N,d)}a[Qi]!==a[Tt]&&d.push(a[Qi])}let __=[];const G0={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{},consumerIsAlwaysLive:!0,consumerMarkedDirty:a=>{Et(a.lView)},consumerOnSignalRead(){this.lView[rr]=this}},y_=100;function zg(a,d=!0,f=0){const b=a[ne],N=b.rendererFactory;N.begin?.();try{!function Vb(a,d){Kg(a,d);let f=0;for(;Ct(a);){if(f===y_)throw new le(103,!1);f++,Kg(a,1)}}(a,f)}catch(he){throw d&&Wg(a,he),he}finally{N.end?.(),b.inlineEffectRunner?.flush()}}function H0(a,d,f,b){const N=d[kt];if(!(256&~N))return;d[ne].inlineEffectRunner?.flush(),Lc(d);let he=null,we=null;(function j0(a){return 2!==a.type})(a)&&(we=function U0(a){return a[rr]??function B0(a){const d=__.pop()??Object.create(G0);return d.lView=a,d}(a)}(d),he=function R(a){return a&&(a.nextProducerIndex=0),P(a)}(we));try{Oe(d),function Za(a){return Pn.lFrame.bindingIndex=a}(a.bindingStartIndex),null!==f&&Ug(a,d,f,2,b);const qe=!(3&~N);if(qe){const Ln=a.preOrderCheckHooks;null!==Ln&&el(d,Ln,null)}else{const Ln=a.preOrderHooks;null!==Ln&&Ia(d,Ln,0,null),nc(d,0)}if(function W0(a){for(let d=Tr(a);null!==d;d=ss(d)){if(!(d[kt]&kr.HasTransplantedViews))continue;const f=d[vr];for(let b=0;b<f.length;b++){je(f[b])}}}(d),S_(d,0),null!==a.contentQueries&&Dc(a,d),qe){const Ln=a.contentCheckHooks;null!==Ln&&el(d,Ln)}else{const Ln=a.contentHooks;null!==Ln&&Ia(d,Ln,1),nc(d,1)}!function sv(a,d){const f=a.hostBindingOpCodes;if(null!==f)try{for(let b=0;b<f.length;b++){const N=f[b];if(N<0)hc(~N);else{const K=N,he=f[++b],we=f[++b];cc(he,K),we(2,d[K])}}}finally{hc(-1)}}(a,d);const zt=a.components;null!==zt&&K0(d,zt,0);const mn=a.viewQuery;if(null!==mn&&Xc(2,mn,b),qe){const Ln=a.viewCheckHooks;null!==Ln&&el(d,Ln)}else{const Ln=a.viewHooks;null!==Ln&&Ia(d,Ln,2),nc(d,2)}if(!0===a.firstUpdatePass&&(a.firstUpdatePass=!1),d[ki]){for(const Ln of d[ki])Ln();d[ki]=null}d[kt]&=-73}catch(qe){throw Et(d),qe}finally{null!==we&&(function B(a,d){if(P(d),a&&void 0!==a.producerNode&&void 0!==a.producerIndexOfThis&&void 0!==a.producerLastReadVersion){if(k(a))for(let f=a.nextProducerIndex;f<a.producerNode.length;f++)G(a.producerNode[f],a.producerIndexOfThis[f]);for(;a.producerNode.length>a.nextProducerIndex;)a.producerNode.pop(),a.producerLastReadVersion.pop(),a.producerIndexOfThis.pop()}}(we,he),function V0(a){a.lView[rr]!==a&&(a.lView=null,__.push(a))}(we)),$l()}}function S_(a,d){for(let f=Tr(a);null!==f;f=ss(f))for(let b=Fi;b<f.length;b++)b_(f[b],d)}function z0(a,d,f){b_(p(d,a),f)}function b_(a,d){F(a)&&Kg(a,d)}function Kg(a,d){const b=a[Ye],N=a[kt],K=a[rr];let he=!!(0===d&&16&N);if(he||=!!(64&N&&0===d),he||=!!(1024&N),he||=!(!K?.dirty||!U(K)),K&&(K.dirty=!1),a[kt]&=-9217,he)H0(b,a,b.template,a[ri]);else if(8192&N){S_(a,1);const we=b.components;null!==we&&K0(a,we,1)}}function K0(a,d,f){for(let b=0;b<d.length;b++)z0(a,d[b],f)}function $g(a){for(a[ne].changeDetectionScheduler?.notify();a;){a[kt]|=64;const d=tn(a);if(as(a)&&!d)return a;a=d}return null}class Xg{get rootNodes(){const d=this._lView,f=d[Ye];return bp(f,d,f.firstChild,[])}constructor(d,f,b=!0){this._lView=d,this._cdRefInjectingView=f,this.notifyErrorHandler=b,this._appRef=null,this._attachedToViewContainer=!1}get context(){return this._lView[ri]}set context(d){this._lView[ri]=d}get destroyed(){return!(256&~this._lView[kt])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const d=this._lView[It];if(Kr(d)){const f=d[8],b=f?f.indexOf(this):-1;b>-1&&(Rh(d,b),il(f,b))}this._attachedToViewContainer=!1}_f(this._lView[Ye],this._lView)}onDestroy(d){qt(this._lView,d)}markForCheck(){$g(this._cdRefInjectingView||this._lView)}detach(){this._lView[kt]&=-129}reattach(){Rt(this._lView),this._lView[kt]|=128}detectChanges(){this._lView[kt]|=1024,zg(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new le(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,Pg(this._lView[Ye],this._lView)}attachToAppRef(d){if(this._attachedToViewContainer)throw new le(902,!1);this._appRef=d,Rt(this._lView)}}let Yg=(()=>{class a{static{this.__NG_ELEMENT_ID__=Wb}}return a})();const Hb=Yg,jb=class extends Hb{constructor(d,f,b){super(),this._declarationLView=d,this._declarationTContainer=f,this.elementRef=b}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(d,f){return this.createEmbeddedViewImpl(d,f)}createEmbeddedViewImpl(d,f,b){const N=yp(this._declarationLView,this._declarationTContainer,d,{embeddedViewInjector:f,dehydratedView:b});return new Xg(N)}};function Wb(){return E_(Ds(),Si())}function E_(a,d){return 4&a.type?new jb(d,a,Wc(a,d)):null}let uE=()=>null;function Ep(a,d){return uE(a,d)}class Ev{}class pE{}class q0{}class mE{resolveComponentFactory(d){throw function gE(a){const d=Error(`No component factory found for ${gt(a)}.`);return d.ngComponent=a,d}(d)}}let em=(()=>{class a{static{this.NULL=new mE}}return a})();class ty{}let vE=(()=>{class a{constructor(){this.destroyNode=null}static{this.__NG_ELEMENT_ID__=()=>function _E(){const a=Si(),f=p(Ds().index,a);return(cr(f)?f:a)[Ie]}()}}return a})(),yE=(()=>{class a{static{this.\u0275prov=Pr({token:a,providedIn:"root",factory:()=>null})}}return a})();const ny={},iy=new Set;function Fu(a){iy.has(a)||(iy.add(a),performance?.mark?.("mark_feature_usage",{detail:{feature:a}}))}function ry(...a){}class ql{constructor({enableLongStackTrace:d=!1,shouldCoalesceEventChangeDetection:f=!1,shouldCoalesceRunChangeDetection:b=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new td(!1),this.onMicrotaskEmpty=new td(!1),this.onStable=new td(!1),this.onError=new td(!1),typeof Zone>"u")throw new le(908,!1);Zone.assertZonePatched();const N=this;N._nesting=0,N._outer=N._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(N._inner=N._inner.fork(new Zone.TaskTrackingZoneSpec)),d&&Zone.longStackTraceZoneSpec&&(N._inner=N._inner.fork(Zone.longStackTraceZoneSpec)),N.shouldCoalesceEventChangeDetection=!b&&f,N.shouldCoalesceRunChangeDetection=b,N.lastRequestAnimationFrameId=-1,N.nativeRequestAnimationFrame=function SE(){const a="function"==typeof nn.requestAnimationFrame;let d=nn[a?"requestAnimationFrame":"setTimeout"],f=nn[a?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&d&&f){const b=d[Zone.__symbol__("OriginalDelegate")];b&&(d=b);const N=f[Zone.__symbol__("OriginalDelegate")];N&&(f=N)}return{nativeRequestAnimationFrame:d,nativeCancelAnimationFrame:f}}().nativeRequestAnimationFrame,function CE(a){const d=()=>{!function EE(a){a.isCheckStableRunning||-1!==a.lastRequestAnimationFrameId||(a.lastRequestAnimationFrameId=a.nativeRequestAnimationFrame.call(nn,()=>{a.fakeTopEventTask||(a.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{a.lastRequestAnimationFrameId=-1,D_(a),a.isCheckStableRunning=!0,M_(a),a.isCheckStableRunning=!1},void 0,()=>{},()=>{})),a.fakeTopEventTask.invoke()}),D_(a))}(a)};a._inner=a._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(f,b,N,K,he,we)=>{if(function OE(a){return!(!Array.isArray(a)||1!==a.length)&&!0===a[0].data?.__ignore_ng_zone__}(we))return f.invokeTask(N,K,he,we);try{return sy(a),f.invokeTask(N,K,he,we)}finally{(a.shouldCoalesceEventChangeDetection&&"eventTask"===K.type||a.shouldCoalesceRunChangeDetection)&&d(),AE(a)}},onInvoke:(f,b,N,K,he,we,qe)=>{try{return sy(a),f.invoke(N,K,he,we,qe)}finally{a.shouldCoalesceRunChangeDetection&&d(),AE(a)}},onHasTask:(f,b,N,K)=>{f.hasTask(N,K),b===N&&("microTask"==K.change?(a._hasPendingMicrotasks=K.microTask,D_(a),M_(a)):"macroTask"==K.change&&(a.hasPendingMacrotasks=K.macroTask))},onHandleError:(f,b,N,K)=>(f.handleError(N,K),a.runOutsideAngular(()=>a.onError.emit(K)),!1)})}(N)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!ql.isInAngularZone())throw new le(909,!1)}static assertNotInAngularZone(){if(ql.isInAngularZone())throw new le(909,!1)}run(d,f,b){return this._inner.run(d,f,b)}runTask(d,f,b,N){const K=this._inner,he=K.scheduleEventTask("NgZoneEvent: "+N,d,bE,ry,ry);try{return K.runTask(he,f,b)}finally{K.cancelTask(he)}}runGuarded(d,f,b){return this._inner.runGuarded(d,f,b)}runOutsideAngular(d){return this._outer.run(d)}}const bE={};function M_(a){if(0==a._nesting&&!a.hasPendingMicrotasks&&!a.isStable)try{a._nesting++,a.onMicrotaskEmpty.emit(null)}finally{if(a._nesting--,!a.hasPendingMicrotasks)try{a.runOutsideAngular(()=>a.onStable.emit(null))}finally{a.isStable=!0}}}function D_(a){a.hasPendingMicrotasks=!!(a._hasPendingMicrotasks||(a.shouldCoalesceEventChangeDetection||a.shouldCoalesceRunChangeDetection)&&-1!==a.lastRequestAnimationFrameId)}function sy(a){a._nesting++,a.isStable&&(a.isStable=!1,a.onUnstable.emit(null))}function AE(a){a._nesting--,M_(a)}class oy{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new td,this.onMicrotaskEmpty=new td,this.onStable=new td,this.onError=new td}run(d,f,b){return d.apply(f,b)}runGuarded(d,f,b){return d.apply(f,b)}runOutsideAngular(d){return d()}runTask(d,f,b,N){return d.apply(f,b)}}var Mf=function(a){return a[a.EarlyRead=0]="EarlyRead",a[a.Write=1]="Write",a[a.MixedReadWrite=2]="MixedReadWrite",a[a.Read=3]="Read",a}(Mf||{});const ay={destroy(){}};function ly(a,d){!d&&Mr();const f=d?.injector??ar(Yl);if(!md(f))return ay;Fu("NgAfterNextRender");const b=f.get(tm),N=b.handler??=new dy,K=d?.phase??Mf.MixedReadWrite,he=()=>{N.unregister(qe),we()},we=f.get(ed).onDestroy(he),qe=io(f,()=>new cy(K,()=>{he(),a()}));return N.register(qe),{destroy:he}}class cy{constructor(d,f){this.phase=d,this.callbackFn=f,this.zone=ar(ql),this.errorHandler=ar(Hc,{optional:!0}),ar(Ev,{optional:!0})?.notify(1)}invoke(){try{this.zone.runOutsideAngular(this.callbackFn)}catch(d){this.errorHandler?.handleError(d)}}}class dy{constructor(){this.executingCallbacks=!1,this.buckets={[Mf.EarlyRead]:new Set,[Mf.Write]:new Set,[Mf.MixedReadWrite]:new Set,[Mf.Read]:new Set},this.deferredCallbacks=new Set}register(d){(this.executingCallbacks?this.deferredCallbacks:this.buckets[d.phase]).add(d)}unregister(d){this.buckets[d.phase].delete(d),this.deferredCallbacks.delete(d)}execute(){this.executingCallbacks=!0;for(const d of Object.values(this.buckets))for(const f of d)f.invoke();this.executingCallbacks=!1;for(const d of this.deferredCallbacks)this.buckets[d.phase].add(d);this.deferredCallbacks.clear()}destroy(){for(const d of Object.values(this.buckets))d.clear();this.deferredCallbacks.clear()}}let tm=(()=>{class a{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){this.executeInternalCallbacks(),this.handler?.execute()}executeInternalCallbacks(){const f=[...this.internalCallbacks];this.internalCallbacks.length=0;for(const b of f)b()}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}static{this.\u0275prov=Pr({token:a,providedIn:"root",factory:()=>new a})}}return a})();function Uh(a){return!!Us(a)}function Ov(a,d,f){let b=f?a.styles:null,N=f?a.classes:null,K=0;if(null!==d)for(let he=0;he<d.length;he++){const we=d[he];"number"==typeof we?K=we:1==K?N=Ht(N,we):2==K&&(b=Ht(b,we+": "+d[++he]+";"))}f?a.styles=b:a.stylesWithoutHost=b,f?a.classes=N:a.classesWithoutHost=N}class fy extends em{constructor(d){super(),this.ngModule=d}resolveComponentFactory(d){const f=Or(d);return new Cp(f,this.ngModule)}}function py(a){const d=[];for(const f in a){if(!a.hasOwnProperty(f))continue;const b=a[f];void 0!==b&&d.push({propName:Array.isArray(b)?b[0]:b,templateName:f})}return d}class Pv{constructor(d,f){this.injector=d,this.parentInjector=f}get(d,f,b){b=la(b);const N=this.injector.get(d,ny,b);return N!==ny||f===ny?N:this.parentInjector.get(d,f,b)}}class Cp extends q0{get inputs(){const d=this.componentDef,f=d.inputTransforms,b=py(d.inputs);if(null!==f)for(const N of b)f.hasOwnProperty(N.propName)&&(N.transform=f[N.propName]);return b}get outputs(){return py(this.componentDef.outputs)}constructor(d,f){super(),this.componentDef=d,this.ngModule=f,this.componentType=d.type,this.selector=function Oo(a){return a.map(ia).join(",")}(d.selectors),this.ngContentSelectors=d.ngContentSelectors?d.ngContentSelectors:[],this.isBoundToModule=!!f}create(d,f,b,N){const K=P(null);try{let he=(N=N||this.ngModule)instanceof lr?N:N?.injector;he&&null!==this.componentDef.getStandaloneInjector&&(he=this.componentDef.getStandaloneInjector(he)||he);const we=he?new Pv(d,he):d,qe=we.get(ty,null);if(null===qe)throw new le(407,!1);const zt=we.get(yE,null),oi={rendererFactory:qe,sanitizer:zt,inlineEffectRunner:null,afterRenderEventManager:we.get(tm,null),changeDetectionScheduler:we.get(Ev,null)},pi=qe.createRenderer(null,this.componentDef),wi=this.componentDef.selectors[0][0]||"div",Yi=b?function av(a,d,f,b){const K=b.get(ag,!1)||f===ps.ShadowDom,he=a.selectRootElement(d,K);return function lv(a){Gg(a)}(he),he}(pi,b,this.componentDef.encapsulation,we):vf(pi,wi,function TE(a){const d=a.toLowerCase();return"svg"===d?kl:"math"===d?"math":null}(wi));let xr=512;this.componentDef.signals?xr|=4096:this.componentDef.onPush||(xr|=16);let zr=null;null!==Yi&&(zr=Uf(Yi,we,!0));const ur=vp(0,null,null,1,0,null,null,null,null,null,null),mo=Of(null,ur,null,xr,null,null,oi,pi,we,null,zr);let Ga,yl;Lc(mo);try{const Tc=this.componentDef;let zd,Xv=null;Tc.findHostDirectiveDefs?(zd=[],Xv=new Map,Tc.findHostDirectiveDefs(Tc,zd,Xv),zd.push(Tc)):zd=[Tc];const AD=function wE(a,d){const f=a[Ye],b=Ki;return a[b]=d,su(f,b,2,"#host",null)}(mo,Yi),nI=function RE(a,d,f,b,N,K,he){const we=N[Ye];!function NE(a,d,f,b){for(const N of a)d.mergedAttrs=Mt(d.mergedAttrs,N.hostAttrs);null!==d.mergedAttrs&&(Ov(d,d.mergedAttrs,!0),null!==f&&Af(b,f,d))}(b,a,d,he);let qe=null;null!==d&&(qe=Uf(d,N[ui]));const zt=K.rendererFactory.createRenderer(d,f);let mn=16;f.signals?mn=4096:f.onPush&&(mn=64);const Ln=Of(N,Vg(f),null,mn,N[a.index],a,K,zt,null,null,qe);return we.firstCreatePass&&sr(we,a,b.length-1),ml(N,Ln),N[a.index]=Ln}(AD,Yi,Tc,zd,mo,oi,pi);yl=y(ur,Ki),Yi&&function kE(a,d,f,b){if(b)ga(a,f,["ng-version","17.3.11"]);else{const{attrs:N,classes:K}=function ra(a){const d=[],f=[];let b=1,N=2;for(;b<a.length;){let K=a[b];if("string"==typeof K)2===N?""!==K&&d.push(K,a[++b]):8===N&&f.push(K);else{if(!Bi(N))break;N=K}b++}return{attrs:d,classes:f}}(d.selectors[0]);N&&ga(a,f,N),K&&K.length>0&&Lg(a,f,K.join(" "))}}(pi,Tc,Yi,b),void 0!==f&&function FE(a,d,f){const b=a.projection=[];for(let N=0;N<d.length;N++){const K=f[N];b.push(null!=K?Array.from(K):null)}}(yl,this.ngContentSelectors,f),Ga=function LE(a,d,f,b,N,K){const he=Ds(),we=N[Ye],qe=Zr(he,N);Lt(we,N,he,f,null,b);for(let mn=0;mn<f.length;mn++)Ba(gc(N,we,he.directiveStart+mn,he),N);ci(we,N,he),qe&&Ba(qe,N);const zt=gc(N,we,he.directiveStart+he.componentOffset,he);if(a[ri]=N[ri]=zt,null!==K)for(const mn of K)mn(zt,d);return gp(we,he,N),zt}(nI,Tc,zd,Xv,mo,[UE]),mv(ur,mo,null)}finally{$l()}return new IE(this.componentType,Ga,Wc(yl,mo),mo,yl)}finally{P(K)}}}class IE extends pE{constructor(d,f,b,N,K){super(),this.location=b,this._rootLView=N,this._tNode=K,this.previousInputValues=null,this.instance=f,this.hostView=this.changeDetectorRef=new Xg(N,void 0,!1),this.componentType=d}setInput(d,f){const b=this._tNode.inputs;let N;if(null!==b&&(N=b[d])){if(this.previousInputValues??=new Map,this.previousInputValues.has(d)&&Object.is(this.previousInputValues.get(d),f))return;const K=this._rootLView;gv(K[Ye],K,N,d,f),this.previousInputValues.set(d,f),$g(p(this._tNode.index,K))}}get injector(){return new yo(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(d){this.hostView.onDestroy(d)}}function UE(){const a=Ds();Jc(Si()[Ye],a)}let Mv=(()=>{class a{static{this.__NG_ELEMENT_ID__=BE}}return a})();function BE(){return vy(Ds(),Si())}const DO=Mv,gy=class extends DO{constructor(d,f,b){super(),this._lContainer=d,this._hostTNode=f,this._hostLView=b}get element(){return Wc(this._hostTNode,this._hostLView)}get injector(){return new yo(this._hostTNode,this._hostLView)}get parentInjector(){const d=Rd(this._hostTNode,this._hostLView);if(Sd(d)){const f=ld(d,this._hostLView),b=ad(d);return new yo(f[Ye].data[b+8],f)}return new yo(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(d){const f=my(this._lContainer);return null!==f&&f[d]||null}get length(){return this._lContainer.length-Fi}createEmbeddedView(d,f,b){let N,K;"number"==typeof b?N=b:null!=b&&(N=b.index,K=b.injector);const he=Ep(this._lContainer,d.ssrId),we=d.createEmbeddedViewImpl(f||{},K,he);return this.insertImpl(we,N,Pf(this._hostTNode,he)),we}createComponent(d,f,b,N,K){const he=d&&!function _e(a){return"function"==typeof a}(d);let we;if(he)we=f;else{const wi=f||{};we=wi.index,b=wi.injector,N=wi.projectableNodes,K=wi.environmentInjector||wi.ngModuleRef}const qe=he?d:new Cp(Or(d)),zt=b||this.parentInjector;if(!K&&null==qe.ngModule){const Yi=(he?zt:this.parentInjector).get(lr,null);Yi&&(K=Yi)}const mn=Or(qe.componentType??{}),Ln=Ep(this._lContainer,mn?.id??null),pi=qe.create(zt,N,Ln?.firstChild??null,K);return this.insertImpl(pi.hostView,we,Pf(this._hostTNode,Ln)),pi}insert(d,f){return this.insertImpl(d,f,!0)}insertImpl(d,f,b){const N=d._lView;if(function Z(a){return Kr(a[It])}(N)){const we=this.indexOf(d);if(-1!==we)this.detach(we);else{const qe=N[It],zt=new gy(qe,qe[xn],qe[It]);zt.detach(zt.indexOf(d))}}const K=this._adjustIndex(f),he=this._lContainer;return Sp(he,N,K,b),d.attachToViewContainerRef(),ka(I_(he),K,d),d}move(d,f){return this.insert(d,f)}indexOf(d){const f=my(this._lContainer);return null!==f?f.indexOf(d):-1}remove(d){const f=this._adjustIndex(d,-1),b=Rh(this._lContainer,f);b&&(il(I_(this._lContainer),f),_f(b[Ye],b))}detach(d){const f=this._adjustIndex(d,-1),b=Rh(this._lContainer,f);return b&&null!=il(I_(this._lContainer),f)?new Xg(b):null}_adjustIndex(d,f=0){return d??this.length+f}};function my(a){return a[8]}function I_(a){return a[8]||(a[8]=[])}function vy(a,d){let f;const b=d[a.index];return Kr(b)?f=b:(f=oc(b,d,null,a),d[a.index]=f,ml(d,f)),_y(f,d,a,b),new gy(f,a,d)}let _y=function Sy(a,d,f,b){if(a[Qi])return;let N;N=8&f.type?Ys(b):function VE(a,d){const f=a[Ie],b=f.createComment(""),N=Zr(d,a);return Lu(f,yf(f,N),b,function u_(a,d){return a.nextSibling(d)}(f,N),!1),b}(d,f),a[Qi]=N},w_=()=>!1;function yy(a,d,f){return w_(a,d,f)}class R_{constructor(d){this.queryList=d,this.matches=null}clone(){return new R_(this.queryList)}setDirty(){this.queryList.setDirty()}}class N_{constructor(d=[]){this.queries=d}createEmbeddedView(d){const f=d.queries;if(null!==f){const b=null!==d.contentQueries?d.contentQueries[0]:f.length,N=[];for(let K=0;K<b;K++){const he=f.getByIndex(K);N.push(this.queries[he.indexInDeclarationView].clone())}return new N_(N)}return null}insertView(d){this.dirtyQueriesWithMatches(d)}detachView(d){this.dirtyQueriesWithMatches(d)}finishViewCreation(d){this.dirtyQueriesWithMatches(d)}dirtyQueriesWithMatches(d){for(let f=0;f<this.queries.length;f++)null!==Dy(d,f).matches&&this.queries[f].setDirty()}}class by{constructor(d,f,b=null){this.flags=f,this.read=b,this.predicate="string"==typeof d?function XE(a){return a.split(",").map(d=>d.trim())}(d):d}}class Ey{constructor(d=[]){this.queries=d}elementStart(d,f){for(let b=0;b<this.queries.length;b++)this.queries[b].elementStart(d,f)}elementEnd(d){for(let f=0;f<this.queries.length;f++)this.queries[f].elementEnd(d)}embeddedTView(d){let f=null;for(let b=0;b<this.length;b++){const N=null!==f?f.length:0,K=this.getByIndex(b).embeddedTView(d,N);K&&(K.indexInDeclarationView=b,null!==f?f.push(K):f=[K])}return null!==f?new Ey(f):null}template(d,f){for(let b=0;b<this.queries.length;b++)this.queries[b].template(d,f)}getByIndex(d){return this.queries[d]}get length(){return this.queries.length}track(d){this.queries.push(d)}}class L_{constructor(d,f=-1){this.metadata=d,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=f}elementStart(d,f){this.isApplyingToNode(f)&&this.matchTNode(d,f)}elementEnd(d){this._declarationNodeIndex===d.index&&(this._appliesToNextNode=!1)}template(d,f){this.elementStart(d,f)}embeddedTView(d,f){return this.isApplyingToNode(d)?(this.crossesNgTemplate=!0,this.addMatch(-d.index,f),new L_(this.metadata)):null}isApplyingToNode(d){if(this._appliesToNextNode&&1&~this.metadata.flags){const f=this._declarationNodeIndex;let b=d.parent;for(;null!==b&&8&b.type&&b.index!==f;)b=b.parent;return f===(null!==b?b.index:-1)}return this._appliesToNextNode}matchTNode(d,f){const b=this.metadata.predicate;if(Array.isArray(b))for(let N=0;N<b.length;N++){const K=b[N];this.matchTNodeWithReadOption(d,f,WE(f,K)),this.matchTNodeWithReadOption(d,f,Nd(f,d,K,!1,!1))}else b===Yg?4&f.type&&this.matchTNodeWithReadOption(d,f,-1):this.matchTNodeWithReadOption(d,f,Nd(f,d,b,!1,!1))}matchTNodeWithReadOption(d,f,b){if(null!==b){const N=this.metadata.read;if(null!==N)if(N===Vd||N===Mv||N===Yg&&4&f.type)this.addMatch(f.index,-2);else{const K=Nd(f,d,N,!1,!1);null!==K&&this.addMatch(f.index,K)}else this.addMatch(f.index,b)}}addMatch(d,f){null===this.matches?this.matches=[d,f]:this.matches.push(d,f)}}function WE(a,d){const f=a.localNames;if(null!==f)for(let b=0;b<f.length;b+=2)if(f[b]===d)return f[b+1];return null}function KE(a,d,f,b){return-1===f?function zE(a,d){return 11&a.type?Wc(a,d):4&a.type?E_(a,d):null}(d,a):-2===f?function $E(a,d,f){return f===Vd?Wc(d,a):f===Yg?E_(d,a):f===Mv?vy(d,a):void 0}(a,d,b):gc(a,a[Ye],f,d)}function Cy(a,d,f,b){const N=d[Tn].queries[b];if(null===N.matches){const K=a.data,he=f.matches,we=[];for(let qe=0;null!==he&&qe<he.length;qe+=2){const zt=he[qe];we.push(zt<0?null:KE(d,K[zt],he[qe+1],f.metadata.read))}N.matches=we}return N.matches}function k_(a,d,f,b){const N=a.queries.getByIndex(f),K=N.matches;if(null!==K){const he=Cy(a,d,N,f);for(let we=0;we<K.length;we+=2){const qe=K[we];if(qe>0)b.push(he[we/2]);else{const zt=K[we+1],mn=d[-qe];for(let Ln=Fi;Ln<mn.length;Ln++){const oi=mn[Ln];oi[fn]===oi[It]&&k_(oi[Ye],oi,zt,b)}if(null!==mn[vr]){const Ln=mn[vr];for(let oi=0;oi<Ln.length;oi++){const pi=Ln[oi];k_(pi[Ye],pi,zt,b)}}}}}return b}function Ay(a,d,f){const b=new Ju(!(4&~f));return function uv(a,d,f,b){const N=_p(d);N.push(f),a.firstCreatePass&&p_(a).push(b,N.length-1)}(a,d,b,b.destroy),(d[Tn]??=new N_).queries.push(new R_(b))-1}function My(a,d,f){null===a.queries&&(a.queries=new Ey),a.queries.track(new L_(d,f))}function Dy(a,d){return a.queries.getByIndex(d)}function xy(a,d){const f=a[Ye],b=Dy(f,d);return b.crossesNgTemplate?k_(f,a,d,[]):Cy(f,a,b,d)}function wy(a){return function Ty(a){return"function"==typeof a&&void 0!==a[M]}(a)&&"function"==typeof a.set}function B_(a){let d=function Hy(a){return Object.getPrototypeOf(a.prototype).constructor}(a.type),f=!0;const b=[a];for(;d;){let N;if(Hr(a))N=d.\u0275cmp||d.\u0275dir;else{if(d.\u0275cmp)throw new le(903,!1);N=d.\u0275dir}if(N){if(f){b.push(N);const he=a;he.inputs=xv(a.inputs),he.inputTransforms=xv(a.inputTransforms),he.declaredInputs=xv(a.declaredInputs),he.outputs=xv(a.outputs);const we=N.hostBindings;we&&h1(a,we);const qe=N.viewQuery,zt=N.contentQueries;if(qe&&d1(a,qe),zt&&u1(a,zt),l1(a,N),wt(a.outputs,N.outputs),Hr(N)&&N.data.animation){const mn=a.data;mn.animation=(mn.animation||[]).concat(N.data.animation)}}const K=N.features;if(K)for(let he=0;he<K.length;he++){const we=K[he];we&&we.ngInherit&&we(a),we===B_&&(f=!1)}}d=Object.getPrototypeOf(d)}!function c1(a){let d=0,f=null;for(let b=a.length-1;b>=0;b--){const N=a[b];N.hostVars=d+=N.hostVars,N.hostAttrs=Mt(N.hostAttrs,f=Mt(f,N.hostAttrs))}}(b)}function l1(a,d){for(const f in d.inputs){if(!d.inputs.hasOwnProperty(f)||a.inputs.hasOwnProperty(f))continue;const b=d.inputs[f];if(void 0!==b&&(a.inputs[f]=b,a.declaredInputs[f]=d.declaredInputs[f],null!==d.inputTransforms)){const N=Array.isArray(b)?b[0]:b;if(!d.inputTransforms.hasOwnProperty(N))continue;a.inputTransforms??={},a.inputTransforms[N]=d.inputTransforms[N]}}}function xv(a){return a===zi?{}:a===Ae?[]:a}function d1(a,d){const f=a.viewQuery;a.viewQuery=f?(b,N)=>{d(b,N),f(b,N)}:d}function u1(a,d){const f=a.contentQueries;a.contentQueries=f?(b,N,K)=>{d(b,N,K),f(b,N,K)}:d}function h1(a,d){const f=a.hostBindings;a.hostBindings=f?(b,N)=>{d(b,N),f(b,N)}:d}function Ky(a){const d=a.inputConfig,f={};for(const b in d)if(d.hasOwnProperty(b)){const N=d[b];Array.isArray(N)&&N[3]&&(f[b]=N[3])}a.inputTransforms=f}class Df{}class $y{}function v1(a,d){return new V_(a,d??null,[])}class V_ extends Df{constructor(d,f,b){super(),this._parent=f,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new fy(this);const N=Us(d);this._bootstrapComponents=Kc(N.bootstrap),this._r3Injector=Yu(d,f,[{provide:Df,useValue:this},{provide:em,useValue:this.componentFactoryResolver},...b],gt(d),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(d)}get injector(){return this._r3Injector}destroy(){const d=this._r3Injector;!d.destroyed&&d.destroy(),this.destroyCbs.forEach(f=>f()),this.destroyCbs=null}onDestroy(d){this.destroyCbs.push(d)}}class G_ extends $y{constructor(d){super(),this.moduleType=d}create(d){return new V_(this.moduleType,d,[])}}class Xy extends Df{constructor(d){super(),this.componentFactoryResolver=new fy(this),this.instance=null;const f=new zs([...d.providers,{provide:Df,useValue:this},{provide:em,useValue:this.componentFactoryResolver}],d.parent||Os(),d.debugName,new Set(["environment"]));this.injector=f,d.runEnvironmentInitializers&&f.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(d){this.injector.onDestroy(d)}}function Yy(a,d,f=null){return new Xy({providers:a,parent:d,debugName:f,runEnvironmentInitializers:!0}).injector}let sm=(()=>{class a{constructor(){this.cachedInjectors=new Map}getOrCreateInjector(f,b,N,K){if(!this.cachedInjectors.has(f)){const he=N.length>0?Yy(N,b,K):null;this.cachedInjectors.set(f,he)}return this.cachedInjectors.get(f)}ngOnDestroy(){try{for(const f of this.cachedInjectors.values())null!==f&&f.destroy()}finally{this.cachedInjectors.clear()}}static{this.\u0275prov=Pr({token:a,providedIn:"environment",factory:()=>new a})}}return a})(),Op=(()=>{class a{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new Ce.t(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);const f=this.taskId++;return this.pendingTasks.add(f),f}remove(f){this.pendingTasks.delete(f),0===this.pendingTasks.size&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static{this.\u0275fac=function(b){return new(b||a)}}static{this.\u0275prov=Pr({token:a,factory:a.\u0275fac,providedIn:"root"})}}return a})();function Pp(a){return!!H_(a)&&(Array.isArray(a)||!(a instanceof Map)&&Symbol.iterator in a)}function H_(a){return null!==a&&("function"==typeof a||"object"==typeof a)}function Uu(a,d,f){return a[d]=f}function Hl(a,d,f){return!Object.is(a[d],f)&&(a[d]=f,!0)}function xf(a,d,f,b){const N=Hl(a,d,f);return Hl(a,d+1,b)||N}function Tv(a,d,f,b,N){const K=xf(a,d,f,b);return Hl(a,d+2,N)||K}function lm(a,d,f,b,N,K,he,we){const qe=Si(),zt=dr(),mn=a+Ki,Ln=zt.firstCreatePass?function E1(a,d,f,b,N,K,he,we,qe){const zt=d.consts,mn=su(d,a,4,he||null,re(zt,we));ke(d,f,mn,re(zt,qe)),Jc(d,mn);const Ln=mn.tView=vp(2,mn,b,N,K,d.directiveRegistry,d.pipeRegistry,null,d.schemas,zt,null);return null!==d.queries&&(d.queries.template(d,mn),Ln.queries=d.queries.embeddedTView(mn)),mn}(mn,zt,qe,d,f,b,N,K,he):zt.data[mn];xo(Ln,!1);const oi=Zy(zt,qe,Ln,a);Oa()&&Ef(zt,qe,oi,Ln),Ba(oi,qe);const pi=oc(oi,qe,oi,Ln);return qe[mn]=pi,ml(qe,pi),yy(pi,Ln,qe),Rs(Ln)&&mp(zt,qe,Ln),null!=he&&Bg(qe,Ln,we),lm}let Zy=function Jy(a,d,f,b){return qa(!0),d[Ie].createComment("")};var jl=function(a){return a[a.NOT_STARTED=0]="NOT_STARTED",a[a.IN_PROGRESS=1]="IN_PROGRESS",a[a.COMPLETE=2]="COMPLETE",a[a.FAILED=3]="FAILED",a}(jl||{});const qy=0,O1=1;var Wl=function(a){return a[a.Placeholder=0]="Placeholder",a[a.Loading=1]="Loading",a[a.Complete=2]="Complete",a[a.Error=3]="Error",a}(Wl||{}),cm=function(a){return a[a.Initial=-1]="Initial",a}(cm||{});const Mp=0,Iv=1,eS=4,tS=5;var P1=function(a){return a[a.Manual=0]="Manual",a[a.Playthrough=1]="Playthrough",a}(P1||{});function Rv(a,d,f){const b=1===a?tS:eS;null===d[b]&&(d[b]=[]),d[b].push(f)}function um(a,d){const f=1===a?tS:eS,b=d[f];if(null!==b){for(const N of b)N();d[f]=null}}function nS(a){um(1,a),um(0,a)}function Dp(a){return a+1}function dh(a,d){return a[Dp(d.index)]}function Md(a,d){const f=Dp(d.index);return a.data[f]}function j_(a,d){return d===Wl.Placeholder?a.placeholderBlockConfig?.[qy]??null:d===Wl.Loading?a.loadingBlockConfig?.[qy]??null:null}function rS(a,d){if(!a||0===a.length)return d;const f=new Set(a);for(const b of d)f.add(b);return a.length===f.size?a:Array.from(f)}function dS(a,d){const b=d[ui].get(L1);return b.add(a),()=>b.remove(a)}let L1=(()=>{class a{constructor(){this.executingCallbacks=!1,this.idleId=null,this.current=new Set,this.deferred=new Set,this.ngZone=ar(ql),this.requestIdleCallbackFn=(typeof requestIdleCallback<"u"?requestIdleCallback:setTimeout).bind(globalThis),this.cancelIdleCallbackFn=(typeof requestIdleCallback<"u"?cancelIdleCallback:clearTimeout).bind(globalThis)}add(f){(this.executingCallbacks?this.deferred:this.current).add(f),null===this.idleId&&this.scheduleIdleCallback()}remove(f){const{current:b,deferred:N}=this;b.delete(f),N.delete(f),0===b.size&&0===N.size&&this.cancelIdleCallback()}scheduleIdleCallback(){const f=()=>{this.cancelIdleCallback(),this.executingCallbacks=!0;for(const b of this.current)b();if(this.current.clear(),this.executingCallbacks=!1,this.deferred.size>0){for(const b of this.deferred)this.current.add(b);this.deferred.clear(),this.scheduleIdleCallback()}};this.idleId=this.requestIdleCallbackFn(()=>this.ngZone.run(f))}cancelIdleCallback(){null!==this.idleId&&(this.cancelIdleCallbackFn(this.idleId),this.idleId=null)}ngOnDestroy(){this.cancelIdleCallback(),this.current.clear(),this.deferred.clear()}static{this.\u0275prov=Pr({token:a,providedIn:"root",factory:()=>new a})}}return a})();const F1=new yi("");let Q_=null;function fS(a,d,f,b,N,K,he,we,qe){const zt=Si(),mn=dr(),Ln=a+Ki;if(lm(a,null,0,0),mn.firstCreatePass){Fu("NgDefer");const xr={primaryTmplIndex:d,loadingTmplIndex:b??null,placeholderTmplIndex:N??null,errorTmplIndex:K??null,placeholderBlockConfig:null,loadingBlockConfig:null,dependencyResolverFn:f??null,loadingState:jl.NOT_STARTED,loadingPromise:null,providers:null};qe?.(mn,xr,we,he),function D1(a,d,f){const b=Dp(d);a.data[b]=f}(mn,Ln,xr)}const oi=Ds();yy(zt[Ln],oi,zt);const wi=[null,cm.Initial,null,null,null,null];!function M1(a,d,f){a[Dp(d)]=f}(zt,Ln,wi);const Yi=()=>nS(wi);Rv(0,wi,()=>gn(zt,Yi)),qt(zt,Yi)}function pS(){!function gS(a){const d=Si(),f=Ds();if(function wp(a,d){Vh(Wl.Placeholder,d,a[d.index])}(d,f),md(d[ui])){const b=a(()=>function Rp(a,d){const f=a[Ye],b=a[d.index];if(!function Y_(a){return a.get(F1,null,{optional:!0})?.behavior!==P1.Manual&&md(a)}(a[ui]))return;const K=dh(a,d),he=Md(f,d);switch(nS(K),he.loadingState){case jl.NOT_STARTED:Vh(Wl.Loading,d,b),function Z_(a,d,f){const b=d[ui],N=d[Ye];if(a.loadingState!==jl.NOT_STARTED)return a.loadingPromise??Promise.resolve();const K=dh(d,f),he=function W_(a,d){return y(a,d.primaryTmplIndex+Ki)}(N,a);a.loadingState=jl.IN_PROGRESS,um(1,K);let we=a.dependencyResolverFn;const qe=b.get(Op),zt=qe.add();return we?(a.loadingPromise=Promise.allSettled(we()).then(mn=>{let Ln=!1;const oi=[],pi=[];for(const wi of mn){if("fulfilled"!==wi.status){Ln=!0;break}{const Yi=wi.value,xr=Or(Yi)||es(Yi);if(xr)oi.push(xr);else{const zr=Zs(Yi);zr&&pi.push(zr)}}}if(a.loadingPromise=null,qe.remove(zt),Ln){if(a.loadingState=jl.FAILED,null===a.errorTmplIndex){tp(d);const Yi=new le(750,!1);Wg(d,Yi)}}else{a.loadingState=jl.COMPLETE;const wi=he.tView;if(oi.length>0){wi.directiveRegistry=rS(wi.directiveRegistry,oi);const xr=Ii(!1,...oi.map(zr=>zr.type));a.providers=xr}pi.length>0&&(wi.pipeRegistry=rS(wi.pipeRegistry,pi))}}),a.loadingPromise):(a.loadingPromise=Promise.resolve().then(()=>{a.loadingPromise=null,a.loadingState=jl.COMPLETE,qe.remove(zt)}),a.loadingPromise)}(he,a,d),he.loadingState===jl.IN_PROGRESS&&yS(he,d,b);break;case jl.IN_PROGRESS:Vh(Wl.Loading,d,b),yS(he,d,b);break;case jl.COMPLETE:Vh(Wl.Complete,d,b);break;case jl.FAILED:Vh(Wl.Error,d,b)}}(d,f),d);Rv(0,dh(d,f),b)}}(dS)}function Vh(a,d,f,b=!1){const N=f[It],K=N[Ye];if(function Er(a){return!(256&~a[kt])}(N))return;const he=dh(N,d);if(_S(he[Iv],a)&&_S(he[Mp]??-1,a)){const qe=N[ui],zt=Md(K,d),Ln=b||!md(qe)||null===function iS(a){return a.loadingBlockConfig?.[O1]??null}(zt)&&null===j_(zt,Wl.Loading)&&!j_(zt,Wl.Placeholder)?mS:Q_;try{Ln(a,he,f,d,N)}catch(oi){Wg(N,oi)}}}function mS(a,d,f,b,N){const K=function x1(a,d,f){const N=Md(d[Ye],f);switch(a){case Wl.Complete:return N.primaryTmplIndex;case Wl.Loading:return N.loadingTmplIndex;case Wl.Error:return N.errorTmplIndex;case Wl.Placeholder:return N.placeholderTmplIndex;default:return null}}(a,N,b);if(null!==K){d[Iv]=a;const he=N[Ye],qe=y(he,K+Ki),zt=0;let mn;if(vv(f,zt),a===Wl.Complete){const pi=Md(he,b),wi=pi.providers;if(wi&&wi.length>0){const Yi=N[ui],xr=function J1(a){return a instanceof Pv&&"function"==typeof a.injector.__ngOutletInjector}(Yi),zr=xr?Yi:Yi.get(lr);mn=zr.get(sm).getOrCreateInjector(pi,zr,wi,""),xr&&(mn=function q1(a,d){return a.injector.__ngOutletInjector(d)}(Yi,mn))}}const Ln=Ep(f,qe.tView.ssrId),oi=yp(N,qe,null,{dehydratedView:Ln,injector:mn});Sp(f,oi,zt,Pf(qe,Ln)),$g(oi)}}function _S(a,d){return a<d}function yS(a,d,f){a.loadingPromise.then(()=>{a.loadingState===jl.COMPLETE?Vh(Wl.Complete,d,f):a.loadingState===jl.FAILED&&Vh(Wl.Error,d,f)})}function J_(a,d,f,b){const N=Si();return Hl(N,Ja(),d)&&(dr(),Bs(Lo(),N,a,d,f,b)),J_}function Lp(a,d,f,b){return Hl(a,Ja(),f)?d+Ar(f)+b:Po}function fm(a,d,f,b,N,K){const we=xf(a,Ua(),f,N);return bl(2),we?d+Ar(f)+b+Ar(N)+K:Po}function kp(a,d,f,b,N,K,he,we){const zt=Tv(a,Ua(),f,N,he);return bl(3),zt?d+Ar(f)+b+Ar(N)+K+Ar(he)+we:Po}function q_(a,d,f,b,N,K,he,we){const qe=Si(),zt=fm(qe,d,f,b,N,K);return zt!==Po&&Bs(Lo(),qe,a,zt,he,we),q_}function e0(a,d,f,b,N,K,he,we,qe,zt){const mn=Si(),Ln=kp(mn,d,f,b,N,K,he,we);return Ln!==Po&&Bs(Lo(),mn,a,Ln,qe,zt),e0}function t0(a,d){return a<<17|d<<2}function Gh(a){return a>>17&32767}function n0(a){return 2|a}function Tf(a){return(131068&a)>>2}function r0(a,d){return-131069&a|d<<2}function s0(a){return 1|a}function MS(a,d,f,b){const N=a[f+1],K=null===d;let he=b?Gh(N):Tf(N),we=!1;for(;0!==he&&(!1===we||K);){const zt=a[he+1];oC(a[he],d)&&(we=!0,a[he+1]=b?s0(zt):n0(zt)),he=b?Gh(zt):Tf(zt)}we&&(a[f+1]=b?n0(N):s0(N))}function oC(a,d){return null===a||null==d||(Array.isArray(a)?a[1]:a)===d||!(!Array.isArray(a)||"string"!=typeof d)&&aa(a,d)>=0}const ac={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function aC(a){return a.substring(ac.key,ac.keyEnd)}function DS(a,d){const f=ac.textEnd;return f===d?-1:(d=ac.keyEnd=function uC(a,d,f){for(;d<f&&a.charCodeAt(d)>32;)d++;return d}(a,ac.key=d,f),Hp(a,d,f))}function Hp(a,d,f){for(;d<f&&a.charCodeAt(d)<=32;)d++;return d}function o0(a,d,f){const b=Si();return Hl(b,Ja(),d)&&Mc(dr(),Lo(),b,a,d,b[Ie],f,!1),o0}function RS(a,d,f,b,N){const he=N?"class":"style";gv(a,f,d.inputs[he],he,b)}function a0(a,d,f){return au(a,d,f,!1),a0}function l0(a,d){return au(a,d,null,!0),l0}function NS(a){lu(SC,Vu,a,!0)}function Vu(a,d){for(let f=function cC(a){return function TS(a){ac.key=0,ac.keyEnd=0,ac.value=0,ac.valueEnd=0,ac.textEnd=a.length}(a),DS(a,Hp(a,0,ac.textEnd))}(d);f>=0;f=DS(d,f))uo(a,aC(d),!0)}function au(a,d,f,b){const N=Si(),K=dr(),he=bl(2);K.firstUpdatePass&&kS(K,a,he,b),d!==Po&&Hl(N,he,d)&&US(K,K.data[Jr()],N,N[Ie],a,N[he+1]=function EC(a,d){return null==a||""===a||("string"==typeof d?a+=d:"object"==typeof a&&(a=gt(Ll(a)))),a}(d,f),b,he)}function lu(a,d,f,b){const N=dr(),K=bl(2);N.firstUpdatePass&&kS(N,null,K,b);const he=Si();if(f!==Po&&Hl(he,K,f)){const we=N.data[Jr()];if(VS(we,b)&&!LS(N,K)){let qe=b?we.classesWithoutHost:we.stylesWithoutHost;null!==qe&&(f=Ht(qe,f||"")),RS(N,we,he,f,b)}else!function bC(a,d,f,b,N,K,he,we){N===Po&&(N=Ae);let qe=0,zt=0,mn=0<N.length?N[0]:null,Ln=0<K.length?K[0]:null;for(;null!==mn||null!==Ln;){const oi=qe<N.length?N[qe+1]:void 0,pi=zt<K.length?K[zt+1]:void 0;let Yi,wi=null;mn===Ln?(qe+=2,zt+=2,oi!==pi&&(wi=Ln,Yi=pi)):null===Ln||null!==mn&&mn<Ln?(qe+=2,wi=mn):(zt+=2,wi=Ln,Yi=pi),null!==wi&&US(a,d,f,b,wi,Yi,he,we),mn=qe<N.length?N[qe]:null,Ln=zt<K.length?K[zt]:null}}(N,we,he,he[Ie],he[K+1],he[K+1]=function yC(a,d,f){if(null==f||""===f)return Ae;const b=[],N=Ll(f);if(Array.isArray(N))for(let K=0;K<N.length;K++)a(b,N[K],!0);else if("object"==typeof N)for(const K in N)N.hasOwnProperty(K)&&a(b,K,N[K]);else"string"==typeof N&&d(b,N);return b}(a,d,f),b,K)}}function LS(a,d){return d>=a.expandoStartIndex}function kS(a,d,f,b){const N=a.data;if(null===N[f+1]){const K=N[Jr()],he=LS(a,f);VS(K,b)&&null===d&&!he&&(d=!1),d=function gC(a,d,f,b){const N=Nc(a);let K=b?d.residualClasses:d.residualStyles;if(null===N)0===(b?d.classBindings:d.styleBindings)&&(f=Lv(f=c0(null,a,d,f,b),d.attrs,b),K=null);else{const he=d.directiveStylingLast;if(-1===he||a[he]!==N)if(f=c0(N,a,d,f,b),null===K){let qe=function mC(a,d,f){const b=f?d.classBindings:d.styleBindings;if(0!==Tf(b))return a[Gh(b)]}(a,d,b);void 0!==qe&&Array.isArray(qe)&&(qe=c0(null,a,d,qe[1],b),qe=Lv(qe,d.attrs,b),function vC(a,d,f,b){a[Gh(f?d.classBindings:d.styleBindings)]=b}(a,d,b,qe))}else K=function _C(a,d,f){let b;const N=d.directiveEnd;for(let K=1+d.directiveStylingLast;K<N;K++)b=Lv(b,a[K].hostAttrs,f);return Lv(b,d.attrs,f)}(a,d,b)}return void 0!==K&&(b?d.residualClasses=K:d.residualStyles=K),f}(N,K,d,b),function rC(a,d,f,b,N,K){let he=K?d.classBindings:d.styleBindings,we=Gh(he),qe=Tf(he);a[b]=f;let mn,zt=!1;if(Array.isArray(f)?(mn=f[1],(null===mn||aa(f,mn)>0)&&(zt=!0)):mn=f,N)if(0!==qe){const oi=Gh(a[we+1]);a[b+1]=t0(oi,we),0!==oi&&(a[oi+1]=r0(a[oi+1],b)),a[we+1]=function nC(a,d){return 131071&a|d<<17}(a[we+1],b)}else a[b+1]=t0(we,0),0!==we&&(a[we+1]=r0(a[we+1],b)),we=b;else a[b+1]=t0(qe,0),0===we?we=b:a[qe+1]=r0(a[qe+1],b),qe=b;zt&&(a[b+1]=n0(a[b+1])),MS(a,mn,b,!0),MS(a,mn,b,!1),function sC(a,d,f,b,N){const K=N?a.residualClasses:a.residualStyles;null!=K&&"string"==typeof d&&aa(K,d)>=0&&(f[b+1]=s0(f[b+1]))}(d,mn,a,b,K),he=t0(we,qe),K?d.classBindings=he:d.styleBindings=he}(N,K,d,f,he,b)}}function c0(a,d,f,b,N){let K=null;const he=f.directiveEnd;let we=f.directiveStylingLast;for(-1===we?we=f.directiveStart:we++;we<he&&(K=d[we],b=Lv(b,K.hostAttrs,N),K!==a);)we++;return null!==a&&(f.directiveStylingLast=we),b}function Lv(a,d,f){const b=f?1:2;let N=-1;if(null!==d)for(let K=0;K<d.length;K++){const he=d[K];"number"==typeof he?N=he:N===b&&(Array.isArray(a)||(a=void 0===a?[]:["",a]),uo(a,he,!!f||d[++K]))}return void 0===a?null:a}function SC(a,d,f){const b=String(d);""!==b&&!b.includes(" ")&&uo(a,b,f)}function US(a,d,f,b,N,K,he,we){if(!(3&d.type))return;const qe=a.data,zt=qe[we+1],mn=function iC(a){return!(1&~a)}(zt)?BS(qe,d,f,N,Tf(zt),he):void 0;kv(mn)||(kv(K)||function tC(a){return!(2&~a)}(zt)&&(K=BS(qe,null,f,N,we,he)),function rv(a,d,f,b,N){if(d)N?a.addClass(f,b):a.removeClass(f,b);else{let K=-1===b.indexOf("-")?void 0:gf.DashCase;null==N?a.removeStyle(f,b,K):("string"==typeof N&&N.endsWith("!important")&&(N=N.slice(0,-10),K|=gf.Important),a.setStyle(f,b,N,K))}}(b,he,Rc(Jr(),f),N,K))}function BS(a,d,f,b,N,K){const he=null===d;let we;for(;N>0;){const qe=a[N],zt=Array.isArray(qe),mn=zt?qe[1]:qe,Ln=null===mn;let oi=f[N+1];oi===Po&&(oi=Ln?Ae:void 0);let pi=Ln?$o(oi,b):mn===b?oi:void 0;if(zt&&!kv(pi)&&(pi=$o(qe,b)),kv(pi)&&(we=pi,he))return we;const wi=a[N+1];N=he?Gh(wi):Tf(wi)}if(null!==d){let qe=K?d.residualClasses:d.residualStyles;null!=qe&&(we=$o(qe,b))}return we}function kv(a){return void 0!==a}function VS(a,d){return!!(a.flags&(d?8:16))}function GS(a,d,f){lu(uo,Vu,Lp(Si(),a,d,f),!0)}class IC{destroy(d){}updateValue(d,f){}swap(d,f){const b=Math.min(d,f),N=Math.max(d,f),K=this.detach(N);if(N-b>1){const he=this.detach(b);this.attach(b,K),this.attach(N,he)}else this.attach(b,K)}move(d,f){this.attach(f,this.detach(d))}}function d0(a,d,f,b,N){return a===f&&Object.is(d,b)?1:Object.is(N(a,d),N(f,b))?-1:0}function u0(a,d,f,b){return!(void 0===d||!d.has(b)||(a.attach(f,d.get(b)),d.delete(b),0))}function HS(a,d,f,b,N){if(u0(a,d,b,f(b,N)))a.updateValue(b,N);else{const K=a.create(b,N);a.attach(b,K)}}function jS(a,d,f,b){const N=new Set;for(let K=d;K<=f;K++)N.add(b(K,a.at(K)));return N}class WS{constructor(){this.kvMap=new Map,this._vMap=void 0}has(d){return this.kvMap.has(d)}delete(d){if(!this.has(d))return!1;const f=this.kvMap.get(d);return void 0!==this._vMap&&this._vMap.has(f)?(this.kvMap.set(d,this._vMap.get(f)),this._vMap.delete(f)):this.kvMap.delete(d),!0}get(d){return this.kvMap.get(d)}set(d,f){if(this.kvMap.has(d)){let b=this.kvMap.get(d);void 0===this._vMap&&(this._vMap=new Map);const N=this._vMap;for(;N.has(b);)b=N.get(b);N.set(b,f)}else this.kvMap.set(d,f)}forEach(d){for(let[f,b]of this.kvMap)if(d(b,f),void 0!==this._vMap){const N=this._vMap;for(;N.has(b);)b=N.get(b),d(b,f)}}}function zS(a,d,f){Fu("NgControlFlow");const b=Si(),N=Ja(),K=h0(b,Ki+a);if(Hl(b,N,d)){const we=P(null);try{if(vv(K,0),-1!==d){const qe=f0(b[Ye],Ki+d),zt=Ep(K,qe.tView.ssrId);Sp(K,yp(b,qe,f,{dehydratedView:zt}),0,Pf(qe,zt))}}finally{P(we)}}else{const we=m_(K,0);void 0!==we&&(we[ri]=f)}}class RC{constructor(d,f,b){this.lContainer=d,this.$implicit=f,this.$index=b}get $count(){return this.lContainer.length-Fi}}function KS(a){return a}class dP{constructor(d,f,b){this.hasEmptyBlock=d,this.trackByFn=f,this.liveCollection=b}}function jp(a,d,f,b,N,K,he,we,qe,zt,mn,Ln,oi){Fu("NgControlFlow");const pi=void 0!==qe,wi=Si(),Yi=we?he.bind(wi[vn][ri]):he,xr=new dP(pi,Yi);wi[Ki+a]=xr,lm(a+1,d,f,b,N,K),pi&&lm(a+2,qe,zt,mn,Ln,oi)}class rd extends IC{constructor(d,f,b){super(),this.lContainer=d,this.hostLView=f,this.templateTNode=b,this.needsIndexUpdate=!1}get length(){return this.lContainer.length-Fi}at(d){return this.getLView(d)[ri].$implicit}attach(d,f){const b=f[In];this.needsIndexUpdate||=d!==this.length,Sp(this.lContainer,f,d,Pf(this.templateTNode,b))}detach(d){return this.needsIndexUpdate||=d!==this.length-1,function LC(a,d){return Rh(a,d)}(this.lContainer,d)}create(d,f){const b=Ep(this.lContainer,this.templateTNode.tView.ssrId);return yp(this.hostLView,this.templateTNode,new RC(this.lContainer,f,d),{dehydratedView:b})}destroy(d){_f(d[Ye],d)}updateValue(d,f){this.getLView(d)[ri].$implicit=f}reset(){this.needsIndexUpdate=!1}updateIndexes(){if(this.needsIndexUpdate)for(let d=0;d<this.length;d++)this.getLView(d)[ri].$index=d}getLView(d){return function kC(a,d){return m_(a,d)}(this.lContainer,d)}}function $S(a){const d=P(null),f=Jr();try{const b=Si(),N=b[Ye],K=b[f];if(void 0===K.liveCollection){const we=f+1,qe=h0(b,we),zt=f0(N,we);K.liveCollection=new rd(qe,b,zt)}else K.liveCollection.reset();const he=K.liveCollection;if(function wC(a,d,f){let b,N,K=0,he=a.length-1;if(Array.isArray(d)){let we=d.length-1;for(;K<=he&&K<=we;){const qe=a.at(K),zt=d[K],mn=d0(K,qe,K,zt,f);if(0!==mn){mn<0&&a.updateValue(K,zt),K++;continue}const Ln=a.at(he),oi=d[we],pi=d0(he,Ln,we,oi,f);if(0!==pi){pi<0&&a.updateValue(he,oi),he--,we--;continue}const wi=f(K,qe),Yi=f(he,Ln),xr=f(K,zt);if(Object.is(xr,Yi)){const zr=f(we,oi);Object.is(zr,wi)?(a.swap(K,he),a.updateValue(he,oi),we--,he--):a.move(he,K),a.updateValue(K,zt),K++}else if(b??=new WS,N??=jS(a,K,he,f),u0(a,b,K,xr))a.updateValue(K,zt),K++,he++;else if(N.has(xr))b.set(wi,a.detach(K)),he--;else{const zr=a.create(K,d[K]);a.attach(K,zr),K++,he++}}for(;K<=we;)HS(a,b,f,K,d[K]),K++}else if(null!=d){const we=d[Symbol.iterator]();let qe=we.next();for(;!qe.done&&K<=he;){const zt=a.at(K),mn=qe.value,Ln=d0(K,zt,K,mn,f);if(0!==Ln)Ln<0&&a.updateValue(K,mn),K++,qe=we.next();else{b??=new WS,N??=jS(a,K,he,f);const oi=f(K,mn);if(u0(a,b,K,oi))a.updateValue(K,mn),K++,he++,qe=we.next();else if(N.has(oi)){const pi=f(K,zt);b.set(pi,a.detach(K)),he--}else a.attach(K,a.create(K,mn)),K++,he++,qe=we.next()}}for(;!qe.done;)HS(a,b,f,a.length,qe.value),qe=we.next()}for(;K<=he;)a.destroy(a.detach(he--));b?.forEach(we=>{a.destroy(we)})}(he,a,K.trackByFn),he.updateIndexes(),K.hasEmptyBlock){const we=Ja(),qe=0===he.length;if(Hl(b,we,qe)){const zt=f+2,mn=h0(b,zt);if(qe){const Ln=f0(N,zt),oi=Ep(mn,Ln.tView.ssrId);Sp(mn,yp(b,Ln,void 0,{dehydratedView:oi}),0,Pf(Ln,oi))}else vv(mn,0)}}}finally{P(d)}}function h0(a,d){return a[d]}function f0(a,d){return y(a,d)}function Fv(a,d,f,b){const N=Si(),K=dr(),he=Ki+a,we=N[Ie],qe=K.firstCreatePass?function FC(a,d,f,b,N,K){const he=d.consts,qe=su(d,a,2,b,re(he,N));return ke(d,f,qe,re(he,K)),null!==qe.attrs&&Ov(qe,qe.attrs,!1),null!==qe.mergedAttrs&&Ov(qe,qe.mergedAttrs,!0),null!==d.queries&&d.queries.elementStart(d,qe),qe}(he,K,N,d,f,b):K.data[he],zt=g0(K,N,qe,we,d,a);N[he]=zt;const mn=Rs(qe);return xo(qe,!0),Af(we,zt,qe),!function am(a){return!(32&~a.flags)}(qe)&&Oa()&&Ef(K,N,zt,qe),0===function jn(){return Pn.lFrame.elementDepthCount}()&&Ba(zt,N),function si(){Pn.lFrame.elementDepthCount++}(),mn&&(mp(K,N,qe),gp(K,qe,N)),null!==b&&Bg(N,qe),Fv}function Wp(){let a=Ds();va()?to():(a=a.parent,xo(a,!1));const d=a;(function er(a){return Pn.skipHydrationRootTNode===a})(d)&&function Fr(){Pn.skipHydrationRootTNode=null}(),function vi(){Pn.lFrame.elementDepthCount--}();const f=dr();return f.firstCreatePass&&(Jc(f,a),Wr(a)&&f.queries.elementEnd(a)),null!=d.classesWithoutHost&&function bc(a){return!!(8&a.flags)}(d)&&RS(f,d,Si(),d.classesWithoutHost,!0),null!=d.stylesWithoutHost&&function Yd(a){return!!(16&a.flags)}(d)&&RS(f,d,Si(),d.stylesWithoutHost,!1),Wp}function p0(a,d,f,b){return Fv(a,d,f,b),Wp(),p0}let g0=(a,d,f,b,N,K)=>(qa(!0),vf(b,N,function Xd(){return Pn.lFrame.currentNamespace}()));function Uv(a,d,f){const b=Si(),N=dr(),K=a+Ki,he=N.firstCreatePass?function hP(a,d,f,b,N){const K=d.consts,he=re(K,b),we=su(d,a,8,"ng-container",he);return null!==he&&Ov(we,he,!0),ke(d,f,we,re(K,N)),null!==d.queries&&d.queries.elementStart(d,we),we}(K,N,b,d,f):N.data[K];xo(he,!0);const we=XS(N,b,he,a);return b[K]=we,Oa()&&Ef(N,b,we,he),Ba(we,b),Rs(he)&&(mp(N,b,he),gp(N,he,b)),null!=f&&Bg(b,he),Uv}function Bv(){let a=Ds();const d=dr();return va()?to():(a=a.parent,xo(a,!1)),d.firstCreatePass&&(Jc(d,a),Wr(a)&&d.queries.elementEnd(a)),Bv}function m0(a,d,f){return Uv(a,d,f),Bv(),m0}let XS=(a,d,f,b)=>(qa(!0),ap(d[Ie],""));function YS(){return Si()}function v0(a,d,f){const b=Si();return Hl(b,Ja(),d)&&Mc(dr(),Lo(),b,a,d,b[Ie],f,!0),v0}function _0(a,d,f){const b=Si();if(Hl(b,Ja(),d)){const K=dr(),he=Lo();Mc(K,he,b,a,d,g_(Nc(K.data),he,b),f,!0)}return _0}const zp=void 0;var HC=["en",[["a","p"],["AM","PM"],zp],[["AM","PM"],zp,zp],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],zp,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],zp,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",zp,"{1} 'at' {0}",zp],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function GC(a){const f=Math.floor(Math.abs(a)),b=a.toString().replace(/^[^.]*\.?/,"").length;return 1===f&&0===b?1:5}];let Kp={};function y0(a){const d=function jC(a){return a.toLowerCase().replace(/_/g,"-")}(a);let f=ZS(d);if(f)return f;const b=d.split("-")[0];if(f=ZS(b),f)return f;if("en"===b)return HC;throw new le(701,!1)}function QS(a){return y0(a)[$p.PluralCase]}function ZS(a){return a in Kp||(Kp[a]=nn.ng&&nn.ng.common&&nn.ng.common.locales&&nn.ng.common.locales[a]),Kp[a]}var $p=function(a){return a[a.LocaleId=0]="LocaleId",a[a.DayPeriodsFormat=1]="DayPeriodsFormat",a[a.DayPeriodsStandalone=2]="DayPeriodsStandalone",a[a.DaysFormat=3]="DaysFormat",a[a.DaysStandalone=4]="DaysStandalone",a[a.MonthsFormat=5]="MonthsFormat",a[a.MonthsStandalone=6]="MonthsStandalone",a[a.Eras=7]="Eras",a[a.FirstDayOfWeek=8]="FirstDayOfWeek",a[a.WeekendRange=9]="WeekendRange",a[a.DateFormat=10]="DateFormat",a[a.TimeFormat=11]="TimeFormat",a[a.DateTimeFormat=12]="DateTimeFormat",a[a.NumberSymbols=13]="NumberSymbols",a[a.NumberFormats=14]="NumberFormats",a[a.CurrencyCode=15]="CurrencyCode",a[a.CurrencySymbol=16]="CurrencySymbol",a[a.CurrencyName=17]="CurrencyName",a[a.Currencies=18]="Currencies",a[a.Directionality=19]="Directionality",a[a.PluralCase=20]="PluralCase",a[a.ExtraData=21]="ExtraData",a}($p||{});const Xp="en-US";let JS=Xp;function A0(a,d,f,b){const N=Si(),K=dr(),he=Ds();return P0(K,N,N[Ie],he,a,d,b),A0}function O0(a,d){const f=Ds(),b=Si(),N=dr();return P0(N,b,g_(Nc(N.data),f,b),f,a,d),O0}function P0(a,d,f,b,N,K,he){const we=Rs(b),zt=a.firstCreatePass&&p_(a),mn=d[ri],Ln=_p(d);let oi=!0;if(3&b.type||he){const Yi=Zr(b,d),xr=he?he(Yi):Yi,zr=Ln.length,ur=he?Ga=>he(Ys(Ga[b.index])):b.index;let mo=null;if(!he&&we&&(mo=function BA(a,d,f,b){const N=a.cleanup;if(null!=N)for(let K=0;K<N.length-1;K+=2){const he=N[K];if(he===f&&N[K+1]===b){const we=d[Nn],qe=N[K+2];return we.length>qe?we[qe]:null}"string"==typeof he&&(K+=2)}return null}(a,d,N,b.index)),null!==mo)(mo.__ngLastListenerFn__||mo).__ngNextListenerFn__=K,mo.__ngLastListenerFn__=K,oi=!1;else{K=bb(b,d,mn,K,!1);const Ga=f.listen(xr,N,K);Ln.push(K,Ga),zt&&zt.push(N,ur,zr,zr+1)}}else K=bb(b,d,mn,K,!1);const pi=b.outputs;let wi;if(oi&&null!==pi&&(wi=pi[N])){const Yi=wi.length;if(Yi)for(let xr=0;xr<Yi;xr+=2){const yl=d[wi[xr]][wi[xr+1]].subscribe(K),Tc=Ln.length;Ln.push(K,yl),zt&&zt.push(N,b.index,Tc,-(Tc+1))}}}function VA(a,d,f,b){const N=P(null);try{return dl(6,d,f),!1!==f(b)}catch(K){return Wg(a,K),!1}finally{dl(7,d,f),P(N)}}function bb(a,d,f,b,N){return function K(he){if(he===Function)return b;$g(a.componentOffset>-1?p(a.index,d):d);let qe=VA(d,f,b,he),zt=K.__ngNextListenerFn__;for(;zt;)qe=VA(d,f,zt,he)&&qe,zt=zt.__ngNextListenerFn__;return N&&!1===qe&&he.preventDefault(),qe}}function Yp(a=1){return function $a(a){return(Pn.lFrame.contextLView=function ot(a,d){for(;a>0;)d=d[en],a--;return d}(a,Pn.lFrame.contextLView))[ri]}(a)}function GA(a,d){let f=null;const b=function vl(a){const d=a.attrs;if(null!=d){const f=d.indexOf(5);if(!(1&f))return d[f+1]}return null}(a);for(let N=0;N<d.length;N++){const K=d[N];if("*"!==K){if(null===b?Ea(a,K,!0):da(b,K))return N}else f=N}return f}function jd(a){const d=Si()[vn][xn];if(!d.projection){const b=d.projection=function co(a,d){const f=[];for(let b=0;b<a;b++)f.push(d);return f}(a?a.length:1,null),N=b.slice();let K=d.child;for(;null!==K;){const he=a?GA(K,a):0;null!==he&&(N[he]?N[he].projectionNext=K:b[he]=K,N[he]=K),K=K.next}}}function Wv(a,d=0,f){const b=Si(),N=dr(),K=su(N,Ki+a,16,null,f||null);null===K.projection&&(K.projection=d),to(),(!b[In]||$i())&&32&~K.flags&&function iv(a,d,f){Ng(d[Ie],0,d,f,cp(a,f,d),Ig(f.parent||d[xn],f,d))}(N,b,K)}function M0(a,d,f){return Eb(a,"",d,"",f),M0}function Eb(a,d,f,b,N){const K=Si(),he=Lp(K,d,f,b);return he!==Po&&Mc(dr(),Lo(),K,a,he,K[Ie],N,!1),Eb}function Ji(a,d,f,b){!function Py(a,d,f,b){const N=dr();if(N.firstCreatePass){const K=Ds();My(N,new by(d,f,b),K.index),function YE(a,d){const f=a.contentQueries||(a.contentQueries=[]);d!==(f.length?f[f.length-1]:-1)&&f.push(a.queries.length-1,d)}(N,a),!(2&~f)&&(N.staticContentQueries=!0)}return Ay(N,Si(),f)}(a,d,f,b)}function $r(a,d,f){!function Oy(a,d,f){const b=dr();return b.firstCreatePass&&(My(b,new by(a,d,f),-1),!(2&~d)&&(b.staticViewQueries=!0)),Ay(b,Si(),d)}(a,d,f)}function Ts(a){const d=Si(),f=dr(),b=tc();ul(b+1);const N=Dy(f,b);if(a.dirty&&function O(a){return!(4&~a[kt])}(d)===!(2&~N.metadata.flags)){if(null===N.matches)a.reset([]);else{const K=xy(d,b);a.reset(K,Zu),a.notifyOnChanges()}return!0}return!1}function Cs(){return function F_(a,d){return a[Tn].queries[d].queryList}(Si(),tc())}function ea(a){return c(function Ul(){return Pn.lFrame.contextLView}(),Ki+a)}function RP(a,d=""){const f=Si(),b=dr(),N=a+Ki,K=b.firstCreatePass?su(b,N,1,d,null):b.data[N],he=NP(b,f,K,d,a);f[N]=he,Oa()&&Ef(b,f,he,K),xo(K,!1)}let NP=(a,d,f,b,N)=>(qa(!0),function mf(a,d){return a.createText(d)}(d[Ie],b));function jA(a){return Ob("",a,""),jA}function Ob(a,d,f){const b=Si(),N=Lp(b,a,d,f);return N!==Po&&ku(b,Jr(),N),Ob}function WA(a,d,f,b,N){const K=Si(),he=fm(K,a,d,f,b,N);return he!==Po&&ku(K,Jr(),he),WA}function zA(a,d,f,b,N,K,he){const we=Si(),qe=kp(we,a,d,f,b,N,K,he);return qe!==Po&&ku(we,Jr(),qe),zA}function KA(a,d,f){wy(d)&&(d=d());const b=Si();return Hl(b,Ja(),d)&&Mc(dr(),Lo(),b,a,d,b[Ie],f,!1),KA}function GP(a,d){const f=wy(a);return f&&a.set(d),f}function $A(a,d){const f=Si(),b=dr(),N=Ds();return P0(b,f,f[Ie],N,a,d),$A}function XA(a,d,f,b,N){if(a=Le(a),Array.isArray(a))for(let K=0;K<a.length;K++)XA(a[K],d,f,b,N);else{const K=dr(),he=Si(),we=Ds();let qe=Vr(a)?a:Le(a.provide);const zt=br(a),mn=1048575&we.providerIndexes,Ln=we.directiveStart,oi=we.providerIndexes>>20;if(Vr(a)||!a.multi){const pi=new Td(zt,N,ch),wi=QA(qe,d,N?mn:mn+oi,Ln);-1===wi?(Zd(wd(we,he),K,qe),YA(K,a,d.length),d.push(qe),we.directiveStart++,we.directiveEnd++,N&&(we.providerIndexes+=1048576),f.push(pi),he.push(pi)):(f[wi]=pi,he[wi]=pi)}else{const pi=QA(qe,d,mn+oi,Ln),wi=QA(qe,d,mn,mn+oi),xr=wi>=0&&f[wi];if(N&&!xr||!N&&!(pi>=0&&f[pi])){Zd(wd(we,he),K,qe);const zr=function LD(a,d,f,b,N){const K=new Td(a,f,ch);return K.multi=[],K.index=d,K.componentProviders=0,HP(K,N,b&&!f),K}(N?ND:RD,f.length,N,b,zt);!N&&xr&&(f[wi].providerFactory=zr),YA(K,a,d.length,0),d.push(qe),we.directiveStart++,we.directiveEnd++,N&&(we.providerIndexes+=1048576),f.push(zr),he.push(zr)}else YA(K,a,pi>-1?pi:wi,HP(f[N?wi:pi],zt,!N&&b));!N&&b&&xr&&f[wi].componentProviders++}}}function YA(a,d,f,b){const N=Vr(d),K=function Ca(a){return!!a.useClass}(d);if(N||K){const qe=(K?Le(d.useClass):d).prototype.ngOnDestroy;if(qe){const zt=a.destroyHooks||(a.destroyHooks=[]);if(!N&&d.multi){const mn=zt.indexOf(f);-1===mn?zt.push(f,[b,qe]):zt[mn+1].push(b,qe)}else zt.push(f,qe)}}}function HP(a,d,f){return f&&a.componentProviders++,a.multi.push(d)-1}function QA(a,d,f,b){for(let N=f;N<b;N++)if(d[N]===a)return N;return-1}function RD(a,d,f,b){return ZA(this.multi,[])}function ND(a,d,f,b){const N=this.multi;let K;if(this.providerFactory){const he=this.providerFactory.componentProviders,we=gc(f,f[Ye],this.providerFactory.index,b);K=we.slice(0,he),ZA(N,K);for(let qe=he;qe<we.length;qe++)K.push(we[qe])}else K=[],ZA(N,K);return K}function ZA(a,d){for(let f=0;f<a.length;f++)d.push((0,a[f])());return d}function jP(a,d=[]){return f=>{f.providersResolver=(b,N)=>function wD(a,d,f){const b=dr();if(b.firstCreatePass){const N=Hr(a);XA(f,b.data,b.blueprint,N,!0),XA(d,b.data,b.blueprint,N,!1)}}(b,N?N(a):a,d)}}let kD=(()=>{class a{constructor(f){this._injector=f,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(f){if(!f.standalone)return null;if(!this.cachedInjectors.has(f)){const b=Ii(0,f.type),N=b.length>0?Yy([b],this._injector,`Standalone[${f.type.name}]`):null;this.cachedInjectors.set(f,N)}return this.cachedInjectors.get(f)}ngOnDestroy(){try{for(const f of this.cachedInjectors.values())null!==f&&f.destroy()}finally{this.cachedInjectors.clear()}}static{this.\u0275prov=Pr({token:a,providedIn:"environment",factory:()=>new a(Ks(lr))})}}return a})();function WP(a){Fu("NgStandalone"),a.getStandaloneInjector=d=>d.get(kD).getOrCreateStandaloneInjector(a)}function zP(a,d,f){const b=a.\u0275cmp;b.directiveDefs=Ya(d,!1),b.pipeDefs=Ya(f,!0)}function $P(a,d,f){const b=Sa()+a,N=Si();return N[b]===Po?Uu(N,b,f?d.call(f):d()):function om(a,d){return a[d]}(N,b)}function XP(a,d,f,b){return qP(Si(),Sa(),a,d,f,b)}function YP(a,d,f,b,N){return eM(Si(),Sa(),a,d,f,b,N)}function QP(a,d,f,b,N,K){return tM(Si(),Sa(),a,d,f,b,N,K)}function ZP(a,d,f,b,N,K,he){return function nM(a,d,f,b,N,K,he,we,qe){const zt=d+f;return function Hd(a,d,f,b,N,K){const he=xf(a,d,f,b);return xf(a,d+2,N,K)||he}(a,zt,N,K,he,we)?Uu(a,zt+4,qe?b.call(qe,N,K,he,we):b(N,K,he,we)):T0(a,zt+4)}(Si(),Sa(),a,d,f,b,N,K,he)}function JP(a,d,f,b){return function iM(a,d,f,b,N,K){let he=d+f,we=!1;for(let qe=0;qe<N.length;qe++)Hl(a,he++,N[qe])&&(we=!0);return we?Uu(a,he,b.apply(K,N)):T0(a,he)}(Si(),Sa(),a,d,f,b)}function T0(a,d){const f=a[d];return f===Po?void 0:f}function qP(a,d,f,b,N,K){const he=d+f;return Hl(a,he,N)?Uu(a,he+1,K?b.call(K,N):b(N)):T0(a,he+1)}function eM(a,d,f,b,N,K,he){const we=d+f;return xf(a,we,N,K)?Uu(a,we+2,he?b.call(he,N,K):b(N,K)):T0(a,we+2)}function tM(a,d,f,b,N,K,he,we){const qe=d+f;return Tv(a,qe,N,K,he)?Uu(a,qe+3,we?b.call(we,N,K,he):b(N,K,he)):T0(a,qe+3)}function rM(a,d){const f=dr();let b;const N=a+Ki;f.firstCreatePass?(b=function HD(a,d){if(d)for(let f=d.length-1;f>=0;f--){const b=d[f];if(a===b.name)return b}}(d,f.pipeRegistry),f.data[N]=b,b.onDestroy&&(f.destroyHooks??=[]).push(N,b.onDestroy)):b=f.data[N];const K=b.factory||(b.factory=_o(b.type)),we=qs(ch);try{const qe=dd(!1),zt=K();return dd(qe),function _d(a,d,f,b){f>=a.data.length&&(a.data[f]=null,a.blueprint[f]=null),d[f]=b}(f,Si(),N,zt),zt}finally{qs(we)}}function sM(a,d,f){const b=a+Ki,N=Si(),K=c(N,b);return I0(N,b)?qP(N,Sa(),d,K.transform,f,K):K.transform(f)}function oM(a,d,f,b){const N=a+Ki,K=Si(),he=c(K,N);return I0(K,N)?eM(K,Sa(),d,he.transform,f,b,he):he.transform(f,b)}function aM(a,d,f,b,N){const K=a+Ki,he=Si(),we=c(he,K);return I0(he,K)?tM(he,Sa(),d,we.transform,f,b,N,we):we.transform(f,b,N)}function I0(a,d){return a[Ye].data[d].pure}function lM(a,d){return E_(a,d)}class AM{constructor(d){this.full=d;const f=d.split(".");this.major=f[0],this.minor=f[1],this.patch=f.slice(2).join(".")}}let OM=(()=>{class a{log(f){console.log(f)}warn(f){console.warn(f)}static{this.\u0275fac=function(b){return new(b||a)}}static{this.\u0275prov=Pr({token:a,factory:a.\u0275fac,providedIn:"platform"})}}return a})();const TM=new yi(""),IM=new yi("");let iO,Fx=(()=>{class a{constructor(f,b,N){this._ngZone=f,this.registry=b,this._pendingCount=0,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,iO||(function Ux(a){iO=a}(N),N.addToWindow(b)),this._watchAngularEvents(),f.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{ql.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let f=this._callbacks.pop();clearTimeout(f.timeoutId),f.doneCb()}});else{let f=this.getPendingTasks();this._callbacks=this._callbacks.filter(b=>!b.updateCb||!b.updateCb(f)||(clearTimeout(b.timeoutId),!1))}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(f=>({source:f.source,creationLocation:f.creationLocation,data:f.data})):[]}addCallback(f,b,N){let K=-1;b&&b>0&&(K=setTimeout(()=>{this._callbacks=this._callbacks.filter(he=>he.timeoutId!==K),f()},b)),this._callbacks.push({doneCb:f,timeoutId:K,updateCb:N})}whenStable(f,b,N){if(N&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(f,b,N),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(f){this.registry.registerApplication(f,this)}unregisterApplication(f){this.registry.unregisterApplication(f)}findProviders(f,b,N){return[]}static{this.\u0275fac=function(b){return new(b||a)(Ks(ql),Ks(wM),Ks(IM))}}static{this.\u0275prov=Pr({token:a,factory:a.\u0275fac})}}return a})(),wM=(()=>{class a{constructor(){this._applications=new Map}registerApplication(f,b){this._applications.set(f,b)}unregisterApplication(f){this._applications.delete(f)}unregisterAllApplications(){this._applications.clear()}getTestability(f){return this._applications.get(f)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(f,b=!0){return iO?.findTestabilityInTree(this,f,b)??null}static{this.\u0275fac=function(b){return new(b||a)}}static{this.\u0275prov=Pr({token:a,factory:a.\u0275fac,providedIn:"platform"})}}return a})();function rO(a){return!!a&&"function"==typeof a.then}function RM(a){return!!a&&"function"==typeof a.subscribe}const NM=new yi("");let sO=(()=>{class a{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((f,b)=>{this.resolve=f,this.reject=b}),this.appInits=ar(NM,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const f=[];for(const N of this.appInits){const K=N();if(rO(K))f.push(K);else if(RM(K)){const he=new Promise((we,qe)=>{K.subscribe({complete:we,error:qe})});f.push(he)}}const b=()=>{this.done=!0,this.resolve()};Promise.all(f).then(()=>{b()}).catch(N=>{this.reject(N)}),0===f.length&&b(),this.initialized=!0}static{this.\u0275fac=function(b){return new(b||a)}}static{this.\u0275prov=Pr({token:a,factory:a.\u0275fac,providedIn:"root"})}}return a})();const oO=new yi("");function FM(a,d){return Array.isArray(d)?d.reduce(FM,a):{...a,...d}}let Qp=(()=>{class a{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=ar(nu),this.afterRenderEffectManager=ar(tm),this.externalTestViews=new Set,this.beforeRender=new et.B7,this.afterTick=new et.B7,this.componentTypes=[],this.components=[],this.isStable=ar(Op).hasPendingTasks.pipe((0,be.T)(f=>!f)),this._injector=ar(lr)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(f,b){const N=f instanceof q0;if(!this._injector.get(sO).done)throw!N&&wr(f),new le(405,!1);let he;he=N?f:this._injector.get(em).resolveComponentFactory(f),this.componentTypes.push(he.componentType);const we=function Bx(a){return a.isBoundToModule}(he)?void 0:this._injector.get(Df),zt=he.create(Yl.NULL,[],b||he.selector,we),mn=zt.location.nativeElement,Ln=zt.injector.get(TM,null);return Ln?.registerApplication(mn),zt.onDestroy(()=>{this.detachView(zt.hostView),xb(this.components,zt),Ln?.unregisterApplication(mn)}),this._loadComponent(zt),zt}tick(){this._tick(!0)}_tick(f){if(this._runningTick)throw new le(101,!1);const b=P(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(f)}catch(N){this.internalErrorHandler(N)}finally{this.afterTick.next(),this._runningTick=!1,P(b)}}detectChangesInAttachedViews(f){let b=0;const N=this.afterRenderEffectManager;for(;;){if(b===y_)throw new le(103,!1);if(f){const K=0===b;this.beforeRender.next(K);for(let{_lView:he,notifyErrorHandler:we}of this._views)Gx(he,K,we)}if(b++,N.executeInternalCallbacks(),![...this.externalTestViews.keys(),...this._views].some(({_lView:K})=>aO(K))&&(N.execute(),![...this.externalTestViews.keys(),...this._views].some(({_lView:K})=>aO(K))))break}}attachView(f){const b=f;this._views.push(b),b.attachToAppRef(this)}detachView(f){const b=f;xb(this._views,b),b.detachFromAppRef()}_loadComponent(f){this.attachView(f.hostView),this.tick(),this.components.push(f);const b=this._injector.get(oO,[]);[...this._bootstrapListeners,...b].forEach(N=>N(f))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(f=>f()),this._views.slice().forEach(f=>f.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(f){return this._destroyListeners.push(f),()=>xb(this._destroyListeners,f)}destroy(){if(this._destroyed)throw new le(406,!1);const f=this._injector;f.destroy&&!f.destroyed&&f.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static{this.\u0275fac=function(b){return new(b||a)}}static{this.\u0275prov=Pr({token:a,factory:a.\u0275fac,providedIn:"root"})}}return a})();function xb(a,d){const f=a.indexOf(d);f>-1&&a.splice(f,1)}function Gx(a,d,f){!d&&!aO(a)||function Hx(a,d,f){let b;f?(b=0,a[kt]|=1024):b=64&a[kt]?0:1,zg(a,d,b)}(a,f,d)}function aO(a){return Ct(a)}class jx{constructor(d,f){this.ngModuleFactory=d,this.componentFactories=f}}let Wx=(()=>{class a{compileModuleSync(f){return new G_(f)}compileModuleAsync(f){return Promise.resolve(this.compileModuleSync(f))}compileModuleAndAllComponentsSync(f){const b=this.compileModuleSync(f),K=Kc(Us(f).declarations).reduce((he,we)=>{const qe=Or(we);return qe&&he.push(new Cp(qe)),he},[]);return new jx(b,K)}compileModuleAndAllComponentsAsync(f){return Promise.resolve(this.compileModuleAndAllComponentsSync(f))}clearCache(){}clearCacheFor(f){}getModuleId(f){}static{this.\u0275fac=function(b){return new(b||a)}}static{this.\u0275prov=Pr({token:a,factory:a.\u0275fac,providedIn:"root"})}}return a})(),$x=(()=>{class a{constructor(){this.zone=ar(ql),this.applicationRef=ar(Qp)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static{this.\u0275fac=function(b){return new(b||a)}}static{this.\u0275prov=Pr({token:a,factory:a.\u0275fac,providedIn:"root"})}}return a})();function Xx(){const a=ar(ql),d=ar(Hc);return f=>a.runOutsideAngular(()=>d.handleError(f))}let Qx=(()=>{class a{constructor(){this.subscription=new se.y,this.initialized=!1,this.zone=ar(ql),this.pendingTasks=ar(Op)}initialize(){if(this.initialized)return;this.initialized=!0;let f=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(f=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{ql.assertNotInAngularZone(),queueMicrotask(()=>{null!==f&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(f),f=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{ql.assertInAngularZone(),f??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static{this.\u0275fac=function(b){return new(b||a)}}static{this.\u0275prov=Pr({token:a,factory:a.\u0275fac,providedIn:"root"})}}return a})();const Ib=new yi("",{providedIn:"root",factory:()=>ar(Ib,fs.Optional|fs.SkipSelf)||function Zx(){return typeof $localize<"u"&&$localize.locale||Xp}()}),Jx=new yi("",{providedIn:"root",factory:()=>"USD"}),lO=new yi("");let GM=(()=>{class a{constructor(f){this._injector=f,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(f,b){const N=function PE(a="zone.js",d){return"noop"===a?new oy:"zone.js"===a?new ql(d):a}(b?.ngZone,function VM(a){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:a?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:a?.runCoalescing??!1}}({eventCoalescing:b?.ngZoneEventCoalescing,runCoalescing:b?.ngZoneRunCoalescing}));return N.run(()=>{const K=function _1(a,d,f){return new V_(a,d,f)}(f.moduleType,this.injector,function BM(a){return[{provide:ql,useFactory:a},{provide:jo,multi:!0,useFactory:()=>{const d=ar($x,{optional:!0});return()=>d.initialize()}},{provide:jo,multi:!0,useFactory:()=>{const d=ar(Qx);return()=>{d.initialize()}}},{provide:nu,useFactory:Xx}]}(()=>N)),he=K.injector.get(Hc,null);return N.runOutsideAngular(()=>{const we=N.onError.subscribe({next:qe=>{he.handleError(qe)}});K.onDestroy(()=>{xb(this._modules,K),we.unsubscribe()})}),function kM(a,d,f){try{const b=f();return rO(b)?b.catch(N=>{throw d.runOutsideAngular(()=>a.handleError(N)),N}):b}catch(b){throw d.runOutsideAngular(()=>a.handleError(b)),b}}(he,N,()=>{const we=K.injector.get(sO);return we.runInitializers(),we.donePromise.then(()=>(function qS(a){"string"==typeof a&&(JS=a.toLowerCase().replace(/_/g,"-"))}(K.injector.get(Ib,Xp)||Xp),this._moduleDoBootstrap(K),K))})})}bootstrapModule(f,b=[]){const N=FM({},b);return function Kx(a,d,f){const b=new G_(f);return Promise.resolve(b)}(0,0,f).then(K=>this.bootstrapModuleFactory(K,N))}_moduleDoBootstrap(f){const b=f.injector.get(Qp);if(f._bootstrapComponents.length>0)f._bootstrapComponents.forEach(N=>b.bootstrap(N));else{if(!f.instance.ngDoBootstrap)throw new le(-403,!1);f.instance.ngDoBootstrap(b)}this._modules.push(f)}onDestroy(f){this._destroyListeners.push(f)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new le(404,!1);this._modules.slice().forEach(b=>b.destroy()),this._destroyListeners.forEach(b=>b());const f=this._injector.get(lO,null);f&&(f.forEach(b=>b()),f.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static{this.\u0275fac=function(b){return new(b||a)(Ks(Yl))}}static{this.\u0275prov=Pr({token:a,factory:a.\u0275fac,providedIn:"platform"})}}return a})(),Zp=null;const HM=new yi("");function jM(a,d,f=[]){const b=`Platform: ${d}`,N=new yi(b);return(K=[])=>{let he=cO();if(!he||he.injector.get(HM,!1)){const we=[...f,...K,{provide:N,useValue:!0}];a?a(we):function eT(a){if(Zp&&!Zp.get(HM,!1))throw new le(400,!1);(function LM(){!function Ge(a){Qe=a}(()=>{throw new le(600,!1)})})(),Zp=a;const d=a.get(GM);(function zM(a){a.get(vc,null)?.forEach(f=>f())})(a)}(function WM(a=[],d){return Yl.create({name:d,providers:[{provide:ua,useValue:"platform"},{provide:lO,useValue:new Set([()=>Zp=null])},...a]})}(we,b))}return function tT(a){const d=cO();if(!d)throw new le(401,!1);return d}()}}function cO(){return Zp?.get(GM)??null}function iT(){}let $M=(()=>{class a{static{this.__NG_ELEMENT_ID__=rT}}return a})();function rT(a){return function sT(a,d,f){if(Qr(a)&&!f){const b=p(a.index,d);return new Xg(b,b)}return 47&a.type?new Xg(d[vn],d):null}(Ds(),Si(),!(16&~a))}class ZM{constructor(){}supports(d){return Pp(d)}create(d){return new dT(d)}}const cT=(a,d)=>d;class dT{constructor(d){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=d||cT}forEachItem(d){let f;for(f=this._itHead;null!==f;f=f._next)d(f)}forEachOperation(d){let f=this._itHead,b=this._removalsHead,N=0,K=null;for(;f||b;){const he=!b||f&&f.currentIndex<qM(b,N,K)?f:b,we=qM(he,N,K),qe=he.currentIndex;if(he===b)N--,b=b._nextRemoved;else if(f=f._next,null==he.previousIndex)N++;else{K||(K=[]);const zt=we-N,mn=qe-N;if(zt!=mn){for(let oi=0;oi<zt;oi++){const pi=oi<K.length?K[oi]:K[oi]=0,wi=pi+oi;mn<=wi&&wi<zt&&(K[oi]=pi+1)}K[he.previousIndex]=mn-zt}}we!==qe&&d(he,we,qe)}}forEachPreviousItem(d){let f;for(f=this._previousItHead;null!==f;f=f._nextPrevious)d(f)}forEachAddedItem(d){let f;for(f=this._additionsHead;null!==f;f=f._nextAdded)d(f)}forEachMovedItem(d){let f;for(f=this._movesHead;null!==f;f=f._nextMoved)d(f)}forEachRemovedItem(d){let f;for(f=this._removalsHead;null!==f;f=f._nextRemoved)d(f)}forEachIdentityChange(d){let f;for(f=this._identityChangesHead;null!==f;f=f._nextIdentityChange)d(f)}diff(d){if(null==d&&(d=[]),!Pp(d))throw new le(900,!1);return this.check(d)?this:null}onDestroy(){}check(d){this._reset();let N,K,he,f=this._itHead,b=!1;if(Array.isArray(d)){this.length=d.length;for(let we=0;we<this.length;we++)K=d[we],he=this._trackByFn(we,K),null!==f&&Object.is(f.trackById,he)?(b&&(f=this._verifyReinsertion(f,K,he,we)),Object.is(f.item,K)||this._addIdentityChange(f,K)):(f=this._mismatch(f,K,he,we),b=!0),f=f._next}else N=0,function Qy(a,d){if(Array.isArray(a))for(let f=0;f<a.length;f++)d(a[f]);else{const f=a[Symbol.iterator]();let b;for(;!(b=f.next()).done;)d(b.value)}}(d,we=>{he=this._trackByFn(N,we),null!==f&&Object.is(f.trackById,he)?(b&&(f=this._verifyReinsertion(f,we,he,N)),Object.is(f.item,we)||this._addIdentityChange(f,we)):(f=this._mismatch(f,we,he,N),b=!0),f=f._next,N++}),this.length=N;return this._truncate(f),this.collection=d,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let d;for(d=this._previousItHead=this._itHead;null!==d;d=d._next)d._nextPrevious=d._next;for(d=this._additionsHead;null!==d;d=d._nextAdded)d.previousIndex=d.currentIndex;for(this._additionsHead=this._additionsTail=null,d=this._movesHead;null!==d;d=d._nextMoved)d.previousIndex=d.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(d,f,b,N){let K;return null===d?K=this._itTail:(K=d._prev,this._remove(d)),null!==(d=null===this._unlinkedRecords?null:this._unlinkedRecords.get(b,null))?(Object.is(d.item,f)||this._addIdentityChange(d,f),this._reinsertAfter(d,K,N)):null!==(d=null===this._linkedRecords?null:this._linkedRecords.get(b,N))?(Object.is(d.item,f)||this._addIdentityChange(d,f),this._moveAfter(d,K,N)):d=this._addAfter(new uT(f,b),K,N),d}_verifyReinsertion(d,f,b,N){let K=null===this._unlinkedRecords?null:this._unlinkedRecords.get(b,null);return null!==K?d=this._reinsertAfter(K,d._prev,N):d.currentIndex!=N&&(d.currentIndex=N,this._addToMoves(d,N)),d}_truncate(d){for(;null!==d;){const f=d._next;this._addToRemovals(this._unlink(d)),d=f}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(d,f,b){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(d);const N=d._prevRemoved,K=d._nextRemoved;return null===N?this._removalsHead=K:N._nextRemoved=K,null===K?this._removalsTail=N:K._prevRemoved=N,this._insertAfter(d,f,b),this._addToMoves(d,b),d}_moveAfter(d,f,b){return this._unlink(d),this._insertAfter(d,f,b),this._addToMoves(d,b),d}_addAfter(d,f,b){return this._insertAfter(d,f,b),this._additionsTail=null===this._additionsTail?this._additionsHead=d:this._additionsTail._nextAdded=d,d}_insertAfter(d,f,b){const N=null===f?this._itHead:f._next;return d._next=N,d._prev=f,null===N?this._itTail=d:N._prev=d,null===f?this._itHead=d:f._next=d,null===this._linkedRecords&&(this._linkedRecords=new JM),this._linkedRecords.put(d),d.currentIndex=b,d}_remove(d){return this._addToRemovals(this._unlink(d))}_unlink(d){null!==this._linkedRecords&&this._linkedRecords.remove(d);const f=d._prev,b=d._next;return null===f?this._itHead=b:f._next=b,null===b?this._itTail=f:b._prev=f,d}_addToMoves(d,f){return d.previousIndex===f||(this._movesTail=null===this._movesTail?this._movesHead=d:this._movesTail._nextMoved=d),d}_addToRemovals(d){return null===this._unlinkedRecords&&(this._unlinkedRecords=new JM),this._unlinkedRecords.put(d),d.currentIndex=null,d._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=d,d._prevRemoved=null):(d._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=d),d}_addIdentityChange(d,f){return d.item=f,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=d:this._identityChangesTail._nextIdentityChange=d,d}}class uT{constructor(d,f){this.item=d,this.trackById=f,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class hT{constructor(){this._head=null,this._tail=null}add(d){null===this._head?(this._head=this._tail=d,d._nextDup=null,d._prevDup=null):(this._tail._nextDup=d,d._prevDup=this._tail,d._nextDup=null,this._tail=d)}get(d,f){let b;for(b=this._head;null!==b;b=b._nextDup)if((null===f||f<=b.currentIndex)&&Object.is(b.trackById,d))return b;return null}remove(d){const f=d._prevDup,b=d._nextDup;return null===f?this._head=b:f._nextDup=b,null===b?this._tail=f:b._prevDup=f,null===this._head}}class JM{constructor(){this.map=new Map}put(d){const f=d.trackById;let b=this.map.get(f);b||(b=new hT,this.map.set(f,b)),b.add(d)}get(d,f){const N=this.map.get(d);return N?N.get(d,f):null}remove(d){const f=d.trackById;return this.map.get(f).remove(d)&&this.map.delete(f),d}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function qM(a,d,f){const b=a.previousIndex;if(null===b)return b;let N=0;return f&&b<f.length&&(N=f[b]),b+d+N}class eD{constructor(){}supports(d){return d instanceof Map||H_(d)}create(){return new fT}}class fT{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(d){let f;for(f=this._mapHead;null!==f;f=f._next)d(f)}forEachPreviousItem(d){let f;for(f=this._previousMapHead;null!==f;f=f._nextPrevious)d(f)}forEachChangedItem(d){let f;for(f=this._changesHead;null!==f;f=f._nextChanged)d(f)}forEachAddedItem(d){let f;for(f=this._additionsHead;null!==f;f=f._nextAdded)d(f)}forEachRemovedItem(d){let f;for(f=this._removalsHead;null!==f;f=f._nextRemoved)d(f)}diff(d){if(d){if(!(d instanceof Map||H_(d)))throw new le(900,!1)}else d=new Map;return this.check(d)?this:null}onDestroy(){}check(d){this._reset();let f=this._mapHead;if(this._appendAfter=null,this._forEach(d,(b,N)=>{if(f&&f.key===N)this._maybeAddToChanges(f,b),this._appendAfter=f,f=f._next;else{const K=this._getOrCreateRecordForKey(N,b);f=this._insertBeforeOrAppend(f,K)}}),f){f._prev&&(f._prev._next=null),this._removalsHead=f;for(let b=f;null!==b;b=b._nextRemoved)b===this._mapHead&&(this._mapHead=null),this._records.delete(b.key),b._nextRemoved=b._next,b.previousValue=b.currentValue,b.currentValue=null,b._prev=null,b._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(d,f){if(d){const b=d._prev;return f._next=d,f._prev=b,d._prev=f,b&&(b._next=f),d===this._mapHead&&(this._mapHead=f),this._appendAfter=d,d}return this._appendAfter?(this._appendAfter._next=f,f._prev=this._appendAfter):this._mapHead=f,this._appendAfter=f,null}_getOrCreateRecordForKey(d,f){if(this._records.has(d)){const N=this._records.get(d);this._maybeAddToChanges(N,f);const K=N._prev,he=N._next;return K&&(K._next=he),he&&(he._prev=K),N._next=null,N._prev=null,N}const b=new pT(d);return this._records.set(d,b),b.currentValue=f,this._addToAdditions(b),b}_reset(){if(this.isDirty){let d;for(this._previousMapHead=this._mapHead,d=this._previousMapHead;null!==d;d=d._next)d._nextPrevious=d._next;for(d=this._changesHead;null!==d;d=d._nextChanged)d.previousValue=d.currentValue;for(d=this._additionsHead;null!=d;d=d._nextAdded)d.previousValue=d.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(d,f){Object.is(f,d.currentValue)||(d.previousValue=d.currentValue,d.currentValue=f,this._addToChanges(d))}_addToAdditions(d){null===this._additionsHead?this._additionsHead=this._additionsTail=d:(this._additionsTail._nextAdded=d,this._additionsTail=d)}_addToChanges(d){null===this._changesHead?this._changesHead=this._changesTail=d:(this._changesTail._nextChanged=d,this._changesTail=d)}_forEach(d,f){d instanceof Map?d.forEach(f):Object.keys(d).forEach(b=>f(d[b],b))}}class pT{constructor(d){this.key=d,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function tD(){return new pO([new ZM])}let pO=(()=>{class a{static{this.\u0275prov=Pr({token:a,providedIn:"root",factory:tD})}constructor(f){this.factories=f}static create(f,b){if(null!=b){const N=b.factories.slice();f=f.concat(N)}return new a(f)}static extend(f){return{provide:a,useFactory:b=>a.create(f,b||tD()),deps:[[a,new Co,new no]]}}find(f){const b=this.factories.find(N=>N.supports(f));if(null!=b)return b;throw new le(901,!1)}}return a})();function nD(){return new gO([new eD])}let gO=(()=>{class a{static{this.\u0275prov=Pr({token:a,providedIn:"root",factory:nD})}constructor(f){this.factories=f}static create(f,b){if(b){const N=b.factories.slice();f=f.concat(N)}return new a(f)}static extend(f){return{provide:a,useFactory:b=>a.create(f,b||nD()),deps:[[a,new Co,new no]]}}find(f){const b=this.factories.find(N=>N.supports(f));if(b)return b;throw new le(901,!1)}}return a})();const vT=jM(null,"core",[]);let _T=(()=>{class a{constructor(f){}static{this.\u0275fac=function(b){return new(b||a)(Ks(Qp))}}static{this.\u0275mod=Un({type:a})}static{this.\u0275inj=js({})}}return a})();function $T(a){return"boolean"==typeof a?a:null!=a&&"false"!==a}function YT(a){const d=P(null);try{return a()}finally{P(d)}}function tI(a){const d=Or(a);if(!d)return null;const f=new Cp(d);return{get selector(){return f.selector},get type(){return f.componentType},get inputs(){return f.inputs},get outputs(){return f.outputs},get ngContentSelectors(){return f.ngContentSelectors},get isStandalone(){return d.standalone},get isSignal(){return d.signals}}}},45768:(St,z,s)=>{"use strict";s.d(z,{pQ:()=>C});var i=s(58527),n=s(17053),h=s(4208);function C(g){g||((0,i.Af3)(C),g=(0,i.WQX)(i.abz));const m=new n.c(l=>g.onDestroy(l.next.bind(l)));return l=>l.pipe((0,h.Q)(m))}},73004:(St,z,s)=>{"use strict";function i(g){for(let m in g){let l=g[m]??"";switch(m){case"display":g.display="flex"===l?["-webkit-flex","flex"]:"inline-flex"===l?["-webkit-inline-flex","inline-flex"]:l;break;case"align-items":case"align-self":case"align-content":case"flex":case"flex-basis":case"flex-flow":case"flex-grow":case"flex-shrink":case"flex-wrap":case"justify-content":g["-webkit-"+m]=l;break;case"flex-direction":g["-webkit-flex-direction"]=l,g["flex-direction"]=l;break;case"order":g.order=g["-webkit-"+m]=isNaN(+l)?"0":l}}return g}s.d(z,{C5:()=>A,O5:()=>i,Uo:()=>h,Vc:()=>M,uG:()=>C});const n="inline",h=["row","column","row-reverse","column-reverse"];function C(g){let[m,l,r]=S(g);return function x(g,m=null,l=!1){return{display:l?"inline-flex":"flex","box-sizing":"border-box","flex-direction":g,"flex-wrap":m||null}}(m,l,r)}function S(g){g=g?.toLowerCase()??"";let[m,l,r]=g.split(" ");return h.find(u=>u===m)||(m=h[0]),l===n&&(l=r!==n?r:"",r=n),[m,P(l),!!r]}function M(g){let[m]=S(g);return m.indexOf("row")>-1}function P(g){if(g)switch(g.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":g="wrap-reverse";break;case"no":case"none":case"nowrap":g="nowrap";break;default:g="wrap"}return g}function A(g,...m){if(null==g)throw TypeError("Cannot convert undefined or null to object");for(let l of m)if(null!=l)for(let r in l)l.hasOwnProperty(r)&&(g[r]=l[r]);return g}},2833:(St,z,s)=>{"use strict";s.d(z,{Ce:()=>R,DJ:()=>fe,EA:()=>T,PV:()=>E,SL:()=>B,Ui:()=>r,ZH:()=>ae,cL:()=>nn,hN:()=>Qt,qH:()=>Xe,r3:()=>Y});var i=s(58527),n=s(61142),h=s(26513),C=s(17053),S=s(16229),M=s(80583),P=s(73004),x=s(8619),A=s(91384);const m={provide:i.iLQ,useFactory:function g(Xt,lt){return()=>{if((0,n.UE)(lt)){const Ue=Array.from(Xt.querySelectorAll(`[class*=${l}]`)),wt=/\bflex-layout-.+?\b/g;Ue.forEach(gt=>{gt.classList.contains(`${l}ssr`)&>.parentNode?gt.parentNode.removeChild(gt):gt.className.replace(wt,"")})}}},deps:[n.qQ,i.Agw],multi:!0},l="flex-layout-";let r=(()=>{class Xt{}return Xt.\u0275fac=function(Ue){return new(Ue||Xt)},Xt.\u0275mod=i.$C({type:Xt}),Xt.\u0275inj=i.G2t({providers:[m]}),Xt})();class u{constructor(lt=!1,Ue="all",wt="",gt="",Ht=0){this.matches=lt,this.mediaQuery=Ue,this.mqAlias=wt,this.suffix=gt,this.priority=Ht,this.property=""}clone(){return new u(this.matches,this.mediaQuery,this.mqAlias,this.suffix)}}let v=(()=>{class Xt{constructor(){this.stylesheet=new Map}addStyleToElement(Ue,wt,gt){const Ht=this.stylesheet.get(Ue);Ht?Ht.set(wt,gt):this.stylesheet.set(Ue,new Map([[wt,gt]]))}clearStyles(){this.stylesheet.clear()}getStyleForElement(Ue,wt){const gt=this.stylesheet.get(Ue);let Ht="";if(gt){const bn=gt.get(wt);("number"==typeof bn||"string"==typeof bn)&&(Ht=bn+"")}return Ht}}return Xt.\u0275fac=function(Ue){return new(Ue||Xt)},Xt.\u0275prov=i.jDH({token:Xt,factory:Xt.\u0275fac,providedIn:"root"}),Xt})();const E={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[],multiplier:void 0,defaultUnit:"px",detectLayoutDisplay:!1},T=new i.nKC("Flex Layout token, config options for the library",{providedIn:"root",factory:()=>E}),R=new i.nKC("FlexLayoutServerLoaded",{providedIn:"root",factory:()=>!1}),B=new i.nKC("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:()=>null});function U(Xt,lt){return Xt=Xt?.clone()??new u,lt&&(Xt.mqAlias=lt.alias,Xt.mediaQuery=lt.mediaQuery,Xt.suffix=lt.suffix,Xt.priority=lt.priority),Xt}class Y{constructor(){this.shouldCache=!0}sideEffect(lt,Ue,wt){}}let ae=(()=>{class Xt{constructor(Ue,wt,gt,Ht){this._serverStylesheet=Ue,this._serverModuleLoaded=wt,this._platformId=gt,this.layoutConfig=Ht}applyStyleToElement(Ue,wt,gt=null){let Ht={};"string"==typeof wt&&(Ht[wt]=gt,wt=Ht),Ht=this.layoutConfig.disableVendorPrefixes?wt:(0,P.O5)(wt),this._applyMultiValueStyleToElement(Ht,Ue)}applyStyleToElements(Ue,wt=[]){const gt=this.layoutConfig.disableVendorPrefixes?Ue:(0,P.O5)(Ue);wt.forEach(Ht=>{this._applyMultiValueStyleToElement(gt,Ht)})}getFlowDirection(Ue){const wt="flex-direction";let gt=this.lookupStyle(Ue,wt);return[gt||"row",this.lookupInlineStyle(Ue,wt)||(0,n.Vy)(this._platformId)&&this._serverModuleLoaded?gt:""]}hasWrap(Ue){return"wrap"===this.lookupStyle(Ue,"flex-wrap")}lookupAttributeValue(Ue,wt){return Ue.getAttribute(wt)??""}lookupInlineStyle(Ue,wt){return(0,n.UE)(this._platformId)?Ue.style.getPropertyValue(wt):function G(Xt,lt){return q(Xt)[lt]??""}(Ue,wt)}lookupStyle(Ue,wt,gt=!1){let Ht="";return Ue&&((Ht=this.lookupInlineStyle(Ue,wt))||((0,n.UE)(this._platformId)?gt||(Ht=getComputedStyle(Ue).getPropertyValue(wt)):this._serverModuleLoaded&&(Ht=this._serverStylesheet.getStyleForElement(Ue,wt)))),Ht?Ht.trim():""}_applyMultiValueStyleToElement(Ue,wt){Object.keys(Ue).sort().forEach(gt=>{const Ht=Ue[gt],bn=Array.isArray(Ht)?Ht:[Ht];bn.sort();for(let Ut of bn)Ut=Ut?Ut+"":"",(0,n.UE)(this._platformId)||!this._serverModuleLoaded?(0,n.UE)(this._platformId)?wt.style.setProperty(gt,Ut):k(wt,gt,Ut):this._serverStylesheet.addStyleToElement(wt,gt,Ut)})}}return Xt.\u0275fac=function(Ue){return new(Ue||Xt)(i.KVO(v),i.KVO(R),i.KVO(i.Agw),i.KVO(T))},Xt.\u0275prov=i.jDH({token:Xt,factory:Xt.\u0275fac,providedIn:"root"}),Xt})();function k(Xt,lt,Ue){lt=lt.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();const wt=q(Xt);wt[lt]=Ue??"",function X(Xt,lt){let Ue="";for(const wt in lt)lt[wt]&&(Ue+=`${wt}:${lt[wt]};`);Xt.setAttribute("style",Ue)}(Xt,wt)}function q(Xt){const lt={},Ue=Xt.getAttribute("style");if(Ue){const wt=Ue.split(/;+/g);for(let gt=0;gt<wt.length;gt++){const Ht=wt[gt].trim();if(Ht.length>0){const bn=Ht.indexOf(":");if(-1===bn)throw new Error(`Invalid CSS style: ${Ht}`);lt[Ht.substr(0,bn).trim()]=Ht.substr(bn+1).trim()}}}return lt}function Q(Xt,lt){return(lt&<.priority||0)-(Xt&&Xt.priority||0)}function ce(Xt,lt){return(Xt.priority||0)-(lt.priority||0)}let te=(()=>{class Xt{constructor(Ue,wt,gt){this._zone=Ue,this._platformId=wt,this._document=gt,this.source=new h.t(new u(!0)),this.registry=new Map,this.pendingRemoveListenerFns=[],this._observable$=this.source.asObservable()}get activations(){const Ue=[];return this.registry.forEach((wt,gt)=>{wt.matches&&Ue.push(gt)}),Ue}isActive(Ue){return this.registry.get(Ue)?.matches??this.registerQuery(Ue).some(gt=>gt.matches)}observe(Ue,wt=!1){if(Ue&&Ue.length){const gt=this._observable$.pipe((0,x.p)(bn=>!wt||Ue.indexOf(bn.mediaQuery)>-1)),Ht=new C.c(bn=>{const Ut=this.registerQuery(Ue);if(Ut.length){const Bt=Ut.pop();Ut.forEach(Le=>{bn.next(Le)}),this.source.next(Bt)}bn.complete()});return(0,S.h)(Ht,gt)}return this._observable$}registerQuery(Ue){const wt=Array.isArray(Ue)?Ue:[Ue],gt=[];return function it(Xt,lt){const Ue=Xt.filter(wt=>!Ee[wt]);if(Ue.length>0){const wt=Ue.join(", ");try{const gt=lt.createElement("style");gt.setAttribute("type","text/css"),gt.styleSheet||gt.appendChild(lt.createTextNode(`\n/*\n @angular/flex-layout - workaround for possible browser quirk with mediaQuery listeners\n see http://bit.ly/2sd4HMP\n*/\n@media ${wt} {.fx-query-test{ }}\n`)),lt.head.appendChild(gt),Ue.forEach(Ht=>Ee[Ht]=gt)}catch(gt){console.error(gt)}}}(wt,this._document),wt.forEach(Ht=>{const bn=Bt=>{this._zone.run(()=>this.source.next(new u(Bt.matches,Ht)))};let Ut=this.registry.get(Ht);Ut||(Ut=this.buildMQL(Ht),Ut.addListener(bn),this.pendingRemoveListenerFns.push(()=>Ut.removeListener(bn)),this.registry.set(Ht,Ut)),Ut.matches&>.push(new u(!0,Ht))}),gt}ngOnDestroy(){let Ue;for(;Ue=this.pendingRemoveListenerFns.pop();)Ue()}buildMQL(Ue){return function Qe(Xt,lt){return lt&&window.matchMedia("all").addListener?window.matchMedia(Xt):function Fe(Xt){const lt=new EventTarget;return lt.matches="all"===Xt||""===Xt,lt.media=Xt,lt.addListener=()=>{},lt.removeListener=()=>{},lt.addEventListener=()=>{},lt.dispatchEvent=()=>!1,lt.onchange=null,lt}(Xt)}(Ue,(0,n.UE)(this._platformId))}}return Xt.\u0275fac=function(Ue){return new(Ue||Xt)(i.KVO(i.SKi),i.KVO(i.Agw),i.KVO(n.qQ))},Xt.\u0275prov=i.jDH({token:Xt,factory:Xt.\u0275fac,providedIn:"root"}),Xt})();const Ee={},ct=[{alias:"xs",mediaQuery:"screen and (min-width: 0px) and (max-width: 599.98px)",priority:1e3},{alias:"sm",mediaQuery:"screen and (min-width: 600px) and (max-width: 959.98px)",priority:900},{alias:"md",mediaQuery:"screen and (min-width: 960px) and (max-width: 1279.98px)",priority:800},{alias:"lg",mediaQuery:"screen and (min-width: 1280px) and (max-width: 1919.98px)",priority:700},{alias:"xl",mediaQuery:"screen and (min-width: 1920px) and (max-width: 4999.98px)",priority:600},{alias:"lt-sm",overlapping:!0,mediaQuery:"screen and (max-width: 599.98px)",priority:950},{alias:"lt-md",overlapping:!0,mediaQuery:"screen and (max-width: 959.98px)",priority:850},{alias:"lt-lg",overlapping:!0,mediaQuery:"screen and (max-width: 1279.98px)",priority:750},{alias:"lt-xl",overlapping:!0,priority:650,mediaQuery:"screen and (max-width: 1919.98px)"},{alias:"gt-xs",overlapping:!0,mediaQuery:"screen and (min-width: 600px)",priority:-950},{alias:"gt-sm",overlapping:!0,mediaQuery:"screen and (min-width: 960px)",priority:-850},{alias:"gt-md",overlapping:!0,mediaQuery:"screen and (min-width: 1280px)",priority:-750},{alias:"gt-lg",overlapping:!0,mediaQuery:"screen and (min-width: 1920px)",priority:-650}],Ge="(orientation: portrait) and (max-width: 599.98px)",nt="(orientation: landscape) and (max-width: 959.98px)",Je="(orientation: portrait) and (min-width: 600px) and (max-width: 839.98px)",ze="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.98px)",Ke="(orientation: portrait) and (min-width: 840px)",Ve="(orientation: landscape) and (min-width: 1280px)",$e={HANDSET:`${Ge}, ${nt}`,TABLET:`${Je} , ${ze}`,WEB:`${Ke}, ${Ve} `,HANDSET_PORTRAIT:`${Ge}`,TABLET_PORTRAIT:`${Je} `,WEB_PORTRAIT:`${Ke}`,HANDSET_LANDSCAPE:`${nt}`,TABLET_LANDSCAPE:`${ze}`,WEB_LANDSCAPE:`${Ve}`},dt=[{alias:"handset",priority:2e3,mediaQuery:$e.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:$e.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:$e.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:$e.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:$e.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:$e.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:$e.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:$e.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:$e.WEB_PORTRAIT,overlapping:!0}],Pe=/(\.|-|_)/g;function J(Xt){let lt=Xt.length>0?Xt.charAt(0):"",Ue=Xt.length>1?Xt.slice(1):"";return lt.toUpperCase()+Ue}const et=new i.nKC("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:()=>{const Xt=(0,i.WQX)(B),lt=(0,i.WQX)(T),Ue=[].concat.apply([],(Xt||[]).map(gt=>Array.isArray(gt)?gt:[gt]));return function ue(Xt,lt=[]){const Ue={};return Xt.forEach(wt=>{Ue[wt.alias]=wt}),lt.forEach(wt=>{Ue[wt.alias]?(0,P.C5)(Ue[wt.alias],wt):Ue[wt.alias]=wt}),function ve(Xt){return Xt.forEach(lt=>{lt.suffix||(lt.suffix=function vt(Xt){return Xt.replace(Pe,"|").split("|").map(J).join("")}(lt.alias),lt.overlapping=!!lt.overlapping)}),Xt}(Object.keys(Ue).map(wt=>Ue[wt]))}((lt.disableDefaultBps?[]:ct).concat(lt.addOrientationBps?dt:[]),Ue)}});let se=(()=>{class Xt{constructor(Ue){this.findByMap=new Map,this.items=[...Ue].sort(ce)}findByAlias(Ue){return Ue?this.findWithPredicate(Ue,wt=>wt.alias===Ue):null}findByQuery(Ue){return this.findWithPredicate(Ue,wt=>wt.mediaQuery===Ue)}get overlappings(){return this.items.filter(Ue=>Ue.overlapping)}get aliases(){return this.items.map(Ue=>Ue.alias)}get suffixes(){return this.items.map(Ue=>Ue?.suffix??"")}findWithPredicate(Ue,wt){let gt=this.findByMap.get(Ue);return gt||(gt=this.items.find(wt)??null,this.findByMap.set(Ue,gt)),gt??null}}return Xt.\u0275fac=function(Ue){return new(Ue||Xt)(i.KVO(et))},Xt.\u0275prov=i.jDH({token:Xt,factory:Xt.\u0275fac,providedIn:"root"}),Xt})();const Ce="print",be={alias:Ce,mediaQuery:Ce,priority:1e3};let rt=(()=>{class Xt{constructor(Ue,wt,gt){this.breakpoints=Ue,this.layoutConfig=wt,this._document=gt,this.registeredBeforeAfterPrintHooks=!1,this.isPrintingBeforeAfterEvent=!1,this.beforePrintEventListeners=[],this.afterPrintEventListeners=[],this.formerActivations=null,this.isPrinting=!1,this.queue=new me,this.deactivations=[]}withPrintQuery(Ue){return[...Ue,Ce]}isPrintEvent(Ue){return Ue.mediaQuery.startsWith(Ce)}get printAlias(){return[...this.layoutConfig.printWithBreakpoints??[]]}get printBreakPoints(){return this.printAlias.map(Ue=>this.breakpoints.findByAlias(Ue)).filter(Ue=>null!==Ue)}getEventBreakpoints({mediaQuery:Ue}){const wt=this.breakpoints.findByQuery(Ue);return(wt?[...this.printBreakPoints,wt]:this.printBreakPoints).sort(Q)}updateEvent(Ue){let wt=this.breakpoints.findByQuery(Ue.mediaQuery);return this.isPrintEvent(Ue)&&(wt=this.getEventBreakpoints(Ue)[0],Ue.mediaQuery=wt?.mediaQuery??""),U(Ue,wt)}registerBeforeAfterPrintHooks(Ue){if(!this._document.defaultView||this.registeredBeforeAfterPrintHooks)return;this.registeredBeforeAfterPrintHooks=!0;const wt=()=>{this.isPrinting||(this.isPrintingBeforeAfterEvent=!0,this.startPrinting(Ue,this.getEventBreakpoints(new u(!0,Ce))),Ue.updateStyles())},gt=()=>{this.isPrintingBeforeAfterEvent=!1,this.isPrinting&&(this.stopPrinting(Ue),Ue.updateStyles())};this._document.defaultView.addEventListener("beforeprint",wt),this._document.defaultView.addEventListener("afterprint",gt),this.beforePrintEventListeners.push(wt),this.afterPrintEventListeners.push(gt)}interceptEvents(Ue){return wt=>{this.isPrintEvent(wt)?wt.matches&&!this.isPrinting?(this.startPrinting(Ue,this.getEventBreakpoints(wt)),Ue.updateStyles()):!wt.matches&&this.isPrinting&&!this.isPrintingBeforeAfterEvent&&(this.stopPrinting(Ue),Ue.updateStyles()):this.collectActivations(Ue,wt)}}blockPropagation(){return Ue=>!(this.isPrinting||this.isPrintEvent(Ue))}startPrinting(Ue,wt){this.isPrinting=!0,this.formerActivations=Ue.activatedBreakpoints,Ue.activatedBreakpoints=this.queue.addPrintBreakpoints(wt)}stopPrinting(Ue){Ue.activatedBreakpoints=this.deactivations,this.deactivations=[],this.formerActivations=null,this.queue.clear(),this.isPrinting=!1}collectActivations(Ue,wt){if(!this.isPrinting||this.isPrintingBeforeAfterEvent){if(!this.isPrintingBeforeAfterEvent)return void(this.deactivations=[]);if(!wt.matches){const gt=this.breakpoints.findByQuery(wt.mediaQuery);if(gt){const Ht=this.formerActivations&&this.formerActivations.includes(gt),bn=!this.formerActivations&&Ue.activatedBreakpoints.includes(gt);(Ht||bn)&&(this.deactivations.push(gt),this.deactivations.sort(Q))}}}}ngOnDestroy(){this._document.defaultView&&(this.beforePrintEventListeners.forEach(Ue=>this._document.defaultView.removeEventListener("beforeprint",Ue)),this.afterPrintEventListeners.forEach(Ue=>this._document.defaultView.removeEventListener("afterprint",Ue)))}}return Xt.\u0275fac=function(Ue){return new(Ue||Xt)(i.KVO(se),i.KVO(T),i.KVO(n.qQ))},Xt.\u0275prov=i.jDH({token:Xt,factory:Xt.\u0275fac,providedIn:"root"}),Xt})();class me{constructor(){this.printBreakpoints=[]}addPrintBreakpoints(lt){return lt.push(be),lt.sort(Q),lt.forEach(Ue=>this.addBreakpoint(Ue)),this.printBreakpoints}addBreakpoint(lt){lt&&void 0===this.printBreakpoints.find(wt=>wt.mediaQuery===lt.mediaQuery)&&(this.printBreakpoints=function le(Xt){return Xt?.mediaQuery.startsWith(Ce)??!1}(lt)?[lt,...this.printBreakpoints]:[...this.printBreakpoints,lt])}clear(){this.printBreakpoints=[]}}let Xe=(()=>{class Xt{constructor(Ue,wt,gt){this.matchMedia=Ue,this.breakpoints=wt,this.hook=gt,this._useFallbacks=!0,this._activatedBreakpoints=[],this.elementMap=new Map,this.elementKeyMap=new WeakMap,this.watcherMap=new WeakMap,this.updateMap=new WeakMap,this.clearMap=new WeakMap,this.subject=new M.B7,this.observeActivations()}get activatedAlias(){return this.activatedBreakpoints[0]?.alias??""}set activatedBreakpoints(Ue){this._activatedBreakpoints=[...Ue]}get activatedBreakpoints(){return[...this._activatedBreakpoints]}set useFallbacks(Ue){this._useFallbacks=Ue}onMediaChange(Ue){const wt=this.findByQuery(Ue.mediaQuery);if(wt){Ue=U(Ue,wt);const gt=this.activatedBreakpoints.indexOf(wt);Ue.matches&&-1===gt?(this._activatedBreakpoints.push(wt),this._activatedBreakpoints.sort(Q),this.updateStyles()):!Ue.matches&&-1!==gt&&(this._activatedBreakpoints.splice(gt,1),this._activatedBreakpoints.sort(Q),this.updateStyles())}}init(Ue,wt,gt,Ht,bn=[]){Se(this.updateMap,Ue,wt,gt),Se(this.clearMap,Ue,wt,Ht),this.buildElementKeyMap(Ue,wt),this.watchExtraTriggers(Ue,wt,bn)}getValue(Ue,wt,gt){const Ht=this.elementMap.get(Ue);if(Ht){const bn=void 0!==gt?Ht.get(gt):this.getActivatedValues(Ht,wt);if(bn)return bn.get(wt)}}hasValue(Ue,wt){const gt=this.elementMap.get(Ue);if(gt){const Ht=this.getActivatedValues(gt,wt);if(Ht)return void 0!==Ht.get(wt)||!1}return!1}setValue(Ue,wt,gt,Ht){let bn=this.elementMap.get(Ue);if(bn){const Bt=(bn.get(Ht)??new Map).set(wt,gt);bn.set(Ht,Bt),this.elementMap.set(Ue,bn)}else bn=(new Map).set(Ht,(new Map).set(wt,gt)),this.elementMap.set(Ue,bn);const Ut=this.getValue(Ue,wt);void 0!==Ut&&this.updateElement(Ue,wt,Ut)}trackValue(Ue,wt){return this.subject.asObservable().pipe((0,x.p)(gt=>gt.element===Ue&>.key===wt))}updateStyles(){this.elementMap.forEach((Ue,wt)=>{if(1===Ue.size&&""===Ue.keys().next().value)return;const gt=new Set(this.elementKeyMap.get(wt));let Ht=this.getActivatedValues(Ue);Ht&&Ht.forEach((bn,Ut)=>{this.updateElement(wt,Ut,bn),gt.delete(Ut)}),gt.forEach(bn=>{if(Ht=this.getActivatedValues(Ue,bn),Ht){const Ut=Ht.get(bn);this.updateElement(wt,bn,Ut)}else this.clearElement(wt,bn)})})}clearElement(Ue,wt){const gt=this.clearMap.get(Ue);if(gt){const Ht=gt.get(wt);Ht&&(Ht(),this.subject.next({element:Ue,key:wt,value:""}))}}updateElement(Ue,wt,gt){const Ht=this.updateMap.get(Ue);if(Ht){const bn=Ht.get(wt);bn&&(bn(gt),this.subject.next({element:Ue,key:wt,value:gt}))}}releaseElement(Ue){const wt=this.watcherMap.get(Ue);wt&&(wt.forEach(Ht=>Ht.unsubscribe()),this.watcherMap.delete(Ue));const gt=this.elementMap.get(Ue);gt&&(gt.forEach((Ht,bn)=>gt.delete(bn)),this.elementMap.delete(Ue))}triggerUpdate(Ue,wt){const gt=this.elementMap.get(Ue);if(gt){const Ht=this.getActivatedValues(gt,wt);Ht&&(wt?this.updateElement(Ue,wt,Ht.get(wt)):Ht.forEach((bn,Ut)=>this.updateElement(Ue,Ut,bn)))}}buildElementKeyMap(Ue,wt){let gt=this.elementKeyMap.get(Ue);gt||(gt=new Set,this.elementKeyMap.set(Ue,gt)),gt.add(wt)}watchExtraTriggers(Ue,wt,gt){if(gt&>.length){let Ht=this.watcherMap.get(Ue);if(Ht||(Ht=new Map,this.watcherMap.set(Ue,Ht)),!Ht.get(wt)){const Ut=(0,S.h)(...gt).subscribe(()=>{const Bt=this.getValue(Ue,wt);this.updateElement(Ue,wt,Bt)});Ht.set(wt,Ut)}}}findByQuery(Ue){return this.breakpoints.findByQuery(Ue)}getActivatedValues(Ue,wt){for(let Ht=0;Ht<this.activatedBreakpoints.length;Ht++){const Ut=Ue.get(this.activatedBreakpoints[Ht].alias);if(Ut&&(void 0===wt||Ut.has(wt)&&null!=Ut.get(wt)))return Ut}if(!this._useFallbacks)return;const gt=Ue.get("");return void 0===wt||gt&>.has(wt)?gt:void 0}observeActivations(){const Ue=this.breakpoints.items.map(wt=>wt.mediaQuery);this.hook.registerBeforeAfterPrintHooks(this),this.matchMedia.observe(this.hook.withPrintQuery(Ue)).pipe((0,A.M)(this.hook.interceptEvents(this)),(0,x.p)(this.hook.blockPropagation())).subscribe(this.onMediaChange.bind(this))}}return Xt.\u0275fac=function(Ue){return new(Ue||Xt)(i.KVO(te),i.KVO(se),i.KVO(rt))},Xt.\u0275prov=i.jDH({token:Xt,factory:Xt.\u0275fac,providedIn:"root"}),Xt})();function Se(Xt,lt,Ue,wt){if(void 0!==wt){const gt=Xt.get(lt)??new Map;gt.set(Ue,wt),Xt.set(lt,gt)}}let fe=(()=>{class Xt{constructor(Ue,wt,gt,Ht){this.elementRef=Ue,this.styleBuilder=wt,this.styler=gt,this.marshal=Ht,this.DIRECTIVE_KEY="",this.inputs=[],this.mru={},this.destroySubject=new M.B7,this.styleCache=new Map}get parentElement(){return this.elementRef.nativeElement.parentElement}get nativeElement(){return this.elementRef.nativeElement}get activatedValue(){return this.marshal.getValue(this.nativeElement,this.DIRECTIVE_KEY)}set activatedValue(Ue){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,Ue,this.marshal.activatedAlias)}ngOnChanges(Ue){Object.keys(Ue).forEach(wt=>{if(-1!==this.inputs.indexOf(wt)){const gt=wt.split(".").slice(1).join(".");this.setValue(Ue[wt].currentValue,gt)}})}ngOnDestroy(){this.destroySubject.next(),this.destroySubject.complete(),this.marshal.releaseElement(this.nativeElement)}init(Ue=[]){this.marshal.init(this.elementRef.nativeElement,this.DIRECTIVE_KEY,this.updateWithValue.bind(this),this.clearStyles.bind(this),Ue)}addStyles(Ue,wt){const gt=this.styleBuilder,Ht=gt.shouldCache;let bn=this.styleCache.get(Ue);(!bn||!Ht)&&(bn=gt.buildStyles(Ue,wt),Ht&&this.styleCache.set(Ue,bn)),this.mru={...bn},this.applyStyleToElement(bn),gt.sideEffect(Ue,bn,wt)}clearStyles(){Object.keys(this.mru).forEach(Ue=>{this.mru[Ue]=""}),this.applyStyleToElement(this.mru),this.mru={},this.currentValue=void 0}triggerUpdate(){this.marshal.triggerUpdate(this.nativeElement,this.DIRECTIVE_KEY)}getFlexFlowDirection(Ue,wt=!1){if(Ue){const[gt,Ht]=this.styler.getFlowDirection(Ue);if(!Ht&&wt){const bn=(0,P.uG)(gt);this.styler.applyStyleToElements(bn,[Ue])}return gt.trim()}return"row"}hasWrap(Ue){return this.styler.hasWrap(Ue)}applyStyleToElement(Ue,wt,gt=this.nativeElement){this.styler.applyStyleToElement(gt,Ue,wt)}setValue(Ue,wt){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,Ue,wt)}updateWithValue(Ue){this.currentValue!==Ue&&(this.addStyles(Ue),this.currentValue=Ue)}}return Xt.\u0275fac=function(Ue){return new(Ue||Xt)(i.rXU(i.aKT),i.rXU(Y),i.rXU(ae),i.rXU(Xe))},Xt.\u0275dir=i.FsC({type:Xt,features:[i.OA$]}),Xt})();function Qt(Xt,lt="1",Ue="1"){let wt=[lt,Ue,Xt],gt=Xt.indexOf("calc");if(gt>0){wt[2]=Jt(Xt.substring(gt).trim());let Ht=Xt.substr(0,gt).trim().split(" ");2==Ht.length&&(wt[0]=Ht[0],wt[1]=Ht[1])}else if(0==gt)wt[2]=Jt(Xt.trim());else{let Ht=Xt.split(" ");wt=3===Ht.length?Ht:[lt,Ue,Xt]}return wt}function Jt(Xt){return Xt.replace(/[\s]/g,"").replace(/[\/\*\+\-]/g," $& ")}EventTarget;const Zt="x";function nn(Xt,lt){if(void 0===lt)return Xt;const Ue=wt=>{const gt=+wt.slice(0,-Zt.length);return Xt.endsWith(Zt)&&!isNaN(gt)?`${gt*lt.value}${lt.unit}`:Xt};return Xt.includes(" ")?Xt.split(" ").map(Ue).join(" "):Ue(Xt)}},28139:(St,z,s)=>{"use strict";s.d(z,{Cc:()=>nt,D9:()=>R,Om:()=>ae,PW:()=>E,eI:()=>Qe});var i=s(58527),n=s(2833),h=s(61142),C=s(6364),S=s(4208),M=s(74150);let r=(()=>{class Je extends n.DJ{constructor(Ke,Ve,$e,dt,Pe,J,vt){super(Ke,null,Ve,$e),this.ngClassInstance=vt,this.DIRECTIVE_KEY="ngClass",this.ngClassInstance||(this.ngClassInstance=new h.YU(dt,Pe,Ke,J)),this.init(),this.setValue("","")}set klass(Ke){this.ngClassInstance.klass=Ke,this.setValue(Ke,"")}updateWithValue(Ke){this.ngClassInstance.ngClass=Ke,this.ngClassInstance.ngDoCheck()}ngDoCheck(){this.ngClassInstance.ngDoCheck()}}return Je.\u0275fac=function(Ke){return new(Ke||Je)(i.rXU(i.aKT),i.rXU(n.ZH),i.rXU(n.qH),i.rXU(i._q3),i.rXU(i.MKu),i.rXU(i.sFG),i.rXU(h.YU,10))},Je.\u0275dir=i.FsC({type:Je,inputs:{klass:[i.Mj6.None,"class","klass"]},features:[i.Vt3]}),Je})();const u=["ngClass","ngClass.xs","ngClass.sm","ngClass.md","ngClass.lg","ngClass.xl","ngClass.lt-sm","ngClass.lt-md","ngClass.lt-lg","ngClass.lt-xl","ngClass.gt-xs","ngClass.gt-sm","ngClass.gt-md","ngClass.gt-lg"];let E=(()=>{class Je extends r{constructor(){super(...arguments),this.inputs=u}}return Je.\u0275fac=(()=>{let ze;return function(Ve){return(ze||(ze=i.xGo(Je)))(Ve||Je)}})(),Je.\u0275dir=i.FsC({type:Je,selectors:[["","ngClass",""],["","ngClass.xs",""],["","ngClass.sm",""],["","ngClass.md",""],["","ngClass.lg",""],["","ngClass.xl",""],["","ngClass.lt-sm",""],["","ngClass.lt-md",""],["","ngClass.lt-lg",""],["","ngClass.lt-xl",""],["","ngClass.gt-xs",""],["","ngClass.gt-sm",""],["","ngClass.gt-md",""],["","ngClass.gt-lg",""]],inputs:{ngClass:"ngClass","ngClass.xs":"ngClass.xs","ngClass.sm":"ngClass.sm","ngClass.md":"ngClass.md","ngClass.lg":"ngClass.lg","ngClass.xl":"ngClass.xl","ngClass.lt-sm":"ngClass.lt-sm","ngClass.lt-md":"ngClass.lt-md","ngClass.lt-lg":"ngClass.lt-lg","ngClass.lt-xl":"ngClass.lt-xl","ngClass.gt-xs":"ngClass.gt-xs","ngClass.gt-sm":"ngClass.gt-sm","ngClass.gt-md":"ngClass.gt-md","ngClass.gt-lg":"ngClass.gt-lg"},features:[i.Vt3]}),Je})(),T=(()=>{class Je extends n.r3{buildStyles(Ke,Ve){return{display:"true"===Ke?Ve.display||(Ve.isServer?"initial":""):"none"}}}return Je.\u0275fac=(()=>{let ze;return function(Ve){return(ze||(ze=i.xGo(Je)))(Ve||Je)}})(),Je.\u0275prov=i.jDH({token:Je,factory:Je.\u0275fac,providedIn:"root"}),Je})(),R=(()=>{class Je extends n.DJ{constructor(Ke,Ve,$e,dt,Pe,J,vt){super(Ke,Ve,$e,dt),this.layoutConfig=Pe,this.platformId=J,this.serverModuleLoaded=vt,this.DIRECTIVE_KEY="show-hide",this.display="",this.hasLayout=!1,this.hasFlexChild=!1}ngAfterViewInit(){this.trackExtraTriggers();const Ke=Array.from(this.nativeElement.children);for(let $e=0;$e<Ke.length;$e++)if(this.marshal.hasValue(Ke[$e],"flex")){this.hasFlexChild=!0;break}B.has(this.nativeElement)?this.display=B.get(this.nativeElement):(this.display=this.getDisplayStyle(),B.set(this.nativeElement,this.display)),this.init();const Ve=this.marshal.getValue(this.nativeElement,this.DIRECTIVE_KEY,"");void 0===Ve||""===Ve?this.setValue(!0,""):this.triggerUpdate()}ngOnChanges(Ke){Object.keys(Ke).forEach(Ve=>{if(-1!==this.inputs.indexOf(Ve)){const $e=Ve.split("."),dt=$e.slice(1).join("."),Pe=Ke[Ve].currentValue;let J=""===Pe||0!==Pe&&(0,C.he)(Pe);"fxHide"===$e[0]&&(J=!J),this.setValue(J,dt)}})}trackExtraTriggers(){this.hasLayout=this.marshal.hasValue(this.nativeElement,"layout"),["layout","layout-align"].forEach(Ke=>{this.marshal.trackValue(this.nativeElement,Ke).pipe((0,S.Q)(this.destroySubject)).subscribe(this.triggerUpdate.bind(this))})}getDisplayStyle(){return this.hasLayout||this.hasFlexChild&&this.layoutConfig.addFlexToParent?"flex":this.styler.lookupStyle(this.nativeElement,"display",!0)}updateWithValue(Ke=!0){if(""===Ke)return;const Ve=(0,h.Vy)(this.platformId);this.addStyles(Ke?"true":"false",{display:this.display,isServer:Ve}),Ve&&this.serverModuleLoaded&&this.nativeElement.style.setProperty("display",""),this.marshal.triggerUpdate(this.parentElement,"layout-gap")}}return Je.\u0275fac=function(Ke){return new(Ke||Je)(i.rXU(i.aKT),i.rXU(T),i.rXU(n.ZH),i.rXU(n.qH),i.rXU(n.EA),i.rXU(i.Agw),i.rXU(n.Ce))},Je.\u0275dir=i.FsC({type:Je,features:[i.Vt3,i.OA$]}),Je})();const B=new WeakMap,U=["fxShow","fxShow.print","fxShow.xs","fxShow.sm","fxShow.md","fxShow.lg","fxShow.xl","fxShow.lt-sm","fxShow.lt-md","fxShow.lt-lg","fxShow.lt-xl","fxShow.gt-xs","fxShow.gt-sm","fxShow.gt-md","fxShow.gt-lg","fxHide","fxHide.print","fxHide.xs","fxHide.sm","fxHide.md","fxHide.lg","fxHide.xl","fxHide.lt-sm","fxHide.lt-md","fxHide.lt-lg","fxHide.lt-xl","fxHide.gt-xs","fxHide.gt-sm","fxHide.gt-md","fxHide.gt-lg"];let ae=(()=>{class Je extends R{constructor(){super(...arguments),this.inputs=U}}return Je.\u0275fac=(()=>{let ze;return function(Ve){return(ze||(ze=i.xGo(Je)))(Ve||Je)}})(),Je.\u0275dir=i.FsC({type:Je,selectors:[["","fxShow",""],["","fxShow.print",""],["","fxShow.xs",""],["","fxShow.sm",""],["","fxShow.md",""],["","fxShow.lg",""],["","fxShow.xl",""],["","fxShow.lt-sm",""],["","fxShow.lt-md",""],["","fxShow.lt-lg",""],["","fxShow.lt-xl",""],["","fxShow.gt-xs",""],["","fxShow.gt-sm",""],["","fxShow.gt-md",""],["","fxShow.gt-lg",""],["","fxHide",""],["","fxHide.print",""],["","fxHide.xs",""],["","fxHide.sm",""],["","fxHide.md",""],["","fxHide.lg",""],["","fxHide.xl",""],["","fxHide.lt-sm",""],["","fxHide.lt-md",""],["","fxHide.lt-lg",""],["","fxHide.lt-xl",""],["","fxHide.gt-xs",""],["","fxHide.gt-sm",""],["","fxHide.gt-md",""],["","fxHide.gt-lg",""]],inputs:{fxShow:"fxShow","fxShow.print":"fxShow.print","fxShow.xs":"fxShow.xs","fxShow.sm":"fxShow.sm","fxShow.md":"fxShow.md","fxShow.lg":"fxShow.lg","fxShow.xl":"fxShow.xl","fxShow.lt-sm":"fxShow.lt-sm","fxShow.lt-md":"fxShow.lt-md","fxShow.lt-lg":"fxShow.lt-lg","fxShow.lt-xl":"fxShow.lt-xl","fxShow.gt-xs":"fxShow.gt-xs","fxShow.gt-sm":"fxShow.gt-sm","fxShow.gt-md":"fxShow.gt-md","fxShow.gt-lg":"fxShow.gt-lg",fxHide:"fxHide","fxHide.print":"fxHide.print","fxHide.xs":"fxHide.xs","fxHide.sm":"fxHide.sm","fxHide.md":"fxHide.md","fxHide.lg":"fxHide.lg","fxHide.xl":"fxHide.xl","fxHide.lt-sm":"fxHide.lt-sm","fxHide.lt-md":"fxHide.lt-md","fxHide.lt-lg":"fxHide.lt-lg","fxHide.lt-xl":"fxHide.lt-xl","fxHide.gt-xs":"fxHide.gt-xs","fxHide.gt-sm":"fxHide.gt-sm","fxHide.gt-md":"fxHide.gt-md","fxHide.gt-lg":"fxHide.gt-lg"},features:[i.Vt3]}),Je})();class G{constructor(ze,Ke,Ve=!0){this.key=ze,this.value=Ke,this.key=Ve?ze.replace(/['"]/g,"").trim():ze.trim(),this.value=Ve?Ke.replace(/['"]/g,"").trim():Ke.trim(),this.value=this.value.replace(/;/,"")}}function k(Je){let ze=typeof Je;return"object"===ze?Je.constructor===Array?"array":Je.constructor===Set?"set":"object":ze}function ce(Je){const[ze,...Ke]=Je.split(":");return new G(ze,Ke.join(":"))}function te(Je,ze){return ze.key&&(Je[ze.key]=ze.value),Je}let Ee=(()=>{class Je extends n.DJ{constructor(Ke,Ve,$e,dt,Pe,J,vt,ve,ue){super(Ke,null,Ve,$e),this.sanitizer=dt,this.ngStyleInstance=vt,this.DIRECTIVE_KEY="ngStyle",this.ngStyleInstance||(this.ngStyleInstance=new h.B3(Ke,Pe,J)),this.init();const et=this.nativeElement.getAttribute("style")??"";this.fallbackStyles=this.buildStyleMap(et),this.isServer=ve&&(0,h.Vy)(ue)}updateWithValue(Ke){const Ve=this.buildStyleMap(Ke);this.ngStyleInstance.ngStyle={...this.fallbackStyles,...Ve},this.isServer&&this.applyStyleToElement(Ve),this.ngStyleInstance.ngDoCheck()}clearStyles(){this.ngStyleInstance.ngStyle=this.fallbackStyles,this.ngStyleInstance.ngDoCheck()}buildStyleMap(Ke){const Ve=$e=>this.sanitizer.sanitize(i.WPN.STYLE,$e)??"";if(Ke)switch(k(Ke)){case"string":return ct(function X(Je,ze=";"){return String(Je).trim().split(ze).map(Ke=>Ke.trim()).filter(Ke=>""!==Ke)}(Ke),Ve);case"array":return ct(Ke,Ve);default:return function Q(Je,ze){let Ke=[];return"set"===k(Je)?Je.forEach(Ve=>Ke.push(Ve)):Object.keys(Je).forEach(Ve=>{Ke.push(`${Ve}:${Je[Ve]}`)}),function q(Je,ze){return Je.map(ce).filter(Ve=>!!Ve).map(Ve=>(ze&&(Ve.value=ze(Ve.value)),Ve)).reduce(te,{})}(Ke,ze)}(Ke,Ve)}return{}}ngDoCheck(){this.ngStyleInstance.ngDoCheck()}}return Je.\u0275fac=function(Ke){return new(Ke||Je)(i.rXU(i.aKT),i.rXU(n.ZH),i.rXU(n.qH),i.rXU(M.up),i.rXU(i.MKu),i.rXU(i.sFG),i.rXU(h.B3,10),i.rXU(n.Ce),i.rXU(i.Agw))},Je.\u0275dir=i.FsC({type:Je,features:[i.Vt3]}),Je})();const it=["ngStyle","ngStyle.xs","ngStyle.sm","ngStyle.md","ngStyle.lg","ngStyle.xl","ngStyle.lt-sm","ngStyle.lt-md","ngStyle.lt-lg","ngStyle.lt-xl","ngStyle.gt-xs","ngStyle.gt-sm","ngStyle.gt-md","ngStyle.gt-lg"];let Qe=(()=>{class Je extends Ee{constructor(){super(...arguments),this.inputs=it}}return Je.\u0275fac=(()=>{let ze;return function(Ve){return(ze||(ze=i.xGo(Je)))(Ve||Je)}})(),Je.\u0275dir=i.FsC({type:Je,selectors:[["","ngStyle",""],["","ngStyle.xs",""],["","ngStyle.sm",""],["","ngStyle.md",""],["","ngStyle.lg",""],["","ngStyle.xl",""],["","ngStyle.lt-sm",""],["","ngStyle.lt-md",""],["","ngStyle.lt-lg",""],["","ngStyle.lt-xl",""],["","ngStyle.gt-xs",""],["","ngStyle.gt-sm",""],["","ngStyle.gt-md",""],["","ngStyle.gt-lg",""]],inputs:{ngStyle:"ngStyle","ngStyle.xs":"ngStyle.xs","ngStyle.sm":"ngStyle.sm","ngStyle.md":"ngStyle.md","ngStyle.lg":"ngStyle.lg","ngStyle.xl":"ngStyle.xl","ngStyle.lt-sm":"ngStyle.lt-sm","ngStyle.lt-md":"ngStyle.lt-md","ngStyle.lt-lg":"ngStyle.lt-lg","ngStyle.lt-xl":"ngStyle.lt-xl","ngStyle.gt-xs":"ngStyle.gt-xs","ngStyle.gt-sm":"ngStyle.gt-sm","ngStyle.gt-md":"ngStyle.gt-md","ngStyle.gt-lg":"ngStyle.gt-lg"},features:[i.Vt3]}),Je})();function ct(Je,ze){return Je.map(ce).filter(Ve=>!!Ve).map(Ve=>(ze&&(Ve.value=ze(Ve.value)),Ve)).reduce(te,{})}let nt=(()=>{class Je{}return Je.\u0275fac=function(Ke){return new(Ke||Je)},Je.\u0275mod=i.$C({type:Je}),Je.\u0275inj=i.G2t({imports:[n.Ui]}),Je})()},3457:(St,z,s)=>{"use strict";s.d(z,{BO:()=>R,DJ:()=>m,G2:()=>Ot,R$:()=>fe,UI:()=>Fe,sA:()=>Qt,w2:()=>bn});var i=s(58527),n=s(51394),h=s(2833),C=s(73004),S=s(80583),M=s(4208);let P=(()=>{class Ut extends h.r3{buildStyles(Le,{display:V}){const de=(0,C.uG)(Le);return{...de,display:"none"===V?V:de.display}}}return Ut.\u0275fac=(()=>{let Bt;return function(V){return(Bt||(Bt=i.xGo(Ut)))(V||Ut)}})(),Ut.\u0275prov=i.jDH({token:Ut,factory:Ut.\u0275fac,providedIn:"root"}),Ut})();const x=["fxLayout","fxLayout.xs","fxLayout.sm","fxLayout.md","fxLayout.lg","fxLayout.xl","fxLayout.lt-sm","fxLayout.lt-md","fxLayout.lt-lg","fxLayout.lt-xl","fxLayout.gt-xs","fxLayout.gt-sm","fxLayout.gt-md","fxLayout.gt-lg"];let g=(()=>{class Ut extends h.DJ{constructor(Le,V,de,ge,Ft){super(Le,de,V,ge),this._config=Ft,this.DIRECTIVE_KEY="layout",this.init()}updateWithValue(Le){const de=this._config.detectLayoutDisplay?this.styler.lookupStyle(this.nativeElement,"display"):"";this.styleCache=l.get(de)??new Map,l.set(de,this.styleCache),this.currentValue!==Le&&(this.addStyles(Le,{display:de}),this.currentValue=Le)}}return Ut.\u0275fac=function(Le){return new(Le||Ut)(i.rXU(i.aKT),i.rXU(h.ZH),i.rXU(P),i.rXU(h.qH),i.rXU(h.EA))},Ut.\u0275dir=i.FsC({type:Ut,features:[i.Vt3]}),Ut})(),m=(()=>{class Ut extends g{constructor(){super(...arguments),this.inputs=x}}return Ut.\u0275fac=(()=>{let Bt;return function(V){return(Bt||(Bt=i.xGo(Ut)))(V||Ut)}})(),Ut.\u0275dir=i.FsC({type:Ut,selectors:[["","fxLayout",""],["","fxLayout.xs",""],["","fxLayout.sm",""],["","fxLayout.md",""],["","fxLayout.lg",""],["","fxLayout.xl",""],["","fxLayout.lt-sm",""],["","fxLayout.lt-md",""],["","fxLayout.lt-lg",""],["","fxLayout.lt-xl",""],["","fxLayout.gt-xs",""],["","fxLayout.gt-sm",""],["","fxLayout.gt-md",""],["","fxLayout.gt-lg",""]],inputs:{fxLayout:"fxLayout","fxLayout.xs":"fxLayout.xs","fxLayout.sm":"fxLayout.sm","fxLayout.md":"fxLayout.md","fxLayout.lg":"fxLayout.lg","fxLayout.xl":"fxLayout.xl","fxLayout.lt-sm":"fxLayout.lt-sm","fxLayout.lt-md":"fxLayout.lt-md","fxLayout.lt-lg":"fxLayout.lt-lg","fxLayout.lt-xl":"fxLayout.lt-xl","fxLayout.gt-xs":"fxLayout.gt-xs","fxLayout.gt-sm":"fxLayout.gt-sm","fxLayout.gt-md":"fxLayout.gt-md","fxLayout.gt-lg":"fxLayout.gt-lg"},features:[i.Vt3]}),Ut})();const l=new Map,r={"margin-left":null,"margin-right":null,"margin-top":null,"margin-bottom":null};let u=(()=>{class Ut extends h.r3{constructor(Le,V){super(),this._styler=Le,this._config=V}buildStyles(Le,V){return Le.endsWith(G)?(Le=Le.slice(0,Le.indexOf(G)),function X(Ut,Bt){const[Le,V]=Ut.split(" "),ge=cn=>`-${cn}`;let Ft="0px",Wt=ge(V??Le),Kt="0px";return"rtl"===Bt?Kt=ge(Le):Ft=ge(Le),{margin:`0px ${Ft} ${Wt} ${Kt}`}}(Le=(0,h.cL)(Le,this._config.multiplier),V.directionality)):{}}sideEffect(Le,V,de){const ge=de.items;if(Le.endsWith(G)){Le=Le.slice(0,Le.indexOf(G));const Ft=function k(Ut,Bt){const[Le,V]=Ut.split(" ");let ge="0px",Wt="0px";return"rtl"===Bt?Wt=Le:ge=Le,{padding:`0px ${ge} ${V??Le} ${Wt}`}}(Le=(0,h.cL)(Le,this._config.multiplier),de.directionality);this._styler.applyStyleToElements(Ft,de.items)}else{Le=(0,h.cL)(Le,this._config.multiplier),Le=this.addFallbackUnit(Le);const Ft=ge.pop(),Wt=function Q(Ut,Bt){const Le=q(Bt.directionality,Bt.layout),V={...r};return V[Le]=Ut,V}(Le,de);this._styler.applyStyleToElements(Wt,ge),this._styler.applyStyleToElements(r,[Ft])}}addFallbackUnit(Le){return isNaN(+Le)?Le:`${Le}${this._config.defaultUnit}`}}return Ut.\u0275fac=function(Le){return new(Le||Ut)(i.KVO(h.ZH),i.KVO(h.EA))},Ut.\u0275prov=i.jDH({token:Ut,factory:Ut.\u0275fac,providedIn:"root"}),Ut})();const v=["fxLayoutGap","fxLayoutGap.xs","fxLayoutGap.sm","fxLayoutGap.md","fxLayoutGap.lg","fxLayoutGap.xl","fxLayoutGap.lt-sm","fxLayoutGap.lt-md","fxLayoutGap.lt-lg","fxLayoutGap.lt-xl","fxLayoutGap.gt-xs","fxLayoutGap.gt-sm","fxLayoutGap.gt-md","fxLayoutGap.gt-lg"];let T=(()=>{class Ut extends h.DJ{constructor(Le,V,de,ge,Ft,Wt){super(Le,Ft,ge,Wt),this.zone=V,this.directionality=de,this.styleUtils=ge,this.layout="row",this.DIRECTIVE_KEY="layout-gap",this.observerSubject=new S.B7;const Kt=[this.directionality.change,this.observerSubject.asObservable()];this.init(Kt),this.marshal.trackValue(this.nativeElement,"layout").pipe((0,M.Q)(this.destroySubject)).subscribe(this.onLayoutChange.bind(this))}get childrenNodes(){const Le=this.nativeElement.children,V=[];for(let de=Le.length;de--;)V[de]=Le[de];return V}ngAfterContentInit(){this.buildChildObservable(),this.triggerUpdate()}ngOnDestroy(){super.ngOnDestroy(),this.observer&&this.observer.disconnect()}onLayoutChange(Le){const de=Le.value.split(" ");this.layout=de[0],C.Uo.find(ge=>ge===this.layout)||(this.layout="row"),this.triggerUpdate()}updateWithValue(Le){const V=this.childrenNodes.filter(de=>1===de.nodeType&&this.willDisplay(de)).sort((de,ge)=>{const Ft=+this.styler.lookupStyle(de,"order"),Wt=+this.styler.lookupStyle(ge,"order");return isNaN(Ft)||isNaN(Wt)||Ft===Wt?0:Ft>Wt?1:-1});if(V.length>0){const de=this.directionality.value,ge=this.layout;"row"===ge&&"rtl"===de?this.styleCache=B:"row"===ge&&"rtl"!==de?this.styleCache=Y:"column"===ge&&"rtl"===de?this.styleCache=U:"column"===ge&&"rtl"!==de&&(this.styleCache=ae),this.addStyles(Le,{directionality:de,items:V,layout:ge})}}clearStyles(){const Le=Object.keys(this.mru).length>0,V=Le?"padding":q(this.directionality.value,this.layout);Le&&super.clearStyles(),this.styleUtils.applyStyleToElements({[V]:""},this.childrenNodes)}willDisplay(Le){const V=this.marshal.getValue(Le,"show-hide");return!0===V||void 0===V&&"none"!==this.styleUtils.lookupStyle(Le,"display")}buildChildObservable(){this.zone.runOutsideAngular(()=>{typeof MutationObserver<"u"&&(this.observer=new MutationObserver(Le=>{Le.some(de=>de.addedNodes&&de.addedNodes.length>0||de.removedNodes&&de.removedNodes.length>0)&&this.observerSubject.next()}),this.observer.observe(this.nativeElement,{childList:!0}))})}}return Ut.\u0275fac=function(Le){return new(Le||Ut)(i.rXU(i.aKT),i.rXU(i.SKi),i.rXU(n.dS),i.rXU(h.ZH),i.rXU(u),i.rXU(h.qH))},Ut.\u0275dir=i.FsC({type:Ut,features:[i.Vt3]}),Ut})(),R=(()=>{class Ut extends T{constructor(){super(...arguments),this.inputs=v}}return Ut.\u0275fac=(()=>{let Bt;return function(V){return(Bt||(Bt=i.xGo(Ut)))(V||Ut)}})(),Ut.\u0275dir=i.FsC({type:Ut,selectors:[["","fxLayoutGap",""],["","fxLayoutGap.xs",""],["","fxLayoutGap.sm",""],["","fxLayoutGap.md",""],["","fxLayoutGap.lg",""],["","fxLayoutGap.xl",""],["","fxLayoutGap.lt-sm",""],["","fxLayoutGap.lt-md",""],["","fxLayoutGap.lt-lg",""],["","fxLayoutGap.lt-xl",""],["","fxLayoutGap.gt-xs",""],["","fxLayoutGap.gt-sm",""],["","fxLayoutGap.gt-md",""],["","fxLayoutGap.gt-lg",""]],inputs:{fxLayoutGap:"fxLayoutGap","fxLayoutGap.xs":"fxLayoutGap.xs","fxLayoutGap.sm":"fxLayoutGap.sm","fxLayoutGap.md":"fxLayoutGap.md","fxLayoutGap.lg":"fxLayoutGap.lg","fxLayoutGap.xl":"fxLayoutGap.xl","fxLayoutGap.lt-sm":"fxLayoutGap.lt-sm","fxLayoutGap.lt-md":"fxLayoutGap.lt-md","fxLayoutGap.lt-lg":"fxLayoutGap.lt-lg","fxLayoutGap.lt-xl":"fxLayoutGap.lt-xl","fxLayoutGap.gt-xs":"fxLayoutGap.gt-xs","fxLayoutGap.gt-sm":"fxLayoutGap.gt-sm","fxLayoutGap.gt-md":"fxLayoutGap.gt-md","fxLayoutGap.gt-lg":"fxLayoutGap.gt-lg"},features:[i.Vt3]}),Ut})();const B=new Map,U=new Map,Y=new Map,ae=new Map,G=" grid";function q(Ut,Bt){switch(Bt){case"column":return"margin-bottom";case"column-reverse":return"margin-top";case"row":default:return"rtl"===Ut?"margin-left":"margin-right";case"row-reverse":return"rtl"===Ut?"margin-right":"margin-left"}}let ce=(()=>{class Ut extends h.r3{constructor(Le){super(),this.layoutConfig=Le}buildStyles(Le,V){let[de,ge,...Ft]=Le.split(" "),Wt=Ft.join(" ");const Kt=V.direction.indexOf("column")>-1?"column":"row",cn=(0,C.Vc)(Kt)?"max-width":"max-height",En=(0,C.Vc)(Kt)?"min-width":"min-height",kn=String(Wt).indexOf("calc")>-1,Ai=kn||"auto"===Wt,Gi=String(Wt).indexOf("%")>-1&&!kn,bt=String(Wt).indexOf("px")>-1||String(Wt).indexOf("rem")>-1||String(Wt).indexOf("em")>-1||String(Wt).indexOf("vw")>-1||String(Wt).indexOf("vh")>-1;let Zi=kn||bt;de="0"==de?0:de,ge="0"==ge?0:ge;const Rn=!de&&!ge;let Gn={};const Kn={"max-width":null,"max-height":null,"min-width":null,"min-height":null};switch(Wt||""){case"":Wt="row"===Kt?"0%":!1!==this.layoutConfig.useColumnBasisZero?"0.000000001px":"auto";break;case"initial":case"nogrow":de=0,Wt="auto";break;case"grow":Wt="100%";break;case"noshrink":ge=0,Wt="auto";break;case"auto":break;case"none":de=0,ge=0,Wt="auto";break;default:!Zi&&!Gi&&!isNaN(Wt)&&(Wt+="%"),"0%"===Wt&&(Zi=!0),"0px"===Wt&&(Wt="0%"),Gn=(0,C.C5)(Kn,kn?{"flex-grow":de,"flex-shrink":ge,"flex-basis":Zi?Wt:"100%"}:{flex:`${de} ${ge} ${Zi?Wt:"100%"}`})}return Gn.flex||Gn["flex-grow"]||(Gn=(0,C.C5)(Kn,kn?{"flex-grow":de,"flex-shrink":ge,"flex-basis":Wt}:{flex:`${de} ${ge} ${Wt}`})),"0%"!==Wt&&"0px"!==Wt&&"0.000000001px"!==Wt&&"auto"!==Wt&&(Gn[En]=Rn||Zi&&de?Wt:null,Gn[cn]=Rn||!Ai&&ge?Wt:null),Gn[En]||Gn[cn]?V.hasWrap&&(Gn[kn?"flex-basis":"flex"]=Gn[cn]?kn?Gn[cn]:`${de} ${ge} ${Gn[cn]}`:kn?Gn[En]:`${de} ${ge} ${Gn[En]}`):Gn=(0,C.C5)(Kn,kn?{"flex-grow":de,"flex-shrink":ge,"flex-basis":Wt}:{flex:`${de} ${ge} ${Wt}`}),(0,C.C5)(Gn,{"box-sizing":"border-box"})}}return Ut.\u0275fac=function(Le){return new(Le||Ut)(i.KVO(h.EA))},Ut.\u0275prov=i.jDH({token:Ut,factory:Ut.\u0275fac,providedIn:"root"}),Ut})();const te=["fxFlex","fxFlex.xs","fxFlex.sm","fxFlex.md","fxFlex.lg","fxFlex.xl","fxFlex.lt-sm","fxFlex.lt-md","fxFlex.lt-lg","fxFlex.lt-xl","fxFlex.gt-xs","fxFlex.gt-sm","fxFlex.gt-md","fxFlex.gt-lg"];let it=(()=>{class Ut extends h.DJ{constructor(Le,V,de,ge,Ft){super(Le,ge,V,Ft),this.layoutConfig=de,this.marshal=Ft,this.DIRECTIVE_KEY="flex",this.direction=void 0,this.wrap=void 0,this.flexGrow="1",this.flexShrink="1",this.init()}get shrink(){return this.flexShrink}set shrink(Le){this.flexShrink=Le||"1",this.triggerReflow()}get grow(){return this.flexGrow}set grow(Le){this.flexGrow=Le||"1",this.triggerReflow()}ngOnInit(){this.parentElement&&(this.marshal.trackValue(this.parentElement,"layout").pipe((0,M.Q)(this.destroySubject)).subscribe(this.onLayoutChange.bind(this)),this.marshal.trackValue(this.nativeElement,"layout-align").pipe((0,M.Q)(this.destroySubject)).subscribe(this.triggerReflow.bind(this)))}onLayoutChange(Le){const de=Le.value.split(" ");this.direction=de[0],this.wrap=void 0!==de[1]&&"wrap"===de[1],this.triggerUpdate()}updateWithValue(Le){void 0===this.direction&&(this.direction=this.getFlexFlowDirection(this.parentElement,!1!==this.layoutConfig.addFlexToParent)),void 0===this.wrap&&(this.wrap=this.hasWrap(this.parentElement));const de=this.direction,ge=de.startsWith("row"),Ft=this.wrap;ge&&Ft?this.styleCache=Ge:ge&&!Ft?this.styleCache=Qe:!ge&&Ft?this.styleCache=nt:!ge&&!Ft&&(this.styleCache=ct);const Wt=String(Le).replace(";",""),Kt=(0,h.hN)(Wt,this.flexGrow,this.flexShrink);this.addStyles(Kt.join(" "),{direction:de,hasWrap:Ft})}triggerReflow(){const Le=this.activatedValue;if(void 0!==Le){const V=(0,h.hN)(Le+"",this.flexGrow,this.flexShrink);this.marshal.updateElement(this.nativeElement,this.DIRECTIVE_KEY,V.join(" "))}}}return Ut.\u0275fac=function(Le){return new(Le||Ut)(i.rXU(i.aKT),i.rXU(h.ZH),i.rXU(h.EA),i.rXU(ce),i.rXU(h.qH))},Ut.\u0275dir=i.FsC({type:Ut,inputs:{shrink:[i.Mj6.None,"fxShrink","shrink"],grow:[i.Mj6.None,"fxGrow","grow"]},features:[i.Vt3]}),Ut})(),Fe=(()=>{class Ut extends it{constructor(){super(...arguments),this.inputs=te}}return Ut.\u0275fac=(()=>{let Bt;return function(V){return(Bt||(Bt=i.xGo(Ut)))(V||Ut)}})(),Ut.\u0275dir=i.FsC({type:Ut,selectors:[["","fxFlex",""],["","fxFlex.xs",""],["","fxFlex.sm",""],["","fxFlex.md",""],["","fxFlex.lg",""],["","fxFlex.xl",""],["","fxFlex.lt-sm",""],["","fxFlex.lt-md",""],["","fxFlex.lt-lg",""],["","fxFlex.lt-xl",""],["","fxFlex.gt-xs",""],["","fxFlex.gt-sm",""],["","fxFlex.gt-md",""],["","fxFlex.gt-lg",""]],inputs:{fxFlex:"fxFlex","fxFlex.xs":"fxFlex.xs","fxFlex.sm":"fxFlex.sm","fxFlex.md":"fxFlex.md","fxFlex.lg":"fxFlex.lg","fxFlex.xl":"fxFlex.xl","fxFlex.lt-sm":"fxFlex.lt-sm","fxFlex.lt-md":"fxFlex.lt-md","fxFlex.lt-lg":"fxFlex.lt-lg","fxFlex.lt-xl":"fxFlex.lt-xl","fxFlex.gt-xs":"fxFlex.gt-xs","fxFlex.gt-sm":"fxFlex.gt-sm","fxFlex.gt-md":"fxFlex.gt-md","fxFlex.gt-lg":"fxFlex.gt-lg"},features:[i.Vt3]}),Ut})();const Qe=new Map,ct=new Map,Ge=new Map,nt=new Map;let rt=(()=>{class Ut extends h.r3{buildStyles(Le){const V={};switch(Le=Le||"stretch"){case"start":V["align-self"]="flex-start";break;case"end":V["align-self"]="flex-end";break;default:V["align-self"]=Le}return V}}return Ut.\u0275fac=(()=>{let Bt;return function(V){return(Bt||(Bt=i.xGo(Ut)))(V||Ut)}})(),Ut.\u0275prov=i.jDH({token:Ut,factory:Ut.\u0275fac,providedIn:"root"}),Ut})();const me=["fxFlexAlign","fxFlexAlign.xs","fxFlexAlign.sm","fxFlexAlign.md","fxFlexAlign.lg","fxFlexAlign.xl","fxFlexAlign.lt-sm","fxFlexAlign.lt-md","fxFlexAlign.lt-lg","fxFlexAlign.lt-xl","fxFlexAlign.gt-xs","fxFlexAlign.gt-sm","fxFlexAlign.gt-md","fxFlexAlign.gt-lg"];let Xe=(()=>{class Ut extends h.DJ{constructor(Le,V,de,ge){super(Le,de,V,ge),this.DIRECTIVE_KEY="flex-align",this.styleCache=Se,this.init()}}return Ut.\u0275fac=function(Le){return new(Le||Ut)(i.rXU(i.aKT),i.rXU(h.ZH),i.rXU(rt),i.rXU(h.qH))},Ut.\u0275dir=i.FsC({type:Ut,features:[i.Vt3]}),Ut})();const Se=new Map;let fe=(()=>{class Ut extends Xe{constructor(){super(...arguments),this.inputs=me}}return Ut.\u0275fac=(()=>{let Bt;return function(V){return(Bt||(Bt=i.xGo(Ut)))(V||Ut)}})(),Ut.\u0275dir=i.FsC({type:Ut,selectors:[["","fxFlexAlign",""],["","fxFlexAlign.xs",""],["","fxFlexAlign.sm",""],["","fxFlexAlign.md",""],["","fxFlexAlign.lg",""],["","fxFlexAlign.xl",""],["","fxFlexAlign.lt-sm",""],["","fxFlexAlign.lt-md",""],["","fxFlexAlign.lt-lg",""],["","fxFlexAlign.lt-xl",""],["","fxFlexAlign.gt-xs",""],["","fxFlexAlign.gt-sm",""],["","fxFlexAlign.gt-md",""],["","fxFlexAlign.gt-lg",""]],inputs:{fxFlexAlign:"fxFlexAlign","fxFlexAlign.xs":"fxFlexAlign.xs","fxFlexAlign.sm":"fxFlexAlign.sm","fxFlexAlign.md":"fxFlexAlign.md","fxFlexAlign.lg":"fxFlexAlign.lg","fxFlexAlign.xl":"fxFlexAlign.xl","fxFlexAlign.lt-sm":"fxFlexAlign.lt-sm","fxFlexAlign.lt-md":"fxFlexAlign.lt-md","fxFlexAlign.lt-lg":"fxFlexAlign.lt-lg","fxFlexAlign.lt-xl":"fxFlexAlign.lt-xl","fxFlexAlign.gt-xs":"fxFlexAlign.gt-xs","fxFlexAlign.gt-sm":"fxFlexAlign.gt-sm","fxFlexAlign.gt-md":"fxFlexAlign.gt-md","fxFlexAlign.gt-lg":"fxFlexAlign.gt-lg"},features:[i.Vt3]}),Ut})();const Ne={margin:0,width:"100%",height:"100%","min-width":"100%","min-height":"100%"};let ye=(()=>{class Ut extends h.r3{buildStyles(Le){return Ne}}return Ut.\u0275fac=(()=>{let Bt;return function(V){return(Bt||(Bt=i.xGo(Ut)))(V||Ut)}})(),Ut.\u0275prov=i.jDH({token:Ut,factory:Ut.\u0275fac,providedIn:"root"}),Ut})(),Ot=(()=>{class Ut extends h.DJ{constructor(Le,V,de,ge){super(Le,de,V,ge),this.styleCache=sn,this.addStyles("")}}return Ut.\u0275fac=function(Le){return new(Le||Ut)(i.rXU(i.aKT),i.rXU(h.ZH),i.rXU(ye),i.rXU(h.qH))},Ut.\u0275dir=i.FsC({type:Ut,selectors:[["","fxFill",""],["","fxFlexFill",""]],features:[i.Vt3]}),Ut})();const sn=new Map;let dn=(()=>{class Ut extends h.r3{buildStyles(Le,V){const de={},[ge,Ft]=Le.split(" ");switch(ge){case"center":de["justify-content"]="center";break;case"space-around":de["justify-content"]="space-around";break;case"space-between":de["justify-content"]="space-between";break;case"space-evenly":de["justify-content"]="space-evenly";break;case"end":case"flex-end":de["justify-content"]="flex-end";break;default:de["justify-content"]="flex-start"}switch(Ft){case"start":case"flex-start":de["align-items"]=de["align-content"]="flex-start";break;case"center":de["align-items"]=de["align-content"]="center";break;case"end":case"flex-end":de["align-items"]=de["align-content"]="flex-end";break;case"space-between":de["align-content"]="space-between",de["align-items"]="stretch";break;case"space-around":de["align-content"]="space-around",de["align-items"]="stretch";break;case"baseline":de["align-content"]="stretch",de["align-items"]="baseline";break;default:de["align-items"]=de["align-content"]="stretch"}return(0,C.C5)(de,{display:V.inline?"inline-flex":"flex","flex-direction":V.layout,"box-sizing":"border-box","max-width":"stretch"===Ft?(0,C.Vc)(V.layout)?null:"100%":null,"max-height":"stretch"===Ft&&(0,C.Vc)(V.layout)?"100%":null})}}return Ut.\u0275fac=(()=>{let Bt;return function(V){return(Bt||(Bt=i.xGo(Ut)))(V||Ut)}})(),Ut.\u0275prov=i.jDH({token:Ut,factory:Ut.\u0275fac,providedIn:"root"}),Ut})();const yn=["fxLayoutAlign","fxLayoutAlign.xs","fxLayoutAlign.sm","fxLayoutAlign.md","fxLayoutAlign.lg","fxLayoutAlign.xl","fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg"];let Vt=(()=>{class Ut extends h.DJ{constructor(Le,V,de,ge){super(Le,de,V,ge),this.DIRECTIVE_KEY="layout-align",this.layout="row",this.inline=!1,this.init(),this.marshal.trackValue(this.nativeElement,"layout").pipe((0,M.Q)(this.destroySubject)).subscribe(this.onLayoutChange.bind(this))}updateWithValue(Le){const V=this.layout||"row",de=this.inline;"row"===V&&de?this.styleCache=lt:"row"!==V||de?"row-reverse"===V&&de?this.styleCache=wt:"row-reverse"!==V||de?"column"===V&&de?this.styleCache=Ue:"column"!==V||de?"column-reverse"===V&&de?this.styleCache=gt:"column-reverse"===V&&!de&&(this.styleCache=Xt):this.styleCache=Zt:this.styleCache=nn:this.styleCache=Jt,this.addStyles(Le,{layout:V,inline:de})}onLayoutChange(Le){const V=Le.value.split(" ");this.layout=V[0],this.inline=Le.value.includes("inline"),C.Uo.find(de=>de===this.layout)||(this.layout="row"),this.triggerUpdate()}}return Ut.\u0275fac=function(Le){return new(Le||Ut)(i.rXU(i.aKT),i.rXU(h.ZH),i.rXU(dn),i.rXU(h.qH))},Ut.\u0275dir=i.FsC({type:Ut,features:[i.Vt3]}),Ut})(),Qt=(()=>{class Ut extends Vt{constructor(){super(...arguments),this.inputs=yn}}return Ut.\u0275fac=(()=>{let Bt;return function(V){return(Bt||(Bt=i.xGo(Ut)))(V||Ut)}})(),Ut.\u0275dir=i.FsC({type:Ut,selectors:[["","fxLayoutAlign",""],["","fxLayoutAlign.xs",""],["","fxLayoutAlign.sm",""],["","fxLayoutAlign.md",""],["","fxLayoutAlign.lg",""],["","fxLayoutAlign.xl",""],["","fxLayoutAlign.lt-sm",""],["","fxLayoutAlign.lt-md",""],["","fxLayoutAlign.lt-lg",""],["","fxLayoutAlign.lt-xl",""],["","fxLayoutAlign.gt-xs",""],["","fxLayoutAlign.gt-sm",""],["","fxLayoutAlign.gt-md",""],["","fxLayoutAlign.gt-lg",""]],inputs:{fxLayoutAlign:"fxLayoutAlign","fxLayoutAlign.xs":"fxLayoutAlign.xs","fxLayoutAlign.sm":"fxLayoutAlign.sm","fxLayoutAlign.md":"fxLayoutAlign.md","fxLayoutAlign.lg":"fxLayoutAlign.lg","fxLayoutAlign.xl":"fxLayoutAlign.xl","fxLayoutAlign.lt-sm":"fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md":"fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg":"fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl":"fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs":"fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm":"fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md":"fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg":"fxLayoutAlign.gt-lg"},features:[i.Vt3]}),Ut})();const Jt=new Map,Zt=new Map,nn=new Map,Xt=new Map,lt=new Map,Ue=new Map,wt=new Map,gt=new Map;let bn=(()=>{class Ut{}return Ut.\u0275fac=function(Le){return new(Le||Ut)},Ut.\u0275mod=i.$C({type:Ut}),Ut.\u0275inj=i.G2t({imports:[h.Ui,n.jI]}),Ut})()},51006:(St,z,s)=>{"use strict";s.d(z,{YF:()=>js});var i=s(58527),n=s(2833),h=s(28139),C=s(3457);s(6364);let Ms=(()=>{class Vn{}return Vn.\u0275fac=function(ai){return new(ai||Vn)},Vn.\u0275mod=i.$C({type:Vn}),Vn.\u0275inj=i.G2t({imports:[n.Ui]}),Vn})();var Pr=s(61142);let js=(()=>{class Vn{constructor(ai,Li){(0,Pr.Vy)(Li)&&!ai&&console.warn("Warning: Flex Layout loaded on the server without FlexLayoutServerModule")}static withConfig(ai,Li=[]){return{ngModule:Vn,providers:ai.serverLoaded?[{provide:n.EA,useValue:{...n.PV,...ai}},{provide:n.SL,useValue:Li,multi:!0},{provide:n.Ce,useValue:!0}]:[{provide:n.EA,useValue:{...n.PV,...ai}},{provide:n.SL,useValue:Li,multi:!0}]}}}return Vn.\u0275fac=function(ai){return new(ai||Vn)(i.KVO(n.Ce),i.KVO(i.Agw))},Vn.\u0275mod=i.$C({type:Vn}),Vn.\u0275inj=i.G2t({imports:[C.w2,h.Cc,Ms,C.w2,h.Cc,Ms]}),Vn})()},56106:(St,z,s)=>{"use strict";s.d(z,{BC:()=>me,YN:()=>al,cV:()=>ds,cz:()=>T,j4:()=>Mo,k0:()=>U,kq:()=>x,me:()=>u,tU:()=>ba,vO:()=>se,vS:()=>Ur,xq:()=>ka});var i=s(58527),n=s(61142),h=s(19392),C=s(93181),S=s(83915);let M=(()=>{class on{constructor(Mt,Dn){this._renderer=Mt,this._elementRef=Dn,this.onChange=qn=>{},this.onTouched=()=>{}}setProperty(Mt,Dn){this._renderer.setProperty(this._elementRef.nativeElement,Mt,Dn)}registerOnTouched(Mt){this.onTouched=Mt}registerOnChange(Mt){this.onChange=Mt}setDisabledState(Mt){this.setProperty("disabled",Mt)}static{this.\u0275fac=function(Dn){return new(Dn||on)(i.rXU(i.sFG),i.rXU(i.aKT))}}static{this.\u0275dir=i.FsC({type:on})}}return on})(),P=(()=>{class on extends M{static{this.\u0275fac=(()=>{let Mt;return function(qn){return(Mt||(Mt=i.xGo(on)))(qn||on)}})()}static{this.\u0275dir=i.FsC({type:on,features:[i.Vt3]})}}return on})();const x=new i.nKC(""),m={provide:x,useExisting:(0,i.Rfq)(()=>u),multi:!0},r=new i.nKC("");let u=(()=>{class on extends M{constructor(Mt,Dn,qn){super(Mt,Dn),this._compositionMode=qn,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function l(){const on=(0,n.QT)()?(0,n.QT)().getUserAgent():"";return/android (\d+)/.test(on.toLowerCase())}())}writeValue(Mt){this.setProperty("value",Mt??"")}_handleInput(Mt){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(Mt)}_compositionStart(){this._composing=!0}_compositionEnd(Mt){this._composing=!1,this._compositionMode&&this.onChange(Mt)}static{this.\u0275fac=function(Dn){return new(Dn||on)(i.rXU(i.sFG),i.rXU(i.aKT),i.rXU(r,8))}}static{this.\u0275dir=i.FsC({type:on,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(Dn,qn){1&Dn&&i.bIt("input",function(_s){return qn._handleInput(_s.target.value)})("blur",function(){return qn.onTouched()})("compositionstart",function(){return qn._compositionStart()})("compositionend",function(_s){return qn._compositionEnd(_s.target.value)})},features:[i.Jv_([m]),i.Vt3]})}}return on})();function v(on){return null==on||("string"==typeof on||Array.isArray(on))&&0===on.length}function E(on){return null!=on&&"number"==typeof on.length}const T=new i.nKC(""),R=new i.nKC(""),B=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class U{static min(Dt){return function Y(on){return Dt=>{if(v(Dt.value)||v(on))return null;const Mt=parseFloat(Dt.value);return!isNaN(Mt)&&Mt<on?{min:{min:on,actual:Dt.value}}:null}}(Dt)}static max(Dt){return function ae(on){return Dt=>{if(v(Dt.value)||v(on))return null;const Mt=parseFloat(Dt.value);return!isNaN(Mt)&&Mt>on?{max:{max:on,actual:Dt.value}}:null}}(Dt)}static required(Dt){return G(Dt)}static requiredTrue(Dt){return k(Dt)}static email(Dt){return function X(on){return v(on.value)||B.test(on.value)?null:{email:!0}}(Dt)}static minLength(Dt){return function q(on){return Dt=>v(Dt.value)||!E(Dt.value)?null:Dt.value.length<on?{minlength:{requiredLength:on,actualLength:Dt.value.length}}:null}(Dt)}static maxLength(Dt){return Q(Dt)}static pattern(Dt){return function ce(on){if(!on)return te;let Dt,Mt;return"string"==typeof on?(Mt="","^"!==on.charAt(0)&&(Mt+="^"),Mt+=on,"$"!==on.charAt(on.length-1)&&(Mt+="$"),Dt=new RegExp(Mt)):(Mt=on.toString(),Dt=on),Dn=>{if(v(Dn.value))return null;const qn=Dn.value;return Dt.test(qn)?null:{pattern:{requiredPattern:Mt,actualValue:qn}}}}(Dt)}static nullValidator(Dt){return null}static compose(Dt){return nt(Dt)}static composeAsync(Dt){return ze(Dt)}}function G(on){return v(on.value)?{required:!0}:null}function k(on){return!0===on.value?null:{required:!0}}function Q(on){return Dt=>E(Dt.value)&&Dt.value.length>on?{maxlength:{requiredLength:on,actualLength:Dt.value.length}}:null}function te(on){return null}function Ee(on){return null!=on}function it(on){return(0,i.jNT)(on)?(0,h.H)(on):on}function Fe(on){let Dt={};return on.forEach(Mt=>{Dt=null!=Mt?{...Dt,...Mt}:Dt}),0===Object.keys(Dt).length?null:Dt}function Qe(on,Dt){return Dt.map(Mt=>Mt(on))}function Ge(on){return on.map(Dt=>function ct(on){return!on.validate}(Dt)?Dt:Mt=>Dt.validate(Mt))}function nt(on){if(!on)return null;const Dt=on.filter(Ee);return 0==Dt.length?null:function(Mt){return Fe(Qe(Mt,Dt))}}function Je(on){return null!=on?nt(Ge(on)):null}function ze(on){if(!on)return null;const Dt=on.filter(Ee);return 0==Dt.length?null:function(Mt){const Dn=Qe(Mt,Dt).map(it);return(0,C.p)(Dn).pipe((0,S.T)(Fe))}}function Ke(on){return null!=on?ze(Ge(on)):null}function Ve(on,Dt){return null===on?[Dt]:Array.isArray(on)?[...on,Dt]:[on,Dt]}function $e(on){return on._rawValidators}function dt(on){return on._rawAsyncValidators}function Pe(on){return on?Array.isArray(on)?on:[on]:[]}function J(on,Dt){return Array.isArray(on)?on.includes(Dt):on===Dt}function vt(on,Dt){const Mt=Pe(Dt);return Pe(on).forEach(qn=>{J(Mt,qn)||Mt.push(qn)}),Mt}function ve(on,Dt){return Pe(Dt).filter(Mt=>!J(on,Mt))}class ue{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(Dt){this._rawValidators=Dt||[],this._composedValidatorFn=Je(this._rawValidators)}_setAsyncValidators(Dt){this._rawAsyncValidators=Dt||[],this._composedAsyncValidatorFn=Ke(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(Dt){this._onDestroyCallbacks.push(Dt)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(Dt=>Dt()),this._onDestroyCallbacks=[]}reset(Dt=void 0){this.control&&this.control.reset(Dt)}hasError(Dt,Mt){return!!this.control&&this.control.hasError(Dt,Mt)}getError(Dt,Mt){return this.control?this.control.getError(Dt,Mt):null}}class et extends ue{get formDirective(){return null}get path(){return null}}class se extends ue{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Ce{constructor(Dt){this._cd=Dt}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let me=(()=>{class on extends Ce{constructor(Mt){super(Mt)}static{this.\u0275fac=function(Dn){return new(Dn||on)(i.rXU(se,2))}}static{this.\u0275dir=i.FsC({type:on,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(Dn,qn){2&Dn&&i.AVh("ng-untouched",qn.isUntouched)("ng-touched",qn.isTouched)("ng-pristine",qn.isPristine)("ng-dirty",qn.isDirty)("ng-valid",qn.isValid)("ng-invalid",qn.isInvalid)("ng-pending",qn.isPending)},features:[i.Vt3]})}}return on})();const Ue="VALID",wt="INVALID",gt="PENDING",Ht="DISABLED";function bn(on){return(V(on)?on.validators:on)||null}function Bt(on,Dt){return(V(Dt)?Dt.asyncValidators:on)||null}function V(on){return null!=on&&!Array.isArray(on)&&"object"==typeof on}class Ft{constructor(Dt,Mt){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(Dt),this._assignAsyncValidators(Mt)}get validator(){return this._composedValidatorFn}set validator(Dt){this._rawValidators=this._composedValidatorFn=Dt}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(Dt){this._rawAsyncValidators=this._composedAsyncValidatorFn=Dt}get parent(){return this._parent}get valid(){return this.status===Ue}get invalid(){return this.status===wt}get pending(){return this.status==gt}get disabled(){return this.status===Ht}get enabled(){return this.status!==Ht}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(Dt){this._assignValidators(Dt)}setAsyncValidators(Dt){this._assignAsyncValidators(Dt)}addValidators(Dt){this.setValidators(vt(Dt,this._rawValidators))}addAsyncValidators(Dt){this.setAsyncValidators(vt(Dt,this._rawAsyncValidators))}removeValidators(Dt){this.setValidators(ve(Dt,this._rawValidators))}removeAsyncValidators(Dt){this.setAsyncValidators(ve(Dt,this._rawAsyncValidators))}hasValidator(Dt){return J(this._rawValidators,Dt)}hasAsyncValidator(Dt){return J(this._rawAsyncValidators,Dt)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(Dt={}){this.touched=!0,this._parent&&!Dt.onlySelf&&this._parent.markAsTouched(Dt)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(Dt=>Dt.markAllAsTouched())}markAsUntouched(Dt={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(Mt=>{Mt.markAsUntouched({onlySelf:!0})}),this._parent&&!Dt.onlySelf&&this._parent._updateTouched(Dt)}markAsDirty(Dt={}){this.pristine=!1,this._parent&&!Dt.onlySelf&&this._parent.markAsDirty(Dt)}markAsPristine(Dt={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(Mt=>{Mt.markAsPristine({onlySelf:!0})}),this._parent&&!Dt.onlySelf&&this._parent._updatePristine(Dt)}markAsPending(Dt={}){this.status=gt,!1!==Dt.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!Dt.onlySelf&&this._parent.markAsPending(Dt)}disable(Dt={}){const Mt=this._parentMarkedDirty(Dt.onlySelf);this.status=Ht,this.errors=null,this._forEachChild(Dn=>{Dn.disable({...Dt,onlySelf:!0})}),this._updateValue(),!1!==Dt.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...Dt,skipPristineCheck:Mt}),this._onDisabledChange.forEach(Dn=>Dn(!0))}enable(Dt={}){const Mt=this._parentMarkedDirty(Dt.onlySelf);this.status=Ue,this._forEachChild(Dn=>{Dn.enable({...Dt,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:Dt.emitEvent}),this._updateAncestors({...Dt,skipPristineCheck:Mt}),this._onDisabledChange.forEach(Dn=>Dn(!1))}_updateAncestors(Dt){this._parent&&!Dt.onlySelf&&(this._parent.updateValueAndValidity(Dt),Dt.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(Dt){this._parent=Dt}getRawValue(){return this.value}updateValueAndValidity(Dt={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Ue||this.status===gt)&&this._runAsyncValidator(Dt.emitEvent)),!1!==Dt.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!Dt.onlySelf&&this._parent.updateValueAndValidity(Dt)}_updateTreeValidity(Dt={emitEvent:!0}){this._forEachChild(Mt=>Mt._updateTreeValidity(Dt)),this.updateValueAndValidity({onlySelf:!0,emitEvent:Dt.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Ht:Ue}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(Dt){if(this.asyncValidator){this.status=gt,this._hasOwnPendingAsyncValidator=!0;const Mt=it(this.asyncValidator(this));this._asyncValidationSubscription=Mt.subscribe(Dn=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(Dn,{emitEvent:Dt})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(Dt,Mt={}){this.errors=Dt,this._updateControlsErrors(!1!==Mt.emitEvent)}get(Dt){let Mt=Dt;return null==Mt||(Array.isArray(Mt)||(Mt=Mt.split(".")),0===Mt.length)?null:Mt.reduce((Dn,qn)=>Dn&&Dn._find(qn),this)}getError(Dt,Mt){const Dn=Mt?this.get(Mt):this;return Dn&&Dn.errors?Dn.errors[Dt]:null}hasError(Dt,Mt){return!!this.getError(Dt,Mt)}get root(){let Dt=this;for(;Dt._parent;)Dt=Dt._parent;return Dt}_updateControlsErrors(Dt){this.status=this._calculateStatus(),Dt&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(Dt)}_initObservables(){this.valueChanges=new i.bkB,this.statusChanges=new i.bkB}_calculateStatus(){return this._allControlsDisabled()?Ht:this.errors?wt:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(gt)?gt:this._anyControlsHaveStatus(wt)?wt:Ue}_anyControlsHaveStatus(Dt){return this._anyControls(Mt=>Mt.status===Dt)}_anyControlsDirty(){return this._anyControls(Dt=>Dt.dirty)}_anyControlsTouched(){return this._anyControls(Dt=>Dt.touched)}_updatePristine(Dt={}){this.pristine=!this._anyControlsDirty(),this._parent&&!Dt.onlySelf&&this._parent._updatePristine(Dt)}_updateTouched(Dt={}){this.touched=this._anyControlsTouched(),this._parent&&!Dt.onlySelf&&this._parent._updateTouched(Dt)}_registerOnCollectionChange(Dt){this._onCollectionChange=Dt}_setUpdateStrategy(Dt){V(Dt)&&null!=Dt.updateOn&&(this._updateOn=Dt.updateOn)}_parentMarkedDirty(Dt){return!Dt&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(Dt){return null}_assignValidators(Dt){this._rawValidators=Array.isArray(Dt)?Dt.slice():Dt,this._composedValidatorFn=function Ut(on){return Array.isArray(on)?Je(on):on||null}(this._rawValidators)}_assignAsyncValidators(Dt){this._rawAsyncValidators=Array.isArray(Dt)?Dt.slice():Dt,this._composedAsyncValidatorFn=function Le(on){return Array.isArray(on)?Ke(on):on||null}(this._rawAsyncValidators)}}class Wt extends Ft{constructor(Dt,Mt,Dn){super(bn(Mt),Bt(Dn,Mt)),this.controls=Dt,this._initObservables(),this._setUpdateStrategy(Mt),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(Dt,Mt){return this.controls[Dt]?this.controls[Dt]:(this.controls[Dt]=Mt,Mt.setParent(this),Mt._registerOnCollectionChange(this._onCollectionChange),Mt)}addControl(Dt,Mt,Dn={}){this.registerControl(Dt,Mt),this.updateValueAndValidity({emitEvent:Dn.emitEvent}),this._onCollectionChange()}removeControl(Dt,Mt={}){this.controls[Dt]&&this.controls[Dt]._registerOnCollectionChange(()=>{}),delete this.controls[Dt],this.updateValueAndValidity({emitEvent:Mt.emitEvent}),this._onCollectionChange()}setControl(Dt,Mt,Dn={}){this.controls[Dt]&&this.controls[Dt]._registerOnCollectionChange(()=>{}),delete this.controls[Dt],Mt&&this.registerControl(Dt,Mt),this.updateValueAndValidity({emitEvent:Dn.emitEvent}),this._onCollectionChange()}contains(Dt){return this.controls.hasOwnProperty(Dt)&&this.controls[Dt].enabled}setValue(Dt,Mt={}){(function ge(on,Dt,Mt){on._forEachChild((Dn,qn)=>{if(void 0===Mt[qn])throw new i.wOt(1002,"")})})(this,0,Dt),Object.keys(Dt).forEach(Dn=>{(function de(on,Dt,Mt){const Dn=on.controls;if(!(Dt?Object.keys(Dn):Dn).length)throw new i.wOt(1e3,"");if(!Dn[Mt])throw new i.wOt(1001,"")})(this,!0,Dn),this.controls[Dn].setValue(Dt[Dn],{onlySelf:!0,emitEvent:Mt.emitEvent})}),this.updateValueAndValidity(Mt)}patchValue(Dt,Mt={}){null!=Dt&&(Object.keys(Dt).forEach(Dn=>{const qn=this.controls[Dn];qn&&qn.patchValue(Dt[Dn],{onlySelf:!0,emitEvent:Mt.emitEvent})}),this.updateValueAndValidity(Mt))}reset(Dt={},Mt={}){this._forEachChild((Dn,qn)=>{Dn.reset(Dt?Dt[qn]:null,{onlySelf:!0,emitEvent:Mt.emitEvent})}),this._updatePristine(Mt),this._updateTouched(Mt),this.updateValueAndValidity(Mt)}getRawValue(){return this._reduceChildren({},(Dt,Mt,Dn)=>(Dt[Dn]=Mt.getRawValue(),Dt))}_syncPendingControls(){let Dt=this._reduceChildren(!1,(Mt,Dn)=>!!Dn._syncPendingControls()||Mt);return Dt&&this.updateValueAndValidity({onlySelf:!0}),Dt}_forEachChild(Dt){Object.keys(this.controls).forEach(Mt=>{const Dn=this.controls[Mt];Dn&&Dt(Dn,Mt)})}_setUpControls(){this._forEachChild(Dt=>{Dt.setParent(this),Dt._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(Dt){for(const[Mt,Dn]of Object.entries(this.controls))if(this.contains(Mt)&&Dt(Dn))return!0;return!1}_reduceValue(){return this._reduceChildren({},(Mt,Dn,qn)=>((Dn.enabled||this.disabled)&&(Mt[qn]=Dn.value),Mt))}_reduceChildren(Dt,Mt){let Dn=Dt;return this._forEachChild((qn,Yr)=>{Dn=Mt(Dn,qn,Yr)}),Dn}_allControlsDisabled(){for(const Dt of Object.keys(this.controls))if(this.controls[Dt].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(Dt){return this.controls.hasOwnProperty(Dt)?this.controls[Dt]:null}}const Gi=new i.nKC("CallSetDisabledState",{providedIn:"root",factory:()=>bt}),bt="always";function Rn(on,Dt,Mt=bt){ir(on,Dt),Dt.valueAccessor.writeValue(on.value),(on.disabled||"always"===Mt)&&Dt.valueAccessor.setDisabledState?.(on.disabled),function hr(on,Dt){Dt.valueAccessor.registerOnChange(Mt=>{on._pendingValue=Mt,on._pendingChange=!0,on._pendingDirty=!0,"change"===on.updateOn&&Pr(on,Dt)})}(on,Dt),function lo(on,Dt){const Mt=(Dn,qn)=>{Dt.valueAccessor.writeValue(Dn),qn&&Dt.viewToModelUpdate(Dn)};on.registerOnChange(Mt),Dt._registerOnDestroy(()=>{on._unregisterOnChange(Mt)})}(on,Dt),function Ms(on,Dt){Dt.valueAccessor.registerOnTouched(()=>{on._pendingTouched=!0,"blur"===on.updateOn&&on._pendingChange&&Pr(on,Dt),"submit"!==on.updateOn&&on.markAsTouched()})}(on,Dt),function Ni(on,Dt){if(Dt.valueAccessor.setDisabledState){const Mt=Dn=>{Dt.valueAccessor.setDisabledState(Dn)};on.registerOnDisabledChange(Mt),Dt._registerOnDestroy(()=>{on._unregisterOnDisabledChange(Mt)})}}(on,Dt)}function Gn(on,Dt,Mt=!0){const Dn=()=>{};Dt.valueAccessor&&(Dt.valueAccessor.registerOnChange(Dn),Dt.valueAccessor.registerOnTouched(Dn)),Ir(on,Dt),on&&(Dt._invokeOnDestroyCallbacks(),on._registerOnCollectionChange(()=>{}))}function Kn(on,Dt){on.forEach(Mt=>{Mt.registerOnValidatorChange&&Mt.registerOnValidatorChange(Dt)})}function ir(on,Dt){const Mt=$e(on);null!==Dt.validator?on.setValidators(Ve(Mt,Dt.validator)):"function"==typeof Mt&&on.setValidators([Mt]);const Dn=dt(on);null!==Dt.asyncValidator?on.setAsyncValidators(Ve(Dn,Dt.asyncValidator)):"function"==typeof Dn&&on.setAsyncValidators([Dn]);const qn=()=>on.updateValueAndValidity();Kn(Dt._rawValidators,qn),Kn(Dt._rawAsyncValidators,qn)}function Ir(on,Dt){let Mt=!1;if(null!==on){if(null!==Dt.validator){const qn=$e(on);if(Array.isArray(qn)&&qn.length>0){const Yr=qn.filter(_s=>_s!==Dt.validator);Yr.length!==qn.length&&(Mt=!0,on.setValidators(Yr))}}if(null!==Dt.asyncValidator){const qn=dt(on);if(Array.isArray(qn)&&qn.length>0){const Yr=qn.filter(_s=>_s!==Dt.asyncValidator);Yr.length!==qn.length&&(Mt=!0,on.setAsyncValidators(Yr))}}}const Dn=()=>{};return Kn(Dt._rawValidators,Dn),Kn(Dt._rawAsyncValidators,Dn),Mt}function Pr(on,Dt){on._pendingDirty&&on.markAsDirty(),on.setValue(on._pendingValue,{emitModelToViewChange:!1}),Dt.viewToModelUpdate(on._pendingValue),on._pendingChange=!1}function js(on,Dt){ir(on,Dt)}function fi(on,Dt){on._syncPendingControls(),Dt.forEach(Mt=>{const Dn=Mt.control;"submit"===Dn.updateOn&&Dn._pendingChange&&(Mt.viewToModelUpdate(Dn._pendingValue),Dn._pendingChange=!1)})}const Br={provide:et,useExisting:(0,i.Rfq)(()=>ds)},Sr=Promise.resolve();let ds=(()=>{class on extends et{constructor(Mt,Dn,qn){super(),this.callSetDisabledState=qn,this.submitted=!1,this._directives=new Set,this.ngSubmit=new i.bkB,this.form=new Wt({},Je(Mt),Ke(Dn))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(Mt){Sr.then(()=>{const Dn=this._findContainer(Mt.path);Mt.control=Dn.registerControl(Mt.name,Mt.control),Rn(Mt.control,Mt,this.callSetDisabledState),Mt.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(Mt)})}getControl(Mt){return this.form.get(Mt.path)}removeControl(Mt){Sr.then(()=>{const Dn=this._findContainer(Mt.path);Dn&&Dn.removeControl(Mt.name),this._directives.delete(Mt)})}addFormGroup(Mt){Sr.then(()=>{const Dn=this._findContainer(Mt.path),qn=new Wt({});js(qn,Mt),Dn.registerControl(Mt.name,qn),qn.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(Mt){Sr.then(()=>{const Dn=this._findContainer(Mt.path);Dn&&Dn.removeControl(Mt.name)})}getFormGroup(Mt){return this.form.get(Mt.path)}updateModel(Mt,Dn){Sr.then(()=>{this.form.get(Mt.path).setValue(Dn)})}setValue(Mt){this.control.setValue(Mt)}onSubmit(Mt){return this.submitted=!0,fi(this.form,this._directives),this.ngSubmit.emit(Mt),"dialog"===Mt?.target?.method}onReset(){this.resetForm()}resetForm(Mt=void 0){this.form.reset(Mt),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(Mt){return Mt.pop(),Mt.length?this.form.get(Mt):this.form}static{this.\u0275fac=function(Dn){return new(Dn||on)(i.rXU(T,10),i.rXU(R,10),i.rXU(Gi,8))}}static{this.\u0275dir=i.FsC({type:on,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(Dn,qn){1&Dn&&i.bIt("submit",function(_s){return qn.onSubmit(_s)})("reset",function(){return qn.onReset()})},inputs:{options:[i.Mj6.None,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i.Jv_([Br]),i.Vt3]})}}return on})();function bs(on,Dt){const Mt=on.indexOf(Dt);Mt>-1&&on.splice(Mt,1)}function An(on){return"object"==typeof on&&null!==on&&2===Object.keys(on).length&&"value"in on&&"disabled"in on}const zn=class extends Ft{constructor(Dt=null,Mt,Dn){super(bn(Mt),Bt(Dn,Mt)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(Dt),this._setUpdateStrategy(Mt),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),V(Mt)&&(Mt.nonNullable||Mt.initialValueIsDefault)&&(this.defaultValue=An(Dt)?Dt.value:Dt)}setValue(Dt,Mt={}){this.value=this._pendingValue=Dt,this._onChange.length&&!1!==Mt.emitModelToViewChange&&this._onChange.forEach(Dn=>Dn(this.value,!1!==Mt.emitViewToModelChange)),this.updateValueAndValidity(Mt)}patchValue(Dt,Mt={}){this.setValue(Dt,Mt)}reset(Dt=this.defaultValue,Mt={}){this._applyFormState(Dt),this.markAsPristine(Mt),this.markAsUntouched(Mt),this.setValue(this.value,Mt),this._pendingChange=!1}_updateValue(){}_anyControls(Dt){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(Dt){this._onChange.push(Dt)}_unregisterOnChange(Dt){bs(this._onChange,Dt)}registerOnDisabledChange(Dt){this._onDisabledChange.push(Dt)}_unregisterOnDisabledChange(Dt){bs(this._onDisabledChange,Dt)}_forEachChild(Dt){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(Dt){An(Dt)?(this.value=this._pendingValue=Dt.value,Dt.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=Dt}},ks={provide:se,useExisting:(0,i.Rfq)(()=>Ur)},Ar=Promise.resolve();let Ur=(()=>{class on extends se{constructor(Mt,Dn,qn,Yr,_s,Do){super(),this._changeDetectorRef=_s,this.callSetDisabledState=Do,this.control=new zn,this._registered=!1,this.name="",this.update=new i.bkB,this._parent=Mt,this._setValidators(Dn),this._setAsyncValidators(qn),this.valueAccessor=function yi(on,Dt){if(!Dt)return null;let Mt,Dn,qn;return Array.isArray(Dt),Dt.forEach(Yr=>{Yr.constructor===u?Mt=Yr:function Zn(on){return Object.getPrototypeOf(on.constructor)===P}(Yr)?Dn=Yr:qn=Yr}),qn||Dn||Mt||null}(0,Yr)}ngOnChanges(Mt){if(this._checkForErrors(),!this._registered||"name"in Mt){if(this._registered&&(this._checkName(),this.formDirective)){const Dn=Mt.name.previousValue;this.formDirective.removeControl({name:Dn,path:this._getPath(Dn)})}this._setUpControl()}"isDisabled"in Mt&&this._updateDisabled(Mt),function Qn(on,Dt){if(!on.hasOwnProperty("model"))return!1;const Mt=on.model;return!!Mt.isFirstChange()||!Object.is(Dt,Mt.currentValue)}(Mt,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(Mt){this.viewModel=Mt,this.update.emit(Mt)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){Rn(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(Mt){Ar.then(()=>{this.control.setValue(Mt,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(Mt){const Dn=Mt.isDisabled.currentValue,qn=0!==Dn&&(0,i.L39)(Dn);Ar.then(()=>{qn&&!this.control.disabled?this.control.disable():!qn&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(Mt){return this._parent?function Zi(on,Dt){return[...Dt.path,on]}(Mt,this._parent):[Mt]}static{this.\u0275fac=function(Dn){return new(Dn||on)(i.rXU(et,9),i.rXU(T,10),i.rXU(R,10),i.rXU(x,10),i.rXU(i.gRc,8),i.rXU(Gi,8))}}static{this.\u0275dir=i.FsC({type:on,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[i.Mj6.None,"disabled","isDisabled"],model:[i.Mj6.None,"ngModel","model"],options:[i.Mj6.None,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[i.Jv_([ks]),i.Vt3,i.OA$]})}}return on})();const Go={provide:et,useExisting:(0,i.Rfq)(()=>Mo)};let Mo=(()=>{class on extends et{constructor(Mt,Dn,qn){super(),this.callSetDisabledState=qn,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new i.bkB,this._setValidators(Mt),this._setAsyncValidators(Dn)}ngOnChanges(Mt){this._checkFormPresent(),Mt.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Ir(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(Mt){const Dn=this.form.get(Mt.path);return Rn(Dn,Mt,this.callSetDisabledState),Dn.updateValueAndValidity({emitEvent:!1}),this.directives.push(Mt),Dn}getControl(Mt){return this.form.get(Mt.path)}removeControl(Mt){Gn(Mt.control||null,Mt,!1),function tr(on,Dt){const Mt=on.indexOf(Dt);Mt>-1&&on.splice(Mt,1)}(this.directives,Mt)}addFormGroup(Mt){this._setUpFormContainer(Mt)}removeFormGroup(Mt){this._cleanUpFormContainer(Mt)}getFormGroup(Mt){return this.form.get(Mt.path)}addFormArray(Mt){this._setUpFormContainer(Mt)}removeFormArray(Mt){this._cleanUpFormContainer(Mt)}getFormArray(Mt){return this.form.get(Mt.path)}updateModel(Mt,Dn){this.form.get(Mt.path).setValue(Dn)}onSubmit(Mt){return this.submitted=!0,fi(this.form,this.directives),this.ngSubmit.emit(Mt),"dialog"===Mt?.target?.method}onReset(){this.resetForm()}resetForm(Mt=void 0){this.form.reset(Mt),this.submitted=!1}_updateDomValue(){this.directives.forEach(Mt=>{const Dn=Mt.control,qn=this.form.get(Mt.path);Dn!==qn&&(Gn(Dn||null,Mt),(on=>on instanceof zn)(qn)&&(Rn(qn,Mt,this.callSetDisabledState),Mt.control=qn))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(Mt){const Dn=this.form.get(Mt.path);js(Dn,Mt),Dn.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(Mt){if(this.form){const Dn=this.form.get(Mt.path);Dn&&function Vn(on,Dt){return Ir(on,Dt)}(Dn,Mt)&&Dn.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){ir(this.form,this),this._oldForm&&Ir(this._oldForm,this)}_checkFormPresent(){}static{this.\u0275fac=function(Dn){return new(Dn||on)(i.rXU(T,10),i.rXU(R,10),i.rXU(Gi,8))}}static{this.\u0275dir=i.FsC({type:on,selectors:[["","formGroup",""]],hostBindings:function(Dn,qn){1&Dn&&i.bIt("submit",function(_s){return qn.onSubmit(_s)})("reset",function(){return qn.onReset()})},inputs:{form:[i.Mj6.None,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i.Jv_([Go]),i.Vt3,i.OA$]})}}return on})();let no=(()=>{class on{constructor(){this._validator=te}ngOnChanges(Mt){if(this.inputName in Mt){const Dn=this.normalizeInput(Mt[this.inputName].currentValue);this._enabled=this.enabled(Dn),this._validator=this._enabled?this.createValidator(Dn):te,this._onChange&&this._onChange()}}validate(Mt){return this._validator(Mt)}registerOnValidatorChange(Mt){this._onChange=Mt}enabled(Mt){return null!=Mt}static{this.\u0275fac=function(Dn){return new(Dn||on)}}static{this.\u0275dir=i.FsC({type:on,features:[i.OA$]})}}return on})();const La={provide:T,useExisting:(0,i.Rfq)(()=>Jo),multi:!0},Ko={provide:T,useExisting:(0,i.Rfq)(()=>ka),multi:!0};let Jo=(()=>{class on extends no{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=i.L39,this.createValidator=Mt=>G}enabled(Mt){return Mt}static{this.\u0275fac=(()=>{let Mt;return function(qn){return(Mt||(Mt=i.xGo(on)))(qn||on)}})()}static{this.\u0275dir=i.FsC({type:on,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(Dn,qn){2&Dn&&i.BMQ("required",qn._enabled?"":null)},inputs:{required:"required"},features:[i.Jv_([La]),i.Vt3]})}}return on})(),ka=(()=>{class on extends Jo{constructor(){super(...arguments),this.createValidator=Mt=>k}static{this.\u0275fac=(()=>{let Mt;return function(qn){return(Mt||(Mt=i.xGo(on)))(qn||on)}})()}static{this.\u0275dir=i.FsC({type:on,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(Dn,qn){2&Dn&&i.BMQ("required",qn._enabled?"":null)},features:[i.Jv_([Ko]),i.Vt3]})}}return on})();const Sn={provide:T,useExisting:(0,i.Rfq)(()=>ba),multi:!0};let ba=(()=>{class on extends no{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=Mt=>function Eo(on){return"number"==typeof on?on:parseInt(on,10)}(Mt),this.createValidator=Mt=>Q(Mt)}static{this.\u0275fac=(()=>{let Mt;return function(qn){return(Mt||(Mt=i.xGo(on)))(qn||on)}})()}static{this.\u0275dir=i.FsC({type:on,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(Dn,qn){2&Dn&&i.BMQ("maxlength",qn._enabled?qn.maxlength:null)},inputs:{maxlength:"maxlength"},features:[i.Jv_([Sn]),i.Vt3]})}}return on})(),zi=(()=>{class on{static{this.\u0275fac=function(Dn){return new(Dn||on)}}static{this.\u0275mod=i.$C({type:on})}static{this.\u0275inj=i.G2t({})}}return on})(),al=(()=>{class on{static withConfig(Mt){return{ngModule:on,providers:[{provide:Gi,useValue:Mt.callSetDisabledState??bt}]}}static{this.\u0275fac=function(Dn){return new(Dn||on)}}static{this.\u0275mod=i.$C({type:on})}static{this.\u0275inj=i.G2t({imports:[zi]})}}return on})()},16490:(St,z,s)=>{"use strict";s.d(z,{J3:()=>U,Ox:()=>ae,VK:()=>G,eN:()=>Y,vF:()=>R,yj:()=>B});var i=s(78064),n=s(76614),h=s(58527),C=s(51635),S=s(31308),M=s(76706),P=s(61904),x=s(61142),A=s(40262),g=s(25373),m=s(80583),l=s(16229),r=s(8619),u=s(65706);function v(k,X){}const E={bottomSheetState:(0,A.hZ)("state",[(0,A.wk)("void, hidden",(0,A.iF)({transform:"translateY(100%)"})),(0,A.wk)("visible",(0,A.iF)({transform:"translateY(0%)"})),(0,A.kY)("visible => void, visible => hidden",(0,A.Os)([(0,A.i0)(`${C.ed.COMPLEX} ${C.r5.ACCELERATION_CURVE}`),(0,A.P)("@*",(0,A.MA)(),{optional:!0})])),(0,A.kY)("void => visible",(0,A.Os)([(0,A.i0)(`${C.ed.EXITING} ${C.r5.DECELERATION_CURVE}`),(0,A.P)("@*",(0,A.MA)(),{optional:!0})]))])};let T=(()=>{class k extends i.sU{constructor(q,Q,ce,te,Ee,it,Fe,Qe,ct,Ge){super(q,Q,ce,te,Ee,it,Fe,Ge),this._changeDetectorRef=ct,this._animationState="void",this._animationStateChanged=new h.bkB,this._breakpointSubscription=Qe.observe([M.Rp.Medium,M.Rp.Large,M.Rp.XLarge]).subscribe(()=>{this._toggleClass("mat-bottom-sheet-container-medium",Qe.isMatched(M.Rp.Medium)),this._toggleClass("mat-bottom-sheet-container-large",Qe.isMatched(M.Rp.Large)),this._toggleClass("mat-bottom-sheet-container-xlarge",Qe.isMatched(M.Rp.XLarge))})}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges())}exit(){this._destroyed||(this._animationState="hidden",this._changeDetectorRef.markForCheck())}ngOnDestroy(){super.ngOnDestroy(),this._breakpointSubscription.unsubscribe(),this._destroyed=!0}_onAnimationDone(q){"visible"===q.toState&&this._trapFocus(),this._animationStateChanged.emit(q)}_onAnimationStart(q){this._animationStateChanged.emit(q)}_captureInitialFocus(){}_toggleClass(q,Q){this._elementRef.nativeElement.classList.toggle(q,Q)}static{this.\u0275fac=function(Q){return new(Q||k)(h.rXU(h.aKT),h.rXU(S.GX),h.rXU(x.qQ,8),h.rXU(i.Pe),h.rXU(S.Z7),h.rXU(h.SKi),h.rXU(P.yY),h.rXU(M.QP),h.rXU(h.gRc),h.rXU(S.FN))}}static{this.\u0275cmp=h.VBU({type:k,selectors:[["mat-bottom-sheet-container"]],hostAttrs:["tabindex","-1",1,"mat-bottom-sheet-container"],hostVars:4,hostBindings:function(Q,ce){1&Q&&h.Kam("@state.start",function(Ee){return ce._onAnimationStart(Ee)})("@state.done",function(Ee){return ce._onAnimationDone(Ee)}),2&Q&&(h.zvX("@state",ce._animationState),h.BMQ("role",ce._config.role)("aria-modal",ce._config.ariaModal)("aria-label",ce._config.ariaLabel))},features:[h.Vt3],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(Q,ce){1&Q&&h.DNE(0,v,0,0,"ng-template",0)},dependencies:[n.I3],styles:[".mat-bottom-sheet-container{--mat-bottom-sheet-container-shape:4px;box-shadow:0px 8px 10px -5px rgba(0, 0, 0, 0.2), 0px 16px 24px 2px rgba(0, 0, 0, 0.14), 0px 6px 30px 5px rgba(0, 0, 0, 0.12);padding:8px 16px;min-width:100vw;box-sizing:border-box;display:block;outline:0;max-height:80vh;overflow:auto;background:var(--mat-bottom-sheet-container-background-color);color:var(--mat-bottom-sheet-container-text-color);font-family:var(--mat-bottom-sheet-container-text-font);font-size:var(--mat-bottom-sheet-container-text-size);line-height:var(--mat-bottom-sheet-container-text-line-height);font-weight:var(--mat-bottom-sheet-container-text-weight);letter-spacing:var(--mat-bottom-sheet-container-text-tracking)}.cdk-high-contrast-active .mat-bottom-sheet-container{outline:1px solid}.mat-bottom-sheet-container-xlarge,.mat-bottom-sheet-container-large,.mat-bottom-sheet-container-medium{border-top-left-radius:var(--mat-bottom-sheet-container-shape);border-top-right-radius:var(--mat-bottom-sheet-container-shape)}.mat-bottom-sheet-container-medium{min-width:384px;max-width:calc(100vw - 128px)}.mat-bottom-sheet-container-large{min-width:512px;max-width:calc(100vw - 256px)}.mat-bottom-sheet-container-xlarge{min-width:576px;max-width:calc(100vw - 384px)}"],encapsulation:2,data:{animation:[E.bottomSheetState]}})}}return k})(),R=(()=>{class k{static{this.\u0275fac=function(Q){return new(Q||k)}}static{this.\u0275mod=h.$C({type:k})}static{this.\u0275inj=h.G2t({imports:[i.Ph,C.yE,n.jc,C.yE]})}}return k})();const B=new h.nKC("MatBottomSheetData");class U{constructor(){this.data=null,this.hasBackdrop=!0,this.disableClose=!1,this.ariaLabel=null,this.ariaModal=!0,this.closeOnNavigation=!0,this.autoFocus="dialog",this.restoreFocus=!0}}class Y{get instance(){return this._ref.componentInstance}get componentRef(){return this._ref.componentRef}constructor(X,q,Q){this._ref=X,this._afterOpened=new m.B7,this.containerInstance=Q,this.disableClose=q.disableClose,Q._animationStateChanged.pipe((0,r.p)(ce=>"done"===ce.phaseName&&"visible"===ce.toState),(0,u.s)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),Q._animationStateChanged.pipe((0,r.p)(ce=>"done"===ce.phaseName&&"hidden"===ce.toState),(0,u.s)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._ref.close(this._result)}),X.overlayRef.detachments().subscribe(()=>{this._ref.close(this._result)}),(0,l.h)(this.backdropClick(),this.keydownEvents().pipe((0,r.p)(ce=>ce.keyCode===g._f))).subscribe(ce=>{!this.disableClose&&("keydown"!==ce.type||!(0,g.rp)(ce))&&(ce.preventDefault(),this.dismiss())})}dismiss(X){this.containerInstance&&(this.containerInstance._animationStateChanged.pipe((0,r.p)(q=>"start"===q.phaseName),(0,u.s)(1)).subscribe(q=>{this._closeFallbackTimeout=setTimeout(()=>{this._ref.close(this._result)},q.totalTime+100),this._ref.overlayRef.detachBackdrop()}),this._result=X,this.containerInstance.exit(),this.containerInstance=null)}afterDismissed(){return this._ref.closed}afterOpened(){return this._afterOpened}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}}const ae=new h.nKC("mat-bottom-sheet-default-options");let G=(()=>{class k{get _openedBottomSheetRef(){const q=this._parentBottomSheet;return q?q._openedBottomSheetRef:this._bottomSheetRefAtThisLevel}set _openedBottomSheetRef(q){this._parentBottomSheet?this._parentBottomSheet._openedBottomSheetRef=q:this._bottomSheetRefAtThisLevel=q}constructor(q,Q,ce,te){this._overlay=q,this._parentBottomSheet=ce,this._defaultOptions=te,this._bottomSheetRefAtThisLevel=null,this._dialog=Q.get(i.lG)}open(q,Q){const ce={...this._defaultOptions||new U,...Q};let te;return this._dialog.open(q,{...ce,disableClose:!0,closeOnOverlayDetachments:!1,maxWidth:"100%",container:T,scrollStrategy:ce.scrollStrategy||this._overlay.scrollStrategies.block(),positionStrategy:this._overlay.position().global().centerHorizontally().bottom("0"),templateContext:()=>({bottomSheetRef:te}),providers:(Ee,it,Fe)=>(te=new Y(Ee,ce,Fe),[{provide:Y,useValue:te},{provide:B,useValue:ce.data}])}),te.afterDismissed().subscribe(()=>{this._openedBottomSheetRef===te&&(this._openedBottomSheetRef=null)}),this._openedBottomSheetRef?(this._openedBottomSheetRef.afterDismissed().subscribe(()=>te.containerInstance?.enter()),this._openedBottomSheetRef.dismiss()):te.containerInstance.enter(),this._openedBottomSheetRef=te,te}dismiss(q){this._openedBottomSheetRef&&this._openedBottomSheetRef.dismiss(q)}ngOnDestroy(){this._bottomSheetRefAtThisLevel&&this._bottomSheetRefAtThisLevel.dismiss()}static{this.\u0275fac=function(Q){return new(Q||k)(h.KVO(P.hJ),h.KVO(h.zZn),h.KVO(k,12),h.KVO(ae,8))}}static{this.\u0275prov=h.jDH({token:k,factory:k.\u0275fac,providedIn:R})}}return k})()},4418:(St,z,s)=>{"use strict";s.d(z,{So:()=>E,g7:()=>U});var i=s(58527),n=s(56106),h=s(51635),C=s(6364);const S=["input"],M=["label"],P=["*"],x=new i.nKC("mat-checkbox-default-options",{providedIn:"root",factory:A});function A(){return{color:"accent",clickAction:"check-indeterminate"}}const g={provide:n.kq,useExisting:(0,i.Rfq)(()=>E),multi:!0};class m{}let l=0;const r=A(),u=(0,h.BF)((0,h.Zc)((0,h.GG)((0,h.Ob)(class{constructor(Y){this._elementRef=Y}}))));let v=(()=>{class Y extends u{get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(G){this._required=(0,C.he)(G)}constructor(G,k,X,q,Q,ce,te){super(k),this._changeDetectorRef=X,this._ngZone=q,this._animationMode=ce,this._options=te,this.ariaLabel="",this.ariaLabelledby=null,this.labelPosition="after",this.name=null,this.change=new i.bkB,this.indeterminateChange=new i.bkB,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||r,this.color=this.defaultColor=this._options.color||r.color,this.tabIndex=parseInt(Q)||0,this.id=this._uniqueId=`${G}${++l}`}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}get checked(){return this._checked}set checked(G){const k=(0,C.he)(G);k!=this.checked&&(this._checked=k,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(G){const k=(0,C.he)(G);k!==this.disabled&&(this._disabled=k,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(G){const k=G!=this._indeterminate;this._indeterminate=(0,C.he)(G),k&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(G){this.checked=!!G}registerOnChange(G){this._controlValueAccessorChangeFn=G}registerOnTouched(G){this._onTouched=G}setDisabledState(G){this.disabled=G}_transitionCheckState(G){let k=this._currentCheckState,X=this._getAnimationTargetElement();if(k!==G&&X&&(this._currentAnimationClass&&X.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(k,G),this._currentCheckState=G,this._currentAnimationClass.length>0)){X.classList.add(this._currentAnimationClass);const q=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{X.classList.remove(q)},1e3)})}}_emitChangeEvent(){this._controlValueAccessorChangeFn(this.checked),this.change.emit(this._createChangeEvent(this.checked)),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked,this._controlValueAccessorChangeFn(this.checked)}_handleInputClick(){const G=this._options?.clickAction;this.disabled||"noop"===G?!this.disabled&&"noop"===G&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==G&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}_onInteractionEvent(G){G.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(G,k){if("NoopAnimations"===this._animationMode)return"";switch(G){case 0:if(1===k)return this._animationClasses.uncheckedToChecked;if(3==k)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case 2:return 1===k?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case 1:return 2===k?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case 3:return 1===k?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(G){const k=this._inputElement;k&&(k.nativeElement.indeterminate=G)}static{this.\u0275fac=function(k){i.QTQ()}}static{this.\u0275dir=i.FsC({type:Y,viewQuery:function(k,X){if(1&k&&(i.GBs(S,5),i.GBs(M,5),i.GBs(h.r6,5)),2&k){let q;i.mGM(q=i.lsd())&&(X._inputElement=q.first),i.mGM(q=i.lsd())&&(X._labelElement=q.first),i.mGM(q=i.lsd())&&(X.ripple=q.first)}},inputs:{ariaLabel:[i.Mj6.None,"aria-label","ariaLabel"],ariaLabelledby:[i.Mj6.None,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[i.Mj6.None,"aria-describedby","ariaDescribedby"],id:"id",required:"required",labelPosition:"labelPosition",name:"name",value:"value",checked:"checked",disabled:"disabled",indeterminate:"indeterminate"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},features:[i.Vt3]})}}return Y})(),E=(()=>{class Y extends v{constructor(G,k,X,q,Q,ce){super("mat-mdc-checkbox-",G,k,X,q,Q,ce),this._animationClasses={uncheckedToChecked:"mdc-checkbox--anim-unchecked-checked",uncheckedToIndeterminate:"mdc-checkbox--anim-unchecked-indeterminate",checkedToUnchecked:"mdc-checkbox--anim-checked-unchecked",checkedToIndeterminate:"mdc-checkbox--anim-checked-indeterminate",indeterminateToChecked:"mdc-checkbox--anim-indeterminate-checked",indeterminateToUnchecked:"mdc-checkbox--anim-indeterminate-unchecked"}}focus(){this._inputElement.nativeElement.focus()}_createChangeEvent(G){const k=new m;return k.source=this,k.checked=G,k}_getAnimationTargetElement(){return this._inputElement?.nativeElement}_onInputClick(){super._handleInputClick()}_onTouchTargetClick(){super._handleInputClick(),this.disabled||this._inputElement.nativeElement.focus()}_preventBubblingFromLabel(G){G.target&&this._labelElement.nativeElement.contains(G.target)&&G.stopPropagation()}static{this.\u0275fac=function(k){return new(k||Y)(i.rXU(i.aKT),i.rXU(i.gRc),i.rXU(i.SKi),i.kS0("tabindex"),i.rXU(i.bc$,8),i.rXU(x,8))}}static{this.\u0275cmp=i.VBU({type:Y,selectors:[["mat-checkbox"]],hostAttrs:[1,"mat-mdc-checkbox"],hostVars:12,hostBindings:function(k,X){2&k&&(i.Mr5("id",X.id),i.BMQ("tabindex",null)("aria-label",null)("aria-labelledby",null),i.AVh("_mat-animation-noopable","NoopAnimations"===X._animationMode)("mdc-checkbox--disabled",X.disabled)("mat-mdc-checkbox-disabled",X.disabled)("mat-mdc-checkbox-checked",X.checked))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matCheckbox"],features:[i.Jv_([g]),i.Vt3],ngContentSelectors:P,decls:15,vars:20,consts:[["checkbox",""],["input",""],["label",""],[1,"mdc-form-field",3,"click"],[1,"mdc-checkbox"],[1,"mat-mdc-checkbox-touch-target",3,"click"],["type","checkbox",1,"mdc-checkbox__native-control",3,"blur","click","change","checked","indeterminate","disabled","id","required","tabIndex"],[1,"mdc-checkbox__ripple"],[1,"mdc-checkbox__background"],["focusable","false","viewBox","0 0 24 24","aria-hidden","true",1,"mdc-checkbox__checkmark"],["fill","none","d","M1.73,12.91 8.1,19.28 22.79,4.59",1,"mdc-checkbox__checkmark-path"],[1,"mdc-checkbox__mixedmark"],["mat-ripple","",1,"mat-mdc-checkbox-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mdc-label",3,"for"]],template:function(k,X){if(1&k){const q=i.RV6();i.NAR(),i.j41(0,"div",3),i.bIt("click",function(ce){return i.eBV(q),i.Njj(X._preventBubblingFromLabel(ce))}),i.j41(1,"div",4,0)(3,"div",5),i.bIt("click",function(){return i.eBV(q),i.Njj(X._onTouchTargetClick())}),i.k0s(),i.j41(4,"input",6,1),i.bIt("blur",function(){return i.eBV(q),i.Njj(X._onBlur())})("click",function(){return i.eBV(q),i.Njj(X._onInputClick())})("change",function(ce){return i.eBV(q),i.Njj(X._onInteractionEvent(ce))}),i.k0s(),i.nrm(6,"div",7),i.j41(7,"div",8),i.qSk(),i.j41(8,"svg",9),i.nrm(9,"path",10),i.k0s(),i.joV(),i.nrm(10,"div",11),i.k0s(),i.nrm(11,"div",12),i.k0s(),i.j41(12,"label",13,2),i.SdG(14),i.k0s()()}if(2&k){const q=i.sdS(2);i.AVh("mdc-form-field--align-end","before"==X.labelPosition),i.R7$(4),i.AVh("mdc-checkbox--selected",X.checked),i.Y8G("checked",X.checked)("indeterminate",X.indeterminate)("disabled",X.disabled)("id",X.inputId)("required",X.required)("tabIndex",X.tabIndex),i.BMQ("aria-label",X.ariaLabel||null)("aria-labelledby",X.ariaLabelledby)("aria-describedby",X.ariaDescribedby)("aria-checked",X.indeterminate?"mixed":null)("name",X.name)("value",X.value),i.R7$(7),i.Y8G("matRippleTrigger",q)("matRippleDisabled",X.disableRipple||X.disabled)("matRippleCentered",!0),i.R7$(),i.Y8G("for",X.inputId)}},dependencies:[h.r6],styles:['.mdc-touch-target-wrapper{display:inline}@keyframes mdc-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:29.7833385}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 1)}100%{stroke-dashoffset:0}}@keyframes mdc-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mdc-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);opacity:1;stroke-dashoffset:0}to{opacity:0;stroke-dashoffset:-29.7833385}}@keyframes mdc-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(45deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(45deg);opacity:0}to{transform:rotate(360deg);opacity:1}}@keyframes mdc-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:mdc-animation-deceleration-curve-timing-function;transform:rotate(-45deg);opacity:0}to{transform:rotate(0deg);opacity:1}}@keyframes mdc-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(315deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;transform:scaleX(1);opacity:1}32.8%,100%{transform:scaleX(0);opacity:0}}.mdc-checkbox{display:inline-block;position:relative;flex:0 0 18px;box-sizing:content-box;width:18px;height:18px;line-height:0;white-space:nowrap;cursor:pointer;vertical-align:bottom}.mdc-checkbox[hidden]{display:none}.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%}@media screen and (forced-colors: active){.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring{border-color:CanvasText}}.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring::after,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring::after,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring::after{border-color:CanvasText}}@media all and (-ms-high-contrast: none){.mdc-checkbox .mdc-checkbox__focus-ring{display:none}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-checkbox__mixedmark{margin:0 1px}}.mdc-checkbox--disabled{cursor:default;pointer-events:none}.mdc-checkbox__background{display:inline-flex;position:absolute;align-items:center;justify-content:center;box-sizing:border-box;width:18px;height:18px;border:2px solid currentColor;border-radius:2px;background-color:rgba(0,0,0,0);pointer-events:none;will-change:background-color,border-color;transition:background-color 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),border-color 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__checkmark{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;opacity:0;transition:opacity 180ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox--upgraded .mdc-checkbox__checkmark{opacity:1}.mdc-checkbox__checkmark-path{transition:stroke-dashoffset 180ms 0ms cubic-bezier(0.4, 0, 0.6, 1);stroke:currentColor;stroke-width:3.12px;stroke-dashoffset:29.7833385;stroke-dasharray:29.7833385}.mdc-checkbox__mixedmark{width:100%;height:0;transform:scaleX(0) rotate(0deg);border-width:1px;border-style:solid;opacity:0;transition:opacity 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__background,.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__background,.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__background,.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__background{animation-duration:180ms;animation-timing-function:linear}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-unchecked-checked-checkmark-path 180ms linear 0s;transition:none}.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-unchecked-indeterminate-mixedmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-checked-unchecked-checkmark-path 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__checkmark{animation:mdc-checkbox-checked-indeterminate-checkmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-checked-indeterminate-mixedmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__checkmark{animation:mdc-checkbox-indeterminate-checked-checkmark 500ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-checked-mixedmark 500ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-unchecked-mixedmark 300ms linear 0s;transition:none}.mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background{transition:border-color 90ms 0ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark-path,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark-path,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__checkmark-path{stroke-dashoffset:0}.mdc-checkbox__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit}.mdc-checkbox__native-control:disabled{cursor:default;pointer-events:none}.mdc-checkbox--touch{margin:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2)}.mdc-checkbox--touch .mdc-checkbox__native-control{top:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);right:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);left:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);width:var(--mdc-checkbox-state-layer-size);height:var(--mdc-checkbox-state-layer-size)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark{transition:opacity 180ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 180ms 0ms cubic-bezier(0, 0, 0.2, 1);opacity:1}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(-45deg)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__checkmark{transform:rotate(45deg);opacity:0;transition:opacity 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__mixedmark,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(0deg);opacity:1}.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__background,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__checkmark,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__checkmark-path,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__mixedmark{transition:none}.mdc-form-field{display:inline-flex;align-items:center;vertical-align:middle}.mdc-form-field[hidden]{display:none}.mdc-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{margin-left:auto;margin-right:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{padding-left:0;padding-right:4px}.mdc-form-field--nowrap>label{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{margin-left:0;margin-right:auto}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{padding-left:4px;padding-right:0}.mdc-form-field--space-between{justify-content:space-between}.mdc-form-field--space-between>label{margin:0}[dir=rtl] .mdc-form-field--space-between>label,.mdc-form-field--space-between>label[dir=rtl]{margin:0}.mdc-checkbox{padding:calc((var(--mdc-checkbox-state-layer-size) - 18px) / 2);margin:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2)}.mdc-checkbox .mdc-checkbox__native-control[disabled]:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-disabled-unselected-icon-color);background-color:transparent}.mdc-checkbox .mdc-checkbox__native-control[disabled]:checked~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control[disabled]:indeterminate~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control[data-indeterminate=true][disabled]~.mdc-checkbox__background{border-color:transparent;background-color:var(--mdc-checkbox-disabled-selected-icon-color)}.mdc-checkbox .mdc-checkbox__native-control:enabled~.mdc-checkbox__background .mdc-checkbox__checkmark{color:var(--mdc-checkbox-selected-checkmark-color)}.mdc-checkbox .mdc-checkbox__native-control:enabled~.mdc-checkbox__background .mdc-checkbox__mixedmark{border-color:var(--mdc-checkbox-selected-checkmark-color)}.mdc-checkbox .mdc-checkbox__native-control:disabled~.mdc-checkbox__background .mdc-checkbox__checkmark{color:var(--mdc-checkbox-disabled-selected-checkmark-color)}.mdc-checkbox .mdc-checkbox__native-control:disabled~.mdc-checkbox__background .mdc-checkbox__mixedmark{border-color:var(--mdc-checkbox-disabled-selected-checkmark-color)}.mdc-checkbox .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-icon-color);background-color:transparent}.mdc-checkbox .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-icon-color);background-color:var(--mdc-checkbox-selected-icon-color)}@keyframes mdc-checkbox-fade-in-background-8A000000FFF4433600000000FFF44336{0%{border-color:var(--mdc-checkbox-unselected-icon-color);background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-icon-color);background-color:var(--mdc-checkbox-selected-icon-color)}}@keyframes mdc-checkbox-fade-out-background-8A000000FFF4433600000000FFF44336{0%,80%{border-color:var(--mdc-checkbox-selected-icon-color);background-color:var(--mdc-checkbox-selected-icon-color)}100%{border-color:var(--mdc-checkbox-unselected-icon-color);background-color:transparent}}.mdc-checkbox.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-8A000000FFF4433600000000FFF44336}.mdc-checkbox.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-8A000000FFF4433600000000FFF44336}.mdc-checkbox:hover .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-hover-icon-color);background-color:transparent}.mdc-checkbox:hover .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mdc-checkbox:hover .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mdc-checkbox:hover .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-hover-icon-color);background-color:var(--mdc-checkbox-selected-hover-icon-color)}@keyframes mdc-checkbox-fade-in-background-FF212121FFF4433600000000FFF44336{0%{border-color:var(--mdc-checkbox-unselected-hover-icon-color);background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-hover-icon-color);background-color:var(--mdc-checkbox-selected-hover-icon-color)}}@keyframes mdc-checkbox-fade-out-background-FF212121FFF4433600000000FFF44336{0%,80%{border-color:var(--mdc-checkbox-selected-hover-icon-color);background-color:var(--mdc-checkbox-selected-hover-icon-color)}100%{border-color:var(--mdc-checkbox-unselected-hover-icon-color);background-color:transparent}}.mdc-checkbox:hover.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox:hover.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-FF212121FFF4433600000000FFF44336}.mdc-checkbox:hover.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox:hover.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-FF212121FFF4433600000000FFF44336}.mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-pressed-icon-color);background-color:transparent}.mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-pressed-icon-color);background-color:var(--mdc-checkbox-selected-pressed-icon-color)}@keyframes mdc-checkbox-fade-in-background-8A000000FFF4433600000000FFF44336{0%{border-color:var(--mdc-checkbox-unselected-pressed-icon-color);background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-pressed-icon-color);background-color:var(--mdc-checkbox-selected-pressed-icon-color)}}@keyframes mdc-checkbox-fade-out-background-8A000000FFF4433600000000FFF44336{0%,80%{border-color:var(--mdc-checkbox-selected-pressed-icon-color);background-color:var(--mdc-checkbox-selected-pressed-icon-color)}100%{border-color:var(--mdc-checkbox-unselected-pressed-icon-color);background-color:transparent}}.mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-8A000000FFF4433600000000FFF44336}.mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-8A000000FFF4433600000000FFF44336}.mdc-checkbox .mdc-checkbox__background{top:calc((var(--mdc-checkbox-state-layer-size) - 18px) / 2);left:calc((var(--mdc-checkbox-state-layer-size) - 18px) / 2)}.mdc-checkbox .mdc-checkbox__native-control{top:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);right:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);left:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);width:var(--mdc-checkbox-state-layer-size);height:var(--mdc-checkbox-state-layer-size)}.mdc-checkbox .mdc-checkbox__native-control:enabled:focus:focus:not(:checked):not(:indeterminate)~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-focus-icon-color)}.mdc-checkbox .mdc-checkbox__native-control:enabled:focus:checked~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control:enabled:focus:indeterminate~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-focus-icon-color);background-color:var(--mdc-checkbox-selected-focus-icon-color)}.mdc-checkbox:hover .mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-hover-state-layer-opacity);background-color:var(--mdc-checkbox-unselected-hover-state-layer-color)}.mdc-checkbox:hover .mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-hover-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control:focus~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-focus-state-layer-opacity);background-color:var(--mdc-checkbox-unselected-focus-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control:focus~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-focus-state-layer-color)}.mdc-checkbox:active .mdc-checkbox__native-control~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-pressed-state-layer-opacity);background-color:var(--mdc-checkbox-unselected-pressed-state-layer-color)}.mdc-checkbox:active .mdc-checkbox__native-control~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-pressed-state-layer-color)}.mdc-checkbox:hover .mdc-checkbox__native-control:checked~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-hover-state-layer-opacity);background-color:var(--mdc-checkbox-selected-hover-state-layer-color)}.mdc-checkbox:hover .mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-hover-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control:focus:checked~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-focus-state-layer-opacity);background-color:var(--mdc-checkbox-selected-focus-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control:focus:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-focus-state-layer-color)}.mdc-checkbox:active .mdc-checkbox__native-control:checked~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-pressed-state-layer-opacity);background-color:var(--mdc-checkbox-selected-pressed-state-layer-color)}.mdc-checkbox:active .mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-pressed-state-layer-color)}html{--mdc-checkbox-disabled-selected-checkmark-color:#fff;--mdc-checkbox-selected-focus-state-layer-opacity:0.16;--mdc-checkbox-selected-hover-state-layer-opacity:0.04;--mdc-checkbox-selected-pressed-state-layer-opacity:0.16;--mdc-checkbox-unselected-focus-state-layer-opacity:0.16;--mdc-checkbox-unselected-hover-state-layer-opacity:0.04;--mdc-checkbox-unselected-pressed-state-layer-opacity:0.16}.mat-mdc-checkbox{display:inline-block;position:relative;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-checkbox .mdc-checkbox__background{-webkit-print-color-adjust:exact;color-adjust:exact}.mat-mdc-checkbox._mat-animation-noopable *,.mat-mdc-checkbox._mat-animation-noopable *::before{transition:none !important;animation:none !important}.mat-mdc-checkbox label{cursor:pointer}.mat-mdc-checkbox.mat-mdc-checkbox-disabled label{cursor:default}.mat-mdc-checkbox label:empty{display:none}.cdk-high-contrast-active .mat-mdc-checkbox.mat-mdc-checkbox-disabled{opacity:.5}.cdk-high-contrast-active .mat-mdc-checkbox .mdc-checkbox__checkmark{--mdc-checkbox-selected-checkmark-color: CanvasText;--mdc-checkbox-disabled-selected-checkmark-color: CanvasText}.mat-mdc-checkbox .mdc-checkbox__ripple{opacity:0}.mat-mdc-checkbox-ripple,.mdc-checkbox__ripple{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-checkbox-ripple:not(:empty),.mdc-checkbox__ripple:not(:empty){transform:translateZ(0)}.mat-mdc-checkbox-ripple .mat-ripple-element{opacity:.1}.mat-mdc-checkbox-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mat-mdc-checkbox-ripple::before{border-radius:50%}.mdc-checkbox__native-control:focus~.mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0})}}return Y})(),B=(()=>{class Y{static{this.\u0275fac=function(k){return new(k||Y)}}static{this.\u0275mod=i.$C({type:Y})}static{this.\u0275inj=i.G2t({})}}return Y})(),U=(()=>{class Y{static{this.\u0275fac=function(k){return new(k||Y)}}static{this.\u0275mod=i.$C({type:Y})}static{this.\u0275inj=i.G2t({imports:[h.yE,h.pZ,B,h.yE,B]})}}return Y})()},51635:(St,z,s)=>{"use strict";s.d(z,{r5:()=>B,ed:()=>U,es:()=>J,QC:()=>Zt,is:()=>At,$E:()=>ye,yE:()=>G,D7:()=>nn,wT:()=>wt,Sy:()=>bn,r6:()=>Ot,Ej:()=>Ft,pZ:()=>sn,ug:()=>fe,jb:()=>gt,TL:()=>Ht,Zc:()=>ce,GG:()=>te,Ob:()=>Q,J8:()=>it,BF:()=>Ee});var i=s(58527),n=s(31308),h=s(51394),S=s(61142),M=s(72653),P=s(6364),x=s(80583),A=s(25373);const g=["*",[["mat-option"],["ng-container"]]],m=["*","mat-option, ng-container"],l=["text"],r=[[["mat-icon"]],"*"],u=["mat-icon","*"];function v(Wt,Kt){if(1&Wt&&i.nrm(0,"mat-pseudo-checkbox",6),2&Wt){const cn=i.XpG();i.Y8G("disabled",cn.disabled)("state",cn.selected?"checked":"unchecked")}}function E(Wt,Kt){if(1&Wt&&i.nrm(0,"mat-pseudo-checkbox",7),2&Wt){const cn=i.XpG();i.Y8G("disabled",cn.disabled)}}function T(Wt,Kt){if(1&Wt&&(i.j41(0,"span",8),i.EFF(1),i.k0s()),2&Wt){const cn=i.XpG();i.R7$(),i.SpI("(",cn.group.label,")")}}let B=(()=>{class Wt{static{this.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)"}static{this.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)"}static{this.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)"}static{this.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)"}}return Wt})(),U=(()=>{class Wt{static{this.COMPLEX="375ms"}static{this.ENTERING="225ms"}static{this.EXITING="195ms"}}return Wt})();const ae=new i.nKC("mat-sanity-checks",{providedIn:"root",factory:function Y(){return!0}});let G=(()=>{class Wt{constructor(cn,En,kn){this._sanityChecks=En,this._document=kn,this._hasDoneGlobalChecks=!1,cn._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(cn){return!(0,M.v8)()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[cn])}static{this.\u0275fac=function(En){return new(En||Wt)(i.KVO(n.Q_),i.KVO(ae,8),i.KVO(S.qQ))}}static{this.\u0275mod=i.$C({type:Wt})}static{this.\u0275inj=i.G2t({imports:[h.jI,h.jI]})}}return Wt})();function Q(Wt){return class extends Wt{get disabled(){return this._disabled}set disabled(Kt){this._disabled=(0,P.he)(Kt)}constructor(...Kt){super(...Kt),this._disabled=!1}}}function ce(Wt,Kt){return class extends Wt{get color(){return this._color}set color(cn){const En=cn||this.defaultColor;En!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),En&&this._elementRef.nativeElement.classList.add(`mat-${En}`),this._color=En)}constructor(...cn){super(...cn),this.defaultColor=Kt,this.color=Kt}}}function te(Wt){return class extends Wt{get disableRipple(){return this._disableRipple}set disableRipple(Kt){this._disableRipple=(0,P.he)(Kt)}constructor(...Kt){super(...Kt),this._disableRipple=!1}}}function Ee(Wt,Kt=0){return class extends Wt{get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(cn){this._tabIndex=null!=cn?(0,P.OE)(cn):this.defaultTabIndex}constructor(...cn){super(...cn),this._tabIndex=Kt,this.defaultTabIndex=Kt}}}function it(Wt){return class extends Wt{updateErrorState(){const Kt=this.errorState,Ai=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);Ai!==Kt&&(this.errorState=Ai,this.stateChanges.next())}constructor(...Kt){super(...Kt),this.errorState=!1}}}let J=(()=>{class Wt{isErrorState(cn,En){return!!(cn&&cn.invalid&&(cn.touched||En&&En.submitted))}static{this.\u0275fac=function(En){return new(En||Wt)}}static{this.\u0275prov=i.jDH({token:Wt,factory:Wt.\u0275fac,providedIn:"root"})}}return Wt})();class se{constructor(Kt,cn,En,kn=!1){this._renderer=Kt,this.element=cn,this.config=En,this._animationForciblyDisabledThroughCss=kn,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const Ce=(0,M.BQ)({passive:!0,capture:!0});class be{constructor(){this._events=new Map,this._delegateEventHandler=Kt=>{const cn=(0,M.Fb)(Kt);cn&&this._events.get(Kt.type)?.forEach((En,kn)=>{(kn===cn||kn.contains(cn))&&En.forEach(Ai=>Ai.handleEvent(Kt))})}}addHandler(Kt,cn,En,kn){const Ai=this._events.get(cn);if(Ai){const Gi=Ai.get(En);Gi?Gi.add(kn):Ai.set(En,new Set([kn]))}else this._events.set(cn,new Map([[En,new Set([kn])]])),Kt.runOutsideAngular(()=>{document.addEventListener(cn,this._delegateEventHandler,Ce)})}removeHandler(Kt,cn,En){const kn=this._events.get(Kt);if(!kn)return;const Ai=kn.get(cn);Ai&&(Ai.delete(En),0===Ai.size&&kn.delete(cn),0===kn.size&&(this._events.delete(Kt),document.removeEventListener(Kt,this._delegateEventHandler,Ce)))}}const rt={enterDuration:225,exitDuration:150},le=(0,M.BQ)({passive:!0,capture:!0}),Xe=["mousedown","touchstart"],Se=["mouseup","mouseleave","touchend","touchcancel"];class fe{static{this._eventManager=new be}constructor(Kt,cn,En,kn){this._target=Kt,this._ngZone=cn,this._platform=kn,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,kn.isBrowser&&(this._containerElement=(0,P.i8)(En))}fadeInRipple(Kt,cn,En={}){const kn=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),Ai={...rt,...En.animation};En.centered&&(Kt=kn.left+kn.width/2,cn=kn.top+kn.height/2);const Gi=En.radius||function Ne(Wt,Kt,cn){const En=Math.max(Math.abs(Wt-cn.left),Math.abs(Wt-cn.right)),kn=Math.max(Math.abs(Kt-cn.top),Math.abs(Kt-cn.bottom));return Math.sqrt(En*En+kn*kn)}(Kt,cn,kn),bt=Kt-kn.left,Zi=cn-kn.top,Rn=Ai.enterDuration,Gn=document.createElement("div");Gn.classList.add("mat-ripple-element"),Gn.style.left=bt-Gi+"px",Gn.style.top=Zi-Gi+"px",Gn.style.height=2*Gi+"px",Gn.style.width=2*Gi+"px",null!=En.color&&(Gn.style.backgroundColor=En.color),Gn.style.transitionDuration=`${Rn}ms`,this._containerElement.appendChild(Gn);const Kn=window.getComputedStyle(Gn),ir=Kn.transitionDuration,Ir="none"===Kn.transitionProperty||"0s"===ir||"0s, 0s"===ir||0===kn.width&&0===kn.height,hr=new se(this,Gn,En,Ir);Gn.style.transform="scale3d(1, 1, 1)",hr.state=0,En.persistent||(this._mostRecentTransientRipple=hr);let Ms=null;return!Ir&&(Rn||Ai.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const Pr=()=>this._finishRippleTransition(hr),lo=()=>this._destroyRipple(hr);Gn.addEventListener("transitionend",Pr),Gn.addEventListener("transitioncancel",lo),Ms={onTransitionEnd:Pr,onTransitionCancel:lo}}),this._activeRipples.set(hr,Ms),(Ir||!Rn)&&this._finishRippleTransition(hr),hr}fadeOutRipple(Kt){if(2===Kt.state||3===Kt.state)return;const cn=Kt.element,En={...rt,...Kt.config.animation};cn.style.transitionDuration=`${En.exitDuration}ms`,cn.style.opacity="0",Kt.state=2,(Kt._animationForciblyDisabledThroughCss||!En.exitDuration)&&this._finishRippleTransition(Kt)}fadeOutAll(){this._getActiveRipples().forEach(Kt=>Kt.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(Kt=>{Kt.config.persistent||Kt.fadeOut()})}setupTriggerEvents(Kt){const cn=(0,P.i8)(Kt);!this._platform.isBrowser||!cn||cn===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=cn,Xe.forEach(En=>{fe._eventManager.addHandler(this._ngZone,En,cn,this)}))}handleEvent(Kt){"mousedown"===Kt.type?this._onMousedown(Kt):"touchstart"===Kt.type?this._onTouchStart(Kt):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{Se.forEach(cn=>{this._triggerElement.addEventListener(cn,this,le)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(Kt){0===Kt.state?this._startFadeOutTransition(Kt):2===Kt.state&&this._destroyRipple(Kt)}_startFadeOutTransition(Kt){const cn=Kt===this._mostRecentTransientRipple,{persistent:En}=Kt.config;Kt.state=1,!En&&(!cn||!this._isPointerDown)&&Kt.fadeOut()}_destroyRipple(Kt){const cn=this._activeRipples.get(Kt)??null;this._activeRipples.delete(Kt),this._activeRipples.size||(this._containerRect=null),Kt===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),Kt.state=3,null!==cn&&(Kt.element.removeEventListener("transitionend",cn.onTransitionEnd),Kt.element.removeEventListener("transitioncancel",cn.onTransitionCancel)),Kt.element.remove()}_onMousedown(Kt){const cn=(0,n._G)(Kt),En=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;!this._target.rippleDisabled&&!cn&&!En&&(this._isPointerDown=!0,this.fadeInRipple(Kt.clientX,Kt.clientY,this._target.rippleConfig))}_onTouchStart(Kt){if(!this._target.rippleDisabled&&!(0,n.w6)(Kt)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const cn=Kt.changedTouches;if(cn)for(let En=0;En<cn.length;En++)this.fadeInRipple(cn[En].clientX,cn[En].clientY,this._target.rippleConfig)}}_onPointerUp(){this._isPointerDown&&(this._isPointerDown=!1,this._getActiveRipples().forEach(Kt=>{!Kt.config.persistent&&(1===Kt.state||Kt.config.terminateOnPointerUp&&0===Kt.state)&&Kt.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){const Kt=this._triggerElement;Kt&&(Xe.forEach(cn=>fe._eventManager.removeHandler(cn,Kt,this)),this._pointerUpEventsRegistered&&Se.forEach(cn=>Kt.removeEventListener(cn,this,le)))}}const ye=new i.nKC("mat-ripple-global-options");let Ot=(()=>{class Wt{get disabled(){return this._disabled}set disabled(cn){cn&&this.fadeOutAllNonPersistent(),this._disabled=cn,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(cn){this._trigger=cn,this._setupTriggerEventsIfEnabled()}constructor(cn,En,kn,Ai,Gi){this._elementRef=cn,this._animationMode=Gi,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=Ai||{},this._rippleRenderer=new fe(this,En,cn,kn)}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:{...this._globalOptions.animation,..."NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{},...this.animation},terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(cn,En=0,kn){return"number"==typeof cn?this._rippleRenderer.fadeInRipple(cn,En,{...this.rippleConfig,...kn}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...cn})}static{this.\u0275fac=function(En){return new(En||Wt)(i.rXU(i.aKT),i.rXU(i.SKi),i.rXU(M.OD),i.rXU(ye,8),i.rXU(i.bc$,8))}}static{this.\u0275dir=i.FsC({type:Wt,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(En,kn){2&En&&i.AVh("mat-ripple-unbounded",kn.unbounded)},inputs:{color:[i.Mj6.None,"matRippleColor","color"],unbounded:[i.Mj6.None,"matRippleUnbounded","unbounded"],centered:[i.Mj6.None,"matRippleCentered","centered"],radius:[i.Mj6.None,"matRippleRadius","radius"],animation:[i.Mj6.None,"matRippleAnimation","animation"],disabled:[i.Mj6.None,"matRippleDisabled","disabled"],trigger:[i.Mj6.None,"matRippleTrigger","trigger"]},exportAs:["matRipple"]})}}return Wt})(),sn=(()=>{class Wt{static{this.\u0275fac=function(En){return new(En||Wt)}}static{this.\u0275mod=i.$C({type:Wt})}static{this.\u0275inj=i.G2t({imports:[G,G]})}}return Wt})(),dn=(()=>{class Wt{constructor(cn){this._animationMode=cn,this.state="unchecked",this.disabled=!1,this.appearance="full"}static{this.\u0275fac=function(En){return new(En||Wt)(i.rXU(i.bc$,8))}}static{this.\u0275cmp=i.VBU({type:Wt,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(En,kn){2&En&&i.AVh("mat-pseudo-checkbox-indeterminate","indeterminate"===kn.state)("mat-pseudo-checkbox-checked","checked"===kn.state)("mat-pseudo-checkbox-disabled",kn.disabled)("mat-pseudo-checkbox-minimal","minimal"===kn.appearance)("mat-pseudo-checkbox-full","full"===kn.appearance)("_mat-animation-noopable","NoopAnimations"===kn._animationMode)},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},decls:0,vars:0,template:function(En,kn){},styles:['.mat-pseudo-checkbox{border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{left:1px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{left:1px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}.mat-pseudo-checkbox-full{border:2px solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox{width:18px;height:18px}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after{width:14px;height:6px;transform-origin:center;top:-4.2426406871px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{top:8px;width:16px}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after{width:10px;height:4px;transform-origin:center;top:-2.8284271247px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{top:6px;width:12px}'],encapsulation:2,changeDetection:0})}}return Wt})(),yn=(()=>{class Wt{static{this.\u0275fac=function(En){return new(En||Wt)}}static{this.\u0275mod=i.$C({type:Wt})}static{this.\u0275inj=i.G2t({imports:[G]})}}return Wt})();const At=new i.nKC("MAT_OPTION_PARENT_COMPONENT"),Vt=Q(class{});let Qt=0,Jt=(()=>{class Wt extends Vt{constructor(cn){super(),this._labelId="mat-optgroup-label-"+Qt++,this._inert=cn?.inertGroups??!1}static{this.\u0275fac=function(En){return new(En||Wt)(i.rXU(At,8))}}static{this.\u0275dir=i.FsC({type:Wt,inputs:{label:"label"},features:[i.Vt3]})}}return Wt})();const Zt=new i.nKC("MatOptgroup");let nn=(()=>{class Wt extends Jt{static{this.\u0275fac=(()=>{let cn;return function(kn){return(cn||(cn=i.xGo(Wt)))(kn||Wt)}})()}static{this.\u0275cmp=i.VBU({type:Wt,selectors:[["mat-optgroup"]],hostAttrs:[1,"mat-mdc-optgroup"],hostVars:3,hostBindings:function(En,kn){2&En&&i.BMQ("role",kn._inert?null:"group")("aria-disabled",kn._inert?null:kn.disabled.toString())("aria-labelledby",kn._inert?null:kn._labelId)},inputs:{disabled:"disabled"},exportAs:["matOptgroup"],features:[i.Jv_([{provide:Zt,useExisting:Wt}]),i.Vt3],ngContentSelectors:m,decls:5,vars:4,consts:[["role","presentation",1,"mat-mdc-optgroup-label",3,"id"],[1,"mdc-list-item__primary-text"]],template:function(En,kn){1&En&&(i.NAR(g),i.j41(0,"span",0)(1,"span",1),i.EFF(2),i.SdG(3),i.k0s()(),i.SdG(4,1)),2&En&&(i.AVh("mdc-list-item--disabled",kn.disabled),i.Y8G("id",kn._labelId),i.R7$(2),i.SpI("",kn.label," "))},styles:[".mat-mdc-optgroup{color:var(--mat-optgroup-label-text-color);font-family:var(--mat-optgroup-label-text-font);line-height:var(--mat-optgroup-label-text-line-height);font-size:var(--mat-optgroup-label-text-size);letter-spacing:var(--mat-optgroup-label-text-tracking);font-weight:var(--mat-optgroup-label-text-weight)}.mat-mdc-optgroup-label{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:16px;padding-right:16px;min-height:48px}.mat-mdc-optgroup-label:focus{outline:none}[dir=rtl] .mat-mdc-optgroup-label,.mat-mdc-optgroup-label[dir=rtl]{padding-left:16px;padding-right:16px}.mat-mdc-optgroup-label.mdc-list-item--disabled{opacity:.38}.mat-mdc-optgroup-label .mdc-list-item__primary-text{font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;white-space:normal}"],encapsulation:2,changeDetection:0})}}return Wt})(),Xt=0;class lt{constructor(Kt,cn=!1){this.source=Kt,this.isUserInput=cn}}let Ue=(()=>{class Wt{get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(cn){this._disabled=(0,P.he)(cn)}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}get hideSingleSelectionIndicator(){return!(!this._parent||!this._parent.hideSingleSelectionIndicator)}constructor(cn,En,kn,Ai){this._element=cn,this._changeDetectorRef=En,this._parent=kn,this.group=Ai,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+Xt++,this.onSelectionChange=new i.bkB,this._stateChanges=new x.B7}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(cn=!0){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),cn&&this._emitSelectionChangeEvent())}deselect(cn=!0){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),cn&&this._emitSelectionChangeEvent())}focus(cn,En){const kn=this._getHostElement();"function"==typeof kn.focus&&kn.focus(En)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(cn){(cn.keyCode===A.Fm||cn.keyCode===A.t6)&&!(0,A.rp)(cn)&&(this._selectViaInteraction(),cn.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const cn=this.viewValue;cn!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=cn)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(cn=!1){this.onSelectionChange.emit(new lt(this,cn))}static{this.\u0275fac=function(En){i.QTQ()}}static{this.\u0275dir=i.FsC({type:Wt,viewQuery:function(En,kn){if(1&En&&i.GBs(l,7),2&En){let Ai;i.mGM(Ai=i.lsd())&&(kn._text=Ai.first)}},inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}})}}return Wt})(),wt=(()=>{class Wt extends Ue{constructor(cn,En,kn,Ai){super(cn,En,kn,Ai)}static{this.\u0275fac=function(En){return new(En||Wt)(i.rXU(i.aKT),i.rXU(i.gRc),i.rXU(At,8),i.rXU(Zt,8))}}static{this.\u0275cmp=i.VBU({type:Wt,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(En,kn){1&En&&i.bIt("click",function(){return kn._selectViaInteraction()})("keydown",function(Gi){return kn._handleKeydown(Gi)}),2&En&&(i.Mr5("id",kn.id),i.BMQ("aria-selected",kn.selected)("aria-disabled",kn.disabled.toString()),i.AVh("mdc-list-item--selected",kn.selected)("mat-mdc-option-multiple",kn.multiple)("mat-mdc-option-active",kn.active)("mdc-list-item--disabled",kn.disabled))},exportAs:["matOption"],features:[i.Vt3],ngContentSelectors:u,decls:8,vars:5,consts:[["text",""],["class","mat-mdc-option-pseudo-checkbox","aria-hidden","true",3,"disabled","state",4,"ngIf"],[1,"mdc-list-item__primary-text"],["class","mat-mdc-option-pseudo-checkbox","state","checked","aria-hidden","true","appearance","minimal",3,"disabled",4,"ngIf"],["class","cdk-visually-hidden",4,"ngIf"],["aria-hidden","true","mat-ripple","",1,"mat-mdc-option-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled"],["aria-hidden","true",1,"mat-mdc-option-pseudo-checkbox",3,"disabled","state"],["state","checked","aria-hidden","true","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"cdk-visually-hidden"]],template:function(En,kn){1&En&&(i.NAR(r),i.DNE(0,v,1,2,"mat-pseudo-checkbox",1),i.SdG(1),i.j41(2,"span",2,0),i.SdG(4,1),i.k0s(),i.DNE(5,E,1,1,"mat-pseudo-checkbox",3)(6,T,2,1,"span",4),i.nrm(7,"div",5)),2&En&&(i.Y8G("ngIf",kn.multiple),i.R7$(5),i.Y8G("ngIf",!kn.multiple&&kn.selected&&!kn.hideSingleSelectionIndicator),i.R7$(),i.Y8G("ngIf",kn.group&&kn.group._inert),i.R7$(),i.Y8G("matRippleTrigger",kn._getHostElement())("matRippleDisabled",kn.disabled||kn.disableRipple))},dependencies:[Ot,S.bT,dn],styles:['.mat-mdc-option{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:16px;padding-right:16px;-webkit-user-select:none;user-select:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);color:var(--mat-option-label-text-color);font-family:var(--mat-option-label-text-font);line-height:var(--mat-option-label-text-line-height);font-size:var(--mat-option-label-text-size);letter-spacing:var(--mat-option-label-text-tracking);font-weight:var(--mat-option-label-text-weight);min-height:48px}.mat-mdc-option:focus{outline:none}[dir=rtl] .mat-mdc-option,.mat-mdc-option[dir=rtl]{padding-left:16px;padding-right:16px}.mat-mdc-option:hover:not(.mdc-list-item--disabled){background-color:var(--mat-option-hover-state-layer-color)}.mat-mdc-option:focus.mdc-list-item,.mat-mdc-option.mat-mdc-option-active.mdc-list-item{background-color:var(--mat-option-focus-state-layer-color)}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled) .mdc-list-item__primary-text{color:var(--mat-option-selected-state-label-text-color)}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple){background-color:var(--mat-option-selected-state-layer-color)}.mat-mdc-option.mdc-list-item{align-items:center}.mat-mdc-option.mdc-list-item--disabled{cursor:default;pointer-events:none}.mat-mdc-option.mdc-list-item--disabled .mat-mdc-option-pseudo-checkbox,.mat-mdc-option.mdc-list-item--disabled .mdc-list-item__primary-text,.mat-mdc-option.mdc-list-item--disabled>mat-icon{opacity:.38}.mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:32px}[dir=rtl] .mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:16px;padding-right:32px}.mat-mdc-option .mat-icon,.mat-mdc-option .mat-pseudo-checkbox-full{margin-right:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-icon,[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-full{margin-right:0;margin-left:16px}.mat-mdc-option .mat-pseudo-checkbox-minimal{margin-left:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-minimal{margin-right:16px;margin-left:0}.mat-mdc-option .mat-mdc-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-option .mdc-list-item__primary-text{white-space:normal;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;margin-right:auto}[dir=rtl] .mat-mdc-option .mdc-list-item__primary-text{margin-right:0;margin-left:auto}.cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{right:auto;left:16px}.mat-mdc-option-active .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0})}}return Wt})();function gt(Wt,Kt,cn){if(cn.length){let En=Kt.toArray(),kn=cn.toArray(),Ai=0;for(let Gi=0;Gi<Wt+1;Gi++)En[Gi].group&&En[Gi].group===kn[Ai]&&Ai++;return Ai}return 0}function Ht(Wt,Kt,cn,En){return Wt<cn?Wt:Wt+Kt>cn+En?Math.max(0,Wt-En+Kt):cn}let bn=(()=>{class Wt{static{this.\u0275fac=function(En){return new(En||Wt)}}static{this.\u0275mod=i.$C({type:Wt})}static{this.\u0275inj=i.G2t({imports:[sn,S.MD,G,yn]})}}return Wt})();const Ut={capture:!0},Bt=["focus","click","mouseenter","touchstart"],Le="mat-ripple-loader-uninitialized",V="mat-ripple-loader-class-name",de="mat-ripple-loader-centered",ge="mat-ripple-loader-disabled";let Ft=(()=>{class Wt{constructor(){this._document=(0,i.WQX)(S.qQ,{optional:!0}),this._animationMode=(0,i.WQX)(i.bc$,{optional:!0}),this._globalRippleOptions=(0,i.WQX)(ye,{optional:!0}),this._platform=(0,i.WQX)(M.OD),this._ngZone=(0,i.WQX)(i.SKi),this._onInteraction=cn=>{if(!(cn.target instanceof HTMLElement))return;const kn=cn.target.closest(`[${Le}]`);kn&&this.createRipple(kn)},this._ngZone.runOutsideAngular(()=>{for(const cn of Bt)this._document?.addEventListener(cn,this._onInteraction,Ut)})}ngOnDestroy(){for(const cn of Bt)this._document?.removeEventListener(cn,this._onInteraction,Ut)}configureRipple(cn,En){cn.setAttribute(Le,""),(En.className||!cn.hasAttribute(V))&&cn.setAttribute(V,En.className||""),En.centered&&cn.setAttribute(de,""),En.disabled&&cn.setAttribute(ge,"")}getRipple(cn){return cn.matRipple?cn.matRipple:this.createRipple(cn)}setDisabled(cn,En){const kn=cn.matRipple;kn?kn.disabled=En:En?cn.setAttribute(ge,""):cn.removeAttribute(ge)}createRipple(cn){if(!this._document)return;cn.querySelector(".mat-ripple")?.remove();const En=this._document.createElement("span");En.classList.add("mat-ripple",cn.getAttribute(V)),cn.append(En);const kn=new Ot(new i.aKT(En),this._ngZone,this._platform,this._globalRippleOptions?this._globalRippleOptions:void 0,this._animationMode?this._animationMode:void 0);return kn._isInitialized=!0,kn.trigger=cn,kn.centered=cn.hasAttribute(de),kn.disabled=cn.hasAttribute(ge),this.attachRipple(cn,kn),kn}attachRipple(cn,En){cn.removeAttribute(Le),cn.matRipple=En}static{this.\u0275fac=function(En){return new(En||Wt)}}static{this.\u0275prov=i.jDH({token:Wt,factory:Wt.\u0275fac,providedIn:"root"})}}return Wt})()},26537:(St,z,s)=>{"use strict";s.d(z,{BI:()=>$e,CP:()=>ce,E7:()=>Pe,Vh:()=>Ee,Yi:()=>dt,bZ:()=>ze,di:()=>it,hM:()=>vt,ru:()=>R,tx:()=>Ve});var i=s(61904),n=s(61142),h=s(58527),C=s(31308),S=s(78064),M=s(6364),P=s(76614),x=s(80583),A=s(16229),g=s(63997),m=s(8619),l=s(65706),r=s(34593),u=s(25373),v=s(51635);function T(et,se){}s(40262);class R{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0}}const B="mdc-dialog--open",U="mdc-dialog--opening",Y="mdc-dialog--closing";let k=(()=>{class et extends S.sU{constructor(Ce,be,rt,me,le,Xe,Se,fe){super(Ce,be,rt,me,le,Xe,Se,fe),this._animationStateChanged=new h.bkB}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(Ce){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:Ce})}static{this.\u0275fac=function(be){return new(be||et)(h.rXU(h.aKT),h.rXU(C.GX),h.rXU(n.qQ,8),h.rXU(R),h.rXU(C.Z7),h.rXU(h.SKi),h.rXU(i.yY),h.rXU(C.FN))}}static{this.\u0275cmp=h.VBU({type:et,selectors:[["ng-component"]],features:[h.Vt3],decls:0,vars:0,template:function(be,rt){},encapsulation:2})}}return et})();const X="--mat-dialog-transition-duration";function q(et){return null==et?null:"number"==typeof et?et:et.endsWith("ms")?(0,M.OE)(et.substring(0,et.length-2)):et.endsWith("s")?1e3*(0,M.OE)(et.substring(0,et.length-1)):"0"===et?0:null}let Q=(()=>{class et extends k{constructor(Ce,be,rt,me,le,Xe,Se,fe,Ne){super(Ce,be,rt,me,le,Xe,Se,Ne),this._animationMode=fe,this._animationsEnabled="NoopAnimations"!==this._animationMode,this._hostElement=this._elementRef.nativeElement,this._enterAnimationDuration=this._animationsEnabled?q(this._config.enterAnimationDuration)??150:0,this._exitAnimationDuration=this._animationsEnabled?q(this._config.exitAnimationDuration)??75:0,this._animationTimer=null,this._finishDialogOpen=()=>{this._clearAnimationClasses(),this._openAnimationDone(this._enterAnimationDuration)},this._finishDialogClose=()=>{this._clearAnimationClasses(),this._animationStateChanged.emit({state:"closed",totalTime:this._exitAnimationDuration})}}_contentAttached(){super._contentAttached(),this._startOpenAnimation()}ngOnDestroy(){super.ngOnDestroy(),null!==this._animationTimer&&clearTimeout(this._animationTimer)}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._enterAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(X,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(U,B)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(B),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(B),this._animationsEnabled?(this._hostElement.style.setProperty(X,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(Y)),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_clearAnimationClasses(){this._hostElement.classList.remove(U,Y)}_waitForAnimationToComplete(Ce,be){null!==this._animationTimer&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(be,Ce)}_requestAnimationFrame(Ce){this._ngZone.runOutsideAngular(()=>{"function"==typeof requestAnimationFrame?requestAnimationFrame(Ce):Ce()})}static{this.\u0275fac=function(be){return new(be||et)(h.rXU(h.aKT),h.rXU(C.GX),h.rXU(n.qQ,8),h.rXU(R),h.rXU(C.Z7),h.rXU(h.SKi),h.rXU(i.yY),h.rXU(h.bc$,8),h.rXU(C.FN))}}static{this.\u0275cmp=h.VBU({type:et,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:8,hostBindings:function(be,rt){2&be&&(h.Mr5("id",rt._config.id),h.BMQ("aria-modal",rt._config.ariaModal)("role",rt._config.role)("aria-labelledby",rt._config.ariaLabel?null:rt._ariaLabelledByQueue[0])("aria-label",rt._config.ariaLabel)("aria-describedby",rt._config.ariaDescribedBy||null),h.AVh("_mat-animation-noopable",!rt._animationsEnabled))},features:[h.Vt3],decls:3,vars:0,consts:[[1,"mdc-dialog__container"],[1,"mat-mdc-dialog-surface","mdc-dialog__surface"],["cdkPortalOutlet",""]],template:function(be,rt){1&be&&(h.j41(0,"div",0)(1,"div",1),h.DNE(2,T,0,0,"ng-template",2),h.k0s()())},dependencies:[P.I3],styles:['.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-dialog,.mdc-dialog__scrim{position:fixed;top:0;left:0;align-items:center;justify-content:center;box-sizing:border-box;width:100%;height:100%}.mdc-dialog{display:none;z-index:var(--mdc-dialog-z-index, 7)}.mdc-dialog .mdc-dialog__content{padding:20px 24px 20px 24px}.mdc-dialog .mdc-dialog__surface{min-width:280px}@media(max-width: 592px){.mdc-dialog .mdc-dialog__surface{max-width:calc(100vw - 32px)}}@media(min-width: 592px){.mdc-dialog .mdc-dialog__surface{max-width:560px}}.mdc-dialog .mdc-dialog__surface{max-height:calc(100% - 32px)}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-width:none}@media(max-width: 960px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:560px;width:560px}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}@media(max-width: 720px)and (max-width: 672px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:calc(100vw - 112px)}}@media(max-width: 720px)and (min-width: 672px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:560px}}@media(max-width: 720px)and (max-height: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:calc(100vh - 160px)}}@media(max-width: 720px)and (min-height: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:560px}}@media(max-width: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}@media(max-width: 720px)and (max-height: 400px),(max-width: 600px),(min-width: 720px)and (max-height: 400px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{height:100%;max-height:100vh;max-width:100vw;width:100vw;border-radius:0}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{order:-1;left:-12px}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__header{padding:0 16px 9px;justify-content:flex-start}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__title{margin-left:calc(16px - 2 * 12px)}}@media(min-width: 960px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:calc(100vw - 400px)}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}.mdc-dialog.mdc-dialog__scrim--hidden .mdc-dialog__scrim{opacity:0}.mdc-dialog__scrim{opacity:0;z-index:-1}.mdc-dialog__container{display:flex;flex-direction:row;align-items:center;justify-content:space-around;box-sizing:border-box;height:100%;transform:scale(0.8);opacity:0;pointer-events:none}.mdc-dialog__surface{position:relative;display:flex;flex-direction:column;flex-grow:0;flex-shrink:0;box-sizing:border-box;max-width:100%;max-height:100%;pointer-events:auto;overflow-y:auto;outline:0}.mdc-dialog__surface .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}[dir=rtl] .mdc-dialog__surface,.mdc-dialog__surface[dir=rtl]{text-align:right}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-dialog__surface{outline:2px solid windowText}}.mdc-dialog__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:2px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-dialog__surface::before{border-color:CanvasText}}@media screen and (-ms-high-contrast: active),screen and (-ms-high-contrast: none){.mdc-dialog__surface::before{content:none}}.mdc-dialog__title{display:block;margin-top:0;position:relative;flex-shrink:0;box-sizing:border-box;margin:0 0 1px;padding:0 24px 9px}.mdc-dialog__title::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}[dir=rtl] .mdc-dialog__title,.mdc-dialog__title[dir=rtl]{text-align:right}.mdc-dialog--scrollable .mdc-dialog__title{margin-bottom:1px;padding-bottom:15px}.mdc-dialog--fullscreen .mdc-dialog__header{align-items:baseline;border-bottom:1px solid rgba(0,0,0,0);display:inline-flex;justify-content:space-between;padding:0 24px 9px;z-index:1}@media screen and (forced-colors: active){.mdc-dialog--fullscreen .mdc-dialog__header{border-bottom-color:CanvasText}}.mdc-dialog--fullscreen .mdc-dialog__header .mdc-dialog__close{right:-12px}.mdc-dialog--fullscreen .mdc-dialog__title{margin-bottom:0;padding:0;border-bottom:0}.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__title{border-bottom:0;margin-bottom:0}.mdc-dialog--fullscreen .mdc-dialog__close{top:5px}.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__actions{border-top:1px solid rgba(0,0,0,0)}@media screen and (forced-colors: active){.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__actions{border-top-color:CanvasText}}.mdc-dialog--fullscreen--titleless .mdc-dialog__close{margin-top:4px}.mdc-dialog--fullscreen--titleless.mdc-dialog--scrollable .mdc-dialog__close{margin-top:0}.mdc-dialog__content{flex-grow:1;box-sizing:border-box;margin:0;overflow:auto}.mdc-dialog__content>:first-child{margin-top:0}.mdc-dialog__content>:last-child{margin-bottom:0}.mdc-dialog__title+.mdc-dialog__content,.mdc-dialog__header+.mdc-dialog__content{padding-top:0}.mdc-dialog--scrollable .mdc-dialog__title+.mdc-dialog__content{padding-top:8px;padding-bottom:8px}.mdc-dialog__content .mdc-deprecated-list:first-child:last-child{padding:6px 0 0}.mdc-dialog--scrollable .mdc-dialog__content .mdc-deprecated-list:first-child:last-child{padding:0}.mdc-dialog__actions{display:flex;position:relative;flex-shrink:0;flex-wrap:wrap;align-items:center;justify-content:flex-end;box-sizing:border-box;min-height:52px;margin:0;padding:8px;border-top:1px solid rgba(0,0,0,0)}@media screen and (forced-colors: active){.mdc-dialog__actions{border-top-color:CanvasText}}.mdc-dialog--stacked .mdc-dialog__actions{flex-direction:column;align-items:flex-end}.mdc-dialog__button{margin-left:8px;margin-right:0;max-width:100%;text-align:right}[dir=rtl] .mdc-dialog__button,.mdc-dialog__button[dir=rtl]{margin-left:0;margin-right:8px}.mdc-dialog__button:first-child{margin-left:0;margin-right:0}[dir=rtl] .mdc-dialog__button:first-child,.mdc-dialog__button:first-child[dir=rtl]{margin-left:0;margin-right:0}[dir=rtl] .mdc-dialog__button,.mdc-dialog__button[dir=rtl]{text-align:left}.mdc-dialog--stacked .mdc-dialog__button:not(:first-child){margin-top:12px}.mdc-dialog--open,.mdc-dialog--opening,.mdc-dialog--closing{display:flex}.mdc-dialog--opening .mdc-dialog__scrim{transition:opacity 150ms linear}.mdc-dialog--opening .mdc-dialog__container{transition:opacity 75ms linear,transform 150ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-dialog--closing .mdc-dialog__scrim,.mdc-dialog--closing .mdc-dialog__container{transition:opacity 75ms linear}.mdc-dialog--closing .mdc-dialog__container{transform:none}.mdc-dialog--open .mdc-dialog__scrim{opacity:1}.mdc-dialog--open .mdc-dialog__container{transform:none;opacity:1}.mdc-dialog--open.mdc-dialog__surface-scrim--shown .mdc-dialog__surface-scrim{opacity:1}.mdc-dialog--open.mdc-dialog__surface-scrim--hiding .mdc-dialog__surface-scrim{transition:opacity 75ms linear}.mdc-dialog--open.mdc-dialog__surface-scrim--showing .mdc-dialog__surface-scrim{transition:opacity 150ms linear}.mdc-dialog__surface-scrim{display:none;opacity:0;position:absolute;width:100%;height:100%;z-index:1}.mdc-dialog__surface-scrim--shown .mdc-dialog__surface-scrim,.mdc-dialog__surface-scrim--showing .mdc-dialog__surface-scrim,.mdc-dialog__surface-scrim--hiding .mdc-dialog__surface-scrim{display:block}.mdc-dialog-scroll-lock{overflow:hidden}.mdc-dialog--no-content-padding .mdc-dialog__content{padding:0}.mdc-dialog--sheet .mdc-dialog__container .mdc-dialog__close{right:12px;top:9px;position:absolute;z-index:1}.mdc-dialog__scrim--removed{pointer-events:none}.mdc-dialog__scrim--removed .mdc-dialog__scrim,.mdc-dialog__scrim--removed .mdc-dialog__surface-scrim{display:none}.mat-mdc-dialog-content{max-height:65vh}.mat-mdc-dialog-container{position:static;display:block}.mat-mdc-dialog-container,.mat-mdc-dialog-container .mdc-dialog__container,.mat-mdc-dialog-container .mdc-dialog__surface{max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit}.mat-mdc-dialog-container .mdc-dialog__surface{display:block;width:100%;height:100%}.mat-mdc-dialog-container{--mdc-dialog-container-elevation-shadow:0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12);--mdc-dialog-container-shadow-color:#000;--mdc-dialog-container-shape:4px;--mdc-dialog-container-elevation: var(--mdc-dialog-container-elevation-shadow);outline:0}.mat-mdc-dialog-container .mdc-dialog__surface{background-color:var(--mdc-dialog-container-color, white)}.mat-mdc-dialog-container .mdc-dialog__surface{box-shadow:var(--mdc-dialog-container-elevation, 0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12))}.mat-mdc-dialog-container .mdc-dialog__surface{border-radius:var(--mdc-dialog-container-shape, 4px)}.mat-mdc-dialog-container .mdc-dialog__title{font-family:var(--mdc-dialog-subhead-font, Roboto, sans-serif);line-height:var(--mdc-dialog-subhead-line-height, 1.5rem);font-size:var(--mdc-dialog-subhead-size, 1rem);font-weight:var(--mdc-dialog-subhead-weight, 400);letter-spacing:var(--mdc-dialog-subhead-tracking, 0.03125em)}.mat-mdc-dialog-container .mdc-dialog__title{color:var(--mdc-dialog-subhead-color, rgba(0, 0, 0, 0.87))}.mat-mdc-dialog-container .mdc-dialog__content{font-family:var(--mdc-dialog-supporting-text-font, Roboto, sans-serif);line-height:var(--mdc-dialog-supporting-text-line-height, 1.5rem);font-size:var(--mdc-dialog-supporting-text-size, 1rem);font-weight:var(--mdc-dialog-supporting-text-weight, 400);letter-spacing:var(--mdc-dialog-supporting-text-tracking, 0.03125em)}.mat-mdc-dialog-container .mdc-dialog__content{color:var(--mdc-dialog-supporting-text-color, rgba(0, 0, 0, 0.6))}.mat-mdc-dialog-container .mdc-dialog__container{transition-duration:var(--mat-dialog-transition-duration, 0ms)}.mat-mdc-dialog-container._mat-animation-noopable .mdc-dialog__container{transition:none}.mat-mdc-dialog-content{display:block}.mat-mdc-dialog-actions{justify-content:start}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-center,.mat-mdc-dialog-actions[align=center]{justify-content:center}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-end,.mat-mdc-dialog-actions[align=end]{justify-content:flex-end}.mat-mdc-dialog-actions .mat-button-base+.mat-button-base,.mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-mdc-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}'],encapsulation:2})}}return et})();class ce{constructor(se,Ce,be){this._ref=se,this._containerInstance=be,this._afterOpened=new x.B7,this._beforeClosed=new x.B7,this._state=0,this.disableClose=Ce.disableClose,this.id=se.id,be._animationStateChanged.pipe((0,m.p)(rt=>"opened"===rt.state),(0,l.s)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),be._animationStateChanged.pipe((0,m.p)(rt=>"closed"===rt.state),(0,l.s)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),se.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),(0,A.h)(this.backdropClick(),this.keydownEvents().pipe((0,m.p)(rt=>rt.keyCode===u._f&&!this.disableClose&&!(0,u.rp)(rt)))).subscribe(rt=>{this.disableClose||(rt.preventDefault(),te(this,"keydown"===rt.type?"keyboard":"mouse"))})}close(se){this._result=se,this._containerInstance._animationStateChanged.pipe((0,m.p)(Ce=>"closing"===Ce.state),(0,l.s)(1)).subscribe(Ce=>{this._beforeClosed.next(se),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),Ce.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(se){let Ce=this._ref.config.positionStrategy;return se&&(se.left||se.right)?se.left?Ce.left(se.left):Ce.right(se.right):Ce.centerHorizontally(),se&&(se.top||se.bottom)?se.top?Ce.top(se.top):Ce.bottom(se.bottom):Ce.centerVertically(),this._ref.updatePosition(),this}updateSize(se="",Ce=""){return this._ref.updateSize(se,Ce),this}addPanelClass(se){return this._ref.addPanelClass(se),this}removePanelClass(se){return this._ref.removePanelClass(se),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}function te(et,se,Ce){return et._closeInteractionType=se,et.close(Ce)}const Ee=new h.nKC("MatMdcDialogData"),it=new h.nKC("mat-mdc-dialog-default-options"),Fe=new h.nKC("mat-mdc-dialog-scroll-strategy"),ct={provide:Fe,deps:[i.hJ],useFactory:function Qe(et){return()=>et.scrollStrategies.block()}};let nt=0,Je=(()=>{class et{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const Ce=this._parentDialog;return Ce?Ce._getAfterAllClosed():this._afterAllClosedAtThisLevel}constructor(Ce,be,rt,me,le,Xe,Se,fe,Ne,ye){this._overlay=Ce,this._defaultOptions=rt,this._parentDialog=me,this._dialogRefConstructor=Se,this._dialogContainerType=fe,this._dialogDataToken=Ne,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new x.B7,this._afterOpenedAtThisLevel=new x.B7,this._idPrefix="mat-dialog-",this.dialogConfigClass=R,this.afterAllClosed=(0,g.v)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,r.Z)(void 0))),this._scrollStrategy=Xe,this._dialog=be.get(S.lG)}open(Ce,be){let rt;(be={...this._defaultOptions||new R,...be}).id=be.id||`${this._idPrefix}${nt++}`,be.scrollStrategy=be.scrollStrategy||this._scrollStrategy();const me=this._dialog.open(Ce,{...be,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:be},{provide:S.Pe,useValue:be}]},templateContext:()=>({dialogRef:rt}),providers:(le,Xe,Se)=>(rt=new this._dialogRefConstructor(le,be,Se),rt.updatePosition(be?.position),[{provide:this._dialogContainerType,useValue:Se},{provide:this._dialogDataToken,useValue:Xe.data},{provide:this._dialogRefConstructor,useValue:rt}])});return rt.componentRef=me.componentRef,rt.componentInstance=me.componentInstance,this.openDialogs.push(rt),this.afterOpened.next(rt),rt.afterClosed().subscribe(()=>{const le=this.openDialogs.indexOf(rt);le>-1&&(this.openDialogs.splice(le,1),this.openDialogs.length||this._getAfterAllClosed().next())}),rt}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(Ce){return this.openDialogs.find(be=>be.id===Ce)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(Ce){let be=Ce.length;for(;be--;)Ce[be].close()}static{this.\u0275fac=function(be){h.QTQ()}}static{this.\u0275prov=h.jDH({token:et,factory:et.\u0275fac})}}return et})(),ze=(()=>{class et extends Je{constructor(Ce,be,rt,me,le,Xe,Se,fe){super(Ce,be,me,Xe,Se,le,ce,Q,Ee,fe),this._idPrefix="mat-mdc-dialog-"}static{this.\u0275fac=function(be){return new(be||et)(h.KVO(i.hJ),h.KVO(h.zZn),h.KVO(n.aZ,8),h.KVO(it,8),h.KVO(Fe),h.KVO(et,12),h.KVO(i.Sf),h.KVO(h.bc$,8))}}static{this.\u0275prov=h.jDH({token:et,factory:et.\u0275fac})}}return et})(),Ke=0,Ve=(()=>{class et{constructor(Ce,be,rt){this.dialogRef=Ce,this._elementRef=be,this._dialog=rt,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=J(this._elementRef,this._dialog.openDialogs))}ngOnChanges(Ce){const be=Ce._matDialogClose||Ce._matDialogCloseResult;be&&(this.dialogResult=be.currentValue)}_onButtonClick(Ce){te(this.dialogRef,0===Ce.screenX&&0===Ce.screenY?"keyboard":"mouse",this.dialogResult)}static{this.\u0275fac=function(be){return new(be||et)(h.rXU(ce,8),h.rXU(h.aKT),h.rXU(ze))}}static{this.\u0275dir=h.FsC({type:et,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(be,rt){1&be&&h.bIt("click",function(le){return rt._onButtonClick(le)}),2&be&&h.BMQ("aria-label",rt.ariaLabel||null)("type",rt.type)},inputs:{ariaLabel:[h.Mj6.None,"aria-label","ariaLabel"],type:"type",dialogResult:[h.Mj6.None,"mat-dialog-close","dialogResult"],_matDialogClose:[h.Mj6.None,"matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[h.OA$]})}}return et})(),$e=(()=>{class et{constructor(Ce,be,rt){this._dialogRef=Ce,this._elementRef=be,this._dialog=rt,this.id="mat-mdc-dialog-title-"+Ke++}ngOnInit(){this._dialogRef||(this._dialogRef=J(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{this._dialogRef._containerInstance?._ariaLabelledByQueue?.push(this.id)})}ngOnDestroy(){const Ce=this._dialogRef?._containerInstance?._ariaLabelledByQueue;Ce&&Promise.resolve().then(()=>{const be=Ce.indexOf(this.id);be>-1&&Ce.splice(be,1)})}static{this.\u0275fac=function(be){return new(be||et)(h.rXU(ce,8),h.rXU(h.aKT),h.rXU(ze))}}static{this.\u0275dir=h.FsC({type:et,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-mdc-dialog-title","mdc-dialog__title"],hostVars:1,hostBindings:function(be,rt){2&be&&h.Mr5("id",rt.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]})}}return et})(),dt=(()=>{class et{static{this.\u0275fac=function(be){return new(be||et)}}static{this.\u0275dir=h.FsC({type:et,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-mdc-dialog-content","mdc-dialog__content"]})}}return et})(),Pe=(()=>{class et{constructor(){this.align="start"}static{this.\u0275fac=function(be){return new(be||et)}}static{this.\u0275dir=h.FsC({type:et,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-mdc-dialog-actions","mdc-dialog__actions"],hostVars:4,hostBindings:function(be,rt){2&be&&h.AVh("mat-mdc-dialog-actions-align-center","center"===rt.align)("mat-mdc-dialog-actions-align-end","end"===rt.align)},inputs:{align:"align"}})}}return et})();function J(et,se){let Ce=et.nativeElement.parentElement;for(;Ce&&!Ce.classList.contains("mat-mdc-dialog-container");)Ce=Ce.parentElement;return Ce?se.find(be=>be.id===Ce.id):null}let vt=(()=>{class et{static{this.\u0275fac=function(be){return new(be||et)}}static{this.\u0275mod=h.$C({type:et})}static{this.\u0275inj=h.G2t({providers:[ze,ct],imports:[S.Ph,i.z_,P.jc,v.yE,v.yE]})}}return et})()},44224:(St,z,s)=>{"use strict";s.d(z,{q:()=>C,w:()=>S});var i=s(58527),n=s(6364),h=s(51635);let C=(()=>{class M{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(x){this._vertical=(0,n.he)(x)}get inset(){return this._inset}set inset(x){this._inset=(0,n.he)(x)}static{this.\u0275fac=function(A){return new(A||M)}}static{this.\u0275cmp=i.VBU({type:M,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(A,g){2&A&&(i.BMQ("aria-orientation",g.vertical?"vertical":"horizontal"),i.AVh("mat-divider-vertical",g.vertical)("mat-divider-horizontal",!g.vertical)("mat-divider-inset",g.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(A,g){},styles:[".mat-divider{--mat-divider-width:1px;display:block;margin:0;border-top-style:solid;border-top-color:var(--mat-divider-color);border-top-width:var(--mat-divider-width)}.mat-divider.mat-divider-vertical{border-top:0;border-right-style:solid;border-right-color:var(--mat-divider-color);border-right-width:var(--mat-divider-width)}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}"],encapsulation:2,changeDetection:0})}}return M})(),S=(()=>{class M{static{this.\u0275fac=function(A){return new(A||M)}}static{this.\u0275mod=i.$C({type:M})}static{this.\u0275inj=i.G2t({imports:[h.yE,h.yE]})}}return M})()},26945:(St,z,s)=>{"use strict";s.d(z,{BS:()=>vt,MY:()=>ve,GK:()=>ze,Z2:()=>dt});var i=s(58527),n=s(40567),h=s(6364),C=s(80583),S=s(10399);let M=0;const P=new i.nKC("CdkAccordion");let x=(()=>{class ue{constructor(){this._stateChanges=new C.B7,this._openCloseAllActions=new C.B7,this.id="cdk-accordion-"+M++,this._multi=!1}get multi(){return this._multi}set multi(se){this._multi=(0,h.he)(se)}openAll(){this._multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges(se){this._stateChanges.next(se)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}static{this.\u0275fac=function(Ce){return new(Ce||ue)}}static{this.\u0275dir=i.FsC({type:ue,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[i.Jv_([{provide:P,useExisting:ue}]),i.OA$]})}}return ue})(),A=0,g=(()=>{class ue{get expanded(){return this._expanded}set expanded(se){se=(0,h.he)(se),this._expanded!==se&&(this._expanded=se,this.expandedChange.emit(se),se?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(se){this._disabled=(0,h.he)(se)}constructor(se,Ce,be){this.accordion=se,this._changeDetectorRef=Ce,this._expansionDispatcher=be,this._openCloseAllSubscription=S.y.EMPTY,this.closed=new i.bkB,this.opened=new i.bkB,this.destroyed=new i.bkB,this.expandedChange=new i.bkB,this.id="cdk-accordion-child-"+A++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=be.listen((rt,me)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===me&&this.id!==rt&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}ngOnDestroy(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}toggle(){this.disabled||(this.expanded=!this.expanded)}close(){this.disabled||(this.expanded=!1)}open(){this.disabled||(this.expanded=!0)}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe(se=>{this.disabled||(this.expanded=se)})}static{this.\u0275fac=function(Ce){return new(Ce||ue)(i.rXU(P,12),i.rXU(i.gRc),i.rXU(n.zP))}}static{this.\u0275dir=i.FsC({type:ue,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[i.Jv_([{provide:P,useValue:void 0}])]})}}return ue})(),m=(()=>{class ue{static{this.\u0275fac=function(Ce){return new(Ce||ue)}}static{this.\u0275mod=i.$C({type:ue})}static{this.\u0275inj=i.G2t({})}}return ue})();var l=s(76614),r=s(61142),u=s(51635),v=s(31308),E=s(53461),T=s(34593),R=s(8619),B=s(65706),U=s(25373),Y=s(12532),ae=s(16229),G=s(40262);const k=["body"],X=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],q=["mat-expansion-panel-header","*","mat-action-row"];function Q(ue,et){}const ce=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],te=["mat-panel-title","mat-panel-description","*"];function Ee(ue,et){if(1&ue&&i.nrm(0,"span",2),2&ue){const se=i.XpG();i.Y8G("@indicatorRotate",se._getExpandedState())}}const it=new i.nKC("MAT_ACCORDION"),Fe="225ms cubic-bezier(0.4,0.0,0.2,1)",Qe={indicatorRotate:(0,G.hZ)("indicatorRotate",[(0,G.wk)("collapsed, void",(0,G.iF)({transform:"rotate(0deg)"})),(0,G.wk)("expanded",(0,G.iF)({transform:"rotate(180deg)"})),(0,G.kY)("expanded <=> collapsed, void => collapsed",(0,G.i0)(Fe))]),bodyExpansion:(0,G.hZ)("bodyExpansion",[(0,G.wk)("collapsed, void",(0,G.iF)({height:"0px",visibility:"hidden"})),(0,G.wk)("expanded",(0,G.iF)({height:"*",visibility:""})),(0,G.kY)("expanded <=> collapsed, void => collapsed",(0,G.i0)(Fe))])},ct=new i.nKC("MAT_EXPANSION_PANEL");let Ge=(()=>{class ue{constructor(se,Ce){this._template=se,this._expansionPanel=Ce}static{this.\u0275fac=function(Ce){return new(Ce||ue)(i.rXU(i.C4Q),i.rXU(ct,8))}}static{this.\u0275dir=i.FsC({type:ue,selectors:[["ng-template","matExpansionPanelContent",""]]})}}return ue})(),nt=0;const Je=new i.nKC("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let ze=(()=>{class ue extends g{get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(se){this._hideToggle=(0,h.he)(se)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(se){this._togglePosition=se}constructor(se,Ce,be,rt,me,le,Xe){super(se,Ce,be),this._viewContainerRef=rt,this._animationMode=le,this._hideToggle=!1,this.afterExpand=new i.bkB,this.afterCollapse=new i.bkB,this._inputChanges=new C.B7,this._headerId="mat-expansion-panel-header-"+nt++,this._bodyAnimationDone=new C.B7,this.accordion=se,this._document=me,this._bodyAnimationDone.pipe((0,E.F)((Se,fe)=>Se.fromState===fe.fromState&&Se.toState===fe.toState)).subscribe(Se=>{"void"!==Se.fromState&&("expanded"===Se.toState?this.afterExpand.emit():"collapsed"===Se.toState&&this.afterCollapse.emit())}),Xe&&(this.hideToggle=Xe.hideToggle)}_hasSpacing(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this._lazyContent._expansionPanel===this&&this.opened.pipe((0,T.Z)(null),(0,R.p)(()=>this.expanded&&!this._portal),(0,B.s)(1)).subscribe(()=>{this._portal=new l.VA(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(se){this._inputChanges.next(se)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const se=this._document.activeElement,Ce=this._body.nativeElement;return se===Ce||Ce.contains(se)}return!1}static{this.\u0275fac=function(Ce){return new(Ce||ue)(i.rXU(it,12),i.rXU(i.gRc),i.rXU(n.zP),i.rXU(i.c1b),i.rXU(r.qQ),i.rXU(i.bc$,8),i.rXU(Je,8))}}static{this.\u0275cmp=i.VBU({type:ue,selectors:[["mat-expansion-panel"]],contentQueries:function(Ce,be,rt){if(1&Ce&&i.wni(rt,Ge,5),2&Ce){let me;i.mGM(me=i.lsd())&&(be._lazyContent=me.first)}},viewQuery:function(Ce,be){if(1&Ce&&i.GBs(k,5),2&Ce){let rt;i.mGM(rt=i.lsd())&&(be._body=rt.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(Ce,be){2&Ce&&i.AVh("mat-expanded",be.expanded)("_mat-animation-noopable","NoopAnimations"===be._animationMode)("mat-expansion-panel-spacing",be._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[i.Jv_([{provide:it,useValue:void 0},{provide:ct,useExisting:ue}]),i.Vt3,i.OA$],ngContentSelectors:q,decls:7,vars:4,consts:[["body",""],["role","region",1,"mat-expansion-panel-content",3,"id"],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(Ce,be){if(1&Ce){const rt=i.RV6();i.NAR(X),i.SdG(0),i.j41(1,"div",1,0),i.bIt("@bodyExpansion.done",function(le){return i.eBV(rt),i.Njj(be._bodyAnimationDone.next(le))}),i.j41(3,"div",2),i.SdG(4,1),i.DNE(5,Q,0,0,"ng-template",3),i.k0s(),i.SdG(6,2),i.k0s()}2&Ce&&(i.R7$(),i.Y8G("@bodyExpansion",be._getExpandedState())("id",be.id),i.BMQ("aria-labelledby",be._headerId),i.R7$(4),i.Y8G("cdkPortalOutlet",be._portal))},dependencies:[l.I3],styles:['.mat-expansion-panel{--mat-expansion-container-shape:4px;box-sizing:content-box;display:block;margin:0;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;background:var(--mat-expansion-container-background-color);color:var(--mat-expansion-container-text-color);border-radius:var(--mat-expansion-container-shape)}.mat-expansion-panel:not([class*=mat-elevation-z]){box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12)}.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:var(--mat-expansion-container-shape);border-top-left-radius:var(--mat-expansion-container-shape)}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:var(--mat-expansion-container-shape);border-bottom-left-radius:var(--mat-expansion-container-shape)}.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;font-family:var(--mat-expansion-container-text-font);font-size:var(--mat-expansion-container-text-size);font-weight:var(--mat-expansion-container-text-weight);line-height:var(--mat-expansion-container-text-line-height);letter-spacing:var(--mat-expansion-container-text-tracking)}.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;border-top-color:var(--mat-expansion-actions-divider-color)}.mat-action-row .mat-button-base,.mat-action-row .mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row .mat-button-base,[dir=rtl] .mat-action-row .mat-mdc-button-base{margin-left:0;margin-right:8px}'],encapsulation:2,data:{animation:[Qe.bodyExpansion]},changeDetection:0})}}return ue})();class Ve{}const $e=(0,u.BF)(Ve);let dt=(()=>{class ue extends $e{constructor(se,Ce,be,rt,me,le,Xe){super(),this.panel=se,this._element=Ce,this._focusMonitor=be,this._changeDetectorRef=rt,this._animationMode=le,this._parentChangeSubscription=S.y.EMPTY;const Se=se.accordion?se.accordion._stateChanges.pipe((0,R.p)(fe=>!(!fe.hideToggle&&!fe.togglePosition))):Y.w;this.tabIndex=parseInt(Xe||"")||0,this._parentChangeSubscription=(0,ae.h)(se.opened,se.closed,Se,se._inputChanges.pipe((0,R.p)(fe=>!!(fe.hideToggle||fe.disabled||fe.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),se.closed.pipe((0,R.p)(()=>se._containsFocus())).subscribe(()=>be.focusVia(Ce,"program")),me&&(this.expandedHeight=me.expandedHeight,this.collapsedHeight=me.collapsedHeight)}get disabled(){return this.panel.disabled}_toggle(){this.disabled||this.panel.toggle()}_isExpanded(){return this.panel.expanded}_getExpandedState(){return this.panel._getExpandedState()}_getPanelId(){return this.panel.id}_getTogglePosition(){return this.panel.togglePosition}_showToggle(){return!this.panel.hideToggle&&!this.panel.disabled}_getHeaderHeight(){const se=this._isExpanded();return se&&this.expandedHeight?this.expandedHeight:!se&&this.collapsedHeight?this.collapsedHeight:null}_keydown(se){switch(se.keyCode){case U.t6:case U.Fm:(0,U.rp)(se)||(se.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(se))}}focus(se,Ce){se?this._focusMonitor.focusVia(this._element,se,Ce):this._element.nativeElement.focus(Ce)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(se=>{se&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}static{this.\u0275fac=function(Ce){return new(Ce||ue)(i.rXU(ze,1),i.rXU(i.aKT),i.rXU(v.FN),i.rXU(i.gRc),i.rXU(Je,8),i.rXU(i.bc$,8),i.kS0("tabindex"))}}static{this.\u0275cmp=i.VBU({type:ue,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(Ce,be){1&Ce&&i.bIt("click",function(){return be._toggle()})("keydown",function(me){return be._keydown(me)}),2&Ce&&(i.BMQ("id",be.panel._headerId)("tabindex",be.tabIndex)("aria-controls",be._getPanelId())("aria-expanded",be._isExpanded())("aria-disabled",be.panel.disabled),i.xc7("height",be._getHeaderHeight()),i.AVh("mat-expanded",be._isExpanded())("mat-expansion-toggle-indicator-after","after"===be._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===be._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===be._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[i.Vt3],ngContentSelectors:te,decls:5,vars:3,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(Ce,be){1&Ce&&(i.NAR(ce),i.j41(0,"span",0),i.SdG(1),i.SdG(2,1),i.SdG(3,2),i.k0s(),i.DNE(4,Ee,1,1,"span",1)),2&Ce&&(i.AVh("mat-content-hide-toggle",!be._showToggle()),i.R7$(4),i.Y8G("ngIf",be._showToggle()))},dependencies:[r.bT],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);height:var(--mat-expansion-header-collapsed-state-height);font-family:var(--mat-expansion-header-text-font);font-size:var(--mat-expansion-header-text-size);font-weight:var(--mat-expansion-header-text-weight);line-height:var(--mat-expansion-header-text-line-height);letter-spacing:var(--mat-expansion-header-text-tracking)}.mat-expansion-panel-header.mat-expanded{height:var(--mat-expansion-header-expanded-state-height)}.mat-expansion-panel-header[aria-disabled=true]{color:var(--mat-expansion-header-disabled-state-text-color)}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:not([aria-disabled=true]):hover{background:var(--mat-expansion-header-hover-state-layer-color)}@media(hover: none){.mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:not([aria-disabled=true]):hover{background:var(--mat-expansion-container-background-color)}}.mat-expansion-panel .mat-expansion-panel-header:not([aria-disabled=true]).cdk-keyboard-focused,.mat-expansion-panel .mat-expansion-panel-header:not([aria-disabled=true]).cdk-program-focused{background:var(--mat-expansion-header-focus-state-layer-color)}.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.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-content.mat-content-hide-toggle{margin-right:8px}[dir=rtl] .mat-content.mat-content-hide-toggle{margin-right:0;margin-left:8px}.mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-left:24px;margin-right:0}[dir=rtl] .mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-right:24px;margin-left:0}.mat-expansion-panel-header-title{color:var(--mat-expansion-header-text-color)}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;flex-basis:0;margin-right:16px;align-items:center}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-title,.mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-description{color:inherit}.mat-expansion-panel-header-description{flex-grow:2;color:var(--mat-expansion-header-description-color)}.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;color:var(--mat-expansion-header-indicator-color)}.cdk-high-contrast-active .mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}'],encapsulation:2,data:{animation:[Qe.indicatorRotate]},changeDetection:0})}}return ue})(),vt=(()=>{class ue extends x{constructor(){super(...arguments),this._ownHeaders=new i.rOR,this._hideToggle=!1,this.displayMode="default",this.togglePosition="after"}get hideToggle(){return this._hideToggle}set hideToggle(se){this._hideToggle=(0,h.he)(se)}ngAfterContentInit(){this._headers.changes.pipe((0,T.Z)(this._headers)).subscribe(se=>{this._ownHeaders.reset(se.filter(Ce=>Ce.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new v.Bu(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(se){this._keyManager.onKeydown(se)}_handleHeaderFocus(se){this._keyManager.updateActiveItem(se)}ngOnDestroy(){super.ngOnDestroy(),this._keyManager?.destroy(),this._ownHeaders.destroy()}static{this.\u0275fac=(()=>{let se;return function(be){return(se||(se=i.xGo(ue)))(be||ue)}})()}static{this.\u0275dir=i.FsC({type:ue,selectors:[["mat-accordion"]],contentQueries:function(Ce,be,rt){if(1&Ce&&i.wni(rt,dt,5),2&Ce){let me;i.mGM(me=i.lsd())&&(be._headers=me)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(Ce,be){2&Ce&&i.AVh("mat-accordion-multi",be.multi)},inputs:{multi:"multi",hideToggle:"hideToggle",displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],features:[i.Jv_([{provide:it,useExisting:ue}]),i.Vt3]})}}return ue})(),ve=(()=>{class ue{static{this.\u0275fac=function(Ce){return new(Ce||ue)}}static{this.\u0275mod=i.$C({type:ue})}static{this.\u0275inj=i.G2t({imports:[r.MD,u.yE,m,l.jc]})}}return ue})()},74292:(St,z,s)=>{"use strict";s.d(z,{RG:()=>sn,qT:()=>se,xb:()=>me});var i=s(58527),h=(s(40262),s(61142)),C=s(26321),S=s(51635);let se=(()=>{class dn{static{this.\u0275fac=function(Vt){return new(Vt||dn)}}static{this.\u0275dir=i.FsC({type:dn})}}return dn})();const me=new i.nKC("MatFormField");let sn=(()=>{class dn{static{this.\u0275fac=function(Vt){return new(Vt||dn)}}static{this.\u0275mod=i.$C({type:dn})}static{this.\u0275inj=i.G2t({imports:[S.yE,h.MD,C.w5,S.yE]})}}return dn})()},29370:(St,z,s)=>{"use strict";s.d(z,{An:()=>Ke,m_:()=>Ve,tp:()=>q});var i=s(58527),n=s(51635),h=s(6364),C=s(61142),S=s(43848),M=s(59859),P=s(93181),x=s(10399),A=s(91384),g=s(83915),m=s(14714),l=s(43615),r=s(65770),u=s(65706),v=s(94485),E=s(74150);const T=["*"];let R;function U($e){return function B(){if(void 0===R&&(R=null,typeof window<"u")){const $e=window;void 0!==$e.trustedTypes&&(R=$e.trustedTypes.createPolicy("angular#components",{createHTML:dt=>dt}))}return R}()?.createHTML($e)||$e}function Y($e){return Error(`Unable to find icon with the name "${$e}"`)}function G($e){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${$e}".`)}function k($e){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${$e}".`)}class X{constructor(dt,Pe,J){this.url=dt,this.svgText=Pe,this.options=J}}let q=(()=>{class $e{constructor(Pe,J,vt,ve){this._httpClient=Pe,this._sanitizer=J,this._errorHandler=ve,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass=["material-icons","mat-ligature-font"],this._document=vt}addSvgIcon(Pe,J,vt){return this.addSvgIconInNamespace("",Pe,J,vt)}addSvgIconLiteral(Pe,J,vt){return this.addSvgIconLiteralInNamespace("",Pe,J,vt)}addSvgIconInNamespace(Pe,J,vt,ve){return this._addSvgIconConfig(Pe,J,new X(vt,null,ve))}addSvgIconResolver(Pe){return this._resolvers.push(Pe),this}addSvgIconLiteralInNamespace(Pe,J,vt,ve){const ue=this._sanitizer.sanitize(i.WPN.HTML,vt);if(!ue)throw k(vt);const et=U(ue);return this._addSvgIconConfig(Pe,J,new X("",et,ve))}addSvgIconSet(Pe,J){return this.addSvgIconSetInNamespace("",Pe,J)}addSvgIconSetLiteral(Pe,J){return this.addSvgIconSetLiteralInNamespace("",Pe,J)}addSvgIconSetInNamespace(Pe,J,vt){return this._addSvgIconSetConfig(Pe,new X(J,null,vt))}addSvgIconSetLiteralInNamespace(Pe,J,vt){const ve=this._sanitizer.sanitize(i.WPN.HTML,J);if(!ve)throw k(J);const ue=U(ve);return this._addSvgIconSetConfig(Pe,new X("",ue,vt))}registerFontClassAlias(Pe,J=Pe){return this._fontCssClassesByAlias.set(Pe,J),this}classNameForFontAlias(Pe){return this._fontCssClassesByAlias.get(Pe)||Pe}setDefaultFontSetClass(...Pe){return this._defaultFontSetClass=Pe,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(Pe){const J=this._sanitizer.sanitize(i.WPN.RESOURCE_URL,Pe);if(!J)throw G(Pe);const vt=this._cachedIconsByUrl.get(J);return vt?(0,S.of)(te(vt)):this._loadSvgIconFromConfig(new X(Pe,null)).pipe((0,A.M)(ve=>this._cachedIconsByUrl.set(J,ve)),(0,g.T)(ve=>te(ve)))}getNamedSvgIcon(Pe,J=""){const vt=Ee(J,Pe);let ve=this._svgIconConfigs.get(vt);if(ve)return this._getSvgFromConfig(ve);if(ve=this._getIconConfigFromResolvers(J,Pe),ve)return this._svgIconConfigs.set(vt,ve),this._getSvgFromConfig(ve);const ue=this._iconSetConfigs.get(J);return ue?this._getSvgFromIconSetConfigs(Pe,ue):(0,M.$)(Y(vt))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(Pe){return Pe.svgText?(0,S.of)(te(this._svgElementFromConfig(Pe))):this._loadSvgIconFromConfig(Pe).pipe((0,g.T)(J=>te(J)))}_getSvgFromIconSetConfigs(Pe,J){const vt=this._extractIconWithNameFromAnySet(Pe,J);if(vt)return(0,S.of)(vt);const ve=J.filter(ue=>!ue.svgText).map(ue=>this._loadSvgIconSetFromConfig(ue).pipe((0,m.W)(et=>{const Ce=`Loading icon set URL: ${this._sanitizer.sanitize(i.WPN.RESOURCE_URL,ue.url)} failed: ${et.message}`;return this._errorHandler.handleError(new Error(Ce)),(0,S.of)(null)})));return(0,P.p)(ve).pipe((0,g.T)(()=>{const ue=this._extractIconWithNameFromAnySet(Pe,J);if(!ue)throw Y(Pe);return ue}))}_extractIconWithNameFromAnySet(Pe,J){for(let vt=J.length-1;vt>=0;vt--){const ve=J[vt];if(ve.svgText&&ve.svgText.toString().indexOf(Pe)>-1){const ue=this._svgElementFromConfig(ve),et=this._extractSvgIconFromSet(ue,Pe,ve.options);if(et)return et}}return null}_loadSvgIconFromConfig(Pe){return this._fetchIcon(Pe).pipe((0,A.M)(J=>Pe.svgText=J),(0,g.T)(()=>this._svgElementFromConfig(Pe)))}_loadSvgIconSetFromConfig(Pe){return Pe.svgText?(0,S.of)(null):this._fetchIcon(Pe).pipe((0,A.M)(J=>Pe.svgText=J))}_extractSvgIconFromSet(Pe,J,vt){const ve=Pe.querySelector(`[id="${J}"]`);if(!ve)return null;const ue=ve.cloneNode(!0);if(ue.removeAttribute("id"),"svg"===ue.nodeName.toLowerCase())return this._setSvgAttributes(ue,vt);if("symbol"===ue.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(ue),vt);const et=this._svgElementFromString(U("<svg></svg>"));return et.appendChild(ue),this._setSvgAttributes(et,vt)}_svgElementFromString(Pe){const J=this._document.createElement("DIV");J.innerHTML=Pe;const vt=J.querySelector("svg");if(!vt)throw Error("<svg> tag not found");return vt}_toSvgElement(Pe){const J=this._svgElementFromString(U("<svg></svg>")),vt=Pe.attributes;for(let ve=0;ve<vt.length;ve++){const{name:ue,value:et}=vt[ve];"id"!==ue&&J.setAttribute(ue,et)}for(let ve=0;ve<Pe.childNodes.length;ve++)Pe.childNodes[ve].nodeType===this._document.ELEMENT_NODE&&J.appendChild(Pe.childNodes[ve].cloneNode(!0));return J}_setSvgAttributes(Pe,J){return Pe.setAttribute("fit",""),Pe.setAttribute("height","100%"),Pe.setAttribute("width","100%"),Pe.setAttribute("preserveAspectRatio","xMidYMid meet"),Pe.setAttribute("focusable","false"),J&&J.viewBox&&Pe.setAttribute("viewBox",J.viewBox),Pe}_fetchIcon(Pe){const{url:J,options:vt}=Pe,ve=vt?.withCredentials??!1;if(!this._httpClient)throw function ae(){return Error("Could not find HttpClient provider for use with Angular Material icons. Please include the HttpClientModule from @angular/common/http in your app imports.")}();if(null==J)throw Error(`Cannot fetch icon from URL "${J}".`);const ue=this._sanitizer.sanitize(i.WPN.RESOURCE_URL,J);if(!ue)throw G(J);const et=this._inProgressUrlFetches.get(ue);if(et)return et;const se=this._httpClient.get(ue,{responseType:"text",withCredentials:ve}).pipe((0,g.T)(Ce=>U(Ce)),(0,l.j)(()=>this._inProgressUrlFetches.delete(ue)),(0,r.u)());return this._inProgressUrlFetches.set(ue,se),se}_addSvgIconConfig(Pe,J,vt){return this._svgIconConfigs.set(Ee(Pe,J),vt),this}_addSvgIconSetConfig(Pe,J){const vt=this._iconSetConfigs.get(Pe);return vt?vt.push(J):this._iconSetConfigs.set(Pe,[J]),this}_svgElementFromConfig(Pe){if(!Pe.svgElement){const J=this._svgElementFromString(Pe.svgText);this._setSvgAttributes(J,Pe.options),Pe.svgElement=J}return Pe.svgElement}_getIconConfigFromResolvers(Pe,J){for(let vt=0;vt<this._resolvers.length;vt++){const ve=this._resolvers[vt](J,Pe);if(ve)return it(ve)?new X(ve.url,null,ve.options):new X(ve,null)}}static{this.\u0275fac=function(J){return new(J||$e)(i.KVO(v.Qq,8),i.KVO(E.up),i.KVO(C.qQ,8),i.KVO(i.zcH))}}static{this.\u0275prov=i.jDH({token:$e,factory:$e.\u0275fac,providedIn:"root"})}}return $e})();function te($e){return $e.cloneNode(!0)}function Ee($e,dt){return $e+":"+dt}function it($e){return!(!$e.url||!$e.options)}const Fe=(0,n.Zc)(class{constructor($e){this._elementRef=$e}}),Qe=new i.nKC("MAT_ICON_DEFAULT_OPTIONS"),ct=new i.nKC("mat-icon-location",{providedIn:"root",factory:function Ge(){const $e=(0,i.WQX)(C.qQ),dt=$e?$e.location:null;return{getPathname:()=>dt?dt.pathname+dt.search:""}}}),nt=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],Je=nt.map($e=>`[${$e}]`).join(", "),ze=/^url\(['"]?#(.*?)['"]?\)$/;let Ke=(()=>{class $e extends Fe{get inline(){return this._inline}set inline(Pe){this._inline=(0,h.he)(Pe)}get svgIcon(){return this._svgIcon}set svgIcon(Pe){Pe!==this._svgIcon&&(Pe?this._updateSvgIcon(Pe):this._svgIcon&&this._clearSvgElement(),this._svgIcon=Pe)}get fontSet(){return this._fontSet}set fontSet(Pe){const J=this._cleanupFontValue(Pe);J!==this._fontSet&&(this._fontSet=J,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(Pe){const J=this._cleanupFontValue(Pe);J!==this._fontIcon&&(this._fontIcon=J,this._updateFontIconClasses())}constructor(Pe,J,vt,ve,ue,et){super(Pe),this._iconRegistry=J,this._location=ve,this._errorHandler=ue,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=x.y.EMPTY,et&&(et.color&&(this.color=this.defaultColor=et.color),et.fontSet&&(this.fontSet=et.fontSet)),vt||Pe.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(Pe){if(!Pe)return["",""];const J=Pe.split(":");switch(J.length){case 1:return["",J[0]];case 2:return J;default:throw Error(`Invalid icon name: "${Pe}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const Pe=this._elementsWithExternalReferences;if(Pe&&Pe.size){const J=this._location.getPathname();J!==this._previousPath&&(this._previousPath=J,this._prependPathToReferences(J))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(Pe){this._clearSvgElement();const J=this._location.getPathname();this._previousPath=J,this._cacheChildrenWithExternalReferences(Pe),this._prependPathToReferences(J),this._elementRef.nativeElement.appendChild(Pe)}_clearSvgElement(){const Pe=this._elementRef.nativeElement;let J=Pe.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();J--;){const vt=Pe.childNodes[J];(1!==vt.nodeType||"svg"===vt.nodeName.toLowerCase())&&vt.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const Pe=this._elementRef.nativeElement,J=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(vt=>vt.length>0);this._previousFontSetClass.forEach(vt=>Pe.classList.remove(vt)),J.forEach(vt=>Pe.classList.add(vt)),this._previousFontSetClass=J,this.fontIcon!==this._previousFontIconClass&&!J.includes("mat-ligature-font")&&(this._previousFontIconClass&&Pe.classList.remove(this._previousFontIconClass),this.fontIcon&&Pe.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(Pe){return"string"==typeof Pe?Pe.trim().split(" ")[0]:Pe}_prependPathToReferences(Pe){const J=this._elementsWithExternalReferences;J&&J.forEach((vt,ve)=>{vt.forEach(ue=>{ve.setAttribute(ue.name,`url('${Pe}#${ue.value}')`)})})}_cacheChildrenWithExternalReferences(Pe){const J=Pe.querySelectorAll(Je),vt=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let ve=0;ve<J.length;ve++)nt.forEach(ue=>{const et=J[ve],se=et.getAttribute(ue),Ce=se?se.match(ze):null;if(Ce){let be=vt.get(et);be||(be=[],vt.set(et,be)),be.push({name:ue,value:Ce[1]})}})}_updateSvgIcon(Pe){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),Pe){const[J,vt]=this._splitIconName(Pe);J&&(this._svgNamespace=J),vt&&(this._svgName=vt),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(vt,J).pipe((0,u.s)(1)).subscribe(ve=>this._setSvgElement(ve),ve=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${J}:${vt}! ${ve.message}`))})}}static{this.\u0275fac=function(J){return new(J||$e)(i.rXU(i.aKT),i.rXU(q),i.kS0("aria-hidden"),i.rXU(ct),i.rXU(i.zcH),i.rXU(Qe,8))}}static{this.\u0275cmp=i.VBU({type:$e,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:8,hostBindings:function(J,vt){2&J&&(i.BMQ("data-mat-icon-type",vt._usingFontIcon()?"font":"svg")("data-mat-icon-name",vt._svgName||vt.fontIcon)("data-mat-icon-namespace",vt._svgNamespace||vt.fontSet)("fontIcon",vt._usingFontIcon()?vt.fontIcon:null),i.AVh("mat-icon-inline",vt.inline)("mat-icon-no-color","primary"!==vt.color&&"accent"!==vt.color&&"warn"!==vt.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[i.Vt3],ngContentSelectors:T,decls:1,vars:0,template:function(J,vt){1&J&&(i.NAR(),i.SdG(0))},styles:["mat-icon,mat-icon.mat-primary,mat-icon.mat-accent,mat-icon.mat-warn{color:var(--mat-icon-color)}.mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0})}}return $e})(),Ve=(()=>{class $e{static{this.\u0275fac=function(J){return new(J||$e)}}static{this.\u0275mod=i.$C({type:$e})}static{this.\u0275inj=i.G2t({imports:[n.yE,n.yE]})}}return $e})()},50599:(St,z,s)=>{"use strict";s.d(z,{fg:()=>B,fS:()=>U});var i=s(6364),n=s(72653),h=s(58527),C=s(12532),S=s(80583);const M=(0,n.BQ)({passive:!0});let P=(()=>{class Y{constructor(G,k){this._platform=G,this._ngZone=k,this._monitoredElements=new Map}monitor(G){if(!this._platform.isBrowser)return C.w;const k=(0,i.i8)(G),X=this._monitoredElements.get(k);if(X)return X.subject;const q=new S.B7,Q="cdk-text-field-autofilled",ce=te=>{"cdk-text-field-autofill-start"!==te.animationName||k.classList.contains(Q)?"cdk-text-field-autofill-end"===te.animationName&&k.classList.contains(Q)&&(k.classList.remove(Q),this._ngZone.run(()=>q.next({target:te.target,isAutofilled:!1}))):(k.classList.add(Q),this._ngZone.run(()=>q.next({target:te.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{k.addEventListener("animationstart",ce,M),k.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(k,{subject:q,unlisten:()=>{k.removeEventListener("animationstart",ce,M)}}),q}stopMonitoring(G){const k=(0,i.i8)(G),X=this._monitoredElements.get(k);X&&(X.unlisten(),X.subject.complete(),k.classList.remove("cdk-text-field-autofill-monitored"),k.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(k))}ngOnDestroy(){this._monitoredElements.forEach((G,k)=>this.stopMonitoring(k))}static{this.\u0275fac=function(k){return new(k||Y)(h.KVO(n.OD),h.KVO(h.SKi))}}static{this.\u0275prov=h.jDH({token:Y,factory:Y.\u0275fac,providedIn:"root"})}}return Y})(),g=(()=>{class Y{static{this.\u0275fac=function(k){return new(k||Y)}}static{this.\u0275mod=h.$C({type:Y})}static{this.\u0275inj=h.G2t({})}}return Y})();var m=s(56106),l=s(51635),r=s(74292);const v=new h.nKC("MAT_INPUT_VALUE_ACCESSOR"),E=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let T=0;const R=(0,l.J8)(class{constructor(Y,ae,G,k){this._defaultErrorStateMatcher=Y,this._parentForm=ae,this._parentFormGroup=G,this.ngControl=k,this.stateChanges=new S.B7}});let B=(()=>{class Y extends R{get disabled(){return this._disabled}set disabled(G){this._disabled=(0,i.he)(G),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(G){this._id=G||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(m.k0.required)??!1}set required(G){this._required=(0,i.he)(G)}get type(){return this._type}set type(G){this._type=G||"text",this._validateType(),!this._isTextarea&&(0,n.MU)().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(G){G!==this.value&&(this._inputValueAccessor.value=G,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(G){this._readonly=(0,i.he)(G)}constructor(G,k,X,q,Q,ce,te,Ee,it,Fe){super(ce,q,Q,X),this._elementRef=G,this._platform=k,this._autofillMonitor=Ee,this._formField=Fe,this._uid="mat-input-"+T++,this.focused=!1,this.stateChanges=new S.B7,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(Ge=>(0,n.MU)().has(Ge)),this._iOSKeyupListener=Ge=>{const nt=Ge.target;!nt.value&&0===nt.selectionStart&&0===nt.selectionEnd&&(nt.setSelectionRange(1,1),nt.setSelectionRange(0,0))};const Qe=this._elementRef.nativeElement,ct=Qe.nodeName.toLowerCase();this._inputValueAccessor=te||Qe,this._previousNativeValue=this.value,this.id=this.id,k.IOS&&it.runOutsideAngular(()=>{G.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===ct,this._isTextarea="textarea"===ct,this._isInFormField=!!Fe,this._isNativeSelect&&(this.controlType=Qe.multiple?"mat-native-select-multiple":"mat-native-select")}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(G=>{this.autofilled=G.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}ngDoCheck(){this.ngControl&&(this.updateErrorState(),null!==this.ngControl.disabled&&this.ngControl.disabled!==this.disabled&&(this.disabled=this.ngControl.disabled,this.stateChanges.next())),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(G){this._elementRef.nativeElement.focus(G)}_focusChanged(G){G!==this.focused&&(this.focused=G,this.stateChanges.next())}_onInput(){}_dirtyCheckNativeValue(){const G=this._elementRef.nativeElement.value;this._previousNativeValue!==G&&(this._previousNativeValue=G,this.stateChanges.next())}_dirtyCheckPlaceholder(){const G=this._getPlaceholder();if(G!==this._previousPlaceholder){const k=this._elementRef.nativeElement;this._previousPlaceholder=G,G?k.setAttribute("placeholder",G):k.removeAttribute("placeholder")}}_getPlaceholder(){return this.placeholder||null}_validateType(){E.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let G=this._elementRef.nativeElement.validity;return G&&G.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const G=this._elementRef.nativeElement,k=G.options[0];return this.focused||G.multiple||!this.empty||!!(G.selectedIndex>-1&&k&&k.label)}return this.focused||!this.empty}setDescribedByIds(G){G.length?this._elementRef.nativeElement.setAttribute("aria-describedby",G.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const G=this._elementRef.nativeElement;return this._isNativeSelect&&(G.multiple||G.size>1)}static{this.\u0275fac=function(k){return new(k||Y)(h.rXU(h.aKT),h.rXU(n.OD),h.rXU(m.vO,10),h.rXU(m.cV,8),h.rXU(m.j4,8),h.rXU(l.es),h.rXU(v,10),h.rXU(P),h.rXU(h.SKi),h.rXU(r.xb,8))}}static{this.\u0275dir=h.FsC({type:Y,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:18,hostBindings:function(k,X){1&k&&h.bIt("focus",function(){return X._focusChanged(!0)})("blur",function(){return X._focusChanged(!1)})("input",function(){return X._onInput()}),2&k&&(h.Mr5("id",X.id)("disabled",X.disabled)("required",X.required),h.BMQ("name",X.name||null)("readonly",X.readonly&&!X._isNativeSelect||null)("aria-invalid",X.empty&&X.required?null:X.errorState)("aria-required",X.required)("id",X.id),h.AVh("mat-input-server",X._isServer)("mat-mdc-form-field-textarea-control",X._isInFormField&&X._isTextarea)("mat-mdc-form-field-input-control",X._isInFormField)("mdc-text-field__input",X._isInFormField)("mat-mdc-native-select-inline",X._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:[h.Mj6.None,"aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[h.Jv_([{provide:r.qT,useExisting:Y}]),h.Vt3,h.OA$]})}}return Y})(),U=(()=>{class Y{static{this.\u0275fac=function(k){return new(k||Y)}}static{this.\u0275mod=h.$C({type:Y})}static{this.\u0275inj=h.G2t({imports:[l.yE,r.RG,r.RG,g,l.yE]})}}return Y})()},47973:(St,z,s)=>{"use strict";s.d(z,{iV:()=>g,wG:()=>l});var i=s(58527),n=s(51635),h=s(31308);const C=["mat-button",""],S=["*"],x=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],A=(0,n.Zc)((0,n.Ob)((0,n.GG)(class{constructor(r){this._elementRef=r}})));let g=(()=>{class r extends A{constructor(v,E,T){super(v),this._focusMonitor=E,this._animationMode=T,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const R of x)this._hasHostAttributes(R)&&this._getHostElement().classList.add(R);v.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(v,E){v?this._focusMonitor.focusVia(this._getHostElement(),v,E):this._getHostElement().focus(E)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...v){return v.some(E=>this._getHostElement().hasAttribute(E))}static{this.\u0275fac=function(E){return new(E||r)(i.rXU(i.aKT),i.rXU(h.FN),i.rXU(i.bc$,8))}}static{this.\u0275cmp=i.VBU({type:r,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(E,T){if(1&E&&i.GBs(n.r6,5),2&E){let R;i.mGM(R=i.lsd())&&(T.ripple=R.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(E,T){2&E&&(i.BMQ("disabled",T.disabled||null),i.AVh("_mat-animation-noopable","NoopAnimations"===T._animationMode)("mat-button-disabled",T.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[i.Vt3],attrs:C,ngContentSelectors:S,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(E,T){1&E&&(i.NAR(),i.j41(0,"span",0),i.SdG(1),i.k0s(),i.nrm(2,"span",1)(3,"span",2)),2&E&&(i.R7$(2),i.AVh("mat-button-ripple-round",T.isRoundButton||T.isIconButton),i.Y8G("matRippleDisabled",T._isRippleDisabled())("matRippleCentered",T.isIconButton)("matRippleTrigger",T._getHostElement()))},dependencies:[n.r6],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}.mat-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.mat-flat-button::before,.mat-raised-button::before,.mat-fab::before,.mat-mini-fab::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-stroked-button::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.mat-datepicker-toggle .mat-mdc-button-base{width:40px;height:40px;padding:8px 0}.mat-datepicker-actions .mat-button-base+.mat-button-base{margin-left:8px}[dir=rtl] .mat-datepicker-actions .mat-button-base+.mat-button-base{margin-left:0;margin-right:8px}"],encapsulation:2,changeDetection:0})}}return r})(),l=(()=>{class r{static{this.\u0275fac=function(E){return new(E||r)}}static{this.\u0275mod=i.$C({type:r})}static{this.\u0275inj=i.G2t({imports:[n.pZ,n.yE,n.yE]})}}return r})()},46906:(St,z,s)=>{"use strict";s.d(z,{Id:()=>q,O_:()=>Fe,l2:()=>nt});var i=s(25373),n=s(58527),h=s(51635),C=s(6364),S=s(72653),M=s(61142),P=s(80583),x=s(16229),A=s(65706),g=s(4208),m=s(34593),l=s(31308),r=s(51394),u=s(40567),v=s(56106),E=s(74292);const T=["*"],B=new n.nKC("MatChipRemove"),U=new n.nKC("MatChipAvatar"),Y=new n.nKC("MatChipTrailingIcon");class ae{constructor(ze){this._elementRef=ze}}const G=(0,h.BF)((0,h.Zc)((0,h.GG)(ae),"primary"),-1);let q=(()=>{class Je extends G{get rippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||!!this.rippleConfig.disabled}get selected(){return this._selected}set selected(Ke){const Ve=(0,C.he)(Ke);Ve!==this._selected&&(this._selected=Ve,this._dispatchSelectionChange())}get value(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent}set value(Ke){this._value=Ke}get selectable(){return this._selectable&&this.chipListSelectable}set selectable(Ke){this._selectable=(0,C.he)(Ke)}get disabled(){return this._chipListDisabled||this._disabled}set disabled(Ke){this._disabled=(0,C.he)(Ke)}get removable(){return this._removable}set removable(Ke){this._removable=(0,C.he)(Ke)}get ariaSelected(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null}constructor(Ke,Ve,$e,dt,Pe,J,vt,ve){super(Ke),this._ngZone=Ve,this._changeDetectorRef=Pe,this._hasFocus=!1,this.chipListSelectable=!0,this._chipListMultiple=!1,this._chipListDisabled=!1,this.role="option",this._selected=!1,this._selectable=!0,this._disabled=!1,this._removable=!0,this._onFocus=new P.B7,this._onBlur=new P.B7,this.selectionChange=new n.bkB,this.destroyed=new n.bkB,this.removed=new n.bkB,this._addHostClassName(),this._chipRippleTarget=J.createElement("div"),this._chipRippleTarget.classList.add("mat-chip-ripple"),this._elementRef.nativeElement.appendChild(this._chipRippleTarget),this._chipRipple=new h.ug(this,Ve,this._chipRippleTarget,$e),this._chipRipple.setupTriggerEvents(Ke),this.rippleConfig=dt||{},this._animationsDisabled="NoopAnimations"===vt,this.tabIndex=null!=ve&&parseInt(ve)||-1}_addHostClassName(){const Ke="mat-basic-chip",Ve=this._elementRef.nativeElement;Ve.hasAttribute(Ke)||Ve.tagName.toLowerCase()===Ke?Ve.classList.add(Ke):Ve.classList.add("mat-standard-chip")}ngOnDestroy(){this.destroyed.emit({chip:this}),this._chipRipple._removeTriggerEvents()}select(){this._selected||(this._selected=!0,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}deselect(){this._selected&&(this._selected=!1,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}selectViaInteraction(){this._selected||(this._selected=!0,this._dispatchSelectionChange(!0),this._changeDetectorRef.markForCheck())}toggleSelected(Ke=!1){return this._selected=!this.selected,this._dispatchSelectionChange(Ke),this._changeDetectorRef.markForCheck(),this.selected}focus(){this._hasFocus||(this._elementRef.nativeElement.focus(),this._onFocus.next({chip:this})),this._hasFocus=!0}remove(){this.removable&&this.removed.emit({chip:this})}_handleClick(Ke){this.disabled&&Ke.preventDefault()}_handleKeydown(Ke){if(!this.disabled)switch(Ke.keyCode){case i.SJ:case i.G_:this.remove(),Ke.preventDefault();break;case i.t6:this.selectable&&this.toggleSelected(!0),Ke.preventDefault()}}_blur(){this._ngZone.onStable.pipe((0,A.s)(1)).subscribe(()=>{this._ngZone.run(()=>{this._hasFocus=!1,this._onBlur.next({chip:this})})})}_dispatchSelectionChange(Ke=!1){this.selectionChange.emit({source:this,isUserInput:Ke,selected:this._selected})}static{this.\u0275fac=function(Ve){return new(Ve||Je)(n.rXU(n.aKT),n.rXU(n.SKi),n.rXU(S.OD),n.rXU(h.$E,8),n.rXU(n.gRc),n.rXU(M.qQ),n.rXU(n.bc$,8),n.kS0("tabindex"))}}static{this.\u0275dir=n.FsC({type:Je,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(Ve,$e,dt){if(1&Ve&&(n.wni(dt,U,5),n.wni(dt,Y,5),n.wni(dt,B,5)),2&Ve){let Pe;n.mGM(Pe=n.lsd())&&($e.avatar=Pe.first),n.mGM(Pe=n.lsd())&&($e.trailingIcon=Pe.first),n.mGM(Pe=n.lsd())&&($e.removeIcon=Pe.first)}},hostAttrs:[1,"mat-chip","mat-focus-indicator"],hostVars:15,hostBindings:function(Ve,$e){1&Ve&&n.bIt("click",function(Pe){return $e._handleClick(Pe)})("keydown",function(Pe){return $e._handleKeydown(Pe)})("focus",function(){return $e.focus()})("blur",function(){return $e._blur()}),2&Ve&&(n.BMQ("tabindex",$e.disabled?null:$e.tabIndex)("role",$e.role)("disabled",$e.disabled||null)("aria-disabled",$e.disabled.toString())("aria-selected",$e.ariaSelected),n.AVh("mat-chip-selected",$e.selected)("mat-chip-with-avatar",$e.avatar)("mat-chip-with-trailing-icon",$e.trailingIcon||$e.removeIcon)("mat-chip-disabled",$e.disabled)("_mat-animation-noopable",$e._animationsDisabled))},inputs:{color:"color",disableRipple:"disableRipple",tabIndex:"tabIndex",role:"role",selected:"selected",value:"value",selectable:"selectable",disabled:"disabled",removable:"removable"},outputs:{selectionChange:"selectionChange",destroyed:"destroyed",removed:"removed"},exportAs:["matChip"],features:[n.Vt3]})}}return Je})();const ce=new n.nKC("mat-chips-default-options"),te=(0,h.J8)(class{constructor(Je,ze,Ke,Ve){this._defaultErrorStateMatcher=Je,this._parentForm=ze,this._parentFormGroup=Ke,this.ngControl=Ve,this.stateChanges=new P.B7}});let Ee=0;class it{constructor(ze,Ke){this.source=ze,this.value=Ke}}let Fe=(()=>{class Je extends te{get selected(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get role(){return this._explicitRole?this._explicitRole:this.empty?null:"listbox"}set role(Ke){this._explicitRole=Ke}get multiple(){return this._multiple}set multiple(Ke){this._multiple=(0,C.he)(Ke),this._syncChipsState()}get compareWith(){return this._compareWith}set compareWith(Ke){this._compareWith=Ke,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(Ke){this.writeValue(Ke),this._value=Ke}get id(){return this._chipInput?this._chipInput.id:this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(v.k0.required)??!1}set required(Ke){this._required=(0,C.he)(Ke),this.stateChanges.next()}get placeholder(){return this._chipInput?this._chipInput.placeholder:this._placeholder}set placeholder(Ke){this._placeholder=Ke,this.stateChanges.next()}get focused(){return this._chipInput&&this._chipInput.focused||this._hasFocusedChip()}get empty(){return(!this._chipInput||this._chipInput.empty)&&(!this.chips||0===this.chips.length)}get shouldLabelFloat(){return!this.empty||this.focused}get disabled(){return this.ngControl?!!this.ngControl.disabled:this._disabled}set disabled(Ke){this._disabled=(0,C.he)(Ke),this._syncChipsState()}get selectable(){return this._selectable}set selectable(Ke){this._selectable=(0,C.he)(Ke),this._syncChipsState()}set tabIndex(Ke){this._userTabIndex=Ke,this._tabIndex=Ke}get chipSelectionChanges(){return(0,x.h)(...this.chips.map(Ke=>Ke.selectionChange))}get chipFocusChanges(){return(0,x.h)(...this.chips.map(Ke=>Ke._onFocus))}get chipBlurChanges(){return(0,x.h)(...this.chips.map(Ke=>Ke._onBlur))}get chipRemoveChanges(){return(0,x.h)(...this.chips.map(Ke=>Ke.destroyed))}constructor(Ke,Ve,$e,dt,Pe,J,vt){super(J,dt,Pe,vt),this._elementRef=Ke,this._changeDetectorRef=Ve,this._dir=$e,this.controlType="mat-chip-list",this._lastDestroyedChipIndex=null,this._destroyed=new P.B7,this._uid="mat-chip-list-"+Ee++,this._tabIndex=0,this._userTabIndex=null,this._onTouched=()=>{},this._onChange=()=>{},this._multiple=!1,this._compareWith=(ve,ue)=>ve===ue,this._disabled=!1,this.ariaOrientation="horizontal",this._selectable=!0,this.change=new n.bkB,this.valueChange=new n.bkB,this.ngControl&&(this.ngControl.valueAccessor=this)}ngAfterContentInit(){this._keyManager=new l.Bu(this.chips).withWrap().withVerticalOrientation().withHomeAndEnd().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe((0,g.Q)(this._destroyed)).subscribe(Ke=>this._keyManager.withHorizontalOrientation(Ke)),this._keyManager.tabOut.subscribe(()=>this._allowFocusEscape()),this.chips.changes.pipe((0,m.Z)(null),(0,g.Q)(this._destroyed)).subscribe(()=>{(this.disabled||!this.selectable)&&Promise.resolve().then(()=>{this._syncChipsState()}),this._resetChips(),this._initializeSelection(),this._updateTabIndex(),this._updateFocusForDestroyedChips(),this.stateChanges.next()})}ngOnInit(){this._selectionModel=new u.CB(this.multiple,void 0,!1),this.stateChanges.next()}ngDoCheck(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==this._disabled&&(this.disabled=!!this.ngControl.disabled))}ngOnDestroy(){this._keyManager?.destroy(),this._destroyed.next(),this._destroyed.complete(),this.stateChanges.complete(),this._dropSubscriptions()}registerInput(Ke){this._chipInput=Ke,this._elementRef.nativeElement.setAttribute("data-mat-chip-input",Ke.id)}setDescribedByIds(Ke){Ke.length?this._elementRef.nativeElement.setAttribute("aria-describedby",Ke.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}writeValue(Ke){this.chips&&this._setSelectionByValue(Ke,!1)}registerOnChange(Ke){this._onChange=Ke}registerOnTouched(Ke){this._onTouched=Ke}setDisabledState(Ke){this.disabled=Ke,this.stateChanges.next()}onContainerClick(Ke){this._originatesFromChip(Ke)||this.focus()}focus(Ke){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(Ke),this.stateChanges.next()))}_focusInput(Ke){this._chipInput&&this._chipInput.focus(Ke)}_keydown(Ke){const Ve=Ke.target;Ve&&Ve.classList.contains("mat-chip")&&(this._keyManager.onKeydown(Ke),this.stateChanges.next())}_updateTabIndex(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)}_updateFocusForDestroyedChips(){if(null!=this._lastDestroyedChipIndex)if(this.chips.length){const Ke=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(Ke)}else this.focus();this._lastDestroyedChipIndex=null}_isValidIndex(Ke){return Ke>=0&&Ke<this.chips.length}_setSelectionByValue(Ke,Ve=!0){if(this._clearSelection(),this.chips.forEach($e=>$e.deselect()),Array.isArray(Ke))Ke.forEach($e=>this._selectValue($e,Ve)),this._sortValues();else{const $e=this._selectValue(Ke,Ve);$e&&Ve&&this._keyManager.setActiveItem($e)}}_selectValue(Ke,Ve=!0){const $e=this.chips.find(dt=>null!=dt.value&&this._compareWith(dt.value,Ke));return $e&&(Ve?$e.selectViaInteraction():$e.select(),this._selectionModel.select($e)),$e}_initializeSelection(){Promise.resolve().then(()=>{(this.ngControl||this._value)&&(this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value,!1),this.stateChanges.next())})}_clearSelection(Ke){this._selectionModel.clear(),this.chips.forEach(Ve=>{Ve!==Ke&&Ve.deselect()}),this.stateChanges.next()}_sortValues(){this._multiple&&(this._selectionModel.clear(),this.chips.forEach(Ke=>{Ke.selected&&this._selectionModel.select(Ke)}),this.stateChanges.next())}_propagateChanges(Ke){let Ve=null;Ve=Array.isArray(this.selected)?this.selected.map($e=>$e.value):this.selected?this.selected.value:Ke,this._value=Ve,this.change.emit(new it(this,Ve)),this.valueChange.emit(Ve),this._onChange(Ve),this._changeDetectorRef.markForCheck()}_blur(){this._hasFocusedChip()||this._keyManager.setActiveItem(-1),this.disabled||(this._chipInput?setTimeout(()=>{this.focused||this._markAsTouched()}):this._markAsTouched())}_markAsTouched(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}_allowFocusEscape(){-1!==this._tabIndex&&(this._tabIndex=-1,setTimeout(()=>{this._tabIndex=this._userTabIndex||0,this._changeDetectorRef.markForCheck()}))}_resetChips(){this._dropSubscriptions(),this._listenToChipsFocus(),this._listenToChipsSelection(),this._listenToChipsRemoved()}_dropSubscriptions(){this._chipFocusSubscription&&(this._chipFocusSubscription.unsubscribe(),this._chipFocusSubscription=null),this._chipBlurSubscription&&(this._chipBlurSubscription.unsubscribe(),this._chipBlurSubscription=null),this._chipSelectionSubscription&&(this._chipSelectionSubscription.unsubscribe(),this._chipSelectionSubscription=null),this._chipRemoveSubscription&&(this._chipRemoveSubscription.unsubscribe(),this._chipRemoveSubscription=null)}_listenToChipsSelection(){this._chipSelectionSubscription=this.chipSelectionChanges.subscribe(Ke=>{Ke.source.selected?this._selectionModel.select(Ke.source):this._selectionModel.deselect(Ke.source),this.multiple||this.chips.forEach(Ve=>{!this._selectionModel.isSelected(Ve)&&Ve.selected&&Ve.deselect()}),Ke.isUserInput&&this._propagateChanges()})}_listenToChipsFocus(){this._chipFocusSubscription=this.chipFocusChanges.subscribe(Ke=>{let Ve=this.chips.toArray().indexOf(Ke.chip);this._isValidIndex(Ve)&&this._keyManager.updateActiveItem(Ve),this.stateChanges.next()}),this._chipBlurSubscription=this.chipBlurChanges.subscribe(()=>{this._blur(),this.stateChanges.next()})}_listenToChipsRemoved(){this._chipRemoveSubscription=this.chipRemoveChanges.subscribe(Ke=>{const Ve=Ke.chip,$e=this.chips.toArray().indexOf(Ke.chip);this._isValidIndex($e)&&Ve._hasFocus&&(this._lastDestroyedChipIndex=$e)})}_originatesFromChip(Ke){let Ve=Ke.target;for(;Ve&&Ve!==this._elementRef.nativeElement;){if(Ve.classList.contains("mat-chip"))return!0;Ve=Ve.parentElement}return!1}_hasFocusedChip(){return this.chips&&this.chips.some(Ke=>Ke._hasFocus)}_syncChipsState(){this.chips&&this.chips.forEach(Ke=>{Ke._chipListDisabled=this._disabled,Ke._chipListMultiple=this.multiple,Ke.chipListSelectable=this._selectable})}static{this.\u0275fac=function(Ve){return new(Ve||Je)(n.rXU(n.aKT),n.rXU(n.gRc),n.rXU(r.dS,8),n.rXU(v.cV,8),n.rXU(v.j4,8),n.rXU(h.es),n.rXU(v.vO,10))}}static{this.\u0275cmp=n.VBU({type:Je,selectors:[["mat-chip-list"]],contentQueries:function(Ve,$e,dt){if(1&Ve&&n.wni(dt,q,5),2&Ve){let Pe;n.mGM(Pe=n.lsd())&&($e.chips=Pe)}},hostAttrs:["ngSkipHydration","",1,"mat-chip-list"],hostVars:14,hostBindings:function(Ve,$e){1&Ve&&n.bIt("focus",function(){return $e.focus()})("blur",function(){return $e._blur()})("keydown",function(Pe){return $e._keydown(Pe)}),2&Ve&&(n.Mr5("id",$e._uid),n.BMQ("tabindex",$e.disabled?null:$e._tabIndex)("aria-required",$e.role?$e.required:null)("aria-disabled",$e.disabled.toString())("aria-invalid",$e.errorState)("aria-multiselectable",$e.multiple)("role",$e.role)("aria-orientation",$e.ariaOrientation),n.AVh("mat-chip-list-disabled",$e.disabled)("mat-chip-list-invalid",$e.errorState)("mat-chip-list-required",$e.required))},inputs:{role:"role",userAriaDescribedBy:[n.Mj6.None,"aria-describedby","userAriaDescribedBy"],errorStateMatcher:"errorStateMatcher",multiple:"multiple",compareWith:"compareWith",value:"value",required:"required",placeholder:"placeholder",disabled:"disabled",ariaOrientation:[n.Mj6.None,"aria-orientation","ariaOrientation"],selectable:"selectable",tabIndex:"tabIndex"},outputs:{change:"change",valueChange:"valueChange"},exportAs:["matChipList"],features:[n.Jv_([{provide:E.qT,useExisting:Je}]),n.Vt3],ngContentSelectors:T,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(Ve,$e){1&Ve&&(n.NAR(),n.j41(0,"div",0),n.SdG(1),n.k0s())},styles:['.mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0);border:none;-webkit-appearance:none;-moz-appearance:none}.mat-chip::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-standard-chip{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:inline-flex;padding:7px 12px;border-radius:16px;align-items:center;cursor:default;min-height:32px;height:1px}.mat-standard-chip._mat-animation-noopable{transition:none !important;animation:none !important}.mat-standard-chip .mat-chip-remove{border:none;-webkit-appearance:none;-moz-appearance:none;padding:0;background:none}.mat-standard-chip .mat-chip-remove.mat-icon,.mat-standard-chip .mat-chip-remove .mat-icon{width:18px;height:18px;font-size:18px}.mat-standard-chip::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;opacity:0;content:"";pointer-events:none;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-standard-chip:hover::after{opacity:.12}.mat-standard-chip:focus{outline:none}.mat-standard-chip:focus::after{opacity:.16}.cdk-high-contrast-active .mat-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-standard-chip.mat-chip-selected{outline-width:3px}.mat-standard-chip.mat-chip-disabled::after{opacity:0}.mat-standard-chip.mat-chip-disabled .mat-chip-remove,.mat-standard-chip.mat-chip-disabled .mat-chip-trailing-icon{cursor:default}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar,.mat-standard-chip.mat-chip-with-avatar{padding-top:0;padding-bottom:0}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-right:8px;padding-left:0}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-left:8px;padding-right:0}.mat-standard-chip.mat-chip-with-trailing-icon{padding-top:7px;padding-bottom:7px;padding-right:8px;padding-left:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon{padding-left:8px;padding-right:12px}.mat-standard-chip.mat-chip-with-avatar{padding-left:0;padding-right:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-avatar{padding-right:0;padding-left:12px}.mat-standard-chip .mat-chip-avatar{width:24px;height:24px;margin-right:8px;margin-left:4px}[dir=rtl] .mat-standard-chip .mat-chip-avatar{margin-left:8px;margin-right:4px}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{width:18px;height:18px;cursor:pointer}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-standard-chip .mat-chip-remove,[dir=rtl] .mat-standard-chip .mat-chip-trailing-icon{margin-right:8px;margin-left:0}.mat-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit;overflow:hidden;transform:translateZ(0)}.mat-chip-list-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;margin:-4px}.mat-chip-list-wrapper input.mat-input-element,.mat-chip-list-wrapper .mat-standard-chip{margin:4px}.mat-chip-list-stacked .mat-chip-list-wrapper{flex-direction:column;align-items:flex-start}.mat-chip-list-stacked .mat-chip-list-wrapper .mat-standard-chip{width:100%}.mat-chip-avatar{border-radius:50%;justify-content:center;align-items:center;display:flex;overflow:hidden;object-fit:cover}input.mat-chip-input{width:150px;margin:4px;flex:1 0 150px}'],encapsulation:2,changeDetection:0})}}return Je})(),nt=(()=>{class Je{static{this.\u0275fac=function(Ve){return new(Ve||Je)}}static{this.\u0275mod=n.$C({type:Je})}static{this.\u0275inj=n.G2t({providers:[h.es,{provide:ce,useValue:{separatorKeyCodes:[i.Fm]}}],imports:[h.yE]})}}return Je})()},44296:(St,z,s)=>{"use strict";s.d(z,{bB:()=>v,fS:()=>r,gy:()=>l,pI:()=>m});var i=s(58527),n=s(33668),h=s(61142),C=s(51635),S=s(61904),M=s(64409);const P=["*"];function x(E,T){if(1&E){const R=i.RV6();i.j41(0,"div",0),i.bIt("keydown",function(U){i.eBV(R);const Y=i.XpG();return i.Njj(Y._handleKeydown(U))})("click",function(){i.eBV(R);const U=i.XpG();return i.Njj(U.closed.emit("click"))})("@transformMenu.start",function(U){i.eBV(R);const Y=i.XpG();return i.Njj(Y._onAnimationStart(U))})("@transformMenu.done",function(U){i.eBV(R);const Y=i.XpG();return i.Njj(Y._onAnimationDone(U))}),i.j41(1,"div",1),i.SdG(2),i.k0s()()}if(2&E){const R=i.XpG();i.Y8G("id",R.panelId)("ngClass",R._classList)("@transformMenu",R._panelAnimationState),i.BMQ("aria-label",R.ariaLabel||null)("aria-labelledby",R.ariaLabelledby||null)("aria-describedby",R.ariaDescribedby||null)}}const A=["mat-menu-item",""];function g(E,T){1&E&&(i.qSk(),i.j41(0,"svg",2),i.nrm(1,"polygon",3),i.k0s())}let m=(()=>{class E extends n.K1{constructor(R,B,U,Y){super(R,B,U,Y),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}static{this.\u0275fac=function(B){return new(B||E)(i.rXU(i.aKT),i.rXU(i.SKi),i.rXU(n.sK),i.rXU(i.gRc))}}static{this.\u0275cmp=i.VBU({type:E,selectors:[["mat-menu"]],hostAttrs:["ngSkipHydration",""],hostVars:4,hostBindings:function(B,U){2&B&&i.BMQ("aria-label",null)("aria-labelledby",null)("aria-describedby",null)("mat-id-collision",null)},exportAs:["matMenu"],features:[i.Jv_([{provide:n.S_,useExisting:E}]),i.Vt3],ngContentSelectors:P,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"keydown","click","id","ngClass"],[1,"mat-menu-content"]],template:function(B,U){1&B&&(i.NAR(),i.DNE(0,x,3,6,"ng-template"))},dependencies:[h.YU],styles:['mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px;position:relative}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,data:{animation:[n.hE.transformMenu,n.hE.fadeInItems]},changeDetection:0})}}return E})(),l=(()=>{class E extends n.fb{static{this.\u0275fac=(()=>{let R;return function(U){return(R||(R=i.xGo(E)))(U||E)}})()}static{this.\u0275cmp=i.VBU({type:E,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:20,hostBindings:function(B,U){2&B&&(i.BMQ("role",U.role)("tabindex",U._getTabIndex())("aria-disabled",U.disabled.toString())("disabled",U.disabled||null),i.AVh("mat-menu-item",!0)("mat-menu-item-highlighted",U._highlighted)("mat-menu-item-submenu-trigger",U._triggersSubmenu)("mat-mdc-menu-item",!1)("mat-mdc-focus-indicator",!1)("mdc-list-item",!1)("mat-mdc-menu-item-highlighted",!1)("mat-mdc-menu-item-submenu-trigger",!1))},inputs:{disabled:"disabled",disableRipple:"disableRipple"},exportAs:["matMenuItem"],features:[i.Jv_([{provide:n.fb,useExisting:E}]),i.Vt3],attrs:A,ngContentSelectors:P,decls:3,vars:3,consts:[["matRipple","",1,"mat-menu-ripple",3,"matRippleDisabled","matRippleTrigger"],["class","mat-menu-submenu-icon","viewBox","0 0 5 10","focusable","false","aria-hidden","true",4,"ngIf"],["viewBox","0 0 5 10","focusable","false","aria-hidden","true",1,"mat-menu-submenu-icon"],["points","0,0 5,5 0,10"]],template:function(B,U){1&B&&(i.NAR(),i.SdG(0),i.nrm(1,"div",0),i.DNE(2,g,2,0,"svg",1)),2&B&&(i.R7$(),i.Y8G("matRippleDisabled",U.disableRipple||U.disabled)("matRippleTrigger",U._getHostElement()),i.R7$(),i.Y8G("ngIf",U._triggersSubmenu))},dependencies:[h.bT,C.r6],encapsulation:2,changeDetection:0})}}return E})(),r=(()=>{class E extends n.eg{static{this.\u0275fac=(()=>{let R;return function(U){return(R||(R=i.xGo(E)))(U||E)}})()}static{this.\u0275dir=i.FsC({type:E,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[i.Vt3]})}}return E})(),v=(()=>{class E{static{this.\u0275fac=function(B){return new(B||E)}}static{this.\u0275mod=i.$C({type:E})}static{this.\u0275inj=i.G2t({providers:[n.uk],imports:[h.MD,C.yE,C.pZ,S.z_,M.Gj,C.yE]})}}return E})()},62141:(St,z,s)=>{"use strict";s.d(z,{P2:()=>ce,jm:()=>te});var i=s(26321),n=s(58527),h=s(51635),C=s(31308),S=s(56106),M=s(6364);s(61142);let u=0;const v=(0,h.BF)((0,h.Zc)((0,h.GG)((0,h.Ob)(class{constructor(Ee){this._elementRef=Ee}}))));let E=(()=>{class Ee extends v{get required(){return this._required}set required(Fe){this._required=(0,M.he)(Fe)}get checked(){return this._checked}set checked(Fe){this._checked=(0,M.he)(Fe),this._changeDetectorRef.markForCheck()}get hideIcon(){return this._hideIcon}set hideIcon(Fe){this._hideIcon=(0,M.he)(Fe)}get inputId(){return`${this.id||this._uniqueId}-input`}constructor(Fe,Qe,ct,Ge,nt,Je,ze){super(Fe),this._focusMonitor=Qe,this._changeDetectorRef=ct,this.defaults=nt,this._onChange=Ke=>{},this._onTouched=()=>{},this._required=!1,this._checked=!1,this.name=null,this.labelPosition="after",this.ariaLabel=null,this.ariaLabelledby=null,this._hideIcon=!1,this.change=new n.bkB,this.toggleChange=new n.bkB,this.tabIndex=parseInt(Ge)||0,this.color=this.defaultColor=nt.color||"accent",this._noopAnimations="NoopAnimations"===Je,this.id=this._uniqueId=`${ze}${++u}`,this._hideIcon=nt.hideIcon??!1}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(Fe=>{"keyboard"===Fe||"program"===Fe?(this._focused=!0,this._changeDetectorRef.markForCheck()):Fe||Promise.resolve().then(()=>{this._focused=!1,this._onTouched(),this._changeDetectorRef.markForCheck()})})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}writeValue(Fe){this.checked=!!Fe}registerOnChange(Fe){this._onChange=Fe}registerOnTouched(Fe){this._onTouched=Fe}setDisabledState(Fe){this.disabled=Fe,this._changeDetectorRef.markForCheck()}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(this._createChangeEvent(this.checked))}static{this.\u0275fac=function(Qe){n.QTQ()}}static{this.\u0275dir=n.FsC({type:Ee,inputs:{name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:[n.Mj6.None,"aria-label","ariaLabel"],ariaLabelledby:[n.Mj6.None,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[n.Mj6.None,"aria-describedby","ariaDescribedby"],required:"required",checked:"checked",hideIcon:"hideIcon"},outputs:{change:"change",toggleChange:"toggleChange"},features:[n.Vt3]})}}return Ee})(),U=(()=>{class Ee{static{this.\u0275fac=function(Qe){return new(Qe||Ee)}}static{this.\u0275mod=n.$C({type:Ee})}static{this.\u0275inj=n.G2t({})}}return Ee})();const ae=["input"],G=["*"],k=Ee=>({enterDuration:Ee}),X=new n.nKC("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1})}),q={provide:S.kq,useExisting:(0,n.Rfq)(()=>ce),multi:!0};class Q{constructor(it,Fe){this.source=it,this.checked=Fe}}let ce=(()=>{class Ee extends E{constructor(Fe,Qe,ct,Ge,nt,Je){super(Fe,Qe,ct,Ge,nt,Je,"mat-slide-toggle-")}_createChangeEvent(Fe){return new Q(this,Fe)}_onChangeEvent(Fe){Fe.stopPropagation(),this.toggleChange.emit(),this.defaults.disableToggleValue?this._inputElement.nativeElement.checked=this.checked:(this.checked=this._inputElement.nativeElement.checked,this._emitChangeEvent())}_onInputClick(Fe){Fe.stopPropagation()}focus(Fe,Qe){Qe?this._focusMonitor.focusVia(this._inputElement,Qe,Fe):this._inputElement.nativeElement.focus(Fe)}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}static{this.\u0275fac=function(Qe){return new(Qe||Ee)(n.rXU(n.aKT),n.rXU(C.FN),n.rXU(n.gRc),n.kS0("tabindex"),n.rXU(X),n.rXU(n.bc$,8))}}static{this.\u0275cmp=n.VBU({type:Ee,selectors:[["mat-slide-toggle"]],viewQuery:function(Qe,ct){if(1&Qe&&n.GBs(ae,5),2&Qe){let Ge;n.mGM(Ge=n.lsd())&&(ct._inputElement=Ge.first)}},hostAttrs:[1,"mat-slide-toggle"],hostVars:13,hostBindings:function(Qe,ct){2&Qe&&(n.Mr5("id",ct.id),n.BMQ("tabindex",null)("aria-label",null)("aria-labelledby",null)("name",null),n.AVh("mat-checked",ct.checked)("mat-disabled",ct.disabled)("mat-slide-toggle-label-before","before"==ct.labelPosition)("_mat-animation-noopable",ct._noopAnimations))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matSlideToggle"],features:[n.Jv_([q]),n.Vt3],ngContentSelectors:G,decls:14,vars:20,consts:[["label",""],["input",""],["labelContent",""],[1,"mat-slide-toggle-label"],[1,"mat-slide-toggle-bar"],["type","checkbox","role","switch",1,"mat-slide-toggle-input","cdk-visually-hidden",3,"change","click","id","required","tabIndex","checked","disabled"],[1,"mat-slide-toggle-thumb-container"],[1,"mat-slide-toggle-thumb"],["mat-ripple","",1,"mat-slide-toggle-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-slide-toggle-persistent-ripple"],[1,"mat-slide-toggle-content",3,"cdkObserveContent"],[2,"display","none"]],template:function(Qe,ct){if(1&Qe){const Ge=n.RV6();n.NAR(),n.j41(0,"label",3,0)(2,"span",4)(3,"input",5,1),n.bIt("change",function(Je){return n.eBV(Ge),n.Njj(ct._onChangeEvent(Je))})("click",function(Je){return n.eBV(Ge),n.Njj(ct._onInputClick(Je))}),n.k0s(),n.j41(5,"span",6),n.nrm(6,"span",7),n.j41(7,"span",8),n.nrm(8,"span",9),n.k0s()()(),n.j41(9,"span",10,2),n.bIt("cdkObserveContent",function(){return n.eBV(Ge),n.Njj(ct._onLabelTextChange())}),n.j41(11,"span",11),n.EFF(12,"\xa0"),n.k0s(),n.SdG(13),n.k0s()()}if(2&Qe){const Ge=n.sdS(1),nt=n.sdS(10);n.BMQ("for",ct.inputId),n.R7$(2),n.AVh("mat-slide-toggle-bar-no-side-margin",!nt.textContent||!nt.textContent.trim()),n.R7$(),n.Y8G("id",ct.inputId)("required",ct.required)("tabIndex",ct.tabIndex)("checked",ct.checked)("disabled",ct.disabled),n.BMQ("name",ct.name)("aria-checked",ct.checked)("aria-label",ct.ariaLabel)("aria-labelledby",ct.ariaLabelledby)("aria-describedby",ct.ariaDescribedby),n.R7$(4),n.Y8G("matRippleTrigger",Ge)("matRippleDisabled",ct.disableRipple||ct.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",n.eq3(18,k,ct._noopAnimations?0:150))}},dependencies:[h.r6,i.Wv],styles:['.mat-slide-toggle{display:inline-block;height:24px;max-width:100%;line-height:24px;white-space:nowrap;outline:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(16px, 0, 0)}[dir=rtl] .mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(-16px, 0, 0)}.mat-slide-toggle.mat-disabled{opacity:.38}.mat-slide-toggle.mat-disabled .mat-slide-toggle-label,.mat-slide-toggle.mat-disabled .mat-slide-toggle-thumb-container{cursor:default}.mat-slide-toggle-label{-webkit-user-select:none;user-select:none;display:flex;flex:1;flex-direction:row;align-items:center;height:inherit;cursor:pointer}.mat-slide-toggle-content{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-slide-toggle-label-before .mat-slide-toggle-label{order:1}.mat-slide-toggle-label-before .mat-slide-toggle-bar{order:2}[dir=rtl] .mat-slide-toggle-label-before .mat-slide-toggle-bar,.mat-slide-toggle-bar{margin-right:8px;margin-left:0}[dir=rtl] .mat-slide-toggle-bar,.mat-slide-toggle-label-before .mat-slide-toggle-bar{margin-left:8px;margin-right:0}.mat-slide-toggle-bar-no-side-margin{margin-left:0;margin-right:0}.mat-slide-toggle-thumb-container{position:absolute;z-index:1;width:20px;height:20px;top:-3px;left:0;transform:translate3d(0, 0, 0);transition:all 80ms linear;transition-property:transform}._mat-animation-noopable .mat-slide-toggle-thumb-container{transition:none}[dir=rtl] .mat-slide-toggle-thumb-container{left:auto;right:0}.mat-slide-toggle-thumb{height:20px;width:20px;border-radius:50%;display:block}.mat-slide-toggle-bar{position:relative;width:36px;height:14px;flex-shrink:0;border-radius:8px}.mat-slide-toggle-input{bottom:0;left:10px}[dir=rtl] .mat-slide-toggle-input{left:auto;right:10px}.mat-slide-toggle-bar,.mat-slide-toggle-thumb{transition:all 80ms linear;transition-property:background-color;transition-delay:50ms}._mat-animation-noopable .mat-slide-toggle-bar,._mat-animation-noopable .mat-slide-toggle-thumb{transition:none}.mat-slide-toggle .mat-slide-toggle-ripple{position:absolute;top:calc(50% - 20px);left:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-slide-toggle .mat-slide-toggle-ripple .mat-ripple-element:not(.mat-slide-toggle-persistent-ripple){opacity:.12}.mat-slide-toggle-persistent-ripple{width:100%;height:100%;transform:none}.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:.04}.mat-slide-toggle:not(.mat-disabled).cdk-keyboard-focused .mat-slide-toggle-persistent-ripple{opacity:.12}.mat-slide-toggle-persistent-ripple,.mat-slide-toggle.mat-disabled .mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:0}@media(hover: none){.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{display:none}}.mat-slide-toggle-input:focus~.mat-slide-toggle-thumb-container .mat-focus-indicator::before{content:""}.cdk-high-contrast-active .mat-slide-toggle-thumb,.cdk-high-contrast-active .mat-slide-toggle-bar{border:1px solid}'],encapsulation:2,changeDetection:0})}}return Ee})(),te=(()=>{class Ee{static{this.\u0275fac=function(Qe){return new(Qe||Ee)}}static{this.\u0275mod=n.$C({type:Ee})}static{this.\u0275inj=n.G2t({imports:[U,h.pZ,h.yE,i.w5,U,h.yE]})}}return Ee})()},13186:(St,z,s)=>{"use strict";s.d(z,{Lq:()=>q,N$:()=>U});var i=s(61142),n=s(58527),h=s(51635),C=s(31308),S=s(51394),M=s(6364),P=s(25373),x=s(56106),A=s(72653),g=s(10399);const m=["sliderWrapper"],l=(0,A.BQ)({passive:!1}),T={provide:x.kq,useExisting:(0,n.Rfq)(()=>U),multi:!0};class R{}const B=(0,h.BF)((0,h.Zc)((0,h.Ob)(class{constructor(Q){this._elementRef=Q}}),"accent"));let U=(()=>{class Q extends B{get invert(){return this._invert}set invert(te){this._invert=(0,M.he)(te)}get max(){return this._max}set max(te){this._max=(0,M.OE)(te,this._max),this._percent=this._calculatePercentage(this._value),this._changeDetectorRef.markForCheck()}get min(){return this._min}set min(te){this._min=(0,M.OE)(te,this._min),this._percent=this._calculatePercentage(this._value),this._changeDetectorRef.markForCheck()}get step(){return this._step}set step(te){this._step=(0,M.OE)(te,this._step),this._step%1!=0&&(this._roundToDecimal=this._step.toString().split(".").pop().length),this._changeDetectorRef.markForCheck()}get thumbLabel(){return this._thumbLabel}set thumbLabel(te){this._thumbLabel=(0,M.he)(te)}get tickInterval(){return this._tickInterval}set tickInterval(te){this._tickInterval="auto"===te?"auto":"number"==typeof te||"string"==typeof te?(0,M.OE)(te,this._tickInterval):0}get value(){return null===this._value&&(this.value=this._min),this._value}set value(te){if(te!==this._value){let Ee=(0,M.OE)(te,0);this._roundToDecimal&&Ee!==this.min&&Ee!==this.max&&(Ee=parseFloat(Ee.toFixed(this._roundToDecimal))),this._value=Ee,this._percent=this._calculatePercentage(this._value),this._changeDetectorRef.markForCheck()}}get vertical(){return this._vertical}set vertical(te){this._vertical=(0,M.he)(te)}get displayValue(){return this.displayWith?this.displayWith(this.value):this._roundToDecimal&&this.value&&this.value%1!=0?this.value.toFixed(this._roundToDecimal):this.value||0}focus(te){this._focusHostElement(te)}blur(){this._blurHostElement()}get percent(){return this._clamp(this._percent)}_shouldInvertAxis(){return this.vertical?!this.invert:this.invert}_isMinValue(){return 0===this.percent}_getThumbGap(){return this.disabled?7:this._isMinValue()&&!this.thumbLabel?this._isActive?10:7:0}_getTrackBackgroundStyles(){const Ee=this.vertical?`1, ${1-this.percent}, 1`:1-this.percent+", 1, 1";return{transform:`translate${this.vertical?"Y":"X"}(${this._shouldInvertMouseCoords()?"-":""}${this._getThumbGap()}px) scale3d(${Ee})`}}_getTrackFillStyles(){const te=this.percent,it=this.vertical?`1, ${te}, 1`:`${te}, 1, 1`;return{transform:`translate${this.vertical?"Y":"X"}(${this._shouldInvertMouseCoords()?"":"-"}${this._getThumbGap()}px) scale3d(${it})`,display:0===te?"none":""}}_getTicksContainerStyles(){return{transform:`translate${this.vertical?"Y":"X"}(${this.vertical||"rtl"!=this._getDirection()?"-":""}${this._tickIntervalPercent/2*100}%)`}}_getTicksStyles(){let te=100*this._tickIntervalPercent,ct={backgroundSize:this.vertical?`2px ${te}%`:`${te}% 2px`,transform:`translateZ(0) translate${this.vertical?"Y":"X"}(${this.vertical||"rtl"!=this._getDirection()?"":"-"}${te/2}%)${this.vertical||"rtl"!=this._getDirection()?"":" rotate(180deg)"}`};if(this._isMinValue()&&this._getThumbGap()){const Ge=this._shouldInvertAxis();let nt;nt=this.vertical?Ge?"Bottom":"Top":Ge?"Right":"Left",ct[`padding${nt}`]=`${this._getThumbGap()}px`}return ct}_getThumbContainerStyles(){const te=this._shouldInvertAxis();return{transform:`translate${this.vertical?"Y":"X"}(-${100*(("rtl"!=this._getDirection()||this.vertical?te:!te)?this.percent:1-this.percent)}%)`}}_shouldInvertMouseCoords(){const te=this._shouldInvertAxis();return"rtl"!=this._getDirection()||this.vertical?te:!te}_getDirection(){return this._dir&&"rtl"==this._dir.value?"rtl":"ltr"}constructor(te,Ee,it,Fe,Qe,ct,Ge,nt){super(te),this._focusMonitor=Ee,this._changeDetectorRef=it,this._dir=Fe,this._ngZone=ct,this._animationMode=nt,this._invert=!1,this._max=100,this._min=0,this._step=1,this._thumbLabel=!1,this._tickInterval=0,this._value=null,this._vertical=!1,this.change=new n.bkB,this.input=new n.bkB,this.valueChange=new n.bkB,this.onTouched=()=>{},this._percent=0,this._isSliding=null,this._isActive=!1,this._tickIntervalPercent=0,this._sliderDimensions=null,this._controlValueAccessorChangeFn=()=>{},this._dirChangeSubscription=g.y.EMPTY,this._pointerDown=Je=>{this.disabled||this._isSliding||!ae(Je)&&0!==Je.button||this._ngZone.run(()=>{this._touchId=ae(Je)?function X(Q,ce){for(let te=0;te<Q.touches.length;te++){const Ee=Q.touches[te].target;if(ce===Ee||ce.contains(Ee))return Q.touches[te].identifier}}(Je,this._elementRef.nativeElement):void 0;const ze=G(Je,this._touchId);if(ze){const Ke=this.value;this._isSliding="pointer",this._lastPointerEvent=Je,this._focusHostElement(),this._onMouseenter(),this._bindGlobalEvents(Je),this._focusHostElement(),this._updateValueFromPosition(ze),this._valueOnSlideStart=Ke,Je.cancelable&&Je.preventDefault(),Ke!=this.value&&this._emitInputEvent()}})},this._pointerMove=Je=>{if("pointer"===this._isSliding){const ze=G(Je,this._touchId);if(ze){Je.cancelable&&Je.preventDefault();const Ke=this.value;this._lastPointerEvent=Je,this._updateValueFromPosition(ze),Ke!=this.value&&this._emitInputEvent()}}},this._pointerUp=Je=>{"pointer"===this._isSliding&&(!ae(Je)||"number"!=typeof this._touchId||k(Je.changedTouches,this._touchId))&&(Je.cancelable&&Je.preventDefault(),this._removeGlobalEvents(),this._isSliding=null,this._touchId=void 0,this._valueOnSlideStart!=this.value&&!this.disabled&&this._emitChangeEvent(),this._valueOnSlideStart=this._lastPointerEvent=null)},this._windowBlur=()=>{this._lastPointerEvent&&this._pointerUp(this._lastPointerEvent)},this._document=Ge,this.tabIndex=parseInt(Qe)||0,ct.runOutsideAngular(()=>{const Je=te.nativeElement;Je.addEventListener("mousedown",this._pointerDown,l),Je.addEventListener("touchstart",this._pointerDown,l)})}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(te=>{this._isActive=!!te&&"keyboard"!==te,this._changeDetectorRef.detectChanges()}),this._dir&&(this._dirChangeSubscription=this._dir.change.subscribe(()=>{this._changeDetectorRef.markForCheck()}))}ngOnDestroy(){const te=this._elementRef.nativeElement;te.removeEventListener("mousedown",this._pointerDown,l),te.removeEventListener("touchstart",this._pointerDown,l),this._lastPointerEvent=null,this._removeGlobalEvents(),this._focusMonitor.stopMonitoring(this._elementRef),this._dirChangeSubscription.unsubscribe()}_onMouseenter(){this.disabled||(this._sliderDimensions=this._getSliderDimensions(),this._updateTickIntervalPercent())}_onFocus(){this._sliderDimensions=this._getSliderDimensions(),this._updateTickIntervalPercent()}_onBlur(){this.onTouched()}_onKeydown(te){if(this.disabled||(0,P.rp)(te)||this._isSliding&&"keyboard"!==this._isSliding)return;const Ee=this.value;switch(te.keyCode){case P.w_:this._increment(10);break;case P.dB:this._increment(-10);break;case P.Kp:this.value=this.max;break;case P.yZ:this.value=this.min;break;case P.UQ:this._increment("rtl"==this._getDirection()?1:-1);break;case P.i7:this._increment(1);break;case P.LE:this._increment("rtl"==this._getDirection()?-1:1);break;case P.n6:this._increment(-1);break;default:return}Ee!=this.value&&(this._emitInputEvent(),this._emitChangeEvent()),this._isSliding="keyboard",te.preventDefault()}_onKeyup(){"keyboard"===this._isSliding&&(this._isSliding=null)}_getWindow(){return this._document.defaultView||window}_bindGlobalEvents(te){const Ee=this._document,it=ae(te),Qe=it?"touchend":"mouseup";Ee.addEventListener(it?"touchmove":"mousemove",this._pointerMove,l),Ee.addEventListener(Qe,this._pointerUp,l),it&&Ee.addEventListener("touchcancel",this._pointerUp,l);const ct=this._getWindow();typeof ct<"u"&&ct&&ct.addEventListener("blur",this._windowBlur)}_removeGlobalEvents(){const te=this._document;te.removeEventListener("mousemove",this._pointerMove,l),te.removeEventListener("mouseup",this._pointerUp,l),te.removeEventListener("touchmove",this._pointerMove,l),te.removeEventListener("touchend",this._pointerUp,l),te.removeEventListener("touchcancel",this._pointerUp,l);const Ee=this._getWindow();typeof Ee<"u"&&Ee&&Ee.removeEventListener("blur",this._windowBlur)}_increment(te){const Ee=this._clamp(this.value||0,this.min,this.max);this.value=this._clamp(Ee+this.step*te,this.min,this.max)}_updateValueFromPosition(te){if(!this._sliderDimensions)return;let Qe=this._clamp(((this.vertical?te.y:te.x)-(this.vertical?this._sliderDimensions.top:this._sliderDimensions.left))/(this.vertical?this._sliderDimensions.height:this._sliderDimensions.width));if(this._shouldInvertMouseCoords()&&(Qe=1-Qe),0===Qe)this.value=this.min;else if(1===Qe)this.value=this.max;else{const ct=this._calculateValue(Qe),Ge=Math.round((ct-this.min)/this.step)*this.step+this.min;this.value=this._clamp(Ge,this.min,this.max)}}_emitChangeEvent(){this._controlValueAccessorChangeFn(this.value),this.valueChange.emit(this.value),this.change.emit(this._createChangeEvent())}_emitInputEvent(){this.input.emit(this._createChangeEvent())}_updateTickIntervalPercent(){if(!this.tickInterval||!this._sliderDimensions)return;let te;if("auto"==this.tickInterval){let Ee=this.vertical?this._sliderDimensions.height:this._sliderDimensions.width;te=Math.ceil(30/(Ee*this.step/(this.max-this.min)))*this.step/Ee}else te=this.tickInterval*this.step/(this.max-this.min);this._tickIntervalPercent=Y(te)?te:0}_createChangeEvent(te=this.value){let Ee=new R;return Ee.source=this,Ee.value=te,Ee}_calculatePercentage(te){const Ee=((te||0)-this.min)/(this.max-this.min);return Y(Ee)?Ee:0}_calculateValue(te){return this.min+te*(this.max-this.min)}_clamp(te,Ee=0,it=1){return Math.max(Ee,Math.min(te,it))}_getSliderDimensions(){return this._sliderWrapper?this._sliderWrapper.nativeElement.getBoundingClientRect():null}_focusHostElement(te){this._elementRef.nativeElement.focus(te)}_blurHostElement(){this._elementRef.nativeElement.blur()}writeValue(te){this.value=te}registerOnChange(te){this._controlValueAccessorChangeFn=te}registerOnTouched(te){this.onTouched=te}setDisabledState(te){this.disabled=te}static{this.\u0275fac=function(Ee){return new(Ee||Q)(n.rXU(n.aKT),n.rXU(C.FN),n.rXU(n.gRc),n.rXU(S.dS,8),n.kS0("tabindex"),n.rXU(n.SKi),n.rXU(i.qQ),n.rXU(n.bc$,8))}}static{this.\u0275cmp=n.VBU({type:Q,selectors:[["mat-slider"]],viewQuery:function(Ee,it){if(1&Ee&&n.GBs(m,5),2&Ee){let Fe;n.mGM(Fe=n.lsd())&&(it._sliderWrapper=Fe.first)}},hostAttrs:["role","slider",1,"mat-slider","mat-focus-indicator"],hostVars:29,hostBindings:function(Ee,it){1&Ee&&n.bIt("focus",function(){return it._onFocus()})("blur",function(){return it._onBlur()})("keydown",function(Qe){return it._onKeydown(Qe)})("keyup",function(){return it._onKeyup()})("mouseenter",function(){return it._onMouseenter()})("selectstart",function(Qe){return Qe.preventDefault()}),2&Ee&&(n.Mr5("tabIndex",it.tabIndex),n.BMQ("aria-disabled",it.disabled)("aria-valuemax",it.max)("aria-valuemin",it.min)("aria-valuenow",it.value)("aria-valuetext",null==it.valueText?it.displayValue:it.valueText)("aria-orientation",it.vertical?"vertical":"horizontal"),n.AVh("mat-slider-disabled",it.disabled)("mat-slider-has-ticks",it.tickInterval)("mat-slider-horizontal",!it.vertical)("mat-slider-axis-inverted",it._shouldInvertAxis())("mat-slider-invert-mouse-coords",it._shouldInvertMouseCoords())("mat-slider-sliding",it._isSliding)("mat-slider-thumb-label-showing",it.thumbLabel)("mat-slider-vertical",it.vertical)("mat-slider-min-value",it._isMinValue())("mat-slider-hide-last-tick",it.disabled||it._isMinValue()&&it._getThumbGap()&&it._shouldInvertAxis())("_mat-animation-noopable","NoopAnimations"===it._animationMode))},inputs:{disabled:"disabled",color:"color",tabIndex:"tabIndex",invert:"invert",max:"max",min:"min",step:"step",thumbLabel:"thumbLabel",tickInterval:"tickInterval",value:"value",displayWith:"displayWith",valueText:"valueText",vertical:"vertical"},outputs:{change:"change",input:"input",valueChange:"valueChange"},exportAs:["matSlider"],features:[n.Jv_([T]),n.Vt3],decls:13,vars:6,consts:[["sliderWrapper",""],[1,"mat-slider-wrapper"],[1,"mat-slider-track-wrapper"],[1,"mat-slider-track-background",3,"ngStyle"],[1,"mat-slider-track-fill",3,"ngStyle"],[1,"mat-slider-ticks-container",3,"ngStyle"],[1,"mat-slider-ticks",3,"ngStyle"],[1,"mat-slider-thumb-container",3,"ngStyle"],[1,"mat-slider-focus-ring"],[1,"mat-slider-thumb"],[1,"mat-slider-thumb-label"],[1,"mat-slider-thumb-label-text"]],template:function(Ee,it){1&Ee&&(n.j41(0,"div",1,0)(2,"div",2),n.nrm(3,"div",3)(4,"div",4),n.k0s(),n.j41(5,"div",5),n.nrm(6,"div",6),n.k0s(),n.j41(7,"div",7),n.nrm(8,"div",8)(9,"div",9),n.j41(10,"div",10)(11,"span",11),n.EFF(12),n.k0s()()()()),2&Ee&&(n.R7$(3),n.Y8G("ngStyle",it._getTrackBackgroundStyles()),n.R7$(),n.Y8G("ngStyle",it._getTrackFillStyles()),n.R7$(),n.Y8G("ngStyle",it._getTicksContainerStyles()),n.R7$(),n.Y8G("ngStyle",it._getTicksStyles()),n.R7$(),n.Y8G("ngStyle",it._getThumbContainerStyles()),n.R7$(5),n.JRh(it.displayValue))},dependencies:[i.B3],styles:['.mat-slider{display:inline-block;position:relative;box-sizing:border-box;padding:8px;outline:none;vertical-align:middle}.mat-slider:not(.mat-slider-disabled):active,.mat-slider.mat-slider-sliding:not(.mat-slider-disabled){cursor:grabbing}.mat-slider-wrapper{-webkit-print-color-adjust:exact;color-adjust:exact;position:absolute}.mat-slider-track-wrapper{position:absolute;top:0;left:0;overflow:hidden}.mat-slider-track-fill{position:absolute;transform-origin:0 0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-track-background{position:absolute;transform-origin:100% 100%;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-ticks-container{position:absolute;left:0;top:0;overflow:hidden}.mat-slider-ticks{-webkit-background-clip:content-box;background-clip:content-box;background-repeat:repeat;box-sizing:border-box;opacity:0;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-thumb-container{position:absolute;z-index:1;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-focus-ring{position:absolute;width:30px;height:30px;border-radius:50%;transform:scale(0);opacity:0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider.cdk-keyboard-focused .mat-slider-focus-ring,.mat-slider.cdk-program-focused .mat-slider-focus-ring{transform:scale(1);opacity:1}.mat-slider:not(.mat-slider-disabled):not(.mat-slider-sliding) .mat-slider-thumb-label,.mat-slider:not(.mat-slider-disabled):not(.mat-slider-sliding) .mat-slider-thumb{cursor:grab}.mat-slider-thumb{position:absolute;right:-10px;bottom:-10px;box-sizing:border-box;width:20px;height:20px;border:3px solid rgba(0,0,0,0);border-radius:50%;transform:scale(0.7);transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),border-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-thumb-label{display:none;align-items:center;justify-content:center;position:absolute;width:28px;height:28px;border-radius:50%;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),border-radius 400ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.cdk-high-contrast-active .mat-slider-thumb-label{outline:solid 1px}.mat-slider-thumb-label-text{z-index:1;opacity:0;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-sliding .mat-slider-track-fill,.mat-slider-sliding .mat-slider-track-background,.mat-slider-sliding .mat-slider-thumb-container{transition-duration:0ms}.mat-slider-has-ticks .mat-slider-wrapper::after{content:"";position:absolute;border-width:0;border-style:solid;opacity:0;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-has-ticks.cdk-focused:not(.mat-slider-hide-last-tick) .mat-slider-wrapper::after,.mat-slider-has-ticks:hover:not(.mat-slider-hide-last-tick) .mat-slider-wrapper::after{opacity:1}.mat-slider-has-ticks.cdk-focused:not(.mat-slider-disabled) .mat-slider-ticks,.mat-slider-has-ticks:hover:not(.mat-slider-disabled) .mat-slider-ticks{opacity:1}.mat-slider-thumb-label-showing .mat-slider-focus-ring{display:none}.mat-slider-thumb-label-showing .mat-slider-thumb-label{display:flex}.mat-slider-axis-inverted .mat-slider-track-fill{transform-origin:100% 100%}.mat-slider-axis-inverted .mat-slider-track-background{transform-origin:0 0}.mat-slider:not(.mat-slider-disabled).cdk-focused.mat-slider-thumb-label-showing .mat-slider-thumb{transform:scale(0)}.mat-slider:not(.mat-slider-disabled).cdk-focused .mat-slider-thumb-label{border-radius:50% 50% 0}.mat-slider:not(.mat-slider-disabled).cdk-focused .mat-slider-thumb-label-text{opacity:1}.mat-slider:not(.mat-slider-disabled).cdk-mouse-focused .mat-slider-thumb,.mat-slider:not(.mat-slider-disabled).cdk-touch-focused .mat-slider-thumb,.mat-slider:not(.mat-slider-disabled).cdk-program-focused .mat-slider-thumb{border-width:2px;transform:scale(1)}.mat-slider-disabled .mat-slider-focus-ring{transform:scale(0);opacity:0}.mat-slider-disabled .mat-slider-thumb{border-width:4px;transform:scale(0.5)}.mat-slider-disabled .mat-slider-thumb-label{display:none}.mat-slider-horizontal{height:48px;min-width:128px}.mat-slider-horizontal .mat-slider-wrapper{height:2px;top:23px;left:8px;right:8px}.mat-slider-horizontal .mat-slider-wrapper::after{height:2px;border-left-width:2px;right:0;top:0}.mat-slider-horizontal .mat-slider-track-wrapper{height:2px;width:100%}.mat-slider-horizontal .mat-slider-track-fill{height:2px;width:100%;transform:scaleX(0)}.mat-slider-horizontal .mat-slider-track-background{height:2px;width:100%;transform:scaleX(1)}.mat-slider-horizontal .mat-slider-ticks-container{height:2px;width:100%}.cdk-high-contrast-active .mat-slider-horizontal .mat-slider-ticks-container{height:0;outline:solid 2px;top:1px}.mat-slider-horizontal .mat-slider-ticks{height:2px;width:100%}.mat-slider-horizontal .mat-slider-thumb-container{width:100%;height:0;top:50%}.mat-slider-horizontal .mat-slider-focus-ring{top:-15px;right:-15px}.mat-slider-horizontal .mat-slider-thumb-label{right:-14px;top:-40px;transform:translateY(26px) scale(0.01) rotate(45deg)}.mat-slider-horizontal .mat-slider-thumb-label-text{transform:rotate(-45deg)}.mat-slider-horizontal.cdk-focused .mat-slider-thumb-label{transform:rotate(45deg)}.cdk-high-contrast-active .mat-slider-horizontal.cdk-focused .mat-slider-thumb-label,.cdk-high-contrast-active .mat-slider-horizontal.cdk-focused .mat-slider-thumb-label-text{transform:none}.mat-slider-vertical{width:48px;min-height:128px}.mat-slider-vertical .mat-slider-wrapper{width:2px;top:8px;bottom:8px;left:23px}.mat-slider-vertical .mat-slider-wrapper::after{width:2px;border-top-width:2px;bottom:0;left:0}.mat-slider-vertical .mat-slider-track-wrapper{height:100%;width:2px}.mat-slider-vertical .mat-slider-track-fill{height:100%;width:2px;transform:scaleY(0)}.mat-slider-vertical .mat-slider-track-background{height:100%;width:2px;transform:scaleY(1)}.mat-slider-vertical .mat-slider-ticks-container{width:2px;height:100%}.cdk-high-contrast-active .mat-slider-vertical .mat-slider-ticks-container{width:0;outline:solid 2px;left:1px}.mat-slider-vertical .mat-slider-focus-ring{bottom:-15px;left:-15px}.mat-slider-vertical .mat-slider-ticks{width:2px;height:100%}.mat-slider-vertical .mat-slider-thumb-container{height:100%;width:0;left:50%}.mat-slider-vertical .mat-slider-thumb{-webkit-backface-visibility:hidden;backface-visibility:hidden}.mat-slider-vertical .mat-slider-thumb-label{bottom:-14px;left:-40px;transform:translateX(26px) scale(0.01) rotate(-45deg)}.mat-slider-vertical .mat-slider-thumb-label-text{transform:rotate(45deg)}.mat-slider-vertical.cdk-focused .mat-slider-thumb-label{transform:rotate(-45deg)}[dir=rtl] .mat-slider-wrapper::after{left:0;right:auto}[dir=rtl] .mat-slider-horizontal .mat-slider-track-fill{transform-origin:100% 100%}[dir=rtl] .mat-slider-horizontal .mat-slider-track-background{transform-origin:0 0}[dir=rtl] .mat-slider-horizontal.mat-slider-axis-inverted .mat-slider-track-fill{transform-origin:0 0}[dir=rtl] .mat-slider-horizontal.mat-slider-axis-inverted .mat-slider-track-background{transform-origin:100% 100%}.mat-slider._mat-animation-noopable .mat-slider-track-fill,.mat-slider._mat-animation-noopable .mat-slider-track-background,.mat-slider._mat-animation-noopable .mat-slider-ticks,.mat-slider._mat-animation-noopable .mat-slider-thumb-container,.mat-slider._mat-animation-noopable .mat-slider-focus-ring,.mat-slider._mat-animation-noopable .mat-slider-thumb,.mat-slider._mat-animation-noopable .mat-slider-thumb-label,.mat-slider._mat-animation-noopable .mat-slider-thumb-label-text,.mat-slider._mat-animation-noopable .mat-slider-has-ticks .mat-slider-wrapper::after{transition:none}'],encapsulation:2,changeDetection:0})}}return Q})();function Y(Q){return!isNaN(Q)&&isFinite(Q)}function ae(Q){return"t"===Q.type[0]}function G(Q,ce){let te;return te=ae(Q)?"number"==typeof ce?k(Q.touches,ce)||k(Q.changedTouches,ce):Q.touches[0]||Q.changedTouches[0]:Q,te?{x:te.clientX,y:te.clientY}:void 0}function k(Q,ce){for(let te=0;te<Q.length;te++)if(Q[te].identifier===ce)return Q[te]}let q=(()=>{class Q{static{this.\u0275fac=function(Ee){return new(Ee||Q)}}static{this.\u0275mod=n.$C({type:Q})}static{this.\u0275inj=n.G2t({imports:[i.MD,h.yE,h.yE]})}}return Q})()},33668:(St,z,s)=>{"use strict";s.d(z,{Cn:()=>le,K1:()=>vt,S_:()=>Ee,eg:()=>rt,fb:()=>Fe,hE:()=>Ke,sK:()=>Pe,uk:()=>se});var i=s(58527),n=s(31308),h=s(6364),C=s(25373),S=s(80583),M=s(16229),P=s(10399),x=s(43848),A=s(62366),g=s(34593),m=s(72147),l=s(65706),r=s(4208),u=s(8619),v=s(65726),E=s(51635),T=s(61142),R=s(76614),B=s(40262),U=s(51394),Y=s(61904),ae=s(72653),G=s(64409);const k=["mat-menu-item",""],X=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],q=["mat-icon, [matMenuItemIcon]","*"];function Q(Xe,Se){1&Xe&&(i.qSk(),i.j41(0,"svg",3),i.nrm(1,"polygon",4),i.k0s())}const Ee=new i.nKC("MAT_MENU_PANEL"),it=(0,E.GG)((0,E.Ob)(class{}));let Fe=(()=>{class Xe extends it{constructor(fe,Ne,ye,Ot,sn){super(),this._elementRef=fe,this._document=Ne,this._focusMonitor=ye,this._parentMenu=Ot,this._changeDetectorRef=sn,this.role="menuitem",this._hovered=new S.B7,this._focused=new S.B7,this._highlighted=!1,this._triggersSubmenu=!1,Ot?.addItem?.(this)}focus(fe,Ne){this._focusMonitor&&fe?this._focusMonitor.focusVia(this._getHostElement(),fe,Ne):this._getHostElement().focus(Ne),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(fe){this.disabled&&(fe.preventDefault(),fe.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){const fe=this._elementRef.nativeElement.cloneNode(!0),Ne=fe.querySelectorAll("mat-icon, .material-icons");for(let ye=0;ye<Ne.length;ye++)Ne[ye].remove();return fe.textContent?.trim()||""}_setHighlighted(fe){this._highlighted=fe,this._changeDetectorRef?.markForCheck()}_setTriggersSubmenu(fe){this._triggersSubmenu=fe,this._changeDetectorRef?.markForCheck()}_hasFocus(){return this._document&&this._document.activeElement===this._getHostElement()}static{this.\u0275fac=function(Ne){return new(Ne||Xe)(i.rXU(i.aKT),i.rXU(T.qQ),i.rXU(n.FN),i.rXU(Ee,8),i.rXU(i.gRc))}}static{this.\u0275cmp=i.VBU({type:Xe,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-mdc-menu-item","mat-mdc-focus-indicator"],hostVars:8,hostBindings:function(Ne,ye){1&Ne&&i.bIt("click",function(sn){return ye._checkDisabled(sn)})("mouseenter",function(){return ye._handleMouseEnter()}),2&Ne&&(i.BMQ("role",ye.role)("tabindex",ye._getTabIndex())("aria-disabled",ye.disabled)("disabled",ye.disabled||null),i.AVh("mat-mdc-menu-item-highlighted",ye._highlighted)("mat-mdc-menu-item-submenu-trigger",ye._triggersSubmenu))},inputs:{disabled:"disabled",disableRipple:"disableRipple",role:"role"},exportAs:["matMenuItem"],features:[i.Vt3],attrs:k,ngContentSelectors:q,decls:5,vars:3,consts:[[1,"mat-mdc-menu-item-text"],["matRipple","",1,"mat-mdc-menu-ripple",3,"matRippleDisabled","matRippleTrigger"],["class","mat-mdc-menu-submenu-icon","viewBox","0 0 5 10","focusable","false","aria-hidden","true",4,"ngIf"],["viewBox","0 0 5 10","focusable","false","aria-hidden","true",1,"mat-mdc-menu-submenu-icon"],["points","0,0 5,5 0,10"]],template:function(Ne,ye){1&Ne&&(i.NAR(X),i.SdG(0),i.j41(1,"span",0),i.SdG(2,1),i.k0s(),i.nrm(3,"div",1),i.DNE(4,Q,2,0,"svg",2)),2&Ne&&(i.R7$(3),i.Y8G("matRippleDisabled",ye.disableRipple||ye.disabled)("matRippleTrigger",ye._getHostElement()),i.R7$(),i.Y8G("ngIf",ye._triggersSubmenu))},dependencies:[T.bT,E.r6],encapsulation:2,changeDetection:0})}}return Xe})();const nt=new i.nKC("MatMenuContent"),Ke={transformMenu:(0,B.hZ)("transformMenu",[(0,B.wk)("void",(0,B.iF)({opacity:0,transform:"scale(0.8)"})),(0,B.kY)("void => enter",(0,B.i0)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,B.iF)({opacity:1,transform:"scale(1)"}))),(0,B.kY)("* => void",(0,B.i0)("100ms 25ms linear",(0,B.iF)({opacity:0})))]),fadeInItems:(0,B.hZ)("fadeInItems",[(0,B.wk)("showing",(0,B.iF)({opacity:1})),(0,B.kY)("void => *",[(0,B.iF)({opacity:0}),(0,B.i0)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let dt=0;const Pe=new i.nKC("mat-menu-default-options",{providedIn:"root",factory:function J(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}});let vt=(()=>{class Xe{get xPosition(){return this._xPosition}set xPosition(fe){this._xPosition=fe,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(fe){this._yPosition=fe,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(fe){this._overlapTrigger=(0,h.he)(fe)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(fe){this._hasBackdrop=(0,h.he)(fe)}set panelClass(fe){const Ne=this._previousPanelClass;Ne&&Ne.length&&Ne.split(" ").forEach(ye=>{this._classList[ye]=!1}),this._previousPanelClass=fe,fe&&fe.length&&(fe.split(" ").forEach(ye=>{this._classList[ye]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(fe){this.panelClass=fe}constructor(fe,Ne,ye,Ot){this._elementRef=fe,this._ngZone=Ne,this._changeDetectorRef=Ot,this._directDescendantItems=new i.rOR,this._classList={},this._panelAnimationState="void",this._animationDone=new S.B7,this.closed=new i.bkB,this.close=this.closed,this.panelId="mat-menu-panel-"+dt++,this.overlayPanelClass=ye.overlayPanelClass||"",this._xPosition=ye.xPosition,this._yPosition=ye.yPosition,this.backdropClass=ye.backdropClass,this._overlapTrigger=ye.overlapTrigger,this._hasBackdrop=ye.hasBackdrop}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new n.Bu(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe((0,g.Z)(this._directDescendantItems),(0,m.n)(fe=>(0,M.h)(...fe.map(Ne=>Ne._focused)))).subscribe(fe=>this._keyManager.updateActiveItem(fe)),this._directDescendantItems.changes.subscribe(fe=>{const Ne=this._keyManager;if("enter"===this._panelAnimationState&&Ne.activeItem?._hasFocus()){const ye=fe.toArray(),Ot=Math.max(0,Math.min(ye.length-1,Ne.activeItemIndex||0));ye[Ot]&&!ye[Ot].disabled?Ne.setActiveItem(Ot):Ne.setNextItemActive()}})}ngOnDestroy(){this._keyManager?.destroy(),this._directDescendantItems.destroy(),this.closed.complete(),this._firstItemFocusSubscription?.unsubscribe()}_hovered(){return this._directDescendantItems.changes.pipe((0,g.Z)(this._directDescendantItems),(0,m.n)(Ne=>(0,M.h)(...Ne.map(ye=>ye._hovered))))}addItem(fe){}removeItem(fe){}_handleKeydown(fe){const Ne=fe.keyCode,ye=this._keyManager;switch(Ne){case C._f:(0,C.rp)(fe)||(fe.preventDefault(),this.closed.emit("keydown"));break;case C.UQ:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case C.LE:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(Ne===C.i7||Ne===C.n6)&&ye.setFocusOrigin("keyboard"),void ye.onKeydown(fe)}fe.stopPropagation()}focusFirstItem(fe="program"){this._firstItemFocusSubscription?.unsubscribe(),this._firstItemFocusSubscription=this._ngZone.onStable.pipe((0,l.s)(1)).subscribe(()=>{let Ne=null;if(this._directDescendantItems.length&&(Ne=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!Ne||!Ne.contains(document.activeElement)){const ye=this._keyManager;ye.setFocusOrigin(fe).setFirstItemActive(),!ye.activeItem&&Ne&&Ne.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(fe){const Ne=Math.min(this._baseElevation+fe,24),ye=`${this._elevationPrefix}${Ne}`,Ot=Object.keys(this._classList).find(sn=>sn.startsWith(this._elevationPrefix));(!Ot||Ot===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[ye]=!0,this._previousElevation=ye)}setPositionClasses(fe=this.xPosition,Ne=this.yPosition){const ye=this._classList;ye["mat-menu-before"]="before"===fe,ye["mat-menu-after"]="after"===fe,ye["mat-menu-above"]="above"===Ne,ye["mat-menu-below"]="below"===Ne,this._changeDetectorRef?.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(fe){this._animationDone.next(fe),this._isAnimating=!1}_onAnimationStart(fe){this._isAnimating=!0,"enter"===fe.toState&&0===this._keyManager.activeItemIndex&&(fe.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe((0,g.Z)(this._allItems)).subscribe(fe=>{this._directDescendantItems.reset(fe.filter(Ne=>Ne._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}static{this.\u0275fac=function(Ne){return new(Ne||Xe)(i.rXU(i.aKT),i.rXU(i.SKi),i.rXU(Pe),i.rXU(i.gRc))}}static{this.\u0275dir=i.FsC({type:Xe,contentQueries:function(Ne,ye,Ot){if(1&Ne&&(i.wni(Ot,nt,5),i.wni(Ot,Fe,5),i.wni(Ot,Fe,4)),2&Ne){let sn;i.mGM(sn=i.lsd())&&(ye.lazyContent=sn.first),i.mGM(sn=i.lsd())&&(ye._allItems=sn),i.mGM(sn=i.lsd())&&(ye.items=sn)}},viewQuery:function(Ne,ye){if(1&Ne&&i.GBs(i.C4Q,5),2&Ne){let Ot;i.mGM(Ot=i.lsd())&&(ye.templateRef=Ot.first)}},inputs:{backdropClass:"backdropClass",ariaLabel:[i.Mj6.None,"aria-label","ariaLabel"],ariaLabelledby:[i.Mj6.None,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[i.Mj6.None,"aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:[i.Mj6.None,"class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}})}}return Xe})();const ue=new i.nKC("mat-menu-scroll-strategy"),se={provide:ue,deps:[Y.hJ],useFactory:function et(Xe){return()=>Xe.scrollStrategies.reposition()}},Ce=(0,ae.BQ)({passive:!0});let rt=(()=>{class Xe{get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(fe){this.menu=fe}get menu(){return this._menu}set menu(fe){fe!==this._menu&&(this._menu=fe,this._menuCloseSubscription.unsubscribe(),fe&&(this._menuCloseSubscription=fe.close.subscribe(Ne=>{this._destroyMenu(Ne),("click"===Ne||"tab"===Ne)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(Ne)})),this._menuItemInstance?._setTriggersSubmenu(this.triggersSubmenu()))}constructor(fe,Ne,ye,Ot,sn,dn,yn,At,Vt){this._overlay=fe,this._element=Ne,this._viewContainerRef=ye,this._menuItemInstance=dn,this._dir=yn,this._focusMonitor=At,this._ngZone=Vt,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=P.y.EMPTY,this._hoverSubscription=P.y.EMPTY,this._menuCloseSubscription=P.y.EMPTY,this._changeDetectorRef=(0,i.WQX)(i.gRc),this._handleTouchStart=Qt=>{(0,n.w6)(Qt)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new i.bkB,this.onMenuOpen=this.menuOpened,this.menuClosed=new i.bkB,this.onMenuClose=this.menuClosed,this._scrollStrategy=Ot,this._parentMaterialMenu=sn instanceof vt?sn:void 0,Ne.nativeElement.addEventListener("touchstart",this._handleTouchStart,Ce)}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,Ce),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!!(this._menuItemInstance&&this._parentMaterialMenu&&this.menu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){const fe=this.menu;if(this._menuOpen||!fe)return;const Ne=this._createOverlay(fe),ye=Ne.getConfig(),Ot=ye.positionStrategy;this._setPosition(fe,Ot),ye.hasBackdrop=null==fe.hasBackdrop?!this.triggersSubmenu():fe.hasBackdrop,Ne.attach(this._getPortal(fe)),fe.lazyContent&&fe.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(fe),fe instanceof vt&&(fe._startAnimation(),fe._directDescendantItems.changes.pipe((0,r.Q)(fe.close)).subscribe(()=>{Ot.withLockedPosition(!1).reapplyLastPosition(),Ot.withLockedPosition(!0)}))}closeMenu(){this.menu?.close.emit()}focus(fe,Ne){this._focusMonitor&&fe?this._focusMonitor.focusVia(this._element,fe,Ne):this._element.nativeElement.focus(Ne)}updatePosition(){this._overlayRef?.updatePosition()}_destroyMenu(fe){if(!this._overlayRef||!this.menuOpen)return;const Ne=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===fe||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,Ne instanceof vt?(Ne._resetAnimation(),Ne.lazyContent?Ne._animationDone.pipe((0,u.p)(ye=>"void"===ye.toState),(0,l.s)(1),(0,r.Q)(Ne.lazyContent._attached)).subscribe({next:()=>Ne.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),Ne?.lazyContent?.detach())}_initMenu(fe){fe.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,fe.direction=this.dir,this._setMenuElevation(fe),fe.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(fe){if(fe.setElevation){let Ne=0,ye=fe.parentMenu;for(;ye;)Ne++,ye=ye.parentMenu;fe.setElevation(Ne)}}_setIsMenuOpen(fe){fe!==this._menuOpen&&(this._menuOpen=fe,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(fe),this._changeDetectorRef.markForCheck())}_createOverlay(fe){if(!this._overlayRef){const Ne=this._getOverlayConfig(fe);this._subscribeToPositions(fe,Ne.positionStrategy),this._overlayRef=this._overlay.create(Ne),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(fe){return new Y.rR({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:fe.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:fe.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(fe,Ne){fe.setPositionClasses&&Ne.positionChanges.subscribe(ye=>{const Ot="start"===ye.connectionPair.overlayX?"after":"before",sn="top"===ye.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>fe.setPositionClasses(Ot,sn)):fe.setPositionClasses(Ot,sn)})}_setPosition(fe,Ne){let[ye,Ot]="before"===fe.xPosition?["end","start"]:["start","end"],[sn,dn]="above"===fe.yPosition?["bottom","top"]:["top","bottom"],[yn,At]=[sn,dn],[Vt,Qt]=[ye,Ot],Jt=0;if(this.triggersSubmenu()){if(Qt=ye="before"===fe.xPosition?"start":"end",Ot=Vt="end"===ye?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){const Zt=this._parentMaterialMenu.items.first;this._parentInnerPadding=Zt?Zt._getHostElement().offsetTop:0}Jt="bottom"===sn?this._parentInnerPadding:-this._parentInnerPadding}}else fe.overlapTrigger||(yn="top"===sn?"bottom":"top",At="top"===dn?"bottom":"top");Ne.withPositions([{originX:ye,originY:yn,overlayX:Vt,overlayY:sn,offsetY:Jt},{originX:Ot,originY:yn,overlayX:Qt,overlayY:sn,offsetY:Jt},{originX:ye,originY:At,overlayX:Vt,overlayY:dn,offsetY:-Jt},{originX:Ot,originY:At,overlayX:Qt,overlayY:dn,offsetY:-Jt}])}_menuClosingActions(){const fe=this._overlayRef.backdropClick(),Ne=this._overlayRef.detachments(),ye=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,x.of)(),Ot=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,u.p)(sn=>sn!==this._menuItemInstance),(0,u.p)(()=>this._menuOpen)):(0,x.of)();return(0,M.h)(fe,ye,Ot,Ne)}_handleMousedown(fe){(0,n._G)(fe)||(this._openedBy=0===fe.button?"mouse":void 0,this.triggersSubmenu()&&fe.preventDefault())}_handleKeydown(fe){const Ne=fe.keyCode;(Ne===C.Fm||Ne===C.t6)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(Ne===C.LE&&"ltr"===this.dir||Ne===C.UQ&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(fe){this.triggersSubmenu()?(fe.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,u.p)(fe=>fe===this._menuItemInstance&&!fe.disabled),(0,v.c)(0,A.$)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof vt&&this.menu._isAnimating?this.menu._animationDone.pipe((0,l.s)(1),(0,v.c)(0,A.$),(0,r.Q)(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(fe){return(!this._portal||this._portal.templateRef!==fe.templateRef)&&(this._portal=new R.VA(fe.templateRef,this._viewContainerRef)),this._portal}static{this.\u0275fac=function(Ne){return new(Ne||Xe)(i.rXU(Y.hJ),i.rXU(i.aKT),i.rXU(i.c1b),i.rXU(ue),i.rXU(Ee,8),i.rXU(Fe,10),i.rXU(U.dS,8),i.rXU(n.FN),i.rXU(i.SKi))}}static{this.\u0275dir=i.FsC({type:Xe,hostVars:3,hostBindings:function(Ne,ye){1&Ne&&i.bIt("click",function(sn){return ye._handleClick(sn)})("mousedown",function(sn){return ye._handleMousedown(sn)})("keydown",function(sn){return ye._handleKeydown(sn)}),2&Ne&&i.BMQ("aria-haspopup",ye.menu?"menu":null)("aria-expanded",ye.menuOpen)("aria-controls",ye.menuOpen?ye.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:[i.Mj6.None,"mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:[i.Mj6.None,"matMenuTriggerFor","menu"],menuData:[i.Mj6.None,"matMenuTriggerData","menuData"],restoreFocus:[i.Mj6.None,"matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}})}}return Xe})(),le=(()=>{class Xe{static{this.\u0275fac=function(Ne){return new(Ne||Xe)}}static{this.\u0275mod=i.$C({type:Xe})}static{this.\u0275inj=i.G2t({providers:[se],imports:[T.MD,E.pZ,E.yE,Y.z_,G.Gj,E.yE]})}}return Xe})()},20288:(St,z,s)=>{"use strict";s.d(z,{HM:()=>A,PO:()=>m});var i=s(58527),h=(s(61142),s(51635)),C=s(6364);const S=new i.nKC("MAT_PROGRESS_BAR_DEFAULT_OPTIONS"),x=(0,h.Zc)(class{constructor(l){this._elementRef=l}},"primary");let A=(()=>{class l extends x{constructor(u,v,E,T,R){super(u),this._ngZone=v,this._changeDetectorRef=E,this._animationMode=T,this._isNoopAnimation=!1,this._value=0,this._bufferValue=0,this.animationEnd=new i.bkB,this._mode="determinate",this._transitionendHandler=B=>{0===this.animationEnd.observers.length||!B.target||!B.target.classList.contains("mdc-linear-progress__primary-bar")||("determinate"===this.mode||"buffer"===this.mode)&&this._ngZone.run(()=>this.animationEnd.next({value:this.value}))},this._isNoopAnimation="NoopAnimations"===T,R&&(R.color&&(this.color=this.defaultColor=R.color),this.mode=R.mode||this.mode)}get value(){return this._value}set value(u){this._value=g((0,C.OE)(u)),this._changeDetectorRef.markForCheck()}get bufferValue(){return this._bufferValue||0}set bufferValue(u){this._bufferValue=g((0,C.OE)(u)),this._changeDetectorRef.markForCheck()}get mode(){return this._mode}set mode(u){this._mode=u,this._changeDetectorRef.markForCheck()}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("transitionend",this._transitionendHandler)})}ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._transitionendHandler)}_getPrimaryBarTransform(){return`scaleX(${this._isIndeterminate()?1:this.value/100})`}_getBufferBarFlexBasis(){return`${"buffer"===this.mode?this.bufferValue:100}%`}_isIndeterminate(){return"indeterminate"===this.mode||"query"===this.mode}static{this.\u0275fac=function(v){return new(v||l)(i.rXU(i.aKT),i.rXU(i.SKi),i.rXU(i.gRc),i.rXU(i.bc$,8),i.rXU(S,8))}}static{this.\u0275cmp=i.VBU({type:l,selectors:[["mat-progress-bar"]],hostAttrs:["role","progressbar","aria-valuemin","0","aria-valuemax","100","tabindex","-1",1,"mat-mdc-progress-bar","mdc-linear-progress"],hostVars:8,hostBindings:function(v,E){2&v&&(i.BMQ("aria-valuenow",E._isIndeterminate()?null:E.value)("mode",E.mode),i.AVh("_mat-animation-noopable",E._isNoopAnimation)("mdc-linear-progress--animation-ready",!E._isNoopAnimation)("mdc-linear-progress--indeterminate",E._isIndeterminate()))},inputs:{color:"color",value:"value",bufferValue:"bufferValue",mode:"mode"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],features:[i.Vt3],decls:7,vars:4,consts:[["aria-hidden","true",1,"mdc-linear-progress__buffer"],[1,"mdc-linear-progress__buffer-bar"],[1,"mdc-linear-progress__buffer-dots"],["aria-hidden","true",1,"mdc-linear-progress__bar","mdc-linear-progress__primary-bar"],[1,"mdc-linear-progress__bar-inner"],["aria-hidden","true",1,"mdc-linear-progress__bar","mdc-linear-progress__secondary-bar"]],template:function(v,E){1&v&&(i.j41(0,"div",0),i.nrm(1,"div",1)(2,"div",2),i.k0s(),i.j41(3,"div",3),i.nrm(4,"span",4),i.k0s(),i.j41(5,"div",5),i.nrm(6,"span",4),i.k0s()),2&v&&(i.R7$(),i.xc7("flex-basis",E._getBufferBarFlexBasis()),i.R7$(2),i.xc7("transform",E._getPrimaryBarTransform()))},styles:["@keyframes mdc-linear-progress-primary-indeterminate-translate{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(var(--mdc-linear-progress-primary-half))}100%{transform:translateX(var(--mdc-linear-progress-primary-full))}}@keyframes mdc-linear-progress-primary-indeterminate-scale{0%{transform:scaleX(0.08)}36.65%{animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);transform:scaleX(0.08)}69.15%{animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);transform:scaleX(0.661479)}100%{transform:scaleX(0.08)}}@keyframes mdc-linear-progress-secondary-indeterminate-translate{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(var(--mdc-linear-progress-secondary-quarter))}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(var(--mdc-linear-progress-secondary-half))}100%{transform:translateX(var(--mdc-linear-progress-secondary-full))}}@keyframes mdc-linear-progress-secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.205028, 0.057051, 0.57661, 0.453971);transform:scaleX(0.08)}19.15%{animation-timing-function:cubic-bezier(0.152313, 0.196432, 0.648374, 1.004315);transform:scaleX(0.457104)}44.15%{animation-timing-function:cubic-bezier(0.257759, -0.003163, 0.211762, 1.38179);transform:scaleX(0.72796)}100%{transform:scaleX(0.08)}}@keyframes mdc-linear-progress-primary-indeterminate-translate-reverse{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(var(--mdc-linear-progress-primary-half-neg))}100%{transform:translateX(var(--mdc-linear-progress-primary-full-neg))}}@keyframes mdc-linear-progress-secondary-indeterminate-translate-reverse{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(var(--mdc-linear-progress-secondary-quarter-neg))}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(var(--mdc-linear-progress-secondary-half-neg))}100%{transform:translateX(var(--mdc-linear-progress-secondary-full-neg))}}@keyframes mdc-linear-progress-buffering-reverse{from{transform:translateX(-10px)}}.mdc-linear-progress{position:relative;width:100%;transform:translateZ(0);outline:1px solid rgba(0,0,0,0);overflow-x:hidden;transition:opacity 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}@media screen and (forced-colors: active){.mdc-linear-progress{outline-color:CanvasText}}.mdc-linear-progress__bar{position:absolute;top:0;bottom:0;margin:auto 0;width:100%;animation:none;transform-origin:top left;transition:transform 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-linear-progress__bar-inner{display:inline-block;position:absolute;width:100%;animation:none;border-top-style:solid}.mdc-linear-progress__buffer{display:flex;position:absolute;top:0;bottom:0;margin:auto 0;width:100%;overflow:hidden}.mdc-linear-progress__buffer-dots{background-repeat:repeat-x;flex:auto;transform:rotate(180deg);-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' enable-background='new 0 0 5 2' xml:space='preserve' viewBox='0 0 5 2' preserveAspectRatio='xMinYMin slice'%3E%3Ccircle cx='1' cy='1' r='1'/%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' enable-background='new 0 0 5 2' xml:space='preserve' viewBox='0 0 5 2' preserveAspectRatio='xMinYMin slice'%3E%3Ccircle cx='1' cy='1' r='1'/%3E%3C/svg%3E\");animation:mdc-linear-progress-buffering 250ms infinite linear}.mdc-linear-progress__buffer-bar{flex:0 1 100%;transition:flex-basis 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-linear-progress__primary-bar{transform:scaleX(0)}.mdc-linear-progress__secondary-bar{display:none}.mdc-linear-progress--indeterminate .mdc-linear-progress__bar{transition:none}.mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar{left:-145.166611%}.mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar{left:-54.888891%;display:block}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar{animation:mdc-linear-progress-primary-indeterminate-translate 2s infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar>.mdc-linear-progress__bar-inner{animation:mdc-linear-progress-primary-indeterminate-scale 2s infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar{animation:mdc-linear-progress-secondary-indeterminate-translate 2s infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar>.mdc-linear-progress__bar-inner{animation:mdc-linear-progress-secondary-indeterminate-scale 2s infinite linear}[dir=rtl] .mdc-linear-progress:not([dir=ltr]) .mdc-linear-progress__bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]) .mdc-linear-progress__bar{right:0;-webkit-transform-origin:center right;transform-origin:center right}[dir=rtl] .mdc-linear-progress:not([dir=ltr]).mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]).mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar{animation-name:mdc-linear-progress-primary-indeterminate-translate-reverse}[dir=rtl] .mdc-linear-progress:not([dir=ltr]).mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]).mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar{animation-name:mdc-linear-progress-secondary-indeterminate-translate-reverse}[dir=rtl] .mdc-linear-progress:not([dir=ltr]) .mdc-linear-progress__buffer-dots,.mdc-linear-progress[dir=rtl]:not([dir=ltr]) .mdc-linear-progress__buffer-dots{animation:mdc-linear-progress-buffering-reverse 250ms infinite linear;transform:rotate(0)}[dir=rtl] .mdc-linear-progress:not([dir=ltr]).mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]).mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar{right:-145.166611%;left:auto}[dir=rtl] .mdc-linear-progress:not([dir=ltr]).mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]).mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar{right:-54.888891%;left:auto}.mdc-linear-progress--closed{opacity:0}.mdc-linear-progress--closed-animation-off .mdc-linear-progress__buffer-dots{animation:none}.mdc-linear-progress--closed-animation-off.mdc-linear-progress--indeterminate .mdc-linear-progress__bar,.mdc-linear-progress--closed-animation-off.mdc-linear-progress--indeterminate .mdc-linear-progress__bar .mdc-linear-progress__bar-inner{animation:none}@keyframes mdc-linear-progress-buffering{from{transform:rotate(180deg) translateX(calc(var(--mdc-linear-progress-track-height) * -2.5))}}.mdc-linear-progress__bar-inner{border-color:var(--mdc-linear-progress-active-indicator-color)}@media(forced-colors: active){.mdc-linear-progress__buffer-dots{background-color:ButtonBorder}}@media all and (-ms-high-contrast: none),(-ms-high-contrast: active){.mdc-linear-progress__buffer-dots{background-color:rgba(0,0,0,0);background-image:url(\"data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' enable-background='new 0 0 5 2' xml:space='preserve' viewBox='0 0 5 2' preserveAspectRatio='none slice'%3E%3Ccircle cx='1' cy='1' r='1' fill=''/%3E%3C/svg%3E\")}}.mdc-linear-progress{height:max(var(--mdc-linear-progress-track-height), var(--mdc-linear-progress-active-indicator-height))}@media all and (-ms-high-contrast: none),(-ms-high-contrast: active){.mdc-linear-progress{height:4px}}.mdc-linear-progress__bar{height:var(--mdc-linear-progress-active-indicator-height)}.mdc-linear-progress__bar-inner{border-top-width:var(--mdc-linear-progress-active-indicator-height)}.mdc-linear-progress__buffer{height:var(--mdc-linear-progress-track-height)}@media all and (-ms-high-contrast: none),(-ms-high-contrast: active){.mdc-linear-progress__buffer-dots{background-size:10px var(--mdc-linear-progress-track-height)}}.mdc-linear-progress__buffer{border-radius:var(--mdc-linear-progress-track-shape)}.mat-mdc-progress-bar{--mdc-linear-progress-active-indicator-height:4px;--mdc-linear-progress-track-height:4px;--mdc-linear-progress-track-shape:0}.mat-mdc-progress-bar{display:block;text-align:left;--mdc-linear-progress-primary-half: 83.67142%;--mdc-linear-progress-primary-full: 200.611057%;--mdc-linear-progress-secondary-quarter: 37.651913%;--mdc-linear-progress-secondary-half: 84.386165%;--mdc-linear-progress-secondary-full: 160.277782%;--mdc-linear-progress-primary-half-neg: -83.67142%;--mdc-linear-progress-primary-full-neg: -200.611057%;--mdc-linear-progress-secondary-quarter-neg: -37.651913%;--mdc-linear-progress-secondary-half-neg: -84.386165%;--mdc-linear-progress-secondary-full-neg: -160.277782%}[dir=rtl] .mat-mdc-progress-bar{text-align:right}.mat-mdc-progress-bar[mode=query]{transform:scaleX(-1)}.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__buffer-dots,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__primary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__secondary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__bar-inner.mdc-linear-progress__bar-inner{animation:none}.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__primary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__buffer-bar{transition:transform 1ms}"],encapsulation:2,changeDetection:0})}}return l})();function g(l,r=0,u=100){return Math.max(r,Math.min(u,l))}let m=(()=>{class l{static{this.\u0275fac=function(v){return new(v||l)}}static{this.\u0275mod=i.$C({type:l})}static{this.\u0275inj=i.G2t({imports:[h.yE]})}}return l})()},99204:(St,z,s)=>{"use strict";s.d(z,{D6:()=>u,LG:()=>l});var i=s(58527),n=s(51635),h=s(6364),C=s(61142);const S=["determinateSpinner"];function M(v,E){if(1&v&&(i.qSk(),i.j41(0,"svg",11),i.nrm(1,"circle",12),i.k0s()),2&v){const T=i.XpG();i.BMQ("viewBox",T._viewBox()),i.R7$(),i.xc7("stroke-dasharray",T._strokeCircumference(),"px")("stroke-dashoffset",T._strokeCircumference()/2,"px")("stroke-width",T._circleStrokeWidth(),"%"),i.BMQ("r",T._circleRadius())}}const P=(0,n.Zc)(class{constructor(v){this._elementRef=v}},"primary"),x=new i.nKC("mat-progress-spinner-default-options",{providedIn:"root",factory:function A(){return{diameter:g}}}),g=100;let l=(()=>{class v extends P{constructor(T,R,B){super(T),this.mode="mat-spinner"===this._elementRef.nativeElement.nodeName.toLowerCase()?"indeterminate":"determinate",this._value=0,this._diameter=g,this._noopAnimations="NoopAnimations"===R&&!!B&&!B._forceAnimations,B&&(B.color&&(this.color=this.defaultColor=B.color),B.diameter&&(this.diameter=B.diameter),B.strokeWidth&&(this.strokeWidth=B.strokeWidth))}get value(){return"determinate"===this.mode?this._value:0}set value(T){this._value=Math.max(0,Math.min(100,(0,h.OE)(T)))}get diameter(){return this._diameter}set diameter(T){this._diameter=(0,h.OE)(T)}get strokeWidth(){return this._strokeWidth??this.diameter/10}set strokeWidth(T){this._strokeWidth=(0,h.OE)(T)}_circleRadius(){return(this.diameter-10)/2}_viewBox(){const T=2*this._circleRadius()+this.strokeWidth;return`0 0 ${T} ${T}`}_strokeCircumference(){return 2*Math.PI*this._circleRadius()}_strokeDashOffset(){return"determinate"===this.mode?this._strokeCircumference()*(100-this._value)/100:null}_circleStrokeWidth(){return this.strokeWidth/this.diameter*100}static{this.\u0275fac=function(R){return new(R||v)(i.rXU(i.aKT),i.rXU(i.bc$,8),i.rXU(x))}}static{this.\u0275cmp=i.VBU({type:v,selectors:[["mat-progress-spinner"],["mat-spinner"]],viewQuery:function(R,B){if(1&R&&i.GBs(S,5),2&R){let U;i.mGM(U=i.lsd())&&(B._determinateCircle=U.first)}},hostAttrs:["role","progressbar","tabindex","-1",1,"mat-mdc-progress-spinner","mdc-circular-progress"],hostVars:16,hostBindings:function(R,B){2&R&&(i.BMQ("aria-valuemin",0)("aria-valuemax",100)("aria-valuenow","determinate"===B.mode?B.value:null)("mode",B.mode),i.xc7("width",B.diameter,"px")("height",B.diameter,"px")("--mdc-circular-progress-size",B.diameter+"px")("--mdc-circular-progress-active-indicator-width",B.diameter+"px"),i.AVh("_mat-animation-noopable",B._noopAnimations)("mdc-circular-progress--indeterminate","indeterminate"===B.mode))},inputs:{color:"color",mode:"mode",value:"value",diameter:"diameter",strokeWidth:"strokeWidth"},exportAs:["matProgressSpinner"],features:[i.Vt3],decls:14,vars:11,consts:[["circle",""],["determinateSpinner",""],["aria-hidden","true",1,"mdc-circular-progress__determinate-container"],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__determinate-circle-graphic"],["cx","50%","cy","50%",1,"mdc-circular-progress__determinate-circle"],["aria-hidden","true",1,"mdc-circular-progress__indeterminate-container"],[1,"mdc-circular-progress__spinner-layer"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-left"],[3,"ngTemplateOutlet"],[1,"mdc-circular-progress__gap-patch"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-right"],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__indeterminate-circle-graphic"],["cx","50%","cy","50%"]],template:function(R,B){if(1&R&&(i.DNE(0,M,2,8,"ng-template",null,0,i.C5r),i.j41(2,"div",2,1),i.qSk(),i.j41(4,"svg",3),i.nrm(5,"circle",4),i.k0s()(),i.joV(),i.j41(6,"div",5)(7,"div",6)(8,"div",7),i.eu8(9,8),i.k0s(),i.j41(10,"div",9),i.eu8(11,8),i.k0s(),i.j41(12,"div",10),i.eu8(13,8),i.k0s()()()),2&R){const U=i.sdS(1);i.R7$(4),i.BMQ("viewBox",B._viewBox()),i.R7$(),i.xc7("stroke-dasharray",B._strokeCircumference(),"px")("stroke-dashoffset",B._strokeDashOffset(),"px")("stroke-width",B._circleStrokeWidth(),"%"),i.BMQ("r",B._circleRadius()),i.R7$(4),i.Y8G("ngTemplateOutlet",U),i.R7$(2),i.Y8G("ngTemplateOutlet",U),i.R7$(2),i.Y8G("ngTemplateOutlet",U)}},dependencies:[C.T3],styles:["@keyframes mdc-circular-progress-container-rotate{to{transform:rotate(360deg)}}@keyframes mdc-circular-progress-spinner-layer-rotate{12.5%{transform:rotate(135deg)}25%{transform:rotate(270deg)}37.5%{transform:rotate(405deg)}50%{transform:rotate(540deg)}62.5%{transform:rotate(675deg)}75%{transform:rotate(810deg)}87.5%{transform:rotate(945deg)}100%{transform:rotate(1080deg)}}@keyframes mdc-circular-progress-color-1-fade-in-out{from{opacity:.99}25%{opacity:.99}26%{opacity:0}89%{opacity:0}90%{opacity:.99}to{opacity:.99}}@keyframes mdc-circular-progress-color-2-fade-in-out{from{opacity:0}15%{opacity:0}25%{opacity:.99}50%{opacity:.99}51%{opacity:0}to{opacity:0}}@keyframes mdc-circular-progress-color-3-fade-in-out{from{opacity:0}40%{opacity:0}50%{opacity:.99}75%{opacity:.99}76%{opacity:0}to{opacity:0}}@keyframes mdc-circular-progress-color-4-fade-in-out{from{opacity:0}65%{opacity:0}75%{opacity:.99}90%{opacity:.99}to{opacity:0}}@keyframes mdc-circular-progress-left-spin{from{transform:rotate(265deg)}50%{transform:rotate(130deg)}to{transform:rotate(265deg)}}@keyframes mdc-circular-progress-right-spin{from{transform:rotate(-265deg)}50%{transform:rotate(-130deg)}to{transform:rotate(-265deg)}}.mdc-circular-progress{display:inline-flex;position:relative;direction:ltr;line-height:0;transition:opacity 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-circular-progress__determinate-container,.mdc-circular-progress__indeterminate-circle-graphic,.mdc-circular-progress__indeterminate-container,.mdc-circular-progress__spinner-layer{position:absolute;width:100%;height:100%}.mdc-circular-progress__determinate-container{transform:rotate(-90deg)}.mdc-circular-progress__indeterminate-container{font-size:0;letter-spacing:0;white-space:nowrap;opacity:0}.mdc-circular-progress__determinate-circle-graphic,.mdc-circular-progress__indeterminate-circle-graphic{fill:rgba(0,0,0,0)}.mdc-circular-progress__determinate-circle{transition:stroke-dashoffset 500ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-circular-progress__gap-patch{position:absolute;top:0;left:47.5%;box-sizing:border-box;width:5%;height:100%;overflow:hidden}.mdc-circular-progress__gap-patch .mdc-circular-progress__indeterminate-circle-graphic{left:-900%;width:2000%;transform:rotate(180deg)}.mdc-circular-progress__circle-clipper{display:inline-flex;position:relative;width:50%;height:100%;overflow:hidden}.mdc-circular-progress__circle-clipper .mdc-circular-progress__indeterminate-circle-graphic{width:200%}.mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{left:-100%}.mdc-circular-progress--indeterminate .mdc-circular-progress__determinate-container{opacity:0}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{opacity:1}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{animation:mdc-circular-progress-container-rotate 1568.2352941176ms linear infinite}.mdc-circular-progress--indeterminate .mdc-circular-progress__spinner-layer{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-1{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-1-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-2{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-2-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-3{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-3-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-4{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-4-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-left .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-left-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-right-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--closed{opacity:0}.mat-mdc-progress-spinner{--mdc-circular-progress-active-indicator-width:4px;--mdc-circular-progress-size:48px}.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:var(--mdc-circular-progress-active-indicator-color)}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}.mat-mdc-progress-spinner circle{stroke-width:var(--mdc-circular-progress-active-indicator-width)}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-1 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-2 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-3 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-4 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}.mat-mdc-progress-spinner .mdc-circular-progress{width:var(--mdc-circular-progress-size) !important;height:var(--mdc-circular-progress-size) !important}.mat-mdc-progress-spinner{display:block;overflow:hidden;line-height:0}.mat-mdc-progress-spinner._mat-animation-noopable,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__determinate-circle{transition:none}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-circle-graphic,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__spinner-layer,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container{animation:none}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container circle{stroke-dasharray:0 !important}.cdk-high-contrast-active .mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic,.cdk-high-contrast-active .mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle{stroke:currentColor;stroke:CanvasText}"],encapsulation:2,changeDetection:0})}}return v})(),u=(()=>{class v{static{this.\u0275fac=function(R){return new(R||v)}}static{this.\u0275mod=i.$C({type:v})}static{this.\u0275inj=i.G2t({imports:[C.MD,n.yE]})}}return v})()},49678:(St,z,s)=>{"use strict";s.d(z,{KZ:()=>u,VT:()=>U,Wk:()=>ae,_g:()=>Y});var i=s(58527),n=s(51635),h=s(31308),C=s(6364),S=s(40567),M=s(56106),P=s(61142);const x=["input"],A=["*"];let g=0;class m{constructor(k,X){this.source=k,this.value=X}}const l={provide:M.kq,useExisting:(0,i.Rfq)(()=>U),multi:!0},r=new i.nKC("MatRadioGroup"),u=new i.nKC("mat-radio-default-options",{providedIn:"root",factory:function v(){return{color:"accent"}}});let E=(()=>{class G{get name(){return this._name}set name(X){this._name=X,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(X){this._labelPosition="before"===X?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(X){this._value!==X&&(this._value=X,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(X){this._selected=X,this.value=X?X.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(X){this._disabled=(0,C.he)(X),this._markRadiosForCheck()}get required(){return this._required}set required(X){this._required=(0,C.he)(X),this._markRadiosForCheck()}constructor(X){this._changeDetector=X,this._value=null,this._name="mat-radio-group-"+g++,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=()=>{},this.onTouched=()=>{},this.change=new i.bkB}ngAfterContentInit(){this._isInitialized=!0,this._buttonChanges=this._radios.changes.subscribe(()=>{this.selected&&!this._radios.find(X=>X===this.selected)&&(this._selected=null)})}ngOnDestroy(){this._buttonChanges?.unsubscribe()}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(X=>{X.name=this.name,X._markForCheck()})}_updateSelectedRadioFromValue(){this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach(q=>{q.checked=this.value===q.value,q.checked&&(this._selected=q)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new m(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(X=>X._markForCheck())}writeValue(X){this.value=X,this._changeDetector.markForCheck()}registerOnChange(X){this._controlValueAccessorChangeFn=X}registerOnTouched(X){this.onTouched=X}setDisabledState(X){this.disabled=X,this._changeDetector.markForCheck()}static{this.\u0275fac=function(q){return new(q||G)(i.rXU(i.gRc))}}static{this.\u0275dir=i.FsC({type:G,inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required"},outputs:{change:"change"}})}}return G})();class T{constructor(k){this._elementRef=k}}const R=(0,n.GG)((0,n.BF)(T));let B=(()=>{class G extends R{get checked(){return this._checked}set checked(X){const q=(0,C.he)(X);this._checked!==q&&(this._checked=q,q&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!q&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),q&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(X){this._value!==X&&(this._value=X,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===X),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(X){this._labelPosition=X}get disabled(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled}set disabled(X){this._setDisabled((0,C.he)(X))}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(X){this._required=(0,C.he)(X)}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"}set color(X){this._color=X}get inputId(){return`${this.id||this._uniqueId}-input`}constructor(X,q,Q,ce,te,Ee,it,Fe){super(q),this._changeDetector=Q,this._focusMonitor=ce,this._radioDispatcher=te,this._providerOverride=it,this._uniqueId="mat-radio-"+ ++g,this.id=this._uniqueId,this.change=new i.bkB,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=X,this._noopAnimations="NoopAnimations"===Ee,Fe&&(this.tabIndex=(0,C.OE)(Fe,0))}focus(X,q){q?this._focusMonitor.focusVia(this._inputElement,q,X):this._inputElement.nativeElement.focus(X)}_markForCheck(){this._changeDetector.markForCheck()}ngOnInit(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.checked&&(this.radioGroup.selected=this),this.name=this.radioGroup.name),this._removeUniqueSelectionListener=this._radioDispatcher.listen((X,q)=>{X!==this.id&&q===this.name&&(this.checked=!1)})}ngDoCheck(){this._updateTabIndex()}ngAfterViewInit(){this._updateTabIndex(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(X=>{!X&&this.radioGroup&&this.radioGroup._touch()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new m(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputClick(X){X.stopPropagation()}_onInputInteraction(X){if(X.stopPropagation(),!this.checked&&!this.disabled){const q=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),q&&this.radioGroup._emitChangeEvent())}}_onTouchTargetClick(X){this._onInputInteraction(X),this.disabled||this._inputElement.nativeElement.focus()}_setDisabled(X){this._disabled!==X&&(this._disabled=X,this._changeDetector.markForCheck())}_updateTabIndex(){const X=this.radioGroup;let q;if(q=X&&X.selected&&!this.disabled?X.selected===this?this.tabIndex:-1:this.tabIndex,q!==this._previousTabIndex){const Q=this._inputElement?.nativeElement;Q&&(Q.setAttribute("tabindex",q+""),this._previousTabIndex=q)}}static{this.\u0275fac=function(q){i.QTQ()}}static{this.\u0275dir=i.FsC({type:G,viewQuery:function(q,Q){if(1&q&&i.GBs(x,5),2&q){let ce;i.mGM(ce=i.lsd())&&(Q._inputElement=ce.first)}},inputs:{id:"id",name:"name",ariaLabel:[i.Mj6.None,"aria-label","ariaLabel"],ariaLabelledby:[i.Mj6.None,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[i.Mj6.None,"aria-describedby","ariaDescribedby"],checked:"checked",value:"value",labelPosition:"labelPosition",disabled:"disabled",required:"required",color:"color"},outputs:{change:"change"},features:[i.Vt3]})}}return G})(),U=(()=>{class G extends E{static{this.\u0275fac=(()=>{let X;return function(Q){return(X||(X=i.xGo(G)))(Q||G)}})()}static{this.\u0275dir=i.FsC({type:G,selectors:[["mat-radio-group"]],contentQueries:function(q,Q,ce){if(1&q&&i.wni(ce,Y,5),2&q){let te;i.mGM(te=i.lsd())&&(Q._radios=te)}},hostAttrs:["role","radiogroup",1,"mat-mdc-radio-group"],exportAs:["matRadioGroup"],features:[i.Jv_([l,{provide:r,useExisting:G}]),i.Vt3]})}}return G})(),Y=(()=>{class G extends B{constructor(X,q,Q,ce,te,Ee,it,Fe){super(X,q,Q,ce,te,Ee,it,Fe)}static{this.\u0275fac=function(q){return new(q||G)(i.rXU(r,8),i.rXU(i.aKT),i.rXU(i.gRc),i.rXU(h.FN),i.rXU(S.zP),i.rXU(i.bc$,8),i.rXU(u,8),i.kS0("tabindex"))}}static{this.\u0275cmp=i.VBU({type:G,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-mdc-radio-button"],hostVars:15,hostBindings:function(q,Q){1&q&&i.bIt("focus",function(){return Q._inputElement.nativeElement.focus()}),2&q&&(i.BMQ("id",Q.id)("tabindex",null)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),i.AVh("mat-primary","primary"===Q.color)("mat-accent","accent"===Q.color)("mat-warn","warn"===Q.color)("mat-mdc-radio-checked",Q.checked)("_mat-animation-noopable",Q._noopAnimations))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matRadioButton"],features:[i.Vt3],ngContentSelectors:A,decls:13,vars:17,consts:[["formField",""],["input",""],[1,"mdc-form-field"],[1,"mdc-radio"],[1,"mat-mdc-radio-touch-target",3,"click"],["type","radio",1,"mdc-radio__native-control",3,"change","id","checked","disabled","required"],[1,"mdc-radio__background"],[1,"mdc-radio__outer-circle"],[1,"mdc-radio__inner-circle"],["mat-ripple","",1,"mat-radio-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mdc-label",3,"for"]],template:function(q,Q){if(1&q){const ce=i.RV6();i.NAR(),i.j41(0,"div",2,0)(2,"div",3)(3,"div",4),i.bIt("click",function(Ee){return i.eBV(ce),i.Njj(Q._onTouchTargetClick(Ee))}),i.k0s(),i.j41(4,"input",5,1),i.bIt("change",function(Ee){return i.eBV(ce),i.Njj(Q._onInputInteraction(Ee))}),i.k0s(),i.j41(6,"div",6),i.nrm(7,"div",7)(8,"div",8),i.k0s(),i.j41(9,"div",9),i.nrm(10,"div",10),i.k0s()(),i.j41(11,"label",11),i.SdG(12),i.k0s()()}if(2&q){const ce=i.sdS(1);i.AVh("mdc-form-field--align-end","before"==Q.labelPosition),i.R7$(2),i.AVh("mdc-radio--disabled",Q.disabled),i.R7$(2),i.Y8G("id",Q.inputId)("checked",Q.checked)("disabled",Q.disabled)("required",Q.required),i.BMQ("name",Q.name)("value",Q.value)("aria-label",Q.ariaLabel)("aria-labelledby",Q.ariaLabelledby)("aria-describedby",Q.ariaDescribedby),i.R7$(5),i.Y8G("matRippleTrigger",ce)("matRippleDisabled",Q._isRippleDisabled())("matRippleCentered",!0),i.R7$(2),i.Y8G("for",Q.inputId)}},dependencies:[n.r6],styles:['.mdc-radio{display:inline-block;position:relative;flex:0 0 auto;box-sizing:content-box;width:20px;height:20px;cursor:pointer;will-change:opacity,transform,border-color,color}.mdc-radio[hidden]{display:none}.mdc-radio__background{display:inline-block;position:relative;box-sizing:border-box;width:20px;height:20px}.mdc-radio__background::before{position:absolute;transform:scale(0, 0);border-radius:50%;opacity:0;pointer-events:none;content:"";transition:opacity 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1),transform 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-radio__outer-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;border-width:2px;border-style:solid;border-radius:50%;transition:border-color 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-radio__inner-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;transform:scale(0, 0);border-width:10px;border-style:solid;border-radius:50%;transition:transform 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1),border-color 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-radio__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit;z-index:1}.mdc-radio--touch{margin-top:4px;margin-bottom:4px;margin-right:4px;margin-left:4px}.mdc-radio--touch .mdc-radio__native-control{top:calc((40px - 48px) / 2);right:calc((40px - 48px) / 2);left:calc((40px - 48px) / 2);width:48px;height:48px}.mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring,.mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%}@media screen and (forced-colors: active){.mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring,.mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__focus-ring{border-color:CanvasText}}.mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring::after,.mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring::after,.mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__focus-ring::after{border-color:CanvasText}}.mdc-radio__native-control:checked+.mdc-radio__background,.mdc-radio__native-control:disabled+.mdc-radio__background{transition:opacity 120ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle,.mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__outer-circle{transition:border-color 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__inner-circle,.mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle{transition:transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1),border-color 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio--disabled{cursor:default;pointer-events:none}.mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__inner-circle{transform:scale(0.5);transition:transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1),border-color 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio__native-control:disabled+.mdc-radio__background,[aria-disabled=true] .mdc-radio__native-control+.mdc-radio__background{cursor:default}.mdc-radio__native-control:focus+.mdc-radio__background::before{transform:scale(1);opacity:.12;transition:opacity 120ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-form-field{display:inline-flex;align-items:center;vertical-align:middle}.mdc-form-field[hidden]{display:none}.mdc-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{margin-left:auto;margin-right:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{padding-left:0;padding-right:4px}.mdc-form-field--nowrap>label{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{margin-left:0;margin-right:auto}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{padding-left:4px;padding-right:0}.mdc-form-field--space-between{justify-content:space-between}.mdc-form-field--space-between>label{margin:0}[dir=rtl] .mdc-form-field--space-between>label,.mdc-form-field--space-between>label[dir=rtl]{margin:0}.mat-mdc-radio-button{--mdc-radio-disabled-selected-icon-opacity:0.38;--mdc-radio-disabled-unselected-icon-opacity:0.38;--mdc-radio-state-layer-size:40px;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-radio-button .mdc-radio{padding:calc((var(--mdc-radio-state-layer-size) - 20px) / 2)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-disabled-selected-icon-color)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control+.mdc-radio__background .mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-disabled-selected-icon-color)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled:checked+.mdc-radio__background .mdc-radio__outer-circle{opacity:var(--mdc-radio-disabled-selected-icon-opacity)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control+.mdc-radio__background .mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle{opacity:var(--mdc-radio-disabled-selected-icon-opacity)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-disabled-unselected-icon-color)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{opacity:var(--mdc-radio-disabled-unselected-icon-opacity)}.mat-mdc-radio-button .mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-selected-focus-icon-color)}.mat-mdc-radio-button .mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-focus-icon-color)}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-selected-hover-icon-color)}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-hover-icon-color)}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-selected-icon-color)}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-icon-color)}.mat-mdc-radio-button .mdc-radio:not(:disabled):active .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-selected-pressed-icon-color)}.mat-mdc-radio-button .mdc-radio:not(:disabled):active .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-pressed-icon-color)}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-hover-icon-color)}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-icon-color)}.mat-mdc-radio-button .mdc-radio:not(:disabled):active .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-pressed-icon-color)}.mat-mdc-radio-button .mdc-radio .mdc-radio__background::before{top:calc(-1 * (var(--mdc-radio-state-layer-size) - 20px) / 2);left:calc(-1 * (var(--mdc-radio-state-layer-size) - 20px) / 2);width:var(--mdc-radio-state-layer-size);height:var(--mdc-radio-state-layer-size)}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control{top:calc((var(--mdc-radio-state-layer-size) - var(--mdc-radio-state-layer-size)) / 2);right:calc((var(--mdc-radio-state-layer-size) - var(--mdc-radio-state-layer-size)) / 2);left:calc((var(--mdc-radio-state-layer-size) - var(--mdc-radio-state-layer-size)) / 2);width:var(--mdc-radio-state-layer-size);height:var(--mdc-radio-state-layer-size)}.mat-mdc-radio-button .mdc-radio .mdc-radio__background::before{background-color:var(--mat-radio-ripple-color)}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:not([disabled]):not(:focus)~.mdc-radio__background::before{opacity:.04;transform:scale(1)}.mat-mdc-radio-button.mat-mdc-radio-checked .mdc-radio__background::before{background-color:var(--mat-radio-checked-ripple-color)}.mat-mdc-radio-button.mat-mdc-radio-checked .mat-ripple-element{background-color:var(--mat-radio-checked-ripple-color)}.mat-mdc-radio-button .mdc-radio--disabled+label{color:var(--mat-radio-disabled-label-color)}.mat-mdc-radio-button .mat-radio-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:50%}.mat-mdc-radio-button .mat-radio-ripple .mat-ripple-element{opacity:.14}.mat-mdc-radio-button .mat-radio-ripple::before{border-radius:50%}.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__background::before,.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__outer-circle,.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__inner-circle{transition:none !important}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:focus:enabled:not(:checked)~.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-focus-icon-color, black)}.mat-mdc-radio-button.cdk-focused .mat-mdc-focus-indicator::before{content:""}.mat-mdc-radio-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}[dir=rtl] .mat-mdc-radio-touch-target{left:0;right:50%;transform:translate(50%, -50%)}'],encapsulation:2,changeDetection:0})}}return G})(),ae=(()=>{class G{static{this.\u0275fac=function(q){return new(q||G)}}static{this.\u0275mod=i.$C({type:G})}static{this.\u0275inj=i.G2t({imports:[n.yE,P.MD,n.pZ,n.yE]})}}return G})()},12949:(St,z,s)=>{"use strict";s.d(z,{$2:()=>ve,JO:()=>Ve,VO:()=>ue,Ve:()=>et});var i=s(61904),n=s(61142),h=s(58527),C=s(51635),S=s(74292),M=s(64409),P=s(31308),x=s(51394),A=s(6364),g=s(40567),m=s(25373),l=s(56106),r=s(80583),u=s(63997),v=s(16229),E=s(34593),T=s(72147),R=s(65706),B=s(8619),U=s(83915),Y=s(53461),ae=s(4208),G=s(40262);const k=["trigger"],X=["panel"],q=[[["mat-select-trigger"]],"*"],Q=["mat-select-trigger","*"];function ce(se,Ce){if(1&se&&(h.j41(0,"span",11),h.EFF(1),h.k0s()),2&se){const be=h.XpG();h.R7$(),h.JRh(be.placeholder)}}function te(se,Ce){if(1&se&&(h.j41(0,"span",15),h.EFF(1),h.k0s()),2&se){const be=h.XpG(2);h.R7$(),h.JRh(be.triggerValue)}}function Ee(se,Ce){1&se&&h.SdG(0,0,["*ngSwitchCase","true"])}function it(se,Ce){if(1&se&&(h.j41(0,"span",12),h.DNE(1,te,2,1,"span",13)(2,Ee,1,0,"ng-content",14),h.k0s()),2&se){const be=h.XpG();h.Y8G("ngSwitch",!!be.customTrigger),h.R7$(2),h.Y8G("ngSwitchCase",!0)}}function Fe(se,Ce){if(1&se){const be=h.RV6();h.j41(0,"div",16,1),h.bIt("@transformPanel.done",function(me){h.eBV(be);const le=h.XpG();return h.Njj(le._panelDoneAnimatingStream.next(me.toState))})("keydown",function(me){h.eBV(be);const le=h.XpG();return h.Njj(le._handleKeydown(me))}),h.SdG(2,1),h.k0s()}if(2&se){const be=h.XpG();h.ZvI("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",be._getPanelTheme(),""),h.Y8G("ngClass",be.panelClass)("@transformPanel","showing"),h.BMQ("id",be.id+"-panel")("aria-multiselectable",be.multiple)("aria-label",be.ariaLabel||null)("aria-labelledby",be._getPanelAriaLabelledby())}}const Qe={transformPanelWrap:(0,G.hZ)("transformPanelWrap",[(0,G.kY)("* => void",(0,G.P)("@transformPanel",[(0,G.MA)()],{optional:!0}))]),transformPanel:(0,G.hZ)("transformPanel",[(0,G.wk)("void",(0,G.iF)({opacity:0,transform:"scale(1, 0.8)"})),(0,G.kY)("void => showing",(0,G.i0)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,G.iF)({opacity:1,transform:"scale(1, 1)"}))),(0,G.kY)("* => void",(0,G.i0)("100ms linear",(0,G.iF)({opacity:0})))])};let Je=0;const ze=new h.nKC("mat-select-scroll-strategy"),Ve=new h.nKC("MAT_SELECT_CONFIG"),$e={provide:ze,deps:[i.hJ],useFactory:function Ke(se){return()=>se.scrollStrategies.reposition()}},dt=new h.nKC("MatSelectTrigger");class Pe{constructor(Ce,be){this.source=Ce,this.value=be}}const J=(0,C.GG)((0,C.BF)((0,C.Ob)((0,C.J8)(class{constructor(se,Ce,be,rt,me){this._elementRef=se,this._defaultErrorStateMatcher=Ce,this._parentForm=be,this._parentFormGroup=rt,this.ngControl=me,this.stateChanges=new r.B7}}))));let vt=(()=>{class se extends J{get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(be){this._placeholder=be,this.stateChanges.next()}get required(){return this._required??this.ngControl?.control?.hasValidator(l.k0.required)??!1}set required(be){this._required=(0,A.he)(be),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(be){this._multiple=(0,A.he)(be)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(be){this._disableOptionCentering=(0,A.he)(be)}get compareWith(){return this._compareWith}set compareWith(be){this._compareWith=be,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(be){this._assignValue(be)&&this._onChange(be)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(be){this._typeaheadDebounceInterval=(0,A.OE)(be)}get id(){return this._id}set id(be){this._id=be||this._uid,this.stateChanges.next()}constructor(be,rt,me,le,Xe,Se,fe,Ne,ye,Ot,sn,dn,yn,At){super(Xe,le,fe,Ne,Ot),this._viewportRuler=be,this._changeDetectorRef=rt,this._ngZone=me,this._dir=Se,this._parentFormField=ye,this._liveAnnouncer=yn,this._defaultOptions=At,this._panelOpen=!1,this._compareWith=(Vt,Qt)=>Vt===Qt,this._uid="mat-select-"+Je++,this._triggerAriaLabelledBy=null,this._destroy=new r.B7,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+Je++,this._panelDoneAnimatingStream=new r.B7,this._overlayPanelClass=this._defaultOptions?.overlayPanelClass||"",this._focused=!1,this.controlType="mat-select",this._multiple=!1,this._disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1,this.ariaLabel="",this.optionSelectionChanges=(0,u.v)(()=>{const Vt=this.options;return Vt?Vt.changes.pipe((0,E.Z)(Vt),(0,T.n)(()=>(0,v.h)(...Vt.map(Qt=>Qt.onSelectionChange)))):this._ngZone.onStable.pipe((0,R.s)(1),(0,T.n)(()=>this.optionSelectionChanges))}),this.openedChange=new h.bkB,this._openedStream=this.openedChange.pipe((0,B.p)(Vt=>Vt),(0,U.T)(()=>{})),this._closedStream=this.openedChange.pipe((0,B.p)(Vt=>!Vt),(0,U.T)(()=>{})),this.selectionChange=new h.bkB,this.valueChange=new h.bkB,this._trackedModal=null,this.ngControl&&(this.ngControl.valueAccessor=this),null!=At?.typeaheadDebounceInterval&&(this._typeaheadDebounceInterval=At.typeaheadDebounceInterval),this._scrollStrategyFactory=dn,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(sn)||0,this.id=this.id}ngOnInit(){this._selectionModel=new g.CB(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe((0,Y.F)(),(0,ae.Q)(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe((0,ae.Q)(this._destroy)).subscribe(be=>{be.added.forEach(rt=>rt.select()),be.removed.forEach(rt=>rt.deselect())}),this.options.changes.pipe((0,E.Z)(null),(0,ae.Q)(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const be=this._getTriggerAriaLabelledby(),rt=this.ngControl;if(be!==this._triggerAriaLabelledBy){const me=this._elementRef.nativeElement;this._triggerAriaLabelledBy=be,be?me.setAttribute("aria-labelledby",be):me.removeAttribute("aria-labelledby")}rt&&(this._previousControl!==rt.control&&(void 0!==this._previousControl&&null!==rt.disabled&&rt.disabled!==this.disabled&&(this.disabled=rt.disabled),this._previousControl=rt.control),this.updateErrorState())}ngOnChanges(be){(be.disabled||be.userAriaDescribedBy)&&this.stateChanges.next(),be.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._keyManager?.destroy(),this._destroy.next(),this._destroy.complete(),this.stateChanges.complete(),this._clearFromModal()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._applyModalPanelOwnership(),this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}_applyModalPanelOwnership(){const be=this._elementRef.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(!be)return;const rt=`${this.id}-panel`;this._trackedModal&&(0,P.Ae)(this._trackedModal,"aria-owns",rt),(0,P.px)(be,"aria-owns",rt),this._trackedModal=be}_clearFromModal(){this._trackedModal&&((0,P.Ae)(this._trackedModal,"aria-owns",`${this.id}-panel`),this._trackedModal=null)}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(be){this._assignValue(be)}registerOnChange(be){this._onChange=be}registerOnTouched(be){this._onTouched=be}setDisabledState(be){this.disabled=be,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const be=this._selectionModel.selected.map(rt=>rt.viewValue);return this._isRtl()&&be.reverse(),be.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(be){this.disabled||(this.panelOpen?this._handleOpenKeydown(be):this._handleClosedKeydown(be))}_handleClosedKeydown(be){const rt=be.keyCode,me=rt===m.n6||rt===m.i7||rt===m.UQ||rt===m.LE,le=rt===m.Fm||rt===m.t6,Xe=this._keyManager;if(!Xe.isTyping()&&le&&!(0,m.rp)(be)||(this.multiple||be.altKey)&&me)be.preventDefault(),this.open();else if(!this.multiple){const Se=this.selected;Xe.onKeydown(be);const fe=this.selected;fe&&Se!==fe&&this._liveAnnouncer.announce(fe.viewValue,1e4)}}_handleOpenKeydown(be){const rt=this._keyManager,me=be.keyCode,le=me===m.n6||me===m.i7,Xe=rt.isTyping();if(le&&be.altKey)be.preventDefault(),this.close();else if(Xe||me!==m.Fm&&me!==m.t6||!rt.activeItem||(0,m.rp)(be))if(!Xe&&this._multiple&&me===m.A&&be.ctrlKey){be.preventDefault();const Se=this.options.some(fe=>!fe.disabled&&!fe.selected);this.options.forEach(fe=>{fe.disabled||(Se?fe.select():fe.deselect())})}else{const Se=rt.activeItemIndex;rt.onKeydown(be),this._multiple&&le&&be.shiftKey&&rt.activeItem&&rt.activeItemIndex!==Se&&rt.activeItem._selectViaInteraction()}else be.preventDefault(),rt.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,this._keyManager?.cancelTypeahead(),!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe((0,R.s)(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(be){if(this.options.forEach(rt=>rt.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&be)Array.isArray(be),be.forEach(rt=>this._selectOptionByValue(rt)),this._sortValues();else{const rt=this._selectOptionByValue(be);rt?this._keyManager.updateActiveItem(rt):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(be){const rt=this.options.find(me=>{if(this._selectionModel.isSelected(me))return!1;try{return null!=me.value&&this._compareWith(me.value,be)}catch{return!1}});return rt&&this._selectionModel.select(rt),rt}_assignValue(be){return!!(be!==this._value||this._multiple&&Array.isArray(be))&&(this.options&&this._setSelectionByValue(be),this._value=be,!0)}_skipPredicate(be){return be.disabled}_initKeyManager(){this._keyManager=new P.Au(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withPageUpDown().withAllowedModifierKeys(["shiftKey"]).skipPredicate(this._skipPredicate),this._keyManager.tabOut.subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const be=(0,v.h)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,ae.Q)(be)).subscribe(rt=>{this._onSelect(rt.source,rt.isUserInput),rt.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,v.h)(...this.options.map(rt=>rt._stateChanges)).pipe((0,ae.Q)(be)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(be,rt){const me=this._selectionModel.isSelected(be);null!=be.value||this._multiple?(me!==be.selected&&(be.selected?this._selectionModel.select(be):this._selectionModel.deselect(be)),rt&&this._keyManager.setActiveItem(be),this.multiple&&(this._sortValues(),rt&&this.focus())):(be.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(be.value)),me!==this._selectionModel.isSelected(be)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const be=this.options.toArray();this._selectionModel.sort((rt,me)=>this.sortComparator?this.sortComparator(rt,me,be):be.indexOf(rt)-be.indexOf(me)),this.stateChanges.next()}}_propagateChanges(be){let rt=null;rt=this.multiple?this.selected.map(me=>me.value):this.selected?this.selected.value:be,this._value=rt,this.valueChange.emit(rt),this._onChange(rt),this.selectionChange.emit(this._getChangeEvent(rt)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){if(this._keyManager)if(this.empty){let be=-1;for(let rt=0;rt<this.options.length;rt++)if(!this.options.get(rt).disabled){be=rt;break}this._keyManager.setActiveItem(be)}else this._keyManager.setActiveItem(this._selectionModel.selected[0])}_canOpen(){return!this._panelOpen&&!this.disabled&&this.options?.length>0}focus(be){this._elementRef.nativeElement.focus(be)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;const be=this._parentFormField?.getLabelId();return this.ariaLabelledby?(be?be+" ":"")+this.ariaLabelledby:be}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;const be=this._parentFormField?.getLabelId();let rt=(be?be+" ":"")+this._valueId;return this.ariaLabelledby&&(rt+=" "+this.ariaLabelledby),rt}_panelDoneAnimating(be){this.openedChange.emit(be)}setDescribedByIds(be){be.length?this._elementRef.nativeElement.setAttribute("aria-describedby",be.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}static{this.\u0275fac=function(rt){return new(rt||se)(h.rXU(M.Xj),h.rXU(h.gRc),h.rXU(h.SKi),h.rXU(C.es),h.rXU(h.aKT),h.rXU(x.dS,8),h.rXU(l.cV,8),h.rXU(l.j4,8),h.rXU(S.xb,8),h.rXU(l.vO,10),h.kS0("tabindex"),h.rXU(ze),h.rXU(P.Ai),h.rXU(Ve,8))}}static{this.\u0275dir=h.FsC({type:se,viewQuery:function(rt,me){if(1&rt&&(h.GBs(k,5),h.GBs(X,5),h.GBs(i.WB,5)),2&rt){let le;h.mGM(le=h.lsd())&&(me.trigger=le.first),h.mGM(le=h.lsd())&&(me.panel=le.first),h.mGM(le=h.lsd())&&(me._overlayDir=le.first)}},inputs:{userAriaDescribedBy:[h.Mj6.None,"aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",ariaLabel:[h.Mj6.None,"aria-label","ariaLabel"],ariaLabelledby:[h.Mj6.None,"aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:"typeaheadDebounceInterval",sortComparator:"sortComparator",id:"id"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[h.Vt3,h.OA$]})}}return se})(),ve=(()=>{class se{static{this.\u0275fac=function(rt){return new(rt||se)}}static{this.\u0275dir=h.FsC({type:se,selectors:[["mat-select-trigger"]],features:[h.Jv_([{provide:dt,useExisting:se}])]})}}return se})(),ue=(()=>{class se extends vt{constructor(){super(...arguments),this.panelWidth=this._defaultOptions&&typeof this._defaultOptions.panelWidth<"u"?this._defaultOptions.panelWidth:"auto",this._positions=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"}],this._hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1,this._skipPredicate=be=>!this.panelOpen&&be.disabled}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe((0,ae.Q)(this._destroy)).subscribe(()=>{this.panelOpen&&(this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._changeDetectorRef.detectChanges())})}open(){this._parentFormField&&(this._preferredOverlayOrigin=this._parentFormField.getConnectedOverlayOrigin()),this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),super.open(),this.stateChanges.next()}close(){super.close(),this.stateChanges.next()}_scrollOptionIntoView(be){const rt=this.options.toArray()[be];if(rt){const me=this.panel.nativeElement,le=(0,C.jb)(be,this.options,this.optionGroups),Xe=rt._getHostElement();me.scrollTop=0===be&&1===le?0:(0,C.TL)(Xe.offsetTop,Xe.offsetHeight,me.scrollTop,me.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(be){return new Pe(this,be)}_getOverlayWidth(be){return"auto"===this.panelWidth?(be instanceof i.$Q?be.elementRef:be||this._elementRef).nativeElement.getBoundingClientRect().width:null===this.panelWidth?"":this.panelWidth}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(be){this._hideSingleSelectionIndicator=(0,A.he)(be),this._syncParentProperties()}_syncParentProperties(){if(this.options)for(const be of this.options)be._changeDetectorRef.markForCheck()}static{this.\u0275fac=(()=>{let be;return function(me){return(be||(be=h.xGo(se)))(me||se)}})()}static{this.\u0275cmp=h.VBU({type:se,selectors:[["mat-select"]],contentQueries:function(rt,me,le){if(1&rt&&(h.wni(le,dt,5),h.wni(le,C.wT,5),h.wni(le,C.QC,5)),2&rt){let Xe;h.mGM(Xe=h.lsd())&&(me.customTrigger=Xe.first),h.mGM(Xe=h.lsd())&&(me.options=Xe),h.mGM(Xe=h.lsd())&&(me.optionGroups=Xe)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","listbox","ngSkipHydration","",1,"mat-mdc-select"],hostVars:19,hostBindings:function(rt,me){1&rt&&h.bIt("keydown",function(Xe){return me._handleKeydown(Xe)})("focus",function(){return me._onFocus()})("blur",function(){return me._onBlur()}),2&rt&&(h.BMQ("id",me.id)("tabindex",me.tabIndex)("aria-controls",me.panelOpen?me.id+"-panel":null)("aria-expanded",me.panelOpen)("aria-label",me.ariaLabel||null)("aria-required",me.required.toString())("aria-disabled",me.disabled.toString())("aria-invalid",me.errorState)("aria-activedescendant",me._getAriaActiveDescendant()),h.AVh("mat-mdc-select-disabled",me.disabled)("mat-mdc-select-invalid",me.errorState)("mat-mdc-select-required",me.required)("mat-mdc-select-empty",me.empty)("mat-mdc-select-multiple",me.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex",panelWidth:"panelWidth",hideSingleSelectionIndicator:"hideSingleSelectionIndicator"},exportAs:["matSelect"],features:[h.Jv_([{provide:S.qT,useExisting:se},{provide:C.is,useExisting:se}]),h.Vt3],ngContentSelectors:Q,decls:11,vars:10,consts:[["fallbackOverlayOrigin","cdkOverlayOrigin","trigger",""],["panel",""],["cdk-overlay-origin","",1,"mat-mdc-select-trigger",3,"click"],[1,"mat-mdc-select-value",3,"ngSwitch"],["class","mat-mdc-select-placeholder mat-mdc-select-min-line",4,"ngSwitchCase"],["class","mat-mdc-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-mdc-select-arrow-wrapper"],[1,"mat-mdc-select-arrow"],["viewBox","0 0 24 24","width","24px","height","24px","focusable","false","aria-hidden","true"],["d","M7 10l5 5 5-5z"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"backdropClick","attach","detach","cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth"],[1,"mat-mdc-select-placeholder","mat-mdc-select-min-line"],[1,"mat-mdc-select-value-text",3,"ngSwitch"],["class","mat-mdc-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-mdc-select-min-line"],["role","listbox","tabindex","-1",3,"keydown","ngClass"]],template:function(rt,me){if(1&rt){const le=h.RV6();h.NAR(q),h.j41(0,"div",2,0),h.bIt("click",function(){return h.eBV(le),h.Njj(me.toggle())}),h.j41(3,"div",3),h.DNE(4,ce,2,1,"span",4)(5,it,3,2,"span",5),h.k0s(),h.j41(6,"div",6)(7,"div",7),h.qSk(),h.j41(8,"svg",8),h.nrm(9,"path",9),h.k0s()()()(),h.DNE(10,Fe,3,9,"ng-template",10),h.bIt("backdropClick",function(){return h.eBV(le),h.Njj(me.close())})("attach",function(){return h.eBV(le),h.Njj(me._onAttached())})("detach",function(){return h.eBV(le),h.Njj(me.close())})}if(2&rt){const le=h.sdS(1);h.R7$(3),h.Y8G("ngSwitch",me.empty),h.BMQ("id",me._valueId),h.R7$(),h.Y8G("ngSwitchCase",!0),h.R7$(),h.Y8G("ngSwitchCase",!1),h.R7$(5),h.Y8G("cdkConnectedOverlayPanelClass",me._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",me._scrollStrategy)("cdkConnectedOverlayOrigin",me._preferredOverlayOrigin||le)("cdkConnectedOverlayOpen",me.panelOpen)("cdkConnectedOverlayPositions",me._positions)("cdkConnectedOverlayWidth",me._overlayWidth)}},dependencies:[n.YU,n.ux,n.e1,n.fG,i.WB,i.$Q],styles:['.mat-mdc-select{display:inline-block;width:100%;outline:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-select-enabled-trigger-text-color);font-family:var(--mat-select-trigger-text-font);line-height:var(--mat-select-trigger-text-line-height);font-size:var(--mat-select-trigger-text-size);font-weight:var(--mat-select-trigger-text-weight);letter-spacing:var(--mat-select-trigger-text-tracking)}.mat-mdc-select-disabled{color:var(--mat-select-disabled-trigger-text-color)}.mat-mdc-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-mdc-select-disabled .mat-mdc-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-mdc-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-mdc-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-mdc-select-arrow-wrapper{height:24px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper{transform:translateY(-8px)}.mat-form-field-appearance-fill .mdc-text-field--no-label .mat-mdc-select-arrow-wrapper{transform:none}.mat-mdc-select-arrow{width:10px;height:5px;position:relative;color:var(--mat-select-enabled-arrow-color)}.mat-mdc-form-field.mat-focused .mat-mdc-select-arrow{color:var(--mat-select-focused-arrow-color)}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-invalid .mat-mdc-select-arrow{color:var(--mat-select-invalid-arrow-color)}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-disabled .mat-mdc-select-arrow{color:var(--mat-select-disabled-arrow-color)}.mat-mdc-select-arrow svg{fill:currentColor;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:CanvasText}.mat-mdc-select-disabled .cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:GrayText}div.mat-mdc-select-panel{box-shadow:0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12);width:100%;max-height:275px;outline:0;overflow:auto;padding:8px 0;border-radius:4px;box-sizing:border-box;position:static;background-color:var(--mat-select-panel-background-color)}.cdk-high-contrast-active div.mat-mdc-select-panel{outline:solid 1px}.cdk-overlay-pane:not(.mat-mdc-select-panel-above) div.mat-mdc-select-panel{border-top-left-radius:0;border-top-right-radius:0;transform-origin:top center}.mat-mdc-select-panel-above div.mat-mdc-select-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:bottom center}.mat-mdc-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);color:var(--mat-select-placeholder-text-color)}._mat-animation-noopable .mat-mdc-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-mdc-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-mdc-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper{cursor:pointer}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mat-mdc-floating-label{max-width:calc(100% - 18px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 24px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-text-field--label-floating .mdc-notched-outline__notch{max-width:calc(100% - 24px)}.mat-mdc-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}'],encapsulation:2,data:{animation:[Qe.transformPanel]},changeDetection:0})}}return se})(),et=(()=>{class se{static{this.\u0275fac=function(rt){return new(rt||se)}}static{this.\u0275mod=h.$C({type:se})}static{this.\u0275inj=h.G2t({providers:[$e],imports:[n.MD,i.z_,C.Sy,C.yE,M.Gj,S.RG,C.Sy,C.yE]})}}return se})()},65597:(St,z,s)=>{"use strict";s.d(z,{UG:()=>Vt,_T:()=>sn});var i=s(58527),n=s(80583),h=s(61142),C=s(72653),S=s(31308),M=s(6364),P=s(51635);const x=["mat-button",""],A=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],g=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"],Y=[{selector:"mat-button",mdcClasses:["mdc-button","mat-mdc-button"]},{selector:"mat-flat-button",mdcClasses:["mdc-button","mdc-button--unelevated","mat-mdc-unelevated-button"]},{selector:"mat-raised-button",mdcClasses:["mdc-button","mdc-button--raised","mat-mdc-raised-button"]},{selector:"mat-stroked-button",mdcClasses:["mdc-button","mdc-button--outlined","mat-mdc-outlined-button"]},{selector:"mat-fab",mdcClasses:["mdc-fab","mat-mdc-fab"]},{selector:"mat-mini-fab",mdcClasses:["mdc-fab","mdc-fab--mini","mat-mdc-mini-fab"]},{selector:"mat-icon-button",mdcClasses:["mdc-icon-button","mat-mdc-icon-button"]}],ae=(0,P.Zc)((0,P.Ob)((0,P.GG)(class{constructor(Qt){this._elementRef=Qt}})));let G=(()=>{class Qt extends ae{get ripple(){return this._rippleLoader?.getRipple(this._elementRef.nativeElement)}set ripple(Zt){this._rippleLoader?.attachRipple(this._elementRef.nativeElement,Zt)}get disableRipple(){return this._disableRipple}set disableRipple(Zt){this._disableRipple=(0,M.he)(Zt),this._updateRippleDisabled()}get disabled(){return this._disabled}set disabled(Zt){this._disabled=(0,M.he)(Zt),this._updateRippleDisabled()}constructor(Zt,nn,Xt,lt){super(Zt),this._platform=nn,this._ngZone=Xt,this._animationMode=lt,this._focusMonitor=(0,i.WQX)(S.FN),this._rippleLoader=(0,i.WQX)(P.Ej),this._isFab=!1,this._disableRipple=!1,this._disabled=!1,this._rippleLoader?.configureRipple(this._elementRef.nativeElement,{className:"mat-mdc-button-ripple"});const Ue=Zt.nativeElement.classList;for(const wt of Y)this._hasHostAttributes(wt.selector)&&wt.mdcClasses.forEach(gt=>{Ue.add(gt)})}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(Zt="program",nn){Zt?this._focusMonitor.focusVia(this._elementRef.nativeElement,Zt,nn):this._elementRef.nativeElement.focus(nn)}_hasHostAttributes(...Zt){return Zt.some(nn=>this._elementRef.nativeElement.hasAttribute(nn))}_updateRippleDisabled(){this._rippleLoader?.setDisabled(this._elementRef.nativeElement,this.disableRipple||this.disabled)}static{this.\u0275fac=function(nn){i.QTQ()}}static{this.\u0275dir=i.FsC({type:Qt,features:[i.Vt3]})}}return Qt})(),Q=(()=>{class Qt extends G{constructor(Zt,nn,Xt,lt){super(Zt,nn,Xt,lt)}static{this.\u0275fac=function(nn){return new(nn||Qt)(i.rXU(i.aKT),i.rXU(C.OD),i.rXU(i.SKi),i.rXU(i.bc$,8))}}static{this.\u0275cmp=i.VBU({type:Qt,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""]],hostVars:7,hostBindings:function(nn,Xt){2&nn&&(i.BMQ("disabled",Xt.disabled||null),i.AVh("_mat-animation-noopable","NoopAnimations"===Xt._animationMode)("mat-unthemed",!Xt.color)("mat-mdc-button-base",!0))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[i.Vt3],attrs:x,ngContentSelectors:g,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(nn,Xt){1&nn&&(i.NAR(A),i.nrm(0,"span",0),i.SdG(1),i.j41(2,"span",1),i.SdG(3,1),i.k0s(),i.SdG(4,2),i.nrm(5,"span",2)(6,"span",3)),2&nn&&i.AVh("mdc-button__ripple",!Xt._isFab)("mdc-fab__ripple",Xt._isFab)},styles:['.mdc-touch-target-wrapper{display:inline}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button{position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;user-select:none;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0)}.mdc-button .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top}[dir=rtl] .mdc-button .mdc-button__icon,.mdc-button .mdc-button__icon[dir=rtl]{margin-left:8px;margin-right:0}.mdc-button .mdc-button__progress-indicator{font-size:0;position:absolute;transform:translate(-50%, -50%);top:50%;left:50%;line-height:initial}.mdc-button .mdc-button__label{position:relative}.mdc-button .mdc-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(\n 100% + 4px\n );width:calc(\n 100% + 4px\n );display:none}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring{border-color:CanvasText}}.mdc-button .mdc-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring::after{border-color:CanvasText}}@media screen and (forced-colors: active){.mdc-button.mdc-ripple-upgraded--background-focused .mdc-button__focus-ring,.mdc-button:not(.mdc-ripple-upgraded):focus .mdc-button__focus-ring{display:block}}.mdc-button .mdc-button__touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-button__label+.mdc-button__icon{margin-left:8px;margin-right:0}[dir=rtl] .mdc-button__label+.mdc-button__icon,.mdc-button__label+.mdc-button__icon[dir=rtl]{margin-left:0;margin-right:8px}svg.mdc-button__icon{fill:currentColor}.mdc-button--touch{margin-top:6px;margin-bottom:6px}.mdc-button{padding:0 8px 0 8px}.mdc-button--unelevated{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--unelevated.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--unelevated.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--raised{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--raised.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--raised.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--outlined{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button--outlined .mdc-button__ripple{border-style:solid;border-color:rgba(0,0,0,0)}.mat-mdc-button{height:var(--mdc-text-button-container-height, 36px);border-radius:var(--mdc-text-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color, inherit)}.mat-mdc-button:disabled{color:var(--mdc-text-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-unelevated-button{height:var(--mdc-filled-button-container-height, 36px);border-radius:var(--mdc-filled-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-unelevated-button:not(:disabled){background-color:var(--mdc-filled-button-container-color, transparent)}.mat-mdc-unelevated-button:disabled{background-color:var(--mdc-filled-button-disabled-container-color, rgba(0, 0, 0, 0.12))}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color, inherit)}.mat-mdc-unelevated-button:disabled{color:var(--mdc-filled-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-raised-button{height:var(--mdc-protected-button-container-height, 36px);border-radius:var(--mdc-protected-button-container-shape, var(--mdc-shape-small, 4px));box-shadow:var(--mdc-protected-button-container-elevation, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled){background-color:var(--mdc-protected-button-container-color, transparent)}.mat-mdc-raised-button:disabled{background-color:var(--mdc-protected-button-disabled-container-color, rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color, inherit)}.mat-mdc-raised-button:disabled{color:var(--mdc-protected-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-raised-button.mdc-ripple-upgraded--background-focused,.mat-mdc-raised-button:not(.mdc-ripple-upgraded):focus{box-shadow:var(--mdc-protected-button-focus-container-elevation, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled):active{box-shadow:var(--mdc-protected-button-pressed-container-elevation, 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:disabled{box-shadow:var(--mdc-protected-button-disabled-container-elevation, 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button{height:var(--mdc-outlined-button-container-height, 36px);border-radius:var(--mdc-outlined-button-container-shape, var(--mdc-shape-small, 4px));padding:0 15px 0 15px;border-width:var(--mdc-outlined-button-outline-width, 1px)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color, inherit)}.mat-mdc-outlined-button:disabled{color:var(--mdc-outlined-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-outlined-button .mdc-button__ripple{border-radius:var(--mdc-outlined-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-outlined-button:not(:disabled){border-color:var(--mdc-outlined-button-outline-color, rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button:disabled{border-color:var(--mdc-outlined-button-disabled-outline-color, rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button.mdc-button--icon-trailing{padding:0 11px 0 15px}.mat-mdc-outlined-button.mdc-button--icon-leading{padding:0 15px 0 11px}.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:var(--mdc-outlined-button-outline-width, 1px)}.mat-mdc-outlined-button .mdc-button__touch{left:calc(-1 * var(--mdc-outlined-button-outline-width, 1px));width:calc(100% + 2 * var(--mdc-outlined-button-outline-width, 1px))}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0;background-color:var(--mat-mdc-button-persistent-ripple-color)}.mat-mdc-button .mat-ripple-element,.mat-mdc-unelevated-button .mat-ripple-element,.mat-mdc-raised-button .mat-ripple-element,.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-mdc-button-ripple-color)}.mat-mdc-button .mdc-button__label,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-outlined-button .mdc-button__label{z-index:1}.mat-mdc-button .mat-mdc-focus-indicator,.mat-mdc-unelevated-button .mat-mdc-focus-indicator,.mat-mdc-raised-button .mat-mdc-focus-indicator,.mat-mdc-outlined-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-unelevated-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-raised-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-outlined-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-button[disabled],.mat-mdc-unelevated-button[disabled],.mat-mdc-raised-button[disabled],.mat-mdc-outlined-button[disabled]{cursor:default;pointer-events:none}.mat-mdc-button .mat-mdc-button-touch-target,.mat-mdc-unelevated-button .mat-mdc-button-touch-target,.mat-mdc-raised-button .mat-mdc-button-touch-target,.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}[dir=rtl] .mat-mdc-button>.mat-icon,.mat-mdc-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:0}.mat-mdc-button .mdc-button__label+.mat-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon,.mat-mdc-button .mdc-button__label+.mat-icon[dir=rtl]{margin-left:0;margin-right:8px}.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem;margin-left:-4px;margin-right:8px}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon,[dir=rtl] .mat-mdc-raised-button>.mat-icon,[dir=rtl] .mat-mdc-outlined-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon[dir=rtl],.mat-mdc-raised-button>.mat-icon[dir=rtl],.mat-mdc-outlined-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:0}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon,[dir=rtl] .mat-mdc-raised-button>.mat-icon,[dir=rtl] .mat-mdc-outlined-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon[dir=rtl],.mat-mdc-raised-button>.mat-icon[dir=rtl],.mat-mdc-outlined-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:-4px}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon,.mat-mdc-raised-button .mdc-button__label+.mat-icon,.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-left:8px;margin-right:-4px}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon,.mat-mdc-unelevated-button .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-raised-button .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-outlined-button .mdc-button__label+.mat-icon[dir=rtl]{margin-left:-4px;margin-right:8px}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:-1px}.mat-mdc-unelevated-button .mat-mdc-focus-indicator::before,.mat-mdc-raised-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-mdc-outlined-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 3px) * -1)}',".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0})}}return Qt})(),Ke=(()=>{class Qt{static{this.\u0275fac=function(nn){return new(nn||Qt)}}static{this.\u0275mod=i.$C({type:Qt})}static{this.\u0275inj=i.G2t({imports:[P.yE,P.pZ,P.yE]})}}return Qt})();var Ve=s(40262),$e=s(76614),dt=s(65706),Pe=s(4208),J=s(76706),vt=s(61904);function ve(Qt,Jt){if(1&Qt){const Zt=i.RV6();i.j41(0,"div",2)(1,"button",3),i.bIt("click",function(){i.eBV(Zt);const Xt=i.XpG();return i.Njj(Xt.action())}),i.EFF(2),i.k0s()()}if(2&Qt){const Zt=i.XpG();i.R7$(2),i.SpI(" ",Zt.data.action," ")}}const ue=["label"];function et(Qt,Jt){}const se=Math.pow(2,31)-1;class Ce{constructor(Jt,Zt){this._overlayRef=Zt,this._afterDismissed=new n.B7,this._afterOpened=new n.B7,this._onAction=new n.B7,this._dismissedByAction=!1,this.containerInstance=Jt,Jt._onExit.subscribe(()=>this._finishDismiss())}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete(),this.dismiss()),clearTimeout(this._durationTimeoutId)}closeWithAction(){this.dismissWithAction()}_dismissAfter(Jt){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(Jt,se))}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}afterDismissed(){return this._afterDismissed}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction}}const be=new i.nKC("MatSnackBarData");class rt{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}let me=(()=>{class Qt{static{this.\u0275fac=function(nn){return new(nn||Qt)}}static{this.\u0275dir=i.FsC({type:Qt,selectors:[["","matSnackBarLabel",""]],hostAttrs:[1,"mat-mdc-snack-bar-label","mdc-snackbar__label"]})}}return Qt})(),le=(()=>{class Qt{static{this.\u0275fac=function(nn){return new(nn||Qt)}}static{this.\u0275dir=i.FsC({type:Qt,selectors:[["","matSnackBarActions",""]],hostAttrs:[1,"mat-mdc-snack-bar-actions","mdc-snackbar__actions"]})}}return Qt})(),Xe=(()=>{class Qt{static{this.\u0275fac=function(nn){return new(nn||Qt)}}static{this.\u0275dir=i.FsC({type:Qt,selectors:[["","matSnackBarAction",""]],hostAttrs:[1,"mat-mdc-snack-bar-action","mdc-snackbar__action"]})}}return Qt})(),Se=(()=>{class Qt{constructor(Zt,nn){this.snackBarRef=Zt,this.data=nn}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}static{this.\u0275fac=function(nn){return new(nn||Qt)(i.rXU(Ce),i.rXU(be))}}static{this.\u0275cmp=i.VBU({type:Qt,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-mdc-simple-snack-bar"],exportAs:["matSnackBar"],decls:3,vars:2,consts:[["matSnackBarLabel",""],["matSnackBarActions","",4,"ngIf"],["matSnackBarActions",""],["mat-button","","matSnackBarAction","",3,"click"]],template:function(nn,Xt){1&nn&&(i.j41(0,"div",0),i.EFF(1),i.k0s(),i.DNE(2,ve,3,1,"div",1)),2&nn&&(i.R7$(),i.SpI(" ",Xt.data.message,"\n"),i.R7$(),i.Y8G("ngIf",Xt.hasAction))},dependencies:[h.bT,Q,me,le,Xe],styles:[".mat-mdc-simple-snack-bar{display:flex}"],encapsulation:2,changeDetection:0})}}return Qt})();const fe={snackBarState:(0,Ve.hZ)("state",[(0,Ve.wk)("void, hidden",(0,Ve.iF)({transform:"scale(0.8)",opacity:0})),(0,Ve.wk)("visible",(0,Ve.iF)({transform:"scale(1)",opacity:1})),(0,Ve.kY)("* => visible",(0,Ve.i0)("150ms cubic-bezier(0, 0, 0.2, 1)")),(0,Ve.kY)("* => void, * => hidden",(0,Ve.i0)("75ms cubic-bezier(0.4, 0.0, 1, 1)",(0,Ve.iF)({opacity:0})))])};let Ne=0,ye=(()=>{class Qt extends $e.lb{constructor(Zt,nn,Xt,lt,Ue){super(),this._ngZone=Zt,this._elementRef=nn,this._changeDetectorRef=Xt,this._platform=lt,this.snackBarConfig=Ue,this._document=(0,i.WQX)(h.qQ),this._trackedModals=new Set,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new n.B7,this._onExit=new n.B7,this._onEnter=new n.B7,this._animationState="void",this._liveElementId="mat-snack-bar-container-live-"+Ne++,this.attachDomPortal=wt=>{this._assertNotAttached();const gt=this._portalOutlet.attachDomPortal(wt);return this._afterPortalAttached(),gt},this._live="assertive"!==Ue.politeness||Ue.announcementMessage?"off"===Ue.politeness?"off":"polite":"assertive",this._platform.FIREFOX&&("polite"===this._live&&(this._role="status"),"assertive"===this._live&&(this._role="alert"))}attachComponentPortal(Zt){this._assertNotAttached();const nn=this._portalOutlet.attachComponentPortal(Zt);return this._afterPortalAttached(),nn}attachTemplatePortal(Zt){this._assertNotAttached();const nn=this._portalOutlet.attachTemplatePortal(Zt);return this._afterPortalAttached(),nn}onAnimationEnd(Zt){const{fromState:nn,toState:Xt}=Zt;if(("void"===Xt&&"void"!==nn||"hidden"===Xt)&&this._completeExit(),"visible"===Xt){const lt=this._onEnter;this._ngZone.run(()=>{lt.next(),lt.complete()})}}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}exit(){return this._ngZone.run(()=>{this._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId)}),this._onExit}ngOnDestroy(){this._destroyed=!0,this._clearFromModals(),this._completeExit()}_completeExit(){this._ngZone.onMicrotaskEmpty.pipe((0,dt.s)(1)).subscribe(()=>{this._ngZone.run(()=>{this._onExit.next(),this._onExit.complete()})})}_afterPortalAttached(){const Zt=this._elementRef.nativeElement,nn=this.snackBarConfig.panelClass;nn&&(Array.isArray(nn)?nn.forEach(Xt=>Zt.classList.add(Xt)):Zt.classList.add(nn)),this._exposeToModals()}_exposeToModals(){const Zt=this._liveElementId,nn=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let Xt=0;Xt<nn.length;Xt++){const lt=nn[Xt],Ue=lt.getAttribute("aria-owns");this._trackedModals.add(lt),Ue?-1===Ue.indexOf(Zt)&<.setAttribute("aria-owns",Ue+" "+Zt):lt.setAttribute("aria-owns",Zt)}}_clearFromModals(){this._trackedModals.forEach(Zt=>{const nn=Zt.getAttribute("aria-owns");if(nn){const Xt=nn.replace(this._liveElementId,"").trim();Xt.length>0?Zt.setAttribute("aria-owns",Xt):Zt.removeAttribute("aria-owns")}}),this._trackedModals.clear()}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{const Zt=this._elementRef.nativeElement.querySelector("[aria-hidden]"),nn=this._elementRef.nativeElement.querySelector("[aria-live]");if(Zt&&nn){let Xt=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&Zt.contains(document.activeElement)&&(Xt=document.activeElement),Zt.removeAttribute("aria-hidden"),nn.appendChild(Zt),Xt?.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}static{this.\u0275fac=function(nn){return new(nn||Qt)(i.rXU(i.SKi),i.rXU(i.aKT),i.rXU(i.gRc),i.rXU(C.OD),i.rXU(rt))}}static{this.\u0275dir=i.FsC({type:Qt,viewQuery:function(nn,Xt){if(1&nn&&i.GBs($e.I3,7),2&nn){let lt;i.mGM(lt=i.lsd())&&(Xt._portalOutlet=lt.first)}},features:[i.Vt3]})}}return Qt})(),Ot=(()=>{class Qt extends ye{_afterPortalAttached(){super._afterPortalAttached();const Zt=this._label.nativeElement,nn="mdc-snackbar__label";Zt.classList.toggle(nn,!Zt.querySelector(`.${nn}`))}static{this.\u0275fac=(()=>{let Zt;return function(Xt){return(Zt||(Zt=i.xGo(Qt)))(Xt||Qt)}})()}static{this.\u0275cmp=i.VBU({type:Qt,selectors:[["mat-snack-bar-container"]],viewQuery:function(nn,Xt){if(1&nn&&i.GBs(ue,7),2&nn){let lt;i.mGM(lt=i.lsd())&&(Xt._label=lt.first)}},hostAttrs:[1,"mdc-snackbar","mat-mdc-snack-bar-container","mdc-snackbar--open"],hostVars:1,hostBindings:function(nn,Xt){1&nn&&i.Kam("@state.done",function(Ue){return Xt.onAnimationEnd(Ue)}),2&nn&&i.zvX("@state",Xt._animationState)},features:[i.Vt3],decls:6,vars:3,consts:[["label",""],[1,"mdc-snackbar__surface"],[1,"mat-mdc-snack-bar-label"],["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(nn,Xt){1&nn&&(i.j41(0,"div",1)(1,"div",2,0)(3,"div",3),i.DNE(4,et,0,0,"ng-template",4),i.k0s(),i.nrm(5,"div"),i.k0s()()),2&nn&&(i.R7$(5),i.BMQ("aria-live",Xt._live)("role",Xt._role)("id",Xt._liveElementId))},dependencies:[$e.I3],styles:['.mdc-snackbar{display:none;position:fixed;right:0;bottom:0;left:0;align-items:center;justify-content:center;box-sizing:border-box;pointer-events:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mdc-snackbar--opening,.mdc-snackbar--open,.mdc-snackbar--closing{display:flex}.mdc-snackbar--open .mdc-snackbar__label,.mdc-snackbar--open .mdc-snackbar__actions{visibility:visible}.mdc-snackbar__surface{padding-left:0;padding-right:8px;display:flex;align-items:center;justify-content:flex-start;box-sizing:border-box;transform:scale(0.8);opacity:0}.mdc-snackbar__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-snackbar__surface::before{border-color:CanvasText}}[dir=rtl] .mdc-snackbar__surface,.mdc-snackbar__surface[dir=rtl]{padding-left:8px;padding-right:0}.mdc-snackbar--open .mdc-snackbar__surface{transform:scale(1);opacity:1;pointer-events:auto}.mdc-snackbar--closing .mdc-snackbar__surface{transform:scale(1)}.mdc-snackbar__label{padding-left:16px;padding-right:8px;width:100%;flex-grow:1;box-sizing:border-box;margin:0;visibility:hidden;padding-top:14px;padding-bottom:14px}[dir=rtl] .mdc-snackbar__label,.mdc-snackbar__label[dir=rtl]{padding-left:8px;padding-right:16px}.mdc-snackbar__label::before{display:inline;content:attr(data-mdc-snackbar-label-text)}.mdc-snackbar__actions{display:flex;flex-shrink:0;align-items:center;box-sizing:border-box;visibility:hidden}.mdc-snackbar__action+.mdc-snackbar__dismiss{margin-left:8px;margin-right:0}[dir=rtl] .mdc-snackbar__action+.mdc-snackbar__dismiss,.mdc-snackbar__action+.mdc-snackbar__dismiss[dir=rtl]{margin-left:0;margin-right:8px}.mat-mdc-snack-bar-container{margin:8px;--mdc-snackbar-container-shape:4px;position:static}.mat-mdc-snack-bar-container .mdc-snackbar__surface{min-width:344px}@media(max-width: 480px),(max-width: 344px){.mat-mdc-snack-bar-container .mdc-snackbar__surface{min-width:100%}}@media(max-width: 480px),(max-width: 344px){.mat-mdc-snack-bar-container{width:100vw}}.mat-mdc-snack-bar-container .mdc-snackbar__surface{max-width:672px}.mat-mdc-snack-bar-container .mdc-snackbar__surface{box-shadow:0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12)}.mat-mdc-snack-bar-container .mdc-snackbar__surface{background-color:var(--mdc-snackbar-container-color)}.mat-mdc-snack-bar-container .mdc-snackbar__surface{border-radius:var(--mdc-snackbar-container-shape)}.mat-mdc-snack-bar-container .mdc-snackbar__label{color:var(--mdc-snackbar-supporting-text-color)}.mat-mdc-snack-bar-container .mdc-snackbar__label{font-size:var(--mdc-snackbar-supporting-text-size);font-family:var(--mdc-snackbar-supporting-text-font);font-weight:var(--mdc-snackbar-supporting-text-weight);line-height:var(--mdc-snackbar-supporting-text-line-height)}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled){color:var(--mat-snack-bar-button-color);--mat-mdc-button-persistent-ripple-color: currentColor}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled) .mat-ripple-element{background-color:currentColor;opacity:.1}.mat-mdc-snack-bar-container .mdc-snackbar__label::before{display:none}.mat-mdc-snack-bar-handset,.mat-mdc-snack-bar-container,.mat-mdc-snack-bar-label{flex:1 1 auto}.mat-mdc-snack-bar-handset .mdc-snackbar__surface{width:100%}'],encapsulation:2,data:{animation:[fe.snackBarState]}})}}return Qt})(),sn=(()=>{class Qt{static{this.\u0275fac=function(nn){return new(nn||Qt)}}static{this.\u0275mod=i.$C({type:Qt})}static{this.\u0275inj=i.G2t({imports:[vt.z_,$e.jc,h.MD,Ke,P.yE,P.yE]})}}return Qt})();const yn=new i.nKC("mat-snack-bar-default-options",{providedIn:"root",factory:function dn(){return new rt}});let At=(()=>{class Qt{get _openedSnackBarRef(){const Zt=this._parentSnackBar;return Zt?Zt._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(Zt){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=Zt:this._snackBarRefAtThisLevel=Zt}constructor(Zt,nn,Xt,lt,Ue,wt){this._overlay=Zt,this._live=nn,this._injector=Xt,this._breakpointObserver=lt,this._parentSnackBar=Ue,this._defaultConfig=wt,this._snackBarRefAtThisLevel=null}openFromComponent(Zt,nn){return this._attach(Zt,nn)}openFromTemplate(Zt,nn){return this._attach(Zt,nn)}open(Zt,nn="",Xt){const lt={...this._defaultConfig,...Xt};return lt.data={message:Zt,action:nn},lt.announcementMessage===Zt&&(lt.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,lt)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(Zt,nn){const lt=i.zZn.create({parent:nn&&nn.viewContainerRef&&nn.viewContainerRef.injector||this._injector,providers:[{provide:rt,useValue:nn}]}),Ue=new $e.A8(this.snackBarContainerComponent,nn.viewContainerRef,lt),wt=Zt.attach(Ue);return wt.instance.snackBarConfig=nn,wt.instance}_attach(Zt,nn){const Xt={...new rt,...this._defaultConfig,...nn},lt=this._createOverlay(Xt),Ue=this._attachSnackBarContainer(lt,Xt),wt=new Ce(Ue,lt);if(Zt instanceof i.C4Q){const gt=new $e.VA(Zt,null,{$implicit:Xt.data,snackBarRef:wt});wt.instance=Ue.attachTemplatePortal(gt)}else{const gt=this._createInjector(Xt,wt),Ht=new $e.A8(Zt,void 0,gt),bn=Ue.attachComponentPortal(Ht);wt.instance=bn.instance}return this._breakpointObserver.observe(J.Rp.HandsetPortrait).pipe((0,Pe.Q)(lt.detachments())).subscribe(gt=>{lt.overlayElement.classList.toggle(this.handsetCssClass,gt.matches)}),Xt.announcementMessage&&Ue._onAnnounce.subscribe(()=>{this._live.announce(Xt.announcementMessage,Xt.politeness)}),this._animateSnackBar(wt,Xt),this._openedSnackBarRef=wt,this._openedSnackBarRef}_animateSnackBar(Zt,nn){Zt.afterDismissed().subscribe(()=>{this._openedSnackBarRef==Zt&&(this._openedSnackBarRef=null),nn.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{Zt.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):Zt.containerInstance.enter(),nn.duration&&nn.duration>0&&Zt.afterOpened().subscribe(()=>Zt._dismissAfter(nn.duration))}_createOverlay(Zt){const nn=new vt.rR;nn.direction=Zt.direction;let Xt=this._overlay.position().global();const lt="rtl"===Zt.direction,Ue="left"===Zt.horizontalPosition||"start"===Zt.horizontalPosition&&!lt||"end"===Zt.horizontalPosition&<,wt=!Ue&&"center"!==Zt.horizontalPosition;return Ue?Xt.left("0"):wt?Xt.right("0"):Xt.centerHorizontally(),"top"===Zt.verticalPosition?Xt.top("0"):Xt.bottom("0"),nn.positionStrategy=Xt,this._overlay.create(nn)}_createInjector(Zt,nn){return i.zZn.create({parent:Zt&&Zt.viewContainerRef&&Zt.viewContainerRef.injector||this._injector,providers:[{provide:Ce,useValue:nn},{provide:be,useValue:Zt.data}]})}static{this.\u0275fac=function(nn){return new(nn||Qt)(i.KVO(vt.hJ),i.KVO(S.Ai),i.KVO(i.zZn),i.KVO(J.QP),i.KVO(Qt,12),i.KVO(yn))}}static{this.\u0275prov=i.jDH({token:Qt,factory:Qt.\u0275fac})}}return Qt})(),Vt=(()=>{class Qt extends At{constructor(Zt,nn,Xt,lt,Ue,wt){super(Zt,nn,Xt,lt,Ue,wt),this.simpleSnackBarComponent=Se,this.snackBarContainerComponent=Ot,this.handsetCssClass="mat-mdc-snack-bar-handset"}static{this.\u0275fac=function(nn){return new(nn||Qt)(i.KVO(vt.hJ),i.KVO(S.Ai),i.KVO(i.zZn),i.KVO(J.QP),i.KVO(Qt,12),i.KVO(yn))}}static{this.\u0275prov=i.jDH({token:Qt,factory:Qt.\u0275fac,providedIn:sn})}}return Qt})()},68477:(St,z,s)=>{"use strict";s.d(z,{ES:()=>Xe,RI:()=>Gi,T8:()=>V,mq:()=>nn});var i=s(61142),n=s(58527),h=s(51635),C=s(76614),S=s(26321),M=s(31308),P=s(51394),x=s(10399),A=s(80583),g=s(36877),m=s(43848),l=s(16229),r=s(12532),u=s(17053),v=s(3496),E=s(34593),T=s(53461),R=s(4208),B=s(65706),U=s(72147),Y=s(36666),ae=s(8619),G=s(40262),k=s(6364),X=s(64409),q=s(72653),Q=s(25373);const ce=bt=>({animationDuration:bt}),te=(bt,Zi)=>({value:bt,params:Zi});function Ee(bt,Zi){}const it=["*"];function Fe(bt,Zi){1&bt&&n.SdG(0)}const Qe=["tabListContainer"],ct=["tabList"],Ge=["tabListInner"],nt=["nextPaginator"],Je=["previousPaginator"],ze=["tabBodyWrapper"],Ke=["tabHeader"];function Ve(bt,Zi){}function $e(bt,Zi){if(1&bt&&n.DNE(0,Ve,0,0,"ng-template",14),2&bt){const Rn=n.XpG().$implicit;n.Y8G("cdkPortalOutlet",Rn.templateLabel)}}function dt(bt,Zi){if(1&bt&&n.EFF(0),2&bt){const Rn=n.XpG().$implicit;n.JRh(Rn.textLabel)}}function Pe(bt,Zi){if(1&bt){const Rn=n.RV6();n.j41(0,"div",8,2),n.bIt("click",function(){const Kn=n.eBV(Rn),Ni=Kn.$implicit,ir=Kn.index,Ir=n.XpG(),hr=n.sdS(1);return n.Njj(Ir._handleClick(Ni,hr,ir))})("cdkFocusChange",function(Kn){const Ni=n.eBV(Rn).index,ir=n.XpG();return n.Njj(ir._tabFocusChanged(Kn,Ni))}),n.nrm(2,"span",9)(3,"div",10),n.j41(4,"span",11)(5,"span",12),n.DNE(6,$e,1,1,"ng-template",13)(7,dt,1,1,"ng-template",null,3,n.C5r),n.k0s()()()}if(2&bt){const Rn=Zi.$implicit,Gn=Zi.index,Kn=n.sdS(1),Ni=n.sdS(8),ir=n.XpG();n.AVh("mdc-tab--active",ir.selectedIndex===Gn),n.Y8G("id",ir._getTabLabelId(Gn))("ngClass",Rn.labelClass)("disabled",Rn.disabled)("fitInkBarToContent",ir.fitInkBarToContent),n.BMQ("tabIndex",ir._getTabIndex(Gn))("aria-posinset",Gn+1)("aria-setsize",ir._tabs.length)("aria-controls",ir._getTabContentId(Gn))("aria-selected",ir.selectedIndex===Gn)("aria-label",Rn.ariaLabel||null)("aria-labelledby",!Rn.ariaLabel&&Rn.ariaLabelledby?Rn.ariaLabelledby:null),n.R7$(3),n.Y8G("matRippleTrigger",Kn)("matRippleDisabled",Rn.disabled||ir.disableRipple),n.R7$(3),n.Y8G("ngIf",Rn.templateLabel)("ngIfElse",Ni)}}function J(bt,Zi){if(1&bt){const Rn=n.RV6();n.j41(0,"mat-tab-body",15),n.bIt("_onCentered",function(){n.eBV(Rn);const Kn=n.XpG();return n.Njj(Kn._removeTabBodyWrapperHeight())})("_onCentering",function(Kn){n.eBV(Rn);const Ni=n.XpG();return n.Njj(Ni._setTabBodyWrapperHeight(Kn))}),n.k0s()}if(2&bt){const Rn=Zi.$implicit,Gn=Zi.index,Kn=n.XpG();n.AVh("mat-mdc-tab-body-active",Kn.selectedIndex===Gn),n.Y8G("id",Kn._getTabContentId(Gn))("ngClass",Rn.bodyClass)("content",Rn.content)("position",Rn.position)("origin",Rn.origin)("animationDuration",Kn.animationDuration)("preserveContent",Kn.preserveContent),n.BMQ("tabindex",null!=Kn.contentTabIndex&&Kn.selectedIndex===Gn?Kn.contentTabIndex:null)("aria-labelledby",Kn._getTabLabelId(Gn))("aria-hidden",Kn.selectedIndex!==Gn)}}const ue={translateTab:(0,G.hZ)("translateTab",[(0,G.wk)("center, void, left-origin-center, right-origin-center",(0,G.iF)({transform:"none"})),(0,G.wk)("left",(0,G.iF)({transform:"translate3d(-100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),(0,G.wk)("right",(0,G.iF)({transform:"translate3d(100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),(0,G.kY)("* => left, * => right, left => center, right => center",(0,G.i0)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),(0,G.kY)("void => left-origin-center",[(0,G.iF)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}),(0,G.i0)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),(0,G.kY)("void => right-origin-center",[(0,G.iF)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"}),(0,G.i0)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let et=(()=>{class bt extends C.I3{constructor(Rn,Gn,Kn,Ni){super(Rn,Gn,Ni),this._host=Kn,this._centeringSub=x.y.EMPTY,this._leavingSub=x.y.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe((0,E.Z)(this._host._isCenterPosition(this._host._position))).subscribe(Rn=>{Rn&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this._host.preserveContent||this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}static{this.\u0275fac=function(Gn){return new(Gn||bt)(n.rXU(n.OM3),n.rXU(n.c1b),n.rXU((0,n.Rfq)(()=>Ce)),n.rXU(i.qQ))}}static{this.\u0275dir=n.FsC({type:bt,selectors:[["","matTabBodyHost",""]],features:[n.Vt3]})}}return bt})(),se=(()=>{class bt{set position(Rn){this._positionIndex=Rn,this._computePositionAnimationState()}constructor(Rn,Gn,Kn){this._elementRef=Rn,this._dir=Gn,this._dirChangeSubscription=x.y.EMPTY,this._translateTabComplete=new A.B7,this._onCentering=new n.bkB,this._beforeCentering=new n.bkB,this._afterLeavingCenter=new n.bkB,this._onCentered=new n.bkB(!0),this.animationDuration="500ms",this.preserveContent=!1,Gn&&(this._dirChangeSubscription=Gn.change.subscribe(Ni=>{this._computePositionAnimationState(Ni),Kn.markForCheck()})),this._translateTabComplete.pipe((0,T.F)((Ni,ir)=>Ni.fromState===ir.fromState&&Ni.toState===ir.toState)).subscribe(Ni=>{this._isCenterPosition(Ni.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(Ni.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(Rn){const Gn=this._isCenterPosition(Rn.toState);this._beforeCentering.emit(Gn),Gn&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(Rn){return"center"==Rn||"left-origin-center"==Rn||"right-origin-center"==Rn}_computePositionAnimationState(Rn=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==Rn?"left":"right":this._positionIndex>0?"ltr"==Rn?"right":"left":"center"}_computePositionFromOrigin(Rn){const Gn=this._getLayoutDirection();return"ltr"==Gn&&Rn<=0||"rtl"==Gn&&Rn>0?"left-origin-center":"right-origin-center"}static{this.\u0275fac=function(Gn){return new(Gn||bt)(n.rXU(n.aKT),n.rXU(P.dS,8),n.rXU(n.gRc))}}static{this.\u0275dir=n.FsC({type:bt,inputs:{_content:[n.Mj6.None,"content","_content"],origin:"origin",animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}})}}return bt})(),Ce=(()=>{class bt extends se{constructor(Rn,Gn,Kn){super(Rn,Gn,Kn)}static{this.\u0275fac=function(Gn){return new(Gn||bt)(n.rXU(n.aKT),n.rXU(P.dS,8),n.rXU(n.gRc))}}static{this.\u0275cmp=n.VBU({type:bt,selectors:[["mat-tab-body"]],viewQuery:function(Gn,Kn){if(1&Gn&&n.GBs(C.I3,5),2&Gn){let Ni;n.mGM(Ni=n.lsd())&&(Kn._portalHost=Ni.first)}},hostAttrs:[1,"mat-mdc-tab-body"],features:[n.Vt3],decls:3,vars:6,consts:[["content",""],["cdkScrollable","",1,"mat-mdc-tab-body-content"],["matTabBodyHost",""]],template:function(Gn,Kn){if(1&Gn){const Ni=n.RV6();n.j41(0,"div",1,0),n.bIt("@translateTab.start",function(Ir){return n.eBV(Ni),n.Njj(Kn._onTranslateTabStarted(Ir))})("@translateTab.done",function(Ir){return n.eBV(Ni),n.Njj(Kn._translateTabComplete.next(Ir))}),n.DNE(2,Ee,0,0,"ng-template",2),n.k0s()}2&Gn&&n.Y8G("@translateTab",n.l_i(3,te,Kn._position,n.eq3(1,ce,Kn.animationDuration)))},dependencies:[et],styles:['.mat-mdc-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-mdc-tab-body.mat-mdc-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-mdc-tab-group.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body.mat-mdc-tab-body-active{overflow-y:hidden}.mat-mdc-tab-body-content{height:100%;overflow:auto}.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body-content{overflow:hidden}.mat-mdc-tab-body-content[style*="visibility: hidden"]{display:none}'],encapsulation:2,data:{animation:[ue.translateTab]}})}}return bt})();const be=new n.nKC("MatTabContent");let rt=(()=>{class bt{constructor(Rn){this.template=Rn}static{this.\u0275fac=function(Gn){return new(Gn||bt)(n.rXU(n.C4Q))}}static{this.\u0275dir=n.FsC({type:bt,selectors:[["","matTabContent",""]],features:[n.Jv_([{provide:be,useExisting:bt}])]})}}return bt})();const me=new n.nKC("MatTabLabel"),le=new n.nKC("MAT_TAB");let Xe=(()=>{class bt extends C.bV{constructor(Rn,Gn,Kn){super(Rn,Gn),this._closestTab=Kn}static{this.\u0275fac=function(Gn){return new(Gn||bt)(n.rXU(n.C4Q),n.rXU(n.c1b),n.rXU(le,8))}}static{this.\u0275dir=n.FsC({type:bt,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[n.Jv_([{provide:me,useExisting:bt}]),n.Vt3]})}}return bt})();const Se="mdc-tab-indicator--active",fe="mdc-tab-indicator--no-transition";class Ne{constructor(Zi){this._items=Zi}hide(){this._items.forEach(Zi=>Zi.deactivateInkBar())}alignToElement(Zi){const Rn=this._items.find(Kn=>Kn.elementRef.nativeElement===Zi),Gn=this._currentItem;if(Rn!==Gn&&(Gn?.deactivateInkBar(),Rn)){const Kn=Gn?.elementRef.nativeElement.getBoundingClientRect?.();Rn.activateInkBar(Kn),this._currentItem=Rn}}}function ye(bt){return class extends bt{constructor(...Zi){super(...Zi),this._fitToContent=!1}get fitInkBarToContent(){return this._fitToContent}set fitInkBarToContent(Zi){const Rn=(0,k.he)(Zi);this._fitToContent!==Rn&&(this._fitToContent=Rn,this._inkBarElement&&this._appendInkBarElement())}activateInkBar(Zi){const Rn=this.elementRef.nativeElement;if(!Zi||!Rn.getBoundingClientRect||!this._inkBarContentElement)return void Rn.classList.add(Se);const Gn=Rn.getBoundingClientRect(),Kn=Zi.width/Gn.width,Ni=Zi.left-Gn.left;Rn.classList.add(fe),this._inkBarContentElement.style.setProperty("transform",`translateX(${Ni}px) scaleX(${Kn})`),Rn.getBoundingClientRect(),Rn.classList.remove(fe),Rn.classList.add(Se),this._inkBarContentElement.style.setProperty("transform","")}deactivateInkBar(){this.elementRef.nativeElement.classList.remove(Se)}ngOnInit(){this._createInkBarElement()}ngOnDestroy(){this._inkBarElement?.remove(),this._inkBarElement=this._inkBarContentElement=null}_createInkBarElement(){const Zi=this.elementRef.nativeElement.ownerDocument||document;this._inkBarElement=Zi.createElement("span"),this._inkBarContentElement=Zi.createElement("span"),this._inkBarElement.className="mdc-tab-indicator",this._inkBarContentElement.className="mdc-tab-indicator__content mdc-tab-indicator__content--underline",this._inkBarElement.appendChild(this._inkBarContentElement),this._appendInkBarElement()}_appendInkBarElement(){(this._fitToContent?this.elementRef.nativeElement.querySelector(".mdc-tab__content"):this.elementRef.nativeElement).appendChild(this._inkBarElement)}}}const dn=(0,h.Ob)(class{}),At=ye((()=>{class bt extends dn{constructor(Rn){super(),this.elementRef=Rn}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}static{this.\u0275fac=function(Gn){return new(Gn||bt)(n.rXU(n.aKT))}}static{this.\u0275dir=n.FsC({type:bt,features:[n.Vt3]})}}return bt})());let Vt=(()=>{class bt extends At{static{this.\u0275fac=(()=>{let Rn;return function(Kn){return(Rn||(Rn=n.xGo(bt)))(Kn||bt)}})()}static{this.\u0275dir=n.FsC({type:bt,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(Gn,Kn){2&Gn&&(n.BMQ("aria-disabled",!!Kn.disabled),n.AVh("mat-mdc-tab-disabled",Kn.disabled))},inputs:{disabled:"disabled",fitInkBarToContent:"fitInkBarToContent"},features:[n.Vt3]})}}return bt})();const Qt=(0,h.Ob)(class{}),Jt=new n.nKC("MAT_TAB_GROUP");let Zt=(()=>{class bt extends Qt{get content(){return this._contentPortal}constructor(Rn,Gn){super(),this._viewContainerRef=Rn,this._closestTabGroup=Gn,this.textLabel="",this._contentPortal=null,this._stateChanges=new A.B7,this.position=null,this.origin=null,this.isActive=!1}ngOnChanges(Rn){(Rn.hasOwnProperty("textLabel")||Rn.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new C.VA(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(Rn){Rn&&Rn._closestTab===this&&(this._templateLabel=Rn)}static{this.\u0275fac=function(Gn){return new(Gn||bt)(n.rXU(n.c1b),n.rXU(Jt,8))}}static{this.\u0275dir=n.FsC({type:bt,viewQuery:function(Gn,Kn){if(1&Gn&&n.GBs(n.C4Q,7),2&Gn){let Ni;n.mGM(Ni=n.lsd())&&(Kn._implicitContent=Ni.first)}},inputs:{textLabel:[n.Mj6.None,"label","textLabel"],ariaLabel:[n.Mj6.None,"aria-label","ariaLabel"],ariaLabelledby:[n.Mj6.None,"aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass"},features:[n.Vt3,n.OA$]})}}return bt})(),nn=(()=>{class bt extends Zt{constructor(){super(...arguments),this._explicitContent=void 0}get templateLabel(){return this._templateLabel}set templateLabel(Rn){this._setTemplateLabelInput(Rn)}static{this.\u0275fac=(()=>{let Rn;return function(Kn){return(Rn||(Rn=n.xGo(bt)))(Kn||bt)}})()}static{this.\u0275cmp=n.VBU({type:bt,selectors:[["mat-tab"]],contentQueries:function(Gn,Kn,Ni){if(1&Gn&&(n.wni(Ni,rt,7,n.C4Q),n.wni(Ni,Xe,5)),2&Gn){let ir;n.mGM(ir=n.lsd())&&(Kn._explicitContent=ir.first),n.mGM(ir=n.lsd())&&(Kn.templateLabel=ir.first)}},inputs:{disabled:"disabled"},exportAs:["matTab"],features:[n.Jv_([{provide:le,useExisting:bt}]),n.Vt3],ngContentSelectors:it,decls:1,vars:0,template:function(Gn,Kn){1&Gn&&(n.NAR(),n.DNE(0,Fe,1,0,"ng-template"))},encapsulation:2})}}return bt})();const Xt=(0,q.BQ)({passive:!0});let wt=(()=>{class bt{get disablePagination(){return this._disablePagination}set disablePagination(Rn){this._disablePagination=(0,k.he)(Rn)}get selectedIndex(){return this._selectedIndex}set selectedIndex(Rn){Rn=(0,k.OE)(Rn),this._selectedIndex!=Rn&&(this._selectedIndexChanged=!0,this._selectedIndex=Rn,this._keyManager&&this._keyManager.updateActiveItem(Rn))}constructor(Rn,Gn,Kn,Ni,ir,Ir,hr){this._elementRef=Rn,this._changeDetectorRef=Gn,this._viewportRuler=Kn,this._dir=Ni,this._ngZone=ir,this._platform=Ir,this._animationMode=hr,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new A.B7,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new A.B7,this._disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new n.bkB,this.indexFocused=new n.bkB,ir.runOutsideAngular(()=>{(0,g.R)(Rn.nativeElement,"mouseleave").pipe((0,R.Q)(this._destroyed)).subscribe(()=>{this._stopInterval()})})}ngAfterViewInit(){(0,g.R)(this._previousPaginator.nativeElement,"touchstart",Xt).pipe((0,R.Q)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),(0,g.R)(this._nextPaginator.nativeElement,"touchstart",Xt).pipe((0,R.Q)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const Rn=this._dir?this._dir.change:(0,m.of)("ltr"),Gn=this._viewportRuler.change(150),Kn=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new M.Bu(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap().skipPredicate(()=>!1),this._keyManager.updateActiveItem(this._selectedIndex),this._ngZone.onStable.pipe((0,B.s)(1)).subscribe(Kn),(0,l.h)(Rn,Gn,this._items.changes,this._itemsResized()).pipe((0,R.Q)(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),Kn()})}),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.subscribe(Ni=>{this.indexFocused.emit(Ni),this._setTabFocus(Ni)})}_itemsResized(){return"function"!=typeof ResizeObserver?r.w:this._items.changes.pipe((0,E.Z)(this._items),(0,U.n)(Rn=>new u.c(Gn=>this._ngZone.runOutsideAngular(()=>{const Kn=new ResizeObserver(Ni=>Gn.next(Ni));return Rn.forEach(Ni=>Kn.observe(Ni.elementRef.nativeElement)),()=>{Kn.disconnect()}}))),(0,Y.i)(1),(0,ae.p)(Rn=>Rn.some(Gn=>Gn.contentRect.width>0&&Gn.contentRect.height>0)))}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._keyManager?.destroy(),this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(Rn){if(!(0,Q.rp)(Rn))switch(Rn.keyCode){case Q.Fm:case Q.t6:if(this.focusIndex!==this.selectedIndex){const Gn=this._items.get(this.focusIndex);Gn&&!Gn.disabled&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(Rn))}break;default:this._keyManager.onKeydown(Rn)}}_onContentChanges(){const Rn=this._elementRef.nativeElement.textContent;Rn!==this._currentTextContent&&(this._currentTextContent=Rn||"",this._ngZone.run(()=>{this.updatePagination(),this._alignInkBarToSelectedTab(),this._changeDetectorRef.markForCheck()}))}updatePagination(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}get focusIndex(){return this._keyManager?this._keyManager.activeItemIndex:0}set focusIndex(Rn){!this._isValidIndex(Rn)||this.focusIndex===Rn||!this._keyManager||this._keyManager.setActiveItem(Rn)}_isValidIndex(Rn){return!this._items||!!this._items.toArray()[Rn]}_setTabFocus(Rn){if(this._showPaginationControls&&this._scrollToLabel(Rn),this._items&&this._items.length){this._items.toArray()[Rn].focus();const Gn=this._tabListContainer.nativeElement;Gn.scrollLeft="ltr"==this._getLayoutDirection()?0:Gn.scrollWidth-Gn.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const Rn=this.scrollDistance,Gn="ltr"===this._getLayoutDirection()?-Rn:Rn;this._tabList.nativeElement.style.transform=`translateX(${Math.round(Gn)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(Rn){this._scrollTo(Rn)}_scrollHeader(Rn){return this._scrollTo(this._scrollDistance+("before"==Rn?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(Rn){this._stopInterval(),this._scrollHeader(Rn)}_scrollToLabel(Rn){if(this.disablePagination)return;const Gn=this._items?this._items.toArray()[Rn]:null;if(!Gn)return;const Kn=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:Ni,offsetWidth:ir}=Gn.elementRef.nativeElement;let Ir,hr;"ltr"==this._getLayoutDirection()?(Ir=Ni,hr=Ir+ir):(hr=this._tabListInner.nativeElement.offsetWidth-Ni,Ir=hr-ir);const Ms=this.scrollDistance,Pr=this.scrollDistance+Kn;Ir<Ms?this.scrollDistance-=Ms-Ir:hr>Pr&&(this.scrollDistance+=Math.min(hr-Pr,Ir-Ms))}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const Rn=this._tabListInner.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;Rn||(this.scrollDistance=0),Rn!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=Rn}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){return this._tabListInner.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}_alignInkBarToSelectedTab(){const Rn=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,Gn=Rn?Rn.elementRef.nativeElement:null;Gn?this._inkBar.alignToElement(Gn):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(Rn,Gn){Gn&&null!=Gn.button&&0!==Gn.button||(this._stopInterval(),(0,v.O)(650,100).pipe((0,R.Q)((0,l.h)(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:Kn,distance:Ni}=this._scrollHeader(Rn);(0===Ni||Ni>=Kn)&&this._stopInterval()}))}_scrollTo(Rn){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const Gn=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(Gn,Rn)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:Gn,distance:this._scrollDistance}}static{this.\u0275fac=function(Gn){return new(Gn||bt)(n.rXU(n.aKT),n.rXU(n.gRc),n.rXU(X.Xj),n.rXU(P.dS,8),n.rXU(n.SKi),n.rXU(q.OD),n.rXU(n.bc$,8))}}static{this.\u0275dir=n.FsC({type:bt,inputs:{disablePagination:"disablePagination"}})}}return bt})(),gt=(()=>{class bt extends wt{get disableRipple(){return this._disableRipple}set disableRipple(Rn){this._disableRipple=(0,k.he)(Rn)}constructor(Rn,Gn,Kn,Ni,ir,Ir,hr){super(Rn,Gn,Kn,Ni,ir,Ir,hr),this._disableRipple=!1}_itemSelected(Rn){Rn.preventDefault()}static{this.\u0275fac=function(Gn){return new(Gn||bt)(n.rXU(n.aKT),n.rXU(n.gRc),n.rXU(X.Xj),n.rXU(P.dS,8),n.rXU(n.SKi),n.rXU(q.OD),n.rXU(n.bc$,8))}}static{this.\u0275dir=n.FsC({type:bt,inputs:{disableRipple:"disableRipple"},features:[n.Vt3]})}}return bt})(),Ht=(()=>{class bt extends gt{constructor(Rn,Gn,Kn,Ni,ir,Ir,hr){super(Rn,Gn,Kn,Ni,ir,Ir,hr)}ngAfterContentInit(){this._inkBar=new Ne(this._items),super.ngAfterContentInit()}static{this.\u0275fac=function(Gn){return new(Gn||bt)(n.rXU(n.aKT),n.rXU(n.gRc),n.rXU(X.Xj),n.rXU(P.dS,8),n.rXU(n.SKi),n.rXU(q.OD),n.rXU(n.bc$,8))}}static{this.\u0275cmp=n.VBU({type:bt,selectors:[["mat-tab-header"]],contentQueries:function(Gn,Kn,Ni){if(1&Gn&&n.wni(Ni,Vt,4),2&Gn){let ir;n.mGM(ir=n.lsd())&&(Kn._items=ir)}},viewQuery:function(Gn,Kn){if(1&Gn&&(n.GBs(Qe,7),n.GBs(ct,7),n.GBs(Ge,7),n.GBs(nt,5),n.GBs(Je,5)),2&Gn){let Ni;n.mGM(Ni=n.lsd())&&(Kn._tabListContainer=Ni.first),n.mGM(Ni=n.lsd())&&(Kn._tabList=Ni.first),n.mGM(Ni=n.lsd())&&(Kn._tabListInner=Ni.first),n.mGM(Ni=n.lsd())&&(Kn._nextPaginator=Ni.first),n.mGM(Ni=n.lsd())&&(Kn._previousPaginator=Ni.first)}},hostAttrs:[1,"mat-mdc-tab-header"],hostVars:4,hostBindings:function(Gn,Kn){2&Gn&&n.AVh("mat-mdc-tab-header-pagination-controls-enabled",Kn._showPaginationControls)("mat-mdc-tab-header-rtl","rtl"==Kn._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[n.Vt3],ngContentSelectors:it,decls:13,vars:10,consts:[["previousPaginator",""],["tabListContainer",""],["tabList",""],["tabListInner",""],["nextPaginator",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-before",3,"click","mousedown","touchend","matRippleDisabled","disabled"],[1,"mat-mdc-tab-header-pagination-chevron"],[1,"mat-mdc-tab-label-container",3,"keydown"],["role","tablist",1,"mat-mdc-tab-list",3,"cdkObserveContent"],[1,"mat-mdc-tab-labels"],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-after",3,"mousedown","click","touchend","matRippleDisabled","disabled"]],template:function(Gn,Kn){if(1&Gn){const Ni=n.RV6();n.NAR(),n.j41(0,"button",5,0),n.bIt("click",function(){return n.eBV(Ni),n.Njj(Kn._handlePaginatorClick("before"))})("mousedown",function(Ir){return n.eBV(Ni),n.Njj(Kn._handlePaginatorPress("before",Ir))})("touchend",function(){return n.eBV(Ni),n.Njj(Kn._stopInterval())}),n.nrm(2,"div",6),n.k0s(),n.j41(3,"div",7,1),n.bIt("keydown",function(Ir){return n.eBV(Ni),n.Njj(Kn._handleKeydown(Ir))}),n.j41(5,"div",8,2),n.bIt("cdkObserveContent",function(){return n.eBV(Ni),n.Njj(Kn._onContentChanges())}),n.j41(7,"div",9,3),n.SdG(9),n.k0s()()(),n.j41(10,"button",10,4),n.bIt("mousedown",function(Ir){return n.eBV(Ni),n.Njj(Kn._handlePaginatorPress("after",Ir))})("click",function(){return n.eBV(Ni),n.Njj(Kn._handlePaginatorClick("after"))})("touchend",function(){return n.eBV(Ni),n.Njj(Kn._stopInterval())}),n.nrm(12,"div",6),n.k0s()}2&Gn&&(n.AVh("mat-mdc-tab-header-pagination-disabled",Kn._disableScrollBefore),n.Y8G("matRippleDisabled",Kn._disableScrollBefore||Kn.disableRipple)("disabled",Kn._disableScrollBefore||null),n.R7$(3),n.AVh("_mat-animation-noopable","NoopAnimations"===Kn._animationMode),n.R7$(7),n.AVh("mat-mdc-tab-header-pagination-disabled",Kn._disableScrollAfter),n.Y8G("matRippleDisabled",Kn._disableScrollAfter||Kn.disableRipple)("disabled",Kn._disableScrollAfter||null))},dependencies:[h.r6,S.Wv],styles:[".mat-mdc-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0;--mdc-tab-indicator-active-indicator-height:2px;--mdc-tab-indicator-active-indicator-shape:0;--mdc-secondary-navigation-tab-container-height:48px}.mdc-tab-indicator .mdc-tab-indicator__content{transition-duration:var(--mat-tab-animation-duration, 250ms)}.mat-mdc-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-mdc-tab-header-pagination::-moz-focus-inner{border:0}.mat-mdc-tab-header-pagination .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-header-inactive-ripple-color)}.mat-mdc-tab-header-pagination-controls-enabled .mat-mdc-tab-header-pagination{display:flex}.mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after{padding-left:4px}.mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-pagination-after{padding-right:4px}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-mdc-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px;border-color:var(--mat-tab-header-pagination-icon-color)}.mat-mdc-tab-header-pagination-disabled{box-shadow:none;cursor:default;pointer-events:none}.mat-mdc-tab-header-pagination-disabled .mat-mdc-tab-header-pagination-chevron{opacity:.4}.mat-mdc-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-mdc-tab-list{transition:none}._mat-animation-noopable span.mdc-tab-indicator__content,._mat-animation-noopable span.mdc-tab__text-label{transition:none}.mat-mdc-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-mdc-tab-labels{display:flex;flex:1 0 auto}[mat-align-tabs=center]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:flex-end}.mat-mdc-tab::before{margin:5px}.cdk-high-contrast-active .mat-mdc-tab[aria-disabled=true]{color:GrayText}"],encapsulation:2})}}return bt})();const bn=new n.nKC("MAT_TABS_CONFIG");let Ut=0;const Bt=(0,h.Zc)((0,h.GG)(class{constructor(bt){this._elementRef=bt}}),"primary");let Le=(()=>{class bt extends Bt{get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(Rn){this._dynamicHeight=(0,k.he)(Rn)}get selectedIndex(){return this._selectedIndex}set selectedIndex(Rn){this._indexToSelect=(0,k.OE)(Rn,null)}get animationDuration(){return this._animationDuration}set animationDuration(Rn){this._animationDuration=/^\d+$/.test(Rn+"")?Rn+"ms":Rn}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(Rn){this._contentTabIndex=(0,k.OE)(Rn,null)}get disablePagination(){return this._disablePagination}set disablePagination(Rn){this._disablePagination=(0,k.he)(Rn)}get preserveContent(){return this._preserveContent}set preserveContent(Rn){this._preserveContent=(0,k.he)(Rn)}get backgroundColor(){return this._backgroundColor}set backgroundColor(Rn){const Gn=this._elementRef.nativeElement.classList;Gn.remove("mat-tabs-with-background",`mat-background-${this.backgroundColor}`),Rn&&Gn.add("mat-tabs-with-background",`mat-background-${Rn}`),this._backgroundColor=Rn}constructor(Rn,Gn,Kn,Ni){super(Rn),this._changeDetectorRef=Gn,this._animationMode=Ni,this._tabs=new n.rOR,this._indexToSelect=0,this._lastFocusedTabIndex=null,this._tabBodyWrapperHeight=0,this._tabsSubscription=x.y.EMPTY,this._tabLabelSubscription=x.y.EMPTY,this._dynamicHeight=!1,this._selectedIndex=null,this.headerPosition="above",this._disablePagination=!1,this._preserveContent=!1,this.selectedIndexChange=new n.bkB,this.focusChange=new n.bkB,this.animationDone=new n.bkB,this.selectedTabChange=new n.bkB(!0),this._groupId=Ut++,this.animationDuration=Kn&&Kn.animationDuration?Kn.animationDuration:"500ms",this.disablePagination=!(!Kn||null==Kn.disablePagination)&&Kn.disablePagination,this.dynamicHeight=!(!Kn||null==Kn.dynamicHeight)&&Kn.dynamicHeight,this.contentTabIndex=Kn?.contentTabIndex??null,this.preserveContent=!!Kn?.preserveContent}ngAfterContentChecked(){const Rn=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=Rn){const Gn=null==this._selectedIndex;if(!Gn){this.selectedTabChange.emit(this._createChangeEvent(Rn));const Kn=this._tabBodyWrapper.nativeElement;Kn.style.minHeight=Kn.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((Kn,Ni)=>Kn.isActive=Ni===Rn),Gn||(this.selectedIndexChange.emit(Rn),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((Gn,Kn)=>{Gn.position=Kn-Rn,null!=this._selectedIndex&&0==Gn.position&&!Gn.origin&&(Gn.origin=Rn-this._selectedIndex)}),this._selectedIndex!==Rn&&(this._selectedIndex=Rn,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{const Rn=this._clampTabIndex(this._indexToSelect);if(Rn===this._selectedIndex){const Gn=this._tabs.toArray();let Kn;for(let Ni=0;Ni<Gn.length;Ni++)if(Gn[Ni].isActive){this._indexToSelect=this._selectedIndex=Ni,this._lastFocusedTabIndex=null,Kn=Gn[Ni];break}!Kn&&Gn[Rn]&&Promise.resolve().then(()=>{Gn[Rn].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(Rn))})}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe((0,E.Z)(this._allTabs)).subscribe(Rn=>{this._tabs.reset(Rn.filter(Gn=>Gn._closestTabGroup===this||!Gn._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}updatePagination(){this._tabHeader&&this._tabHeader.updatePagination()}focusTab(Rn){const Gn=this._tabHeader;Gn&&(Gn.focusIndex=Rn)}_focusChanged(Rn){this._lastFocusedTabIndex=Rn,this.focusChange.emit(this._createChangeEvent(Rn))}_createChangeEvent(Rn){const Gn=new de;return Gn.index=Rn,this._tabs&&this._tabs.length&&(Gn.tab=this._tabs.toArray()[Rn]),Gn}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=(0,l.h)(...this._tabs.map(Rn=>Rn._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(Rn){return Math.min(this._tabs.length-1,Math.max(Rn||0,0))}_getTabLabelId(Rn){return`mat-tab-label-${this._groupId}-${Rn}`}_getTabContentId(Rn){return`mat-tab-content-${this._groupId}-${Rn}`}_setTabBodyWrapperHeight(Rn){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const Gn=this._tabBodyWrapper.nativeElement;Gn.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(Gn.style.height=Rn+"px")}_removeTabBodyWrapperHeight(){const Rn=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=Rn.clientHeight,Rn.style.height="",this.animationDone.emit()}_handleClick(Rn,Gn,Kn){Gn.focusIndex=Kn,Rn.disabled||(this.selectedIndex=Kn)}_getTabIndex(Rn){return Rn===(this._lastFocusedTabIndex??this.selectedIndex)?0:-1}_tabFocusChanged(Rn,Gn){Rn&&"mouse"!==Rn&&"touch"!==Rn&&(this._tabHeader.focusIndex=Gn)}static{this.\u0275fac=function(Gn){return new(Gn||bt)(n.rXU(n.aKT),n.rXU(n.gRc),n.rXU(bn,8),n.rXU(n.bc$,8))}}static{this.\u0275dir=n.FsC({type:bt,inputs:{dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:"contentTabIndex",disablePagination:"disablePagination",preserveContent:"preserveContent",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[n.Vt3]})}}return bt})(),V=(()=>{class bt extends Le{get fitInkBarToContent(){return this._fitInkBarToContent}set fitInkBarToContent(Rn){this._fitInkBarToContent=(0,k.he)(Rn),this._changeDetectorRef.markForCheck()}get stretchTabs(){return this._stretchTabs}set stretchTabs(Rn){this._stretchTabs=(0,k.he)(Rn)}constructor(Rn,Gn,Kn,Ni){super(Rn,Gn,Kn,Ni),this._fitInkBarToContent=!1,this._stretchTabs=!0,this.fitInkBarToContent=!(!Kn||null==Kn.fitInkBarToContent)&&Kn.fitInkBarToContent,this.stretchTabs=!Kn||null==Kn.stretchTabs||Kn.stretchTabs}static{this.\u0275fac=function(Gn){return new(Gn||bt)(n.rXU(n.aKT),n.rXU(n.gRc),n.rXU(bn,8),n.rXU(n.bc$,8))}}static{this.\u0275cmp=n.VBU({type:bt,selectors:[["mat-tab-group"]],contentQueries:function(Gn,Kn,Ni){if(1&Gn&&n.wni(Ni,nn,5),2&Gn){let ir;n.mGM(ir=n.lsd())&&(Kn._allTabs=ir)}},viewQuery:function(Gn,Kn){if(1&Gn&&(n.GBs(ze,5),n.GBs(Ke,5)),2&Gn){let Ni;n.mGM(Ni=n.lsd())&&(Kn._tabBodyWrapper=Ni.first),n.mGM(Ni=n.lsd())&&(Kn._tabHeader=Ni.first)}},hostAttrs:["ngSkipHydration","",1,"mat-mdc-tab-group"],hostVars:8,hostBindings:function(Gn,Kn){2&Gn&&(n.xc7("--mat-tab-animation-duration",Kn.animationDuration),n.AVh("mat-mdc-tab-group-dynamic-height",Kn.dynamicHeight)("mat-mdc-tab-group-inverted-header","below"===Kn.headerPosition)("mat-mdc-tab-group-stretch-tabs",Kn.stretchTabs))},inputs:{color:"color",disableRipple:"disableRipple",fitInkBarToContent:"fitInkBarToContent",stretchTabs:[n.Mj6.None,"mat-stretch-tabs","stretchTabs"]},exportAs:["matTabGroup"],features:[n.Jv_([{provide:Jt,useExisting:bt}]),n.Vt3],decls:6,vars:7,consts:[["tabHeader",""],["tabBodyWrapper",""],["tabNode",""],["tabTextLabel",""],[3,"indexFocused","selectFocusedIndex","selectedIndex","disableRipple","disablePagination"],["class","mdc-tab mat-mdc-tab mat-mdc-focus-indicator","role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",3,"id","mdc-tab--active","ngClass","disabled","fitInkBarToContent","click","cdkFocusChange",4,"ngFor","ngForOf"],[1,"mat-mdc-tab-body-wrapper"],["role","tabpanel",3,"id","mat-mdc-tab-body-active","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",1,"mdc-tab","mat-mdc-tab","mat-mdc-focus-indicator",3,"click","cdkFocusChange","id","ngClass","disabled","fitInkBarToContent"],[1,"mdc-tab__ripple"],["mat-ripple","",1,"mat-mdc-tab-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mdc-tab__content"],[1,"mdc-tab__text-label"],[3,"ngIf","ngIfElse"],[3,"cdkPortalOutlet"],["role","tabpanel",3,"_onCentered","_onCentering","id","ngClass","content","position","origin","animationDuration","preserveContent"]],template:function(Gn,Kn){if(1&Gn){const Ni=n.RV6();n.j41(0,"mat-tab-header",4,0),n.bIt("indexFocused",function(Ir){return n.eBV(Ni),n.Njj(Kn._focusChanged(Ir))})("selectFocusedIndex",function(Ir){return n.eBV(Ni),n.Njj(Kn.selectedIndex=Ir)}),n.DNE(2,Pe,9,17,"div",5),n.k0s(),n.j41(3,"div",6,1),n.DNE(5,J,1,12,"mat-tab-body",7),n.k0s()}2&Gn&&(n.Y8G("selectedIndex",Kn.selectedIndex||0)("disableRipple",Kn.disableRipple)("disablePagination",Kn.disablePagination),n.R7$(2),n.Y8G("ngForOf",Kn._tabs),n.R7$(),n.AVh("_mat-animation-noopable","NoopAnimations"===Kn._animationMode),n.R7$(2),n.Y8G("ngForOf",Kn._tabs))},dependencies:[i.YU,i.Sq,i.bT,C.I3,h.r6,M.vR,Ce,Vt,Ht],styles:['.mdc-tab{min-width:90px;padding-right:24px;padding-left:24px;display:flex;flex:1 0 auto;justify-content:center;box-sizing:border-box;margin:0;padding-top:0;padding-bottom:0;border:none;outline:none;text-align:center;white-space:nowrap;cursor:pointer;-webkit-appearance:none;z-index:1}.mdc-tab::-moz-focus-inner{padding:0;border:0}.mdc-tab[hidden]{display:none}.mdc-tab--min-width{flex:0 1 auto}.mdc-tab__content{display:flex;align-items:center;justify-content:center;height:inherit;pointer-events:none}.mdc-tab__text-label{transition:150ms color linear;display:inline-block;line-height:1;z-index:2}.mdc-tab__icon{transition:150ms color linear;z-index:2}.mdc-tab--stacked .mdc-tab__content{flex-direction:column;align-items:center;justify-content:center}.mdc-tab--stacked .mdc-tab__text-label{padding-top:6px;padding-bottom:4px}.mdc-tab--active .mdc-tab__text-label,.mdc-tab--active .mdc-tab__icon{transition-delay:100ms}.mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label{padding-left:8px;padding-right:0}[dir=rtl] .mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label,.mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label[dir=rtl]{padding-left:0;padding-right:8px}.mdc-tab-indicator{display:flex;position:absolute;top:0;left:0;justify-content:center;width:100%;height:100%;pointer-events:none;z-index:1}.mdc-tab-indicator__content{transform-origin:left;opacity:0}.mdc-tab-indicator__content--underline{align-self:flex-end;box-sizing:border-box;width:100%;border-top-style:solid}.mdc-tab-indicator__content--icon{align-self:center;margin:0 auto}.mdc-tab-indicator--active .mdc-tab-indicator__content{opacity:1}.mdc-tab-indicator .mdc-tab-indicator__content{transition:250ms transform cubic-bezier(0.4, 0, 0.2, 1)}.mdc-tab-indicator--no-transition .mdc-tab-indicator__content{transition:none}.mdc-tab-indicator--fade .mdc-tab-indicator__content{transition:150ms opacity linear}.mdc-tab-indicator--active.mdc-tab-indicator--fade .mdc-tab-indicator__content{transition-delay:100ms}.mat-mdc-tab-ripple{position:absolute;top:0;left:0;bottom:0;right:0;pointer-events:none}.mat-mdc-tab{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none;background:none;font-family:var(--mat-tab-header-label-text-font);font-size:var(--mat-tab-header-label-text-size);letter-spacing:var(--mat-tab-header-label-text-tracking);line-height:var(--mat-tab-header-label-text-line-height);font-weight:var(--mat-tab-header-label-text-weight)}.mat-mdc-tab .mdc-tab-indicator__content--underline{border-color:var(--mdc-tab-indicator-active-indicator-color)}.mat-mdc-tab .mdc-tab-indicator__content--underline{border-top-width:var(--mdc-tab-indicator-active-indicator-height)}.mat-mdc-tab .mdc-tab-indicator__content--underline{border-radius:var(--mdc-tab-indicator-active-indicator-shape)}.mat-mdc-tab:not(.mdc-tab--stacked){height:var(--mdc-secondary-navigation-tab-container-height)}.mat-mdc-tab:not(:disabled).mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):hover.mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):focus.mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):active.mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:disabled.mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):hover:not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):focus:not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):active:not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:disabled:not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab.mdc-tab{flex-grow:0}.mat-mdc-tab:hover .mdc-tab__text-label{color:var(--mat-tab-header-inactive-hover-label-text-color)}.mat-mdc-tab:focus .mdc-tab__text-label{color:var(--mat-tab-header-inactive-focus-label-text-color)}.mat-mdc-tab.mdc-tab--active .mdc-tab__text-label{color:var(--mat-tab-header-active-label-text-color)}.mat-mdc-tab.mdc-tab--active .mdc-tab__ripple::before,.mat-mdc-tab.mdc-tab--active .mat-ripple-element{background-color:var(--mat-tab-header-active-ripple-color)}.mat-mdc-tab.mdc-tab--active:hover .mdc-tab__text-label{color:var(--mat-tab-header-active-hover-label-text-color)}.mat-mdc-tab.mdc-tab--active:hover .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-active-hover-indicator-color)}.mat-mdc-tab.mdc-tab--active:focus .mdc-tab__text-label{color:var(--mat-tab-header-active-focus-label-text-color)}.mat-mdc-tab.mdc-tab--active:focus .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-active-focus-indicator-color)}.mat-mdc-tab.mat-mdc-tab-disabled{opacity:.4;pointer-events:none}.mat-mdc-tab.mat-mdc-tab-disabled .mdc-tab__content{pointer-events:none}.mat-mdc-tab.mat-mdc-tab-disabled .mdc-tab__ripple::before,.mat-mdc-tab.mat-mdc-tab-disabled .mat-ripple-element{background-color:var(--mat-tab-header-disabled-ripple-color)}.mat-mdc-tab .mdc-tab__ripple::before{content:"";display:block;position:absolute;top:0;left:0;right:0;bottom:0;opacity:0;pointer-events:none;background-color:var(--mat-tab-header-inactive-ripple-color)}.mat-mdc-tab .mdc-tab__text-label{color:var(--mat-tab-header-inactive-label-text-color);display:inline-flex;align-items:center}.mat-mdc-tab .mdc-tab__content{position:relative;pointer-events:auto}.mat-mdc-tab:hover .mdc-tab__ripple::before{opacity:.04}.mat-mdc-tab.cdk-program-focused .mdc-tab__ripple::before,.mat-mdc-tab.cdk-keyboard-focused .mdc-tab__ripple::before{opacity:.12}.mat-mdc-tab .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-header-inactive-ripple-color)}.mat-mdc-tab-group.mat-mdc-tab-group-stretch-tabs>.mat-mdc-tab-header .mat-mdc-tab{flex-grow:1}.mat-mdc-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination{background-color:var(--mat-tab-header-with-background-background-color)}.mat-mdc-tab-group.mat-tabs-with-background.mat-primary>.mat-mdc-tab-header .mat-mdc-tab .mdc-tab__text-label{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background.mat-primary>.mat-mdc-tab-header .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-header .mat-mdc-tab:not(.mdc-tab--active) .mdc-tab__text-label{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-header .mat-mdc-tab:not(.mdc-tab--active) .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-focus-indicator::before,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-focus-indicator::before{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mdc-tab__ripple::before,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mdc-tab__ripple::before{background-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header{flex-direction:column-reverse}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header .mdc-tab-indicator__content--underline{align-self:flex-start}.mat-mdc-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-mdc-tab-body-wrapper._mat-animation-noopable{transition:none !important;animation:none !important}'],encapsulation:2})}}return bt})();class de{}let Gi=(()=>{class bt{static{this.\u0275fac=function(Gn){return new(Gn||bt)}}static{this.\u0275mod=n.$C({type:bt})}static{this.\u0275inj=n.G2t({imports:[i.MD,h.yE,C.jc,h.pZ,S.w5,M.Pd,h.yE]})}}return bt})()},44186:(St,z,s)=>{"use strict";s.d(z,{oV:()=>Qe,sM:()=>G,uc:()=>Je});var i=s(4208),n=s(65706),h=s(6364),C=s(25373),S=s(58527),M=s(61142),P=s(72653),x=s(31308),A=s(51394),g=s(61904),m=s(64409),l=s(76614),r=s(80583),v=(s(40262),s(51635));const E=["tooltip"],B=new S.nKC("mat-tooltip-scroll-strategy"),Y={provide:B,deps:[g.hJ],useFactory:function U(ze){return()=>ze.scrollStrategies.reposition({scrollThrottle:20})}},G=new S.nKC("mat-tooltip-default-options",{providedIn:"root",factory:function ae(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),X="tooltip-panel",q=(0,P.BQ)({passive:!0});let Fe=(()=>{class ze{get position(){return this._position}set position(Ve){Ve!==this._position&&(this._position=Ve,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(Ve){this._positionAtOrigin=(0,h.he)(Ve),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(Ve){this._disabled=(0,h.he)(Ve),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(Ve){this._showDelay=(0,h.OE)(Ve)}get hideDelay(){return this._hideDelay}set hideDelay(Ve){this._hideDelay=(0,h.OE)(Ve),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(Ve){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=Ve?String(Ve).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(Ve){this._tooltipClass=Ve,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}constructor(Ve,$e,dt,Pe,J,vt,ve,ue,et,se,Ce,be){this._overlay=Ve,this._elementRef=$e,this._scrollDispatcher=dt,this._viewContainerRef=Pe,this._ngZone=J,this._platform=vt,this._ariaDescriber=ve,this._focusMonitor=ue,this._dir=se,this._defaultOptions=Ce,this._position="below",this._positionAtOrigin=!1,this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new r.B7,this._scrollStrategy=et,this._document=be,Ce&&(this._showDelay=Ce.showDelay,this._hideDelay=Ce.hideDelay,Ce.position&&(this.position=Ce.position),Ce.positionAtOrigin&&(this.positionAtOrigin=Ce.positionAtOrigin),Ce.touchGestures&&(this.touchGestures=Ce.touchGestures)),se.change.pipe((0,i.Q)(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,i.Q)(this._destroyed)).subscribe(Ve=>{Ve?"keyboard"===Ve&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const Ve=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([$e,dt])=>{Ve.removeEventListener($e,dt,q)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(Ve,this.message,"tooltip"),this._focusMonitor.stopMonitoring(Ve)}show(Ve=this.showDelay,$e){if(this.disabled||!this.message||this._isTooltipVisible())return void this._tooltipInstance?._cancelPendingAnimations();const dt=this._createOverlay($e);this._detach(),this._portal=this._portal||new l.A8(this._tooltipComponent,this._viewContainerRef);const Pe=this._tooltipInstance=dt.attach(this._portal).instance;Pe._triggerElement=this._elementRef.nativeElement,Pe._mouseLeaveHideDelay=this._hideDelay,Pe.afterHidden().pipe((0,i.Q)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),Pe.show(Ve)}hide(Ve=this.hideDelay){const $e=this._tooltipInstance;$e&&($e.isVisible()?$e.hide(Ve):($e._cancelPendingAnimations(),this._detach()))}toggle(Ve){this._isTooltipVisible()?this.hide():this.show(void 0,Ve)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(Ve){if(this._overlayRef){const Pe=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!Ve)&&Pe._origin instanceof S.aKT)return this._overlayRef;this._detach()}const $e=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),dt=this._overlay.position().flexibleConnectedTo(this.positionAtOrigin&&Ve||this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers($e);return dt.positionChanges.pipe((0,i.Q)(this._destroyed)).subscribe(Pe=>{this._updateCurrentPositionClass(Pe.connectionPair),this._tooltipInstance&&Pe.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:dt,panelClass:`${this._cssClassPrefix}-${X}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,i.Q)(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe((0,i.Q)(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe((0,i.Q)(this._destroyed)).subscribe(Pe=>{this._isTooltipVisible()&&Pe.keyCode===C._f&&!(0,C.rp)(Pe)&&this._ngZone.run(()=>this.hide(0))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(Ve){const $e=Ve.getConfig().positionStrategy,dt=this._getOrigin(),Pe=this._getOverlayPosition();$e.withPositions([this._addOffset({...dt.main,...Pe.main}),this._addOffset({...dt.fallback,...Pe.fallback})])}_addOffset(Ve){return Ve}_getOrigin(){const Ve=!this._dir||"ltr"==this._dir.value,$e=this.position;let dt;"above"==$e||"below"==$e?dt={originX:"center",originY:"above"==$e?"top":"bottom"}:"before"==$e||"left"==$e&&Ve||"right"==$e&&!Ve?dt={originX:"start",originY:"center"}:("after"==$e||"right"==$e&&Ve||"left"==$e&&!Ve)&&(dt={originX:"end",originY:"center"});const{x:Pe,y:J}=this._invertPosition(dt.originX,dt.originY);return{main:dt,fallback:{originX:Pe,originY:J}}}_getOverlayPosition(){const Ve=!this._dir||"ltr"==this._dir.value,$e=this.position;let dt;"above"==$e?dt={overlayX:"center",overlayY:"bottom"}:"below"==$e?dt={overlayX:"center",overlayY:"top"}:"before"==$e||"left"==$e&&Ve||"right"==$e&&!Ve?dt={overlayX:"end",overlayY:"center"}:("after"==$e||"right"==$e&&Ve||"left"==$e&&!Ve)&&(dt={overlayX:"start",overlayY:"center"});const{x:Pe,y:J}=this._invertPosition(dt.overlayX,dt.overlayY);return{main:dt,fallback:{overlayX:Pe,overlayY:J}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,n.s)(1),(0,i.Q)(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(Ve){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=Ve,this._tooltipInstance._markForCheck())}_invertPosition(Ve,$e){return"above"===this.position||"below"===this.position?"top"===$e?$e="bottom":"bottom"===$e&&($e="top"):"end"===Ve?Ve="start":"start"===Ve&&(Ve="end"),{x:Ve,y:$e}}_updateCurrentPositionClass(Ve){const{overlayY:$e,originX:dt,originY:Pe}=Ve;let J;if(J="center"===$e?this._dir&&"rtl"===this._dir.value?"end"===dt?"left":"right":"start"===dt?"left":"right":"bottom"===$e&&"top"===Pe?"above":"below",J!==this._currentPosition){const vt=this._overlayRef;if(vt){const ve=`${this._cssClassPrefix}-${X}-`;vt.removePanelClass(ve+this._currentPosition),vt.addPanelClass(ve+J)}this._currentPosition=J}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",Ve=>{let $e;this._setupPointerExitEventsIfNeeded(),void 0!==Ve.x&&void 0!==Ve.y&&($e=Ve),this.show(void 0,$e)}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",Ve=>{const $e=Ve.targetTouches?.[0],dt=$e?{x:$e.clientX,y:$e.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(void 0,dt),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const Ve=[];if(this._platformSupportsMouseEvents())Ve.push(["mouseleave",$e=>{const dt=$e.relatedTarget;(!dt||!this._overlayRef?.overlayElement.contains(dt))&&this.hide()}],["wheel",$e=>this._wheelListener($e)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const $e=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};Ve.push(["touchend",$e],["touchcancel",$e])}this._addListeners(Ve),this._passiveListeners.push(...Ve)}_addListeners(Ve){Ve.forEach(([$e,dt])=>{this._elementRef.nativeElement.addEventListener($e,dt,q)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(Ve){if(this._isTooltipVisible()){const $e=this._document.elementFromPoint(Ve.clientX,Ve.clientY),dt=this._elementRef.nativeElement;$e!==dt&&!dt.contains($e)&&this.hide()}}_disableNativeGesturesIfNecessary(){const Ve=this.touchGestures;if("off"!==Ve){const $e=this._elementRef.nativeElement,dt=$e.style;("on"===Ve||"INPUT"!==$e.nodeName&&"TEXTAREA"!==$e.nodeName)&&(dt.userSelect=dt.msUserSelect=dt.webkitUserSelect=dt.MozUserSelect="none"),("on"===Ve||!$e.draggable)&&(dt.webkitUserDrag="none"),dt.touchAction="none",dt.webkitTapHighlightColor="transparent"}}static{this.\u0275fac=function($e){S.QTQ()}}static{this.\u0275dir=S.FsC({type:ze,inputs:{position:[S.Mj6.None,"matTooltipPosition","position"],positionAtOrigin:[S.Mj6.None,"matTooltipPositionAtOrigin","positionAtOrigin"],disabled:[S.Mj6.None,"matTooltipDisabled","disabled"],showDelay:[S.Mj6.None,"matTooltipShowDelay","showDelay"],hideDelay:[S.Mj6.None,"matTooltipHideDelay","hideDelay"],touchGestures:[S.Mj6.None,"matTooltipTouchGestures","touchGestures"],message:[S.Mj6.None,"matTooltip","message"],tooltipClass:[S.Mj6.None,"matTooltipClass","tooltipClass"]}})}}return ze})(),Qe=(()=>{class ze extends Fe{constructor(Ve,$e,dt,Pe,J,vt,ve,ue,et,se,Ce,be){super(Ve,$e,dt,Pe,J,vt,ve,ue,et,se,Ce,be),this._tooltipComponent=Ge,this._cssClassPrefix="mat-mdc",this._viewportMargin=8}_addOffset(Ve){const dt=!this._dir||"ltr"==this._dir.value;return"top"===Ve.originY?Ve.offsetY=-8:"bottom"===Ve.originY?Ve.offsetY=8:"start"===Ve.originX?Ve.offsetX=dt?-8:8:"end"===Ve.originX&&(Ve.offsetX=dt?8:-8),Ve}static{this.\u0275fac=function($e){return new($e||ze)(S.rXU(g.hJ),S.rXU(S.aKT),S.rXU(m.R),S.rXU(S.c1b),S.rXU(S.SKi),S.rXU(P.OD),S.rXU(x.vr),S.rXU(x.FN),S.rXU(B),S.rXU(A.dS,8),S.rXU(G,8),S.rXU(M.qQ))}}static{this.\u0275dir=S.FsC({type:ze,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function($e,dt){2&$e&&S.AVh("mat-mdc-tooltip-disabled",dt.disabled)},exportAs:["matTooltip"],features:[S.Vt3]})}}return ze})(),ct=(()=>{class ze{constructor(Ve,$e){this._changeDetectorRef=Ve,this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new r.B7,this._animationsDisabled="NoopAnimations"===$e}show(Ve){null!=this._hideTimeoutId&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},Ve)}hide(Ve){null!=this._showTimeoutId&&clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},Ve)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){this._cancelPendingAnimations(),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:Ve}){(!Ve||!this._triggerElement.contains(Ve))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){}_handleAnimationEnd({animationName:Ve}){(Ve===this._showAnimation||Ve===this._hideAnimation)&&this._finalizeAnimation(Ve===this._showAnimation)}_cancelPendingAnimations(){null!=this._showTimeoutId&&clearTimeout(this._showTimeoutId),null!=this._hideTimeoutId&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(Ve){Ve?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(Ve){const $e=this._tooltip.nativeElement,dt=this._showAnimation,Pe=this._hideAnimation;if($e.classList.remove(Ve?Pe:dt),$e.classList.add(Ve?dt:Pe),this._isVisible=Ve,Ve&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const J=getComputedStyle($e);("0s"===J.getPropertyValue("animation-duration")||"none"===J.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}Ve&&this._onShow(),this._animationsDisabled&&($e.classList.add("_mat-animation-noopable"),this._finalizeAnimation(Ve))}static{this.\u0275fac=function($e){return new($e||ze)(S.rXU(S.gRc),S.rXU(S.bc$,8))}}static{this.\u0275dir=S.FsC({type:ze})}}return ze})(),Ge=(()=>{class ze extends ct{constructor(Ve,$e,dt){super(Ve,dt),this._elementRef=$e,this._isMultiline=!1,this._showAnimation="mat-mdc-tooltip-show",this._hideAnimation="mat-mdc-tooltip-hide"}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){const Ve=this._elementRef.nativeElement.getBoundingClientRect();return Ve.height>24&&Ve.width>=200}static{this.\u0275fac=function($e){return new($e||ze)(S.rXU(S.gRc),S.rXU(S.aKT),S.rXU(S.bc$,8))}}static{this.\u0275cmp=S.VBU({type:ze,selectors:[["mat-tooltip-component"]],viewQuery:function($e,dt){if(1&$e&&S.GBs(E,7),2&$e){let Pe;S.mGM(Pe=S.lsd())&&(dt._tooltip=Pe.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function($e,dt){1&$e&&S.bIt("mouseleave",function(J){return dt._handleMouseLeave(J)}),2&$e&&S.xc7("zoom",dt.isVisible()?1:null)},features:[S.Vt3],decls:4,vars:4,consts:[["tooltip",""],[1,"mdc-tooltip","mdc-tooltip--shown","mat-mdc-tooltip",3,"animationend","ngClass"],[1,"mdc-tooltip__surface","mdc-tooltip__surface-animation"]],template:function($e,dt){if(1&$e){const Pe=S.RV6();S.j41(0,"div",1,0),S.bIt("animationend",function(vt){return S.eBV(Pe),S.Njj(dt._handleAnimationEnd(vt))}),S.j41(2,"div",2),S.EFF(3),S.k0s()()}2&$e&&(S.AVh("mdc-tooltip--multiline",dt._isMultiline),S.Y8G("ngClass",dt.tooltipClass),S.R7$(3),S.JRh(dt.message))},dependencies:[M.YU],styles:['.mdc-tooltip__surface{word-break:break-all;word-break:var(--mdc-tooltip-word-break, normal);overflow-wrap:anywhere}.mdc-tooltip--showing-transition .mdc-tooltip__surface-animation{transition:opacity 150ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 150ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-tooltip--hide-transition .mdc-tooltip__surface-animation{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-tooltip{position:fixed;display:none;z-index:9}.mdc-tooltip-wrapper--rich{position:relative}.mdc-tooltip--shown,.mdc-tooltip--showing,.mdc-tooltip--hide{display:inline-flex}.mdc-tooltip--shown.mdc-tooltip--rich,.mdc-tooltip--showing.mdc-tooltip--rich,.mdc-tooltip--hide.mdc-tooltip--rich{display:inline-block;left:-320px;position:absolute}.mdc-tooltip__surface{line-height:16px;padding:4px 8px;min-width:40px;max-width:200px;min-height:24px;max-height:40vh;box-sizing:border-box;overflow:hidden;text-align:center}.mdc-tooltip__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-tooltip__surface::before{border-color:CanvasText}}.mdc-tooltip--rich .mdc-tooltip__surface{align-items:flex-start;display:flex;flex-direction:column;min-height:24px;min-width:40px;max-width:320px;position:relative}.mdc-tooltip--multiline .mdc-tooltip__surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mdc-tooltip__surface,.mdc-tooltip--multiline .mdc-tooltip__surface[dir=rtl]{text-align:right}.mdc-tooltip__surface .mdc-tooltip__title{margin:0 8px}.mdc-tooltip__surface .mdc-tooltip__content{max-width:calc(200px - (2 * 8px));margin:8px;text-align:left}[dir=rtl] .mdc-tooltip__surface .mdc-tooltip__content,.mdc-tooltip__surface .mdc-tooltip__content[dir=rtl]{text-align:right}.mdc-tooltip--rich .mdc-tooltip__surface .mdc-tooltip__content{max-width:calc(320px - (2 * 8px));align-self:stretch}.mdc-tooltip__surface .mdc-tooltip__content-link{text-decoration:none}.mdc-tooltip--rich-actions,.mdc-tooltip__content,.mdc-tooltip__title{z-index:1}.mdc-tooltip__surface-animation{opacity:0;transform:scale(0.8);will-change:transform,opacity}.mdc-tooltip--shown .mdc-tooltip__surface-animation{transform:scale(1);opacity:1}.mdc-tooltip--hide .mdc-tooltip__surface-animation{transform:scale(1)}.mdc-tooltip__caret-surface-top,.mdc-tooltip__caret-surface-bottom{position:absolute;height:24px;width:24px;transform:rotate(35deg) skewY(20deg) scaleX(0.9396926208)}.mdc-tooltip__caret-surface-top .mdc-elevation-overlay,.mdc-tooltip__caret-surface-bottom .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-tooltip__caret-surface-bottom{box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12);outline:1px solid rgba(0,0,0,0);z-index:-1}@media screen and (forced-colors: active){.mdc-tooltip__caret-surface-bottom{outline-color:CanvasText}}.mat-mdc-tooltip{--mdc-plain-tooltip-container-shape:4px;--mdc-plain-tooltip-supporting-text-line-height:16px}.mat-mdc-tooltip .mdc-tooltip__surface{background-color:var(--mdc-plain-tooltip-container-color)}.mat-mdc-tooltip .mdc-tooltip__surface{border-radius:var(--mdc-plain-tooltip-container-shape)}.mat-mdc-tooltip .mdc-tooltip__caret-surface-top,.mat-mdc-tooltip .mdc-tooltip__caret-surface-bottom{border-radius:var(--mdc-plain-tooltip-container-shape)}.mat-mdc-tooltip .mdc-tooltip__surface{color:var(--mdc-plain-tooltip-supporting-text-color)}.mat-mdc-tooltip .mdc-tooltip__surface{font-family:var(--mdc-plain-tooltip-supporting-text-font);line-height:var(--mdc-plain-tooltip-supporting-text-line-height);font-size:var(--mdc-plain-tooltip-supporting-text-size);font-weight:var(--mdc-plain-tooltip-supporting-text-weight);letter-spacing:var(--mdc-plain-tooltip-supporting-text-tracking)}.mat-mdc-tooltip{position:relative;transform:scale(0)}.mat-mdc-tooltip::before{content:"";top:0;right:0;bottom:0;left:0;z-index:-1;position:absolute}.mat-mdc-tooltip-panel-below .mat-mdc-tooltip::before{top:-8px}.mat-mdc-tooltip-panel-above .mat-mdc-tooltip::before{bottom:-8px}.mat-mdc-tooltip-panel-right .mat-mdc-tooltip::before{left:-8px}.mat-mdc-tooltip-panel-left .mat-mdc-tooltip::before{right:-8px}.mat-mdc-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.mat-mdc-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-mdc-tooltip-show{0%{opacity:0;transform:scale(0.8)}100%{opacity:1;transform:scale(1)}}@keyframes mat-mdc-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(0.8)}}.mat-mdc-tooltip-show{animation:mat-mdc-tooltip-show 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-mdc-tooltip-hide{animation:mat-mdc-tooltip-hide 75ms cubic-bezier(0.4, 0, 1, 1) forwards}'],encapsulation:2,changeDetection:0})}}return ze})(),Je=(()=>{class ze{static{this.\u0275fac=function($e){return new($e||ze)}}static{this.\u0275mod=S.$C({type:ze})}static{this.\u0275inj=S.G2t({providers:[Y],imports:[x.Pd,M.MD,g.z_,v.yE,v.yE,m.Gj]})}}return ze})()},74150:(St,z,s)=>{"use strict";s.d(z,{B7:()=>X,Bb:()=>Ce,hE:()=>me,sG:()=>ve,up:()=>Zt});var i=s(58527),n=s(61142);class h extends n.VF{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class C extends h{static makeCurrent(){(0,n.ZD)(new C)}onAndCancel(V,de,ge){return V.addEventListener(de,ge),()=>{V.removeEventListener(de,ge)}}dispatchEvent(V,de){V.dispatchEvent(de)}remove(V){V.parentNode&&V.parentNode.removeChild(V)}createElement(V,de){return(de=de||this.getDefaultDocument()).createElement(V)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(V){return V.nodeType===Node.ELEMENT_NODE}isShadowRoot(V){return V instanceof DocumentFragment}getGlobalEventTarget(V,de){return"window"===de?window:"document"===de?V:"body"===de?V.body:null}getBaseHref(V){const de=function M(){return S=S||document.querySelector("base"),S?S.getAttribute("href"):null}();return null==de?null:function P(Le){return new URL(Le,document.baseURI).pathname}(de)}resetBaseElement(){S=null}getUserAgent(){return window.navigator.userAgent}getCookie(V){return(0,n._b)(document.cookie,V)}}let S=null,A=(()=>{class Le{build(){return new XMLHttpRequest}static{this.\u0275fac=function(ge){return new(ge||Le)}}static{this.\u0275prov=i.jDH({token:Le,factory:Le.\u0275fac})}}return Le})();const g=new i.nKC("");let m=(()=>{class Le{constructor(de,ge){this._zone=ge,this._eventNameToPlugin=new Map,de.forEach(Ft=>{Ft.manager=this}),this._plugins=de.slice().reverse()}addEventListener(de,ge,Ft){return this._findPluginFor(ge).addEventListener(de,ge,Ft)}getZone(){return this._zone}_findPluginFor(de){let ge=this._eventNameToPlugin.get(de);if(ge)return ge;if(ge=this._plugins.find(Wt=>Wt.supports(de)),!ge)throw new i.wOt(5101,!1);return this._eventNameToPlugin.set(de,ge),ge}static{this.\u0275fac=function(ge){return new(ge||Le)(i.KVO(g),i.KVO(i.SKi))}}static{this.\u0275prov=i.jDH({token:Le,factory:Le.\u0275fac})}}return Le})();class l{constructor(V){this._doc=V}}const r="ng-app-id";let u=(()=>{class Le{constructor(de,ge,Ft,Wt={}){this.doc=de,this.appId=ge,this.nonce=Ft,this.platformId=Wt,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=(0,n.Vy)(Wt),this.resetHostNodes()}addStyles(de){for(const ge of de)1===this.changeUsageCount(ge,1)&&this.onStyleAdded(ge)}removeStyles(de){for(const ge of de)this.changeUsageCount(ge,-1)<=0&&this.onStyleRemoved(ge)}ngOnDestroy(){const de=this.styleNodesInDOM;de&&(de.forEach(ge=>ge.remove()),de.clear());for(const ge of this.getAllStyles())this.onStyleRemoved(ge);this.resetHostNodes()}addHost(de){this.hostNodes.add(de);for(const ge of this.getAllStyles())this.addStyleToHost(de,ge)}removeHost(de){this.hostNodes.delete(de)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(de){for(const ge of this.hostNodes)this.addStyleToHost(ge,de)}onStyleRemoved(de){const ge=this.styleRef;ge.get(de)?.elements?.forEach(Ft=>Ft.remove()),ge.delete(de)}collectServerRenderedStyles(){const de=this.doc.head?.querySelectorAll(`style[${r}="${this.appId}"]`);if(de?.length){const ge=new Map;return de.forEach(Ft=>{null!=Ft.textContent&&ge.set(Ft.textContent,Ft)}),ge}return null}changeUsageCount(de,ge){const Ft=this.styleRef;if(Ft.has(de)){const Wt=Ft.get(de);return Wt.usage+=ge,Wt.usage}return Ft.set(de,{usage:ge,elements:[]}),ge}getStyleElement(de,ge){const Ft=this.styleNodesInDOM,Wt=Ft?.get(ge);if(Wt?.parentNode===de)return Ft.delete(ge),Wt.removeAttribute(r),Wt;{const Kt=this.doc.createElement("style");return this.nonce&&Kt.setAttribute("nonce",this.nonce),Kt.textContent=ge,this.platformIsServer&&Kt.setAttribute(r,this.appId),de.appendChild(Kt),Kt}}addStyleToHost(de,ge){const Ft=this.getStyleElement(de,ge),Wt=this.styleRef,Kt=Wt.get(ge)?.elements;Kt?Kt.push(Ft):Wt.set(ge,{elements:[Ft],usage:1})}resetHostNodes(){const de=this.hostNodes;de.clear(),de.add(this.doc.head)}static{this.\u0275fac=function(ge){return new(ge||Le)(i.KVO(n.qQ),i.KVO(i.sZ2),i.KVO(i.BIS,8),i.KVO(i.Agw))}}static{this.\u0275prov=i.jDH({token:Le,factory:Le.\u0275fac})}}return Le})();const v={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},E=/%COMP%/g,T="%COMP%",R=`_nghost-${T}`,B=`_ngcontent-${T}`,Y=new i.nKC("",{providedIn:"root",factory:()=>!0});function k(Le,V){return V.map(de=>de.replace(E,Le))}let X=(()=>{class Le{constructor(de,ge,Ft,Wt,Kt,cn,En,kn=null){this.eventManager=de,this.sharedStylesHost=ge,this.appId=Ft,this.removeStylesOnCompDestroy=Wt,this.doc=Kt,this.platformId=cn,this.ngZone=En,this.nonce=kn,this.rendererByCompId=new Map,this.platformIsServer=(0,n.Vy)(cn),this.defaultRenderer=new q(de,Kt,En,this.platformIsServer)}createRenderer(de,ge){if(!de||!ge)return this.defaultRenderer;this.platformIsServer&&ge.encapsulation===i.gXe.ShadowDom&&(ge={...ge,encapsulation:i.gXe.Emulated});const Ft=this.getOrCreateRenderer(de,ge);return Ft instanceof Fe?Ft.applyToHost(de):Ft instanceof it&&Ft.applyStyles(),Ft}getOrCreateRenderer(de,ge){const Ft=this.rendererByCompId;let Wt=Ft.get(ge.id);if(!Wt){const Kt=this.doc,cn=this.ngZone,En=this.eventManager,kn=this.sharedStylesHost,Ai=this.removeStylesOnCompDestroy,Gi=this.platformIsServer;switch(ge.encapsulation){case i.gXe.Emulated:Wt=new Fe(En,kn,ge,this.appId,Ai,Kt,cn,Gi);break;case i.gXe.ShadowDom:return new Ee(En,kn,de,ge,Kt,cn,this.nonce,Gi);default:Wt=new it(En,kn,ge,Ai,Kt,cn,Gi)}Ft.set(ge.id,Wt)}return Wt}ngOnDestroy(){this.rendererByCompId.clear()}static{this.\u0275fac=function(ge){return new(ge||Le)(i.KVO(m),i.KVO(u),i.KVO(i.sZ2),i.KVO(Y),i.KVO(n.qQ),i.KVO(i.Agw),i.KVO(i.SKi),i.KVO(i.BIS))}}static{this.\u0275prov=i.jDH({token:Le,factory:Le.\u0275fac})}}return Le})();class q{constructor(V,de,ge,Ft){this.eventManager=V,this.doc=de,this.ngZone=ge,this.platformIsServer=Ft,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(V,de){return de?this.doc.createElementNS(v[de]||de,V):this.doc.createElement(V)}createComment(V){return this.doc.createComment(V)}createText(V){return this.doc.createTextNode(V)}appendChild(V,de){(te(V)?V.content:V).appendChild(de)}insertBefore(V,de,ge){V&&(te(V)?V.content:V).insertBefore(de,ge)}removeChild(V,de){V&&V.removeChild(de)}selectRootElement(V,de){let ge="string"==typeof V?this.doc.querySelector(V):V;if(!ge)throw new i.wOt(-5104,!1);return de||(ge.textContent=""),ge}parentNode(V){return V.parentNode}nextSibling(V){return V.nextSibling}setAttribute(V,de,ge,Ft){if(Ft){de=Ft+":"+de;const Wt=v[Ft];Wt?V.setAttributeNS(Wt,de,ge):V.setAttribute(de,ge)}else V.setAttribute(de,ge)}removeAttribute(V,de,ge){if(ge){const Ft=v[ge];Ft?V.removeAttributeNS(Ft,de):V.removeAttribute(`${ge}:${de}`)}else V.removeAttribute(de)}addClass(V,de){V.classList.add(de)}removeClass(V,de){V.classList.remove(de)}setStyle(V,de,ge,Ft){Ft&(i.czy.DashCase|i.czy.Important)?V.style.setProperty(de,ge,Ft&i.czy.Important?"important":""):V.style[de]=ge}removeStyle(V,de,ge){ge&i.czy.DashCase?V.style.removeProperty(de):V.style[de]=""}setProperty(V,de,ge){null!=V&&(V[de]=ge)}setValue(V,de){V.nodeValue=de}listen(V,de,ge){if("string"==typeof V&&!(V=(0,n.QT)().getGlobalEventTarget(this.doc,V)))throw new Error(`Unsupported event target ${V} for event ${de}`);return this.eventManager.addEventListener(V,de,this.decoratePreventDefault(ge))}decoratePreventDefault(V){return de=>{if("__ngUnwrap__"===de)return V;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>V(de)):V(de))&&de.preventDefault()}}}function te(Le){return"TEMPLATE"===Le.tagName&&void 0!==Le.content}class Ee extends q{constructor(V,de,ge,Ft,Wt,Kt,cn,En){super(V,Wt,Kt,En),this.sharedStylesHost=de,this.hostEl=ge,this.shadowRoot=ge.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const kn=k(Ft.id,Ft.styles);for(const Ai of kn){const Gi=document.createElement("style");cn&&Gi.setAttribute("nonce",cn),Gi.textContent=Ai,this.shadowRoot.appendChild(Gi)}}nodeOrShadowRoot(V){return V===this.hostEl?this.shadowRoot:V}appendChild(V,de){return super.appendChild(this.nodeOrShadowRoot(V),de)}insertBefore(V,de,ge){return super.insertBefore(this.nodeOrShadowRoot(V),de,ge)}removeChild(V,de){return super.removeChild(this.nodeOrShadowRoot(V),de)}parentNode(V){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(V)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class it extends q{constructor(V,de,ge,Ft,Wt,Kt,cn,En){super(V,Wt,Kt,cn),this.sharedStylesHost=de,this.removeStylesOnCompDestroy=Ft,this.styles=En?k(En,ge.styles):ge.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class Fe extends it{constructor(V,de,ge,Ft,Wt,Kt,cn,En){const kn=Ft+"-"+ge.id;super(V,de,ge,Wt,Kt,cn,En,kn),this.contentAttr=function ae(Le){return B.replace(E,Le)}(kn),this.hostAttr=function G(Le){return R.replace(E,Le)}(kn)}applyToHost(V){this.applyStyles(),this.setAttribute(V,this.hostAttr,"")}createElement(V,de){const ge=super.createElement(V,de);return super.setAttribute(ge,this.contentAttr,""),ge}}let Qe=(()=>{class Le extends l{constructor(de){super(de)}supports(de){return!0}addEventListener(de,ge,Ft){return de.addEventListener(ge,Ft,!1),()=>this.removeEventListener(de,ge,Ft)}removeEventListener(de,ge,Ft){return de.removeEventListener(ge,Ft)}static{this.\u0275fac=function(ge){return new(ge||Le)(i.KVO(n.qQ))}}static{this.\u0275prov=i.jDH({token:Le,factory:Le.\u0275fac})}}return Le})();const ct=["alt","control","meta","shift"],Ge={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},nt={alt:Le=>Le.altKey,control:Le=>Le.ctrlKey,meta:Le=>Le.metaKey,shift:Le=>Le.shiftKey};let Je=(()=>{class Le extends l{constructor(de){super(de)}supports(de){return null!=Le.parseEventName(de)}addEventListener(de,ge,Ft){const Wt=Le.parseEventName(ge),Kt=Le.eventCallback(Wt.fullKey,Ft,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,n.QT)().onAndCancel(de,Wt.domEventName,Kt))}static parseEventName(de){const ge=de.toLowerCase().split("."),Ft=ge.shift();if(0===ge.length||"keydown"!==Ft&&"keyup"!==Ft)return null;const Wt=Le._normalizeKey(ge.pop());let Kt="",cn=ge.indexOf("code");if(cn>-1&&(ge.splice(cn,1),Kt="code."),ct.forEach(kn=>{const Ai=ge.indexOf(kn);Ai>-1&&(ge.splice(Ai,1),Kt+=kn+".")}),Kt+=Wt,0!=ge.length||0===Wt.length)return null;const En={};return En.domEventName=Ft,En.fullKey=Kt,En}static matchEventFullKeyCode(de,ge){let Ft=Ge[de.key]||de.key,Wt="";return ge.indexOf("code.")>-1&&(Ft=de.code,Wt="code."),!(null==Ft||!Ft)&&(Ft=Ft.toLowerCase()," "===Ft?Ft="space":"."===Ft&&(Ft="dot"),ct.forEach(Kt=>{Kt!==Ft&&(0,nt[Kt])(de)&&(Wt+=Kt+".")}),Wt+=Ft,Wt===ge)}static eventCallback(de,ge,Ft){return Wt=>{Le.matchEventFullKeyCode(Wt,de)&&Ft.runGuarded(()=>ge(Wt))}}static _normalizeKey(de){return"esc"===de?"escape":de}static{this.\u0275fac=function(ge){return new(ge||Le)(i.KVO(n.qQ))}}static{this.\u0275prov=i.jDH({token:Le,factory:Le.\u0275fac})}}return Le})();const ve=(0,i.oH4)(i.fpN,"browser",[{provide:i.Agw,useValue:n.AJ},{provide:i.PLl,useValue:function dt(){C.makeCurrent()},multi:!0},{provide:n.qQ,useFactory:function J(){return(0,i.TL$)(document),document},deps:[]}]),ue=new i.nKC(""),et=[{provide:i.e01,useClass:class x{addToWindow(V){i.JZv.getAngularTestability=(ge,Ft=!0)=>{const Wt=V.findTestabilityInTree(ge,Ft);if(null==Wt)throw new i.wOt(5103,!1);return Wt},i.JZv.getAllAngularTestabilities=()=>V.getAllTestabilities(),i.JZv.getAllAngularRootElements=()=>V.getAllRootElements(),i.JZv.frameworkStabilizers||(i.JZv.frameworkStabilizers=[]),i.JZv.frameworkStabilizers.push(ge=>{const Ft=i.JZv.getAllAngularTestabilities();let Wt=Ft.length;const Kt=function(){Wt--,0==Wt&&ge()};Ft.forEach(cn=>{cn.whenStable(Kt)})})}findTestabilityInTree(V,de,ge){return null==de?null:V.getTestability(de)??(ge?(0,n.QT)().isShadowRoot(de)?this.findTestabilityInTree(V,de.host,!0):this.findTestabilityInTree(V,de.parentElement,!0):null)}},deps:[]},{provide:i.WHO,useClass:i.NYb,deps:[i.SKi,i.giA,i.e01]},{provide:i.NYb,useClass:i.NYb,deps:[i.SKi,i.giA,i.e01]}],se=[{provide:i.H8p,useValue:"root"},{provide:i.zcH,useFactory:function Pe(){return new i.zcH},deps:[]},{provide:g,useClass:Qe,multi:!0,deps:[n.qQ,i.SKi,i.Agw]},{provide:g,useClass:Je,multi:!0,deps:[n.qQ]},X,u,m,{provide:i._9s,useExisting:X},{provide:n.N0,useClass:A,deps:[]},[]];let Ce=(()=>{class Le{constructor(de){}static withServerTransition(de){return{ngModule:Le,providers:[{provide:i.sZ2,useValue:de.appId}]}}static{this.\u0275fac=function(ge){return new(ge||Le)(i.KVO(ue,12))}}static{this.\u0275mod=i.$C({type:Le})}static{this.\u0275inj=i.G2t({providers:[...se,...et],imports:[n.MD,i.Hbi]})}}return Le})(),me=(()=>{class Le{constructor(de){this._doc=de}getTitle(){return this._doc.title}setTitle(de){this._doc.title=de||""}static{this.\u0275fac=function(ge){return new(ge||Le)(i.KVO(n.qQ))}}static{this.\u0275prov=i.jDH({token:Le,factory:Le.\u0275fac,providedIn:"root"})}}return Le})(),Zt=(()=>{class Le{static{this.\u0275fac=function(ge){return new(ge||Le)}}static{this.\u0275prov=i.jDH({token:Le,factory:function(ge){let Ft=null;return Ft=ge?new(ge||Le):i.KVO(nn),Ft},providedIn:"root"})}}return Le})(),nn=(()=>{class Le extends Zt{constructor(de){super(),this._doc=de}sanitize(de,ge){if(null==ge)return null;switch(de){case i.WPN.NONE:return ge;case i.WPN.HTML:return(0,i.ZF7)(ge,"HTML")?(0,i.rcV)(ge):(0,i.h9k)(this._doc,String(ge)).toString();case i.WPN.STYLE:return(0,i.ZF7)(ge,"Style")?(0,i.rcV)(ge):ge;case i.WPN.SCRIPT:if((0,i.ZF7)(ge,"Script"))return(0,i.rcV)(ge);throw new i.wOt(5200,!1);case i.WPN.URL:return(0,i.ZF7)(ge,"URL")?(0,i.rcV)(ge):(0,i.$MX)(String(ge));case i.WPN.RESOURCE_URL:if((0,i.ZF7)(ge,"ResourceURL"))return(0,i.rcV)(ge);throw new i.wOt(5201,!1);default:throw new i.wOt(5202,!1)}}bypassSecurityTrustHtml(de){return(0,i.Kcf)(de)}bypassSecurityTrustStyle(de){return(0,i.cWb)(de)}bypassSecurityTrustScript(de){return(0,i.UyX)(de)}bypassSecurityTrustUrl(de){return(0,i.osQ)(de)}bypassSecurityTrustResourceUrl(de){return(0,i.e5t)(de)}static{this.\u0275fac=function(ge){return new(ge||Le)(i.KVO(n.qQ))}}static{this.\u0275prov=i.jDH({token:Le,factory:Le.\u0275fac,providedIn:"root"})}}return Le})()},14354:(St,z,s)=>{"use strict";s.d(z,{AL:()=>mr,Gl:()=>Ze,Ix:()=>ht,OY:()=>Ar,Wk:()=>$t,Z:()=>tr,b:()=>Mr,iI:()=>vr,n3:()=>Xa,nX:()=>Go,wF:()=>qi});var i=s(70650),n=s(58527),h=s(39595),C=s(19392),S=s(43848),M=s(26513),P=s(31315),x=s(64971),A=s(69917),g=s(63997),m=s(97462),l=s(59859),r=s(12532),u=s(96090),v=s(80583),E=s(10399),T=s(61142),R=s(83915),B=s(72147),U=s(65706),Y=s(34593),ae=s(8619),G=s(75707),k=s(99047),X=s(79539),q=s(91384),Q=s(14714),ce=s(18612),te=s(67110),Ee=s(25577),it=s(93702),Fe=s(10174),Qe=s(43615),ct=s(60837),Ge=s(4208),nt=s(40466),Je=s(74150);const ze="primary",Ke=Symbol("RouteTitle");class Ve{constructor(ft){this.params=ft||{}}has(ft){return Object.prototype.hasOwnProperty.call(this.params,ft)}get(ft){if(this.has(ft)){const Be=this.params[ft];return Array.isArray(Be)?Be[0]:Be}return null}getAll(ft){if(this.has(ft)){const Be=this.params[ft];return Array.isArray(Be)?Be:[Be]}return[]}get keys(){return Object.keys(this.params)}}function $e(Te){return new Ve(Te)}function dt(Te,ft,Be){const at=Be.path.split("/");if(at.length>Te.length||"full"===Be.pathMatch&&(ft.hasChildren()||at.length<Te.length))return null;const jt={};for(let pn=0;pn<at.length;pn++){const Xn=at[pn],mi=Te[pn];if(Xn.startsWith(":"))jt[Xn.substring(1)]=mi;else if(Xn!==mi.path)return null}return{consumed:Te.slice(0,at.length),posParams:jt}}function J(Te,ft){const Be=Te?vt(Te):void 0,at=ft?vt(ft):void 0;if(!Be||!at||Be.length!=at.length)return!1;let jt;for(let pn=0;pn<Be.length;pn++)if(jt=Be[pn],!ve(Te[jt],ft[jt]))return!1;return!0}function vt(Te){return[...Object.keys(Te),...Object.getOwnPropertySymbols(Te)]}function ve(Te,ft){if(Array.isArray(Te)&&Array.isArray(ft)){if(Te.length!==ft.length)return!1;const Be=[...Te].sort(),at=[...ft].sort();return Be.every((jt,pn)=>at[pn]===jt)}return Te===ft}function ue(Te){return Te.length>0?Te[Te.length-1]:null}function et(Te){return(0,h.A)(Te)?Te:(0,n.jNT)(Te)?(0,C.H)(Promise.resolve(Te)):(0,S.of)(Te)}const se={exact:function me(Te,ft,Be){if(!dn(Te.segments,ft.segments)||!fe(Te.segments,ft.segments,Be)||Te.numberOfChildren!==ft.numberOfChildren)return!1;for(const at in ft.children)if(!Te.children[at]||!me(Te.children[at],ft.children[at],Be))return!1;return!0},subset:Xe},Ce={exact:function rt(Te,ft){return J(Te,ft)},subset:function le(Te,ft){return Object.keys(ft).length<=Object.keys(Te).length&&Object.keys(ft).every(Be=>ve(Te[Be],ft[Be]))},ignored:()=>!0};function be(Te,ft,Be){return se[Be.paths](Te.root,ft.root,Be.matrixParams)&&Ce[Be.queryParams](Te.queryParams,ft.queryParams)&&!("exact"===Be.fragment&&Te.fragment!==ft.fragment)}function Xe(Te,ft,Be){return Se(Te,ft,ft.segments,Be)}function Se(Te,ft,Be,at){if(Te.segments.length>Be.length){const jt=Te.segments.slice(0,Be.length);return!(!dn(jt,Be)||ft.hasChildren()||!fe(jt,Be,at))}if(Te.segments.length===Be.length){if(!dn(Te.segments,Be)||!fe(Te.segments,Be,at))return!1;for(const jt in ft.children)if(!Te.children[jt]||!Xe(Te.children[jt],ft.children[jt],at))return!1;return!0}{const jt=Be.slice(0,Te.segments.length),pn=Be.slice(Te.segments.length);return!!(dn(Te.segments,jt)&&fe(Te.segments,jt,at)&&Te.children[ze])&&Se(Te.children[ze],ft,pn,at)}}function fe(Te,ft,Be){return ft.every((at,jt)=>Ce[Be](Te[jt].parameters,at.parameters))}class Ne{constructor(ft=new ye([],{}),Be={},at=null){this.root=ft,this.queryParams=Be,this.fragment=at}get queryParamMap(){return this._queryParamMap??=$e(this.queryParams),this._queryParamMap}toString(){return Qt.serialize(this)}}class ye{constructor(ft,Be){this.segments=ft,this.children=Be,this.parent=null,Object.values(Be).forEach(at=>at.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Jt(this)}}class Ot{constructor(ft,Be){this.path=ft,this.parameters=Be}get parameterMap(){return this._parameterMap??=$e(this.parameters),this._parameterMap}toString(){return Ht(this)}}function dn(Te,ft){return Te.length===ft.length&&Te.every((Be,at)=>Be.path===ft[at].path)}let At=(()=>{class Te{static{this.\u0275fac=function(at){return new(at||Te)}}static{this.\u0275prov=n.jDH({token:Te,factory:()=>new Vt,providedIn:"root"})}}return Te})();class Vt{parse(ft){const Be=new cn(ft);return new Ne(Be.parseRootSegment(),Be.parseQueryParams(),Be.parseFragment())}serialize(ft){const Be=`/${Zt(ft.root,!0)}`,at=function Ut(Te){const ft=Object.entries(Te).map(([Be,at])=>Array.isArray(at)?at.map(jt=>`${Xt(Be)}=${Xt(jt)}`).join("&"):`${Xt(Be)}=${Xt(at)}`).filter(Be=>Be);return ft.length?`?${ft.join("&")}`:""}(ft.queryParams);return`${Be}${at}${"string"==typeof ft.fragment?`#${function lt(Te){return encodeURI(Te)}(ft.fragment)}`:""}`}}const Qt=new Vt;function Jt(Te){return Te.segments.map(ft=>Ht(ft)).join("/")}function Zt(Te,ft){if(!Te.hasChildren())return Jt(Te);if(ft){const Be=Te.children[ze]?Zt(Te.children[ze],!1):"",at=[];return Object.entries(Te.children).forEach(([jt,pn])=>{jt!==ze&&at.push(`${jt}:${Zt(pn,!1)}`)}),at.length>0?`${Be}(${at.join("//")})`:Be}{const Be=function yn(Te,ft){let Be=[];return Object.entries(Te.children).forEach(([at,jt])=>{at===ze&&(Be=Be.concat(ft(jt,at)))}),Object.entries(Te.children).forEach(([at,jt])=>{at!==ze&&(Be=Be.concat(ft(jt,at)))}),Be}(Te,(at,jt)=>jt===ze?[Zt(Te.children[ze],!1)]:[`${jt}:${Zt(at,!1)}`]);return 1===Object.keys(Te.children).length&&null!=Te.children[ze]?`${Jt(Te)}/${Be[0]}`:`${Jt(Te)}/(${Be.join("//")})`}}function nn(Te){return encodeURIComponent(Te).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Xt(Te){return nn(Te).replace(/%3B/gi,";")}function Ue(Te){return nn(Te).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function wt(Te){return decodeURIComponent(Te)}function gt(Te){return wt(Te.replace(/\+/g,"%20"))}function Ht(Te){return`${Ue(Te.path)}${function bn(Te){return Object.entries(Te).map(([ft,Be])=>`;${Ue(ft)}=${Ue(Be)}`).join("")}(Te.parameters)}`}const Bt=/^[^\/()?;#]+/;function Le(Te){const ft=Te.match(Bt);return ft?ft[0]:""}const V=/^[^\/()?;=#]+/,ge=/^[^=?&#]+/,Wt=/^[^&#]+/;class cn{constructor(ft){this.url=ft,this.remaining=ft}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new ye([],{}):new ye([],this.parseChildren())}parseQueryParams(){const ft={};if(this.consumeOptional("?"))do{this.parseQueryParam(ft)}while(this.consumeOptional("&"));return ft}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const ft=[];for(this.peekStartsWith("(")||ft.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),ft.push(this.parseSegment());let Be={};this.peekStartsWith("/(")&&(this.capture("/"),Be=this.parseParens(!0));let at={};return this.peekStartsWith("(")&&(at=this.parseParens(!1)),(ft.length>0||Object.keys(Be).length>0)&&(at[ze]=new ye(ft,Be)),at}parseSegment(){const ft=Le(this.remaining);if(""===ft&&this.peekStartsWith(";"))throw new n.wOt(4009,!1);return this.capture(ft),new Ot(wt(ft),this.parseMatrixParams())}parseMatrixParams(){const ft={};for(;this.consumeOptional(";");)this.parseParam(ft);return ft}parseParam(ft){const Be=function de(Te){const ft=Te.match(V);return ft?ft[0]:""}(this.remaining);if(!Be)return;this.capture(Be);let at="";if(this.consumeOptional("=")){const jt=Le(this.remaining);jt&&(at=jt,this.capture(at))}ft[wt(Be)]=wt(at)}parseQueryParam(ft){const Be=function Ft(Te){const ft=Te.match(ge);return ft?ft[0]:""}(this.remaining);if(!Be)return;this.capture(Be);let at="";if(this.consumeOptional("=")){const Xn=function Kt(Te){const ft=Te.match(Wt);return ft?ft[0]:""}(this.remaining);Xn&&(at=Xn,this.capture(at))}const jt=gt(Be),pn=gt(at);if(ft.hasOwnProperty(jt)){let Xn=ft[jt];Array.isArray(Xn)||(Xn=[Xn],ft[jt]=Xn),Xn.push(pn)}else ft[jt]=pn}parseParens(ft){const Be={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const at=Le(this.remaining),jt=this.remaining[at.length];if("/"!==jt&&")"!==jt&&";"!==jt)throw new n.wOt(4010,!1);let pn;at.indexOf(":")>-1?(pn=at.slice(0,at.indexOf(":")),this.capture(pn),this.capture(":")):ft&&(pn=ze);const Xn=this.parseChildren();Be[pn]=1===Object.keys(Xn).length?Xn[ze]:new ye([],Xn),this.consumeOptional("//")}return Be}peekStartsWith(ft){return this.remaining.startsWith(ft)}consumeOptional(ft){return!!this.peekStartsWith(ft)&&(this.remaining=this.remaining.substring(ft.length),!0)}capture(ft){if(!this.consumeOptional(ft))throw new n.wOt(4011,!1)}}function En(Te){return Te.segments.length>0?new ye([],{[ze]:Te}):Te}function kn(Te){const ft={};for(const[at,jt]of Object.entries(Te.children)){const pn=kn(jt);if(at===ze&&0===pn.segments.length&&pn.hasChildren())for(const[Xn,mi]of Object.entries(pn.children))ft[Xn]=mi;else(pn.segments.length>0||pn.hasChildren())&&(ft[at]=pn)}return function Ai(Te){if(1===Te.numberOfChildren&&Te.children[ze]){const ft=Te.children[ze];return new ye(Te.segments.concat(ft.segments),ft.children)}return Te}(new ye(Te.segments,ft))}function Gi(Te){return Te instanceof Ne}function Zi(Te){let ft;const jt=En(function Be(pn){const Xn={};for(const Ci of pn.children){const _r=Be(Ci);Xn[Ci.outlet]=_r}const mi=new ye(pn.url,Xn);return pn===Te&&(ft=mi),mi}(Te.root));return ft??jt}function Rn(Te,ft,Be,at){let jt=Te;for(;jt.parent;)jt=jt.parent;if(0===ft.length)return Ni(jt,jt,jt,Be,at);const pn=function hr(Te){if("string"==typeof Te[0]&&1===Te.length&&"/"===Te[0])return new Ir(!0,0,Te);let ft=0,Be=!1;const at=Te.reduce((jt,pn,Xn)=>{if("object"==typeof pn&&null!=pn){if(pn.outlets){const mi={};return Object.entries(pn.outlets).forEach(([Ci,_r])=>{mi[Ci]="string"==typeof _r?_r.split("/"):_r}),[...jt,{outlets:mi}]}if(pn.segmentPath)return[...jt,pn.segmentPath]}return"string"!=typeof pn?[...jt,pn]:0===Xn?(pn.split("/").forEach((mi,Ci)=>{0==Ci&&"."===mi||(0==Ci&&""===mi?Be=!0:".."===mi?ft++:""!=mi&&jt.push(mi))}),jt):[...jt,pn]},[]);return new Ir(Be,ft,at)}(ft);if(pn.toRoot())return Ni(jt,jt,new ye([],{}),Be,at);const Xn=function Pr(Te,ft,Be){if(Te.isAbsolute)return new Ms(ft,!0,0);if(!Be)return new Ms(ft,!1,NaN);if(null===Be.parent)return new Ms(Be,!0,0);const at=Gn(Te.commands[0])?0:1;return function lo(Te,ft,Be){let at=Te,jt=ft,pn=Be;for(;pn>jt;){if(pn-=jt,at=at.parent,!at)throw new n.wOt(4005,!1);jt=at.segments.length}return new Ms(at,!1,jt-pn)}(Be,Be.segments.length-1+at,Te.numberOfDoubleDots)}(pn,jt,Te),mi=Xn.processChildren?Ei(Xn.segmentGroup,Xn.index,pn.commands):Vn(Xn.segmentGroup,Xn.index,pn.commands);return Ni(jt,Xn.segmentGroup,mi,Be,at)}function Gn(Te){return"object"==typeof Te&&null!=Te&&!Te.outlets&&!Te.segmentPath}function Kn(Te){return"object"==typeof Te&&null!=Te&&Te.outlets}function Ni(Te,ft,Be,at,jt){let Xn,pn={};at&&Object.entries(at).forEach(([Ci,_r])=>{pn[Ci]=Array.isArray(_r)?_r.map(ut=>`${ut}`):`${_r}`}),Xn=Te===ft?Be:ir(Te,ft,Be);const mi=En(kn(Xn));return new Ne(mi,pn,jt)}function ir(Te,ft,Be){const at={};return Object.entries(Te.children).forEach(([jt,pn])=>{at[jt]=pn===ft?Be:ir(pn,ft,Be)}),new ye(Te.segments,at)}class Ir{constructor(ft,Be,at){if(this.isAbsolute=ft,this.numberOfDoubleDots=Be,this.commands=at,ft&&at.length>0&&Gn(at[0]))throw new n.wOt(4003,!1);const jt=at.find(Kn);if(jt&&jt!==ue(at))throw new n.wOt(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Ms{constructor(ft,Be,at){this.segmentGroup=ft,this.processChildren=Be,this.index=at}}function Vn(Te,ft,Be){if(Te??=new ye([],{}),0===Te.segments.length&&Te.hasChildren())return Ei(Te,ft,Be);const at=function ai(Te,ft,Be){let at=0,jt=ft;const pn={match:!1,pathIndex:0,commandIndex:0};for(;jt<Te.segments.length;){if(at>=Be.length)return pn;const Xn=Te.segments[jt],mi=Be[at];if(Kn(mi))break;const Ci=`${mi}`,_r=at<Be.length-1?Be[at+1]:null;if(jt>0&&void 0===Ci)break;if(Ci&&_r&&"object"==typeof _r&&void 0===_r.outlets){if(!Qn(Ci,_r,Xn))return pn;at+=2}else{if(!Qn(Ci,{},Xn))return pn;at++}jt++}return{match:!0,pathIndex:jt,commandIndex:at}}(Te,ft,Be),jt=Be.slice(at.commandIndex);if(at.match&&at.pathIndex<Te.segments.length){const pn=new ye(Te.segments.slice(0,at.pathIndex),{});return pn.children[ze]=new ye(Te.segments.slice(at.pathIndex),Te.children),Ei(pn,0,jt)}return at.match&&0===jt.length?new ye(Te.segments,{}):at.match&&!Te.hasChildren()?Li(Te,ft,Be):at.match?Ei(Te,0,jt):Li(Te,ft,Be)}function Ei(Te,ft,Be){if(0===Be.length)return new ye(Te.segments,{});{const at=function js(Te){return Kn(Te[0])?Te[0].outlets:{[ze]:Te}}(Be),jt={};if(Object.keys(at).some(pn=>pn!==ze)&&Te.children[ze]&&1===Te.numberOfChildren&&0===Te.children[ze].segments.length){const pn=Ei(Te.children[ze],ft,Be);return new ye(Te.segments,pn.children)}return Object.entries(at).forEach(([pn,Xn])=>{"string"==typeof Xn&&(Xn=[Xn]),null!==Xn&&(jt[pn]=Vn(Te.children[pn],ft,Xn))}),Object.entries(Te.children).forEach(([pn,Xn])=>{void 0===at[pn]&&(jt[pn]=Xn)}),new ye(Te.segments,jt)}}function Li(Te,ft,Be){const at=Te.segments.slice(0,ft);let jt=0;for(;jt<Be.length;){const pn=Be[jt];if(Kn(pn)){const Ci=Lr(pn.outlets);return new ye(at,Ci)}if(0===jt&&Gn(Be[0])){at.push(new Ot(Te.segments[ft].path,Mn(Be[0]))),jt++;continue}const Xn=Kn(pn)?pn.outlets[ze]:`${pn}`,mi=jt<Be.length-1?Be[jt+1]:null;Xn&&mi&&Gn(mi)?(at.push(new Ot(Xn,Mn(mi))),jt+=2):(at.push(new Ot(Xn,{})),jt++)}return new ye(at,{})}function Lr(Te){const ft={};return Object.entries(Te).forEach(([Be,at])=>{"string"==typeof at&&(at=[at]),null!==at&&(ft[Be]=Li(new ye([],{}),0,at))}),ft}function Mn(Te){const ft={};return Object.entries(Te).forEach(([Be,at])=>ft[Be]=`${at}`),ft}function Qn(Te,ft,Be){return Te==Be.path&&J(ft,Be.parameters)}const Zn="imperative";var fi=function(Te){return Te[Te.NavigationStart=0]="NavigationStart",Te[Te.NavigationEnd=1]="NavigationEnd",Te[Te.NavigationCancel=2]="NavigationCancel",Te[Te.NavigationError=3]="NavigationError",Te[Te.RoutesRecognized=4]="RoutesRecognized",Te[Te.ResolveStart=5]="ResolveStart",Te[Te.ResolveEnd=6]="ResolveEnd",Te[Te.GuardsCheckStart=7]="GuardsCheckStart",Te[Te.GuardsCheckEnd=8]="GuardsCheckEnd",Te[Te.RouteConfigLoadStart=9]="RouteConfigLoadStart",Te[Te.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",Te[Te.ChildActivationStart=11]="ChildActivationStart",Te[Te.ChildActivationEnd=12]="ChildActivationEnd",Te[Te.ActivationStart=13]="ActivationStart",Te[Te.ActivationEnd=14]="ActivationEnd",Te[Te.Scroll=15]="Scroll",Te[Te.NavigationSkipped=16]="NavigationSkipped",Te}(fi||{});class yi{constructor(ft,Be){this.id=ft,this.url=Be}}class tr extends yi{constructor(ft,Be,at="imperative",jt=null){super(ft,Be),this.type=fi.NavigationStart,this.navigationTrigger=at,this.restoredState=jt}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class qi extends yi{constructor(ft,Be,at){super(ft,Be),this.urlAfterRedirects=at,this.type=fi.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}var Br=function(Te){return Te[Te.Redirect=0]="Redirect",Te[Te.SupersededByNewNavigation=1]="SupersededByNewNavigation",Te[Te.NoDataFromResolver=2]="NoDataFromResolver",Te[Te.GuardRejected=3]="GuardRejected",Te}(Br||{}),Sr=function(Te){return Te[Te.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",Te[Te.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",Te}(Sr||{});class ds extends yi{constructor(ft,Be,at,jt){super(ft,Be),this.reason=at,this.code=jt,this.type=fi.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class bs extends yi{constructor(ft,Be,at,jt){super(ft,Be),this.reason=at,this.code=jt,this.type=fi.NavigationSkipped}}class An extends yi{constructor(ft,Be,at,jt){super(ft,Be),this.error=at,this.target=jt,this.type=fi.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class zn extends yi{constructor(ft,Be,at,jt){super(ft,Be),this.urlAfterRedirects=at,this.state=jt,this.type=fi.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Jn extends yi{constructor(ft,Be,at,jt){super(ft,Be),this.urlAfterRedirects=at,this.state=jt,this.type=fi.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class di extends yi{constructor(ft,Be,at,jt,pn){super(ft,Be),this.urlAfterRedirects=at,this.state=jt,this.shouldActivate=pn,this.type=fi.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Oi extends yi{constructor(ft,Be,at,jt){super(ft,Be),this.urlAfterRedirects=at,this.state=jt,this.type=fi.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Wi extends yi{constructor(ft,Be,at,jt){super(ft,Be),this.urlAfterRedirects=at,this.state=jt,this.type=fi.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class mr{constructor(ft){this.route=ft,this.type=fi.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class qr{constructor(ft){this.route=ft,this.type=fi.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class ms{constructor(ft){this.snapshot=ft,this.type=fi.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class us{constructor(ft){this.snapshot=ft,this.type=fi.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Qs{constructor(ft){this.snapshot=ft,this.type=fi.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ks{constructor(ft){this.snapshot=ft,this.type=fi.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ar{constructor(ft,Be,at){this.routerEvent=ft,this.position=Be,this.anchor=at,this.type=fi.Scroll}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class Ur{}class vs{constructor(ft){this.url=ft}}class Zo{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new vo,this.attachRef=null}}let vo=(()=>{class Te{constructor(){this.contexts=new Map}onChildOutletCreated(Be,at){const jt=this.getOrCreateContext(Be);jt.outlet=at,this.contexts.set(Be,jt)}onChildOutletDestroyed(Be){const at=this.getContext(Be);at&&(at.outlet=null,at.attachRef=null)}onOutletDeactivated(){const Be=this.contexts;return this.contexts=new Map,Be}onOutletReAttached(Be){this.contexts=Be}getOrCreateContext(Be){let at=this.getContext(Be);return at||(at=new Zo,this.contexts.set(Be,at)),at}getContext(Be){return this.contexts.get(Be)||null}static{this.\u0275fac=function(at){return new(at||Te)}}static{this.\u0275prov=n.jDH({token:Te,factory:Te.\u0275fac,providedIn:"root"})}}return Te})();class Pa{constructor(ft){this._root=ft}get root(){return this._root.value}parent(ft){const Be=this.pathFromRoot(ft);return Be.length>1?Be[Be.length-2]:null}children(ft){const Be=fa(ft,this._root);return Be?Be.children.map(at=>at.value):[]}firstChild(ft){const Be=fa(ft,this._root);return Be&&Be.children.length>0?Be.children[0].value:null}siblings(ft){const Be=fs(ft,this._root);return Be.length<2?[]:Be[Be.length-2].children.map(jt=>jt.value).filter(jt=>jt!==ft)}pathFromRoot(ft){return fs(ft,this._root).map(Be=>Be.value)}}function fa(Te,ft){if(Te===ft.value)return ft;for(const Be of ft.children){const at=fa(Te,Be);if(at)return at}return null}function fs(Te,ft){if(Te===ft.value)return[ft];for(const Be of ft.children){const at=fs(Te,Be);if(at.length)return at.unshift(ft),at}return[]}class Io{constructor(ft,Be){this.value=ft,this.children=Be}toString(){return`TreeNode(${this.value})`}}function Fo(Te){const ft={};return Te&&Te.children.forEach(Be=>ft[Be.value.outlet]=Be),ft}class qs extends Pa{constructor(ft,Be){super(ft),this.snapshot=Be,Rr(this,ft)}toString(){return this.snapshot.toString()}}function So(Te){const ft=function ta(Te){const pn=new As([],{},{},"",{},ze,Te,null,{});return new Uo("",new Io(pn,[]))}(Te),Be=new M.t([new Ot("",{})]),at=new M.t({}),jt=new M.t({}),pn=new M.t({}),Xn=new M.t(""),mi=new Go(Be,at,pn,Xn,jt,ze,Te,ft.root);return mi.snapshot=ft.root,new qs(new Io(mi,[]),ft)}class Go{constructor(ft,Be,at,jt,pn,Xn,mi,Ci){this.urlSubject=ft,this.paramsSubject=Be,this.queryParamsSubject=at,this.fragmentSubject=jt,this.dataSubject=pn,this.outlet=Xn,this.component=mi,this._futureSnapshot=Ci,this.title=this.dataSubject?.pipe((0,R.T)(_r=>_r[Ke]))??(0,S.of)(void 0),this.url=ft,this.params=Be,this.queryParams=at,this.fragment=jt,this.data=pn}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe((0,R.T)(ft=>$e(ft))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe((0,R.T)(ft=>$e(ft))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Mo(Te,ft,Be="emptyOnly"){let at;const{routeConfig:jt}=Te;return at=null===ft||"always"!==Be&&""!==jt?.path&&(ft.component||ft.routeConfig?.loadComponent)?{params:{...Te.params},data:{...Te.data},resolve:{...Te.data,...Te._resolvedData??{}}}:{params:{...ft.params,...Te.params},data:{...ft.data,...Te.data},resolve:{...Te.data,...ft.data,...jt?.data,...Te._resolvedData}},jt&&bo(jt)&&(at.resolve[Ke]=jt.title),at}class As{get title(){return this.data?.[Ke]}constructor(ft,Be,at,jt,pn,Xn,mi,Ci,_r){this.url=ft,this.params=Be,this.queryParams=at,this.fragment=jt,this.data=pn,this.outlet=Xn,this.component=mi,this.routeConfig=Ci,this._resolve=_r}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=$e(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=$e(this.queryParams),this._queryParamMap}toString(){return`Route(url:'${this.url.map(at=>at.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Uo extends Pa{constructor(ft,Be){super(Be),this.url=ft,Rr(this,Be)}toString(){return pa(this._root)}}function Rr(Te,ft){ft.value._routerState=Te,ft.children.forEach(Be=>Rr(Te,Be))}function pa(Te){const ft=Te.children.length>0?` { ${Te.children.map(pa).join(", ")} } `:"";return`${Te.value}${ft}`}function nl(Te){if(Te.snapshot){const ft=Te.snapshot,Be=Te._futureSnapshot;Te.snapshot=Be,J(ft.queryParams,Be.queryParams)||Te.queryParamsSubject.next(Be.queryParams),ft.fragment!==Be.fragment&&Te.fragmentSubject.next(Be.fragment),J(ft.params,Be.params)||Te.paramsSubject.next(Be.params),function Pe(Te,ft){if(Te.length!==ft.length)return!1;for(let Be=0;Be<Te.length;++Be)if(!J(Te[Be],ft[Be]))return!1;return!0}(ft.url,Be.url)||Te.urlSubject.next(Be.url),J(ft.data,Be.data)||Te.dataSubject.next(Be.data)}else Te.snapshot=Te._futureSnapshot,Te.dataSubject.next(Te._futureSnapshot.data)}function Ha(Te,ft){const Be=J(Te.params,ft.params)&&function sn(Te,ft){return dn(Te,ft)&&Te.every((Be,at)=>J(Be.parameters,ft[at].parameters))}(Te.url,ft.url);return Be&&!(!Te.parent!=!ft.parent)&&(!Te.parent||Ha(Te.parent,ft.parent))}function bo(Te){return"string"==typeof Te.title||null===Te.title}let Xa=(()=>{class Te{constructor(){this.activated=null,this._activatedRoute=null,this.name=ze,this.activateEvents=new n.bkB,this.deactivateEvents=new n.bkB,this.attachEvents=new n.bkB,this.detachEvents=new n.bkB,this.parentContexts=(0,n.WQX)(vo),this.location=(0,n.WQX)(n.c1b),this.changeDetector=(0,n.WQX)(n.gRc),this.environmentInjector=(0,n.WQX)(n.uvJ),this.inputBinder=(0,n.WQX)(eo,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(Be){if(Be.name){const{firstChange:at,previousValue:jt}=Be.name;if(at)return;this.isTrackedInParentContexts(jt)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(jt)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(Be){return this.parentContexts.getContext(Be)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const Be=this.parentContexts.getContext(this.name);Be?.route&&(Be.attachRef?this.attach(Be.attachRef,Be.route):this.activateWith(Be.route,Be.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new n.wOt(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new n.wOt(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new n.wOt(4012,!1);this.location.detach();const Be=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(Be.instance),Be}attach(Be,at){this.activated=Be,this._activatedRoute=at,this.location.insert(Be.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(Be.instance)}deactivate(){if(this.activated){const Be=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(Be)}}activateWith(Be,at){if(this.isActivated)throw new n.wOt(4013,!1);this._activatedRoute=Be;const jt=this.location,Xn=Be.snapshot.component,mi=this.parentContexts.getOrCreateContext(this.name).children,Ci=new Es(Be,mi,jt.injector);this.activated=jt.createComponent(Xn,{index:jt.length,injector:Ci,environmentInjector:at??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static{this.\u0275fac=function(at){return new(at||Te)}}static{this.\u0275dir=n.FsC({type:Te,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[n.OA$]})}}return Te})();class Es{__ngOutletInjector(ft){return new Es(this.route,this.childContexts,ft)}constructor(ft,Be,at){this.route=ft,this.childContexts=Be,this.parent=at}get(ft,Be){return ft===Go?this.route:ft===vo?this.childContexts:this.parent.get(ft,Be)}}const eo=new n.nKC("");let Ks=(()=>{class Te{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(Be){this.unsubscribeFromRouteData(Be),this.subscribeToRouteData(Be)}unsubscribeFromRouteData(Be){this.outletDataSubscriptions.get(Be)?.unsubscribe(),this.outletDataSubscriptions.delete(Be)}subscribeToRouteData(Be){const{activatedRoute:at}=Be,jt=(0,P.zV)([at.queryParams,at.params,at.data]).pipe((0,B.n)(([pn,Xn,mi],Ci)=>(mi={...pn,...Xn,...mi},0===Ci?(0,S.of)(mi):Promise.resolve(mi)))).subscribe(pn=>{if(!Be.isActivated||!Be.activatedComponentRef||Be.activatedRoute!==at||null===at.component)return void this.unsubscribeFromRouteData(Be);const Xn=(0,n.HJs)(at.component);if(Xn)for(const{templateName:mi}of Xn.inputs)Be.activatedComponentRef.setInput(mi,pn[mi]);else this.unsubscribeFromRouteData(Be)});this.outletDataSubscriptions.set(Be,jt)}static{this.\u0275fac=function(at){return new(at||Te)}}static{this.\u0275prov=n.jDH({token:Te,factory:Te.\u0275fac})}}return Te})();function ar(Te,ft,Be){if(Be&&Te.shouldReuseRoute(ft.value,Be.value.snapshot)){const at=Be.value;at._futureSnapshot=ft.value;const jt=function la(Te,ft,Be){return ft.children.map(at=>{for(const jt of Be.children)if(Te.shouldReuseRoute(at.value,jt.value.snapshot))return ar(Te,at,jt);return ar(Te,at)})}(Te,ft,Be);return new Io(at,jt)}{if(Te.shouldAttach(ft.value)){const pn=Te.retrieve(ft.value);if(null!==pn){const Xn=pn.route;return Xn.value._futureSnapshot=ft.value,Xn.children=ft.children.map(mi=>ar(Te,mi)),Xn}}const at=function wo(Te){return new Go(new M.t(Te.url),new M.t(Te.params),new M.t(Te.queryParams),new M.t(Te.fragment),new M.t(Te.data),Te.outlet,Te.component,Te)}(ft.value),jt=ft.children.map(pn=>ar(Te,pn));return new Io(at,jt)}}const na="ngNavigationCancelingError";function Ro(Te,ft){const{redirectTo:Be,navigationBehaviorOptions:at}=Gi(ft)?{redirectTo:ft,navigationBehaviorOptions:void 0}:ft,jt=ja(!1,Br.Redirect);return jt.url=Be,jt.navigationBehaviorOptions=at,jt}function ja(Te,ft){const Be=new Error(`NavigationCancelingError: ${Te||""}`);return Be[na]=!0,Be.cancellationCode=ft,Be}function Ho(Te){return!!Te&&Te[na]}let no=(()=>{class Te{static{this.\u0275fac=function(at){return new(at||Te)}}static{this.\u0275cmp=n.VBU({type:Te,selectors:[["ng-component"]],standalone:!0,features:[n.aNF],decls:1,vars:0,template:function(at,jt){1&at&&n.nrm(0,"router-outlet")},dependencies:[Xa],encapsulation:2})}}return Te})();function co(Te){const ft=Te.children&&Te.children.map(co),Be=ft?{...Te,children:ft}:{...Te};return!Be.component&&!Be.loadComponent&&(ft||Be.loadChildren)&&Be.outlet&&Be.outlet!==ze&&(Be.component=no),Be}function po(Te){return Te.outlet||ze}function Sn(Te){if(!Te)return null;if(Te.routeConfig?._injector)return Te.routeConfig._injector;for(let ft=Te.parent;ft;ft=ft.parent){const Be=ft.routeConfig;if(Be?._loadedInjector)return Be._loadedInjector;if(Be?._injector)return Be._injector}return null}class $o{constructor(ft,Be,at,jt,pn){this.routeReuseStrategy=ft,this.futureState=Be,this.currState=at,this.forwardEvent=jt,this.inputBindingEnabled=pn}activate(ft){const Be=this.futureState._root,at=this.currState?this.currState._root:null;this.deactivateChildRoutes(Be,at,ft),nl(this.futureState.root),this.activateChildRoutes(Be,at,ft)}deactivateChildRoutes(ft,Be,at){const jt=Fo(Be);ft.children.forEach(pn=>{const Xn=pn.value.outlet;this.deactivateRoutes(pn,jt[Xn],at),delete jt[Xn]}),Object.values(jt).forEach(pn=>{this.deactivateRouteAndItsChildren(pn,at)})}deactivateRoutes(ft,Be,at){const jt=ft.value,pn=Be?Be.value:null;if(jt===pn)if(jt.component){const Xn=at.getContext(jt.outlet);Xn&&this.deactivateChildRoutes(ft,Be,Xn.children)}else this.deactivateChildRoutes(ft,Be,at);else pn&&this.deactivateRouteAndItsChildren(Be,at)}deactivateRouteAndItsChildren(ft,Be){ft.value.component&&this.routeReuseStrategy.shouldDetach(ft.value.snapshot)?this.detachAndStoreRouteSubtree(ft,Be):this.deactivateRouteAndOutlet(ft,Be)}detachAndStoreRouteSubtree(ft,Be){const at=Be.getContext(ft.value.outlet),jt=at&&ft.value.component?at.children:Be,pn=Fo(ft);for(const Xn of Object.values(pn))this.deactivateRouteAndItsChildren(Xn,jt);if(at&&at.outlet){const Xn=at.outlet.detach(),mi=at.children.onOutletDeactivated();this.routeReuseStrategy.store(ft.value.snapshot,{componentRef:Xn,route:ft,contexts:mi})}}deactivateRouteAndOutlet(ft,Be){const at=Be.getContext(ft.value.outlet),jt=at&&ft.value.component?at.children:Be,pn=Fo(ft);for(const Xn of Object.values(pn))this.deactivateRouteAndItsChildren(Xn,jt);at&&(at.outlet&&(at.outlet.deactivate(),at.children.onOutletDeactivated()),at.attachRef=null,at.route=null)}activateChildRoutes(ft,Be,at){const jt=Fo(Be);ft.children.forEach(pn=>{this.activateRoutes(pn,jt[pn.value.outlet],at),this.forwardEvent(new ks(pn.value.snapshot))}),ft.children.length&&this.forwardEvent(new us(ft.value.snapshot))}activateRoutes(ft,Be,at){const jt=ft.value,pn=Be?Be.value:null;if(nl(jt),jt===pn)if(jt.component){const Xn=at.getOrCreateContext(jt.outlet);this.activateChildRoutes(ft,Be,Xn.children)}else this.activateChildRoutes(ft,Be,at);else if(jt.component){const Xn=at.getOrCreateContext(jt.outlet);if(this.routeReuseStrategy.shouldAttach(jt.snapshot)){const mi=this.routeReuseStrategy.retrieve(jt.snapshot);this.routeReuseStrategy.store(jt.snapshot,null),Xn.children.onOutletReAttached(mi.contexts),Xn.attachRef=mi.componentRef,Xn.route=mi.route.value,Xn.outlet&&Xn.outlet.attach(mi.componentRef,mi.route.value),nl(mi.route.value),this.activateChildRoutes(ft,null,Xn.children)}else{const mi=Sn(jt.snapshot);Xn.attachRef=null,Xn.route=jt,Xn.injector=mi,Xn.outlet&&Xn.outlet.activateWith(jt,Xn.injector),this.activateChildRoutes(ft,null,Xn.children)}}else this.activateChildRoutes(ft,null,at)}}class aa{constructor(ft){this.path=ft,this.route=this.path[this.path.length-1]}}class Xs{constructor(ft,Be){this.component=ft,this.route=Be}}function _a(Te,ft,Be){const at=Te._root;return jo(at,ft?ft._root:null,Be,[at.value])}function Ae(Te,ft){const Be=Symbol(),at=ft.get(Te,Be);return at===Be?"function"!=typeof Te||(0,n.LfX)(Te)?ft.get(Te):Te:at}function jo(Te,ft,Be,at,jt={canDeactivateChecks:[],canActivateChecks:[]}){const pn=Fo(ft);return Te.children.forEach(Xn=>{(function fl(Te,ft,Be,at,jt={canDeactivateChecks:[],canActivateChecks:[]}){const pn=Te.value,Xn=ft?ft.value:null,mi=Be?Be.getContext(Te.value.outlet):null;if(Xn&&pn.routeConfig===Xn.routeConfig){const Ci=function Wa(Te,ft,Be){if("function"==typeof Be)return Be(Te,ft);switch(Be){case"pathParamsChange":return!dn(Te.url,ft.url);case"pathParamsOrQueryParamsChange":return!dn(Te.url,ft.url)||!J(Te.queryParams,ft.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Ha(Te,ft)||!J(Te.queryParams,ft.queryParams);default:return!Ha(Te,ft)}}(Xn,pn,pn.routeConfig.runGuardsAndResolvers);Ci?jt.canActivateChecks.push(new aa(at)):(pn.data=Xn.data,pn._resolvedData=Xn._resolvedData),jo(Te,ft,pn.component?mi?mi.children:null:Be,at,jt),Ci&&mi&&mi.outlet&&mi.outlet.isActivated&&jt.canDeactivateChecks.push(new Xs(mi.outlet.component,Xn))}else Xn&&Xi(ft,mi,jt),jt.canActivateChecks.push(new aa(at)),jo(Te,null,pn.component?mi?mi.children:null:Be,at,jt)})(Xn,pn[Xn.value.outlet],Be,at.concat([Xn.value]),jt),delete pn[Xn.value.outlet]}),Object.entries(pn).forEach(([Xn,mi])=>Xi(mi,Be.getContext(Xn),jt)),jt}function Xi(Te,ft,Be){const at=Fo(Te),jt=Te.value;Object.entries(at).forEach(([pn,Xn])=>{Xi(Xn,jt.component?ft?ft.children.getContext(pn):null:ft,Be)}),Be.canDeactivateChecks.push(new Xs(jt.component&&ft&&ft.outlet&&ft.outlet.isActivated?ft.outlet.component:null,jt))}function Ao(Te){return"function"==typeof Te}function Mt(Te){return Te instanceof x.G||"EmptyError"===Te?.name}const Dn=Symbol("INITIAL_VALUE");function qn(){return(0,B.n)(Te=>(0,P.zV)(Te.map(ft=>ft.pipe((0,U.s)(1),(0,Y.Z)(Dn)))).pipe((0,R.T)(ft=>{for(const Be of ft)if(!0!==Be){if(Be===Dn)return Dn;if(!1===Be||Be instanceof Ne)return Be}return!0}),(0,ae.p)(ft=>ft!==Dn),(0,U.s)(1)))}function Is(Te){return(0,m.F)((0,q.M)(ft=>{if(Gi(ft))throw Ro(0,ft)}),(0,R.T)(ft=>!0===ft))}class jr{constructor(ft){this.segmentGroup=ft||null}}class ia extends Error{constructor(ft){super(),this.urlTree=ft}}function Oo(Te){return(0,l.$)(new jr(Te))}class Yt{constructor(ft,Be){this.urlSerializer=ft,this.urlTree=Be}lineralizeSegments(ft,Be){let at=[],jt=Be.root;for(;;){if(at=at.concat(jt.segments),0===jt.numberOfChildren)return(0,S.of)(at);if(jt.numberOfChildren>1||!jt.children[ze])return(0,l.$)(new n.wOt(4e3,!1));jt=jt.children[ze]}}applyRedirectCommands(ft,Be,at){const jt=this.applyRedirectCreateUrlTree(Be,this.urlSerializer.parse(Be),ft,at);if(Be.startsWith("/"))throw new ia(jt);return jt}applyRedirectCreateUrlTree(ft,Be,at,jt){const pn=this.createSegmentGroup(ft,Be.root,at,jt);return new Ne(pn,this.createQueryParams(Be.queryParams,this.urlTree.queryParams),Be.fragment)}createQueryParams(ft,Be){const at={};return Object.entries(ft).forEach(([jt,pn])=>{if("string"==typeof pn&&pn.startsWith(":")){const mi=pn.substring(1);at[jt]=Be[mi]}else at[jt]=pn}),at}createSegmentGroup(ft,Be,at,jt){const pn=this.createSegments(ft,Be.segments,at,jt);let Xn={};return Object.entries(Be.children).forEach(([mi,Ci])=>{Xn[mi]=this.createSegmentGroup(ft,Ci,at,jt)}),new ye(pn,Xn)}createSegments(ft,Be,at,jt){return Be.map(pn=>pn.path.startsWith(":")?this.findPosParam(ft,pn,jt):this.findOrReturn(pn,at))}findPosParam(ft,Be,at){const jt=at[Be.path.substring(1)];if(!jt)throw new n.wOt(4001,!1);return jt}findOrReturn(ft,Be){let at=0;for(const jt of Be){if(jt.path===ft.path)return Be.splice(at),jt;at++}return ft}}const Un={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function ii(Te,ft,Be,at,jt){const pn=Hi(Te,ft,Be);return pn.matched?(at=function Fs(Te,ft){return Te.providers&&!Te._injector&&(Te._injector=(0,n.Ol2)(Te.providers,ft,`Route: ${Te.path}`)),Te._injector??ft}(ft,at),function da(Te,ft,Be,at){const jt=ft.canMatch;if(!jt||0===jt.length)return(0,S.of)(!0);const pn=jt.map(Xn=>{const mi=Ae(Xn,Te);return et(function Dt(Te){return Te&&Ao(Te.canMatch)}(mi)?mi.canMatch(ft,Be):(0,n.N4e)(Te,()=>mi(ft,Be)))});return(0,S.of)(pn).pipe(qn(),Is())}(at,ft,Be).pipe((0,R.T)(Xn=>!0===Xn?pn:{...Un}))):(0,S.of)(pn)}function Hi(Te,ft,Be){if("**"===ft.path)return function Nr(Te){return{matched:!0,parameters:Te.length>0?ue(Te).parameters:{},consumedSegments:Te,remainingSegments:[],positionalParamSegments:{}}}(Be);if(""===ft.path)return"full"===ft.pathMatch&&(Te.hasChildren()||Be.length>0)?{...Un}:{matched:!0,consumedSegments:[],remainingSegments:Be,parameters:{},positionalParamSegments:{}};const jt=(ft.matcher||dt)(Be,Te,ft);if(!jt)return{...Un};const pn={};Object.entries(jt.posParams??{}).forEach(([mi,Ci])=>{pn[mi]=Ci.path});const Xn=jt.consumed.length>0?{...pn,...jt.consumed[jt.consumed.length-1].parameters}:pn;return{matched:!0,consumedSegments:jt.consumed,remainingSegments:Be.slice(jt.consumed.length),parameters:Xn,positionalParamSegments:jt.posParams??{}}}function Or(Te,ft,Be,at){return Be.length>0&&function wr(Te,ft,Be){return Be.some(at=>Vs(Te,ft,at)&&po(at)!==ze)}(Te,Be,at)?{segmentGroup:new ye(ft,Zs(at,new ye(Be,Te.children))),slicedSegments:[]}:0===Be.length&&function Us(Te,ft,Be){return Be.some(at=>Vs(Te,ft,at))}(Te,Be,at)?{segmentGroup:new ye(Te.segments,es(Te,Be,at,Te.children)),slicedSegments:Be}:{segmentGroup:new ye(Te.segments,Te.children),slicedSegments:Be}}function es(Te,ft,Be,at){const jt={};for(const pn of Be)if(Vs(Te,ft,pn)&&!at[po(pn)]){const Xn=new ye([],{});jt[po(pn)]=Xn}return{...at,...jt}}function Zs(Te,ft){const Be={};Be[ze]=ft;for(const at of Te)if(""===at.path&&po(at)!==ze){const jt=new ye([],{});Be[po(at)]=jt}return Be}function Vs(Te,ft,Be){return(!(Te.hasChildren()||ft.length>0)||"full"!==Be.pathMatch)&&""===Be.path}class Qa{}class li{constructor(ft,Be,at,jt,pn,Xn,mi){this.injector=ft,this.configLoader=Be,this.rootComponentType=at,this.config=jt,this.urlTree=pn,this.paramsInheritanceStrategy=Xn,this.urlSerializer=mi,this.applyRedirects=new Yt(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(ft){return new n.wOt(4002,`'${ft.segmentGroup}'`)}recognize(){const ft=Or(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(ft).pipe((0,R.T)(Be=>{const at=new As([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},ze,this.rootComponentType,null,{}),jt=new Io(at,Be),pn=new Uo("",jt),Xn=function bt(Te,ft,Be=null,at=null){return Rn(Zi(Te),ft,Be,at)}(at,[],this.urlTree.queryParams,this.urlTree.fragment);return Xn.queryParams=this.urlTree.queryParams,pn.url=this.urlSerializer.serialize(Xn),this.inheritParamsAndData(pn._root,null),{state:pn,tree:Xn}}))}match(ft){return this.processSegmentGroup(this.injector,this.config,ft,ze).pipe((0,Q.W)(at=>{if(at instanceof ia)return this.urlTree=at.urlTree,this.match(at.urlTree.root);throw at instanceof jr?this.noMatchError(at):at}))}inheritParamsAndData(ft,Be){const at=ft.value,jt=Mo(at,Be,this.paramsInheritanceStrategy);at.params=Object.freeze(jt.params),at.data=Object.freeze(jt.data),ft.children.forEach(pn=>this.inheritParamsAndData(pn,at))}processSegmentGroup(ft,Be,at,jt){return 0===at.segments.length&&at.hasChildren()?this.processChildren(ft,Be,at):this.processSegment(ft,Be,at,at.segments,jt,!0).pipe((0,R.T)(pn=>pn instanceof Io?[pn]:[]))}processChildren(ft,Be,at){const jt=[];for(const pn of Object.keys(at.children))"primary"===pn?jt.unshift(pn):jt.push(pn);return(0,C.H)(jt).pipe((0,X.H)(pn=>{const Xn=at.children[pn],mi=function $s(Te,ft){const Be=Te.filter(at=>po(at)===ft);return Be.push(...Te.filter(at=>po(at)!==ft)),Be}(Be,pn);return this.processSegmentGroup(ft,mi,Xn,pn)}),(0,ce.S)((pn,Xn)=>(pn.push(...Xn),pn)),(0,te.U)(null),(0,Ee.H)(),(0,G.ZZ)(pn=>{if(null===pn)return Oo(at);const Xn=Dr(pn);return function Ii(Te){Te.sort((ft,Be)=>ft.value.outlet===ze?-1:Be.value.outlet===ze?1:ft.value.outlet.localeCompare(Be.value.outlet))}(Xn),(0,S.of)(Xn)}))}processSegment(ft,Be,at,jt,pn,Xn){return(0,C.H)(Be).pipe((0,X.H)(mi=>this.processSegmentAgainstRoute(mi._injector??ft,Be,mi,at,jt,pn,Xn).pipe((0,Q.W)(Ci=>{if(Ci instanceof jr)return(0,S.of)(null);throw Ci}))),(0,k.$)(mi=>!!mi),(0,Q.W)(mi=>{if(Mt(mi))return function Ya(Te,ft,Be){return 0===ft.length&&!Te.children[Be]}(at,jt,pn)?(0,S.of)(new Qa):Oo(at);throw mi}))}processSegmentAgainstRoute(ft,Be,at,jt,pn,Xn,mi){return function Ma(Te,ft,Be,at){return!!(po(Te)===at||at!==ze&&Vs(ft,Be,Te))&&Hi(ft,Te,Be).matched}(at,jt,pn,Xn)?void 0===at.redirectTo?this.matchSegmentAgainstRoute(ft,jt,at,pn,Xn):this.allowRedirects&&mi?this.expandSegmentAgainstRouteUsingRedirect(ft,jt,Be,at,pn,Xn):Oo(jt):Oo(jt)}expandSegmentAgainstRouteUsingRedirect(ft,Be,at,jt,pn,Xn){const{matched:mi,consumedSegments:Ci,positionalParamSegments:_r,remainingSegments:ut}=Hi(Be,jt,pn);if(!mi)return Oo(Be);jt.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>31&&(this.allowRedirects=!1));const Pt=this.applyRedirects.applyRedirectCommands(Ci,jt.redirectTo,_r);return this.applyRedirects.lineralizeSegments(jt,Pt).pipe((0,G.ZZ)(Re=>this.processSegment(ft,at,Be,Re.concat(ut),Xn,!1)))}matchSegmentAgainstRoute(ft,Be,at,jt,pn){const Xn=ii(Be,at,jt,ft);return"**"===at.path&&(Be.children={}),Xn.pipe((0,B.n)(mi=>mi.matched?this.getChildConfig(ft=at._injector??ft,at,jt).pipe((0,B.n)(({routes:Ci})=>{const _r=at._loadedInjector??ft,{consumedSegments:ut,remainingSegments:Pt,parameters:Re}=mi,rn=new As(ut,Re,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,function ws(Te){return Te.data||{}}(at),po(at),at.component??at._loadedComponent??null,at,function oo(Te){return Te.resolve||{}}(at)),{segmentGroup:an,slicedSegments:Hn}=Or(Be,ut,Pt,Ci);if(0===Hn.length&&an.hasChildren())return this.processChildren(_r,Ci,an).pipe((0,R.T)(yr=>null===yr?null:new Io(rn,yr)));if(0===Ci.length&&0===Hn.length)return(0,S.of)(new Io(rn,[]));const xi=po(at)===pn;return this.processSegment(_r,Ci,an,Hn,xi?ze:pn,!0).pipe((0,R.T)(yr=>new Io(rn,yr instanceof Io?[yr]:[])))})):Oo(Be)))}getChildConfig(ft,Be,at){return Be.children?(0,S.of)({routes:Be.children,injector:ft}):Be.loadChildren?void 0!==Be._loadedRoutes?(0,S.of)({routes:Be._loadedRoutes,injector:Be._loadedInjector}):function hs(Te,ft,Be,at){const jt=ft.canLoad;if(void 0===jt||0===jt.length)return(0,S.of)(!0);const pn=jt.map(Xn=>{const mi=Ae(Xn,Te);return et(function ca(Te){return Te&&Ao(Te.canLoad)}(mi)?mi.canLoad(ft,Be):(0,n.N4e)(Te,()=>mi(ft,Be)))});return(0,S.of)(pn).pipe(qn(),Is())}(ft,Be,at).pipe((0,G.ZZ)(jt=>jt?this.configLoader.loadChildren(ft,Be).pipe((0,q.M)(pn=>{Be._loadedRoutes=pn.routes,Be._loadedInjector=pn.injector})):function mt(Te){return(0,l.$)(ja(!1,Br.GuardRejected))}())):(0,S.of)({routes:[],injector:ft})}}function Pi(Te){const ft=Te.value.routeConfig;return ft&&""===ft.path}function Dr(Te){const ft=[],Be=new Set;for(const at of Te){if(!Pi(at)){ft.push(at);continue}const jt=ft.find(pn=>at.value.routeConfig===pn.value.routeConfig);void 0!==jt?(jt.children.push(...at.children),Be.add(jt)):ft.push(at)}for(const at of Be){const jt=Dr(at.children);ft.push(new Io(at.value,jt))}return ft.filter(at=>!Be.has(at))}function Sl(Te){const ft=Te.children.map(Be=>Sl(Be)).flat();return[Te,...ft]}function sa(Te){return(0,B.n)(ft=>{const Be=Te(ft);return Be?(0,C.H)(Be).pipe((0,R.T)(()=>ft)):(0,S.of)(ft)})}let rl=(()=>{class Te{buildTitle(Be){let at,jt=Be.root;for(;void 0!==jt;)at=this.getResolvedTitleForRoute(jt)??at,jt=jt.children.find(pn=>pn.outlet===ze);return at}getResolvedTitleForRoute(Be){return Be.data[Ke]}static{this.\u0275fac=function(at){return new(at||Te)}}static{this.\u0275prov=n.jDH({token:Te,factory:()=>(0,n.WQX)(ll),providedIn:"root"})}}return Te})(),ll=(()=>{class Te extends rl{constructor(Be){super(),this.title=Be}updateTitle(Be){const at=this.buildTitle(Be);void 0!==at&&this.title.setTitle(at)}static{this.\u0275fac=function(at){return new(at||Te)(n.KVO(Je.hE))}}static{this.\u0275prov=n.jDH({token:Te,factory:Te.\u0275fac,providedIn:"root"})}}return Te})();const Os=new n.nKC("",{providedIn:"root",factory:()=>({})}),lr=new n.nKC("");let zs=(()=>{class Te{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=(0,n.WQX)(n.Ql9)}loadComponent(Be){if(this.componentLoaders.get(Be))return this.componentLoaders.get(Be);if(Be._loadedComponent)return(0,S.of)(Be._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(Be);const at=et(Be.loadComponent()).pipe((0,R.T)(Vi),(0,q.M)(pn=>{this.onLoadEndListener&&this.onLoadEndListener(Be),Be._loadedComponent=pn}),(0,Qe.j)(()=>{this.componentLoaders.delete(Be)})),jt=new u.G(at,()=>new v.B7).pipe((0,ct.B)());return this.componentLoaders.set(Be,jt),jt}loadChildren(Be,at){if(this.childrenLoaders.get(at))return this.childrenLoaders.get(at);if(at._loadedRoutes)return(0,S.of)({routes:at._loadedRoutes,injector:at._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(at);const pn=function xa(Te,ft,Be,at){return et(Te.loadChildren()).pipe((0,R.T)(Vi),(0,G.ZZ)(jt=>jt instanceof n.Co$||Array.isArray(jt)?(0,S.of)(jt):(0,C.H)(ft.compileModuleAsync(jt))),(0,R.T)(jt=>{at&&at(Te);let pn,Xn,mi=!1;return Array.isArray(jt)?(Xn=jt,!0):(pn=jt.create(Be).injector,Xn=pn.get(lr,[],{optional:!0,self:!0}).flat()),{routes:Xn.map(co),injector:pn}}))}(at,this.compiler,Be,this.onLoadEndListener).pipe((0,Qe.j)(()=>{this.childrenLoaders.delete(at)})),Xn=new u.G(pn,()=>new v.B7).pipe((0,ct.B)());return this.childrenLoaders.set(at,Xn),Xn}static{this.\u0275fac=function(at){return new(at||Te)}}static{this.\u0275prov=n.jDH({token:Te,factory:Te.\u0275fac,providedIn:"root"})}}return Te})();function Vi(Te){return function ho(Te){return Te&&"object"==typeof Te&&"default"in Te}(Te)?Te.default:Te}let br=(()=>{class Te{static{this.\u0275fac=function(at){return new(at||Te)}}static{this.\u0275prov=n.jDH({token:Te,factory:()=>(0,n.WQX)(ya),providedIn:"root"})}}return Te})(),ya=(()=>{class Te{shouldProcessUrl(Be){return!0}extract(Be){return Be}merge(Be,at){return Be}static{this.\u0275fac=function(at){return new(at||Te)}}static{this.\u0275prov=n.jDH({token:Te,factory:Te.\u0275fac,providedIn:"root"})}}return Te})();const rs=new n.nKC(""),cl=new n.nKC("");function Ta(Te,ft,Be){const at=Te.get(cl),jt=Te.get(T.qQ);return Te.get(n.SKi).runOutsideAngular(()=>{if(!jt.startViewTransition||at.skipNextTransition)return at.skipNextTransition=!1,new Promise(_r=>setTimeout(_r));let pn;const Xn=new Promise(_r=>{pn=_r}),mi=jt.startViewTransition(()=>(pn(),function pl(Te){return new Promise(ft=>{(0,n.mal)(ft,{injector:Te})})}(Te))),{onViewTransitionCreated:Ci}=at;return Ci&&(0,n.N4e)(Te,()=>Ci({transition:mi,from:ft,to:Be})),Xn})}let io=(()=>{class Te{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new v.B7,this.transitionAbortSubject=new v.B7,this.configLoader=(0,n.WQX)(zs),this.environmentInjector=(0,n.WQX)(n.uvJ),this.urlSerializer=(0,n.WQX)(At),this.rootContexts=(0,n.WQX)(vo),this.location=(0,n.WQX)(T.aZ),this.inputBindingEnabled=null!==(0,n.WQX)(eo,{optional:!0}),this.titleStrategy=(0,n.WQX)(rl),this.options=(0,n.WQX)(Os,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=(0,n.WQX)(br),this.createViewTransition=(0,n.WQX)(rs,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>(0,S.of)(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=jt=>this.events.next(new qr(jt)),this.configLoader.onLoadStartListener=jt=>this.events.next(new mr(jt))}complete(){this.transitions?.complete()}handleNavigationRequest(Be){const at=++this.navigationId;this.transitions?.next({...this.transitions.value,...Be,id:at})}setupNavigations(Be,at,jt){return this.transitions=new M.t({id:0,currentUrlTree:at,currentRawUrl:at,extractedUrl:this.urlHandlingStrategy.extract(at),urlAfterRedirects:this.urlHandlingStrategy.extract(at),rawUrl:at,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:Zn,restoredState:null,currentSnapshot:jt.snapshot,targetSnapshot:null,currentRouterState:jt,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe((0,ae.p)(pn=>0!==pn.id),(0,R.T)(pn=>({...pn,extractedUrl:this.urlHandlingStrategy.extract(pn.rawUrl)})),(0,B.n)(pn=>{let Xn=!1,mi=!1;return(0,S.of)(pn).pipe((0,B.n)(Ci=>{if(this.navigationId>pn.id)return this.cancelNavigationTransition(pn,"",Br.SupersededByNewNavigation),r.w;this.currentTransition=pn,this.currentNavigation={id:Ci.id,initialUrl:Ci.rawUrl,extractedUrl:Ci.extractedUrl,trigger:Ci.source,extras:Ci.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null};const _r=!Be.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl();if(!_r&&"reload"!==(Ci.extras.onSameUrlNavigation??Be.onSameUrlNavigation)){const Pt="";return this.events.next(new bs(Ci.id,this.urlSerializer.serialize(Ci.rawUrl),Pt,Sr.IgnoredSameUrlNavigation)),Ci.resolve(null),r.w}if(this.urlHandlingStrategy.shouldProcessUrl(Ci.rawUrl))return(0,S.of)(Ci).pipe((0,B.n)(Pt=>{const Re=this.transitions?.getValue();return this.events.next(new tr(Pt.id,this.urlSerializer.serialize(Pt.extractedUrl),Pt.source,Pt.restoredState)),Re!==this.transitions?.getValue()?r.w:Promise.resolve(Pt)}),function ao(Te,ft,Be,at,jt,pn){return(0,G.ZZ)(Xn=>function za(Te,ft,Be,at,jt,pn,Xn="emptyOnly"){return new li(Te,ft,Be,at,jt,Xn,pn).recognize()}(Te,ft,Be,at,Xn.extractedUrl,jt,pn).pipe((0,R.T)(({state:mi,tree:Ci})=>({...Xn,targetSnapshot:mi,urlAfterRedirects:Ci}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,Be.config,this.urlSerializer,this.paramsInheritanceStrategy),(0,q.M)(Pt=>{pn.targetSnapshot=Pt.targetSnapshot,pn.urlAfterRedirects=Pt.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:Pt.urlAfterRedirects};const Re=new zn(Pt.id,this.urlSerializer.serialize(Pt.extractedUrl),this.urlSerializer.serialize(Pt.urlAfterRedirects),Pt.targetSnapshot);this.events.next(Re)}));if(_r&&this.urlHandlingStrategy.shouldProcessUrl(Ci.currentRawUrl)){const{id:Pt,extractedUrl:Re,source:rn,restoredState:an,extras:Hn}=Ci,xi=new tr(Pt,this.urlSerializer.serialize(Re),rn,an);this.events.next(xi);const yr=So(this.rootComponentType).snapshot;return this.currentTransition=pn={...Ci,targetSnapshot:yr,urlAfterRedirects:Re,extras:{...Hn,skipLocationChange:!1,replaceUrl:!1}},this.currentNavigation.finalUrl=Re,(0,S.of)(pn)}{const Pt="";return this.events.next(new bs(Ci.id,this.urlSerializer.serialize(Ci.extractedUrl),Pt,Sr.IgnoredByUrlHandlingStrategy)),Ci.resolve(null),r.w}}),(0,q.M)(Ci=>{const _r=new Jn(Ci.id,this.urlSerializer.serialize(Ci.extractedUrl),this.urlSerializer.serialize(Ci.urlAfterRedirects),Ci.targetSnapshot);this.events.next(_r)}),(0,R.T)(Ci=>(this.currentTransition=pn={...Ci,guards:_a(Ci.targetSnapshot,Ci.currentSnapshot,this.rootContexts)},pn)),function Yr(Te,ft){return(0,G.ZZ)(Be=>{const{targetSnapshot:at,currentSnapshot:jt,guards:{canActivateChecks:pn,canDeactivateChecks:Xn}}=Be;return 0===Xn.length&&0===pn.length?(0,S.of)({...Be,guardsResult:!0}):function _s(Te,ft,Be,at){return(0,C.H)(Te).pipe((0,G.ZZ)(jt=>function vl(Te,ft,Be,at,jt){const pn=ft&&ft.routeConfig?ft.routeConfig.canDeactivate:null;if(!pn||0===pn.length)return(0,S.of)(!0);const Xn=pn.map(mi=>{const Ci=Sn(ft)??jt,_r=Ae(mi,Ci);return et(function on(Te){return Te&&Ao(Te.canDeactivate)}(_r)?_r.canDeactivate(Te,ft,Be,at):(0,n.N4e)(Ci,()=>_r(Te,ft,Be,at))).pipe((0,k.$)())});return(0,S.of)(Xn).pipe(qn())}(jt.component,jt.route,Be,ft,at)),(0,k.$)(jt=>!0!==jt,!0))}(Xn,at,jt,Te).pipe((0,G.ZZ)(mi=>mi&&function ps(Te){return"boolean"==typeof Te}(mi)?function Do(Te,ft,Be,at){return(0,C.H)(ft).pipe((0,X.H)(jt=>(0,A.x)(function Bi(Te,ft){return null!==Te&&ft&&ft(new ms(Te)),(0,S.of)(!0)}(jt.route.parent,at),function Ws(Te,ft){return null!==Te&&ft&&ft(new Qs(Te)),(0,S.of)(!0)}(jt.route,at),function Ea(Te,ft,Be){const at=ft[ft.length-1],pn=ft.slice(0,ft.length-1).reverse().map(Xn=>function zi(Te){const ft=Te.routeConfig?Te.routeConfig.canActivateChild:null;return ft&&0!==ft.length?{node:Te,guards:ft}:null}(Xn)).filter(Xn=>null!==Xn).map(Xn=>(0,g.v)(()=>{const mi=Xn.guards.map(Ci=>{const _r=Sn(Xn.node)??Be,ut=Ae(Ci,_r);return et(function ga(Te){return Te&&Ao(Te.canActivateChild)}(ut)?ut.canActivateChild(at,Te):(0,n.N4e)(_r,()=>ut(at,Te))).pipe((0,k.$)())});return(0,S.of)(mi).pipe(qn())}));return(0,S.of)(pn).pipe(qn())}(Te,jt.path,Be),function Di(Te,ft,Be){const at=ft.routeConfig?ft.routeConfig.canActivate:null;if(!at||0===at.length)return(0,S.of)(!0);const jt=at.map(pn=>(0,g.v)(()=>{const Xn=Sn(ft)??Be,mi=Ae(pn,Xn);return et(function al(Te){return Te&&Ao(Te.canActivate)}(mi)?mi.canActivate(ft,Te):(0,n.N4e)(Xn,()=>mi(ft,Te))).pipe((0,k.$)())}));return(0,S.of)(jt).pipe(qn())}(Te,jt.route,Be))),(0,k.$)(jt=>!0!==jt,!0))}(at,pn,Te,ft):(0,S.of)(mi)),(0,R.T)(mi=>({...Be,guardsResult:mi})))})}(this.environmentInjector,Ci=>this.events.next(Ci)),(0,q.M)(Ci=>{if(pn.guardsResult=Ci.guardsResult,Gi(Ci.guardsResult))throw Ro(0,Ci.guardsResult);const _r=new di(Ci.id,this.urlSerializer.serialize(Ci.extractedUrl),this.urlSerializer.serialize(Ci.urlAfterRedirects),Ci.targetSnapshot,!!Ci.guardsResult);this.events.next(_r)}),(0,ae.p)(Ci=>!!Ci.guardsResult||(this.cancelNavigationTransition(Ci,"",Br.GuardRejected),!1)),sa(Ci=>{if(Ci.guards.canActivateChecks.length)return(0,S.of)(Ci).pipe((0,q.M)(_r=>{const ut=new Oi(_r.id,this.urlSerializer.serialize(_r.extractedUrl),this.urlSerializer.serialize(_r.urlAfterRedirects),_r.targetSnapshot);this.events.next(ut)}),(0,B.n)(_r=>{let ut=!1;return(0,S.of)(_r).pipe(function Da(Te,ft){return(0,G.ZZ)(Be=>{const{targetSnapshot:at,guards:{canActivateChecks:jt}}=Be;if(!jt.length)return(0,S.of)(Be);const pn=new Set(jt.map(Ci=>Ci.route)),Xn=new Set;for(const Ci of pn)if(!Xn.has(Ci))for(const _r of Sl(Ci))Xn.add(_r);let mi=0;return(0,C.H)(Xn).pipe((0,X.H)(Ci=>pn.has(Ci)?function Vr(Te,ft,Be,at){const jt=Te.routeConfig,pn=Te._resolve;return void 0!==jt?.title&&!bo(jt)&&(pn[Ke]=jt.title),function Ca(Te,ft,Be,at){const jt=vt(Te);if(0===jt.length)return(0,S.of)({});const pn={};return(0,C.H)(jt).pipe((0,G.ZZ)(Xn=>function ua(Te,ft,Be,at){const jt=Sn(ft)??at,pn=Ae(Te,jt);return et(pn.resolve?pn.resolve(ft,Be):(0,n.N4e)(jt,()=>pn(ft,Be)))}(Te[Xn],ft,Be,at).pipe((0,k.$)(),(0,q.M)(mi=>{pn[Xn]=mi}))),(0,it.o)(1),(0,Fe.u)(pn),(0,Q.W)(Xn=>Mt(Xn)?r.w:(0,l.$)(Xn)))}(pn,Te,ft,at).pipe((0,R.T)(Xn=>(Te._resolvedData=Xn,Te.data=Mo(Te,Te.parent,Be).resolve,null)))}(Ci,at,Te,ft):(Ci.data=Mo(Ci,Ci.parent,Te).resolve,(0,S.of)(void 0))),(0,q.M)(()=>mi++),(0,it.o)(1),(0,G.ZZ)(Ci=>mi===Xn.size?(0,S.of)(Be):r.w))})}(this.paramsInheritanceStrategy,this.environmentInjector),(0,q.M)({next:()=>ut=!0,complete:()=>{ut||this.cancelNavigationTransition(_r,"",Br.NoDataFromResolver)}}))}),(0,q.M)(_r=>{const ut=new Wi(_r.id,this.urlSerializer.serialize(_r.extractedUrl),this.urlSerializer.serialize(_r.urlAfterRedirects),_r.targetSnapshot);this.events.next(ut)}))}),sa(Ci=>{const _r=ut=>{const Pt=[];ut.routeConfig?.loadComponent&&!ut.routeConfig._loadedComponent&&Pt.push(this.configLoader.loadComponent(ut.routeConfig).pipe((0,q.M)(Re=>{ut.component=Re}),(0,R.T)(()=>{})));for(const Re of ut.children)Pt.push(..._r(Re));return Pt};return(0,P.zV)(_r(Ci.targetSnapshot.root)).pipe((0,te.U)(null),(0,U.s)(1))}),sa(()=>this.afterPreactivation()),(0,B.n)(()=>{const{currentSnapshot:Ci,targetSnapshot:_r}=pn,ut=this.createViewTransition?.(this.environmentInjector,Ci.root,_r.root);return ut?(0,C.H)(ut).pipe((0,R.T)(()=>pn)):(0,S.of)(pn)}),(0,R.T)(Ci=>{const _r=function oa(Te,ft,Be){const at=ar(Te,ft._root,Be?Be._root:void 0);return new qs(at,ft)}(Be.routeReuseStrategy,Ci.targetSnapshot,Ci.currentRouterState);return this.currentTransition=pn={...Ci,targetRouterState:_r},this.currentNavigation.targetRouterState=_r,pn}),(0,q.M)(()=>{this.events.next(new Ur)}),((Te,ft,Be,at)=>(0,R.T)(jt=>(new $o(ft,jt.targetRouterState,jt.currentRouterState,Be,at).activate(Te),jt)))(this.rootContexts,Be.routeReuseStrategy,Ci=>this.events.next(Ci),this.inputBindingEnabled),(0,U.s)(1),(0,q.M)({next:Ci=>{Xn=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new qi(Ci.id,this.urlSerializer.serialize(Ci.extractedUrl),this.urlSerializer.serialize(Ci.urlAfterRedirects))),this.titleStrategy?.updateTitle(Ci.targetRouterState.snapshot),Ci.resolve(!0)},complete:()=>{Xn=!0}}),(0,Ge.Q)(this.transitionAbortSubject.pipe((0,q.M)(Ci=>{throw Ci}))),(0,Qe.j)(()=>{!Xn&&!mi&&this.cancelNavigationTransition(pn,"",Br.SupersededByNewNavigation),this.currentTransition?.id===pn.id&&(this.currentNavigation=null,this.currentTransition=null)}),(0,Q.W)(Ci=>{if(mi=!0,Ho(Ci))this.events.next(new ds(pn.id,this.urlSerializer.serialize(pn.extractedUrl),Ci.message,Ci.cancellationCode)),function Eo(Te){return Ho(Te)&&Gi(Te.url)}(Ci)?this.events.next(new vs(Ci.url)):pn.resolve(!1);else{this.events.next(new An(pn.id,this.urlSerializer.serialize(pn.extractedUrl),Ci,pn.targetSnapshot??void 0));try{pn.resolve(Be.errorHandler(Ci))}catch(_r){this.options.resolveNavigationPromiseOnError?pn.resolve(!1):pn.reject(_r)}}return r.w}))}))}cancelNavigationTransition(Be,at,jt){const pn=new ds(Be.id,this.urlSerializer.serialize(Be.extractedUrl),at,jt);this.events.next(pn),Be.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){return this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))).toString()!==this.currentTransition?.extractedUrl.toString()&&!this.currentTransition?.extras.skipLocationChange}static{this.\u0275fac=function(at){return new(at||Te)}}static{this.\u0275prov=n.jDH({token:Te,factory:Te.\u0275fac,providedIn:"root"})}}return Te})();function Fa(Te){return Te!==Zn}let Mr=(()=>{class Te{static{this.\u0275fac=function(at){return new(at||Te)}}static{this.\u0275prov=n.jDH({token:Te,factory:()=>(0,n.WQX)(_),providedIn:"root"})}}return Te})();class Ze{shouldDetach(ft){return!1}store(ft,Be){}shouldAttach(ft){return!1}retrieve(ft){return null}shouldReuseRoute(ft,Be){return ft.routeConfig===Be.routeConfig}}let _=(()=>{class Te extends Ze{static{this.\u0275fac=(()=>{let Be;return function(jt){return(Be||(Be=n.xGo(Te)))(jt||Te)}})()}static{this.\u0275prov=n.jDH({token:Te,factory:Te.\u0275fac,providedIn:"root"})}}return Te})(),D=(()=>{class Te{static{this.\u0275fac=function(at){return new(at||Te)}}static{this.\u0275prov=n.jDH({token:Te,factory:()=>(0,n.WQX)(I),providedIn:"root"})}}return Te})(),I=(()=>{class Te extends D{constructor(){super(...arguments),this.location=(0,n.WQX)(T.aZ),this.urlSerializer=(0,n.WQX)(At),this.options=(0,n.WQX)(Os,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=(0,n.WQX)(br),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new Ne,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=So(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return"computed"!==this.canceledNavigationResolution?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(Be){return this.location.subscribe(at=>{"popstate"===at.type&&Be(at.url,at.state)})}handleRouterEvent(Be,at){if(Be instanceof tr)this.stateMemento=this.createStateMemento();else if(Be instanceof bs)this.rawUrlTree=at.initialUrl;else if(Be instanceof zn){if("eager"===this.urlUpdateStrategy&&!at.extras.skipLocationChange){const jt=this.urlHandlingStrategy.merge(at.finalUrl,at.initialUrl);this.setBrowserUrl(jt,at)}}else Be instanceof Ur?(this.currentUrlTree=at.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(at.finalUrl,at.initialUrl),this.routerState=at.targetRouterState,"deferred"===this.urlUpdateStrategy&&(at.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,at))):Be instanceof ds&&(Be.code===Br.GuardRejected||Be.code===Br.NoDataFromResolver)?this.restoreHistory(at):Be instanceof An?this.restoreHistory(at,!0):Be instanceof qi&&(this.lastSuccessfulId=Be.id,this.currentPageId=this.browserPageId)}setBrowserUrl(Be,at){const jt=this.urlSerializer.serialize(Be);if(this.location.isCurrentPathEqualTo(jt)||at.extras.replaceUrl){const Xn={...at.extras.state,...this.generateNgRouterState(at.id,this.browserPageId)};this.location.replaceState(jt,"",Xn)}else{const pn={...at.extras.state,...this.generateNgRouterState(at.id,this.browserPageId+1)};this.location.go(jt,"",pn)}}restoreHistory(Be,at=!1){if("computed"===this.canceledNavigationResolution){const pn=this.currentPageId-this.browserPageId;0!==pn?this.location.historyGo(pn):this.currentUrlTree===Be.finalUrl&&0===pn&&(this.resetState(Be),this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(at&&this.resetState(Be),this.resetUrlToCurrentUrlTree())}resetState(Be){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,Be.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(Be,at){return"computed"===this.canceledNavigationResolution?{navigationId:Be,\u0275routerPageId:at}:{navigationId:Be}}static{this.\u0275fac=(()=>{let Be;return function(jt){return(Be||(Be=n.xGo(Te)))(jt||Te)}})()}static{this.\u0275prov=n.jDH({token:Te,factory:Te.\u0275fac,providedIn:"root"})}}return Te})();var j=function(Te){return Te[Te.COMPLETE=0]="COMPLETE",Te[Te.FAILED=1]="FAILED",Te[Te.REDIRECTING=2]="REDIRECTING",Te}(j||{});function pe(Te,ft){Te.events.pipe((0,ae.p)(Be=>Be instanceof qi||Be instanceof ds||Be instanceof An||Be instanceof bs),(0,R.T)(Be=>Be instanceof qi||Be instanceof bs?j.COMPLETE:Be instanceof ds&&(Be.code===Br.Redirect||Be.code===Br.SupersededByNewNavigation)?j.REDIRECTING:j.FAILED),(0,ae.p)(Be=>Be!==j.REDIRECTING),(0,U.s)(1)).subscribe(()=>{ft()})}function _e(Te){throw Te}const xe={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},He={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let ht=(()=>{class Te{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.isNgZoneEnabled=!1,this.console=(0,n.WQX)(n.H3F),this.stateManager=(0,n.WQX)(D),this.options=(0,n.WQX)(Os,{optional:!0})||{},this.pendingTasks=(0,n.WQX)(n.TgB),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=(0,n.WQX)(io),this.urlSerializer=(0,n.WQX)(At),this.location=(0,n.WQX)(T.aZ),this.urlHandlingStrategy=(0,n.WQX)(br),this._events=new v.B7,this.errorHandler=this.options.errorHandler||_e,this.navigated=!1,this.routeReuseStrategy=(0,n.WQX)(Mr),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=(0,n.WQX)(lr,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!(0,n.WQX)(eo,{optional:!0}),this.eventsSubscription=new E.y,this.isNgZoneEnabled=(0,n.WQX)(n.SKi)instanceof n.SKi&&n.SKi.isInAngularZone(),this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:Be=>{this.console.warn(Be)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){const Be=this.navigationTransitions.events.subscribe(at=>{try{const jt=this.navigationTransitions.currentTransition,pn=this.navigationTransitions.currentNavigation;if(null!==jt&&null!==pn)if(this.stateManager.handleRouterEvent(at,pn),at instanceof ds&&at.code!==Br.Redirect&&at.code!==Br.SupersededByNewNavigation)this.navigated=!0;else if(at instanceof qi)this.navigated=!0;else if(at instanceof vs){const Xn=this.urlHandlingStrategy.merge(at.url,jt.currentRawUrl),mi={info:jt.extras.info,skipLocationChange:jt.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Fa(jt.source)};this.scheduleNavigation(Xn,Zn,null,mi,{resolve:jt.resolve,reject:jt.reject,promise:jt.promise})}(function Gt(Te){return!(Te instanceof Ur||Te instanceof vs)})(at)&&this._events.next(at)}catch(jt){this.navigationTransitions.transitionAbortSubject.next(jt)}});this.eventsSubscription.add(Be)}resetRootComponentType(Be){this.routerState.root.component=Be,this.navigationTransitions.rootComponentType=Be}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Zn,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((Be,at)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(Be,"popstate",at)},0)})}navigateToSyncWithBrowser(Be,at,jt){const pn={replaceUrl:!0},Xn=jt?.navigationId?jt:null;if(jt){const Ci={...jt};delete Ci.navigationId,delete Ci.\u0275routerPageId,0!==Object.keys(Ci).length&&(pn.state=Ci)}const mi=this.parseUrl(Be);this.scheduleNavigation(mi,at,Xn,pn)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(Be){this.config=Be.map(co),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(Be,at={}){const{relativeTo:jt,queryParams:pn,fragment:Xn,queryParamsHandling:mi,preserveFragment:Ci}=at,_r=Ci?this.currentUrlTree.fragment:Xn;let Pt,ut=null;switch(mi){case"merge":ut={...this.currentUrlTree.queryParams,...pn};break;case"preserve":ut=this.currentUrlTree.queryParams;break;default:ut=pn||null}null!==ut&&(ut=this.removeEmptyProps(ut));try{Pt=Zi(jt?jt.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof Be[0]||!Be[0].startsWith("/"))&&(Be=[]),Pt=this.currentUrlTree.root}return Rn(Pt,Be,ut,_r??null)}navigateByUrl(Be,at={skipLocationChange:!1}){const jt=Gi(Be)?Be:this.parseUrl(Be),pn=this.urlHandlingStrategy.merge(jt,this.rawUrlTree);return this.scheduleNavigation(pn,Zn,null,at)}navigate(Be,at={skipLocationChange:!1}){return function yt(Te){for(let ft=0;ft<Te.length;ft++)if(null==Te[ft])throw new n.wOt(4008,!1)}(Be),this.navigateByUrl(this.createUrlTree(Be,at),at)}serializeUrl(Be){return this.urlSerializer.serialize(Be)}parseUrl(Be){try{return this.urlSerializer.parse(Be)}catch{return this.urlSerializer.parse("/")}}isActive(Be,at){let jt;if(jt=!0===at?{...xe}:!1===at?{...He}:at,Gi(Be))return be(this.currentUrlTree,Be,jt);const pn=this.parseUrl(Be);return be(this.currentUrlTree,pn,jt)}removeEmptyProps(Be){return Object.entries(Be).reduce((at,[jt,pn])=>(null!=pn&&(at[jt]=pn),at),{})}scheduleNavigation(Be,at,jt,pn,Xn){if(this.disposed)return Promise.resolve(!1);let mi,Ci,_r;Xn?(mi=Xn.resolve,Ci=Xn.reject,_r=Xn.promise):_r=new Promise((Pt,Re)=>{mi=Pt,Ci=Re});const ut=this.pendingTasks.add();return pe(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(ut))}),this.navigationTransitions.handleNavigationRequest({source:at,restoredState:jt,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:Be,extras:pn,resolve:mi,reject:Ci,promise:_r,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),_r.catch(Pt=>Promise.reject(Pt))}static{this.\u0275fac=function(at){return new(at||Te)}}static{this.\u0275prov=n.jDH({token:Te,factory:Te.\u0275fac,providedIn:"root"})}}return Te})(),$t=(()=>{class Te{constructor(Be,at,jt,pn,Xn,mi){this.router=Be,this.route=at,this.tabIndexAttribute=jt,this.renderer=pn,this.el=Xn,this.locationStrategy=mi,this.href=null,this.commands=null,this.onChanges=new v.B7,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;const Ci=Xn.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===Ci||"area"===Ci,this.isAnchorElement?this.subscription=Be.events.subscribe(_r=>{_r instanceof qi&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(Be){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",Be)}ngOnChanges(Be){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(Be){null!=Be?(this.commands=Array.isArray(Be)?Be:[Be],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(Be,at,jt,pn,Xn){const mi=this.urlTree;return!!(null===mi||this.isAnchorElement&&(0!==Be||at||jt||pn||Xn||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(mi,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){const Be=this.urlTree;this.href=null!==Be&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(Be)):null;const at=null===this.href?null:(0,n.n$t)(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",at)}applyAttributeValue(Be,at){const jt=this.renderer,pn=this.el.nativeElement;null!==at?jt.setAttribute(pn,Be,at):jt.removeAttribute(pn,Be)}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static{this.\u0275fac=function(at){return new(at||Te)(n.rXU(ht),n.rXU(Go),n.kS0("tabindex"),n.rXU(n.sFG),n.rXU(n.aKT),n.rXU(T.hb))}}static{this.\u0275dir=n.FsC({type:Te,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(at,jt){1&at&&n.bIt("click",function(Xn){return jt.onClick(Xn.button,Xn.ctrlKey,Xn.shiftKey,Xn.altKey,Xn.metaKey)}),2&at&&n.BMQ("target",jt.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[n.Mj6.HasDecoratorInputTransform,"preserveFragment","preserveFragment",n.L39],skipLocationChange:[n.Mj6.HasDecoratorInputTransform,"skipLocationChange","skipLocationChange",n.L39],replaceUrl:[n.Mj6.HasDecoratorInputTransform,"replaceUrl","replaceUrl",n.L39],routerLink:"routerLink"},standalone:!0,features:[n.GFd,n.OA$]})}}return Te})();class Tt{}let It=(()=>{class Te{constructor(Be,at,jt,pn,Xn){this.router=Be,this.injector=jt,this.preloadingStrategy=pn,this.loader=Xn}setUpPreloading(){this.subscription=this.router.events.pipe((0,ae.p)(Be=>Be instanceof qi),(0,X.H)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(Be,at){const jt=[];for(const pn of at){pn.providers&&!pn._injector&&(pn._injector=(0,n.Ol2)(pn.providers,Be,`Route: ${pn.path}`));const Xn=pn._injector??Be,mi=pn._loadedInjector??Xn;(pn.loadChildren&&!pn._loadedRoutes&&void 0===pn.canLoad||pn.loadComponent&&!pn._loadedComponent)&&jt.push(this.preloadConfig(Xn,pn)),(pn.children||pn._loadedRoutes)&&jt.push(this.processRoutes(mi,pn.children??pn._loadedRoutes))}return(0,C.H)(jt).pipe((0,nt.U)())}preloadConfig(Be,at){return this.preloadingStrategy.preload(at,()=>{let jt;jt=at.loadChildren&&void 0===at.canLoad?this.loader.loadChildren(Be,at):(0,S.of)(null);const pn=jt.pipe((0,G.ZZ)(Xn=>null===Xn?(0,S.of)(void 0):(at._loadedRoutes=Xn.routes,at._loadedInjector=Xn.injector,this.processRoutes(Xn.injector??Be,Xn.routes))));if(at.loadComponent&&!at._loadedComponent){const Xn=this.loader.loadComponent(at);return(0,C.H)([pn,Xn]).pipe((0,nt.U)())}return pn})}static{this.\u0275fac=function(at){return new(at||Te)(n.KVO(ht),n.KVO(n.Ql9),n.KVO(n.uvJ),n.KVO(Tt),n.KVO(zs))}}static{this.\u0275prov=n.jDH({token:Te,factory:Te.\u0275fac,providedIn:"root"})}}return Te})();const un=new n.nKC("");let xn=(()=>{class Te{constructor(Be,at,jt,pn,Xn={}){this.urlSerializer=Be,this.transitions=at,this.viewportScroller=jt,this.zone=pn,this.options=Xn,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},this.environmentInjector=(0,n.WQX)(n.uvJ),Xn.scrollPositionRestoration||="disabled",Xn.anchorScrolling||="disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(Be=>{Be instanceof tr?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=Be.navigationTrigger,this.restoredId=Be.restoredState?Be.restoredState.navigationId:0):Be instanceof qi?(this.lastId=Be.id,this.scheduleScrollEvent(Be,this.urlSerializer.parse(Be.urlAfterRedirects).fragment)):Be instanceof bs&&Be.code===Sr.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(Be,this.urlSerializer.parse(Be.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(Be=>{Be instanceof Ar&&(Be.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(Be.position):Be.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(Be.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(Be,at){var jt=this;this.zone.runOutsideAngular((0,i.A)(function*(){yield new Promise(pn=>{setTimeout(()=>{pn()}),(0,n.mal)(()=>{pn()},{injector:jt.environmentInjector})}),jt.zone.run(()=>{jt.transitions.events.next(new Ar(Be,"popstate"===jt.lastSource?jt.store[jt.restoredId]:null,at))})}))}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static{this.\u0275fac=function(at){n.QTQ()}}static{this.\u0275prov=n.jDH({token:Te,factory:Te.\u0275fac})}}return Te})();function ri(Te,ft){return{\u0275kind:Te,\u0275providers:ft}}function Nt(){const Te=(0,n.WQX)(n.zZn);return ft=>{const Be=Te.get(n.o8S);if(ft!==Be.components[0])return;const at=Te.get(ht),jt=Te.get(en);1===Te.get(vn)&&at.initialNavigation(),Te.get(Wn,null,n.$GK.Optional)?.setUpPreloading(),Te.get(un,null,n.$GK.Optional)?.init(),at.resetRootComponentType(Be.componentTypes[0]),jt.closed||(jt.next(),jt.complete(),jt.unsubscribe())}}const en=new n.nKC("",{factory:()=>new v.B7}),vn=new n.nKC("",{providedIn:"root",factory:()=>1}),Wn=new n.nKC("");function gi(Te){return ri(0,[{provide:Wn,useExisting:It},{provide:Tt,useExisting:Te}])}function pr(Te){return ri(9,[{provide:rs,useValue:Ta},{provide:cl,useValue:{skipNextTransition:!!Te?.skipInitialTransition,...Te}}])}const Qi=new n.nKC("ROUTER_FORROOT_GUARD"),Gr=[T.aZ,{provide:At,useClass:Vt},ht,vo,{provide:Go,useFactory:function Nn(Te){return Te.routerState.root},deps:[ht]},zs,[]];let vr=(()=>{class Te{constructor(Be){}static forRoot(Be,at){return{ngModule:Te,providers:[Gr,[],{provide:lr,multi:!0,useValue:Be},{provide:Qi,useFactory:Kr,deps:[[ht,new n.Xx1,new n.kdw]]},{provide:Os,useValue:at||{}},at?.useHash?{provide:T.hb,useClass:T.fw}:{provide:T.hb,useClass:T.Sm},{provide:un,useFactory:()=>{const Te=(0,n.WQX)(T.Xr),ft=(0,n.WQX)(n.SKi),Be=(0,n.WQX)(Os),at=(0,n.WQX)(io),jt=(0,n.WQX)(At);return Be.scrollOffset&&Te.setOffset(Be.scrollOffset),new xn(jt,at,Te,ft,Be)}},at?.preloadingStrategy?gi(at.preloadingStrategy).\u0275providers:[],at?.initialNavigation?Wr(at):[],at?.bindToComponentInputs?ri(8,[Ks,{provide:eo,useExisting:Ks}]).\u0275providers:[],at?.enableViewTransitions?pr().\u0275providers:[],[{provide:Qr,useFactory:Nt},{provide:n.iLQ,multi:!0,useExisting:Qr}]]}}static forChild(Be){return{ngModule:Te,providers:[{provide:lr,multi:!0,useValue:Be}]}}static{this.\u0275fac=function(at){return new(at||Te)(n.KVO(Qi,8))}}static{this.\u0275mod=n.$C({type:Te})}static{this.\u0275inj=n.G2t({})}}return Te})();function Kr(Te){return"guarded"}function Wr(Te){return["disabled"===Te.initialNavigation?ri(3,[{provide:n.hnV,multi:!0,useFactory:()=>{const ft=(0,n.WQX)(ht);return()=>{ft.setUpLocationChangeListener()}}},{provide:vn,useValue:2}]).\u0275providers:[],"enabledBlocking"===Te.initialNavigation?ri(2,[{provide:vn,useValue:0},{provide:n.hnV,multi:!0,deps:[n.zZn],useFactory:ft=>{const Be=ft.get(T.hj,Promise.resolve());return()=>Be.then(()=>new Promise(at=>{const jt=ft.get(ht),pn=ft.get(en);pe(jt,()=>{at(!0)}),ft.get(io).afterPreactivation=()=>(at(!0),pn.closed?(0,S.of)(void 0):pn),jt.initialNavigation()}))}}]).\u0275providers:[]]}const Qr=new n.nKC("")},96542:(St,z,s)=>{"use strict";s.d(z,{D9:()=>it,Wr:()=>l,c$:()=>te,h:()=>Fe});var i=s(58527),n=s(43848),h=s(39595),C=s(93181),S=s(69917),M=s(63997),P=s(65706),x=s(55833),A=s(83915),g=s(79539),m=s(72147);class l{}let r=(()=>{class Qe extends l{getTranslation(Ge){return(0,n.of)({})}static \u0275fac=(()=>{let Ge;return function(Je){return(Ge||(Ge=i.xGo(Qe)))(Je||Qe)}})();static \u0275prov=i.jDH({token:Qe,factory:Qe.\u0275fac})}return Qe})();class u{}let v=(()=>{class Qe{handle(Ge){return Ge.key}static \u0275fac=function(nt){return new(nt||Qe)};static \u0275prov=i.jDH({token:Qe,factory:Qe.\u0275fac})}return Qe})();function E(Qe,ct){if(Qe===ct)return!0;if(null===Qe||null===ct)return!1;if(Qe!=Qe&&ct!=ct)return!0;let Je,ze,Ke,Ge=typeof Qe;if(Ge==typeof ct&&"object"==Ge){if(!Array.isArray(Qe)){if(Array.isArray(ct))return!1;for(ze in Ke=Object.create(null),Qe){if(!E(Qe[ze],ct[ze]))return!1;Ke[ze]=!0}for(ze in ct)if(!(ze in Ke)&&typeof ct[ze]<"u")return!1;return!0}if(!Array.isArray(ct))return!1;if((Je=Qe.length)==ct.length){for(ze=0;ze<Je;ze++)if(!E(Qe[ze],ct[ze]))return!1;return!0}}return!1}function T(Qe){return typeof Qe<"u"&&null!==Qe}function R(Qe){return Qe&&"object"==typeof Qe&&!Array.isArray(Qe)}function B(Qe,ct){let Ge=Object.assign({},Qe);return R(Qe)&&R(ct)&&Object.keys(ct).forEach(nt=>{R(ct[nt])?nt in Qe?Ge[nt]=B(Qe[nt],ct[nt]):Object.assign(Ge,{[nt]:ct[nt]}):Object.assign(Ge,{[nt]:ct[nt]})}),Ge}class U{}let Y=(()=>{class Qe extends U{templateMatcher=/{{\s?([^{}\s]*)\s?}}/g;interpolate(Ge,nt){let Je;return Je="string"==typeof Ge?this.interpolateString(Ge,nt):"function"==typeof Ge?this.interpolateFunction(Ge,nt):Ge,Je}getValue(Ge,nt){let Je="string"==typeof nt?nt.split("."):[nt];nt="";do{nt+=Je.shift(),!T(Ge)||!T(Ge[nt])||"object"!=typeof Ge[nt]&&Je.length?Je.length?nt+=".":Ge=void 0:(Ge=Ge[nt],nt="")}while(Je.length);return Ge}interpolateFunction(Ge,nt){return Ge(nt)}interpolateString(Ge,nt){return nt?Ge.replace(this.templateMatcher,(Je,ze)=>{let Ke=this.getValue(nt,ze);return T(Ke)?Ke:Je}):Ge}static \u0275fac=(()=>{let Ge;return function(Je){return(Ge||(Ge=i.xGo(Qe)))(Je||Qe)}})();static \u0275prov=i.jDH({token:Qe,factory:Qe.\u0275fac})}return Qe})();class ae{}let G=(()=>{class Qe extends ae{compile(Ge,nt){return Ge}compileTranslations(Ge,nt){return Ge}static \u0275fac=(()=>{let Ge;return function(Je){return(Ge||(Ge=i.xGo(Qe)))(Je||Qe)}})();static \u0275prov=i.jDH({token:Qe,factory:Qe.\u0275fac})}return Qe})();class k{defaultLang;currentLang=this.defaultLang;translations={};langs=[];onTranslationChange=new i.bkB;onLangChange=new i.bkB;onDefaultLangChange=new i.bkB}const X=new i.nKC("USE_STORE"),q=new i.nKC("USE_DEFAULT_LANG"),Q=new i.nKC("DEFAULT_LANGUAGE"),ce=new i.nKC("USE_EXTEND");let te=(()=>{class Qe{store;currentLoader;compiler;parser;missingTranslationHandler;useDefaultLang;isolate;extend;loadingTranslations;pending=!1;_onTranslationChange=new i.bkB;_onLangChange=new i.bkB;_onDefaultLangChange=new i.bkB;_defaultLang;_currentLang;_langs=[];_translations={};_translationRequests={};get onTranslationChange(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}get onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get onDefaultLangChange(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set defaultLang(Ge){this.isolate?this._defaultLang=Ge:this.store.defaultLang=Ge}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(Ge){this.isolate?this._currentLang=Ge:this.store.currentLang=Ge}get langs(){return this.isolate?this._langs:this.store.langs}set langs(Ge){this.isolate?this._langs=Ge:this.store.langs=Ge}get translations(){return this.isolate?this._translations:this.store.translations}set translations(Ge){this.isolate?this._translations=Ge:this.store.translations=Ge}constructor(Ge,nt,Je,ze,Ke,Ve=!0,$e=!1,dt=!1,Pe){this.store=Ge,this.currentLoader=nt,this.compiler=Je,this.parser=ze,this.missingTranslationHandler=Ke,this.useDefaultLang=Ve,this.isolate=$e,this.extend=dt,Pe&&this.setDefaultLang(Pe)}setDefaultLang(Ge){if(Ge===this.defaultLang)return;let nt=this.retrieveTranslations(Ge);typeof nt<"u"?(null==this.defaultLang&&(this.defaultLang=Ge),nt.pipe((0,P.s)(1)).subscribe(Je=>{this.changeDefaultLang(Ge)})):this.changeDefaultLang(Ge)}getDefaultLang(){return this.defaultLang}use(Ge){if(Ge===this.currentLang)return(0,n.of)(this.translations[Ge]);let nt=this.retrieveTranslations(Ge);return typeof nt<"u"?(this.currentLang||(this.currentLang=Ge),nt.pipe((0,P.s)(1)).subscribe(Je=>{this.changeLang(Ge)}),nt):(this.changeLang(Ge),(0,n.of)(this.translations[Ge]))}retrieveTranslations(Ge){let nt;return(typeof this.translations[Ge]>"u"||this.extend)&&(this._translationRequests[Ge]=this._translationRequests[Ge]||this.getTranslation(Ge),nt=this._translationRequests[Ge]),nt}getTranslation(Ge){this.pending=!0;const nt=this.currentLoader.getTranslation(Ge).pipe((0,x.t)(1),(0,P.s)(1));return this.loadingTranslations=nt.pipe((0,A.T)(Je=>this.compiler.compileTranslations(Je,Ge)),(0,x.t)(1),(0,P.s)(1)),this.loadingTranslations.subscribe({next:Je=>{this.translations[Ge]=this.extend&&this.translations[Ge]?{...Je,...this.translations[Ge]}:Je,this.updateLangs(),this.pending=!1},error:Je=>{this.pending=!1}}),nt}setTranslation(Ge,nt,Je=!1){nt=this.compiler.compileTranslations(nt,Ge),this.translations[Ge]=(Je||this.extend)&&this.translations[Ge]?B(this.translations[Ge],nt):nt,this.updateLangs(),this.onTranslationChange.emit({lang:Ge,translations:this.translations[Ge]})}getLangs(){return this.langs}addLangs(Ge){Ge.forEach(nt=>{-1===this.langs.indexOf(nt)&&this.langs.push(nt)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(Ge,nt,Je){let ze;if(nt instanceof Array){let Ke={},Ve=!1;for(let $e of nt)Ke[$e]=this.getParsedResult(Ge,$e,Je),(0,h.A)(Ke[$e])&&(Ve=!0);if(Ve){const $e=nt.map(dt=>(0,h.A)(Ke[dt])?Ke[dt]:(0,n.of)(Ke[dt]));return(0,C.p)($e).pipe((0,A.T)(dt=>{let Pe={};return dt.forEach((J,vt)=>{Pe[nt[vt]]=J}),Pe}))}return Ke}if(Ge&&(ze=this.parser.interpolate(this.parser.getValue(Ge,nt),Je)),typeof ze>"u"&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(ze=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],nt),Je)),typeof ze>"u"){let Ke={key:nt,translateService:this};typeof Je<"u"&&(Ke.interpolateParams=Je),ze=this.missingTranslationHandler.handle(Ke)}return typeof ze<"u"?ze:nt}get(Ge,nt){if(!T(Ge)||!Ge.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe((0,g.H)(Je=>(Je=this.getParsedResult(Je,Ge,nt),(0,h.A)(Je)?Je:(0,n.of)(Je))));{let Je=this.getParsedResult(this.translations[this.currentLang],Ge,nt);return(0,h.A)(Je)?Je:(0,n.of)(Je)}}getStreamOnTranslationChange(Ge,nt){if(!T(Ge)||!Ge.length)throw new Error('Parameter "key" required');return(0,S.x)((0,M.v)(()=>this.get(Ge,nt)),this.onTranslationChange.pipe((0,m.n)(Je=>{const ze=this.getParsedResult(Je.translations,Ge,nt);return"function"==typeof ze.subscribe?ze:(0,n.of)(ze)})))}stream(Ge,nt){if(!T(Ge)||!Ge.length)throw new Error('Parameter "key" required');return(0,S.x)((0,M.v)(()=>this.get(Ge,nt)),this.onLangChange.pipe((0,m.n)(Je=>{const ze=this.getParsedResult(Je.translations,Ge,nt);return(0,h.A)(ze)?ze:(0,n.of)(ze)})))}instant(Ge,nt){if(!T(Ge)||!Ge.length)throw new Error('Parameter "key" required');let Je=this.getParsedResult(this.translations[this.currentLang],Ge,nt);if((0,h.A)(Je)){if(Ge instanceof Array){let ze={};return Ge.forEach((Ke,Ve)=>{ze[Ge[Ve]]=Ge[Ve]}),ze}return Ge}return Je}set(Ge,nt,Je=this.currentLang){this.translations[Je][Ge]=this.compiler.compile(nt,Je),this.updateLangs(),this.onTranslationChange.emit({lang:Je,translations:this.translations[Je]})}changeLang(Ge){this.currentLang=Ge,this.onLangChange.emit({lang:Ge,translations:this.translations[Ge]}),null==this.defaultLang&&this.changeDefaultLang(Ge)}changeDefaultLang(Ge){this.defaultLang=Ge,this.onDefaultLangChange.emit({lang:Ge,translations:this.translations[Ge]})}reloadLang(Ge){return this.resetLang(Ge),this.getTranslation(Ge)}resetLang(Ge){this._translationRequests[Ge]=void 0,this.translations[Ge]=void 0}getBrowserLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let Ge=window.navigator.languages?window.navigator.languages[0]:null;return Ge=Ge||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,typeof Ge>"u"?void 0:(-1!==Ge.indexOf("-")&&(Ge=Ge.split("-")[0]),-1!==Ge.indexOf("_")&&(Ge=Ge.split("_")[0]),Ge)}getBrowserCultureLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let Ge=window.navigator.languages?window.navigator.languages[0]:null;return Ge=Ge||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,Ge}static \u0275fac=function(nt){return new(nt||Qe)(i.KVO(k),i.KVO(l),i.KVO(ae),i.KVO(U),i.KVO(u),i.KVO(q),i.KVO(X),i.KVO(ce),i.KVO(Q))};static \u0275prov=i.jDH({token:Qe,factory:Qe.\u0275fac})}return Qe})(),it=(()=>{class Qe{translate;_ref;value="";lastKey=null;lastParams=[];onTranslationChange;onLangChange;onDefaultLangChange;constructor(Ge,nt){this.translate=Ge,this._ref=nt}updateValue(Ge,nt,Je){let ze=Ke=>{this.value=void 0!==Ke?Ke:Ge,this.lastKey=Ge,this._ref.markForCheck()};if(Je){let Ke=this.translate.getParsedResult(Je,Ge,nt);(0,h.A)(Ke.subscribe)?Ke.subscribe(ze):ze(Ke)}this.translate.get(Ge,nt).subscribe(ze)}transform(Ge,...nt){if(!Ge||!Ge.length)return Ge;if(E(Ge,this.lastKey)&&E(nt,this.lastParams))return this.value;let Je;if(T(nt[0])&&nt.length)if("string"==typeof nt[0]&&nt[0].length){let ze=nt[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{Je=JSON.parse(ze)}catch{throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${nt[0]}`)}}else"object"==typeof nt[0]&&!Array.isArray(nt[0])&&(Je=nt[0]);return this.lastKey=Ge,this.lastParams=nt,this.updateValue(Ge,Je),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(ze=>{this.lastKey&&ze.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(Ge,Je,ze.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(ze=>{this.lastKey&&(this.lastKey=null,this.updateValue(Ge,Je,ze.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(Ge,Je))})),this.value}_dispose(){typeof this.onTranslationChange<"u"&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),typeof this.onLangChange<"u"&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),typeof this.onDefaultLangChange<"u"&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}static \u0275fac=function(nt){return new(nt||Qe)(i.rXU(te,16),i.rXU(i.gRc,16))};static \u0275pipe=i.EJ8({name:"translate",type:Qe,pure:!1});static \u0275prov=i.jDH({token:Qe,factory:Qe.\u0275fac})}return Qe})(),Fe=(()=>{class Qe{static forRoot(Ge={}){return{ngModule:Qe,providers:[Ge.loader||{provide:l,useClass:r},Ge.compiler||{provide:ae,useClass:G},Ge.parser||{provide:U,useClass:Y},Ge.missingTranslationHandler||{provide:u,useClass:v},k,{provide:X,useValue:Ge.isolate},{provide:q,useValue:Ge.useDefaultLang},{provide:ce,useValue:Ge.extend},{provide:Q,useValue:Ge.defaultLanguage},te]}}static forChild(Ge={}){return{ngModule:Qe,providers:[Ge.loader||{provide:l,useClass:r},Ge.compiler||{provide:ae,useClass:G},Ge.parser||{provide:U,useClass:Y},Ge.missingTranslationHandler||{provide:u,useClass:v},{provide:X,useValue:Ge.isolate},{provide:q,useValue:Ge.useDefaultLang},{provide:ce,useValue:Ge.extend},{provide:Q,useValue:Ge.defaultLanguage},te]}}static \u0275fac=function(nt){return new(nt||Qe)};static \u0275mod=i.$C({type:Qe});static \u0275inj=i.G2t({})}return Qe})()},36243:(St,z,s)=>{"use strict";s.d(z,{c:()=>M,f:()=>P});var i=s(70650),n=s(58527),h=s(85667),C=s(74150);const S=["qrcElement"];let M=(()=>{class x{constructor(g,m){this.renderer=g,this.sanitizer=m,this.allowEmptyString=!1,this.colorDark="#000000ff",this.colorLight="#ffffffff",this.cssClass="qrcode",this.elementType="canvas",this.errorCorrectionLevel="M",this.margin=4,this.qrdata="",this.scale=4,this.width=10,this.qrCodeURL=new n.bkB,this.context=null}ngOnChanges(){var g=this;return(0,i.A)(function*(){yield g.createQRCode()})()}isValidQrCodeText(g){return!1===this.allowEmptyString?!(typeof g>"u"||""===g||"null"===g||null===g):!(typeof g>"u")}toDataURL(g){return new Promise((m,l)=>{(0,h.dY)(this.qrdata,g,(r,u)=>{r?l(r):m(u)})})}toCanvas(g,m){return new Promise((l,r)=>{(0,h.mo)(g,this.qrdata,m,u=>{u?r(u):l("success")})})}toSVG(g){return new Promise((m,l)=>{(0,h.toString)(this.qrdata,g,(r,u)=>{r?l(r):m(u)})})}renderElement(g){for(const m of this.qrcElement.nativeElement.childNodes)this.renderer.removeChild(this.qrcElement.nativeElement,m);this.renderer.appendChild(this.qrcElement.nativeElement,g)}createQRCode(){var g=this;return(0,i.A)(function*(){g.version&&g.version>40?(console.warn("[angularx-qrcode] max value for `version` is 40"),g.version=40):g.version&&g.version<1?(console.warn("[angularx-qrcode]`min value for `version` is 1"),g.version=1):void 0!==g.version&&isNaN(g.version)&&(console.warn("[angularx-qrcode] version should be a number, defaulting to auto."),g.version=void 0);try{if(!g.isValidQrCodeText(g.qrdata))throw new Error("[angularx-qrcode] Field `qrdata` is empty, set 'allowEmptyString=\"true\"' to overwrite this behaviour.");g.isValidQrCodeText(g.qrdata)&&""===g.qrdata&&(g.qrdata=" ");const m={color:{dark:g.colorDark,light:g.colorLight},errorCorrectionLevel:g.errorCorrectionLevel,margin:g.margin,scale:g.scale,version:g.version,width:g.width},l=g.imageSrc,r=g.imageHeight||40,u=g.imageWidth||40;switch(g.elementType){case"canvas":{const v=g.renderer.createElement("canvas");g.context=v.getContext("2d"),g.toCanvas(v,m).then(()=>{if(g.ariaLabel&&g.renderer.setAttribute(v,"aria-label",`${g.ariaLabel}`),g.title&&g.renderer.setAttribute(v,"title",`${g.title}`),l&&g.context){g.centerImage=new Image(u,r),l!==g.centerImage.src&&(g.centerImage.src=l),r!==g.centerImage.height&&(g.centerImage.height=r),u!==g.centerImage.width&&(g.centerImage.width=u);const E=g.centerImage;E&&(E.onload=()=>{g.context?.drawImage(E,v.width/2-u/2,v.height/2-r/2,u,r)})}g.renderElement(v),g.emitQRCodeURL(v)}).catch(E=>{console.error("[angularx-qrcode] canvas error:",E)});break}case"svg":{const v=g.renderer.createElement("div");g.toSVG(m).then(E=>{g.renderer.setProperty(v,"innerHTML",E);const T=v.firstChild;g.renderer.setAttribute(T,"height",`${g.width}`),g.renderer.setAttribute(T,"width",`${g.width}`),g.renderElement(T),g.emitQRCodeURL(T)}).catch(E=>{console.error("[angularx-qrcode] svg error:",E)});break}default:{const v=g.renderer.createElement("img");g.toDataURL(m).then(E=>{g.alt&&v.setAttribute("alt",g.alt),g.ariaLabel&&v.setAttribute("aria-label",g.ariaLabel),v.setAttribute("src",E),g.title&&v.setAttribute("title",g.title),g.renderElement(v),g.emitQRCodeURL(v)}).catch(E=>{console.error("[angularx-qrcode] img/url error:",E)})}}}catch(m){console.error("[angularx-qrcode] Error generating QR Code:",m.message)}})()}emitQRCodeURL(g){const m=g.constructor.name;if(m===SVGSVGElement.name){const u=new Blob([g.outerHTML],{type:"image/svg+xml"}),v=URL.createObjectURL(u),E=this.sanitizer.bypassSecurityTrustUrl(v);return void this.qrCodeURL.emit(E)}let l="";m===HTMLCanvasElement.name&&(l=g.toDataURL("image/png")),m===HTMLImageElement.name&&(l=g.src),fetch(l).then(r=>r.blob()).then(r=>URL.createObjectURL(r)).then(r=>this.sanitizer.bypassSecurityTrustUrl(r)).then(r=>{this.qrCodeURL.emit(r)}).catch(r=>{console.error("[angularx-qrcode] Error when fetching image/png URL: "+r)})}static{this.\u0275fac=function(m){return new(m||x)(n.rXU(n.sFG),n.rXU(C.up))}}static{this.\u0275cmp=n.VBU({type:x,selectors:[["qrcode"]],viewQuery:function(m,l){if(1&m&&n.GBs(S,7),2&m){let r;n.mGM(r=n.lsd())&&(l.qrcElement=r.first)}},inputs:{allowEmptyString:"allowEmptyString",colorDark:"colorDark",colorLight:"colorLight",cssClass:"cssClass",elementType:"elementType",errorCorrectionLevel:"errorCorrectionLevel",imageSrc:"imageSrc",imageHeight:"imageHeight",imageWidth:"imageWidth",margin:"margin",qrdata:"qrdata",scale:"scale",version:"version",width:"width",alt:"alt",ariaLabel:"ariaLabel",title:"title"},outputs:{qrCodeURL:"qrCodeURL"},features:[n.OA$],decls:2,vars:2,consts:[["qrcElement",""]],template:function(m,l){1&m&&n.nrm(0,"div",null,0),2&m&&n.HbH(l.cssClass)},encapsulation:2,changeDetection:0})}}return x})(),P=(()=>{class x{static{this.\u0275fac=function(m){return new(m||x)}}static{this.\u0275mod=n.$C({type:x})}static{this.\u0275inj=n.G2t({})}}return x})()},45889:(St,z,s)=>{"use strict";function i(Ve,$e,dt){Ve.prototype=$e.prototype=dt,dt.constructor=Ve}function n(Ve,$e){var dt=Object.create(Ve.prototype);for(var Pe in $e)dt[Pe]=$e[Pe];return dt}function h(){}s.d(z,{Ay:()=>Y,Qh:()=>X});var C=.7,S=1/C,M="\\s*([+-]?\\d+)\\s*",P="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",x="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",A=/^#([0-9a-f]{3,8})$/,g=new RegExp(`^rgb\\(${M},${M},${M}\\)$`),m=new RegExp(`^rgb\\(${x},${x},${x}\\)$`),l=new RegExp(`^rgba\\(${M},${M},${M},${P}\\)$`),r=new RegExp(`^rgba\\(${x},${x},${x},${P}\\)$`),u=new RegExp(`^hsl\\(${P},${x},${x}\\)$`),v=new RegExp(`^hsla\\(${P},${x},${x},${P}\\)$`),E={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 T(){return this.rgb().formatHex()}function U(){return this.rgb().formatRgb()}function Y(Ve){var $e,dt;return Ve=(Ve+"").trim().toLowerCase(),($e=A.exec(Ve))?(dt=$e[1].length,$e=parseInt($e[1],16),6===dt?ae($e):3===dt?new q($e>>8&15|$e>>4&240,$e>>4&15|240&$e,(15&$e)<<4|15&$e,1):8===dt?G($e>>24&255,$e>>16&255,$e>>8&255,(255&$e)/255):4===dt?G($e>>12&15|$e>>8&240,$e>>8&15|$e>>4&240,$e>>4&15|240&$e,((15&$e)<<4|15&$e)/255):null):($e=g.exec(Ve))?new q($e[1],$e[2],$e[3],1):($e=m.exec(Ve))?new q(255*$e[1]/100,255*$e[2]/100,255*$e[3]/100,1):($e=l.exec(Ve))?G($e[1],$e[2],$e[3],$e[4]):($e=r.exec(Ve))?G(255*$e[1]/100,255*$e[2]/100,255*$e[3]/100,$e[4]):($e=u.exec(Ve))?Qe($e[1],$e[2]/100,$e[3]/100,1):($e=v.exec(Ve))?Qe($e[1],$e[2]/100,$e[3]/100,$e[4]):E.hasOwnProperty(Ve)?ae(E[Ve]):"transparent"===Ve?new q(NaN,NaN,NaN,0):null}function ae(Ve){return new q(Ve>>16&255,Ve>>8&255,255&Ve,1)}function G(Ve,$e,dt,Pe){return Pe<=0&&(Ve=$e=dt=NaN),new q(Ve,$e,dt,Pe)}function X(Ve,$e,dt,Pe){return 1===arguments.length?function k(Ve){return Ve instanceof h||(Ve=Y(Ve)),Ve?new q((Ve=Ve.rgb()).r,Ve.g,Ve.b,Ve.opacity):new q}(Ve):new q(Ve,$e,dt,Pe??1)}function q(Ve,$e,dt,Pe){this.r=+Ve,this.g=+$e,this.b=+dt,this.opacity=+Pe}function Q(){return`#${Fe(this.r)}${Fe(this.g)}${Fe(this.b)}`}function te(){const Ve=Ee(this.opacity);return`${1===Ve?"rgb(":"rgba("}${it(this.r)}, ${it(this.g)}, ${it(this.b)}${1===Ve?")":`, ${Ve})`}`}function Ee(Ve){return isNaN(Ve)?1:Math.max(0,Math.min(1,Ve))}function it(Ve){return Math.max(0,Math.min(255,Math.round(Ve)||0))}function Fe(Ve){return((Ve=it(Ve))<16?"0":"")+Ve.toString(16)}function Qe(Ve,$e,dt,Pe){return Pe<=0?Ve=$e=dt=NaN:dt<=0||dt>=1?Ve=$e=NaN:$e<=0&&(Ve=NaN),new nt(Ve,$e,dt,Pe)}function ct(Ve){if(Ve instanceof nt)return new nt(Ve.h,Ve.s,Ve.l,Ve.opacity);if(Ve instanceof h||(Ve=Y(Ve)),!Ve)return new nt;if(Ve instanceof nt)return Ve;var $e=(Ve=Ve.rgb()).r/255,dt=Ve.g/255,Pe=Ve.b/255,J=Math.min($e,dt,Pe),vt=Math.max($e,dt,Pe),ve=NaN,ue=vt-J,et=(vt+J)/2;return ue?(ve=$e===vt?(dt-Pe)/ue+6*(dt<Pe):dt===vt?(Pe-$e)/ue+2:($e-dt)/ue+4,ue/=et<.5?vt+J:2-vt-J,ve*=60):ue=et>0&&et<1?0:ve,new nt(ve,ue,et,Ve.opacity)}function nt(Ve,$e,dt,Pe){this.h=+Ve,this.s=+$e,this.l=+dt,this.opacity=+Pe}function Je(Ve){return(Ve=(Ve||0)%360)<0?Ve+360:Ve}function ze(Ve){return Math.max(0,Math.min(1,Ve||0))}function Ke(Ve,$e,dt){return 255*(Ve<60?$e+(dt-$e)*Ve/60:Ve<180?dt:Ve<240?$e+(dt-$e)*(240-Ve)/60:$e)}i(h,Y,{copy(Ve){return Object.assign(new this.constructor,this,Ve)},displayable(){return this.rgb().displayable()},hex:T,formatHex:T,formatHex8:function R(){return this.rgb().formatHex8()},formatHsl:function B(){return ct(this).formatHsl()},formatRgb:U,toString:U}),i(q,X,n(h,{brighter(Ve){return Ve=null==Ve?S:Math.pow(S,Ve),new q(this.r*Ve,this.g*Ve,this.b*Ve,this.opacity)},darker(Ve){return Ve=null==Ve?C:Math.pow(C,Ve),new q(this.r*Ve,this.g*Ve,this.b*Ve,this.opacity)},rgb(){return this},clamp(){return new q(it(this.r),it(this.g),it(this.b),Ee(this.opacity))},displayable(){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:Q,formatHex:Q,formatHex8:function ce(){return`#${Fe(this.r)}${Fe(this.g)}${Fe(this.b)}${Fe(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:te,toString:te})),i(nt,function Ge(Ve,$e,dt,Pe){return 1===arguments.length?ct(Ve):new nt(Ve,$e,dt,Pe??1)},n(h,{brighter(Ve){return Ve=null==Ve?S:Math.pow(S,Ve),new nt(this.h,this.s,this.l*Ve,this.opacity)},darker(Ve){return Ve=null==Ve?C:Math.pow(C,Ve),new nt(this.h,this.s,this.l*Ve,this.opacity)},rgb(){var Ve=this.h%360+360*(this.h<0),$e=isNaN(Ve)||isNaN(this.s)?0:this.s,dt=this.l,Pe=dt+(dt<.5?dt:1-dt)*$e,J=2*dt-Pe;return new q(Ke(Ve>=240?Ve-240:Ve+120,J,Pe),Ke(Ve,J,Pe),Ke(Ve<120?Ve+240:Ve-120,J,Pe),this.opacity)},clamp(){return new nt(Je(this.h),ze(this.s),ze(this.l),Ee(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const Ve=Ee(this.opacity);return`${1===Ve?"hsl(":"hsla("}${Je(this.h)}, ${100*ze(this.s)}%, ${100*ze(this.l)}%${1===Ve?")":`, ${Ve})`}`}}))},52056:(St,z,s)=>{"use strict";s.d(z,{A:()=>i});const i=n=>()=>n},30057:(St,z,s)=>{"use strict";function i(n,h){return n=+n,h=+h,function(C){return n*(1-C)+h*C}}s.d(z,{A:()=>i})},60196:(St,z,s)=>{"use strict";s.d(z,{Ay:()=>m});var i=s(45889);function n(v,E,T,R,B){var U=v*v,Y=U*v;return((1-3*v+3*U-Y)*E+(4-6*U+3*Y)*T+(1+3*v+3*U-3*Y)*R+Y*B)/6}var S=s(52056);function g(v,E){var T=E-v;return T?function M(v,E){return function(T){return v+T*E}}(v,T):(0,S.A)(isNaN(v)?E:v)}const m=function v(E){var T=function A(v){return 1==(v=+v)?g:function(E,T){return T-E?function P(v,E,T){return v=Math.pow(v,T),E=Math.pow(E,T)-v,T=1/T,function(R){return Math.pow(v+R*E,T)}}(E,T,v):(0,S.A)(isNaN(E)?T:E)}}(E);function R(B,U){var Y=T((B=(0,i.Qh)(B)).r,(U=(0,i.Qh)(U)).r),ae=T(B.g,U.g),G=T(B.b,U.b),k=g(B.opacity,U.opacity);return function(X){return B.r=Y(X),B.g=ae(X),B.b=G(X),B.opacity=k(X),B+""}}return R.gamma=v,R}(1);function l(v){return function(E){var Y,ae,T=E.length,R=new Array(T),B=new Array(T),U=new Array(T);for(Y=0;Y<T;++Y)ae=(0,i.Qh)(E[Y]),R[Y]=ae.r||0,B[Y]=ae.g||0,U[Y]=ae.b||0;return R=v(R),B=v(B),U=v(U),ae.opacity=1,function(G){return ae.r=R(G),ae.g=B(G),ae.b=U(G),ae+""}}}l(function h(v){var E=v.length-1;return function(T){var R=T<=0?T=0:T>=1?(T=1,E-1):Math.floor(T*E),B=v[R],U=v[R+1];return n((T-R/E)*E,R>0?v[R-1]:2*B-U,B,U,R<E-1?v[R+2]:2*U-B)}}),l(function C(v){var E=v.length;return function(T){var R=Math.floor(((T%=1)<0?++T:T)*E);return n((T-R/E)*E,v[(R+E-1)%E],v[R%E],v[(R+1)%E],v[(R+2)%E])}})},8437:(St,z,s)=>{"use strict";s.d(z,{A:()=>M});var i=s(30057),n=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,h=new RegExp(n.source,"g");function M(P,x){var g,m,l,A=n.lastIndex=h.lastIndex=0,r=-1,u=[],v=[];for(P+="",x+="";(g=n.exec(P))&&(m=h.exec(x));)(l=m.index)>A&&(l=x.slice(A,l),u[r]?u[r]+=l:u[++r]=l),(g=g[0])===(m=m[0])?u[r]?u[r]+=m:u[++r]=m:(u[++r]=null,v.push({i:r,x:(0,i.A)(g,m)})),A=h.lastIndex;return A<x.length&&(l=x.slice(A),u[r]?u[r]+=l:u[++r]=l),u.length<2?v[0]?function S(P){return function(x){return P(x)+""}}(v[0].x):function C(P){return function(){return P}}(x):(x=v.length,function(E){for(var R,T=0;T<x;++T)u[(R=v[T]).i]=R.x(E);return u.join("")})}},30325:(St,z,s)=>{"use strict";s.d(z,{A:()=>lt});const i=Math.sqrt(50),n=Math.sqrt(10),h=Math.sqrt(2);function C(Ue,wt,gt){const Ht=(wt-Ue)/Math.max(0,gt),bn=Math.floor(Math.log10(Ht)),Ut=Ht/Math.pow(10,bn),Bt=Ut>=i?10:Ut>=n?5:Ut>=h?2:1;let Le,V,de;return bn<0?(de=Math.pow(10,-bn)/Bt,Le=Math.round(Ue*de),V=Math.round(wt*de),Le/de<Ue&&++Le,V/de>wt&&--V,de=-de):(de=Math.pow(10,bn)*Bt,Le=Math.round(Ue/de),V=Math.round(wt/de),Le*de<Ue&&++Le,V*de>wt&&--V),V<Le&&.5<=gt&><2?C(Ue,wt,2*gt):[Le,V,de]}function M(Ue,wt,gt){return C(Ue=+Ue,wt=+wt,gt=+gt)[2]}function x(Ue,wt){return null==Ue||null==wt?NaN:Ue<wt?-1:Ue>wt?1:Ue>=wt?0:NaN}function A(Ue,wt){return null==Ue||null==wt?NaN:wt<Ue?-1:wt>Ue?1:wt>=Ue?0:NaN}function g(Ue){let wt,gt,Ht;function bn(Le,V,de=0,ge=Le.length){if(de<ge){if(0!==wt(V,V))return ge;do{const Ft=de+ge>>>1;gt(Le[Ft],V)<0?de=Ft+1:ge=Ft}while(de<ge)}return de}return 2!==Ue.length?(wt=x,gt=(Le,V)=>x(Ue(Le),V),Ht=(Le,V)=>Ue(Le)-V):(wt=Ue===x||Ue===A?Ue:m,gt=Ue,Ht=Ue),{left:bn,center:function Bt(Le,V,de=0,ge=Le.length){const Ft=bn(Le,V,de,ge-1);return Ft>de&&Ht(Le[Ft-1],V)>-Ht(Le[Ft],V)?Ft-1:Ft},right:function Ut(Le,V,de=0,ge=Le.length){if(de<ge){if(0!==wt(V,V))return ge;do{const Ft=de+ge>>>1;gt(Le[Ft],V)<=0?de=Ft+1:ge=Ft}while(de<ge)}return de}}}function m(){return 0}const v=g(x).right,R=(g(function l(Ue){return null===Ue?NaN:+Ue}),v);var B=s(45889),U=s(60196);function ae(Ue,wt){var Bt,gt=wt?wt.length:0,Ht=Ue?Math.min(gt,Ue.length):0,bn=new Array(Ht),Ut=new Array(gt);for(Bt=0;Bt<Ht;++Bt)bn[Bt]=Ee(Ue[Bt],wt[Bt]);for(;Bt<gt;++Bt)Ut[Bt]=wt[Bt];return function(Le){for(Bt=0;Bt<Ht;++Bt)Ut[Bt]=bn[Bt](Le);return Ut}}function G(Ue,wt){var gt=new Date;return Ue=+Ue,wt=+wt,function(Ht){return gt.setTime(Ue*(1-Ht)+wt*Ht),gt}}var k=s(30057);function X(Ue,wt){var bn,gt={},Ht={};for(bn in(null===Ue||"object"!=typeof Ue)&&(Ue={}),(null===wt||"object"!=typeof wt)&&(wt={}),wt)bn in Ue?gt[bn]=Ee(Ue[bn],wt[bn]):Ht[bn]=wt[bn];return function(Ut){for(bn in gt)Ht[bn]=gt[bn](Ut);return Ht}}var q=s(8437),Q=s(52056);function ce(Ue,wt){wt||(wt=[]);var bn,gt=Ue?Math.min(wt.length,Ue.length):0,Ht=wt.slice();return function(Ut){for(bn=0;bn<gt;++bn)Ht[bn]=Ue[bn]*(1-Ut)+wt[bn]*Ut;return Ht}}function Ee(Ue,wt){var Ht,gt=typeof wt;return null==wt||"boolean"===gt?(0,Q.A)(wt):("number"===gt?k.A:"string"===gt?(Ht=(0,B.Ay)(wt))?(wt=Ht,U.Ay):q.A:wt instanceof B.Ay?U.Ay:wt instanceof Date?G:function te(Ue){return ArrayBuffer.isView(Ue)&&!(Ue instanceof DataView)}(wt)?ce:Array.isArray(wt)?ae:"function"!=typeof wt.valueOf&&"function"!=typeof wt.toString||isNaN(wt)?X:k.A)(Ue,wt)}function it(Ue,wt){return Ue=+Ue,wt=+wt,function(gt){return Math.round(Ue*(1-gt)+wt*gt)}}function Qe(Ue){return+Ue}var ct=[0,1];function Ge(Ue){return Ue}function nt(Ue,wt){return(wt-=Ue=+Ue)?function(gt){return(gt-Ue)/wt}:function Fe(Ue){return function(){return Ue}}(isNaN(wt)?NaN:.5)}function ze(Ue,wt,gt){var Ht=Ue[0],bn=Ue[1],Ut=wt[0],Bt=wt[1];return bn<Ht?(Ht=nt(bn,Ht),Ut=gt(Bt,Ut)):(Ht=nt(Ht,bn),Ut=gt(Ut,Bt)),function(Le){return Ut(Ht(Le))}}function Ke(Ue,wt,gt){var Ht=Math.min(Ue.length,wt.length)-1,bn=new Array(Ht),Ut=new Array(Ht),Bt=-1;for(Ue[Ht]<Ue[0]&&(Ue=Ue.slice().reverse(),wt=wt.slice().reverse());++Bt<Ht;)bn[Bt]=nt(Ue[Bt],Ue[Bt+1]),Ut[Bt]=gt(wt[Bt],wt[Bt+1]);return function(Le){var V=R(Ue,Le,1,Ht)-1;return Ut[V](bn[V](Le))}}function Pe(Ue,wt){switch(arguments.length){case 0:break;case 1:this.range(Ue);break;default:this.range(wt).domain(Ue)}return this}var Xe,vt=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function ve(Ue){if(!(wt=vt.exec(Ue)))throw new Error("invalid format: "+Ue);var wt;return new ue({fill:wt[1],align:wt[2],sign:wt[3],symbol:wt[4],zero:wt[5],width:wt[6],comma:wt[7],precision:wt[8]&&wt[8].slice(1),trim:wt[9],type:wt[10]})}function ue(Ue){this.fill=void 0===Ue.fill?" ":Ue.fill+"",this.align=void 0===Ue.align?">":Ue.align+"",this.sign=void 0===Ue.sign?"-":Ue.sign+"",this.symbol=void 0===Ue.symbol?"":Ue.symbol+"",this.zero=!!Ue.zero,this.width=void 0===Ue.width?void 0:+Ue.width,this.comma=!!Ue.comma,this.precision=void 0===Ue.precision?void 0:+Ue.precision,this.trim=!!Ue.trim,this.type=void 0===Ue.type?"":Ue.type+""}function se(Ue,wt){if((gt=(Ue=wt?Ue.toExponential(wt-1):Ue.toExponential()).indexOf("e"))<0)return null;var gt,Ht=Ue.slice(0,gt);return[Ht.length>1?Ht[0]+Ht.slice(2):Ht,+Ue.slice(gt+1)]}function Ce(Ue){return(Ue=se(Math.abs(Ue)))?Ue[1]:NaN}function fe(Ue,wt){var gt=se(Ue,wt);if(!gt)return Ue+"";var Ht=gt[0],bn=gt[1];return bn<0?"0."+new Array(-bn).join("0")+Ht:Ht.length>bn+1?Ht.slice(0,bn+1)+"."+Ht.slice(bn+1):Ht+new Array(bn-Ht.length+2).join("0")}ve.prototype=ue.prototype,ue.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};const Ne={"%":(Ue,wt)=>(100*Ue).toFixed(wt),b:Ue=>Math.round(Ue).toString(2),c:Ue=>Ue+"",d:function et(Ue){return Math.abs(Ue=Math.round(Ue))>=1e21?Ue.toLocaleString("en").replace(/,/g,""):Ue.toString(10)},e:(Ue,wt)=>Ue.toExponential(wt),f:(Ue,wt)=>Ue.toFixed(wt),g:(Ue,wt)=>Ue.toPrecision(wt),o:Ue=>Math.round(Ue).toString(8),p:(Ue,wt)=>fe(100*Ue,wt),r:fe,s:function Se(Ue,wt){var gt=se(Ue,wt);if(!gt)return Ue+"";var Ht=gt[0],bn=gt[1],Ut=bn-(Xe=3*Math.max(-8,Math.min(8,Math.floor(bn/3))))+1,Bt=Ht.length;return Ut===Bt?Ht:Ut>Bt?Ht+new Array(Ut-Bt+1).join("0"):Ut>0?Ht.slice(0,Ut)+"."+Ht.slice(Ut):"0."+new Array(1-Ut).join("0")+se(Ue,Math.max(0,wt+Ut-1))[0]},X:Ue=>Math.round(Ue).toString(16).toUpperCase(),x:Ue=>Math.round(Ue).toString(16)};function ye(Ue){return Ue}var yn,At,Vt,Ot=Array.prototype.map,sn=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function Xt(Ue){var wt=Ue.domain;return Ue.ticks=function(gt){var Ht=wt();return function S(Ue,wt,gt){if(!((gt=+gt)>0))return[];if((Ue=+Ue)==(wt=+wt))return[Ue];const Ht=wt<Ue,[bn,Ut,Bt]=Ht?C(wt,Ue,gt):C(Ue,wt,gt);if(!(Ut>=bn))return[];const Le=Ut-bn+1,V=new Array(Le);if(Ht)if(Bt<0)for(let de=0;de<Le;++de)V[de]=(Ut-de)/-Bt;else for(let de=0;de<Le;++de)V[de]=(Ut-de)*Bt;else if(Bt<0)for(let de=0;de<Le;++de)V[de]=(bn+de)/-Bt;else for(let de=0;de<Le;++de)V[de]=(bn+de)*Bt;return V}(Ht[0],Ht[Ht.length-1],gt??10)},Ue.tickFormat=function(gt,Ht){var bn=wt();return function nn(Ue,wt,gt,Ht){var Ut,bn=function P(Ue,wt,gt){gt=+gt;const Ht=(wt=+wt)<(Ue=+Ue),bn=Ht?M(wt,Ue,gt):M(Ue,wt,gt);return(Ht?-1:1)*(bn<0?1/-bn:bn)}(Ue,wt,gt);switch((Ht=ve(Ht??",f")).type){case"s":var Bt=Math.max(Math.abs(Ue),Math.abs(wt));return null==Ht.precision&&!isNaN(Ut=function be(Ue,wt){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Ce(wt)/3)))-Ce(Math.abs(Ue)))}(bn,Bt))&&(Ht.precision=Ut),Vt(Ht,Bt);case"":case"e":case"g":case"p":case"r":null==Ht.precision&&!isNaN(Ut=function Jt(Ue,wt){return Ue=Math.abs(Ue),wt=Math.abs(wt)-Ue,Math.max(0,Ce(wt)-Ce(Ue))+1}(bn,Math.max(Math.abs(Ue),Math.abs(wt))))&&(Ht.precision=Ut-("e"===Ht.type));break;case"f":case"%":null==Ht.precision&&!isNaN(Ut=function Zt(Ue){return Math.max(0,-Ce(Math.abs(Ue)))}(bn))&&(Ht.precision=Ut-2*("%"===Ht.type))}return At(Ht)}(bn[0],bn[bn.length-1],gt??10,Ht)},Ue.nice=function(gt){null==gt&&(gt=10);var V,de,Ht=wt(),bn=0,Ut=Ht.length-1,Bt=Ht[bn],Le=Ht[Ut],ge=10;for(Le<Bt&&(de=Bt,Bt=Le,Le=de,de=bn,bn=Ut,Ut=de);ge-- >0;){if((de=M(Bt,Le,gt))===V)return Ht[bn]=Bt,Ht[Ut]=Le,wt(Ht);if(de>0)Bt=Math.floor(Bt/de)*de,Le=Math.ceil(Le/de)*de;else{if(!(de<0))break;Bt=Math.ceil(Bt*de)/de,Le=Math.floor(Le*de)/de}V=de}return Ue},Ue}function lt(){var Ue=function dt(){return function $e(){var Ht,bn,Ut,Le,V,de,Ue=ct,wt=ct,gt=Ee,Bt=Ge;function ge(){var Wt=Math.min(Ue.length,wt.length);return Bt!==Ge&&(Bt=function Je(Ue,wt){var gt;return Ue>wt&&(gt=Ue,Ue=wt,wt=gt),function(Ht){return Math.max(Ue,Math.min(wt,Ht))}}(Ue[0],Ue[Wt-1])),Le=Wt>2?Ke:ze,V=de=null,Ft}function Ft(Wt){return null==Wt||isNaN(Wt=+Wt)?Ut:(V||(V=Le(Ue.map(Ht),wt,gt)))(Ht(Bt(Wt)))}return Ft.invert=function(Wt){return Bt(bn((de||(de=Le(wt,Ue.map(Ht),k.A)))(Wt)))},Ft.domain=function(Wt){return arguments.length?(Ue=Array.from(Wt,Qe),ge()):Ue.slice()},Ft.range=function(Wt){return arguments.length?(wt=Array.from(Wt),ge()):wt.slice()},Ft.rangeRound=function(Wt){return wt=Array.from(Wt),gt=it,ge()},Ft.clamp=function(Wt){return arguments.length?(Bt=!!Wt||Ge,ge()):Bt!==Ge},Ft.interpolate=function(Wt){return arguments.length?(gt=Wt,ge()):gt},Ft.unknown=function(Wt){return arguments.length?(Ut=Wt,Ft):Ut},function(Wt,Kt){return Ht=Wt,bn=Kt,ge()}}()(Ge,Ge)}();return Ue.copy=function(){return function Ve(Ue,wt){return wt.domain(Ue.domain()).range(Ue.range()).interpolate(Ue.interpolate()).clamp(Ue.clamp()).unknown(Ue.unknown())}(Ue,lt())},Pe.apply(Ue,arguments),Xt(Ue)}!function Qt(Ue){yn=function dn(Ue){var wt=void 0===Ue.grouping||void 0===Ue.thousands?ye:function rt(Ue,wt){return function(gt,Ht){for(var bn=gt.length,Ut=[],Bt=0,Le=Ue[0],V=0;bn>0&&Le>0&&(V+Le+1>Ht&&(Le=Math.max(1,Ht-V)),Ut.push(gt.substring(bn-=Le,bn+Le)),!((V+=Le+1)>Ht));)Le=Ue[Bt=(Bt+1)%Ue.length];return Ut.reverse().join(wt)}}(Ot.call(Ue.grouping,Number),Ue.thousands+""),gt=void 0===Ue.currency?"":Ue.currency[0]+"",Ht=void 0===Ue.currency?"":Ue.currency[1]+"",bn=void 0===Ue.decimal?".":Ue.decimal+"",Ut=void 0===Ue.numerals?ye:function me(Ue){return function(wt){return wt.replace(/[0-9]/g,function(gt){return Ue[+gt]})}}(Ot.call(Ue.numerals,String)),Bt=void 0===Ue.percent?"%":Ue.percent+"",Le=void 0===Ue.minus?"\u2212":Ue.minus+"",V=void 0===Ue.nan?"NaN":Ue.nan+"";function de(Ft){var Wt=(Ft=ve(Ft)).fill,Kt=Ft.align,cn=Ft.sign,En=Ft.symbol,kn=Ft.zero,Ai=Ft.width,Gi=Ft.comma,bt=Ft.precision,Zi=Ft.trim,Rn=Ft.type;"n"===Rn?(Gi=!0,Rn="g"):Ne[Rn]||(void 0===bt&&(bt=12),Zi=!0,Rn="g"),(kn||"0"===Wt&&"="===Kt)&&(kn=!0,Wt="0",Kt="=");var Gn="$"===En?gt:"#"===En&&/[boxX]/.test(Rn)?"0"+Rn.toLowerCase():"",Kn="$"===En?Ht:/[%p]/.test(Rn)?Bt:"",Ni=Ne[Rn],ir=/[defgprs%]/.test(Rn);function Ir(hr){var lo,js,Vn,Ms=Gn,Pr=Kn;if("c"===Rn)Pr=Ni(hr)+Pr,hr="";else{var Ei=(hr=+hr)<0||1/hr<0;if(hr=isNaN(hr)?V:Ni(Math.abs(hr),bt),Zi&&(hr=function le(Ue){e:for(var bn,wt=Ue.length,gt=1,Ht=-1;gt<wt;++gt)switch(Ue[gt]){case".":Ht=bn=gt;break;case"0":0===Ht&&(Ht=gt),bn=gt;break;default:if(!+Ue[gt])break e;Ht>0&&(Ht=0)}return Ht>0?Ue.slice(0,Ht)+Ue.slice(bn+1):Ue}(hr)),Ei&&0==+hr&&"+"!==cn&&(Ei=!1),Ms=(Ei?"("===cn?cn:Le:"-"===cn||"("===cn?"":cn)+Ms,Pr=("s"===Rn?sn[8+Xe/3]:"")+Pr+(Ei&&"("===cn?")":""),ir)for(lo=-1,js=hr.length;++lo<js;)if(48>(Vn=hr.charCodeAt(lo))||Vn>57){Pr=(46===Vn?bn+hr.slice(lo+1):hr.slice(lo))+Pr,hr=hr.slice(0,lo);break}}Gi&&!kn&&(hr=wt(hr,1/0));var ai=Ms.length+hr.length+Pr.length,Li=ai<Ai?new Array(Ai-ai+1).join(Wt):"";switch(Gi&&kn&&(hr=wt(Li+hr,Li.length?Ai-Pr.length:1/0),Li=""),Kt){case"<":hr=Ms+hr+Pr+Li;break;case"=":hr=Ms+Li+hr+Pr;break;case"^":hr=Li.slice(0,ai=Li.length>>1)+Ms+hr+Pr+Li.slice(ai);break;default:hr=Li+Ms+hr+Pr}return Ut(hr)}return bt=void 0===bt?6:/[gprs]/.test(Rn)?Math.max(1,Math.min(21,bt)):Math.max(0,Math.min(20,bt)),Ir.toString=function(){return Ft+""},Ir}return{format:de,formatPrefix:function ge(Ft,Wt){var Kt=de(((Ft=ve(Ft)).type="f",Ft)),cn=3*Math.max(-8,Math.min(8,Math.floor(Ce(Wt)/3))),En=Math.pow(10,-cn),kn=sn[8+cn/3];return function(Ai){return Kt(En*Ai)+kn}}}}(Ue),At=yn.format,Vt=yn.formatPrefix}({thousands:",",grouping:[3],currency:["$",""]})},67431:(St,z,s)=>{"use strict";function i(ne,Ie){let _t=0;if(void 0===Ie)for(let Nt of ne)(Nt=+Nt)&&(_t+=Nt);else{let Nt=-1;for(let en of ne)(en=+Ie(en,++Nt,ne))&&(_t+=en)}return _t}function n(){}function h(ne){return null==ne?n:function(){return this.querySelector(ne)}}function M(){return[]}function P(ne){return null==ne?M:function(){return this.querySelectorAll(ne)}}function g(ne){return function(){return this.matches(ne)}}function m(ne){return function(Ie){return Ie.matches(ne)}}s.d(z,{$Er:()=>He,WnM:()=>Ta,Ltv:()=>rs,czq:()=>i,JWy:()=>tt});var l=Array.prototype.find;function u(){return this.firstElementChild}var E=Array.prototype.filter;function T(){return Array.from(this.children)}function Y(ne){return new Array(ne.length)}function G(ne,Ie){this.ownerDocument=ne.ownerDocument,this.namespaceURI=ne.namespaceURI,this._next=null,this._parent=ne,this.__data__=Ie}function X(ne,Ie,_t,Nt,en,vn){for(var Cn,fn=0,Tn=Ie.length,Wn=vn.length;fn<Wn;++fn)(Cn=Ie[fn])?(Cn.__data__=vn[fn],Nt[fn]=Cn):_t[fn]=new G(ne,vn[fn]);for(;fn<Tn;++fn)(Cn=Ie[fn])&&(en[fn]=Cn)}function q(ne,Ie,_t,Nt,en,vn,fn){var Cn,Tn,rr,Wn=new Map,gi=Ie.length,ln=vn.length,ki=new Array(gi);for(Cn=0;Cn<gi;++Cn)(Tn=Ie[Cn])&&(ki[Cn]=rr=fn.call(Tn,Tn.__data__,Cn,Ie)+"",Wn.has(rr)?en[Cn]=Tn:Wn.set(rr,Tn));for(Cn=0;Cn<ln;++Cn)rr=fn.call(ne,vn[Cn],Cn,vn)+"",(Tn=Wn.get(rr))?(Nt[Cn]=Tn,Tn.__data__=vn[Cn],Wn.delete(rr)):_t[Cn]=new G(ne,vn[Cn]);for(Cn=0;Cn<gi;++Cn)(Tn=Ie[Cn])&&Wn.get(ki[Cn])===Tn&&(en[Cn]=Tn)}function Q(ne){return ne.__data__}function te(ne){return"object"==typeof ne&&"length"in ne?ne:Array.from(ne)}function Ge(ne,Ie){return ne<Ie?-1:ne>Ie?1:ne>=Ie?0:NaN}G.prototype={constructor:G,appendChild:function(ne){return this._parent.insertBefore(ne,this._next)},insertBefore:function(ne,Ie){return this._parent.insertBefore(ne,Ie)},querySelector:function(ne){return this._parent.querySelector(ne)},querySelectorAll:function(ne){return this._parent.querySelectorAll(ne)}};var dt="http://www.w3.org/1999/xhtml";const Pe={svg:"http://www.w3.org/2000/svg",xhtml:dt,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function J(ne){var Ie=ne+="",_t=Ie.indexOf(":");return _t>=0&&"xmlns"!==(Ie=ne.slice(0,_t))&&(ne=ne.slice(_t+1)),Pe.hasOwnProperty(Ie)?{space:Pe[Ie],local:ne}:ne}function vt(ne){return function(){this.removeAttribute(ne)}}function ve(ne){return function(){this.removeAttributeNS(ne.space,ne.local)}}function ue(ne,Ie){return function(){this.setAttribute(ne,Ie)}}function et(ne,Ie){return function(){this.setAttributeNS(ne.space,ne.local,Ie)}}function se(ne,Ie){return function(){var _t=Ie.apply(this,arguments);null==_t?this.removeAttribute(ne):this.setAttribute(ne,_t)}}function Ce(ne,Ie){return function(){var _t=Ie.apply(this,arguments);null==_t?this.removeAttributeNS(ne.space,ne.local):this.setAttributeNS(ne.space,ne.local,_t)}}function rt(ne){return ne.ownerDocument&&ne.ownerDocument.defaultView||ne.document&&ne||ne.defaultView}function me(ne){return function(){this.style.removeProperty(ne)}}function le(ne,Ie,_t){return function(){this.style.setProperty(ne,Ie,_t)}}function Xe(ne,Ie,_t){return function(){var Nt=Ie.apply(this,arguments);null==Nt?this.style.removeProperty(ne):this.style.setProperty(ne,Nt,_t)}}function fe(ne,Ie){return ne.style.getPropertyValue(Ie)||rt(ne).getComputedStyle(ne,null).getPropertyValue(Ie)}function Ne(ne){return function(){delete this[ne]}}function ye(ne,Ie){return function(){this[ne]=Ie}}function Ot(ne,Ie){return function(){var _t=Ie.apply(this,arguments);null==_t?delete this[ne]:this[ne]=_t}}function dn(ne){return ne.trim().split(/^|\s+/)}function yn(ne){return ne.classList||new At(ne)}function At(ne){this._node=ne,this._names=dn(ne.getAttribute("class")||"")}function Vt(ne,Ie){for(var _t=yn(ne),Nt=-1,en=Ie.length;++Nt<en;)_t.add(Ie[Nt])}function Qt(ne,Ie){for(var _t=yn(ne),Nt=-1,en=Ie.length;++Nt<en;)_t.remove(Ie[Nt])}function Jt(ne){return function(){Vt(this,ne)}}function Zt(ne){return function(){Qt(this,ne)}}function nn(ne,Ie){return function(){(Ie.apply(this,arguments)?Vt:Qt)(this,ne)}}function lt(){this.textContent=""}function Ue(ne){return function(){this.textContent=ne}}function wt(ne){return function(){var Ie=ne.apply(this,arguments);this.textContent=Ie??""}}function Ht(){this.innerHTML=""}function bn(ne){return function(){this.innerHTML=ne}}function Ut(ne){return function(){var Ie=ne.apply(this,arguments);this.innerHTML=Ie??""}}function Le(){this.nextSibling&&this.parentNode.appendChild(this)}function de(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Ft(ne){return function(){var Ie=this.ownerDocument,_t=this.namespaceURI;return _t===dt&&Ie.documentElement.namespaceURI===dt?Ie.createElement(ne):Ie.createElementNS(_t,ne)}}function Wt(ne){return function(){return this.ownerDocument.createElementNS(ne.space,ne.local)}}function Kt(ne){var Ie=J(ne);return(Ie.local?Wt:Ft)(Ie)}function En(){return null}function Ai(){var ne=this.parentNode;ne&&ne.removeChild(this)}function bt(){var ne=this.cloneNode(!1),Ie=this.parentNode;return Ie?Ie.insertBefore(ne,this.nextSibling):ne}function Zi(){var ne=this.cloneNode(!0),Ie=this.parentNode;return Ie?Ie.insertBefore(ne,this.nextSibling):ne}function ir(ne){return function(){var Ie=this.__on;if(Ie){for(var vn,_t=0,Nt=-1,en=Ie.length;_t<en;++_t)vn=Ie[_t],ne.type&&vn.type!==ne.type||vn.name!==ne.name?Ie[++Nt]=vn:this.removeEventListener(vn.type,vn.listener,vn.options);++Nt?Ie.length=Nt:delete this.__on}}}function Ir(ne,Ie,_t){return function(){var en,Nt=this.__on,vn=function Kn(ne){return function(Ie){ne.call(this,Ie,this.__data__)}}(Ie);if(Nt)for(var fn=0,Cn=Nt.length;fn<Cn;++fn)if((en=Nt[fn]).type===ne.type&&en.name===ne.name)return this.removeEventListener(en.type,en.listener,en.options),this.addEventListener(en.type,en.listener=vn,en.options=_t),void(en.value=Ie);this.addEventListener(ne.type,vn,_t),en={type:ne.type,name:ne.name,value:Ie,listener:vn,options:_t},Nt?Nt.push(en):this.__on=[en]}}function Ms(ne,Ie,_t){var Nt=rt(ne),en=Nt.CustomEvent;"function"==typeof en?en=new en(Ie,_t):(en=Nt.document.createEvent("Event"),_t?(en.initEvent(Ie,_t.bubbles,_t.cancelable),en.detail=_t.detail):en.initEvent(Ie,!1,!1)),ne.dispatchEvent(en)}function Pr(ne,Ie){return function(){return Ms(this,ne,Ie)}}function lo(ne,Ie){return function(){return Ms(this,ne,Ie.apply(this,arguments))}}At.prototype={add:function(ne){this._names.indexOf(ne)<0&&(this._names.push(ne),this._node.setAttribute("class",this._names.join(" ")))},remove:function(ne){var Ie=this._names.indexOf(ne);Ie>=0&&(this._names.splice(Ie,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(ne){return this._names.indexOf(ne)>=0}};var Ei=[null];function ai(ne,Ie){this._groups=ne,this._parents=Ie}function Li(){return new ai([[document.documentElement]],Ei)}ai.prototype=Li.prototype={constructor:ai,select:function C(ne){"function"!=typeof ne&&(ne=h(ne));for(var Ie=this._groups,_t=Ie.length,Nt=new Array(_t),en=0;en<_t;++en)for(var Tn,Wn,vn=Ie[en],fn=vn.length,Cn=Nt[en]=new Array(fn),gi=0;gi<fn;++gi)(Tn=vn[gi])&&(Wn=ne.call(Tn,Tn.__data__,gi,vn))&&("__data__"in Tn&&(Wn.__data__=Tn.__data__),Cn[gi]=Wn);return new ai(Nt,this._parents)},selectAll:function A(ne){ne="function"==typeof ne?function x(ne){return function(){return function S(ne){return null==ne?[]:Array.isArray(ne)?ne:Array.from(ne)}(ne.apply(this,arguments))}}(ne):P(ne);for(var Ie=this._groups,_t=Ie.length,Nt=[],en=[],vn=0;vn<_t;++vn)for(var Tn,fn=Ie[vn],Cn=fn.length,Wn=0;Wn<Cn;++Wn)(Tn=fn[Wn])&&(Nt.push(ne.call(Tn,Tn.__data__,Wn,fn)),en.push(Tn));return new ai(Nt,en)},selectChild:function v(ne){return this.select(null==ne?u:function r(ne){return function(){return l.call(this.children,ne)}}("function"==typeof ne?ne:m(ne)))},selectChildren:function B(ne){return this.selectAll(null==ne?T:function R(ne){return function(){return E.call(this.children,ne)}}("function"==typeof ne?ne:m(ne)))},filter:function U(ne){"function"!=typeof ne&&(ne=g(ne));for(var Ie=this._groups,_t=Ie.length,Nt=new Array(_t),en=0;en<_t;++en)for(var Tn,vn=Ie[en],fn=vn.length,Cn=Nt[en]=[],Wn=0;Wn<fn;++Wn)(Tn=vn[Wn])&&ne.call(Tn,Tn.__data__,Wn,vn)&&Cn.push(Tn);return new ai(Nt,this._parents)},data:function ce(ne,Ie){if(!arguments.length)return Array.from(this,Q);var _t=Ie?q:X,Nt=this._parents,en=this._groups;"function"!=typeof ne&&(ne=function k(ne){return function(){return ne}}(ne));for(var vn=en.length,fn=new Array(vn),Cn=new Array(vn),Tn=new Array(vn),Wn=0;Wn<vn;++Wn){var gi=Nt[Wn],ln=en[Wn],ki=ln.length,rr=te(ne.call(gi,gi&&gi.__data__,Wn,Nt)),Ki=rr.length,pr=Cn[Wn]=new Array(Ki),Ti=fn[Wn]=new Array(Ki);_t(gi,ln,pr,Ti,Tn[Wn]=new Array(ki),rr,Ie);for(var Fi,kr,Gr=0,vr=0;Gr<Ki;++Gr)if(Fi=pr[Gr]){for(Gr>=vr&&(vr=Gr+1);!(kr=Ti[vr])&&++vr<Ki;);Fi._next=kr||null}}return(fn=new ai(fn,Nt))._enter=Cn,fn._exit=Tn,fn},enter:function ae(){return new ai(this._enter||this._groups.map(Y),this._parents)},exit:function Ee(){return new ai(this._exit||this._groups.map(Y),this._parents)},join:function it(ne,Ie,_t){var Nt=this.enter(),en=this,vn=this.exit();return"function"==typeof ne?(Nt=ne(Nt))&&(Nt=Nt.selection()):Nt=Nt.append(ne+""),null!=Ie&&(en=Ie(en))&&(en=en.selection()),null==_t?vn.remove():_t(vn),Nt&&en?Nt.merge(en).order():en},merge:function Fe(ne){for(var Ie=ne.selection?ne.selection():ne,_t=this._groups,Nt=Ie._groups,en=_t.length,fn=Math.min(en,Nt.length),Cn=new Array(en),Tn=0;Tn<fn;++Tn)for(var rr,Wn=_t[Tn],gi=Nt[Tn],ln=Wn.length,ki=Cn[Tn]=new Array(ln),Ki=0;Ki<ln;++Ki)(rr=Wn[Ki]||gi[Ki])&&(ki[Ki]=rr);for(;Tn<en;++Tn)Cn[Tn]=_t[Tn];return new ai(Cn,this._parents)},selection:function Lr(){return this},order:function Qe(){for(var ne=this._groups,Ie=-1,_t=ne.length;++Ie<_t;)for(var fn,Nt=ne[Ie],en=Nt.length-1,vn=Nt[en];--en>=0;)(fn=Nt[en])&&(vn&&4^fn.compareDocumentPosition(vn)&&vn.parentNode.insertBefore(fn,vn),vn=fn);return this},sort:function ct(ne){function Ie(ln,ki){return ln&&ki?ne(ln.__data__,ki.__data__):!ln-!ki}ne||(ne=Ge);for(var _t=this._groups,Nt=_t.length,en=new Array(Nt),vn=0;vn<Nt;++vn){for(var Wn,fn=_t[vn],Cn=fn.length,Tn=en[vn]=new Array(Cn),gi=0;gi<Cn;++gi)(Wn=fn[gi])&&(Tn[gi]=Wn);Tn.sort(Ie)}return new ai(en,this._parents).order()},call:function nt(){var ne=arguments[0];return arguments[0]=this,ne.apply(null,arguments),this},nodes:function Je(){return Array.from(this)},node:function ze(){for(var ne=this._groups,Ie=0,_t=ne.length;Ie<_t;++Ie)for(var Nt=ne[Ie],en=0,vn=Nt.length;en<vn;++en){var fn=Nt[en];if(fn)return fn}return null},size:function Ke(){let ne=0;for(const Ie of this)++ne;return ne},empty:function Ve(){return!this.node()},each:function $e(ne){for(var Ie=this._groups,_t=0,Nt=Ie.length;_t<Nt;++_t)for(var Cn,en=Ie[_t],vn=0,fn=en.length;vn<fn;++vn)(Cn=en[vn])&&ne.call(Cn,Cn.__data__,vn,en);return this},attr:function be(ne,Ie){var _t=J(ne);if(arguments.length<2){var Nt=this.node();return _t.local?Nt.getAttributeNS(_t.space,_t.local):Nt.getAttribute(_t)}return this.each((null==Ie?_t.local?ve:vt:"function"==typeof Ie?_t.local?Ce:se:_t.local?et:ue)(_t,Ie))},style:function Se(ne,Ie,_t){return arguments.length>1?this.each((null==Ie?me:"function"==typeof Ie?Xe:le)(ne,Ie,_t??"")):fe(this.node(),ne)},property:function sn(ne,Ie){return arguments.length>1?this.each((null==Ie?Ne:"function"==typeof Ie?Ot:ye)(ne,Ie)):this.node()[ne]},classed:function Xt(ne,Ie){var _t=dn(ne+"");if(arguments.length<2){for(var Nt=yn(this.node()),en=-1,vn=_t.length;++en<vn;)if(!Nt.contains(_t[en]))return!1;return!0}return this.each(("function"==typeof Ie?nn:Ie?Jt:Zt)(_t,Ie))},text:function gt(ne){return arguments.length?this.each(null==ne?lt:("function"==typeof ne?wt:Ue)(ne)):this.node().textContent},html:function Bt(ne){return arguments.length?this.each(null==ne?Ht:("function"==typeof ne?Ut:bn)(ne)):this.node().innerHTML},raise:function V(){return this.each(Le)},lower:function ge(){return this.each(de)},append:function cn(ne){var Ie="function"==typeof ne?ne:Kt(ne);return this.select(function(){return this.appendChild(Ie.apply(this,arguments))})},insert:function kn(ne,Ie){var _t="function"==typeof ne?ne:Kt(ne),Nt=null==Ie?En:"function"==typeof Ie?Ie:h(Ie);return this.select(function(){return this.insertBefore(_t.apply(this,arguments),Nt.apply(this,arguments)||null)})},remove:function Gi(){return this.each(Ai)},clone:function Rn(ne){return this.select(ne?Zi:bt)},datum:function Gn(ne){return arguments.length?this.property("__data__",ne):this.node().__data__},on:function hr(ne,Ie,_t){var en,fn,Nt=function Ni(ne){return ne.trim().split(/^|\s+/).map(function(Ie){var _t="",Nt=Ie.indexOf(".");return Nt>=0&&(_t=Ie.slice(Nt+1),Ie=Ie.slice(0,Nt)),{type:Ie,name:_t}})}(ne+""),vn=Nt.length;if(!(arguments.length<2)){for(Cn=Ie?Ir:ir,en=0;en<vn;++en)this.each(Cn(Nt[en],Ie,_t));return this}var Cn=this.node().__on;if(Cn)for(var gi,Tn=0,Wn=Cn.length;Tn<Wn;++Tn)for(en=0,gi=Cn[Tn];en<vn;++en)if((fn=Nt[en]).type===gi.type&&fn.name===gi.name)return gi.value},dispatch:function js(ne,Ie){return this.each(("function"==typeof Ie?lo:Pr)(ne,Ie))},[Symbol.iterator]:function*Vn(){for(var ne=this._groups,Ie=0,_t=ne.length;Ie<_t;++Ie)for(var fn,Nt=ne[Ie],en=0,vn=Nt.length;en<vn;++en)(fn=Nt[en])&&(yield fn)}};const Mn=Li;var Qn={value:()=>{}};function Zn(){for(var Nt,ne=0,Ie=arguments.length,_t={};ne<Ie;++ne){if(!(Nt=arguments[ne]+"")||Nt in _t||/[\s.]/.test(Nt))throw new Error("illegal type: "+Nt);_t[Nt]=[]}return new fi(_t)}function fi(ne){this._=ne}function tr(ne,Ie){for(var en,_t=0,Nt=ne.length;_t<Nt;++_t)if((en=ne[_t]).name===Ie)return en.value}function qi(ne,Ie,_t){for(var Nt=0,en=ne.length;Nt<en;++Nt)if(ne[Nt].name===Ie){ne[Nt]=Qn,ne=ne.slice(0,Nt).concat(ne.slice(Nt+1));break}return null!=_t&&ne.push({name:Ie,value:_t}),ne}fi.prototype=Zn.prototype={constructor:fi,on:function(ne,Ie){var en,_t=this._,Nt=function yi(ne,Ie){return ne.trim().split(/^|\s+/).map(function(_t){var Nt="",en=_t.indexOf(".");if(en>=0&&(Nt=_t.slice(en+1),_t=_t.slice(0,en)),_t&&!Ie.hasOwnProperty(_t))throw new Error("unknown type: "+_t);return{type:_t,name:Nt}})}(ne+"",_t),vn=-1,fn=Nt.length;if(!(arguments.length<2)){if(null!=Ie&&"function"!=typeof Ie)throw new Error("invalid callback: "+Ie);for(;++vn<fn;)if(en=(ne=Nt[vn]).type)_t[en]=qi(_t[en],ne.name,Ie);else if(null==Ie)for(en in _t)_t[en]=qi(_t[en],ne.name,null);return this}for(;++vn<fn;)if((en=(ne=Nt[vn]).type)&&(en=tr(_t[en],ne.name)))return en},copy:function(){var ne={},Ie=this._;for(var _t in Ie)ne[_t]=Ie[_t].slice();return new fi(ne)},call:function(ne,Ie){if((en=arguments.length-2)>0)for(var en,vn,_t=new Array(en),Nt=0;Nt<en;++Nt)_t[Nt]=arguments[Nt+2];if(!this._.hasOwnProperty(ne))throw new Error("unknown type: "+ne);for(Nt=0,en=(vn=this._[ne]).length;Nt<en;++Nt)vn[Nt].value.apply(Ie,_t)},apply:function(ne,Ie,_t){if(!this._.hasOwnProperty(ne))throw new Error("unknown type: "+ne);for(var Nt=this._[ne],en=0,vn=Nt.length;en<vn;++en)Nt[en].value.apply(Ie,_t)}};const Br=Zn;var zn,Jn,Sr=0,ds=0,bs=0,An=1e3,di=0,Oi=0,Wi=0,mr="object"==typeof performance&&performance.now?performance:Date,qr="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(ne){setTimeout(ne,17)};function ms(){return Oi||(qr(us),Oi=mr.now()+Wi)}function us(){Oi=0}function Qs(){this._call=this._time=this._next=null}function ks(ne,Ie,_t){var Nt=new Qs;return Nt.restart(ne,Ie,_t),Nt}function Ur(){Oi=(di=mr.now())+Wi,Sr=ds=0;try{!function Ar(){ms(),++Sr;for(var Ie,ne=zn;ne;)(Ie=Oi-ne._time)>=0&&ne._call.call(void 0,Ie),ne=ne._next;--Sr}()}finally{Sr=0,function fo(){for(var ne,_t,Ie=zn,Nt=1/0;Ie;)Ie._call?(Nt>Ie._time&&(Nt=Ie._time),ne=Ie,Ie=Ie._next):(_t=Ie._next,Ie._next=null,Ie=ne?ne._next=_t:zn=_t);Jn=ne,Zo(Nt)}(),Oi=0}}function vs(){var ne=mr.now(),Ie=ne-di;Ie>An&&(Wi-=Ie,di=ne)}function Zo(ne){Sr||(ds&&(ds=clearTimeout(ds)),ne-Oi>24?(ne<1/0&&(ds=setTimeout(Ur,ne-mr.now()-Wi)),bs&&(bs=clearInterval(bs))):(bs||(di=mr.now(),bs=setInterval(vs,An)),Sr=1,qr(Ur)))}function vo(ne,Ie,_t){var Nt=new Qs;return Nt.restart(en=>{Nt.stop(),ne(en+Ie)},Ie=null==Ie?0:+Ie,_t),Nt}Qs.prototype=ks.prototype={constructor:Qs,restart:function(ne,Ie,_t){if("function"!=typeof ne)throw new TypeError("callback is not a function");_t=(null==_t?ms():+_t)+(null==Ie?0:+Ie),!this._next&&Jn!==this&&(Jn?Jn._next=this:zn=this,Jn=this),this._call=ne,this._time=_t,Zo()},stop:function(){this._call&&(this._call=null,this._time=1/0,Zo())}};var Pa=Br("start","end","cancel","interrupt"),fa=[],fs=0,qs=3;function Mo(ne,Ie,_t,Nt,en,vn){var fn=ne.__transition;if(fn){if(_t in fn)return}else ne.__transition={};!function pa(ne,Ie,_t){var en,Nt=ne.__transition;function fn(Wn){var gi,ln,ki,rr;if(1!==_t.state)return Tn();for(gi in Nt)if((rr=Nt[gi]).name===_t.name){if(rr.state===qs)return vo(fn);4===rr.state?(rr.state=6,rr.timer.stop(),rr.on.call("interrupt",ne,ne.__data__,rr.index,rr.group),delete Nt[gi]):+gi<Ie&&(rr.state=6,rr.timer.stop(),rr.on.call("cancel",ne,ne.__data__,rr.index,rr.group),delete Nt[gi])}if(vo(function(){_t.state===qs&&(_t.state=4,_t.timer.restart(Cn,_t.delay,_t.time),Cn(Wn))}),_t.state=2,_t.on.call("start",ne,ne.__data__,_t.index,_t.group),2===_t.state){for(_t.state=qs,en=new Array(ki=_t.tween.length),gi=0,ln=-1;gi<ki;++gi)(rr=_t.tween[gi].value.call(ne,ne.__data__,_t.index,_t.group))&&(en[++ln]=rr);en.length=ln+1}}function Cn(Wn){for(var gi=Wn<_t.duration?_t.ease.call(null,Wn/_t.duration):(_t.timer.restart(Tn),_t.state=5,1),ln=-1,ki=en.length;++ln<ki;)en[ln].call(ne,gi);5===_t.state&&(_t.on.call("end",ne,ne.__data__,_t.index,_t.group),Tn())}function Tn(){for(var Wn in _t.state=6,_t.timer.stop(),delete Nt[Ie],Nt)return;delete ne.__transition}Nt[Ie]=_t,_t.timer=ks(function vn(Wn){_t.state=1,_t.timer.restart(fn,_t.delay,_t.time),_t.delay<=Wn&&fn(Wn-_t.delay)},0,_t.time)}(ne,_t,{name:Ie,index:Nt,group:en,on:Pa,tween:fa,time:vn.time,delay:vn.delay,duration:vn.duration,ease:vn.ease,timer:null,state:fs})}function As(ne,Ie){var _t=Rr(ne,Ie);if(_t.state>fs)throw new Error("too late; already scheduled");return _t}function Uo(ne,Ie){var _t=Rr(ne,Ie);if(_t.state>qs)throw new Error("too late; already running");return _t}function Rr(ne,Ie){var _t=ne.__transition;if(!_t||!(_t=_t[Ie]))throw new Error("transition not found");return _t}var Ks,bo=s(30057),Xa=180/Math.PI,Es={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function eo(ne,Ie,_t,Nt,en,vn){var fn,Cn,Tn;return(fn=Math.sqrt(ne*ne+Ie*Ie))&&(ne/=fn,Ie/=fn),(Tn=ne*_t+Ie*Nt)&&(_t-=ne*Tn,Nt-=Ie*Tn),(Cn=Math.sqrt(_t*_t+Nt*Nt))&&(_t/=Cn,Nt/=Cn,Tn/=Cn),ne*Nt<Ie*_t&&(ne=-ne,Ie=-Ie,Tn=-Tn,fn=-fn),{translateX:en,translateY:vn,rotate:Math.atan2(Ie,ne)*Xa,skewX:Math.atan(Tn)*Xa,scaleX:fn,scaleY:Cn}}function la(ne,Ie,_t,Nt){function en(Wn){return Wn.length?Wn.pop()+" ":""}return function(Wn,gi){var ln=[],ki=[];return Wn=ne(Wn),gi=ne(gi),function vn(Wn,gi,ln,ki,rr,Ki){if(Wn!==ln||gi!==ki){var pr=rr.push("translate(",null,Ie,null,_t);Ki.push({i:pr-4,x:(0,bo.A)(Wn,ln)},{i:pr-2,x:(0,bo.A)(gi,ki)})}else(ln||ki)&&rr.push("translate("+ln+Ie+ki+_t)}(Wn.translateX,Wn.translateY,gi.translateX,gi.translateY,ln,ki),function fn(Wn,gi,ln,ki){Wn!==gi?(Wn-gi>180?gi+=360:gi-Wn>180&&(Wn+=360),ki.push({i:ln.push(en(ln)+"rotate(",null,Nt)-2,x:(0,bo.A)(Wn,gi)})):gi&&ln.push(en(ln)+"rotate("+gi+Nt)}(Wn.rotate,gi.rotate,ln,ki),function Cn(Wn,gi,ln,ki){Wn!==gi?ki.push({i:ln.push(en(ln)+"skewX(",null,Nt)-2,x:(0,bo.A)(Wn,gi)}):gi&&ln.push(en(ln)+"skewX("+gi+Nt)}(Wn.skewX,gi.skewX,ln,ki),function Tn(Wn,gi,ln,ki,rr,Ki){if(Wn!==ln||gi!==ki){var pr=rr.push(en(rr)+"scale(",null,",",null,")");Ki.push({i:pr-4,x:(0,bo.A)(Wn,ln)},{i:pr-2,x:(0,bo.A)(gi,ki)})}else(1!==ln||1!==ki)&&rr.push(en(rr)+"scale("+ln+","+ki+")")}(Wn.scaleX,Wn.scaleY,gi.scaleX,gi.scaleY,ln,ki),Wn=gi=null,function(rr){for(var Ti,Ki=-1,pr=ki.length;++Ki<pr;)ln[(Ti=ki[Ki]).i]=Ti.x(rr);return ln.join("")}}}var wo=la(function oa(ne){const Ie=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(ne+"");return Ie.isIdentity?Es:eo(Ie.a,Ie.b,Ie.c,Ie.d,Ie.e,Ie.f)},"px, ","px)","deg)"),na=la(function ar(ne){return null!=ne&&(Ks||(Ks=document.createElementNS("http://www.w3.org/2000/svg","g")),Ks.setAttribute("transform",ne),ne=Ks.transform.baseVal.consolidate())?eo((ne=ne.matrix).a,ne.b,ne.c,ne.d,ne.e,ne.f):Es},", ",")",")");function Ro(ne,Ie){var _t,Nt;return function(){var en=Uo(this,ne),vn=en.tween;if(vn!==_t)for(var fn=0,Cn=(Nt=_t=vn).length;fn<Cn;++fn)if(Nt[fn].name===Ie){(Nt=Nt.slice()).splice(fn,1);break}en.tween=Nt}}function ja(ne,Ie,_t){var Nt,en;if("function"!=typeof _t)throw new Error;return function(){var vn=Uo(this,ne),fn=vn.tween;if(fn!==Nt){en=(Nt=fn).slice();for(var Cn={name:Ie,value:_t},Tn=0,Wn=en.length;Tn<Wn;++Tn)if(en[Tn].name===Ie){en[Tn]=Cn;break}Tn===Wn&&en.push(Cn)}vn.tween=en}}function Ho(ne,Ie,_t){var Nt=ne._id;return ne.each(function(){var en=Uo(this,Nt);(en.value||(en.value={}))[Ie]=_t.apply(this,arguments)}),function(en){return Rr(en,Nt).value[Ie]}}var no=s(45889),Fs=s(60196),Co=s(8437);function so(ne,Ie){var _t;return("number"==typeof Ie?bo.A:Ie instanceof no.Ay?Fs.Ay:(_t=(0,no.Ay)(Ie))?(Ie=_t,Fs.Ay):Co.A)(ne,Ie)}function _o(ne){return function(){this.removeAttribute(ne)}}function La(ne){return function(){this.removeAttributeNS(ne.space,ne.local)}}function Ko(ne,Ie,_t){var Nt,vn,en=_t+"";return function(){var fn=this.getAttribute(ne);return fn===en?null:fn===Nt?vn:vn=Ie(Nt=fn,_t)}}function Jo(ne,Ie,_t){var Nt,vn,en=_t+"";return function(){var fn=this.getAttributeNS(ne.space,ne.local);return fn===en?null:fn===Nt?vn:vn=Ie(Nt=fn,_t)}}function ka(ne,Ie,_t){var Nt,en,vn;return function(){var fn,Tn,Cn=_t(this);return null==Cn?void this.removeAttribute(ne):(fn=this.getAttribute(ne))===(Tn=Cn+"")?null:fn===Nt&&Tn===en?vn:(en=Tn,vn=Ie(Nt=fn,Cn))}}function il(ne,Ie,_t){var Nt,en,vn;return function(){var fn,Tn,Cn=_t(this);return null==Cn?void this.removeAttributeNS(ne.space,ne.local):(fn=this.getAttributeNS(ne.space,ne.local))===(Tn=Cn+"")?null:fn===Nt&&Tn===en?vn:(en=Tn,vn=Ie(Nt=fn,Cn))}}function Sn(ne,Ie){var _t,Nt;function en(){var vn=Ie.apply(this,arguments);return vn!==Nt&&(_t=(Nt=vn)&&function $s(ne,Ie){return function(_t){this.setAttributeNS(ne.space,ne.local,Ie.call(this,_t))}}(ne,vn)),_t}return en._value=Ie,en}function ba(ne,Ie){var _t,Nt;function en(){var vn=Ie.apply(this,arguments);return vn!==Nt&&(_t=(Nt=vn)&&function po(ne,Ie){return function(_t){this.setAttribute(ne,Ie.call(this,_t))}}(ne,vn)),_t}return en._value=Ie,en}function $o(ne,Ie){return function(){As(this,ne).delay=+Ie.apply(this,arguments)}}function aa(ne,Ie){return Ie=+Ie,function(){As(this,ne).delay=Ie}}function _a(ne,Ie){return function(){Uo(this,ne).duration=+Ie.apply(this,arguments)}}function zi(ne,Ie){return Ie=+Ie,function(){Uo(this,ne).duration=Ie}}var qn=Mn.prototype.constructor;function Do(ne){return function(){this.style.removeProperty(ne)}}var Un=0;function ii(ne,Ie,_t,Nt){this._groups=ne,this._parents=Ie,this._name=_t,this._id=Nt}function Nr(){return++Un}var Or=Mn.prototype;ii.prototype=function Hi(ne){return Mn().transition(ne)}.prototype={constructor:ii,select:function Mt(ne){var Ie=this._name,_t=this._id;"function"!=typeof ne&&(ne=h(ne));for(var Nt=this._groups,en=Nt.length,vn=new Array(en),fn=0;fn<en;++fn)for(var gi,ln,Cn=Nt[fn],Tn=Cn.length,Wn=vn[fn]=new Array(Tn),ki=0;ki<Tn;++ki)(gi=Cn[ki])&&(ln=ne.call(gi,gi.__data__,ki,Cn))&&("__data__"in gi&&(ln.__data__=gi.__data__),Wn[ki]=ln,Mo(Wn[ki],Ie,_t,ki,Wn,Rr(gi,_t)));return new ii(vn,this._parents,Ie,_t)},selectAll:function Dn(ne){var Ie=this._name,_t=this._id;"function"!=typeof ne&&(ne=P(ne));for(var Nt=this._groups,en=Nt.length,vn=[],fn=[],Cn=0;Cn<en;++Cn)for(var gi,Tn=Nt[Cn],Wn=Tn.length,ln=0;ln<Wn;++ln)if(gi=Tn[ln]){for(var rr,ki=ne.call(gi,gi.__data__,ln,Tn),Ki=Rr(gi,_t),pr=0,Ti=ki.length;pr<Ti;++pr)(rr=ki[pr])&&Mo(rr,Ie,_t,pr,ki,Ki);vn.push(ki),fn.push(gi)}return new ii(vn,fn,Ie,_t)},selectChild:Or.selectChild,selectChildren:Or.selectChildren,filter:function Ao(ne){"function"!=typeof ne&&(ne=g(ne));for(var Ie=this._groups,_t=Ie.length,Nt=new Array(_t),en=0;en<_t;++en)for(var Tn,vn=Ie[en],fn=vn.length,Cn=Nt[en]=[],Wn=0;Wn<fn;++Wn)(Tn=vn[Wn])&&ne.call(Tn,Tn.__data__,Wn,vn)&&Cn.push(Tn);return new ii(Nt,this._parents,this._name,this._id)},merge:function ps(ne){if(ne._id!==this._id)throw new Error;for(var Ie=this._groups,_t=ne._groups,Nt=Ie.length,vn=Math.min(Nt,_t.length),fn=new Array(Nt),Cn=0;Cn<vn;++Cn)for(var ki,Tn=Ie[Cn],Wn=_t[Cn],gi=Tn.length,ln=fn[Cn]=new Array(gi),rr=0;rr<gi;++rr)(ki=Tn[rr]||Wn[rr])&&(ln[rr]=ki);for(;Cn<Nt;++Cn)fn[Cn]=Ie[Cn];return new ii(fn,this._parents,this._name,this._id)},selection:function Yr(){return new qn(this._groups,this._parents)},transition:function mt(){for(var ne=this._name,Ie=this._id,_t=Nr(),Nt=this._groups,en=Nt.length,vn=0;vn<en;++vn)for(var Tn,fn=Nt[vn],Cn=fn.length,Wn=0;Wn<Cn;++Wn)if(Tn=fn[Wn]){var gi=Rr(Tn,Ie);Mo(Tn,ne,_t,Wn,fn,{time:gi.time+gi.delay+gi.duration,delay:0,duration:gi.duration,ease:gi.ease})}return new ii(Nt,this._parents,ne,_t)},call:Or.call,nodes:Or.nodes,node:Or.node,size:Or.size,empty:Or.empty,each:Or.each,on:function ga(ne,Ie){var _t=this._id;return arguments.length<2?Rr(this.node(),_t).on.on(ne):this.each(function al(ne,Ie,_t){var Nt,en,vn=function ca(ne){return(ne+"").trim().split(/^|\s+/).every(function(Ie){var _t=Ie.indexOf(".");return _t>=0&&(Ie=Ie.slice(0,_t)),!Ie||"start"===Ie})}(Ie)?As:Uo;return function(){var fn=vn(this,ne),Cn=fn.on;Cn!==Nt&&(en=(Nt=Cn).copy()).on(Ie,_t),fn.on=en}}(_t,ne,Ie))},attr:function co(ne,Ie){var _t=J(ne),Nt="transform"===_t?na:so;return this.attrTween(ne,"function"==typeof Ie?(_t.local?il:ka)(_t,Nt,Ho(this,"attr."+ne,Ie)):null==Ie?(_t.local?La:_o)(_t):(_t.local?Jo:Ko)(_t,Nt,Ie))},attrTween:function uo(ne,Ie){var _t="attr."+ne;if(arguments.length<2)return(_t=this.tween(_t))&&_t._value;if(null==Ie)return this.tween(_t,null);if("function"!=typeof Ie)throw new Error;var Nt=J(ne);return this.tween(_t,(Nt.local?Sn:ba)(Nt,Ie))},style:function Ea(ne,Ie,_t){var Nt="transform"==(ne+="")?wo:so;return null==Ie?this.styleTween(ne,function _s(ne,Ie){var _t,Nt,en;return function(){var vn=fe(this,ne),fn=(this.style.removeProperty(ne),fe(this,ne));return vn===fn?null:vn===_t&&fn===Nt?en:en=Ie(_t=vn,Nt=fn)}}(ne,Nt)).on("end.style."+ne,Do(ne)):"function"==typeof Ie?this.styleTween(ne,function Bi(ne,Ie,_t){var Nt,en,vn;return function(){var fn=fe(this,ne),Cn=_t(this),Tn=Cn+"";return null==Cn&&(this.style.removeProperty(ne),Tn=Cn=fe(this,ne)),fn===Tn?null:fn===Nt&&Tn===en?vn:(en=Tn,vn=Ie(Nt=fn,Cn))}}(ne,Nt,Ho(this,"style."+ne,Ie))).each(function Di(ne,Ie){var _t,Nt,en,Cn,vn="style."+Ie,fn="end."+vn;return function(){var Tn=Uo(this,ne),Wn=Tn.on,gi=null==Tn.value[vn]?Cn||(Cn=Do(Ie)):void 0;(Wn!==_t||en!==gi)&&(Nt=(_t=Wn).copy()).on(fn,en=gi),Tn.on=Nt}}(this._id,ne)):this.styleTween(ne,function Ws(ne,Ie,_t){var Nt,vn,en=_t+"";return function(){var fn=fe(this,ne);return fn===en?null:fn===Nt?vn:vn=Ie(Nt=fn,_t)}}(ne,Nt,Ie),_t).on("end.style."+ne,null)},styleTween:function Is(ne,Ie,_t){var Nt="style."+(ne+="");if(arguments.length<2)return(Nt=this.tween(Nt))&&Nt._value;if(null==Ie)return this.tween(Nt,null);if("function"!=typeof Ie)throw new Error;return this.tween(Nt,function hs(ne,Ie,_t){var Nt,en;function vn(){var fn=Ie.apply(this,arguments);return fn!==en&&(Nt=(en=fn)&&function vl(ne,Ie,_t){return function(Nt){this.style.setProperty(ne,Ie.call(this,Nt),_t)}}(ne,fn,_t)),Nt}return vn._value=Ie,vn}(ne,Ie,_t??""))},text:function ia(ne){return this.tween("text","function"==typeof ne?function jr(ne){return function(){var Ie=ne(this);this.textContent=Ie??""}}(Ho(this,"text",ne)):function da(ne){return function(){this.textContent=ne}}(null==ne?"":ne+""))},textTween:function $n(ne){var Ie="text";if(arguments.length<1)return(Ie=this.tween(Ie))&&Ie._value;if(null==ne)return this.tween(Ie,null);if("function"!=typeof ne)throw new Error;return this.tween(Ie,function ra(ne){var Ie,_t;function Nt(){var en=ne.apply(this,arguments);return en!==_t&&(Ie=(_t=en)&&function Oo(ne){return function(Ie){this.textContent=ne.call(this,Ie)}}(en)),Ie}return Nt._value=ne,Nt}(ne))},remove:function Dt(){return this.on("end.remove",function on(ne){return function(){var Ie=this.parentNode;for(var _t in this.__transition)if(+_t!==ne)return;Ie&&Ie.removeChild(this)}}(this._id))},tween:function Eo(ne,Ie){var _t=this._id;if(ne+="",arguments.length<2){for(var fn,Nt=Rr(this.node(),_t).tween,en=0,vn=Nt.length;en<vn;++en)if((fn=Nt[en]).name===ne)return fn.value;return null}return this.each((null==Ie?Ro:ja)(_t,ne,Ie))},delay:function Xs(ne){var Ie=this._id;return arguments.length?this.each(("function"==typeof ne?$o:aa)(Ie,ne)):Rr(this.node(),Ie).delay},duration:function Ae(ne){var Ie=this._id;return arguments.length?this.each(("function"==typeof ne?_a:zi)(Ie,ne)):Rr(this.node(),Ie).duration},ease:function fl(ne){var Ie=this._id;return arguments.length?this.each(function jo(ne,Ie){if("function"!=typeof Ie)throw new Error;return function(){Uo(this,ne).ease=Ie}}(Ie,ne)):Rr(this.node(),Ie).ease},easeVarying:function Xi(ne){if("function"!=typeof ne)throw new Error;return this.each(function Wa(ne,Ie){return function(){var _t=Ie.apply(this,arguments);if("function"!=typeof _t)throw new Error;Uo(this,ne).ease=_t}}(this._id,ne))},end:function Yt(){var ne,Ie,_t=this,Nt=_t._id,en=_t.size();return new Promise(function(vn,fn){var Cn={value:fn},Tn={value:function(){0==--en&&vn()}};_t.each(function(){var Wn=Uo(this,Nt),gi=Wn.on;gi!==ne&&((Ie=(ne=gi).copy())._.cancel.push(Cn),Ie._.interrupt.push(Cn),Ie._.end.push(Tn)),Wn.on=Ie}),0===en&&vn()})},[Symbol.iterator]:Or[Symbol.iterator]};var Us={time:null,delay:0,duration:250,ease:function wr(ne){return((ne*=2)<=1?ne*ne*ne:(ne-=2)*ne*ne+2)/2}};function Vs(ne,Ie){for(var _t;!(_t=ne.__transition)||!(_t=_t[Ie]);)if(!(ne=ne.parentNode))throw new Error(`transition ${Ie} not found`);return _t}Mn.prototype.interrupt=function Ha(ne){return this.each(function(){!function nl(ne,Ie){var Nt,en,fn,_t=ne.__transition,vn=!0;if(_t){for(fn in Ie=null==Ie?null:Ie+"",_t)(Nt=_t[fn]).name===Ie?(en=Nt.state>2&&Nt.state<5,Nt.state=6,Nt.timer.stop(),Nt.on.call(en?"interrupt":"cancel",ne,ne.__data__,Nt.index,Nt.group),delete _t[fn]):vn=!1;vn&&delete ne.__transition}}(this,ne)})},Mn.prototype.transition=function Ma(ne){var Ie,_t;ne instanceof ii?(Ie=ne._id,ne=ne._name):(Ie=Nr(),(_t=Us).time=ms(),ne=null==ne?null:ne+"");for(var Nt=this._groups,en=Nt.length,vn=0;vn<en;++vn)for(var Tn,fn=Nt[vn],Cn=fn.length,Wn=0;Wn<Cn;++Wn)(Tn=fn[Wn])&&Mo(Tn,ne,Ie,Wn,fn,_t||Vs(Tn,Ie));return new ii(Nt,this._parents,ne,Ie)};Math;function sa(ne){return{type:ne}}function rs(ne){return"string"==typeof ne?new ai([[document.querySelector(ne)]],[document.documentElement]):new ai([[ne]],Ei)}function Ta(ne,Ie){if(ne=function cl(ne){let Ie;for(;Ie=ne.sourceEvent;)ne=Ie;return ne}(ne),void 0===Ie&&(Ie=ne.currentTarget),Ie){var _t=Ie.ownerSVGElement||Ie;if(_t.createSVGPoint){var Nt=_t.createSVGPoint();return Nt.x=ne.clientX,Nt.y=ne.clientY,[(Nt=Nt.matrixTransform(Ie.getScreenCTM().inverse())).x,Nt.y]}if(Ie.getBoundingClientRect){var en=Ie.getBoundingClientRect();return[ne.clientX-en.left-Ie.clientLeft,ne.clientY-en.top-Ie.clientTop]}}return[ne.pageX,ne.pageY]}["w","e"].map(sa),["n","s"].map(sa),["n","w","e","s","nw","ne","sw","se"].map(sa);const pl={passive:!1},io={capture:!0,passive:!1};function Fa(ne){ne.stopImmediatePropagation()}function Mr(ne){ne.preventDefault(),ne.stopImmediatePropagation()}const D=ne=>()=>ne;function I(ne,{sourceEvent:Ie,subject:_t,target:Nt,identifier:en,active:vn,x:fn,y:Cn,dx:Tn,dy:Wn,dispatch:gi}){Object.defineProperties(this,{type:{value:ne,enumerable:!0,configurable:!0},sourceEvent:{value:Ie,enumerable:!0,configurable:!0},subject:{value:_t,enumerable:!0,configurable:!0},target:{value:Nt,enumerable:!0,configurable:!0},identifier:{value:en,enumerable:!0,configurable:!0},active:{value:vn,enumerable:!0,configurable:!0},x:{value:fn,enumerable:!0,configurable:!0},y:{value:Cn,enumerable:!0,configurable:!0},dx:{value:Tn,enumerable:!0,configurable:!0},dy:{value:Wn,enumerable:!0,configurable:!0},_:{value:gi}})}function j(ne){return!ne.ctrlKey&&!ne.button}function pe(){return this.parentNode}function _e(ne,Ie){return Ie??{x:ne.x,y:ne.y}}function xe(){return navigator.maxTouchPoints||"ontouchstart"in this}function He(){var Cn,Tn,Wn,gi,ne=j,Ie=pe,_t=_e,Nt=xe,en={},vn=Br("start","drag","end"),fn=0,ln=0;function ki(Fi){Fi.on("mousedown.drag",rr).filter(Nt).on("touchstart.drag",Ti).on("touchmove.drag",Qi,pl).on("touchend.drag touchcancel.drag",Gr).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function rr(Fi,kr){if(!gi&&ne.call(this,Fi,kr)){var cr=vr(this,Ie.call(this,Fi,kr),Fi,kr,"mouse");cr&&(rs(Fi.view).on("mousemove.drag",Ki,io).on("mouseup.drag",pr,io),function Ze(ne){var Ie=ne.document.documentElement,_t=rs(ne).on("dragstart.drag",Mr,io);"onselectstart"in Ie?_t.on("selectstart.drag",Mr,io):(Ie.__noselect=Ie.style.MozUserSelect,Ie.style.MozUserSelect="none")}(Fi.view),Fa(Fi),Wn=!1,Cn=Fi.clientX,Tn=Fi.clientY,cr("start",Fi))}}function Ki(Fi){if(Mr(Fi),!Wn){var kr=Fi.clientX-Cn,cr=Fi.clientY-Tn;Wn=kr*kr+cr*cr>ln}en.mouse("drag",Fi)}function pr(Fi){rs(Fi.view).on("mousemove.drag mouseup.drag",null),function _(ne,Ie){var _t=ne.document.documentElement,Nt=rs(ne).on("dragstart.drag",null);Ie&&(Nt.on("click.drag",Mr,io),setTimeout(function(){Nt.on("click.drag",null)},0)),"onselectstart"in _t?Nt.on("selectstart.drag",null):(_t.style.MozUserSelect=_t.__noselect,delete _t.__noselect)}(Fi.view,Wn),Mr(Fi),en.mouse("end",Fi)}function Ti(Fi,kr){if(ne.call(this,Fi,kr)){var Qr,Rs,cr=Fi.changedTouches,Kr=Ie.call(this,Fi,kr),Wr=cr.length;for(Qr=0;Qr<Wr;++Qr)(Rs=vr(this,Kr,Fi,kr,cr[Qr].identifier,cr[Qr]))&&(Fa(Fi),Rs("start",Fi,cr[Qr]))}}function Qi(Fi){var Kr,Wr,kr=Fi.changedTouches,cr=kr.length;for(Kr=0;Kr<cr;++Kr)(Wr=en[kr[Kr].identifier])&&(Mr(Fi),Wr("drag",Fi,kr[Kr]))}function Gr(Fi){var Kr,Wr,kr=Fi.changedTouches,cr=kr.length;for(gi&&clearTimeout(gi),gi=setTimeout(function(){gi=null},500),Kr=0;Kr<cr;++Kr)(Wr=en[kr[Kr].identifier])&&(Fa(Fi),Wr("end",Fi,kr[Kr]))}function vr(Fi,kr,cr,Kr,Wr,Qr){var as,Wo,_i,Rs=vn.copy(),Hr=Ta(Qr||cr,kr);if(null!=(_i=_t.call(Fi,new I("beforestart",{sourceEvent:cr,target:ki,identifier:Wr,active:fn,x:Hr[0],y:Hr[1],dx:0,dy:0,dispatch:Rs}),Kr)))return as=_i.x-Hr[0]||0,Wo=_i.y-Hr[1]||0,function Er(Ui,Te,ft){var at,Be=Hr;switch(Ui){case"start":en[Wr]=Er,at=fn++;break;case"end":delete en[Wr],--fn;case"drag":Hr=Ta(ft||Te,kr),at=fn}Rs.call(Ui,Fi,new I(Ui,{sourceEvent:Te,subject:_i,target:ki,identifier:Wr,active:at,x:Hr[0]+as,y:Hr[1]+Wo,dx:Hr[0]-Be[0],dy:Hr[1]-Be[1],dispatch:Rs}),Kr)}}return ki.filter=function(Fi){return arguments.length?(ne="function"==typeof Fi?Fi:D(!!Fi),ki):ne},ki.container=function(Fi){return arguments.length?(Ie="function"==typeof Fi?Fi:D(Fi),ki):Ie},ki.subject=function(Fi){return arguments.length?(_t="function"==typeof Fi?Fi:D(Fi),ki):_t},ki.touchable=function(Fi){return arguments.length?(Nt="function"==typeof Fi?Fi:D(!!Fi),ki):Nt},ki.on=function(){var Fi=vn.on.apply(vn,arguments);return Fi===vn?ki:Fi},ki.clickDistance=function(Fi){return arguments.length?(ln=(Fi=+Fi)*Fi,ki):Math.sqrt(ln)},ki}function ht(ne){if(!ne.ok)throw new Error(ne.status+" "+ne.statusText);return ne.text()}function Gt(ne){return(Ie,_t)=>function yt(ne,Ie){return fetch(ne,Ie).then(ht)}(Ie,_t).then(Nt=>(new DOMParser).parseFromString(Nt,ne))}I.prototype.on=function(){var ne=this._.on.apply(this._,arguments);return ne===this._?this:ne},Gt("application/xml"),Gt("text/html");var tt=Gt("image/svg+xml");function Tt(ne,Ie,_t){this.k=ne,this.x=Ie,this.y=_t}Tt.prototype={constructor:Tt,scale:function(ne){return 1===ne?this:new Tt(this.k*ne,this.x,this.y)},translate:function(ne,Ie){return 0===ne&0===Ie?this:new Tt(this.k,this.x+this.k*ne,this.y+this.k*Ie)},apply:function(ne){return[ne[0]*this.k+this.x,ne[1]*this.k+this.y]},applyX:function(ne){return ne*this.k+this.x},applyY:function(ne){return ne*this.k+this.y},invert:function(ne){return[(ne[0]-this.x)/this.k,(ne[1]-this.y)/this.k]},invertX:function(ne){return(ne-this.x)/this.k},invertY:function(ne){return(ne-this.y)/this.k},rescaleX:function(ne){return ne.copy().domain(ne.range().map(this.invertX,this).map(ne.invert,ne))},rescaleY:function(ne){return ne.copy().domain(ne.range().map(this.invertY,this).map(ne.invert,ne))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}},new Tt(1,0,0)},81248:St=>{"use strict";St.exports=JSON.parse('{"components/menu-item":"Verbose"}')},1956:St=>{"use strict";St.exports=JSON.parse('{"pageName":"graphics","pageTitle":"layout.features.manage3dsettings.title","tabs":[{"tabName":"program","text":"manage3dSettings.programSettings"},{"tabName":"global","text":"manage3dSettings.globalSettings"}],"content":{"strings":[]},"program":{"content":{"strings":[{"text":"manage3dSettings.subTitle"}]}},"global":{"content":{"strings":[{"text":"manage3dSettings.subTitle"}]}}}')},72978:St=>{"use strict";St.exports=JSON.parse('{"pageName":"redeem","pageTitle":"rewards.redeem","tabs":[],"content":{"strings":[{"text":"rewards.redeem"},{"text":"rewards.rewardsPageTitle"},{"text":"rewards.redeemCoupon"},{"text":"rewards.enterCouponCode"},{"text":"rewards.onGoingRewards"}]}}')},39332:St=>{"use strict";St.exports=JSON.parse('{"pageName":"settings","pageTitle":"toolbar.settings","tabs":[{"tabName":"features","text":"preferences.featureReadiness.title"},{"tabName":"notifications","text":"preferences.notifications.title"},{"tabName":"about","text":"preferences.about.title"}],"content":{"strings":[]},"features":{"content":{"strings":[{"text":"layout.features.overlay.title"},{"text":"preferences.gameScan.gamesAppsAddedWithoutCount"},{"text":"preferences.gameScan.scanNow"},{"text":"preferences.gameScan.scanLocations"},{"text":"drivers.title"},{"text":"preferences.autoDownloadDrivers"},{"text":"preferences.gameScan.autoOptimize"},{"text":"preferences.featureReadiness.languageFeature.header"},{"text":"preferences.featureReadiness.languageFeature.description"},{"text":"preferences.gameScan.supportedGamesLink"},{"text":"preferences.featureReadiness.systemRequirementLink"}]}},"notifications":{"content":{"strings":[{"text":"preferences.notifications.driver.control"},{"text":"preferences.notifications.rewards.control"},{"text":"preferences.notifications.windowsNotificationLink"}]}},"about":{"content":{"strings":[{"text":"preferences.about.privacy.requiredConsent.header"},{"text":"preferences.about.privacy.requiredConsent.description"},{"text":"preferences.about.privacy.functionalConsent.header"},{"text":"preferences.about.privacy.functionalConsent.description"},{"text":"preferences.about.privacyPortal"},{"text":"preferences.about.privacyPolicy"},{"text":"preferences.about.betaTitle"},{"text":"preferences.about.betaDescription"},{"text":"preferences.about.privacy.requiredConsent.header"},{"text":"preferences.about.privacy.requiredConsent.description"},{"text":"preferences.about.privacy.functionalConsent.header"},{"text":"preferences.about.privacy.functionalConsent.description"},{"text":"preferences.about.privacy.technicalConsent.header"},{"text":"preferences.about.privacy.technicalConsent.description"},{"text":"preferences.about.releaseHighlights"},{"text":"settings.licenseAgreement"},{"text":"preferences.about.accountTerms"},{"text":"preferences.about.osslicense"}]}}}')},75576:St=>{"use strict";St.exports=JSON.parse('{"pageName":"system","pageTitle":"preferences.system","tabs":[{"tabName":"performance","text":"performance.title"},{"tabName":"overview","text":"system.overview.geForceTitle"},{"tabName":"display","text":"system.display.title"},{"tabName":"video","text":"system.video.title"}],"content":{"strings":[]},"performance":{"content":{"strings":[{"text":"performance.statistics"}]}},"overview":{"content":{"strings":[{"text":"system.overview.displaysTitle"},{"text":"preferences.featureReadiness.controlPanelFeature.header"},{"text":"preferences.featureReadiness.controlPanelFeature.description"}]}},"display":{"content":{"strings":[{"text":"manage3dSettings.globalSettings"}]}},"video":{"content":{"strings":[{"text":"manage3dSettings.globalSettings"},{"text":"system.video.rtxVideoEnhancements"},{"text":"common.restore"}]}}}')}},St=>{St(St.s=53671)}]);
// SIG // Begin signature block
// SIG // MIIofQYJKoZIhvcNAQcCoIIobjCCKGoCAQExDzANBglg
// SIG // hkgBZQMEAgEFADB3BgorBgEEAYI3AgEEoGkwZzAyBgor
// SIG // BgEEAYI3AgEeMCQCAQEEEBDgyQbOONQRoqMAEEvTUJAC
// SIG // AQACAQACAQACAQACAQAwMTANBglghkgBZQMEAgEFAAQg
// SIG // x1erAHtkpa1EUOZ7pT3+cCnJjTlMae4nOf0xEYU45LCg
// SIG // gg20MIIGsDCCBJigAwIBAgIQCK1AsmDSnEyfXs2pvZOu
// SIG // 2TANBgkqhkiG9w0BAQwFADBiMQswCQYDVQQGEwJVUzEV
// SIG // MBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3
// SIG // d3cuZGlnaWNlcnQuY29tMSEwHwYDVQQDExhEaWdpQ2Vy
// SIG // dCBUcnVzdGVkIFJvb3QgRzQwHhcNMjEwNDI5MDAwMDAw
// SIG // WhcNMzYwNDI4MjM1OTU5WjBpMQswCQYDVQQGEwJVUzEX
// SIG // MBUGA1UEChMORGlnaUNlcnQsIEluYy4xQTA/BgNVBAMT
// SIG // OERpZ2lDZXJ0IFRydXN0ZWQgRzQgQ29kZSBTaWduaW5n
// SIG // IFJTQTQwOTYgU0hBMzg0IDIwMjEgQ0ExMIICIjANBgkq
// SIG // hkiG9w0BAQEFAAOCAg8AMIICCgKCAgEA1bQvQtAorXi3
// SIG // XdU5WRuxiEL1M4zrPYGXcMW7xIUmMJ+kjmjYXPXrNCQH
// SIG // 4UtP03hD9BfXHtr50tVnGlJPDqFX/IiZwZHMgQM+TXAk
// SIG // ZLON4gh9NH1MgFcSa0OamfLFOx/y78tHWhOmTLMBICXz
// SIG // ENOLsvsI8IrgnQnAZaf6mIBJNYc9URnokCF4RS6hnyzh
// SIG // GMIazMXuk0lwQjKP+8bqHPNlaJGiTUyCEUhSaN4QvRRX
// SIG // XegYE2XFf7JPhSxIpFaENdb5LpyqABXRN/4aBpTCfMjq
// SIG // GzLmysL0p6MDDnSlrzm2q2AS4+jWufcx4dyt5Big2MEj
// SIG // R0ezoQ9uo6ttmAaDG7dqZy3SvUQakhCBj7A7CdfHmzJa
// SIG // wv9qYFSLScGT7eG0XOBv6yb5jNWy+TgQ5urOkfW+0/tv
// SIG // k2E0XLyTRSiDNipmKF+wc86LJiUGsoPUXPYVGUztYuBe
// SIG // M/Lo6OwKp7ADK5GyNnm+960IHnWmZcy740hQ83eRGv7b
// SIG // UKJGyGFYmPV8AhY8gyitOYbs1LcNU9D4R+Z1MI3sMJN2
// SIG // FKZbS110YU0/EpF23r9Yy3IQKUHw1cVtJnZoEUETWJrc
// SIG // JisB9IlNWdt4z4FKPkBHX8mBUHOFECMhWWCKZFTBzCEa
// SIG // 6DgZfGYczXg4RTCZT/9jT0y7qg0IU0F8WD1Hs/q27Iwy
// SIG // CQLMbDwMVhECAwEAAaOCAVkwggFVMBIGA1UdEwEB/wQI
// SIG // MAYBAf8CAQAwHQYDVR0OBBYEFGg34Ou2O/hfEYb7/mF7
// SIG // CIhl9E5CMB8GA1UdIwQYMBaAFOzX44LScV1kTN8uZz/n
// SIG // upiuHA9PMA4GA1UdDwEB/wQEAwIBhjATBgNVHSUEDDAK
// SIG // BggrBgEFBQcDAzB3BggrBgEFBQcBAQRrMGkwJAYIKwYB
// SIG // BQUHMAGGGGh0dHA6Ly9vY3NwLmRpZ2ljZXJ0LmNvbTBB
// SIG // BggrBgEFBQcwAoY1aHR0cDovL2NhY2VydHMuZGlnaWNl
// SIG // cnQuY29tL0RpZ2lDZXJ0VHJ1c3RlZFJvb3RHNC5jcnQw
// SIG // QwYDVR0fBDwwOjA4oDagNIYyaHR0cDovL2NybDMuZGln
// SIG // aWNlcnQuY29tL0RpZ2lDZXJ0VHJ1c3RlZFJvb3RHNC5j
// SIG // cmwwHAYDVR0gBBUwEzAHBgVngQwBAzAIBgZngQwBBAEw
// SIG // DQYJKoZIhvcNAQEMBQADggIBADojRD2NCHbuj7w6mdNW
// SIG // 4AIapfhINPMstuZ0ZveUcrEAyq9sMCcTEp6QRJ9L/Z6j
// SIG // fCbVN7w6XUhtldU/SfQnuxaBRVD9nL22heB2fjdxyyL3
// SIG // WqqQz/WTauPrINHVUHmImoqKwba9oUgYftzYgBoRGRjN
// SIG // YZmBVvbJ43bnxOQbX0P4PpT/djk9ntSZz0rdKOtfJqGV
// SIG // WEjVGv7XJz/9kNF2ht0csGBc8w2o7uCJob054ThO2m67
// SIG // Np375SFTWsPK6Wrxoj7bQ7gzyE84FJKZ9d3OVG3ZXQIU
// SIG // H0AzfAPilbLCIXVzUstG2MQ0HKKlS43Nb3Y3LIU/Gs4m
// SIG // 6Ri+kAewQ3+ViCCCcPDMyu/9KTVcH4k4Vfc3iosJocsL
// SIG // 6TEa/y4ZXDlx4b6cpwoG1iZnt5LmTl/eeqxJzy6kdJKt
// SIG // 2zyknIYf48FWGysj/4+16oh7cGvmoLr9Oj9FpsToFpFS
// SIG // i0HASIRLlk2rREDjjfAVKM7t8RhWByovEMQMCGQ8M4+u
// SIG // KIw8y4+ICw2/O/TOHnuO77Xry7fwdxPm5yg/rBKupS8i
// SIG // bEH5glwVZsxsDsrFhsP2JjMMB0ug0wcCampAMEhLNKhR
// SIG // ILutG4UI4lkNbcoFUCvqShyepf2gpx8GdOfy1lKQ/a+F
// SIG // SCH5Vzu0nAPthkX0tGFuv2jiJmCG6sivqf6UHedjGzqG
// SIG // VnhOMIIG/DCCBOSgAwIBAgIQCZfFbKpZBVOU2anNuL7r
// SIG // VjANBgkqhkiG9w0BAQsFADBpMQswCQYDVQQGEwJVUzEX
// SIG // MBUGA1UEChMORGlnaUNlcnQsIEluYy4xQTA/BgNVBAMT
// SIG // OERpZ2lDZXJ0IFRydXN0ZWQgRzQgQ29kZSBTaWduaW5n
// SIG // IFJTQTQwOTYgU0hBMzg0IDIwMjEgQ0ExMB4XDTIzMDEx
// SIG // MzAwMDAwMFoXDTI2MDExNjIzNTk1OVowgYAxCzAJBgNV
// SIG // BAYTAlVTMRMwEQYDVQQIEwpDYWxpZm9ybmlhMRQwEgYD
// SIG // VQQHEwtTYW50YSBDbGFyYTEbMBkGA1UEChMSTlZJRElB
// SIG // IENvcnBvcmF0aW9uMQwwCgYDVQQLEwMyLUoxGzAZBgNV
// SIG // BAMTEk5WSURJQSBDb3Jwb3JhdGlvbjCCAaIwDQYJKoZI
// SIG // hvcNAQEBBQADggGPADCCAYoCggGBAIiAXRBzCNRy05OZ
// SIG // NUtJguKdJ1R5HNatdvXtn+pWXHg9PfhU9A5ZboWwSPej
// SIG // iZxJn9clYWVpyjPbkkFvaTBLYeHArmzswavs7+bct4df
// SIG // BTBZG8Qmc9kusaaOxNnuUevseGAC5H61QsGOVATdRQfS
// SIG // kfaP7kTBF9wuIat7BXVglPAlZagQTZWA/BA4Vr8GeNVY
// SIG // 5jU2C6F907UM6orsfsVfkBI8HSowD1U/faTS1yMBu1Mx
// SIG // ePUKZosFn2tYE4dUWId/Vv6LKWk30e/63C5Ul9e3eY7x
// SIG // aZ4eC0TqxluMWb2XdvCcfw9dELeI+0suWliFIyCgSf3A
// SIG // Kuq9cXnoMOBoPEeBOr3XWfCCNLxf9RcGxyaNPd1KcTOO
// SIG // ErSJMFpOCnVi5kys2NrTrFMFVZiRC49BidetoT6cHt3Z
// SIG // f+VHR3rqdUbo4xSpuvsfNA4GRYcWI2KvY3T6hBlrgTlr
// SIG // ngfA3ztOn+38KGJavEa7iJ+k/kjjnD47t0qQoRiujBi+
// SIG // q+mv6Hgy/g0VeQIDAQABo4ICBjCCAgIwHwYDVR0jBBgw
// SIG // FoAUaDfg67Y7+F8Rhvv+YXsIiGX0TkIwHQYDVR0OBBYE
// SIG // FL5vQA7WEARmpu0ItwJOm7f48LbRMA4GA1UdDwEB/wQE
// SIG // AwIHgDATBgNVHSUEDDAKBggrBgEFBQcDAzCBtQYDVR0f
// SIG // BIGtMIGqMFOgUaBPhk1odHRwOi8vY3JsMy5kaWdpY2Vy
// SIG // dC5jb20vRGlnaUNlcnRUcnVzdGVkRzRDb2RlU2lnbmlu
// SIG // Z1JTQTQwOTZTSEEzODQyMDIxQ0ExLmNybDBToFGgT4ZN
// SIG // aHR0cDovL2NybDQuZGlnaWNlcnQuY29tL0RpZ2lDZXJ0
// SIG // VHJ1c3RlZEc0Q29kZVNpZ25pbmdSU0E0MDk2U0hBMzg0
// SIG // MjAyMUNBMS5jcmwwPgYDVR0gBDcwNTAzBgZngQwBBAEw
// SIG // KTAnBggrBgEFBQcCARYbaHR0cDovL3d3dy5kaWdpY2Vy
// SIG // dC5jb20vQ1BTMIGUBggrBgEFBQcBAQSBhzCBhDAkBggr
// SIG // BgEFBQcwAYYYaHR0cDovL29jc3AuZGlnaWNlcnQuY29t
// SIG // MFwGCCsGAQUFBzAChlBodHRwOi8vY2FjZXJ0cy5kaWdp
// SIG // Y2VydC5jb20vRGlnaUNlcnRUcnVzdGVkRzRDb2RlU2ln
// SIG // bmluZ1JTQTQwOTZTSEEzODQyMDIxQ0ExLmNydDAMBgNV
// SIG // HRMBAf8EAjAAMA0GCSqGSIb3DQEBCwUAA4ICAQBNa3En
// SIG // raaMqv58RZV1qn0K09tv83qxwHaM6/N40w2fMljnGOxS
// SIG // xR1g0+R26S7XtwpzG+b8LWmWmyJKiZIogVkcfZpchS6B
// SIG // x+9HcUSo7TBBJn4ylcpQzksLOCmT6/DSeIDYucyQiHo8
// SIG // Nq3XkLpkJaDETnCBDulYZ+9pavQT4lNpB6sffbjsDcQ7
// SIG // CZQdImdzyNwd81c56xZc05ufVkronW78r35vwhzuNd88
// SIG // YQXr26fClBEXf3cNvytVupOeHZTy0Od+tPnAPl5744un
// SIG // 0f1MDjiKRne5FqDoo2F4EoeJQuaS6tWcFQg55dOEmOwS
// SIG // E8mweLCWDTTWmZV6x0IGHwagde1S5rkkmxpvAZRUkaD/
// SIG // ZTyxDiHywNi981mFvCnS1gKGd8GpqDuChpKAet8ivgB3
// SIG // 8hVTE/jsstKwQL7HNGxlmk7hyFxkbUNXki2gwJ/CSGaQ
// SIG // qqS3ctjF5Vv8mbtH2f3pK3AFaXOW7wDfjeuqF+yh6UxT
// SIG // ockgH6Ggc4tj+rcrwWhnbgu+JljlBbSKtGiEXMjA9Ccg
// SIG // YsbOIS9T1/FRAOW4KzCaG2FaX5eIhnCqXl79Va2OV8ul
// SIG // IgIbn1XaQQk6RvNPIwZzM8TARUTR9d1edtiuOymxDYm6
// SIG // j16TmoLkXlWUGLj05+yKut6rkqmYCqCJHRHD0T7LXUmw
// SIG // eBMWDQ5e0t8ADV8KGzGCGiEwghodAgEBMH0waTELMAkG
// SIG // A1UEBhMCVVMxFzAVBgNVBAoTDkRpZ2lDZXJ0LCBJbmMu
// SIG // MUEwPwYDVQQDEzhEaWdpQ2VydCBUcnVzdGVkIEc0IENv
// SIG // ZGUgU2lnbmluZyBSU0E0MDk2IFNIQTM4NCAyMDIxIENB
// SIG // MQIQCZfFbKpZBVOU2anNuL7rVjANBglghkgBZQMEAgEF
// SIG // AKB8MBAGCisGAQQBgjcCAQwxAjAAMBkGCSqGSIb3DQEJ
// SIG // AzEMBgorBgEEAYI3AgEEMBwGCisGAQQBgjcCAQsxDjAM
// SIG // BgorBgEEAYI3AgEVMC8GCSqGSIb3DQEJBDEiBCCNW2G+
// SIG // WQfdiRe6uk3ZLZipxNCLrXILkbDISr93wBIwxTANBgkq
// SIG // hkiG9w0BAQEFAASCAYANZlLttNLwOd6OFx+Xmox8qqE6
// SIG // 2C2Smuc8PIiS4XbT6bzRerXuM1QtOeCiEGFSdMKNiqKX
// SIG // Sus5R2XJN6bnxW+Q728iacTSPg/2lrCWHmaR/hEWAhnX
// SIG // vVmSslsDLPaLu8NlF+M+3cjyzBtLIXQSRZNpvWxg4sKn
// SIG // EtLQnFwubB25ZnAZdcBU8gWHs19AG1mthx4VlBP3SO9i
// SIG // QdqsuZJfUGt0LDaukPFiZuapBpypRZh2DENt2BnqxZWM
// SIG // mDzibh8fgvU72ycfBYkjWz9gV5rRcTomjOTXOhyxVe7Q
// SIG // 13cqm26nmFoOveAJesPkhhhpCNZZUy0WRK4IDWwqTB9q
// SIG // JDTXgy0gQetTFNBjM3l4U05KnsvJeQWOyMR1S7N7quhG
// SIG // qF6mI/At+1rCX87IFUSQwABHyXmilFszkHzNBWGRxAwX
// SIG // j1/8ByuNVmlVHrJsaS94kCscU3qLjDoVy+VLvkxL4chi
// SIG // cz2QqO06vVN5wLDJ5YAyuRHkNRc6+2v+iUTci5I3wRRk
// SIG // msKhghd3MIIXcwYKKwYBBAGCNwMDATGCF2MwghdfBgkq
// SIG // hkiG9w0BBwKgghdQMIIXTAIBAzEPMA0GCWCGSAFlAwQC
// SIG // AQUAMHgGCyqGSIb3DQEJEAEEoGkEZzBlAgEBBglghkgB
// SIG // hv1sBwEwMTANBglghkgBZQMEAgEFAAQgNog5Kj5Ml8Qh
// SIG // 0M7DsGl7kLEpb6YMZXZvtyYp7q8tcWMCEQCrVUMF8wlN
// SIG // zVbnhCsrjPMVGA8yMDI1MTAxNTIyMjA1OFqgghM6MIIG
// SIG // 7TCCBNWgAwIBAgIQCoDvGEuN8QWC0cR2p5V0aDANBgkq
// SIG // hkiG9w0BAQsFADBpMQswCQYDVQQGEwJVUzEXMBUGA1UE
// SIG // ChMORGlnaUNlcnQsIEluYy4xQTA/BgNVBAMTOERpZ2lD
// SIG // ZXJ0IFRydXN0ZWQgRzQgVGltZVN0YW1waW5nIFJTQTQw
// SIG // OTYgU0hBMjU2IDIwMjUgQ0ExMB4XDTI1MDYwNDAwMDAw
// SIG // MFoXDTM2MDkwMzIzNTk1OVowYzELMAkGA1UEBhMCVVMx
// SIG // FzAVBgNVBAoTDkRpZ2lDZXJ0LCBJbmMuMTswOQYDVQQD
// SIG // EzJEaWdpQ2VydCBTSEEyNTYgUlNBNDA5NiBUaW1lc3Rh
// SIG // bXAgUmVzcG9uZGVyIDIwMjUgMTCCAiIwDQYJKoZIhvcN
// SIG // AQEBBQADggIPADCCAgoCggIBANBGrC0Sxp7Q6q5gVrMr
// SIG // V7pvUf+GcAoB38o3zBlCMGMyqJnfFNZx+wvA69HFTBdw
// SIG // bHwBSOeLpvPnZ8ZN+vo8dE2/pPvOx/Vj8TchTySA2R4Q
// SIG // KpVD7dvNZh6wW2R6kSu9RJt/4QhguSssp3qome7MrxVy
// SIG // fQO9sMx6ZAWjFDYOzDi8SOhPUWlLnh00Cll8pjrUcCV3
// SIG // K3E0zz09ldQ//nBZZREr4h/GI6Dxb2UoyrN0ijtUDVHR
// SIG // XdmncOOMA3CoB/iUSROUINDT98oksouTMYFOnHoRh6+8
// SIG // 6Ltc5zjPKHW5KqCvpSduSwhwUmotuQhcg9tw2YD3w6yS
// SIG // SSu+3qU8DD+nigNJFmt6LAHvH3KSuNLoZLc1Hf2JNMVL
// SIG // 4Q1OpbybpMe46YceNA0LfNsnqcnpJeItK/DhKbPxTTuG
// SIG // oX7wJNdoRORVbPR1VVnDuSeHVZlc4seAO+6d2sC26/PQ
// SIG // PdP51ho1zBp+xUIZkpSFA8vWdoUoHLWnqWU3dCCyFG1r
// SIG // oSrgHjSHlq8xymLnjCbSLZ49kPmk8iyyizNDIXj//cOg
// SIG // rY7rlRyTlaCCfw7aSUROwnu7zER6EaJ+AliL7ojTdS5P
// SIG // WPsWeupWs7NpChUk555K096V1hE0yZIXe+giAwW00aHz
// SIG // rDchIc2bQhpp0IoKRR7YufAkprxMiXAJQ1XCmnCfgPf8
// SIG // +3mnAgMBAAGjggGVMIIBkTAMBgNVHRMBAf8EAjAAMB0G
// SIG // A1UdDgQWBBTkO/zyMe39/dfzkXFjGVBDz2GM6DAfBgNV
// SIG // HSMEGDAWgBTvb1NK6eQGfHrK4pBW9i/USezLTjAOBgNV
// SIG // HQ8BAf8EBAMCB4AwFgYDVR0lAQH/BAwwCgYIKwYBBQUH
// SIG // AwgwgZUGCCsGAQUFBwEBBIGIMIGFMCQGCCsGAQUFBzAB
// SIG // hhhodHRwOi8vb2NzcC5kaWdpY2VydC5jb20wXQYIKwYB
// SIG // BQUHMAKGUWh0dHA6Ly9jYWNlcnRzLmRpZ2ljZXJ0LmNv
// SIG // bS9EaWdpQ2VydFRydXN0ZWRHNFRpbWVTdGFtcGluZ1JT
// SIG // QTQwOTZTSEEyNTYyMDI1Q0ExLmNydDBfBgNVHR8EWDBW
// SIG // MFSgUqBQhk5odHRwOi8vY3JsMy5kaWdpY2VydC5jb20v
// SIG // RGlnaUNlcnRUcnVzdGVkRzRUaW1lU3RhbXBpbmdSU0E0
// SIG // MDk2U0hBMjU2MjAyNUNBMS5jcmwwIAYDVR0gBBkwFzAI
// SIG // BgZngQwBBAIwCwYJYIZIAYb9bAcBMA0GCSqGSIb3DQEB
// SIG // CwUAA4ICAQBlKq3xHCcEua5gQezRCESeY0ByIfjk9iJP
// SIG // 2zWLpQq1b4URGnwWBdEZD9gBq9fNaNmFj6Eh8/YmRDfx
// SIG // T7C0k8FUFqNh+tshgb4O6Lgjg8K8elC4+oWCqnU/ML9l
// SIG // Ffim8/9yJmZSe2F8AQ/UdKFOtj7YMTmqPO9mzskgiC3Q
// SIG // YIUP2S3HQvHG1FDu+WUqW4daIqToXFE/JQ/EABgfZXLW
// SIG // U0ziTN6R3ygQBHMUBaB5bdrPbF6MRYs03h4obEMnxYOX
// SIG // 8VBRKe1uNnzQVTeLni2nHkX/QqvXnNb+YkDFkxUGtMTa
// SIG // iLR9wjxUxu2hECZpqyU1d0IbX6Wq8/gVutDojBIFeRlq
// SIG // AcuEVT0cKsb+zJNEsuEB7O7/cuvTQasnM9AWcIQfVjnz
// SIG // rvwiCZ85EE8LUkqRhoS3Y50OHgaY7T/lwd6UArb+BOVA
// SIG // kg2oOvol/DJgddJ35XTxfUlQ+8Hggt8l2Yv7roancJIF
// SIG // cbojBcxlRcGG0LIhp6GvReQGgMgYxQbV1S3CrWqZzBt1
// SIG // R9xJgKf47CdxVRd/ndUlQ05oxYy2zRWVFjF7mcr4C34M
// SIG // j3ocCVccAvlKV9jEnstrniLvUxxVZE/rptb7IRE2lskK
// SIG // PIJgbaP5t2nGj/ULLi49xTcBZU8atufk+EMF/cWuiC7P
// SIG // OGT75qaL6vdCvHlshtjdNXOCIUjsarfNZzCCBrQwggSc
// SIG // oAMCAQICEA3HrFcF/yGZLkBDIgw6SYYwDQYJKoZIhvcN
// SIG // AQELBQAwYjELMAkGA1UEBhMCVVMxFTATBgNVBAoTDERp
// SIG // Z2lDZXJ0IEluYzEZMBcGA1UECxMQd3d3LmRpZ2ljZXJ0
// SIG // LmNvbTEhMB8GA1UEAxMYRGlnaUNlcnQgVHJ1c3RlZCBS
// SIG // b290IEc0MB4XDTI1MDUwNzAwMDAwMFoXDTM4MDExNDIz
// SIG // NTk1OVowaTELMAkGA1UEBhMCVVMxFzAVBgNVBAoTDkRp
// SIG // Z2lDZXJ0LCBJbmMuMUEwPwYDVQQDEzhEaWdpQ2VydCBU
// SIG // cnVzdGVkIEc0IFRpbWVTdGFtcGluZyBSU0E0MDk2IFNI
// SIG // QTI1NiAyMDI1IENBMTCCAiIwDQYJKoZIhvcNAQEBBQAD
// SIG // ggIPADCCAgoCggIBALR4MdMKmEFyvjxGwBysddujRmh0
// SIG // tFEXnU2tjQ2UtZmWgyxU7UNqEY81FzJsQqr5G7A6c+Gh
// SIG // /qm8Xi4aPCOo2N8S9SLrC6Kbltqn7SWCWgzbNfiR+2fk
// SIG // HUiljNOqnIVD/gG3SYDEAd4dg2dDGpeZGKe+42DFUF0m
// SIG // R/vtLa4+gKPsYfwEu7EEbkC9+0F2w4QJLVSTEG8yAR2C
// SIG // QWIM1iI5PHg62IVwxKSpO0XaF9DPfNBKS7Zazch8NF5v
// SIG // p7eaZ2CVNxpqumzTCNSOxm+SAWSuIr21Qomb+zzQWKhx
// SIG // KTVVgtmUPAW35xUUFREmDrMxSNlr/NsJyUXzdtFUUt4a
// SIG // S4CEeIY8y9IaaGBpPNXKFifinT7zL2gdFpBP9qh8SdLn
// SIG // Eut/GcalNeJQ55IuwnKCgs+nrpuQNfVmUB5KlCX3ZA4x
// SIG // 5HHKS+rqBvKWxdCyQEEGcbLe1b8Aw4wJkhU1JrPsFfxW
// SIG // 1gaou30yZ46t4Y9F20HHfIY4/6vHespYMQmUiote8lad
// SIG // jS/nJ0+k6MvqzfpzPDOy5y6gqztiT96Fv/9bH7mQyogx
// SIG // G9QEPHrPV6/7umw052AkyiLA6tQbZl1KhBtTasySkuJD
// SIG // psZGKdlsjg4u70EwgWbVRSX1Wd4+zoFpp4Ra+MlKM2ba
// SIG // oD6x0VR4RjSpWM8o5a6D8bpfm4CLKczsG7ZrIGNTAgMB
// SIG // AAGjggFdMIIBWTASBgNVHRMBAf8ECDAGAQH/AgEAMB0G
// SIG // A1UdDgQWBBTvb1NK6eQGfHrK4pBW9i/USezLTjAfBgNV
// SIG // HSMEGDAWgBTs1+OC0nFdZEzfLmc/57qYrhwPTzAOBgNV
// SIG // HQ8BAf8EBAMCAYYwEwYDVR0lBAwwCgYIKwYBBQUHAwgw
// SIG // dwYIKwYBBQUHAQEEazBpMCQGCCsGAQUFBzABhhhodHRw
// SIG // Oi8vb2NzcC5kaWdpY2VydC5jb20wQQYIKwYBBQUHMAKG
// SIG // NWh0dHA6Ly9jYWNlcnRzLmRpZ2ljZXJ0LmNvbS9EaWdp
// SIG // Q2VydFRydXN0ZWRSb290RzQuY3J0MEMGA1UdHwQ8MDow
// SIG // OKA2oDSGMmh0dHA6Ly9jcmwzLmRpZ2ljZXJ0LmNvbS9E
// SIG // aWdpQ2VydFRydXN0ZWRSb290RzQuY3JsMCAGA1UdIAQZ
// SIG // MBcwCAYGZ4EMAQQCMAsGCWCGSAGG/WwHATANBgkqhkiG
// SIG // 9w0BAQsFAAOCAgEAF877FoAc/gc9EXZxML2+C8i1NKZ/
// SIG // zdCHxYgaMH9Pw5tcBnPw6O6FTGNpoV2V4wzSUGvI9NAz
// SIG // aoQk97frPBtIj+ZLzdp+yXdhOP4hCFATuNT+ReOPK0mC
// SIG // efSG+tXqGpYZ3essBS3q8nL2UwM+NMvEuBd/2vmdYxDC
// SIG // vwzJv2sRUoKEfJ+nN57mQfQXwcAEGCvRR2qKtntujB71
// SIG // WPYAgwPyWLKu6RnaID/B0ba2H3LUiwDRAXx1Neq9ydOa
// SIG // l95CHfmTnM4I+ZI2rVQfjXQA1WSjjf4J2a7jLzWGNqNX
// SIG // +DF0SQzHU0pTi4dBwp9nEC8EAqoxW6q17r0z0noDjs6+
// SIG // BFo+z7bKSBwZXTRNivYuve3L2oiKNqetRHdqfMTCW/Nm
// SIG // KLJ9M+MtucVGyOxiDf06VXxyKkOirv6o02OoXN4bFzK0
// SIG // vlNMsvhlqgF2puE6FndlENSmE+9JGYxOGLS/D284NHNb
// SIG // oDGcmWXfwXRy4kbu4QFhOm0xJuF2EZAOk5eCkhSxZON3
// SIG // rGlHqhpB/8MluDezooIs8CVnrpHMiD2wL40mm53+/j7t
// SIG // FaxYKIqL0Q4ssd8xHZnIn/7GELH3IdvG2XlM9q7WP/Uw
// SIG // gOkw/HQtyRN62JK4S1C8uw3PdBunvAZapsiI5YKdvlar
// SIG // Evf8EA+8hcpSM9LHJmyrxaFtoza2zNaQ9k+5t1wwggWN
// SIG // MIIEdaADAgECAhAOmxiO+dAt5+/bUOIIQBhaMA0GCSqG
// SIG // SIb3DQEBDAUAMGUxCzAJBgNVBAYTAlVTMRUwEwYDVQQK
// SIG // EwxEaWdpQ2VydCBJbmMxGTAXBgNVBAsTEHd3dy5kaWdp
// SIG // Y2VydC5jb20xJDAiBgNVBAMTG0RpZ2lDZXJ0IEFzc3Vy
// SIG // ZWQgSUQgUm9vdCBDQTAeFw0yMjA4MDEwMDAwMDBaFw0z
// SIG // MTExMDkyMzU5NTlaMGIxCzAJBgNVBAYTAlVTMRUwEwYD
// SIG // VQQKEwxEaWdpQ2VydCBJbmMxGTAXBgNVBAsTEHd3dy5k
// SIG // aWdpY2VydC5jb20xITAfBgNVBAMTGERpZ2lDZXJ0IFRy
// SIG // dXN0ZWQgUm9vdCBHNDCCAiIwDQYJKoZIhvcNAQEBBQAD
// SIG // ggIPADCCAgoCggIBAL/mkHNo3rvkXUo8MCIwaTPswqcl
// SIG // LskhPfKK2FnC4SmnPVirdprNrnsbhA3EMB/zG6Q4FutW
// SIG // xpdtHauyefLKEdLkX9YFPFIPUh/GnhWlfr6fqVcWWVVy
// SIG // r2iTcMKyunWZanMylNEQRBAu34LzB4TmdDttceItDBvu
// SIG // INXJIB1jKS3O7F5OyJP4IWGbNOsFxl7sWxq868nPzaw0
// SIG // QF+xembud8hIqGZXV59UWI4MK7dPpzDZVu7Ke13jrclP
// SIG // XuU15zHL2pNe3I6PgNq2kZhAkHnDeMe2scS1ahg4AxCN
// SIG // 2NQ3pC4FfYj1gj4QkXCrVYJBMtfbBHMqbpEBfCFM1Lyu
// SIG // GwN1XXhm2ToxRJozQL8I11pJpMLmqaBn3aQnvKFPObUR
// SIG // WBf3JFxGj2T3wWmIdph2PVldQnaHiZdpekjw4KISG2aa
// SIG // dMreSx7nDmOu5tTvkpI6nj3cAORFJYm2mkQZK37AlLTS
// SIG // YW3rM9nF30sEAMx9HJXDj/chsrIRt7t/8tWMcCxBYKqx
// SIG // YxhElRp2Yn72gLD76GSmM9GJB+G9t+ZDpBi4pncB4Q+U
// SIG // DCEdslQpJYls5Q5SUUd0viastkF13nqsX40/ybzTQRES
// SIG // W+UQUOsxxcpyFiIJ33xMdT9j7CFfxCBRa2+xq4aLT8LW
// SIG // RV+dIPyhHsXAj6KxfgommfXkaS+YHS312amyHeUbAgMB
// SIG // AAGjggE6MIIBNjAPBgNVHRMBAf8EBTADAQH/MB0GA1Ud
// SIG // DgQWBBTs1+OC0nFdZEzfLmc/57qYrhwPTzAfBgNVHSME
// SIG // GDAWgBRF66Kv9JLLgjEtUYunpyGd823IDzAOBgNVHQ8B
// SIG // Af8EBAMCAYYweQYIKwYBBQUHAQEEbTBrMCQGCCsGAQUF
// SIG // BzABhhhodHRwOi8vb2NzcC5kaWdpY2VydC5jb20wQwYI
// SIG // KwYBBQUHMAKGN2h0dHA6Ly9jYWNlcnRzLmRpZ2ljZXJ0
// SIG // LmNvbS9EaWdpQ2VydEFzc3VyZWRJRFJvb3RDQS5jcnQw
// SIG // RQYDVR0fBD4wPDA6oDigNoY0aHR0cDovL2NybDMuZGln
// SIG // aWNlcnQuY29tL0RpZ2lDZXJ0QXNzdXJlZElEUm9vdENB
// SIG // LmNybDARBgNVHSAECjAIMAYGBFUdIAAwDQYJKoZIhvcN
// SIG // AQEMBQADggEBAHCgv0NcVec4X6CjdBs9thbX979XB72a
// SIG // rKGHLOyFXqkauyL4hxppVCLtpIh3bb0aFPQTSnovLbc4
// SIG // 7/T/gLn4offyct4kvFIDyE7QKt76LVbP+fT3rDB6mouy
// SIG // XtTP0UNEm0Mh65ZyoUi0mcudT6cGAxN3J0TU53/oWajw
// SIG // vy8LpunyNDzs9wPHh6jSTEAZNUZqaVSwuKFWjuyk1T3o
// SIG // sdz9HNj0d1pcVIxv76FQPfx2CWiEn2/K2yCNNWAcAgPL
// SIG // ILCsWKAOQGPFmCLBsln1VWvPJ6tsds5vIy30fnFqI2si
// SIG // /xK4VC0nftg62fC2h5b9W9FcrBjDTZ9ztwGpn1eqXiji
// SIG // uZQxggN8MIIDeAIBATB9MGkxCzAJBgNVBAYTAlVTMRcw
// SIG // FQYDVQQKEw5EaWdpQ2VydCwgSW5jLjFBMD8GA1UEAxM4
// SIG // RGlnaUNlcnQgVHJ1c3RlZCBHNCBUaW1lU3RhbXBpbmcg
// SIG // UlNBNDA5NiBTSEEyNTYgMjAyNSBDQTECEAqA7xhLjfEF
// SIG // gtHEdqeVdGgwDQYJYIZIAWUDBAIBBQCggdEwGgYJKoZI
// SIG // hvcNAQkDMQ0GCyqGSIb3DQEJEAEEMBwGCSqGSIb3DQEJ
// SIG // BTEPFw0yNTEwMTUyMjIwNThaMCsGCyqGSIb3DQEJEAIM
// SIG // MRwwGjAYMBYEFN1iMKyGCi0wa9o4sWh5UjAH+0F+MC8G
// SIG // CSqGSIb3DQEJBDEiBCDUyI0mj9Dt95q1Sueiz/MyhfBM
// SIG // XjJiEuEp7UgV4tLV2DA3BgsqhkiG9w0BCRACLzEoMCYw
// SIG // JDAiBCBKoD+iLNdchMVck4+CjmdrnK7Ksz/jbSaaozTx
// SIG // RhEKMzANBgkqhkiG9w0BAQEFAASCAgC9MRO5sd9TZ+qa
// SIG // JAxKGeRP1GdZROpy1bjdBugwlmXhNe8XcDq9rSOEIHnr
// SIG // N+Jc7JLcuCVpKOCO85bfvHZejw6+URdKI/elXloOL3em
// SIG // h785TIBVoPUSgUuotgb5gwVz77Yv0N7gBA84dqvsA1z0
// SIG // WM5DKUlQZk4Madtqwk4/uQh2bgYFHD89aJBbwJMWeJb7
// SIG // bICLmrCjztaew34RIzVnrjbzE6pf+F+ZxVdpyAkGUjdQ
// SIG // SLPg1fCV9GuvEt+QSx6Cttqp4DnV6pQ4mtXl1/ivxMRi
// SIG // jffGvbCZGR2sPLN4u+pHZy1REuDYrH7DHlZQSk5aw0ha
// SIG // JPZ2Iy9eDAjSwcRJP3h+QRZeFieYSalnUTWaBO89N8RP
// SIG // 40hQqSz3B9ugIbXwvuySALpM9Gv4W2lOv2FFs2b7KSD7
// SIG // kAEttxd51Dgd1z9clNaGy5zmIUhNRDNMudCHHWx2J148
// SIG // SWBqa+03fLPUR5Jk3Xtu4+Fb41MIlAmrJ8Dm/mg8bYvQ
// SIG // qsD4bpCh0+tax61d9RSpKFPJHxGiQoraryb7HsMGtPPc
// SIG // t2irDmQMZe5dKjbU2ApV9DUoAdUEjDSgGUWBGx0Rlswy
// SIG // CqltRF+HEGtZP0b8gKDp8eAaVMK/VCvnEEpvbJxza453
// SIG // Po5sDz85q5uKFhJf6PXi5U/c3kCRr6/6yYM0KHvWo/+6
// SIG // 4lgiR3MS0Q==
// SIG // End signature block